]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: make get_discrete_bounds check for non-constant range bounds
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7c6f2712
SM
12020-07-12 Simon Marchi <simon.marchi@efficios.com>
2
3 * gdbtypes.c (get_discrete_bounds): Return failure if
4 the range type's bounds are not both defined and constant
5 values.
6 (get_array_bounds): Update comment. Remove undefined bound check.
7
599088e3
SM
82020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
9
10 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
11 the type::bounds method directly.
12
c4dfcb36
SM
132020-07-12 Simon Marchi <simon.marchi@efficios.com>
14
15 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
16 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
17 are used to set the range type's bounds to use set_bounds.
18
0a278aa7
PW
192020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
20
21 * exec.c (_initialize_exec): Update exec-file-mismatch help.
22
cce20f10
PA
232020-07-10 Pedro Alves <pedro@palves.net>
24
25 * gdbthread.h (inferior_ref): Define.
26 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
27 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
28 * thread.c
29 (scoped_restore_current_thread::restore):
30 Adjust to gdb::ref_ptr.
31 (scoped_restore_current_thread::~scoped_restore_current_thread):
32 Remove manual decref handling.
33 (scoped_restore_current_thread::scoped_restore_current_thread):
34 Adjust to use
35 inferior_ref::new_reference/thread_info_ref::new_reference.
36 Incref the thread before calling get_frame_id instead of after.
37 Let TARGET_CLOSE_ERROR propagate.
38
6d7aa592
PA
392020-07-10 Pedro Alves <pedro@palves.net>
40
41 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
42 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
43 NOT_AVAILABLE_ERROR.
44 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
45 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
46
b3e3a4c1
SM
472020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
48 Pedro Alves <pedro@palves.net>
49
50 PR gdb/26199
51 * infrun.c (threads_are_resumed_pending_p): Delete.
52 (do_target_wait): Remove threads_are_executing and
53 threads_are_resumed_pending_p checks from the inferior_matches
54 lambda. Update comments.
55
d6cc5d98
PA
562020-07-10 Pedro Alves <pedro@palves.net>
57
58 PR gdb/26199
59 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
60 executing threads.
61
7d3badc6
PA
622020-07-10 Pedro Alves <pedro@palves.net>
63
64 PR gdb/26199
65 * infrun.c (handle_no_resumed): Handle multiple targets.
66
42bd97a6
PA
672020-07-10 Pedro Alves <pedro@palves.net>
68
69 PR gdb/26199
70 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
71 target_is_async_p.
72
43667cc6
PA
732020-07-10 Pedro Alves <pedro@palves.net>
74
75 PR gdb/26199
76 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
77 threads, not all threads.
78
96118d11
PA
792020-07-10 Pedro Alves <pedro@palves.net>
80
81 PR gdb/26199
82 * remote.c (remote_target::open_1): Pass remote target pointer as
83 data to create_async_event_handler.
84 (remote_async_inferior_event_handler): Mark async event handler
85 before returning if the remote target still has either pending
86 events or unacknowledged notifications.
87
54904d81
JB
882020-07-10 John Baldwin <jhb@FreeBSD.org>
89
90 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
91 declaration.
92 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
93 function.
94
f37e5866
JB
952020-07-09 John Baldwin <jhb@FreeBSD.org>
96
97 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
98 inferior_ptid.
99
fc238d4a
JB
1002020-07-09 John Baldwin <jhb@FreeBSD.org>
101
102 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
103 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
104 AT_FREEBSD_PS_STRINGS.
105
6e2469ff
HD
1062020-07-08 Hannes Domani <ssbssa@yahoo.de>
107
108 * auto-load.c (auto_load_objfile_script_1): Convert drive part
109 of debugfile path on Windows.
110
d1076c41
JB
1112020-07-08 John Baldwin <jhb@FreeBSD.org>
112
113 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
114 argument to 'data'.
115
15f3b077
TT
1162020-07-08 Tom Tromey <tromey@adacore.com>
117
118 * ada-lang.c (ada_exception_message_1): Use read_memory.
119
9fc501fd
AB
1202020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
121
122 PR python/22748
123 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
124 special handling for inline frames.
125 * findvar.c (value_of_register_lazy): Skip inline frames when
126 creating lazy register values.
127 * frame.c (frame_id_computed_p): Delete definition.
128 * frame.h (frame_id_computed_p): Delete declaration.
129
64cb3757
AB
1302020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
131
132 * NEWS: Mention additions to Python API.
133 * python/py-arch.c (archpy_register_groups): New function.
134 (arch_object_methods): Add 'register_groups' method.
135 * python/py-registers.c (reggroup_iterator_object): New struct.
136 (reggroup_object): New struct.
137 (gdbpy_new_reggroup): New function.
138 (gdbpy_reggroup_to_string): New function.
139 (gdbpy_reggroup_name): New function.
140 (gdbpy_reggroup_iter): New function.
141 (gdbpy_reggroup_iter_next): New function.
142 (gdbpy_new_reggroup_iterator): New function
143 (gdbpy_initialize_registers): Register new types.
144 (reggroup_iterator_object_type): Define new Python type.
145 (gdbpy_reggroup_getset): New static global.
146 (reggroup_object_type): Define new Python type.
147 * python/python-internal.h
148
0f767f94
AB
1492020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
150
151 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
152 * python/py-arch.c (archpy_registers): New function.
153 (arch_object_methods): Add 'registers' method.
154 * python/py-registers.c: New file.
155 * python/python-internal.h
156 (gdbpy_new_register_descriptor_iterator): Declare.
157 (gdbpy_initialize_registers): Declare.
158 * python/python.c (do_start_initialization): Call
159 gdbpy_initialize_registers.
160 * NEWS: Mention additions to the Python API.
161
87dbc774
AB
1622020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
163
164 * NEWS: Mention new Python API method.
165 * python/py-unwind.c (pending_framepy_architecture): New function.
166 (pending_frame_object_methods): Add architecture method.
167
3bc98c0c
AB
1682020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
169
170 * gdbarch.c: Regenerate.
171 * gdbarch.h: Regenerate.
172 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
173 (gdbarch_data): Use internal_error for the case where
174 deprecated_set_gdbarch_data was originally needed.
175 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
176 and use passed in obstack.
177 (libunwind_frame_set_descr): Should no longer get back NULL from
178 gdbarch_data.
179 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
180 type.
181 * user-regs.c (user_regs_init): Update parameters, and use passed
182 in obstack.
183 (user_reg_add): Should no longer get back NULL from gdbarch_data.
184 (_initialize_user_regs): Register as a pre-init gdbarch data type.
185
d8cc8af6
TV
1862020-07-06 Tom de Vries <tdevries@suse.de>
187
188 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
189 End-Of-Sequence in lte_is_less_than.
190 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
191 "gdb: Don't reorder line table entries too much when sorting".
192
947f7597
TV
1932020-07-06 Tom de Vries <tdevries@suse.de>
194
195 PR tui/26205
196 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
197
1e7c1b22
TV
1982020-07-05 Tom de Vries <tdevries@suse.de>
199
200 PR build/26187
201 * inferior.h (struct infcall_suspend_state_deleter): If available, use
202 std::uncaught_exceptions instead of deprecated
203 std::uncaught_exception.
204
a36158ec
SM
2052020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
206
207 * macroexp.h (macro_stringify): Return
208 gdb::unique_xmalloc_ptr<char>.
209 * macroexp.c (macro_stringify): Likewise.
210 * macrotab.c (fixup_definition): Update.
211
14d960c8
SM
2122020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
213
214 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
215 (lex_one_token): Update.
216 * macroexp.c (struct macro_buffer) <release>: Return
217 gdb::unique_xmalloc_ptr<char>.
218 (macro_stringify): Update.
219 (macro_expand): Update.
220 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
221 * macroexp.h (macro_expand_next): Likewise.
222
211d5b1c
SM
2232020-07-02 Simon Marchi <simon.marchi@efficios.com>
224
225 * macroexp.h (macro_lookup_ftype): Remove.
226 (macro_expand, macro_expand_once, macro_expand_next): Remove
227 lookup function parameters, add scope parameter.
228 * macroexp.c (scan, substitute_args, expand, maybe_expand,
229 macro_expand, macro_expand_once, macro_expand_next): Likewise.
230 * macroscope.h (standard_macro_lookup): Change parameter type
231 to macro_scope.
232 * macroscope.c (standard_macro_lookup): Likewise.
233 * c-exp.y (lex_one_token): Update.
234 * macrocmd.c (macro_expand_command): Likewise.
235 (macro_expand_once_command): Likewise.
236
b1a35af2
SM
2372020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
238
239 * inf-loop.c (inferior_event_handler): Remove client_data param.
240 * inf-loop.h (inferior_event_handler): Likewise.
241 * infcmd.c (step_1): Adjust.
242 * infrun.c (proceed): Adjust.
243 (fetch_inferior_event): Remove client_data param.
244 (infrun_async_inferior_event_handler): Adjust.
245 * infrun.h (fetch_inferior_event): Remove `void *` param.
246 * linux-nat.c (handle_target_event): Adjust.
247 * record-btrace.c (record_btrace_handle_async_inferior_event):
248 Adjust.
249 * record-full.c (record_full_async_inferior_event_handler):
250 Adjust.
251 * remote.c (remote_async_inferior_event_handler): Adjust.
252
1cdf9e33
TT
2532020-07-01 Tom Tromey <tom@tromey.com>
254
255 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
256 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
257
32c1e210
TT
2582020-07-01 Tom Tromey <tom@tromey.com>
259
260 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
261 tui_gen_win_info.
262 (tui_win_info::make_window): Merge with
263 tui_gen_win_info::make_window.
264 (tui_win_info::make_visible): Move from tui_gen_win_info.
265 * tui/tui-win.c (tui_win_info::max_width): Move from
266 tui_gen_win_info.
267 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
268 type.
269 <window_factory>: Likewise.
270 * tui/tui-layout.c (tui_win_info::resize): Move from
271 tui_gen_win_info.
272 (make_standard_window): Change return type.
273 (get_locator_window, tui_get_window_by_name): Likewise.
274 (tui_layout_window::apply): Remove a cast.
275 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
276 (struct tui_win_info): Merge with tui_gen_win_info.
277 (struct tui_gen_win_info): Remove.
278
a30cb6da
TT
2792020-07-01 Tom Tromey <tom@tromey.com>
280
281 * tui/tui-stack.h (struct tui_locator_window): Derive from
282 tui_win_info.
283 <do_scroll_horizontal, do_scroll_vertical>: New methods.
284 <can_box>: New method.
285
1eb2161f
TT
2862020-07-01 Tom Tromey <tom@tromey.com>
287
288 * tui/tui-stack.h (struct tui_locator_window): Remove body.
289
7134f2eb
TT
2902020-07-01 Tom Tromey <tom@tromey.com>
291
292 * tui/tui-regs.c (tui_data_window::display_registers_from)
293 (tui_data_window::display_registers_from)
294 (tui_data_window::first_data_item_displayed)
295 (tui_data_window::delete_data_content_windows): Update.
296 (tui_data_window::refresh_window, tui_data_window::no_refresh):
297 Remove.
298 (tui_data_window::check_register_values): Update.
299 (tui_data_item_window::rerender): Add parameters. Update.
300 (tui_data_item_window::refresh_window): Remove.
301 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
302 virtual.
303 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
304 tui_gen_win_info.
305 <refresh_window, max_height, min_height>: Remove.
306 <rerender>: Add parameters.
307 <x, y, visible>: New members.
308 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
309 <m_item_width>: New member.
310
22b7b041
TT
3112020-07-01 Tom Tromey <tom@tromey.com>
312
313 * tui/tui-regs.c (tui_data_window::show_register_group)
314 (tui_data_window::check_register_values): Update.
315 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
316 from item_no.
317
c9753adb
TT
3182020-07-01 Tom Tromey <tom@tromey.com>
319
320 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
321 useless "if".
322
9ab26b4a
TT
3232020-07-01 Tom Tromey <tom@tromey.com>
324
325 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
326 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
327
e555083f
TT
3282020-07-01 Tom Tromey <tom@tromey.com>
329
330 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
331 * tui/tui-winsource.h (enum tui_line_or_address_kind)
332 (struct tui_line_or_address): Move from tui-data.h.
333 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
334 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
335 (tui_cmd_window, tui_source_window_base, tui_source_window)
336 (tui_disasm_window): Don't declare.
337 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
338 to tui-winsource.h.
339 (SINGLE_KEY): Move to tui-stack.c.
340
7a02bab7
TT
3412020-07-01 Tom Tromey <tom@tromey.com>
342
343 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
344 std::string.
345 * tui/tui-regs.c (class tab_expansion_file): New.
346 (tab_expansion_file::write): New method.
347 (tui_register_format): Change return type. Use
348 tab_expansion_file.
349 (tui_get_register, tui_data_window::display_registers_from)
350 (tui_data_item_window::rerender): Update.
351 * tui/tui-io.h (tui_expand_tabs): Don't declare.
352 * tui/tui-io.c (tui_expand_tabs): Remove.
353
ea68593b
TT
3542020-07-01 Tom Tromey <tom@tromey.com>
355
356 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
357
a8caed5d
FS
3582020-07-01 Fangrui Song <maskray@google.com>
359
360 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
361
9cdf9820
AKS
3622020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
363
364 * dwarf2/read.c (set_die_type): Removed conditions to restrict
365 forms for DW_AT_associated and DW_AT_allocated attributes,
366 which is already checked in function attr_to_dynamic_prop.
367
a1520ad8
TT
3682020-06-30 Tom Tromey <tromey@adacore.com>
369
370 * dwarf2/read.c (quirk_rust_enum): Correctly call
371 alloc_rust_variant for default-less enum.
372
5ac58899
TT
3732020-06-30 Tom Tromey <tromey@adacore.com>
374
375 PR build/26183:
376 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
377 gdb::to_string.
378
19b187a9
SM
3792020-06-29 Simon Marchi <simon.marchi@efficios.com>
380
381 * gdbarch.sh (displaced_step_copy_insn): Update doc.
382 * gdbarch.h: Re-generate.
383
cd4c4c07
TT
3842020-06-28 Tom Tromey <tom@tromey.com>
385
386 * command.h (cmd_types): Remove.
387 (cmd_type): Don't declare.
388 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
389 typedef.
390 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
391 * cli/cli-decode.c (cmd_type): Remove.
392
05779d57
PA
3932020-06-27 Pedro Alves <palves@redhat.com>
394
395 * fork-child.c (prefork_hook): Adjust.
396 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
397 Delete.
398 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
399 * inferior.c (inferior::set_tty, inferior::tty): New methods.
400 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
401 Remove declarations.
402 (struct inferior) <set_tty, tty>: New methods.
403 (struct inferior) <terminal>: Rename to ...
404 (struct inferior) <m_terminal>: ... this and make private.
405 * main.c (captured_main_1): Adjust.
406 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
407 (mi_cmd_inferior_tty_show): Adjust.
408 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
409 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
410
1776e3e5
NA
4112020-06-26 Nick Alcock <nick.alcock@oracle.com>
412
413 * configure.ac: Add --enable-libctf: handle --disable-static
414 properly.
415 * acinclude.m4: sinclude ../config/enable.m4.
416 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
417 (LIBCTF): Substitute in.
418 (CTF_DEPS): New, likewise.
419 (CLIBS): libctf needs symbols from libbfd: move earlier.
420 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
421 flags.
422 * ctfread.c: Surround in ENABLE_LIBCTF.
423 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
424 * configure: Regenerate.
425 * config.in: Likewise.
426
58373b80
SM
4272020-06-25 Simon Marchi <simon.marchi@efficios.com>
428
429 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
430
277474ee
SM
4312020-06-25 Simon Marchi <simon.marchi@efficios.com>
432
433 * inferior.h (struct inferior) <terminal>: Change type to
434 gdb::unique_xmalloc_ptr<char>.
435 * inferior.c (inferior::~inferior): Don't free inf->terminal.
436 * infcmd.c (set_inferior_io_terminal): Don't free terminal
437 field, adjust to unique pointer.
438 (get_inferior_io_terminal): Adjust to unique pointer.
439
6d74da72
AB
4402020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
441
442 * riscv-tdep.c (riscv_print_registers_info): Loop over all
443 registers, not just the known core set of registers.
444
2e52d038
AB
4452020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
446
447 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
448 fflags, frm, and fcsr registers.
449 (riscv_register_reggroup_p): Remove unknown CSRs from save and
450 restore groups.
451 (riscv_tdesc_unknown_reg): New function.
452 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
453 tdesc_use_registers.
454 * riscv-tdep.h (struct gdbarch_tdep): Add
455 unknown_csrs_first_regnum, unknown_csrs_count,
456 duplicate_fflags_regnum, duplicate_frm_regnum, and
457 duplicate_fcsr_regnum fields.
458
be64fd07
AB
4592020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
460
461 * target-descriptions.c (tdesc_use_registers): Add new parameter a
462 callback, use the callback (when not null) to help number unknown
463 registers.
464 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
465 (tdesc_use_registers): Add extra parameter to declaration.
466
3b9fce96
AB
4672020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
468
469 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
470 in the file.
471 (class riscv_pending_register_alias): Likewise.
472 (riscv_register_feature::register_info): Change 'required_p' field
473 to 'required', and change its type. Add 'check' member function.
474 (riscv_register_feature::register_info::check): Define new member
475 function.
476 (riscv_xreg_feature): Change initialisation of 'required' field.
477 (riscv_freg_feature): Likewise.
478 (riscv_virtual_feature): Likewise.
479 (riscv_csr_feature): Likewise.
480 (riscv_check_tdesc_feature): Take extra parameter, the csr
481 tdesc_feature, rewrite the function to use the new
482 riscv_register_feature::register_info::check function.
483 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
484
865bad26
AB
4852020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
486
487 * features/Makefile: Remove all references to the deleted files
488 below.
489 * features/riscv/32bit-csr.c: Deleted.
490 * features/riscv/32bit-csr.xml: Deleted.
491 * features/riscv/64bit-csr.c: Deleted.
492 * features/riscv/64bit-csr.xml: Deleted.
493 * features/riscv/rebuild-csr-xml.sh: Deleted.
494
ed69cbc8
AB
4952020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
496
497 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
498 whitespace error for declaration of names member variable.
499 (struct riscv_register_feature): Add new prefer_first_name member
500 variable, and fix whitespace error in declaration of registers.
501 (riscv_xreg_feature): Initialize prefer_first_name field.
502 (riscv_freg_feature): Likewise.
503 (riscv_virtual_feature): Likewise.
504 (riscv_csr_feature): Likewise.
505 (riscv_register_name): Expand on comments. Remove register name
506 modifications for CSR and virtual registers.
507
4445e8f5
AB
5082020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
509
510 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
511 errors.
512
767a879e
AB
5132020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
514
515 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
516 riscv-opc.h.
517 (class riscv_pending_register_alias): New class.
518 (riscv_check_tdesc_feature): Take vector of pending aliases and
519 populate it as appropriate.
520 (riscv_setup_register_aliases): Delete.
521 (riscv_gdbarch_init): Create vector of pending aliases and pass it
522 to riscv_check_tdesc_feature in all cases. Use the vector to
523 create the register aliases.
524
bb6e55f3
RO
5252020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
526
527 * sol2-tdep.c (sol2_static_transform_name): Remove.
528 (sol2_init_abi): Don't register it.
529 * gdbarch.sh (static_transform_name): Remove.
530 * gdbarch.c, gdbarch.h: Regenerate.
531
532 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
533 gdbarch_static_transform_name.
534 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
535 * stabsread.c (define_symbol) <'X'>: Remove.
536 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
537 handling.
538 <'V'>: Likewise.
539 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
540 <'S'>: Remove call to gdbarch_static_transform_name.
541
c6d36836
RO
5422020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
543
544 * procfs.c (procfs_pre_trace): New function.
545 (procfs_target::create_inferior): Pass it to fork_inferior.
546
a7e6196b
RO
5472020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
548
549 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
550 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
551 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
552 sol2-tdep.o, sparc-sol2-tdep.o.
553 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
554 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
555 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
556 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
557
d412e696
RO
5582020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
559
560 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
561 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
562 Call sol2_init_abi.
563 Remove calls to set_gdbarch_skip_solib_resolver,
564 set_gdbarch_core_pid_to_str.
565 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
566 (i386_sol2_static_transform_name): Remove.
567 (i386_sol2_init_abi): Call sol2_init_abi.
568 Remove calls to set_gdbarch_sofun_address_maybe_missing,
569 set_gdbarch_static_transform_name,
570 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
571 Use sol2_sigtramp_p.
572 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
573 (sol2_sigtramp_p): New function.
574 (sol2_static_transform_name): New function.
575 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
576 (sol2_init_abi): New function.
577 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
578 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
579 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
580 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
581 (sparc_sol2_static_transform_name): Remove.
582 (sparc32_sol2_init_abi): Call sol2_init_abi.
583 Remove calls to set_gdbarch_sofun_address_maybe_missing,
584 set_gdbarch_static_transform_name,
585 set_gdbarch_skip_solib_resolver,
586 set_gdbarch_core_pid_to_str.
587 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
588 (sparc_sol2_static_transform_name): Remove
589 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
590 call sol2_sigtramp_p.
591 (sparc64_sol2_init_abi): Call sol2_init_abi.
592 Remove calls to set_gdbarch_sofun_address_maybe_missing,
593 set_gdbarch_static_transform_name,
594 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
595
a8654e7d
PW
5962020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
597
598 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
599 * exec.c (validate_exec_file): If from_tty, set both
600 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
601 * symfile.c (symbol_file_add_with_addrs): if always_confirm
602 and from_tty, unconditionally ask a confirmation.
603
caa7fd04
AB
6042020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
605
606 * target-descriptions.c (tdesc_architecture_name): Protect against
607 NULL pointer dereference.
608 (maint_print_xml_tdesc_cmd): New function.
609 (_initialize_target_descriptions): Register new 'maint print
610 xml-tdesc' command and give it the filename completer.
611 * NEWS: Mention new 'maint print xml-tdesc' command.
612
fbf42f4e
AB
6132020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
614
615 * target-descriptions.c (class tdesc_compatible_info): New class.
616 (struct target_desc): Change type of compatible vector.
617 (tdesc_compatible_p): Update for change in type of
618 target_desc::compatible.
619 (tdesc_compatible_info_list): New function.
620 (tdesc_compatible_info_arch_name): New function.
621 (tdesc_add_compatible): Update for change in type of
622 target_desc::compatible.
623 (print_c_tdesc::visit_pre): Likewise.
624
20821f4e
AB
6252020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
626
627 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
628 whitespace to underscore.
629 (maint_print_c_tdesc_cmd): Use fake filename for target
630 descriptions that came from the target.
631 (_initialize_target_descriptions): Add filename command completion
632 for 'maint print c-tdesc'.
633
1fb5ee62
SM
6342020-06-23 Simon Marchi <simon.marchi@efficios.com>
635
636 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
637 lines.
638
fc3ecb3e
SM
6392020-06-23 Simon Marchi <simon.marchi@efficios.com>
640
641 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
642 lines.
643 (dwarf2_find_location_expression): Likewise.
644 (call_site_parameter_matches): Likewise.
645 (dwarf2_compile_expr_to_ax): Likewise.
646 (disassemble_dwarf_expression): Likewise.
647 (loclist_describe_location): Likewise.
648
236ef034
PA
6492020-06-23 Pedro Alves <palves@redhat.com>
650
651 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
652 progspace-and-thread.h. Include scoped-mock-context.h instead.
653 (register_to_value_test): Use scoped_mock_context.
654 * regcache.c: Include "scoped-mock-context.h".
655 (cooked_read_test): Don't error out if a target is already pushed.
656 Use scoped_mock_context. Adjust.
657 * scoped-mock-context.h: New file.
658
39e7ecca
AB
6592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
660
661 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
662 initializer.
663 (ada_language::is_string_type_p): New member function.
664 * c-lang.c (c_language_data): Delete la_is_string_type_p
665 initializer.
666 (cplus_language_data): Likewise.
667 (asm_language_data): Likewise.
668 (minimal_language_data): Likewise.
669 * d-lang.c (d_language_data): Likewise.
670 * f-lang.c (f_is_string_type_p): Delete function, implementation
671 moved to f_language::is_string_type_p.
672 (f_language_data): Delete la_is_string_type_p initializer.
673 (f_language::is_string_type_p): New member function,
674 implementation from f_is_string_type_p.
675 * go-lang.c (go_is_string_type_p): Delete function, implementation
676 moved to go_language::is_string_type_p.
677 (go_language_data): Delete la_is_string_type_p initializer.
678 (go_language::is_string_type_p): New member function,
679 implementation from go_is_string_type_p.
680 * language.c (language_defn::is_string_type_p): Define new member
681 function.
682 (default_is_string_type_p): Make static, add comment copied from
683 header file.
684 (unknown_language_data): Delete la_is_string_type_p initializer.
685 (unknown_language::is_string_type_p): New member function.
686 (auto_language_data): Delete la_is_string_type_p initializer.
687 (auto_language::is_string_type_p): New member function.
688 * language.h (language_data): Delete la_is_string_type_p field.
689 (language_defn::is_string_type_p): Declare new function.
690 (default_is_string_type_p): Delete desclaration, move comment to
691 definition.
692 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
693 moved to m2_language::is_string_type_p.
694 (m2_language_data): Delete la_is_string_type_p initializer.
695 (m2_language::is_string_type_p): New member function,
696 implementation from m2_is_string_type_p.
697 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
698 initializer.
699 * opencl-lang.c (opencl_language_data): Likewise.
700 * p-lang.c (pascal_is_string_type_p): Delete function,
701 implementation moved to pascal_language::is_string_type_p.
702 (pascal_language_data): Delete la_is_string_type_p initializer.
703 (pascal_language::is_string_type_p): New member function,
704 implementation from pascal_is_string_type_p.
705 * rust-lang.c (rust_is_string_type_p): Delete function,
706 implementation moved to rust_language::is_string_type_p.
707 (rust_language_data): Delete la_is_string_type_p initializer.
708 (rust_language::is_string_type_p): New member function,
709 implementation from rust_is_string_type_p.
710 * valprint.c (val_print_scalar_or_string_type_p): Update call to
711 is_string_type_p.
712
4ffc13fb
AB
7132020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
714
715 * ada-lang.c (ada_language_data): Delete la_print_typedef
716 initializer.
717 (ada_language::print_typedef): New member function.
718 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
719 (cplus_language_data): Likewise.
720 (asm_language_data): Likewise.
721 (minimal_language_data): Likewise.
722 * d-lang.c (d_language_data): Likewise.
723 * f-lang.c (f_language_data): Likewise.
724 (f_language::print_typedef): New member function.
725 * go-lang.c (go_language_data): Delete la_print_typedef
726 initializer.
727 * language.c (language_defn::print_typedef): Define member
728 function.
729 (unknown_language_data): Delete la_print_typedef initializer.
730 (unknown_language::print_typedef): New member function.
731 (auto_language_data): Delete la_print_typedef initializer.
732 (auto_language::print_typedef): New member function.
733 * language.h (language_data): Delete la_print_typedef field.
734 (language_defn::print_typedef): Declare new member function.
735 (LA_PRINT_TYPEDEF): Update call to print_typedef.
736 (default_print_typedef): Delete declaration.
737 * m2-lang.c (m2_language_data): Delete la_print_typedef
738 initializer.
739 (m2_language::print_typedef): New member function.
740 * objc-lang.c (objc_language_data): Delete la_print_typedef
741 initializer.
742 * opencl-lang.c (opencl_language_data): Likewise.
743 * p-lang.c (pascal_language_data): Likewise.
744 (pascal_language::print_typedef): New member function.
745 * rust-lang.c (rust_print_typedef): Delete function,
746 implementation moved to rust_language::print_typedef.
747 (rust_language): Delete la_print_typedef initializer.
748 (rust_language::print_typedef): New member function,
749 implementation from rust_print_typedef.
750 * typeprint.c (default_print_typedef): Delete.
751
d711ee67
AB
7522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
753
754 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
755 (ada_language::printstr): New member function.
756 * c-lang.c (c_language_data): Delete la_printstr initializer.
757 (cplus_language_data): Likewise.
758 (asm_language_data): Likewise.
759 (minimal_language_data): Likewise.
760 * d-lang.c (d_language_data): Likewise.
761 * f-lang.c (f_printstr): Rename to f_language::printstr.
762 (f_language_data): Delete la_printstr initializer.
763 (f_language::printstr): New member function, implementation from
764 f_printstr.
765 * go-lang.c (go_language_data): Delete la_printstr initializer.
766 * language.c (language_defn::printstr): Define new member
767 function.
768 (unk_lang_printstr): Delete.
769 (unknown_language_data): Delete la_printstr initializer.
770 (unknown_language::printstr): New member function.
771 (auto_language_data): Delete la_printstr initializer.
772 (auto_language::printstr): New member function.
773 * language.h (language_data): Delete la_printstr field.
774 (language_defn::printstr): Declare new member function.
775 (LA_PRINT_STRING): Update call to printstr.
776 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
777 (m2_language_data): Delete la_printstr initializer.
778 (m2_language::printstr): New member function, implementation from
779 m2_printstr.
780 * objc-lang.c (objc_language_data): Delete la_printstr
781 initializer.
782 * opencl-lang.c (opencl_language_data): Likewise.
783 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
784 (pascal_language_data): Delete la_printstr initializer.
785 (pascal_language::printstr): New member function, implementation
786 from pascal_printstr.
787 * p-lang.h (pascal_printstr): Delete declaration.
788 * rust-lang.c (rust_printstr): Update header comment.
789 (rust_language_data): Delete la_printstr initializer.
790 (rust_language::printstr): New member function.
791
52b50f2c
AB
7922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
793
794 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
795 (ada_language::printchar): New member function.
796 * c-lang.c (c_language_data): Delete la_printchar initializer.
797 (cplus_language_data): Likewise.
798 (asm_language_data): Likewise.
799 (minimal_language_data): Likewise.
800 * d-lang.c (d_language_data): Likewise.
801 * f-lang.c (f_printchar): Rename to f_language::printchar.
802 (f_language_data): Delete la_printchar initializer.
803 (f_language::printchar): New member function, implementation from
804 f_printchar.
805 * go-lang.c (go_language_data): Delete la_printchar initializer.
806 * language.c (unk_lang_printchar): Delete.
807 (language_defn::printchar): Define new member function.
808 (unknown_language_data): Delete la_printchar initializer.
809 (unknown_language::printchar): New member function.
810 (auto_language_data): Delete la_printchar initializer.
811 (auto_language::printchar): New member function.
812 * language.h (language_data): Delete la_printchar field.
813 (language_defn::printchar): Declare new member function.
814 (LA_PRINT_CHAR): Update call to printchar.
815 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
816 (m2_language::printchar): New member function.
817 * objc-lang.c (objc_language_data): Delete la_printchar
818 initializer.
819 * opencl-lang.c (opencl_language_data): Likewise.
820 * p-lang.c (pascal_language_data): Delete la_printchar
821 initializer.
822 (pascal_language::printchar): New member function.
823 * rust-lang.c (rust_printchar): Rename to
824 rust_language::printchar.
825 (rust_language_data): Delete la_printchar initializer.
826 (rust_language::printchar): New member function, implementation
827 from rust_printchar.
828
ec8cec5b
AB
8292020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
830
831 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
832 (ada_language_data): Delete la_emitchar initializer.
833 (ada_language::emitchar): New member function, implementation from
834 emit_char.
835 * c-lang.c (c_language_data): Delete la_emitchar initializer.
836 (cplus_language_data): Likewise.
837 (asm_language_data): Likewise.
838 (minimal_language_data): Likewise.
839 * d-lang.c (d_language_data): Likewise.
840 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
841 (f_language_data): Delete la_emitchar initializer.
842 (f_language::emitchar): New member function, implementation from
843 f_emit_char.
844 * go-lang.c (go_language_data): Delete la_emitchar initializer.
845 * language.c (unk_lang_emit_char): Delete.
846 (language_defn::emitchar): New member function definition.
847 (unknown_language_data): Delete la_emitchar initializer.
848 (unknown_language::emitchar): New member function.
849 (auto_language_data): Delete la_emitchar initializer.
850 (auto_language::emitchar): New member function.
851 * language.h (language_data): Delete la_emitchar field.
852 (language_defn::emitchar): New member field declaration.
853 (LA_EMIT_CHAR): Update call to emitchar.
854 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
855 (m2_language_data): Delete la_emitchar initializer.
856 (m2_language::emitchar): New member function, implementation from
857 m2_emit_char.
858 * objc-lang.c (objc_language_data): Delete la_emitchar
859 initializer.
860 * opencl-lang.c (opencl_language_data): Likewise.
861 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
862 (pascal_language_data): Delete la_emitchar initializer.
863 (pascal_language::emitchar): New member function, implementation
864 from pascal_emit_char.
865 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
866 (rust_language_data): Delete la_emitchar initializer.
867 (rust_language::emitchar): New member function, implementation
868 from rust_emitchar.
869
1bf9c363
AB
8702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
871
872 * ada-lang.c (resolve): Rename to ada_language::post_parser.
873 (ada_language_data): Delete la_post_parser initializer.
874 (ada_language::post_parser): New member function.
875 * c-lang.c (c_language_data): Delete la_post_parser initializer.
876 (cplus_language_data): Likewise.
877 (asm_language_data): Likewise.
878 (minimal_language_data): Likewise.
879 * d-lang.c (d_language_data): Likewise.
880 * f-lang.c (f_language_data): Likewise.
881 * go-lang.c (go_language_data): Likewise.
882 * language.c (unknown_language_data): Likewise.
883 (auto_language_data): Likewise.
884 * language.h (language_data): Delete la_post_parser field.
885 (language_defn::post_parser): New member function.
886 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
887 * objc-lang.c (objc_language_data): Likewise.
888 * opencl-lang.c (opencl_language_data): Likewise.
889 * p-lang.c (pascal_language_data): Likewise.
890 * parse.c (parse_exp_in_context): Update call to post_parser.
891 (null_post_parser): Delete definition.
892 * parser-defs.h (null_post_parser): Delete declaration.
893 * rust-lang.c (rust_language_data): Delete la_post_parser
894 initializer.
895
87afa652
AB
8962020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
897
898 * ada-lang.c (parse): Rename to ada_language::parser.
899 (ada_language_data): Delete la_parser initializer.
900 (ada_language::parser): New member function, implementation from
901 parse.
902 * c-lang.c (c_language_data): Delete la_parser initializer.
903 (cplus_language_data): Likewise.
904 (asm_language_data): Likewise.
905 (minimal_language_data): Likewise.
906 * d-lang.c (d_language_data): Likewise.
907 (d_language::parser): New member function.
908 * f-lang.c (f_language_data): Delete la_parser initializer.
909 (f_language::parser): New member function.
910 * go-lang.c (go_language_data): Delete la_parser initializer.
911 (go_language::parser): New member function.
912 * language.c (unk_lang_parser): Delete.
913 (language_defn::parser): Define new member function.
914 (unknown_language_data): Delete la_parser initializer.
915 (unknown_language::parser): New member function.
916 (auto_language_data): Delete la_parser initializer.
917 (auto_language::parser): New member function.
918 * language.h (language_data): Delete la_parser field.
919 (language_defn::parser): Declare new member function.
920 * m2-lang.c (m2_language_data): Delete la_parser initializer.
921 (m2_language::parser): New member function.
922 * objc-lang.c (objc_language_data): Delete la_parser initializer.
923 * opencl-lang.c (opencl_language_data): Likewise.
924 * p-lang.c (pascal_language_data): Likewise.
925 (pascal_language::parser): New member function.
926 * parse.c (parse_exp_in_context): Update call to parser.
927 * rust-lang.c (rust_language_data): Delete la_parser initializer.
928 (rust_language::parser): New member function.
929
37825800
AB
9302020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
931
932 * top.c (print_gdb_configuration): Print --with-python-libdir
933 configuration value.
934
5b860c93
PW
9352020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
936
937 * NEWS: Mention change to the alias command.
938
cf00cd6f
PW
9392020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
940
941 * cli/cli-cmds.c (lookup_cmd_for_default_args)
942 (alias_command_completer)
943 (make_alias_options_def_group): New functions.
944 (alias_opts, alias_option_defs): New struct and array.
945 (alias_usage_error): Update usage.
946 (alias_command): Handles optional DEFAULT-ARGS... arguments.
947 Use option framework.
948 (_initialize_cli_cmds): Update alias command help.
949 Update aliases command help.
950 (show_user):
951 Add NULL for new default_args lookup_cmd argument.
952 (valid_command_p): Rename to validate_aliased_command.
953 Add NULL for new default_args lookup_cmd argument. Verify that the
954 aliased_command has no default args.
955 * cli/cli-decode.c (help_cmd): Show aliases definitions.
956 (lookup_cmd_1, lookup_cmd): New argument default_args.
957 (add_alias_cmd):
958 Add NULL for new default_args lookup_cmd argument.
959 (print_help_for_command): Show default args under the layout
960 alias some_alias = some_aliased_cmd some_alias_default_arg.
961 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
962 xfree default_args in destructor.
963 * cli/cli-script.c (process_next_line, do_define_command):
964 Add NULL for new default_args lookup_cmd argument.
965 * command.h: Declare new default_args argument in lookup_cmd
966 and lookup_cmd_1.
967 * completer.c (complete_line_internal_1):
968 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
969 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
970 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
971 Likewise.
972 * infcmd.c (_initialize_infcmd): Likewise.
973 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
974 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
975 * python/py-param.c (add_setshow_generic): Likewise.
976 * remote.c (_initialize_remote): Likewise.
977 * top.c (execute_command): Prepend default_args if command has some.
978 (set_verbose):
979 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
980 * tracepoint.c (validate_actionline, encode_actions_1):
981 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
982
bd920864
TBA
9832020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
984
985 * jit.c (jit_read_descriptor): Use bool as the return type.
986 (jit_breakpoint_re_set_internal): Use bool as the return type.
987 Invert the return value logic; return true if the jit breakpoint
988 has been successfully initialized.
989 (jit_inferior_init): Update the call to
990 jit_breakpoint_re_set_internal.
991
f8098322
PA
9922020-06-22 Pedro Alves <palves@redhat.com>
993
994 PR gdb/25939
995 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
996 Use the current inferior instead. Don't return
997 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
998 wait again.
999 * sol-thread.c (sol_thread_target::wait): Don't reference
1000 inferior_ptid.
1001 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1002 (sol_update_thread_list_callback): Use the current inferior's pid
1003 instead of inferior_ptid.
1004
196535a6
RO
10052020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1006
1007 * procfs.c: Cleanup many comments.
1008
1009 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1010 (AFTER_WATCHFLAG): Replace by value.
1011
1012 (MAIN_PROC_NAME_FORMAT): Inline ...
1013 (create_procinfo): ... here.
1014
1015 (procfs_debug_inferior): Remove SYS_exec handling.
1016 (syscall_is_exec): Likewise.
1017 (procfs_set_exec_trap): Likewise.
1018
1019 (syscall_is_lwp_exit): Inline in callers.
1020 (syscall_is_exit): Likewise.
1021 (syscall_is_exec): Likewise.
1022 (syscall_is_lwp_create): Likewise.
1023
1024 (invalidate_cache): Remove #if 0 code.
1025
1026 (make_signal_thread_runnable): Remove.
1027 (procfs_target::resume): Remove #if 0 code.
1028
cf6f3e86
RO
10292020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1030
1031 PR gdb/25939
1032 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1033 call ...
1034 (procfs_target::create_inferior): ... here.
1035
48e9cc84
PW
10362020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1037
1038 * exec.c (validate_exec_file): Ensure the build-id is up to
1039 date by calling reopen_exec_file (that checks file timestamp
1040 to decide to re-read the file).
1041
3922b302
PA
10422020-06-18 Pedro Alves <palves@redhat.com>
1043
1044 PR gdb/25412
1045 * gdbthread.h (delete_thread, delete_thread_silent)
1046 (find_thread_ptid): Update comments.
1047 * thread.c (current_thread_): New global.
1048 (is_current_thread): Move higher, and reimplement.
1049 (inferior_thread): Reimplement.
1050 (set_thread_exited): Use bool. Add assertions.
1051 (add_thread_silent): Simplify thread-reuse handling by always
1052 calling delete_thread.
1053 (delete_thread): Remove intro comment.
1054 (find_thread_ptid): Skip exited threads.
1055 (switch_to_thread_no_regs): Write to current_thread_.
1056 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1057 INFERIOR_PTID. Clear current_thread_.
1058
6dbdab44
PA
10592020-06-18 Pedro Alves <palves@redhat.com>
1060
1061 * aix-thread.c (pd_update): Use switch_to_thread.
1062
2da4b788
PA
10632020-06-18 Pedro Alves <palves@redhat.com>
1064
1065 * ravenscar-thread.c (ravenscar_thread_target): Update.
1066 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1067 (ravenscar_thread_target::add_active_thread): ... this. Don't
1068 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1069 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1070
50838d1b
PA
10712020-06-18 Pedro Alves <palves@redhat.com>
1072
1073 * nat/windows-nat.c (current_windows_thread): Remove.
1074 * nat/windows-nat.h (current_windows_thread): Remove.
1075 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1076 Adjust.
1077 (display_selectors): Adjust to fetch the current
1078 windows_thread_info based on inferior_ptid.
1079 (fake_create_process): No longer write to current_windows_thread.
1080 (windows_nat_target::get_windows_debug_event):
1081 Don't set inferior_ptid or current_windows_thread.
1082 (windows_nat_target::wait): Adjust to not rely on
1083 current_windows_thread.
1084 (do_initial_windows_stuff): Now a method of windows_nat_target.
1085 Switch to the last_ptid thread.
1086 (windows_nat_target::attach): Adjust.
1087 (windows_nat_target::detach): Use switch_to_no_thread instead of
1088 writing to inferior_ptid directly.
1089 (windows_nat_target::create_inferior): Adjust.
1090
31ce04e9
PA
10912020-06-18 Pedro Alves <palves@redhat.com>
1092
1093 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1094
1ee1a363
PA
10952020-06-18 Pedro Alves <palves@redhat.com>
1096
1097 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1098 after creating it, instead of writing to inferior_ptid. Don't
1099 write to inferior_ptid.
1100
6d350754
PA
11012020-06-18 Pedro Alves <palves@redhat.com>
1102
1103 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1104
5d971d48
PA
11052020-06-18 Pedro Alves <palves@redhat.com>
1106
1107 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1108 it, instead of writing to inferior_ptid.
1109
86e57d1b
PA
11102020-06-18 Pedro Alves <palves@redhat.com>
1111
1112 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1113 to inferior_ptid.
1114
f2e1c129
PA
11152020-06-18 Pedro Alves <palves@redhat.com>
1116
1117 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1118 instead of writing to inferior_ptid directly.
1119
60db1b85
PA
11202020-06-18 Pedro Alves <palves@redhat.com>
1121
1122 * corelow.c (core_target::close): Use switch_to_no_thread instead
1123 of writing to inferior_ptid directly.
1124 (add_to_thread_list, core_target_open): Use switch_to_thread
1125 instead of writing to inferior_ptid directly.
1126
fe7d6a8d
PA
11272020-06-18 Pedro Alves <palves@redhat.com>
1128
1129 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1130 inferior_ptid.
1131 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1132 inferior_ptid.
1133 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1134 inferior_ptid directly.
1135 (darwin_nat_target::init_thread_list): Switch to thread, instead
1136 of writing to inferior_ptid.
1137 (darwin_nat_target::attach): Don't write to inferior_ptid.
1138 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1139
975f8708
PA
11402020-06-18 Pedro Alves <palves@redhat.com>
1141
1142 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1143 thread.
1144 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1145 Instead use switch_to_thread.
1146 (gnu_nat_target::detach): Use switch_to_no_thread
1147 instead of writing to inferior_ptid directly. Used passed-in
1148 inferior instead of looking up the inferior by pid.
1149
1a204730
PA
11502020-06-18 Pedro Alves <palves@redhat.com>
1151
1152 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1153 inferior_ptid.
1154
ebe84f23
PA
11552020-06-18 Pedro Alves <palves@redhat.com>
1156
1157 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1158 inferior_ptid.
1159 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1160 thread.
1161 (nto_procfs_target::detach): Avoid referencing
1162 inferior_ptid. Use switch_to_no_thread instead of writing to
1163 inferior_ptid directly.
1164 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1165 instead of writing to inferior_ptid directly.
1166 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1167 to thread.
1168
191f02e5
PA
11692020-06-18 Pedro Alves <palves@redhat.com>
1170
1171 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1172 after creating it, instead of writing to inferior_ptid.
1173 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1174 to inferior_ptid directly.
1175 (gdbsim_target::wait): Don't write to inferior_ptid.
1176
0ac55310
PA
11772020-06-18 Pedro Alves <palves@redhat.com>
1178
1179 * remote.c (remote_target::remote_notice_new_inferior): Use
1180 switch_to_thread instead of writing to inferior_ptid directly.
1181 (remote_target::add_current_inferior_and_thread): Use
1182 switch_to_no_thread instead of writing to inferior_ptid directly.
1183 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1184 and switch_to_thread instead of using set_current_inferior or
1185 writing to inferior_ptid directly.
1186
5233f39b
PA
11872020-06-18 Pedro Alves <palves@redhat.com>
1188
1189 * tracectf.c (ctf_target_open): Switch to added thread instead of
1190 writing to inferior_ptid directly.
1191 (ctf_target::close): Use switch_to_no_thread instead of writing to
1192 inferior_ptid directly.
1193
087e161b
PA
11942020-06-18 Pedro Alves <palves@redhat.com>
1195
1196 * tracefile-tfile.c (tfile_target_open): Don't write to
1197 inferior_ptid directly, instead switch to added thread.
1198 (tfile_target::close): Use switch_to_no_thread instead of writing
1199 to inferior_ptid directly.
1200
7fb43e53
PA
12012020-06-18 Pedro Alves <palves@redhat.com>
1202
1203 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1204 (procfs_target::detach): Use switch_to_no_thread
1205 instead of writing to inferior_ptid directly.
1206 (do_attach): Change return type to void. Switch to the added
1207 thread.
1208 (procfs_target::create_inferior): Switch to the added thread.
1209 (procfs_do_thread_registers): Don't write to inferior_ptid.
1210
18493a00
PA
12112020-06-18 Pedro Alves <palves@redhat.com>
1212
1213 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1214 of writing to inferior_ptid.
1215 (scoped_restore_exited_inferior): Delete.
1216 (handle_vfork_child_exec_or_exit): Simplify using
1217 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1218 instead of writing to inferior_ptid.
1219 (THREAD_STOPPED_BY): Delete.
1220 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1221 (thread_stopped_by_hw_breakpoint): Delete.
1222 (save_waitstatus): Use
1223 scoped_restore_current_thread+switch_to_thread, and call
1224 target_stopped_by_watchpoint instead of
1225 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1226 instead of thread_stopped_by_sw_breakpoint, and
1227 target_stopped_by_hw_breakpoint instead of
1228 thread_stopped_by_hw_breakpoint.
1229 (handle_inferior_event)
1230 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1231 inferior_ptid directly, nor
1232 set_current_inferior/set_current_program_space. Use
1233 switch_to_thread / switch_to_inferior_no_thread instead.
1234
a0776b13
PA
12352020-06-18 Pedro Alves <palves@redhat.com>
1236
1237 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1238 instead of writing to inferior_ptid.
1239
6155c136
PA
12402020-06-18 Pedro Alves <palves@redhat.com>
1241
1242 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1243 added thread.
1244 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1245 to the added thread.
1246 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1247 instead of writing to inferior_ptid.
1248
c5316fc6
PA
12492020-06-18 Pedro Alves <palves@redhat.com>
1250
1251 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1252 (register_to_value_test): Mock a program_space too. Heap-allocate
1253 the address space. Don't write to inferior_ptid. Use
1254 switch_to_thread instead.
1255
8df01799
PA
12562020-06-18 Pedro Alves <palves@redhat.com>
1257
1258 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1259 Delete.
1260 (find_signalled_thread()): New, factored out from
1261 linux_make_corefile_notes and adjusted to handle exited threads.
1262 (linux_make_corefile_notes): Adjust to use the new
1263 find_signalled_thread.
1264
41792d68
PA
12652020-06-18 Pedro Alves <palves@redhat.com>
1266
1267 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1268 of saving/restoring inferior_ptid.
1269
612f258a
TT
12702020-06-17 Tom Tromey <tom@tromey.com>
1271
1272 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1273 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1274 declare.
1275 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1276
efb763a5
SM
12772020-06-15 Simon Marchi <simon.marchi@efficios.com>
1278
1279 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1280 of partial symtabs.
1281
2951f6c0
SM
12822020-06-17 Simon Marchi <simon.marchi@efficios.com>
1283
1284 * regformats/reg-arm.dat: Remove.
1285 * regformats/reg-bfin.dat: Remove.
1286 * regformats/reg-cris.dat: Remove.
1287 * regformats/reg-crisv32.dat: Remove.
1288 * regformats/reg-m32r.dat: Remove.
1289 * regformats/reg-tilegx.dat: Remove.
1290 * regformats/reg-tilegx32.dat: Remove.
1291
7d458ea5
SM
12922020-06-17 Simon Marchi <simon.marchi@efficios.com>
1293
1294 * features/Makefile (WHICH): Remove arm files.
1295 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1296 * regformats/arm/arm-with-neon.dat: Remove.
1297 * regformats/arm/arm-with-vfpv2.dat: Remove.
1298 * regformats/arm/arm-with-vfpv3.dat: Remove.
1299
3af96c0d
SM
13002020-06-17 Simon Marchi <simon.marchi@efficios.com>
1301
1302 * features/Makefile (XMLTOC): Remove rx.xml.
1303
b25e22fd
PA
13042020-06-17 Pedro Alves <palves@redhat.com>
1305
1306 * gdbthread.h (thread_control_state) <trap_expected> Update
1307 comments.
1308
a78a19b1
AB
13092020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1310
1311 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1312 ada_language::lookup_symbol_nonlocal.
1313 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1314 (ada_language::lookup_symbol_nonlocal): New member function,
1315 implementation from ada_lookup_symbol_nonlocal.
1316 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1317 initializer.
1318 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1319 initializer.
1320 (cplus_language::lookup_symbol_nonlocal): New member function.
1321 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1322 (minimal_language_data) Likewise.
1323 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1324 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1325 initializer.
1326 (d_language::lookup_symbol_nonlocal): New member function.
1327 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1328 initializer.
1329 (f_language::lookup_symbol_nonlocal): New member function.
1330 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1331 initializer.
1332 * language.c (unknown_language_data): Likewise.
1333 (auto_language_data): Likewise.
1334 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1335 field.
1336 (language_defn::lookup_symbol_nonlocal): New member function.
1337 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1338 initializer.
1339 * objc-lang.c (objc_language_data): Likewise.
1340 * opencl-lang.c (opencl_language_data): Likewise.
1341 * p-lang.c (pascal_language_data): Likewise.
1342 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1343 rust_language::lookup_symbol_nonlocal.
1344 (rust_language_data): Delete la_lookup_symbol_nonlocal
1345 initializer.
1346 (rust_language::lookup_symbol_nonlocal): New member function,
1347 implementation from rust_lookup_symbol_nonlocal.
1348 * symtab.c (lookup_symbol_aux): Update call to
1349 lookup_symbol_nonlocal.
1350 (basic_lookup_symbol_nonlocal): Rename to...
1351 (language_defn::lookup_symbol_nonlocal): ...this, and update
1352 header comment. Remove language_defn parameter, and replace with
1353 uses of `this'.
1354 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1355
ebe2334e
AB
13562020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1357
1358 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1359 initializer.
1360 (ada_language::value_print_inner): New member function.
1361 * c-lang.c (c_language_data): Delete la_value_print_inner
1362 initializer.
1363 (cplus_language_data): Likewise.
1364 (asm_language_data): Likewise.
1365 (minimal_language_data): Likewise.
1366 * d-lang.c (d_language_data): Likewise.
1367 (d_language::value_print_inner): New member function.
1368 * f-lang.c (f_language_data): Delete la_value_print_inner
1369 initializer.
1370 (f_language::value_print_inner): New member function.
1371 * f-lang.h (f_value_print_innner): Rename to...
1372 (f_value_print_inner): ...this (note spelling of 'inner').
1373 * f-valprint.c (f_value_print_innner): Rename to...
1374 (f_value_print_inner): ...this (note spelling of 'inner').
1375 * go-lang.c (go_language_data): Delete la_value_print_inner
1376 initializer.
1377 (go_language::value_print_inner): New member function.
1378 * language.c (language_defn::value_print_inner): Define new member
1379 function.
1380 (unk_lang_value_print_inner): Delete.
1381 (unknown_language_data): Delete la_value_print_inner initializer.
1382 (unknown_language::value_print_inner): New member function.
1383 (auto_language_data): Delete la_value_print_inner initializer.
1384 (auto_language::value_print_inner): New member function.
1385 * language.h (language_data): Delete la_value_print_inner field.
1386 (language_defn::value_print_inner): Delcare new member function.
1387 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1388 initializer.
1389 (m2_language::value_print_inner): New member function.
1390 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1391 initializer.
1392 * opencl-lang.c (opencl_language_data): Likewise.
1393 * p-lang.c (pascal_language_data): Likewise.
1394 (pascal_language::value_print_inner): New member function.
1395 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1396 initializer.
1397 (rust_language::value_print_inner): New member function.
1398 * valprint.c (do_val_print): Update call to value_print_inner.
1399
a1d1fa3e
AB
14002020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1401
1402 * ada-lang.c (ada_language_data): Delete la_value_print
1403 initializer.
1404 (ada_language::value_print): New member function.
1405 * c-lang.c (c_language_data): Delete la_value_print initializer.
1406 (cplus_language_data): Likewise.
1407 (asm_language_data): Likewise.
1408 (minimal_language_data): Likewise.
1409 * d-lang.c (d_language_data): Likewise.
1410 * f-lang.c (f_language_data): Likewise.
1411 * go-lang.c (go_language_data): Likewise.
1412 * language.c (unk_lang_value_print): Delete.
1413 (language_defn::value_print): Define new member function.
1414 (unknown_language_data): Delete la_value_print initializer.
1415 (unknown_language::value_print): New member function.
1416 (auto_language_data): Delete la_value_print initializer.
1417 (auto_language::value_print): New member function.
1418 * language.h (language_data): Delete la_value_print field.
1419 (language_defn::value_print): Declare new member function.
1420 (LA_VALUE_PRINT): Update call to value_print.
1421 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1422 * objc-lang.c (objc_language_data): Likewise.
1423 * opencl-lang.c (opencl_language_data): Likewise.
1424 * p-lang.c (pascal_language_data): Likewise.
1425 (pascal_language::value_print): New member function.
1426 * rust-lang.c (rust_language_data): Delete la_value_print
1427 initializer.
1428
f16a9f57
AB
14292020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1430
1431 * ada-lang.c (ada_watch_location_expression): Rename to
1432 ada_language::watch_location_expression.
1433 (ada_language_data): Delete la_watch_location_expression
1434 initializer.
1435 (ada_language::watch_location_expression): New member function,
1436 implementation from ada_watch_location_expression.
1437 * breakpoint.c (watch_command_1): Update call to
1438 watch_location_expression.
1439 * c-lang.c (c_watch_location_expression): Rename to
1440 language_defn::watch_location_expression.
1441 (c_language_data): Delete la_watch_location_expression
1442 initializer.
1443 (cplus_language_data): Likewise.
1444 (asm_language_data): Likewise.
1445 (minimal_language_data): Likewise.
1446 * c-lang.h (c_watch_location_expression): Delete declaration.
1447 * d-lang.c (d_language_data): Delete la_watch_location_expression
1448 initializer.
1449 * f-lang.c (f_language_data): Likewise.
1450 * go-lang.c (go_language_data): Likewise.
1451 * language.c (language_defn::watch_location_expression): Member
1452 function implementation from c_watch_location_expression.
1453 (unknown_language_data): Delete la_watch_location_expression
1454 initializer.
1455 (auto_language_data): Likewise.
1456 * language.h (language_data): Delete la_watch_location_expression
1457 field.
1458 (language_defn::watch_location_expression): Declare new member
1459 function.
1460 * m2-lang.c (m2_language_data): Delete
1461 la_watch_location_expression initializer.
1462 * objc-lang.c (objc_language_data): Likewise.
1463 * opencl-lang.c (opencl_language_data): Likewise.
1464 * p-lang.c (pascal_language_data): Likewise.
1465 * rust-lang.c (rust_watch_location_expression): Rename to
1466 rust_language::watch_location_expression.
1467 (rust_language_data): Delete la_watch_location_expression
1468 initializer.
1469 (rust_language::watch_location_expression): New member function,
1470 implementation from rust_watch_location_expression.
1471
7e56227d
AB
14722020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1473
1474 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1475 ada_language::collect_symbol_completion_matches.
1476 (ada_language_data): Delete la_collect_symbol_completion_matches
1477 initializer.
1478 (ada_language::collect_symbol_completion_matches): New member
1479 function, implementation from
1480 ada_collect_symbol_completion_matches.
1481 * c-lang.c (c_language_data): Delete
1482 la_collect_symbol_completion_matches initializer.
1483 (cplus_language_data): Likewise.
1484 (asm_language_data): Likewise.
1485 (minimal_language_data): Likewise.
1486 * d-lang.c (d_language_data): Likewise.
1487 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1488 f_language::collect_symbol_completion_matches.
1489 (f_language_data): Delete la_collect_symbol_completion_matches
1490 initializer.
1491 (f_language::collect_symbol_completion_matches) New member
1492 function, implementation from f_collect_symbol_completion_matches.
1493 * go-lang.c (go_language_data): Delete
1494 la_collect_symbol_completion_matches initializer.
1495 * language.c (unknown_language_data): Likewise.
1496 (auto_language_data): Likewise.
1497 * language.h (language_data): Delete
1498 la_collect_symbol_completion_matches field.
1499 (language_defn::collect_symbol_completion_matches): New member
1500 function.
1501 * m2-lang.c (m2_language_data): Delete
1502 la_collect_symbol_completion_matches initializer.
1503 * objc-lang.c (objc_language_data): Likewise.
1504 * opencl-lang.c (opencl_language_data): Likewise.
1505 * p-lang.c (pascal_language_data): Likewise.
1506 * rust-lang.c (rust_language_data): Likewise.
1507 * symtab.c (default_collect_symbol_completion_matches): Delete.
1508 (collect_symbol_completion_matches): Update call to
1509 collect_symbol_completion_matches.
1510 (collect_symbol_completion_matches_type): Likewise.
1511 * symtab.h (default_collect_symbol_completion_matches): Delete
1512 declaration.
1513
53fc67f8
AB
15142020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1515
1516 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1517 (ada_language_data): Delete la_word_break_characters initializer.
1518 (ada_language::word_break_characters): New member function.
1519 * c-lang.c (c_language_data): Delete la_word_break_characters
1520 initializer.
1521 (cplus_language_data): Likewise.
1522 (asm_language_data): Likewise.
1523 (minimal_language_data): Likewise.
1524 * completer.c: Update global comment.
1525 (advance_to_expression_complete_word_point): Update call to
1526 word_break_characters.
1527 (complete_files_symbols): Likewise.
1528 (complete_line_internal_1): Likewise.
1529 (default_completer_handle_brkchars): Likewise.
1530 (skip_quoted_chars): Likewise.
1531 * d-lang.c (d_language_data): Delete la_word_break_characters
1532 initializer.
1533 * f-lang.c (f_word_break_characters): Delete.
1534 (f_language_data): Delete la_word_break_characters initializer.
1535 (f_language::word_break_characters): New member function.
1536 * go-lang.c (go_language_data): Delete la_word_break_characters
1537 initializer.
1538 * language.c (unknown_language_data): Likewise.
1539 (auto_language_data): Likewise.
1540 * language.h (default_word_break_characters): Move declaration to
1541 earlier in the file.
1542 (language_data): Delete la_word_break_characters field.
1543 (language_defn::word_break_characters): New member function.
1544 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1545 initializer.
1546 * objc-lang.c (objc_language_data): Likewise.
1547 * opencl-lang.c (opencl_language_data): Likewise.
1548 * p-lang.c (pascal_language_data): Likewise.
1549 * rust-lang.c (rust_language_data): Likewise.
1550
c9debfb9
AB
15512020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1552
1553 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1554 (ada_language_data): Delete la_get_symbol_name_matcher
1555 initializer.
1556 (language_defn::get_symbol_name_matcher_inner): New member
1557 function.
1558 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1559 initializer.
1560 (cplus_language_data): Likewise.
1561 (cplus_language::get_symbol_name_matcher_inner): New member
1562 function.
1563 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1564 (minimal_language_data): Likewise.
1565 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1566 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1567 initializer.
1568 * dictionary.c (iter_match_first_hashed): Update call to
1569 get_symbol_name_matcher.
1570 (iter_match_next_hashed): Likewise.
1571 (iter_match_next_linear): Likewise.
1572 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1573 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1574 initializer.
1575 (f_language::get_symbol_name_matcher_inner): New member function.
1576 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1577 initializer.
1578 * language.c (default_symbol_name_matcher): Update header comment,
1579 make static.
1580 (language_defn::get_symbol_name_matcher): New definition.
1581 (language_defn::get_symbol_name_matcher_inner): Likewise.
1582 (get_symbol_name_matcher): Delete.
1583 (unknown_language_data): Delete la_get_symbol_name_matcher
1584 initializer.
1585 (auto_language_data): Likewise.
1586 * language.h (language_data): Delete la_get_symbol_name_matcher
1587 field.
1588 (language_defn::get_symbol_name_matcher): New member function.
1589 (language_defn::get_symbol_name_matcher_inner): Likewise.
1590 (default_symbol_name_matcher): Delete declaration.
1591 * linespec.c (find_methods): Update call to
1592 get_symbol_name_matcher.
1593 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1594 initializer.
1595 * minsyms.c (lookup_minimal_symbol): Update call to
1596 get_symbol_name_matcher.
1597 (iterate_over_minimal_symbols): Likewise.
1598 * objc-lang.c (objc_language_data): Delete
1599 la_get_symbol_name_matcher initializer.
1600 * opencl-lang.c (opencl_language_data): Likewise.
1601 * p-lang.c (pascal_language_data): Likewise.
1602 * psymtab.c (psymbol_name_matches): Update call to
1603 get_symbol_name_matcher.
1604 * rust-lang.c (rust_language_data): Delete
1605 la_get_symbol_name_matcher initializer.
1606 * symtab.c (symbol_matches_search_name): Update call to
1607 get_symbol_name_matcher.
1608 (compare_symbol_name): Likewise.
1609
9a49ad8c
AB
16102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1611
1612 * ada-lang.c (ada_language_data): Delete la_compute_program
1613 initializer.
1614 * c-lang.c (c_language_data): Likewise.
1615 (c_language::compute_program): New member function.
1616 (cplus_language_data): Delete la_compute_program initializer.
1617 (cplus_language::compute_program): New member function.
1618 (asm_language_data): Delete la_compute_program initializer.
1619 (minimal_language_data): Likewise.
1620 * c-lang.h (c_compute_program): Update comment.
1621 (cplus_compute_program): Likewise.
1622 * compile/compile-c-support.c (c_compute_program): Likewise.
1623 (cplus_compute_program): Likewise.
1624 * compile/compile.c (compile_to_object): Update call to
1625 la_compute_program.
1626 * d-lang.c (d_language_data): Delete la_compute_program
1627 initializer.
1628 * f-lang.c (f_language_data): Likewise.
1629 * go-lang.c (go_language_data): Likewise.
1630 * language.c (unknown_language_data): Likewise.
1631 (auto_language_data): Likewise.
1632 * language.h (language_data): Delete la_compute_program field.
1633 (language_defn::compute_program): New member function.
1634 * m2-lang.c (m2_language_data): Delete la_compute_program
1635 initializer.
1636 * objc-lang.c (objc_language_data): Likewise.
1637 * opencl-lang.c (opencl_language_data): Likewise.
1638 * p-lang.c (pascal_language_data): Likewise.
1639 * rust-lang.c (rust_language_data): Likewise.
1640
eff93b4d
AB
16412020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1642
1643 * ada-lang.c (ada_language_data) Delete
1644 la_class_name_from_physname initializer.
1645 * c-lang.c (c_language_data): Likewise.
1646 (cplus_language_data): Likewise.
1647 (cplus_language::class_name_from_physname): New member function.
1648 (asm_language_data): Delete la_class_name_from_physname
1649 initializer.
1650 (minimal_language_data): Likewise.
1651 * d-lang.c (d_language_data): Likewise.
1652 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1653 method on language_defn class.
1654 (guess_full_die_structure_name): Likewise.
1655 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1656 initializer.
1657 * go-lang.c (go_language_data): Likewise.
1658 * language.c (language_class_name_from_physname): Delete.
1659 (unk_lang_class_name): Delete.
1660 (unknown_language_data): Delete la_class_name_from_physname
1661 initializer.
1662 (auto_language_data): Likewise.
1663 * language.h (language_data): Delete la_class_name_from_physname
1664 field.
1665 (language_defn::class_name_from_physname): New function.
1666 (language_class_name_from_physname): Delete declaration.
1667 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1668 initializer.
1669 * objc-lang.c (objc_language_data): Likewise.
1670 * opencl-lang.c (opencl_language_data): Likewise.
1671 * p-lang.c (pascal_language_data): Likewise.
1672 * rust-lang.c (rust_language_data): Likewise.
1673
de543742
TT
16742020-06-16 Tom Tromey <tom@tromey.com>
1675
1676 * tui/tui-data.h (STATUS_NAME): New macro.
1677 * tui/tui-layout.c (tui_remove_some_windows)
1678 (initialize_known_windows, tui_register_window)
1679 (tui_layout_split::remove_windows, initialize_layouts)
1680 (tui_new_layout_command): Don't use hard-coded window names.
1681
a350efd4
TT
16822020-06-16 Tom Tromey <tom@tromey.com>
1683
1684 PR tui/25348:
1685 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1686 tui_initialize_readline. Only run once. Call rl_initialize.
1687 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1688 tui_initialize_readline.
1689 * tui/tui-io.c (tui_setup_io): Call
1690 tui_ensure_readline_initialized.
1691 * tui/tui-interp.c (tui_interp::init): Update.
1692
39ec0490
TT
16932020-06-16 Tom Tromey <tom@tromey.com>
1694
1695 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1696 Also preserve the status window.
1697
d2d1ea20
TT
16982020-06-16 Tom Tromey <tom@tromey.com>
1699
1700 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1701 where m_window==nullptr.
1702
66920317
TT
17032020-06-15 Tom Tromey <tromey@adacore.com>
1704
1705 * windows-nat.c (windows_nat::handle_output_debug_string):
1706 Update.
1707 (windows_nat::handle_ms_vc_exception): Update.
1708 * target.h (target_read_string): Change API.
1709 * target.c (target_read_string): Change API.
1710 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1711 Update.
1712 * solib-frv.c (frv_current_sos): Update.
1713 * solib-dsbt.c (dsbt_current_sos): Update.
1714 * solib-darwin.c (darwin_current_sos): Update.
1715 * linux-thread-db.c (inferior_has_bug): Update.
1716 * expprint.c (print_subexp_standard): Update.
1717 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1718 (ada_exception_message_1): Update.
1719
a5d871dd
TT
17202020-06-15 Tom Tromey <tromey@adacore.com>
1721
1722 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1723
670e35fa
TT
17242020-06-15 Tom Tromey <tromey@adacore.com>
1725
1726 * valprint.c (read_string): Update comment.
1727 * target.c (MIN): Remove.
1728 (target_read_string): Rewrite.
1729
f5272a3b
TT
17302020-06-15 Tom Tromey <tromey@adacore.com>
1731
1732 * corefile.c (read_memory_string): Remove.
1733 * ada-valprint.c (ada_value_print_ptr): Update.
1734 * ada-lang.h (ada_tag_name): Change return type.
1735 * ada-lang.c (type_from_tag): Update.
1736 (ada_tag_name_from_tsd): Change return type. Use
1737 target_read_string.
1738 (ada_tag_name): Likewise.
1739 * gdbcore.h (read_memory_string): Don't declare.
1740
2c074f49
HD
17412020-06-14 Hannes Domani <ssbssa@yahoo.de>
1742
1743 * symtab.c (rbreak_command): Ignore Windows drive colon.
1744
6a17d503
SM
17452020-06-12 Simon Marchi <simon.marchi@efficios.com>
1746
1747 * NEWS: Mention removed GDBserver host support.
1748
453c733f
NC
17492020-06-12 Nelson Chu <nelson.chu@sifive.com>
1750
1751 * features/riscv/rebuild-csr-xml.sh: Updated.
1752
2b4e6a3f
TT
17532020-06-11 Tom Tromey <tom@tromey.com>
1754
1755 PR gdb/18318:
1756 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1757
4412332f
JG
17582020-06-09 Jonny Grant <jg@jguk.org>
17592020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1760
1761 * main.c (captured_main_1): Don't print new line after help.
1762 (print_gdb_help): add mailing list and IRC channel information
1763 to --help. Add new lines between items in the footer. Remove
1764 quotes around bug url.
1765
2f33032a
KS
17662020-06-11 Keith Seitz <keiths@redhat.com>
1767
1768 PR gdb/21356
1769 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1770 Resolve typedefs for type length calculations.
1771
7ab96794
TV
17722020-06-10 Tom de Vries <tdevries@suse.de>
1773
1774 PR ada/24713
1775 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1776 (write_psymbols): Enable .gdb_index for ada.
1777 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1778 ada.
1779
e5f3ece2
TV
17802020-06-10 Tom de Vries <tdevries@suse.de>
1781
1782 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1783 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1784 namei" instead of "const char *name" argument.
1785 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1786 dw2_symtab_iter_init.
1787
940da03e
SM
17882020-06-08 Simon Marchi <simon.marchi@efficios.com>
1789
1790 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1791 to use type::field and field::type instead.
1792
b6cdac4b
SM
17932020-06-08 Simon Marchi <simon.marchi@efficios.com>
1794
1795 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1796 to use field::type instead.
1797
5d14b6e5
SM
17982020-06-08 Simon Marchi <simon.marchi@efficios.com>
1799
1800 * gdbtypes.h (struct field) <type, set_type>: New methods.
1801 Rename `type` field to...
1802 <m_type>: ... this. Change references throughout to use type or
1803 set_type methods.
1804 (FIELD_TYPE): Use field::type. Change call sites that modify
1805 the field's type to use field::set_type instead.
1806
3d967001
SM
18072020-06-08 Simon Marchi <simon.marchi@efficios.com>
1808
1809 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1810 to use type::index_type instead.
1811
262abc0d
SM
18122020-06-08 Simon Marchi <simon.marchi@efficios.com>
1813
1814 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1815 methods.
1816 (TYPE_INDEX_TYPE): Use type::index_type.
1817 * gdbtypes.c (create_array_type_with_stride): Likewise.
1818
82836c92
TT
18192020-06-07 Tom Tromey <tom@tromey.com>
1820
1821 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1822 parameter.
1823 (generic_value_print): Update.
1824
940dace9
AB
18252020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1826
1827 Revert commit 982a38f60b0.
1828 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1829
982a38f6
AB
18302020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1831
1832 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1833 avoid use after free.
1834
82f06518
TV
18352020-06-05 Tom de Vries <tdevries@suse.de>
1836
1837 * NEWS: Fix typos.
1838
f8c41851
SM
18392020-06-04 Simon Marchi <simon.marchi@efficios.com>
1840
1841 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1842 the per_bfd object.
1843 (dwarf2_read_debug_names): Likewise.
1844 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1845 object when re-using a per_bfd object with an index.
1846
f9b5d5ea
TV
18472020-06-03 Tom de Vries <tdevries@suse.de>
1848
1849 PR symtab/26046
1850 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1851 children for C++.
1852 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1853 DW_TAG_subprogram.
1854
f6eee2d0
AB
18552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1856
1857 * ada-lang.c (ada_language_data): Delete skip_trampoline
1858 initializer.
1859 * c-lang.c (c_language_data): Likewise.
1860 (cplus_language_data): Likewise.
1861 (cplus_language::skip_trampoline): New member function.
1862 (asm_language_data): Delete skip_trampoline initializer.
1863 (minimal_language_data): Likewise.
1864 * d-lang.c (d_language_data): Likewise.
1865 * f-lang.c (f_language_data): Likewise.
1866 * go-lang.c (go_language_data): Likewise.
1867 * language.c (unk_lang_trampoline): Delete function.
1868 (skip_language_trampoline): Update.
1869 (unknown_language_data): Delete skip_trampoline initializer.
1870 (auto_language_data): Likewise.
1871 * language.h (language_data): Delete skip_trampoline field.
1872 (language_defn::skip_trampoline): New function.
1873 * m2-lang.c (m2_language_data): Delete skip_trampoline
1874 initializer.
1875 * objc-lang.c (objc_skip_trampoline): Delete function, move
1876 implementation to objc_language::skip_trampoline.
1877 (objc_language_data): Delete skip_trampoline initializer.
1878 (objc_language::skip_trampoline): New member function with
1879 implementation from objc_skip_trampoline.
1880 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1881 initializer.
1882 * p-lang.c (pascal_language_data): Likewise.
1883 * rust-lang.c (rust_language_data): Likewise.
1884
0a50df5d
AB
18852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1886
1887 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1888 (ada_language::demangle): New member function.
1889 * c-lang.c (c_language_data): Delete la_demangle initializer.
1890 (cplus_language_data): Delete la_demangle initializer.
1891 (cplus_language::demangle): New member function.
1892 (asm_language_data): Delete la_demangle initializer.
1893 (minimal_language_data): Delete la_demangle initializer.
1894 * d-lang.c (d_language_data): Delete la_demangle initializer.
1895 (d_language::demangle): New member function.
1896 * f-lang.c (f_language_data): Delete la_demangle initializer.
1897 (f_language::demangle): New member function.
1898 * go-lang.c (go_language_data): Delete la_demangle initializer.
1899 (go_language::demangle): New member function.
1900 * language.c (language_demangle): Update.
1901 (unk_lang_demangle): Delete.
1902 (unknown_language_data): Delete la_demangle initializer.
1903 (unknown_language::demangle): New member function.
1904 (auto_language_data): Delete la_demangle initializer.
1905 (auto_language::demangle): New member function.
1906 * language.h (language_data): Delete la_demangle field.
1907 (language_defn::demangle): New function.
1908 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1909 * objc-lang.c (objc_language_data): Delete la_demangle
1910 initializer.
1911 (objc_language::demangle): New member function.
1912 * opencl-lang.c (opencl_language_data): Delete la_demangle
1913 initializer.
1914 * p-lang.c (pascal_language_data): Likewise.
1915 * rust-lang.c (rust_language_data): Likewise.
1916 (rust_language::demangle): New member function.
1917
fbfb0a46
AB
19182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1919
1920 * ada-lang.c (ada_language_data): Delete la_print_type
1921 initializer.
1922 (ada_language::print_type): New member function.
1923 * c-lang.c (c_language_data): Delete la_print_type initializer.
1924 (c_language::print_type): New member function.
1925 (cplus_language_data): Delete la_print_type initializer.
1926 (cplus_language::print_type): New member function.
1927 (asm_language_data): Delete la_print_type initializer.
1928 (asm_language::print_type): New member function.
1929 (minimal_language_data): Delete la_print_type initializer.
1930 (minimal_language::print_type): New member function.
1931 * d-lang.c (d_language_data): Delete la_print_type initializer.
1932 (d_language::print_type): New member function.
1933 * f-lang.c (f_language_data): Delete la_print_type initializer.
1934 (f_language::print_type): New member function.
1935 * go-lang.c (go_language_data): Delete la_print_type initializer.
1936 (go_language::print_type): New member function.
1937 * language.c (unk_lang_print_type): Delete.
1938 (unknown_language_data): Delete la_print_type initializer.
1939 (unknown_language::print_type): New member function.
1940 (auto_language_data): Delete la_print_type initializer.
1941 (auto_language::print_type): New member function.
1942 * language.h (language_data): Delete la_print_type field.
1943 (language_defn::print_type): New function.
1944 (LA_PRINT_TYPE): Update.
1945 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1946 (m2_language::print_type): New member function.
1947 * objc-lang.c (objc_language_data): Delete la_print_type
1948 initializer.
1949 (objc_language::print_type): New member function.
1950 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1951 to opencl_language::print_type.
1952 (opencl_language_data): Delete la_print_type initializer.
1953 (opencl_language::print_type): New member function, implementation
1954 from opencl_print_type.
1955 * p-lang.c (pascal_language_data): Delete la_print_type
1956 initializer.
1957 (pascal_language::print_type): New member function.
1958 * rust-lang.c (rust_print_type): Delete, implementation moved to
1959 rust_language::print_type.
1960 (rust_language_data): Delete la_print_type initializer.
1961 (rust_language::print_type): New member function, implementation
1962 from rust_print_type.
1963
6f827019
AB
19642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1965
1966 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1967 implementation moves to...
1968 (ada_language::sniff_from_mangled_name): ...here. Update return
1969 type.
1970 (ada_language_data): Delete la_sniff_from_mangled_name
1971 initializer.
1972 * c-lang.c (c_language_data): Likewise.
1973 (cplus_language_data): Likewise.
1974 (cplus_language::sniff_from_mangled_name): New member function,
1975 implementation taken from gdb_sniff_from_mangled_name.
1976 (asm_language_data): Delete la_sniff_from_mangled_name
1977 initializer.
1978 (minimal_language_data): Likewise.
1979 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1980 implementation moves to cplus_language::sniff_from_mangled_name.
1981 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1982 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1983 moves to...
1984 (d_language::sniff_from_mangled_name): ...here.
1985 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1986 * f-lang.c (f_language_data): Likewise.
1987 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1988 moves to...
1989 (go_language::sniff_from_mangled_name): ...here.
1990 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1991 * language.c (language_sniff_from_mangled_name): Delete.
1992 (unknown_language_data): Delete la_sniff_from_mangled_name
1993 initializer.
1994 (auto_language_data): Likewise.
1995 * language.h (language_data): Delete la_sniff_from_mangled_name
1996 field.
1997 (language_defn::sniff_from_mangled_name): New function.
1998 (language_sniff_from_mangled_name): Delete declaration.
1999 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2000 field.
2001 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2002 implementation moves to...
2003 (objc_language::sniff_from_mangled_name): ...here.
2004 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2005 * opencl-lang.c (opencl_language_data): Likewise.
2006 * p-lang.c (pascal_language_data): Likewise.
2007 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2008 implementation moves to...
2009 (rust_language::sniff_from_mangled_name): ...here.
2010 (rust_language_data): Delete la_sniff_from_mangled_name
2011 initializer.
2012 * symtab.c (symbol_find_demangled_name): Call
2013 sniff_from_mangled_name member function.
2014
fb8006fd
AB
20152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2016
2017 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2018 initializer.
2019 * c-lang.c (c_language_data): Likewise.
2020 (cplus_language_data): Likewise.
2021 (cplus_language::search_name_hash): New member function.
2022 (asm_language_data): Delete la_search_name_hash initializer.
2023 (minimal_language_data): Likewise.
2024 * d-lang.c (d_language_data): Likewise.
2025 * dictionary.c (default_search_name_hash): Rename to...
2026 (language_defn::search_name_hash): ...this.
2027 * f-lang.c (f_language_data): Likewise.
2028 (f_language::search_name_hash): New member function.
2029 * go-lang.c (go_language_data): Delete la_search_name_hash
2030 initializer.
2031 * language.c (unknown_language_data): Likewise.
2032 (auto_language_data): Likewise.
2033 * language.h (struct language_data): Delete la_search_name_hash
2034 field.
2035 (language_defn::search_name_hash): Declare new member function.
2036 (default_search_name_hash): Delete declaration.
2037 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2038 initializer.
2039 * objc-lang.c (objc_language_data): Likewise.
2040 * opencl-lang.c (opencl_language_data): Likewise.
2041 * p-lang.c (pascal_language_data): Likewise.
2042 * rust-lang.c (rust_language_data): Likewise.
2043 * symtab.c (search_name_hash): Update call.
2044
8e25bafe
AB
20452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2046
2047 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2048 initializer.
2049 * c-lang.c (class compile_instance): Declare.
2050 (c_language_data): Delete la_get_compile_instance initializer.
2051 (c_language::get_compile_instance): New member function.
2052 (cplus_language_data): Delete la_get_compile_instance initializer.
2053 (cplus_language::get_compile_instance): New member function.
2054 (asm_language_data): Delete la_get_compile_instance initializer.
2055 (minimal_language_data): Likewise.
2056 * c-lang.h (c_get_compile_context): Update comment.
2057 (cplus_get_compile_context): Update comment.
2058 * compile/compile.c (compile_to_object): Update calls, don't rely
2059 on function pointer being NULL.
2060 * d-lang.c (d_language_data): Delete la_get_compile_instance
2061 initializer.
2062 * f-lang.c (f_language_data): Likewise.
2063 * go-lang.c (go_language_data): Likewise.
2064 * language.c (unknown_language_data): Likewise.
2065 (auto_language_data): Likewise.
2066 * language.h (language_data): Delete la_get_compile_instance field.
2067 (language_defn::get_compile_instance): New member function.
2068 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2069 initializer.
2070 * objc-lang.c (objc_language_data): Likewise.
2071 * opencl-lang.c (opencl_language_data): Likewise.
2072 * p-lang.c (pascal_language_data): Likewise.
2073 * rust-lang.c (rust_language_data): Likewise.
2074
4009ee92
AB
20752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2076
2077 * ada-lang.c (ada_add_all_symbols): Update comment.
2078 (ada_iterate_over_symbols): Delete, move implementation to...
2079 (ada_language::iterate_over_symbols): ...here, a new member
2080 function, rewrite to use range based for loop.
2081 (ada_language_data): Delete la_iterate_over_symbols initializer.
2082 * c-lang.c (c_language_data): Likewise.
2083 (cplus_language_data): Likewise.
2084 (asm_language_data): Likewise.
2085 (minimal_language_data): Likewise.
2086 * d-lang.c (d_language_data): Likewise.
2087 * f-lang.c (f_language_data): Likewise.
2088 * go-lang.c (go_language_data): Likewise.
2089 * language.c (unknown_language_data): Likewise.
2090 (auto_language_data): Likewise.
2091 * language.h (language_data): Delete la_iterate_over_symbols field.
2092 (language_defn::iterate_over_symbols): New member function.
2093 (LA_ITERATE_OVER_SYMBOLS): Update.
2094 * linespec.c (iterate_over_all_matching_symtabs): Update.
2095 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2096 initializer.
2097 * objc-lang.c (objc_language_data): Likewise.
2098 * opencl-lang.c (opencl_language_data): Likewise.
2099 * p-lang.c (pascal_language_data): Likewise.
2100 * rust-lang.c (rust_language_data): Likewise.
2101
54f4ca46
AB
21022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2103
2104 * ada-lang.c (ada_language_data): Delete
2105 la_lookup_transparent_type initializer.
2106 * c-lang.c (c_language_data): Likewise.
2107 (cplus_language_data): Likewise.
2108 (cplus_language::lookup_transparent_type): New member function.
2109 (asm_language_data): Delete la_lookup_transparent_type
2110 initializer.
2111 (minimal_language_data): Likewise.
2112 * d-lang.c (d_language_data): Likewise.
2113 * f-lang.c (f_language_data): Likewise.
2114 * go-lang.c (go_language_data): Likewise.
2115 * language.c (unknown_language_data): Likewise.
2116 (auto_language_data): Likewise.
2117 * language.h (struct language_data): Delete
2118 la_lookup_transparent_type field.
2119 (language_defn::lookup_transparent_type): New member function.
2120 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2121 initializer.
2122 * objc-lang.c (objc_language_data): Likewise.
2123 * opencl-lang.c (opencl_language_data): Likewise.
2124 * p-lang.c (pascal_language_data): Likewise.
2125 * rust-lang.c (rust_language_data): Likewise.
2126 * symtab.c (symbol_matches_domain): Update call.
2127
1fb314aa
AB
21282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2129
2130 * ada-lang.c (ada_language_arch_info): Delete function, move
2131 implementation to...
2132 (ada_language::language_arch_info): ...here, a new member
2133 function.
2134 (ada_language_data): Delete la_language_arch_info.
2135 * c-lang.c (c_language_data): Likewise.
2136 (c_language::language_arch_info): New member function.
2137 (cplus_language_arch_info): Delete function, move
2138 implementation to...
2139 (cplus_language::language_arch_info): ...here, a new member
2140 function.
2141 (cplus_language_data): Delete la_language_arch_info.
2142 (asm_language_data): Likewise.
2143 (asm_language::language_arch_info): New member function.
2144 (minimal_language_data): Delete la_language_arch_info.
2145 (minimal_language::language_arch_info): New member function.
2146 * d-lang.c (d_language_arch_info): Delete function, move
2147 implementation to...
2148 (d_language::language_arch_info): ...here, a new member
2149 function.
2150 (d_language_data): Delete la_language_arch_info.
2151 * f-lang.c (f_language_arch_info): Delete function, move
2152 implementation to...
2153 (f_language::language_arch_info): ...here, a new member
2154 function.
2155 (f_language_data): Delete la_language_arch_info.
2156 * go-lang.c (go_language_arch_info): Delete function, move
2157 implementation to...
2158 (go_language::language_arch_info): ...here, a new member
2159 function.
2160 (go_language_data): Delete la_language_arch_info.
2161 * language.c (unknown_language_data): Likewise.
2162 (unknown_language::language_arch_info): New member function.
2163 (auto_language_data): Delete la_language_arch_info.
2164 (auto_language::language_arch_info): New member function.
2165 (language_gdbarch_post_init): Update call to
2166 la_language_arch_info.
2167 * language.h (language_data): Delete la_language_arch_info
2168 function pointer.
2169 (language_defn::language_arch_info): New function.
2170 * m2-lang.c (m2_language_arch_info): Delete function, move
2171 implementation to...
2172 (m2_language::language_arch_info): ...here, a new member
2173 function.
2174 (m2_language_data): Delete la_language_arch_info.
2175 * objc-lang.c (objc_language_arch_info): Delete function, move
2176 implementation to...
2177 (objc_language::language_arch_info): ...here, a new member
2178 function.
2179 (objc_language_data): Delete la_language_arch_info.
2180 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2181 implementation to...
2182 (opencl_language::language_arch_info): ...here, a new member
2183 function.
2184 (opencl_language_data): Delete la_language_arch_info.
2185 * p-lang.c (pascal_language_arch_info): Delete function, move
2186 implementation to...
2187 (pascal_language::language_arch_info): ...here, a new member
2188 function.
2189 (pascal_language_data): Delete la_language_arch_info.
2190 * rust-lang.c (rust_language_arch_info): Delete function, move
2191 implementation to...
2192 (rust_language::language_arch_info): ...here, a new member
2193 function.
2194 (rust_language_data): Delete la_language_arch_info.
2195
48448202
AB
21962020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2197
2198 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2199 initializer.
2200 * c-lang.c (c_language_data): Likewise.
2201 (cplus_language_data): Likewise.
2202 (cplus_language::pass_by_reference_info): New method.
2203 (asm_language_data): Delete la_pass_by_reference initializer.
2204 (minimal_language_data): Likewise.
2205 * cp-abi.c (cp_pass_by_reference): Remove use of
2206 default_pass_by_reference.
2207 * d-lang.c (d_language_data): Likewise.
2208 * f-lang.c (f_language_data): Likewise.
2209 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2210 default_pass_by_reference.
2211 * go-lang.c (go_language_data): Likewise.
2212 * language.c (language_pass_by_reference): Update.
2213 (default_pass_by_reference): Delete.
2214 (unknown_language_data): Delete la_pass_by_reference
2215 initializer.
2216 (auto_language_data): Likewise.
2217 * language.h (struct language_data): Delete la_pass_by_reference
2218 field.
2219 (language_defn::pass_by_reference_info): New member function.
2220 (default_pass_by_reference): Delete declaration.
2221 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2222 initializer.
2223 * objc-lang.c (objc_language_data): Likewise.
2224 * opencl-lang.c (opencl_language_data): Likewise.
2225 * p-lang.c (pascal_language_data): Likewise.
2226 * rust-lang.c (rust_language_data): Likewise.
2227
15e5fd35
AB
22282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2229
2230 * ada-lang.c (ada_read_var_value): Delete function, move
2231 implementation to...
2232 (ada_language::read_var_value): ...here.
2233 (ada_language_data): Delete la_read_var_value initializer.
2234 * c-lang.c (c_language_data): Likewise.
2235 (cplus_language_data): Likewise.
2236 (minimal_language_data): Likewise.
2237 * d-lang.c (d_language_data): Likewise.
2238 * f-lang.c (f_language_data): Likewise.
2239 * findvar.c (default_read_var_value): Rename to...
2240 (language_defn::read_var_value): ...this.
2241 * findvar.c (read_var_value): Update header comment, and change to
2242 call member function instead of function pointer.
2243 * go-lang.c (go_language_data): Likewise.
2244 * language.c (unknown_language_data): Delete la_read_var_value
2245 initializer.
2246 (auto_language_data): Likewise.
2247 * language.h (struct language_data): Delete la_read_var_value
2248 field.
2249 (language_defn::read_var_value): New member function.
2250 (default_read_var_value): Delete declaration.
2251 * m2-lang.c (m2_language_data): Delete la_read_var_value
2252 initializer.
2253 * objc-lang.c (objc_language_data): Likewise.
2254 * opencl-lang.c (opencl_language_data): Likewise.
2255 * p-lang.c (pascal_language_data): Likewise.
2256 * rust-lang.c (rust_language_data): Likewise.
2257 * value.h (default_read_var_value): Delete declaration.
2258
5bd40f2a
AB
22592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2260
2261 * ada-lang.c (ada_print_array_index): Delete function, move
2262 implementation to...
2263 (ada_language::print_array_index): ...here.
2264 (ada_language_data): Delete la_print_array_index initializer.
2265 * c-lang.c (c_language_data): Likewise.
2266 (cplus_language_data): Likewise.
2267 (minimal_language_data): Likewise.
2268 * d-lang.c (d_language_data): Likewise.
2269 * f-lang.c (f_language_data): Likewise.
2270 * go-lang.c (go_language_data): Likewise.
2271 * language.c (default_print_array_index): Delete function, move
2272 implementation to...
2273 (language_defn::print_array_index): ...here.
2274 (unknown_language_data): Delete la_print_array_index initializer.
2275 (auto_language_data): Likewise.
2276 * language.h (struct language_data): Delete la_print_array_index
2277 field.
2278 (language_defn::print_array_index): New member function.
2279 (LA_PRINT_ARRAY_INDEX): Update.
2280 (default_print_array_index): Delete declaration.
2281 * m2-lang.c (m2_language_data): Delete la_print_array_index
2282 initializer.
2283 * objc-lang.c (objc_language_data): Likewise.
2284 * opencl-lang.c (opencl_language_data): Likewise.
2285 * p-lang.c (pascal_language_data): Likewise.
2286 * rust-lang.c (rust_language_data): Likewise.
2287
0874fd07
AB
22882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2289
2290 * gdb/ada-lang.c (ada_language_defn): Convert to...
2291 (ada_language_data): ...this.
2292 (class ada_language): New class.
2293 (ada_language_defn): New static global.
2294 * gdb/c-lang.c (c_language_defn): Convert to...
2295 (c_language_data): ...this.
2296 (class c_language): New class.
2297 (c_language_defn): New static global.
2298 (cplus_language_defn): Convert to...
2299 (cplus_language_data): ...this.
2300 (class cplus_language): New class.
2301 (cplus_language_defn): New static global.
2302 (asm_language_defn): Convert to...
2303 (asm_language_data): ...this.
2304 (class asm_language): New class.
2305 (asm_language_defn): New static global.
2306 (minimal_language_defn): Convert to...
2307 (minimal_language_data): ...this.
2308 (class minimal_language): New class.
2309 (minimal_language_defn): New static global.
2310 * gdb/d-lang.c (d_language_defn): Convert to...
2311 (d_language_data): ...this.
2312 (class d_language): New class.
2313 (d_language_defn): New static global.
2314 * gdb/f-lang.c (f_language_defn): Convert to...
2315 (f_language_data): ...this.
2316 (class f_language): New class.
2317 (f_language_defn): New static global.
2318 * gdb/go-lang.c (go_language_defn): Convert to...
2319 (go_language_data): ...this.
2320 (class go_language): New class.
2321 (go_language_defn): New static global.
2322 * gdb/language.c (unknown_language_defn): Remove declaration.
2323 (current_language): Initialize to nullptr, real initialization is
2324 moved to _initialize_language.
2325 (languages): Delete global.
2326 (language_defn::languages): Define.
2327 (set_language_command): Use language_defn::languages.
2328 (set_language): Likewise.
2329 (range_error): Likewise.
2330 (language_enum): Likewise.
2331 (language_def): Likewise.
2332 (add_set_language_command): Use language_def::languages for the
2333 language list, and language_def to lookup language pointers.
2334 (skip_language_trampoline): Use language_defn::languages.
2335 (unknown_language_defn): Convert to...
2336 (unknown_language_data): ...this.
2337 (class unknown_language): New class.
2338 (unknown_language_defn): New static global.
2339 (auto_language_defn): Convert to...
2340 (auto_language_data): ...this.
2341 (class auto_language): New class.
2342 (auto_language_defn): New static global.
2343 (language_gdbarch_post_init): Use language_defn::languages.
2344 (_initialize_language): Initialize current_language.
2345 * gdb/language.h (struct language_defn): Rename to...
2346 (struct language_data): ...this.
2347 (struct language_defn): New.
2348 (auto_language_defn): Delete.
2349 (unknown_language_defn): Delete.
2350 (minimal_language_defn): Delete.
2351 (ada_language_defn): Delete.
2352 (asm_language_defn): Delete.
2353 (c_language_defn): Delete.
2354 (cplus_language_defn): Delete.
2355 (d_language_defn): Delete.
2356 (f_language_defn): Delete.
2357 (go_language_defn): Delete.
2358 (m2_language_defn): Delete.
2359 (objc_language_defn): Delete.
2360 (opencl_language_defn): Delete.
2361 (pascal_language_defn): Delete.
2362 (rust_language_defn): Delete.
2363 * gdb/m2-lang.c (m2_language_defn): Convert to...
2364 (m2_language_data): ...this.
2365 (class m2_language): New class.
2366 (m2_language_defn): New static global.
2367 * gdb/objc-lang.c (objc_language_defn): Convert to...
2368 (objc_language_data): ...this.
2369 (class objc_language): New class.
2370 (objc_language_defn): New static global.
2371 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2372 (opencl_language_data): ...this.
2373 (class opencl_language): New class.
2374 (opencl_language_defn): New static global.
2375 * gdb/p-lang.c (pascal_language_defn): Convert to...
2376 (pascal_language_data): ...this.
2377 (class pascal_language): New class.
2378 (pascal_language_defn): New static global.
2379 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2380 language pointer, update comment format.
2381 * gdb/rust-lang.c (rust_language_defn): Convert to...
2382 (rust_language_data): ...this.
2383 (class rust_language): New class.
2384 (rust_language_defn): New static global.
2385
1313c56e
AB
23862020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2387
2388 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2389 member variable.
2390 <m_stmt_at_address>: New member variable.
2391 (lnp_state_machine::record_line): Don't record some lines, update
2392 tracking of is_stmt at the same address.
2393 (lnp_state_machine::lnp_state_machine): Initialise new member
2394 variables.
2395
b7ed9f3d
ST
23962020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2397
2398 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2399 "-include gnu-nat-mig.h".
2400 * gnu-nat-mig.h: New file.
2401 * gnu-nat.c: Include "gnu-nat-mig.h".
2402 (exc_server, msg_reply_server, notify_server,
2403 process_reply_server): Remove declarations.
2404
14a8ad62
ST
24052020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2406
2407 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2408 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2409 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2410 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2411 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2412 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2413 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2414 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2415 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2416 to gnu_nat_target class.
2417 * gnu-nat.c: Likewise.
2418 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2419 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2420 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2421 object.
2422 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2423 instead of `gnu_target'.
2424
0af5e106
ST
24252020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2426
2427 * i386-gnu-tdep.c: Include "gdbcore.h"
2428 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2429 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2430 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2431 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2432 i386_gnu_sigcontext_addr): New functions
2433 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2434 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2435 tdep.
2436
078f2fc9
ST
24372020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2438
2439 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2440 before fork_inferior call. Avoid calling it if target_is_pushed returns
2441 true.
2442
53dff92c
ST
24432020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2444
2445 * gnu-nat.h (gnu_target): New variable declaration.
2446 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2447 gnu_target.
2448 * gnu-nat.c (gnu_target): New variable.
2449 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2450 add_thread_silent, and add_thread calls.
2451 (gnu_nat_target::create_inferior): Pass gnu_target to
2452 add_thread_silent, thread_change_ptid call.
2453 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2454 call.
2455
5a8b8627
ST
24562020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2457
2458 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2459 (gnu_nat_target::find_memory_regions): Remove unused
2460 `old_address' variable.
2461
366f550a
ST
24622020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2463
2464 * gnu-nat.c: Include "gdbarch.h".
2465
f14871bf
ST
24662020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2467
2468 * reply_mig_hack.awk (Error return): Cast function through
2469 void *, to bypass compiler function call check.
2470
c6887cfb
ST
24712020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2472
2473 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2474 $(srcdir)/reply_mig_hack.awk.
2475
6930bffe
ST
24762020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2477
2478 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2479
112c22ed
JG
24802020-05-30 Jonny Grant <jg@jguk.org>
2481
2482 * configure.ac (ACX_BUGURL): change bug URL to https.
2483
f68f85b5
PA
24842020-05-30 Pedro Alves <palves@redhat.com>
2485
2486 * cp-support.c (replace_typedefs_template): New.
2487 (replace_typedefs_qualified_name): Handle
2488 DEMANGLE_COMPONENT_TEMPLATE.
2489
976ca316
SM
24902020-05-29 Simon Marchi <simon.marchi@efficios.com>
2491
2492 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2493 dwarf2/index-cache.h, dwarf2/index-write.c,
2494 dwarf2/index-write.h, dwarf2/line-header.c,
2495 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2496 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2497 variables and fields from `dwarf2_per_objfile` to just
2498 `per_objfile` throughout.
2499
989ade05
SM
25002020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2501
2502 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2503 <push_dwarf_reg_entry_value>: Add comment.
2504
c47bae85
KB
25052020-05-28 Kevin Buettner <kevinb@redhat.com>
2506 Keith Seitz <keiths@redhat.com>
2507
2508 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2509 instead of PyEval_ReleaseLock.
2510 (class gdbpy_gil): Move to earlier in file.
2511 (finalize_python): Set gdb_python_initialized.
2512 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2513 when not initialized.
2514
44486dcf
SM
25152020-05-28 Simon Marchi <simon.marchi@efficios.com>
2516
2517 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2518 <push_dwarf_reg_entry_value>: Remove assert. Override
2519 per_objfile with caller_per_objfile.
2520
f030440d
TV
25212020-05-28 Tom de Vries <tdevries@suse.de>
2522
2523 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2524 PR gold/15646 workaround to symbol kind "type".
2525
f0fbb768
TT
25262020-05-27 Tom Tromey <tromey@adacore.com>
2527
2528 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2529
af0b2a3e
TT
25302020-05-27 Tom Tromey <tromey@adacore.com>
2531
2532 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2533 Use htab_find_with_hash.
2534 <add_abbrev>: Remove "abbrev_number" parameter.
2535 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2536 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2537 (hash_abbrev): Add comment.
2538 (abbrev_table::lookup_abbrev): Move to header file.
2539 (abbrev_table::read): Update.
2540
7d00ffec
TT
25412020-05-27 Tom Tromey <tromey@adacore.com>
2542
2543 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2544 method.
2545 <canonical_name>: New member.
2546 <raw_name>: Rename from "name".
2547 (partial_die_info): Initialize canonical_name.
2548 (scan_partial_symbols): Check raw_name.
2549 (partial_die_parent_scope, partial_die_full_name)
2550 (add_partial_symbol, add_partial_subprogram)
2551 (add_partial_enumeration, load_partial_dies): Use "name" method.
2552 (partial_die_info::name): New method.
2553 (partial_die_info::read, guess_partial_die_structure_name)
2554 (partial_die_info::fixup): Update.
2555
697bba18
TT
25562020-05-27 Tom Tromey <tromey@adacore.com>
2557
2558 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2559 <get_ref_die_offset>: Inline.
2560 <get_ref_die_offset_complaint>: New method.
2561 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2562 (attribute::get_ref_die_offset_complaint): Rename from
2563 get_ref_die_offset. Just issue complaint.
2564
c17ace43
HD
25652020-05-27 Hannes Domani <ssbssa@yahoo.de>
2566
2567 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2568
96445f0b
HD
25692020-05-27 Hannes Domani <ssbssa@yahoo.de>
2570
2571 * exec.c (exec_file_attach): Use errno value of first openp failure.
2572
ac637ec3
HD
25732020-05-27 Hannes Domani <ssbssa@yahoo.de>
2574
2575 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2576 Don't close thread handle.
2577
17ee85fc
TT
25782020-05-27 Tom Tromey <tom@tromey.com>
2579 Simon Marchi <simon.marchi@efficios.com>
2580
2581 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2582 shared_ptr.
2583 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2584 member.
2585 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2586 dwarf2_per_bfd_objfile_data_key>: New globals.
2587 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2588 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2589 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2590 shared.
2591 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2592 short-circuit when sharing.
2593 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2594 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2595
39b16f87
SM
25962020-05-27 Simon Marchi <simon.marchi@efficios.com>
2597
2598 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2599 to...
2600 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2601 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2602
fcf23d5b
SM
26032020-05-27 Simon Marchi <simon.marchi@efficios.com>
2604
2605 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2606 build_name_components, find_name_components_bounds>:
2607 Add per_objfile parameter.
2608 (struct mapped_index) <symbol_name_at>: Likewise.
2609 (struct mapped_debug_names): Remove constructor.
2610 <dwarf2_per_objfile>: Remove field.
2611 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2612 (mapped_index_base::find_name_components_bounds,
2613 mapped_index_base::build_name_components,
2614 dw2_expand_symtabs_matching_symbol): Likewise.
2615 (class mock_mapped_index) <symbol_name_at>: Likewise.
2616 (check_match): Likewise.
2617 (check_find_bounds_finds): Likewise.
2618 (test_mapped_index_find_name_component_bounds): Update.
2619 (CHECK_MATCH): Update.
2620 (dw2_expand_symtabs_matching): Update.
2621 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2622 per_objfile parameter.
2623 <find_vec_in_debug_names>: Likewise.
2624 <m_per_objfile>: New field.
2625 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2626 parameter.
2627 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2628 (dw2_debug_names_iterator::next): Update.
2629 (dw2_debug_names_lookup_symbol): Update.
2630 (dw2_debug_names_expand_symtabs_for_function): Update.
2631 (dw2_debug_names_map_matching_symbols): Update.
2632 (dw2_debug_names_expand_symtabs_matching): Update.
2633 (dwarf2_read_debug_names): Update.
2634
7188ed02
SM
26352020-05-27 Simon Marchi <simon.marchi@efficios.com>
2636
2637 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2638 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2639 move to dwarf2_per_objfile.
2640 <read_in_chain>: Remove.
2641 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2642 remove_all_cus, age_comp_units>: New methods.
2643 <m_dwarf2_cus>: New member.
2644 (struct dwarf2_per_cu_data) <cu>: Remove.
2645 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2646 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2647 moved to methods of dwarf2_per_objfile.
2648 (dwarf2_clear_marks): Remove.
2649 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2650 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2651 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2652 (dwarf2_per_objfile::remove_all_cus): New.
2653 (class free_cached_comp_units) <~free_cached_comp_units>:
2654 Update.
2655 (load_cu): Update.
2656 (dw2_do_instantiate_symtab): Adjust.
2657 (fill_in_sig_entry_from_dwo_entry): Adjust.
2658 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2659 (cutu_reader::cutu_reader): Likewise.
2660 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2661 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2662 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2663 and dwarf2_per_objfile::age_comp_units.
2664 (load_partial_comp_unit): Update.
2665 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2666 (process_queue): Likewise.
2667 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2668 backlink.
2669 (dwarf2_read_addr_index): Likewise.
2670 (follow_die_offset): Likewise.
2671 (dwarf2_fetch_die_loc_sect_off): Likewise.
2672 (dwarf2_fetch_constant_bytes): Likewise.
2673 (dwarf2_fetch_die_type_sect_off): Likewise.
2674 (follow_die_sig_1): Likewise.
2675 (load_full_type_unit): Likewise.
2676 (read_signatured_type): Likewise.
2677 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2678 (dwarf2_cu::~dwarf2_cu): Remove.
2679 (dwarf2_per_objfile::get_cu): New.
2680 (dwarf2_per_objfile::set_cu): New.
2681 (age_cached_comp_units): Rename to...
2682 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2683 to std::unordered_map.
2684 (free_one_cached_comp_unit): Rename to...
2685 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2686 to std::unordered_map.
2687 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2688 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2689 a dwarf2_per_objfile in data.
2690 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2691 (dwarf2_clear_marks): Remove.
2692
2e671100
SM
26932020-05-27 Simon Marchi <simon.marchi@efficios.com>
2694
2695 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2696 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2697 (init_tu_and_read_dwo_dies): Likewise.
2698 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2699 (cutu_reader::cutu_reader): Likewise.
2700 (load_partial_comp_unit): Likewise.
2701 (process_psymtab_comp_unit): Update.
2702 (build_type_psymtabs_1): Update.
2703 (process_skeletonless_type_unit): Update.
2704 (load_full_comp_unit): Update.
2705 (find_partial_die): Update.
2706 (dwarf2_read_addr_index): Update.
2707 (read_signatured_type): Update.
2708
2e6a9f79
SM
27092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2710
2711 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2712 m_header_read_in>: New fields.
2713 <get_header>: New method.
2714 * dwarf2/read.c (per_cu_header_read_in): Remove.
2715 (dwarf2_per_cu_data::get_header): New.
2716 (dwarf2_per_cu_data::addr_size): Update.
2717 (dwarf2_per_cu_data::offset_size): Update.
2718 (dwarf2_per_cu_data::ref_addr_size): Update.
2719
1b555f17
SM
27202020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2721
2722 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2723 (dw2_do_instantiate_symtab): Update.
2724 (queue_and_load_all_dwo_tus): Change parameter from
2725 dwarf2_per_cu_data to dwarf2_cu.
2726 (dwarf2_fetch_die_loc_sect_off): Update.
2727 (dwarf2_fetch_constant_bytes): Update.
2728 (dwarf2_fetch_die_type_sect_off): Update.
2729
8fc0b21d
SM
27302020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2731
2732 * dwarf2/read.c (process_full_comp_unit,
2733 process_full_type_unit): Remove per_cu, per_objfile paramters.
2734 Add dwarf2_cu parameter.
2735 (process_queue): Update.
2736
168c9250
SM
27372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2738
2739 * dwarf2/read.c (create_cu_from_index_list): Replace
2740 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2741 (create_cus_from_index_list): Likewise.
2742 (create_cus_from_index): Likewise.
2743 (create_signatured_type_table_from_index): Likewise.
2744 (create_cus_from_debug_names_list): Likewise.
2745 (create_cus_from_debug_names): Likewise.
2746 (dwarf2_read_gdb_index): Update.
2747 (dwarf2_read_debug_names): Update.
2748
e286671b
TT
27492020-05-27 Tom Tromey <tom@tromey.com>
2750 Simon Marchi <simon.marchi@efficios.com>
2751
2752 * dwarf2/read.h (struct dwarf2_per_objfile)
2753 <get_type_for_signatured_type, set_type_for_signatured_type>:
2754 New methods.
2755 <m_type_map>: New member.
2756 (struct signatured_type) <type>: Remove.
2757 * dwarf2/read.c
2758 (dwarf2_per_objfile::get_type_for_signatured_type,
2759 dwarf2_per_objfile::set_type_for_signatured_type): New.
2760 (get_signatured_type): Use new methods.
2761
8adb8487
TT
27622020-05-27 Tom Tromey <tom@tromey.com>
2763 Simon Marchi <simon.marchi@efficios.com>
2764
2765 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2766 (struct dwarf2_per_objfile) <type_units>: New member.
2767 <get_type_unit_group_unshareable>: New method.
2768 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2769 num_symtabs, symtabs>: Remove; move to
2770 type_unit_group_unshareable.
2771 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2772 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2773 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2774
127bbf4b
SM
27752020-05-27 Simon Marchi <simon.marchi@efficios.com>
2776
2777 * dwarf2/read.h (struct dwarf2_per_cu_data):
2778 <dwarf2_per_objfile>: Remove.
2779 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2780 dwarf2_per_objfile.
2781 (create_signatured_type_table_from_index): Likewise.
2782 (create_signatured_type_table_from_debug_names): Likewise.
2783 (create_debug_type_hash_table): Likewise.
2784 (fill_in_sig_entry_from_dwo_entry): Likewise.
2785 (create_type_unit_group): Likewise.
2786 (read_comp_units_from_section): Likewise.
2787 (create_cus_hash_table): Likewise.
2788
f6e649dd
SM
27892020-05-27 Simon Marchi <simon.marchi@efficios.com>
2790
2791 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2792 dwarf2_per_cu_data::dwarf2_per_objfile.
2793 (compute_compunit_symtab_includes): Likewise.
2794 (dwarf2_cu::start_symtab): Likewise.
2795
aa66c379
SM
27962020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2797
2798 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2799 parameter.
2800 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2801 (read_namespace_alias): Update.
2802 (lookup_die_type): Update.
2803 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2804 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2805 Update.
2806 (disassemble_dwarf_expression): Update.
2807
120ce1b5
SM
28082020-05-27 Simon Marchi <simon.marchi@efficios.com>
2809
2810 * dwarf2/read.h (struct dwarf2_queue_item): Add
2811 dwarf2_per_objfile parameter, assign new parameter.
2812 <per_objfile>: New field.
2813 * dwarf2/read.c (free_one_cached_comp_unit): Add
2814 dwarf2_per_objfile parameter.
2815 (queue_comp_unit): Likewise.
2816 (dw2_do_instantiate_symtab): Update.
2817 (process_psymtab_comp_unit): Update.
2818 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2819 (process_imported_unit_die): Update.
2820 (queue_and_load_dwo_tu): Update.
2821 (follow_die_offset): Update.
2822 (follow_die_sig_1): Update.
2823
9f47c707
SM
28242020-05-27 Simon Marchi <simon.marchi@efficios.com>
2825
2826 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2827 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2828 (read_call_site_scope): Assign per_objfile.
2829 (dwarf2_per_cu_data::objfile): Remove.
2830 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2831 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2832 dwarf2_per_objfile parameter.
2833 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2834 dwarf2_per_objfile parameter.
2835 (dwarf_expr_reg_to_entry_parameter): Add output
2836 dwarf2_per_objfile parameter.
2837 (locexpr_get_frame_base): Update.
2838 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2839 <push_dwarf_reg_entry_value>: Update.
2840 <call_site_to_target_addr>: Update.
2841 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2842 parameter.
2843 (value_of_dwarf_reg_entry): Update.
2844 (rw_pieced_value): Update.
2845 (indirect_synthetic_pointer): Update.
2846 (dwarf2_evaluate_property): Update.
2847 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2848 parameter.
2849 (locexpr_read_variable): Update.
2850 (locexpr_get_symbol_read_needs): Update.
2851 (loclist_read_variable): Update.
2852
14095eb3
SM
28532020-05-27 Simon Marchi <simon.marchi@efficios.com>
2854
2855 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2856 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2857 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2858 parameter.
2859 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2860 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2861 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2862 parameter.
2863 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2864 sect_variable_value): Add dwarf2_per_objfile parameter.
2865 (class dwarf_evaluate_loc_desc) <dwarf_call,
2866 dwarf_variable_value>: Update.
2867 (fetch_const_value_from_synthetic_pointer): Add
2868 dwarf2_per_objfile parameter.
2869 (fetch_const_value_from_synthetic_pointer): Update.
2870 (coerced_pieced_ref): Update.
2871 (class symbol_needs_eval_context) <dwarf_call,
2872 dwarf_variable_value>: Update.
2873 (dwarf2_compile_expr_to_ax): Update.
2874
3c3cd3d4
SM
28752020-05-27 Simon Marchi <simon.marchi@efficios.com>
2876
2877 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2878 parameter.
2879 (dwarf2_evaluate_loc_desc_full): Update.
2880
82ca3f51
SM
28812020-05-27 Simon Marchi <simon.marchi@efficios.com>
2882
2883 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2884 parameter.
2885 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2886 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2887 dwarf2_per_objfile parameter.
2888 (decode_debug_loc_dwo_addresses): Likewise.
2889 (dwarf2_find_location_expression): Update.
2890 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2891 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2892 parameter.
2893 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2894 parameter.
2895 (locexpr_describe_location_1): Likewise.
2896 (locexpr_describe_location): Update.
2897
4b167ea1
SM
28982020-05-27 Simon Marchi <simon.marchi@efficios.com>
2899
2900 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2901 Remove.
2902 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2903 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2904 (dwarf2_compile_property_to_c): Update.
2905 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2906 use text offset from objfile.
2907 (locexpr_tracepoint_var_ref): Update.
2908 (locexpr_generate_c_location): Update.
2909 (loclist_describe_location): Update.
2910 (loclist_tracepoint_var_ref): Update.
2911 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2912 dwarf2_per_objfile parameter.
2913 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2914 use text offset from objfile.
2915 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2916
89b07335
SM
29172020-05-27 Simon Marchi <simon.marchi@efficios.com>
2918
2919 * dwarf2/expr.h (struct dwarf_expr_context)
2920 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2921 <offset>: Remove.
2922 <per_objfile>: New member.
2923 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2924 dwarf2_per_objfile parameter. Don't set offset, set
2925 per_objfile.
2926 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2927 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2928 a dwarf2_per_objfile object instead of an offset.
2929 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2930 constructor.
2931 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2932 to dwarf2_expr_executor constructor. Don't set offset.
2933 (dwarf2_fetch_cfa_info): Update.
2934 (struct dwarf2_frame_cache) <text_offset>: Remove.
2935 <per_objfile>: New field.
2936 (dwarf2_frame_cache): Update.
2937 (dwarf2_frame_prev_register): Update.
2938 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2939 <dwarf_evaluate_loc_desc>: Add constructor.
2940 (dwarf2_evaluate_loc_desc_full): Update.
2941 (dwarf2_locexpr_baton_eval): Update.
2942 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2943 Add constructor.
2944 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2945
293e7e51
SM
29462020-05-27 Simon Marchi <simon.marchi@efficios.com>
2947
2948 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2949 addr_sized_int_type>: Move to dwarf2_cu.
2950 <int_type>: Move to dwarf2_per_objfile.
2951 (struct dwarf2_per_objfile) <int_type>: Move here.
2952 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2953 addr_sized_int_type>: Move here.
2954 (read_func_scope): Update.
2955 (read_array_type): Update.
2956 (read_tag_string_type): Update.
2957 (attr_to_dynamic_prop): Update.
2958 (dwarf2_per_cu_data::int_type): Rename to...
2959 (dwarf2_per_objfile::int_type): ... this.
2960 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2961 (dwarf2_cu::addr_sized_int_type): ... this.
2962 (read_subrange_type): Update.
2963 (dwarf2_per_cu_data::addr_type): Rename to...
2964 (dwarf2_cu::addr_type): ... this.
2965 (set_die_type): Update.
2966
64874a40
SM
29672020-05-27 Simon Marchi <simon.marchi@efficios.com>
2968
2969 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2970 data through per_cu->cu.
2971
4ab09049
SM
29722020-05-27 Simon Marchi <simon.marchi@efficios.com>
2973
2974 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2975 dwarf2_per_cu_data parameter fo dwarf2_cu.
2976 (lookup_dwo_type_unit): Likewise.
2977 (read_cutu_die_from_dwo): Likewise.
2978 (lookup_dwo_unit): Likewise.
2979 (open_and_init_dwo_file): Likewise.
2980 (lookup_dwo_cutu): Likewise.
2981 (lookup_dwo_comp_unit): Likewise.
2982 (lookup_dwo_type_unit): Likewise.
2983 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2984 (cutu_reader::cutu_reader): Update.
2985
47b14e86
SM
29862020-05-27 Simon Marchi <simon.marchi@efficios.com>
2987
2988 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2989 parameter.
2990 (process_full_type_unit): Likewise.
2991 (process_queue): Update.
2992
43182c09
SM
29932020-05-27 Simon Marchi <simon.marchi@efficios.com>
2994
2995 * dwarf2/read.c (recursively_compute_inclusions): Add
2996 dwarf2_per_objfile parameter.
2997 (compute_compunit_symtab_includes): Likewise.
2998 (process_cu_includes): Update.
2999
7aa104c4
SM
30002020-05-27 Simon Marchi <simon.marchi@efficios.com>
3001
3002 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3003 parameter.
3004 (create_type_unit_group): Update.
3005 (process_psymtab_comp_unit_reader): Update.
3006 (build_type_psymtabs_reader): Update.
3007
e3beb21d
SM
30082020-05-27 Simon Marchi <simon.marchi@efficios.com>
3009
3010 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3011 object through m_this_cu->cu.
3012
d460f660
SM
30132020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3014
3015 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3016 the info parameter.
3017 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3018
ab432490
SM
30192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3020
3021 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3022 per_objfile parameter.
3023 (load_full_type_unit): Add per_objfile parameter.
3024 (read_signatured_type): Likewise.
3025 (load_full_comp_unit): Likewise.
3026 (load_cu): Likewise.
3027 (dw2_do_instantiate_symtab): Likewise.
3028 (dw2_get_file_names): Likewise.
3029 (dw2_map_symtabs_matching_filename): Update.
3030 (dw_expand_symtabs_matching_file_matcher): Update.
3031 (dw2_map_symbol_filenames): Update.
3032 (process_psymtab_comp_unit): Add per_objfile parameter.
3033 (build_type_psymtabs_1): Update.
3034 (process_skeletonless_type_unit): Update.
3035 (dwarf2_build_psymtabs_hard): Update.
3036 (load_partial_comp_unit): Add per_objfile parameter.
3037 (scan_partial_symbols): Update.
3038 (load_full_comp_unit): Add per_objfile parameter.
3039 (process_imported_unit_die): Update.
3040 (create_cus_hash_table): Update.
3041 (find_partial_die): Update.
3042 (dwarf2_read_addr_index): Update.
3043 (follow_die_offset): Update.
3044 (dwarf2_fetch_die_loc_sect_off): Update.
3045 (dwarf2_fetch_constant_bytes): Update.
3046 (dwarf2_fetch_die_type_sect_off): Update.
3047 (follow_die_sig_1): Update.
3048 (load_full_type_unit): Add per_objfile parameter.
3049 (read_signatured_type): Likewise.
3050
313bad1b
SM
30512020-05-27 Simon Marchi <simon.marchi@efficios.com>
3052
3053 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3054 of objfile_name.
3055
c3699833
SM
30562020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3057
3058 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3059 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3060 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3061 field.
3062 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3063 (create_cus_from_index): Update.
3064 (dwarf2_read_gdb_index): Update.
3065 (create_cus_from_debug_names): Update.
3066 (dwarf2_read_debug_names): Update.
3067 (get_abbrev_section_for_cu): Update.
3068 (create_all_comp_units): Update.
3069 (read_attribute_value): Update.
3070 (get_debug_line_section): Update.
3071 * dwarf2/index-cache.c (index_cache::store): Update.
3072 * dwarf2/index-write.c (save_gdb_index_command): Update.
3073 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3074
1859c670
SM
30752020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3076
3077 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3078 member.
3079 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3080 dwarf2_per_cu_data::per_bfd.
3081 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3082 (create_type_unit_group): Likewise.
3083 (queue_comp_unit): Remove reference to
3084 per_cu->dwarf2_per_objfile.
3085 (maybe_queue_comp_unit): Likewise.
3086 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3087 (create_cus_hash_table): Assign new field.
3088
5e22e966
SM
30892020-05-27 Simon Marchi <simon.marchi@efficios.com>
3090
3091 * dwarf2/read.c: Replace
3092 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3093 dwarf2_cu->per_objfile throughout.
3094
97a1449a
SM
30952020-05-27 Simon Marchi <simon.marchi@efficios.com>
3096
3097 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3098 parameter, don't use per_cu->dwarf2_per_objfile.
3099 (dw2_instantiate_symtab): Likewise.
3100 (dw2_find_last_source_symtab): Update.
3101 (dw2_map_expand_apply): Update.
3102 (dw2_lookup_symbol): Update.
3103 (dw2_expand_symtabs_for_function): Update.
3104 (dw2_expand_all_symtabs): Update.
3105 (dw2_expand_symtabs_with_fullname): Update.
3106 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3107 don't use per_cu->dwarf2_per_objfile.
3108 (dw2_expand_marked_cus): Update.
3109 (dw2_find_pc_sect_compunit_symtab): Update.
3110 (dw2_debug_names_lookup_symbol): Update.
3111 (dw2_debug_names_expand_symtabs_for_function): Update.
3112 (dw2_debug_names_map_matching_symbols): Update.
3113 (dwarf2_psymtab::expand_psymtab): Update.
3114
9e021579
SM
31152020-05-27 Simon Marchi <simon.marchi@efficios.com>
3116
3117 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3118 <per_objfile>: New member.
3119 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3120 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3121 call to dwarf2_cu.
3122 (cutu_reader::cutu_reader): Update.
3123 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3124
ae090bdb
SM
31252020-05-27 Simon Marchi <simon.marchi@efficios.com>
3126
3127 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3128 struct dwarf2_per_objfile.
3129 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3130 dwarf2_per_bfd.
3131 * dwarf2/read.c (set_die_type): Update.
3132 (get_die_type_at_offset): Update.
3133
af758d11
SM
31342020-05-27 Tom Tromey <tom@tromey.com>
3135 Simon Marchi <simon.marchi@efficios.com>
3136
3137 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3138 method.
3139 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3140 get_symtab, set_symtab>: New methods.
3141 <m_symtabs>: New field.
3142 (struct dwarf2_psymtab): Derive from partial_symtab.
3143 <readin_p, get_compunit_symtab>: Declare methods.
3144 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3145 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3146 New methods.
3147 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3148 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3149 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3150 (dw2_symtab_iter_next, dw2_print_stats)
3151 (dw2_expand_symtabs_with_fullname)
3152 (dw2_expand_symtabs_matching_one)
3153 (dw_expand_symtabs_matching_file_matcher)
3154 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3155 (dw2_debug_names_iterator::next)
3156 (dw2_debug_names_map_matching_symbols)
3157 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3158 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3159 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3160 New methods.
3161 (get_compunit_symtab, process_full_comp_unit)
3162 (process_full_type_unit): Update.
3163 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3164
5989a64e
SM
31652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3166
3167 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3168 then introduce a new dwarf2_per_objfile type.
3169 <read_line_string>: Move to the new dwarf2_per_objfile type.
3170 <objfile>: Likewise.
3171 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3172 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3173 dwarf2_per_objfile->per_bfd.
3174 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3175 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3176 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3177 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3178 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3179 (dwarf2_per_objfile::locate_sections): Rename to...
3180 (dwarf2_per_bfd::locate_sections): ... this.
3181 (dwarf2_per_objfile::get_cutu): Rename to...
3182 (dwarf2_per_bfd::get_cutu): ... this.
3183 (dwarf2_per_objfile::get_cu): Rename to...
3184 (dwarf2_per_bfd::get_cu): ... this.
3185 (dwarf2_per_objfile::get_tu): Rename to...
3186 (dwarf2_per_bfd::get_tu): ... this.
3187 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3188 (dwarf2_per_bfd::allocate_per_cu): ... this.
3189 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3190 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3191 (get_gdb_index_contents_ftype): Change parameter from
3192 dwarf2_per_objfile to dwarf2_per_bfd.
3193 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3194 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3195
a50264ba
TT
31962020-05-27 Tom Tromey <tom@tromey.com>
3197 Simon Marchi <simon.marchi@efficios.com>
3198
3199 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3200 (allocate_piece_closure): Set "per_objfile" member.
3201 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3202 (locexpr_describe_location, loclist_describe_location): Use new
3203 member.
3204 * dwarf2/read.c (read_call_site_scope)
3205 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3206 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3207 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3208 handle_data_member_location): Set per_objfile member.
3209 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3210 member.
3211 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3212
d3473f0c
TT
32132020-05-27 Tom Tromey <tom@tromey.com>
3214
3215 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3216 allocate_signatured_type>: Declare new methods.
3217 <m_num_psymtabs>: New member.
3218 (struct dwarf2_per_cu_data) <index>: New member.
3219 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3220 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3221 (create_cu_from_index_list): Use allocate_per_cu.
3222 (create_signatured_type_table_from_index)
3223 (create_signatured_type_table_from_debug_names)
3224 (create_debug_type_hash_table, add_type_unit)
3225 (read_comp_units_from_section): Use allocate_signatured_type.
3226
5717c425
TT
32272020-05-27 Tom Tromey <tom@tromey.com>
3228
3229 * psymtab.c (partial_map_expand_apply)
3230 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3231 (psym_lookup_global_symbol_language)
3232 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3233 (psym_print_stats, psym_expand_symtabs_for_function)
3234 (psym_map_symbol_filenames, psym_map_matching_symbols)
3235 (psym_expand_symtabs_matching)
3236 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3237 (maintenance_check_psymtabs): Update.
3238 * psympriv.h (struct partial_symtab) <readin_p,
3239 get_compunit_symtab>: Add objfile parameter.
3240 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3241 Likewise.
3242 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3243 get_compunit_symtab>: Likewise.
3244 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3245
45940949
TT
32462020-05-27 Tom Tromey <tom@tromey.com>
3247
3248 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3249 member.
3250 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3251 (create_cu_from_index_list)
3252 (create_signatured_type_table_from_index)
3253 (create_signatured_type_table_from_debug_names)
3254 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3255 (dwarf2_create_include_psymtab)
3256 (create_debug_type_hash_table, add_type_unit)
3257 (create_type_unit_group, read_comp_units_from_section)
3258 (dwarf2_compute_name, create_cus_hash_table)
3259 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3260 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3261 obstack.
3262 (dw2_get_real_path): Likewise. Change argument to
3263 dwarf2_per_objfile.
3264
f8c6d152
LM
32652020-05-27 Luis Machado <luis.machado@linaro.org>
3266
3267 PR tdep/26000
3268 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3269 for ldrd (immediate).
3270
e98d2e6d
PW
32712020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3272
3273 * command.h: Add comment giving the name of class_tui.
3274 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3275 create the fake command for the help for class_tui.
3276
53a47a3e
TT
32772020-05-26 Tom Tromey <tromey@adacore.com>
3278
3279 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3280 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3281 (val_atr): New function.
3282 (value_val_atr): Use it.
3283 * ada-valprint.c (print_optional_low_bound): Change low bound
3284 handling for enums.
3285 (val_print_packed_array_elements): Don't call discrete_position.
3286 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3287 discrete_position for enum types.
3288 * language.c (default_print_array_index): Change type.
3289 * language.h (struct language_defn) <la_print_array_index>: Add
3290 index_type parameter, change type of index_value.
3291 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3292 (default_print_array_index): Update.
3293 * valprint.c (maybe_print_array_index): Don't call
3294 value_from_longest. Update.
3295 (value_print_array_elements): Don't call discrete_position.
3296
0bc2354b
TT
32972020-05-26 Tom Tromey <tromey@adacore.com>
3298
3299 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3300 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3301
1218a4bf
CDA
33022020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3303
3304 PR gdb/13519
3305 * avr-tdep.c (avr_integer_to_address): Return data or code
3306 address accordingly to the second 'type' argument of the
3307 function.
3308
92651b1d
MW
33092020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3310
3311 * infcmd.c, inferior.h: (construct_inferior_arguments):
3312 Moved function from here to gdbsupport/common-inferior.{h,cc}
3313
0a4f5f8c
TT
33142020-05-23 Tom Tromey <tom@tromey.com>
3315
3316 Revert commit eca1f90c:
3317 * NEWS: Remove entry for completion styling.
3318 * completer.c (_rl_completion_prefix_display_length): Move
3319 declaration later.
3320 (gdb_fnprint): Revert.
3321 (gdb_display_match_list_1): Likewise.
3322 * cli/cli-style.c (completion_prefix_style)
3323 (completion_difference_style, completion_suffix_style): Remove.
3324 (_initialize_cli_style): Revert.
3325 * cli/cli-style.h (completion_prefix_style)
3326 (completion_difference_style, completion_suffix_style): Don't
3327 declare.
3328
e08bd6c5
PA
33292020-05-24 Pedro Alves <palves@redhat.com>
3330
3331 * symtab.c (completion_list_add_name): Return boolean indication
3332 of whether the symbol matched.
3333 (completion_list_add_symbol): Don't try to remove C++ aliases if
3334 the symbol didn't match in the first place.
3335 * symtab.h (completion_list_add_name): Return bool.
3336
ceacbf6e
SM
33372020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3338
3339 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3340 type::field.
3341
26f16254
JB
33422020-05-23 Joel Brobecker <brobecker@adacore.com>
3343
3344 GDB 9.2 released.
3345
eca1f90c
TT
33462020-05-23 Tom Tromey <tom@tromey.com>
3347
3348 * NEWS: Add entry for completion styling.
3349 * completer.c (_rl_completion_prefix_display_length): Move
3350 declaration earlier.
3351 (gdb_fnprint): Use completion_style.
3352 (gdb_display_match_list_1): Likewise.
3353 * cli/cli-style.c (completion_prefix_style)
3354 (completion_difference_style, completion_suffix_style): New
3355 globals.
3356 (_initialize_cli_style): Register new globals.
3357 * cli/cli-style.h (completion_prefix_style)
3358 (completion_difference_style, completion_suffix_style): Declare.
3359
51e2cfa2
PA
33602020-05-23 Pedro Alves <palves@redhat.com>
3361
3362 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3363 (parse_escape): Use ISDIGIT instead of isdigit.
3364 (puts_debug): Use gdb_isprint instead of isprint.
3365 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3366 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3367 ISSPACE instead of isspace.
3368 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3369 instead of isspace.
3370 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3371 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3372 instead of isxdigit and ISDIGIT instead of isdigit.
3373
80fc5e77
SM
33742020-05-22 Simon Marchi <simon.marchi@efficios.com>
3375
3376 * gdbtypes.h (struct type) <field>: New method.
3377 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3378 or type::field.
3379
3cabb6b0
SM
33802020-05-22 Simon Marchi <simon.marchi@efficios.com>
3381
3382 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3383 (TYPE_FIELDS): Use type::fields. Change all call sites that
3384 modify the propery to use type::set_fields instead.
3385
1f704f76
SM
33862020-05-22 Simon Marchi <simon.marchi@efficios.com>
3387
3388 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3389 type::num_fields instead.
3390
5e33d5f4
SM
33912020-05-22 Simon Marchi <simon.marchi@efficios.com>
3392
3393 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3394 methods.
3395 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3396 that modify the number of fields to use type::set_num_fields
3397 instead.
3398
9392ebb3
TT
33992020-05-22 Tom Tromey <tromey@adacore.com>
3400
3401 * compile/compile-object-load.h (munmap_list_free): Don't
3402 declare.
3403
7c13f4e8
AB
34042020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3405
3406 * annotate.c (annotate_source_line): Update return type, add call
3407 to update current symtab and line.
3408 * annotate.h (annotate_source_line): Update return type, and
3409 extend header comment.
3410 * source.c (info_line_command): Check annotation_level before
3411 calling annotate_source_line.
3412 * stack.c (print_frame_info): If calling annotate_source_line
3413 returns true, then don't print any other source line information.
3414
aa370940
SM
34152020-05-21 Simon Marchi <simon.marchi@efficios.com>
3416
3417 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3418
84d53fa9
SM
34192020-05-21 Simon Marchi <simon.marchi@efficios.com>
3420
3421 * coffread.c (patch_type): Remove NULL check before xfree.
3422 * corefile.c (set_gnutarget): Likewise.
3423 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3424 * exec.c (build_section_table): Likewise.
3425 * remote.c (remote_target::pass_signals): Likewise.
3426 * utils.c (n_spaces): Likewise.
3427 * cli/cli-script.c (document_command): Likewise.
3428 * i386-windows-tdep.c (core_process_module_section): Likewise.
3429 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3430
9d428aae
SM
34312020-05-20 Simon Marchi <simon.marchi@efficios.com>
3432
3433 * symfile.c (reread_symbols): Clear objfile's section_offsets
3434 vector and section indices, re-compute them by calling
3435 sym_offsets.
3436
250106a7
TT
34372020-05-20 Tom Tromey <tromey@adacore.com>
3438
3439 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3440 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3441
9a0bacfb
TV
34422020-05-20 Tom de Vries <tdevries@suse.de>
3443
3444 PR symtab/25833
3445 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3446
7b958a48
AM
34472020-05-20 Alan Modra <amodra@gmail.com>
3448
3449 PR 25993
3450 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3451 bfd_set_filename.
3452 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3453 passed to bfd_set_filename.
3454 * symfile-mem.c (add_vsyscall_page): Likewise for string
3455 passed to symbol_file_add_from_memory.
3456 (symbol_file_add_from_memory): Make name param a const char* and
3457 don't strdup.
3458
c7e97679
AM
34592020-05-20 Alan Modra <amodra@gmail.com>
3460
3461 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3462 rather than accessing bfd->filename directly.
3463 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3464 and use bfd_section_name.
3465 * dwarf2/frame.c (decode_frame_entry): Likewise.
3466 * exec.c (exec_set_section_address): Likewise.
3467 * solib-aix.c (solib_aix_bfd_open): Likewise.
3468 * stap-probe.c (get_stap_base_address): Likewise.
3469 * symfile.c (reread_symbols): Likewise.
3470
563c591b
TT
34712020-05-19 Tom Tromey <tromey@adacore.com>
3472
3473 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3474
f408d82c
SM
34752020-05-19 Simon Marchi <simon.marchi@efficios.com>
3476
3477 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3478
98c59b52
PA
34792020-05-19 Pedro Alves <palves@redhat.com>
3480
3481 * NEWS (set exec-file-mismatch): Adjust entry.
3482 * exec.c: Include "build-id.h".
3483 (validate_exec_file): Try to match build IDs instead of filenames.
3484 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3485 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3486 and pass down 'warn_if_slow'.
3487 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3488 gdb_bfd_open_closure to pass it down.
3489 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3490
4111f652
PA
34912020-05-19 Pedro Alves <palves@redhat.com>
3492
3493 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3494 * target.c (target_fileio_open_1): Rename to target_fileio_open
3495 and make extern. Use bool.
3496 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3497 (target_fileio_read_alloc_1): Adjust.
3498 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3499 (target_fileio_open_warn_if_slow): Delete declaration.
3500
ad80db5b
PA
35012020-05-19 Pedro Alves <palves@redhat.com>
3502
3503 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3504 Adjust all callers.
3505
1d6ce4d3
YS
35062020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3507
3508 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3509 whether disp is negative.
3510
9005fbbb
SM
35112020-05-19 Simon Marchi <simon.marchi@efficios.com>
3512
3513 * symfile.h (struct symfile_segment_data)
3514 <~symfile_segment_data>: Remove.
3515 <segment_info>: Change to std::vector.
3516 * symfile.c (default_symfile_segments): Update.
3517 * elfread.c (elf_symfile_segments): Update.
3518
68b888ff
SM
35192020-05-19 Simon Marchi <simon.marchi@efficios.com>
3520
3521 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3522 <segments>: New.
3523 <segment_bases, segment_sizes>: Remove.
3524 * symfile.c (default_symfile_segments): Update.
3525 * elfread.c (elf_symfile_segments): Update.
3526 * remote.c (remote_target::get_offsets): Update.
3527 * solib-target.c (solib_target_relocate_section_addresses):
3528 Update.
3529
62982abd
SM
35302020-05-19 Simon Marchi <simon.marchi@efficios.com>
3531
3532 * symfile.h (struct symfile_segment_data): Initialize fields.
3533 <~symfile_segment_data>: Add.
3534 (symfile_segment_data_up): New.
3535 (struct sym_fns) <sym_segments>: Return a
3536 symfile_segment_data_up.
3537 (default_symfile_segments): Return a symfile_segment_data_up.
3538 (free_symfile_segment_data): Remove.
3539 (get_symfile_segment_data): Return a symfile_segment_data_up.
3540 * symfile.c (default_symfile_segments): Likewise.
3541 (get_symfile_segment_data): Likewise.
3542 (free_symfile_segment_data): Remove.
3543 (symfile_find_segment_sections): Update.
3544 * elfread.c (elf_symfile_segments): Return a
3545 symfile_segment_data_up.
3546 * remote.c (remote_target::get_offsets): Update.
3547 * solib-target.c (solib_target_relocate_section_addresses):
3548 Update.
3549 * symfile-debug.c (debug_sym_segments): Return a
3550 symfile_segment_data_up.
3551
7f204339
RO
35522020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3553
e52a0f1b
RO
3554 PR build/25981
3555 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3556 Hardcode register numbers.
3557
7f204339
RO
3558 PR build/25981
3559 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3560 procfs_find_LDT_entry): Remove.
3561 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3562 procfs_find_LDT_entry): Remove.
3563 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3564 Remove.
3565
7f32a4d5
PA
35662020-05-17 Pedro Alves <palves@redhat.com>
3567 Andrew Burgess <andrew.burgess@embecosm.com>
3568 Keno Fischer <keno@juliacomputing.com>
3569
3570 PR gdb/25741
3571 * breakpoint.c (build_target_condition_list): Update comments.
3572 (build_target_command_list): Update comments and skip matching
3573 locations.
3574 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3575 a separate function. Simplify "set breakpoint auto-hw off"
3576 handling.
3577 (insert_breakpoints): Update comment.
3578 (tracepoint_locations_match): New parameter. For breakpoints,
3579 compare location types too, if the caller wants to.
3580 (handle_automatic_hardware_breakpoints): New functions.
3581 (bp_location_is_less_than): Also sort by location type and
3582 hardware breakpoint length.
3583 (update_global_location_list): Handle "set breakpoint auto-hw on"
3584 here.
3585 (update_breakpoint_locations): Ask breakpoint_locations_match to
3586 ignore location types.
3587
7d93a1e0
SM
35882020-05-16 Simon Marchi <simon.marchi@efficios.com>
3589
3590 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3591 type::name instead.
3592
d0e39ea2
SM
35932020-05-16 Simon Marchi <simon.marchi@efficios.com>
3594
3595 * gdbtypes.h (struct type) <name, set_name>: New methods.
3596 (TYPE_CODE): Use type::name. Change all call sites used to set
3597 the name to use type::set_name instead.
3598
2dab0c7b
TT
35992020-05-16 Tom Tromey <tom@tromey.com>
3600
3601 * top.c (quit_force): Update.
3602 * infrun.c (handle_no_resumed): Update.
3603 * top.h (all_uis): New function.
3604 (ALL_UIS): Remove.
3605
59f7bd8d
SM
36062020-05-16 Simon Marchi <simon.marchi@efficios.com>
3607
3608 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3609
9bf058f0
PA
36102020-05-16 Pedro Alves <palves@redhat.com>
3611
3612 * ia64-linux-nat.c
3613 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3614 Declare method.
3615 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3616
8f86ae1a
SM
36172020-05-15 Simon Marchi <simon.marchi@efficios.com>
3618
3619 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3620 (sparc64_adi_info): Likewise.
3621
d6bc0792
TT
36222020-05-15 Tom Tromey <tom@tromey.com>
3623
3624 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3625 block_objfile.
3626 (lookup_objfile_from_block): Remove.
3627 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3628 (lookup_global_symbol): Use block_objfile.
3629 * symtab.h (lookup_objfile_from_block): Don't declare.
3630 * printcmd.c (clear_dangling_display_expressions): Use
3631 block_objfile.
3632 * parse.c (operator_check_standard): Use block_objfile.
3633
8c14c3a3
TT
36342020-05-15 Tom Tromey <tom@tromey.com>
3635
3636 * language.c (language_alloc_type_symbol): Set
3637 SYMBOL_SECTION.
3638 * symtab.c (initialize_objfile_symbol): Remove.
3639 (allocate_symbol): Remove.
3640 (allocate_template_symbol): Remove.
3641 * dwarf2/read.c (fixup_go_packaging): Use "new".
3642 (new_symbol): Use "new".
3643 (read_variable): Don't call initialize_objfile_symbol. Use
3644 "new".
3645 (read_func_scope): Use "new".
3646 * xcoffread.c (process_xcoff_symbol): Don't call
3647 initialize_objfile_symbol.
3648 (SYMBOL_DUP): Remove.
3649 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3650 "new".
3651 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3652 (allocate_template_symbol): Don't declare.
3653 (struct symbol): Add copy constructor. Change defaults.
3654 * jit.c (finalize_symtab): Use "new".
3655 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3656 Use "new".
3657 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3658 (common_block_end): Use "new".
3659 * mdebugread.c (parse_symbol): Use "new".
3660 (new_symbol): Likewise.
3661
5b4a1a8d
PW
36622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3663
3664 * NEWS: Mention changes to help and apropos.
3665
57b4f16e
PW
36662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3667
3668 * command.h (enum command_class): Improve comments, document
3669 that class_alias is for user-defined aliases, give the class
3670 name for each class, remove unused class_xdb.
3671 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3672 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3673 by a precise class.
3674 * infcmd.c (_initialize_infcmd): Likewise.
3675 * reverse.c (_initialize_reverse): Likewise.
3676 * stack.c (_initialize_stack): Likewise.
3677 * symfile.c (_initialize_symfile): Likewise.
3678 * tracepoint.c (_initialize_tracepoint): Likewise.
3679
7c05caf7
PW
36802020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3681
3682 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3683 when their aliased command is traversed.
3684 (help_cmd): Add fput_command_names_styled call to
3685 output command name and aliases when command has an alias.
3686
3b3aaacb
PW
36872020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3688
3689 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3690 * cli/cli-decode.c (help_cmd_list): Declare as static,
3691 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3692 a command together with the command.
3693 (fput_command_name_styled, fput_command_names_styled): New functions.
3694 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3695 fput_command_name_styled.
3696 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3697 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3698
7aa1b46f
PW
36992020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3700
3701 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3702 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3703 * command.h (cmd_show_list): Likewise.
3704 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3705 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3706
89bcba74
PW
37072020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3708
3709 * unittests/command-def-selftests.c (traverse_command_structure):
3710 Verify all commands of a list have the same prefix command and
3711 that only the top cmdlist commands have a null prefix.
3712
3f4d92eb
PW
37132020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3714
3715 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3716 as prefix, not one of its aliases.
3717 (set_cmd_prefix): Remove.
3718 (do_add_cmd): Centralize the setting of the prefix of a command, when
3719 command is defined after its full chain of prefix commands.
3720 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3721 (add_setshow_cmd_full): Likewise.
3722 (update_prefix_field_of_prefixed_commands): New function.
3723 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3724 update_prefix_field_of_prefixed_commands.
3725 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3726 addresses of remote_set_cmdlist and remote_show_cmdlist given
3727 as argument, not the address of an argument.
3728 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3729 * gdb/remote.c (_initialize_remote): Likewise.
3730
0605465f
PW
37312020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3732
3733 * cli/cli-cmds.c (alias_command): Check for an existing alias
3734 using lookup_cmd_composition, as valid_command_p is too strict
3735 and forbids aliases that are the prefix of an existing alias
3736 or command.
3737 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3738 command is properly recognised as a valid command.
3739
58e6ac70
PW
37402020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3741
3742 * unittests/help-doc-selftests.c: Rename to
3743 unittests/command-def-selftests.c
3744 * unittests/command-def-selftests.c (help_doc_tests): Update some
3745 comments.
3746 (command_structure_tests, traverse_command_structure): New namespace
3747 and function.
3748 (command_structure_invariants_tests): New function.
3749 (_initialize_command_def_selftests) Renamed from
3750 _initialize_help_doc_selftests, register command_structure_invariants
3751 selftest.
3752
a7b9ceb8
PW
37532020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3754
3755 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3756 an alias of 'show'.
3757
b2188a06
JB
37582020-05-15 Joel Brobecker <brobecker@adacore.com>
3759
3760 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3761 ada_is_fixed_point_type. Update all callers.
3762 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3763 all callers.
3764 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3765 Update all callers.
3766 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3767 print_fixed_point_type. Update all callers.
3768 * ada-valprint.c (ada_value_print_num): Replace call to
3769 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3770
a51951c2
KB
37712020-05-14 Kevin Buettner <kevinb@redhat.com>
3772
3773 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3774 processors.
3775 (cpu_supports_bts): Add CV_AMD case.
3776
29d6859f
LM
37772020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3778 Simon Marchi <simon.marchi@efficios.com>
3779
3780 * infrun.c (stop_all_threads): Collect multiple wait events at
3781 each pass.
3782
78134374
SM
37832020-05-14 Simon Marchi <simon.marchi@efficios.com>
3784
3785 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3786 type::code instead.
3787
67607e24
SM
37882020-05-14 Simon Marchi <simon.marchi@efficios.com>
3789
3790 * gdbtypes.h (struct type) <code, set_code>: New methods.
3791 (TYPE_CODE): Use type::code. Change all call sites used to set
3792 the code to use type::set_code instead.
3793
a05575d3
TBA
37942020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3795 Tom de Vries <tdevries@suse.de>
3796 Pedro Alves <palves@redhat.com>
3797
3798 PR threads/25478
3799 * infrun.c (stop_all_threads): Do NOT ignore
3800 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3801 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3802 received.
3803 (handle_no_resumed): Remove code handling a live inferior with no
3804 threads.
3805 * remote.c (has_single_non_exited_thread): New.
3806 (remote_target::update_thread_list): Do not delete a thread if is
3807 the last thread of the process.
3808 * thread.c (thread_select): Call delete_exited_threads instead of
3809 prune_threads.
3810
6ad82919
TBA
38112020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3812
3813 * infrun.c (stop_all_threads): Enable/disable thread events of all
3814 targets. Move a debug message denoting the end of the function
3815 into the SCOPED_EXIT block.
3816
d890404b
TBA
38172020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3818
3819 * process-stratum-target.h: Include <set>.
3820 (all_non_exited_process_targets, switch_to_target_no_thread): New
3821 function declarations.
3822 * process-stratum-target.c (all_non_exited_process_targets)
3823 (switch_to_target_no_thread): New function implementations.
3824
293b3ebc
TBA
38252020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3826
3827 * infrun.c (handle_inferior_event): Extract out a piece of code
3828 into...
3829 (mark_non_executing_threads): ...this new function.
3830
7ca9b62a
TBA
38312020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3832
3833 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3834 use.
3835
fc75c28b
TBA
38362020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3837
3838 * regcache.c (regcache_read_pc_protected): New function
3839 implementation that returns 0 if the PC cannot read via
3840 'regcache_read_pc'.
3841 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3842 instead of 'regcache_read_pc'.
3843 (keep_going_pass_signal): Ditto.
3844
a89febbd
TT
38452020-05-13 Tom Tromey <tromey@adacore.com>
3846
3847 * ada-lang.c (align_value): Remove.
3848 (ada_template_to_fixed_record_type_1): Use align_up.
3849
f7e23710
TBA
38502020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3851
3852 * async-event.c: Update the copyright year.
3853 * async-event.h: Update the copyright year.
3854
02ff80c2
SM
38552020-05-12 Simon Marchi <simon.marchi@efficios.com>
3856
3857 * objfiles.h (is_addr_in_objfile,
3858 shared_objfile_contains_address_p): Return bool.
3859 * objfile.c (is_addr_in_objfile,
3860 shared_objfile_contains_address_p): Return bool.
3861
4fd6c7e8
TT
38622020-05-11 Tom Tromey <tromey@adacore.com>
3863
3864 * cli/cli-cmds.c (info_command): Restore.
3865 (_initialize_cli_cmds): Use add_prefix_command for "info".
3866 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3867
5eb68a39
TT
38682020-05-11 Tom Tromey <tromey@adacore.com>
3869
3870 * ada-lang.c (ada_value_primitive_field): Now public.
3871 * ada-lang.h (ada_value_primitive_field): Declare.
3872 * ada-valprint.c (print_field_values): Use
3873 ada_value_primitive_field for wrapper fields.
3874
7666722f
TV
38752020-05-11 Tom de Vries <tdevries@suse.de>
3876
3877 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3878 MODULE_DOMAIN.
3879
3ee6bb11
TV
38802020-05-11 Tom de Vries <tdevries@suse.de>
3881
3882 PR symtab/25941
3883 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3884 with length 0, if not gdb-produced.
3885 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3886
43434996
TV
38872020-05-09 Tom de Vries <tdevries@suse.de>
3888
3889 PR gdb/25955
3890 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3891 calculation.
3892
2f78cffc
TT
38932020-05-09 Tom Tromey <tom@tromey.com>
3894
3895 * top.c (server_command): Now bool.
3896 * top.h (server_command): Now bool.
3897
4f7bc5ed
TT
38982020-05-08 Tom Tromey <tromey@adacore.com>
3899
3900 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3901 already being processed.
3902
8be4b118
TT
39032020-05-08 Tom Tromey <tom@tromey.com>
3904
3905 * printcmd.c (struct display) <next>: Remove.
3906 <display>: New constructor.
3907 <exp_string>: Now a std::string.
3908 <enabled_p>: Now a bool.
3909 (display_number): Move definition earlier.
3910 (displays): Rename from display_chain. Now a std::vector.
3911 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3912 (display_command): Update.
3913 (do_one_display, disable_display)
3914 (enable_disable_display_command, do_enable_disable_display):
3915 Update.
3916 (free_display): Remove.
3917 (clear_displays): Rewrite.
3918 (delete_display): Update.
3919 (map_display_numbers): Use function_view. Remove "data"
3920 parameter. Update.
3921 (do_delete_display): Remove.
3922 (undisplay_command): Update.
3923 (do_one_display, do_displays, disable_display)
3924 (info_display_command): Update.
3925 (do_enable_disable_display): Remove.
3926 (enable_disable_display_command)
3927 (clear_dangling_display_expressions): Update.
3928
94c93c35
TT
39292020-05-08 Tom Tromey <tom@tromey.com>
3930
3931 * symtab.c (set_symbol_cache_size)
3932 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3933 (maintenance_print_symbol_cache_statistics): Update.
3934 * symmisc.c (print_symbol_bcache_statistics)
3935 (print_objfile_statistics, maintenance_print_objfiles)
3936 (maintenance_info_symtabs, maintenance_check_symtabs)
3937 (maintenance_expand_symtabs, maintenance_info_line_tables):
3938 Update.
3939 * symfile-debug.c (set_debug_symfile): Update.
3940 * source.c (forget_cached_source_info): Update.
3941 * python/python.c (gdbpy_progspaces): Update.
3942 * psymtab.c (maintenance_info_psymtabs): Update.
3943 * probe.c (parse_probes): Update.
3944 * linespec.c (iterate_over_all_matching_symtabs)
3945 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3946 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3947 * exec.c (exec_target::close): Update.
3948 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3949 * breakpoint.c (print_one_breakpoint_location)
3950 (create_longjmp_master_breakpoint)
3951 (create_std_terminate_master_breakpoint): Update.
3952 * progspace.c (program_spaces): Now a std::vector.
3953 (maybe_new_address_space): Update.
3954 (add_program_space): Remove.
3955 (program_space::program_space): Update.
3956 (remove_program_space): Update.
3957 (number_of_program_spaces): Remove.
3958 (print_program_space, update_address_spaces): Update.
3959 * progspace.h (program_spaces): Change type.
3960 (ALL_PSPACES): Remove.
3961 (number_of_program_spaces): Don't declare.
3962 (struct program_space) <next>: Remove.
3963
a1fd1ac9
TT
39642020-05-08 Tom Tromey <tom@tromey.com>
3965
3966 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3967 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3968 (enable_break): Update.
3969 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3970 (frv_fdpic_find_canonical_descriptor): Update.
3971 (frv_fetch_objfile_link_map): Update.
3972 * progspace.c (program_space::free_all_objfiles): Update.
3973 (program_space::solibs): New method.
3974 * progspace.h (struct program_space) <solibs>: New method.
3975 * solist.h (master_so_list): Don't declare.
3976 (ALL_SO_LIBS): Remove.
3977 * solib.h (so_list_head): Remove.
3978 (update_solib_list): Update comment.
3979 * solib.c (master_so_list): Remove.
3980 (solib_used, update_solib_list, solib_add)
3981 (info_sharedlibrary_command, clear_solib)
3982 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3983
38eae084
TT
39842020-05-08 Tom Tromey <tom@tromey.com>
3985
3986 * extension.c (extension_languages): Now a std::array.
3987 (ALL_EXTENSION_LANGUAGES): Remove.
3988 (get_ext_lang_defn, get_ext_lang_of_file)
3989 (eval_ext_lang_from_control_command): Update.
3990 (finish_ext_lang_initialization)
3991 (auto_load_ext_lang_scripts_for_objfile)
3992 (ext_lang_type_printers::ext_lang_type_printers)
3993 (apply_ext_lang_type_printers)
3994 (ext_lang_type_printers::~ext_lang_type_printers)
3995 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3996 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3997 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3998 (get_matching_xmethod_workers, ext_lang_colorize)
3999 (ext_lang_before_prompt): Update.
4000 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4001
596dc4ad
TT
40022020-05-08 Tom Tromey <tom@tromey.com>
4003
4004 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4005 overload.
4006 <swap_string, m_string>: Remove.
4007 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4008 Update.
4009 * stabsread.c (define_symbol, read_type): Update.
4010 * linespec.c (find_linespec_symbols): Update.
4011 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4012 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4013 * dbxread.c (read_dbx_symtab): Update.
4014 * cp-support.h (cp_canonicalize_string_full)
4015 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4016 Return unique_xmalloc_ptr.
4017 * cp-support.c (inspect_type): Update.
4018 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4019 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4020 Likewise.
4021 * c-typeprint.c (print_name_maybe_canonical): Update.
4022 * break-catch-throw.c (check_status_exception_catchpoint):
4023 Update.
4024
bf4cb9be
TV
40252020-05-08 Tom de Vries <tdevries@suse.de>
4026
4027 * infrun.c (follow_fork): Copy current_line and current_symtab to
4028 child thread.
4029
a1b68f28
SM
40302020-05-07 Simon Marchi <simon.marchi@efficios.com>
4031
4032 * async-event.c (struct async_signal_handler, struct
4033 async_event_handler): Reformat, remove typedef.
4034
98d48915
SM
40352020-05-07 Simon Marchi <simon.marchi@efficios.com>
4036
4037 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4038 access thistype->main_type->dyn_prop_list directly.
4039
7aa91313
SM
40402020-05-07 Simon Marchi <simon.marchi@efficios.com>
4041
4042 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4043 (remove_dyn_prop): Remove. Update all users to use
4044 type::remove_dyn_prop.
4045 * gdbtypes.c (remove_dyn_prop): Rename to...
4046 (type::remove_dyn_prop): ... this.
4047
5c54719c
SM
40482020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4049
4050 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4051 (add_dyn_prop): Remove. Update all users to use
4052 type::add_dyn_prop.
4053 * gdbtypes.c (add_dyn_prop): Rename to...
4054 (type::add_dyn_prop): ... this.
4055
24e99c6c
SM
40562020-05-07 Simon Marchi <simon.marchi@efficios.com>
4057
4058 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4059 (get_dyn_prop): Remove. Update all users to use
4060 type::dyn_prop.
4061 * gdbtypes.c (get_dyn_prop): Rename to...
4062 (type::dyn_prop): ... this.
4063
0d4bf016
SM
40642020-05-06 Simon Marchi <simon.marchi@efficios.com>
4065
4066 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4067
ac4a4f1c
SM
40682020-05-06 Simon Marchi <simon.marchi@efficios.com>
4069
4070 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4071 instruction, skip it if it's there.
4072
a3bbacc1
SM
40732020-05-05 Simon Marchi <simon.marchi@efficios.com>
4074
4075 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4076
c3236f84
SM
40772020-05-04 Simon Marchi <simon.marchi@efficios.com>
4078
4079 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4080 * gdbtypes.c (recursive_dump_type): Remove use of
4081 TYPE_INCOMPLETE.
4082
3b6acaee
TT
40832020-05-03 Tom Tromey <tom@tromey.com>
4084
4085 * breakpoint.c (catch_command, tcatch_command): Remove.
4086 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4087 add_show_prefix_cmd.
4088 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4089 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4090 Remove.
4091 (add_internal_problem_command): Use add_basic_prefix_cmd,
4092 add_show_prefix_cmd.
4093 * mips-tdep.c (set_mipsfpu_command): Remove.
4094 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4095 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4096 (_initialize_index_cache): Use add_basic_prefix_cmd.
4097 * memattr.c (dummy_cmd): Remove.
4098 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4099 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4100 (_initialize_tui_win): Use add_basic_prefix_cmd,
4101 add_show_prefix_cmd.
4102 * cli/cli-logging.c (set_logging_command): Remove.
4103 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4104 add_show_prefix_cmd.
4105 (show_logging_command): Remove.
4106 * target.c (target_command): Remove.
4107 (add_target): Use add_basic_prefix_cmd.
4108
a51119cd
HD
41092020-05-02 Hannes Domani <ssbssa@yahoo.de>
4110
4111 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4112
652fc23a 41132020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4114
652fc23a
PW
4115 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4116 info_command.
4117
117539e6
KR
41182020-04-30 Kamil Rytarowski <n54@gmx.com>
4119
4120 * nbsd-nat.c (nbsd_enable_proc_events)
4121 (nbsd_nat_target::post_startup_inferior): Add.
4122 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4123 (nbsd_nat_target::update_thread_list): Rewrite.
4124 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4125 "PTRACE_LWP_CREATE".
4126 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4127
102e38eb 41282020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4129
102e38eb
PW
4130 * stack.c (_initialize_stack): Remove duplicated creation
4131 of "frame" command and "f" alias.
4132
ee9d1e5f
HD
41332020-04-30 Hannes Domani <ssbssa@yahoo.de>
4134
4135 PR gdb/18706
4136 * gdbtypes.c (check_typedef): Calculate size of array of
4137 stubbed type.
4138
627c7fb8
HD
41392020-04-30 Hannes Domani <ssbssa@yahoo.de>
4140
4141 PR gdb/15559
4142 * i386-tdep.c (i386_push_dummy_call): Call
4143 i386_thiscall_push_dummy_call.
4144 (i386_thiscall_push_dummy_call): New function.
4145 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4146 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4147 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4148
ffc2844e
SM
41492020-04-29 Simon Marchi <simon.marchi@efficios.com>
4150
4151 * gdbarch.sh (do_read): Add shellcheck disable directive for
4152 warning SC2162.
4153
1207375d
SM
41542020-04-29 Simon Marchi <simon.marchi@efficios.com>
4155
4156 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4157 "referenced but not assigned" warning.
4158
9fdb2916
SM
41592020-04-29 Simon Marchi <simon.marchi@efficios.com>
4160
4161 * gdbarch.sh: Remove code that sets fallbackdefault.
4162
759cea5e
SM
41632020-04-29 Simon Marchi <simon.marchi@efficios.com>
4164
4165 * gdbarch.sh: Use shell operators && and || instead of
4166 -a and -o.
4167
cb02ab24
SM
41682020-04-29 Simon Marchi <simon.marchi@efficios.com>
4169
4170 * gdbarch.sh: Use $(...) instead of `...`.
4171
a6fc5ffc
SM
41722020-04-29 Simon Marchi <simon.marchi@efficios.com>
4173
4174 * gdbarch.sh: Use double quotes around variables.
4175
8d113d13
SM
41762020-04-29 Simon Marchi <simon.marchi@efficios.com>
4177
4178 * gdbarch.sh: Use %s with printf, instead of variables in the
4179 format string.
4180
ed6acedd
TT
41812020-04-29 Tom Tromey <tromey@adacore.com>
4182
4183 PR ada/25875:
4184 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4185 type fields here.
4186 (read_enumeration_type): Call
4187 update_enumeration_type_from_children later. Update comments.
4188 (process_enumeration_scope): Don't create type fields.
4189
b68b1b58
KR
41902020-04-29 Kamil Rytarowski <n54@gmx.com>
4191
4192 * nbsd-tdep.c: Include "xml-syscall.h".
4193 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4194
f94b2e03
KR
41952020-04-29 Kamil Rytarowski <n54@gmx.com>
4196
4197 * nbsd-nat.c: Include "sys/wait.h".
4198 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4199 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4200 (nbsd_nat_target::remove_exec_catchpoint)
4201 (nbsd_nat_target::set_syscall_catchpoint): Add.
4202 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4203 (nbsd_nat_target::insert_exec_catchpoint)
4204 (nbsd_nat_target::remove_exec_catchpoint)
4205 (nbsd_nat_target::set_syscall_catchpoint): Add.
4206 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4207 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4208 `nbsd_get_syscall_number'.
4209
fc49bc72
TT
42102020-04-29 Tom Tromey <tom@tromey.com>
4211
4212 * stack.c (print_block_frame_labels): Remove.
4213
d642b692
HD
42142020-04-29 Hannes Domani <ssbssa@yahoo.de>
4215
4216 PR gdb/17320
4217 * ada-valprint.c (val_print_packed_array_elements): Move array
4218 end bracket to new line.
4219 (ada_val_print_string): Remove extra spaces before first array
4220 element.
4221 * c-valprint.c (c_value_print_array): Likewise.
4222 * m2-valprint.c (m2_print_array_contents): Likewise.
4223 (m2_value_print_inner): Likewise.
4224 * p-valprint.c (pascal_value_print_inner): Likewise.
4225 * valprint.c (generic_val_print_array): Likewise.
4226 (value_print_array_elements): Move first array element and array
4227 end bracket to new line.
4228
ea90f227
TV
42292020-04-29 Tom de Vries <tdevries@suse.de>
4230
4231 PR symtab/25889
4232 * linespec.c (find_method): Fix ix calculation.
4233
4498ef4f
KR
42342020-04-28 Kamil Rytarowski <n54@gmx.com>
4235
4236 * syscalls/update-netbsd.sh: New file.
4237 * syscalls/netbsd.xml: Regenerate.
4238 * data-directory/Makefile.in: Register `netbsd.xml' in
4239 `SYSCALLS_FILES'.
4240
a55e30b5
SM
42412020-04-28 Simon Marchi <simon.marchi@efficios.com>
4242
4243 * syscalls/update-freebsd.sh: Add double quotes.
4244
2b2fbab8
TT
42452020-04-28 Tom Tromey <tom@tromey.com>
4246
4247 * NEWS: Update.
4248 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4249 (cmdpy_init): Allow class_tui.
4250
a65189c9
TV
42512020-04-28 Mark Williams <mark@myosotissp.com>
4252
4253 PR gdb/24480
4254 * dwarf2read.c: Add missing assingments to list_in_scope when
4255 start_symtab was already called.
4256
1b95cdb7
SM
42572020-04-28 Simon Marchi <simon.marchi@efficios.com>
4258
4259 PR gdb/25881
4260 * dwarf2/read.c (offset_map_type): Use
4261 gdb:hash_enum<sect_offset> as hash function.
4262
15cd93d0
TV
42632020-04-28 Tom de Vries <tdevries@suse.de>
4264
4265 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4266 with DW_AT_signature.
4267
1eb39914
SM
42682020-04-27 Simon Marchi <simon.marchi@efficios.com>
4269
4270 * configure.ac: Remove check for fs_base/gs_base in
4271 user_regs_struct.
4272 * configure: Re-generate.
4273 * config.in: Re-generate.
4274 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4275 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4276 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4277
991a3e2e
LM
42782020-04-27 Luis Machado <luis.machado@linaro.org>
4279
4280 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4281 problematic inline frame unwinding situation.
4282 * frame.c (frame_id_computed_p): New function.
4283 * frame.h (frame_id_computed_p): New prototype.
4284
361ba0e8
TT
42852020-04-26 Tom Tromey <tom@tromey.com>
4286
4287 * command.h (enum command_class) <class_pseudo>: Remove.
4288
bc3609fd
PW
42892020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4290
4291 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4292 and whitespace.
4293
b9771db7
KR
42942020-04-25 Kamil Rytarowski <n54@gmx.com>
4295
ec16513e
SM
4296 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4297 `PT_GET_PROCESS_STATE' block.
b9771db7 4298
7151c1af
TT
42992020-04-24 Tom Tromey <tom@tromey.com>
4300
4301 * symtab.h (symbol_get_demangled_name): Don't declare.
4302 * symtab.c (symbol_get_demangled_name): Remove.
4303 (general_symbol_info::natural_name)
4304 (general_symbol_info::demangled_name): Update.
4305
906bb4c5
TT
43062020-04-24 Tom Tromey <tom@tromey.com>
4307
4308 PR rust/25025:
4309 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4310
bcfe6157
TT
43112020-04-24 Tom Tromey <tom@tromey.com>
4312
4313 PR symtab/12707:
4314 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4315 exists.
4316 (new_symbol): Likewise.
4317 * compile/compile-object-load.c (get_out_value_type): Use
4318 symbol_matches_search_name.
4319
f049a313
TT
43202020-04-24 Tom Tromey <tom@tromey.com>
4321
4322 * dwarf2/read.c (add_partial_symbol): Do not call
4323 compute_and_set_names.
4324
76e288d1
TT
43252020-04-24 Tom Tromey <tom@tromey.com>
4326
4327 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4328 overload.
4329
2467f4f6
TT
43302020-04-24 Tom Tromey <tom@tromey.com>
4331
4332 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4333 (add_psymbol_to_list): New overload. Make old overload call new
4334 one.
4335 * psympriv.h (add_psymbol_to_list): New overload.
4336
e61108c9
TT
43372020-04-24 Tom Tromey <tom@tromey.com>
4338
4339 * dwarf2/read.c (partial_die_info::read) <case
4340 DW_AT_linkage_name>: Use value_as_string.
4341 (dwarf2_string_attr): Use value_as_string.
4342 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4343 method.
4344 * dwarf2/attribute.c (attribute::value_as_string): New method.
4345
8c87a452
TT
43462020-04-24 Tom Tromey <tom@tromey.com>
4347
4348 * symtab.c (general_symbol_info::natural_name)
4349 (general_symbol_info::demangled_name): Check for language_rust.
4350
787de330
TT
43512020-04-24 Tom Tromey <tom@tromey.com>
4352
4353 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4354 (dwarf2_physname): ... from here.
4355 (partial_die_info::read): Add Rust "{" hack.
4356
ff985671
TT
43572020-04-24 Tom Tromey <tom@tromey.com>
4358
4359 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4360 method.
4361 (symbol_set_demangled_name): Don't declare.
4362 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4363 symbol_set_demangled_name.
4364 (general_symbol_info::set_language)
4365 (general_symbol_info::compute_and_set_names): Update.
4366 * minsyms.c (minimal_symbol_reader::install): Update.
4367 * dwarf2/read.c (new_symbol): Update.
4368
1acda803
TT
43692020-04-24 Tom Tromey <tromey@adacore.com>
4370
4371 PR python/23662:
4372 * python/py-type.c (convert_field): Handle
4373 FIELD_LOC_KIND_DWARF_BLOCK.
4374 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4375 (typy_get_dynamic): Nw function.
4376 (type_object_getset): Add "dynamic".
4377 * NEWS: Add entry.
4378
d656f129
TT
43792020-04-24 Tom Tromey <tromey@adacore.com>
4380
4381 * ada-typeprint.c (print_choices, print_variant_part)
4382 (print_record_field_types_dynamic): New functions.
4383 (print_record_field_types): Use print_record_field_types_dynamic.
4384
7d79de9a
TT
43852020-04-24 Tom Tromey <tromey@adacore.com>
4386
4387 * dwarf2/read.c (handle_data_member_location): New overload.
4388 (dwarf2_add_field): Use it.
4389 (decode_locdesc): Add "computed" parameter. Update comment.
4390 * gdbtypes.c (is_dynamic_type_internal): Also look for
4391 FIELD_LOC_KIND_DWARF_BLOCK.
4392 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4393 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4394 virtual base classes.
4395 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4396 FIELD_LOC_KIND_DWARF_BLOCK.
4397
f8e89861
TT
43982020-04-24 Tom Tromey <tromey@adacore.com>
4399
4400 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4401 * gdbtypes.c (is_dynamic_type_internal): Check
4402 TYPE_HAS_DYNAMIC_LENGTH.
4403 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4404 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4405 New macros.
4406 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4407 constant.
4408
9c6a1327
TT
44092020-04-24 Tom Tromey <tromey@adacore.com>
4410
4411 * dwarf2/read.c (struct variant_field): Rewrite.
4412 (struct variant_part_builder): New.
4413 (struct nextfield): Remove "variant" field. Add "offset".
4414 (struct field_info): Add "current_variant_part" and
4415 "variant_parts".
4416 (alloc_discriminant_info): Remove.
4417 (alloc_rust_variant): New function.
4418 (quirk_rust_enum): Update.
4419 (dwarf2_add_field): Set "offset" member. Don't handle
4420 DW_TAG_variant_part.
4421 (offset_map_type): New typedef.
4422 (convert_variant_range, create_one_variant)
4423 (create_one_variant_part, create_variant_parts)
4424 (add_variant_property): New functions.
4425 (dwarf2_attach_fields_to_type): Call add_variant_property.
4426 (read_structure_type): Don't handle DW_TAG_variant_part.
4427 (handle_variant_part, handle_variant): New functions.
4428 (handle_struct_member_die): Use them.
4429 (process_structure_scope): Don't handle variant parts.
4430 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4431 (struct discriminant_info): Remove.
4432 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4433 (struct main_type) <flag_discriminated_union>: Remove.
4434 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4435 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4436 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4437 Update.
4438 * valops.c (value_union_variant): Remove.
4439 * value.h (value_union_variant): Don't declare.
4440
b249d2c2
TT
44412020-04-24 Tom Tromey <tromey@adacore.com>
4442
4443 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4444 (ada_value_primitive_packed_val): Update.
4445 * ada-valprint.c (ada_value_print_1): Update.
4446 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4447 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4448 just an address. Use evaluate_for_locexpr_baton.
4449 (dwarf2_evaluate_property): Update.
4450 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4451 array_view.
4452 * findvar.c (default_read_var_value): Update.
4453 * gdbtypes.c (compute_variant_fields_inner)
4454 (resolve_dynamic_type_internal): Update.
4455 (resolve_dynamic_type): Change type of valaddr parameter.
4456 * gdbtypes.h (resolve_dynamic_type): Update.
4457 * valarith.c (value_subscripted_rvalue): Update.
4458 * value.c (value_from_contents_and_address): Update.
4459
61122aa9
TT
44602020-04-24 Tom Tromey <tromey@adacore.com>
4461
4462 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4463 "push_initial_value" parameter.
4464 (dwarf2_evaluate_property): Likewise.
4465 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4466
ef83a141
TT
44672020-04-24 Tom Tromey <tromey@adacore.com>
4468
4469 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4470 (variant::matches, compute_variant_fields_recurse)
4471 (compute_variant_fields_inner, compute_variant_fields): New
4472 functions.
4473 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4474 Use resolved_type after type is made.
4475 (operator==): Add new cases.
4476 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4477 (struct discriminant_range, struct variant, struct variant_part):
4478 New.
4479 (union dynamic_prop_data) <variant_parts, original_type>: New
4480 members.
4481 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4482 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4483 constants.
4484 * value.c (unpack_bits_as_long): Now public.
4485 * value.h (unpack_bits_as_long): Declare.
4486
675127ec
TT
44872020-04-24 Tom Tromey <tromey@adacore.com>
4488
4489 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4490 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4491
9852ceef
HD
44922020-04-24 Hannes Domani <ssbssa@yahoo.de>
4493
4494 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4495
7632c6ce
KR
44962020-04-24 Kamil Rytarowski <n54@gmx.com>
4497
4498 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4499 (remove_fork_catchpoint, post_startup_inferior)
4500 (post_attach): Move...
4501 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4502 (remove_fork_catchpoint, post_startup_inferior)
4503 (post_attach): ...here.
4504 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4505 (remove_fork_catchpoint, post_startup_inferior)
4506 (post_attach): Move...
4507 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4508 (remove_fork_catchpoint, post_startup_inferior)
4509 (post_attach): ...here.
4510
7be2bb4f
TT
45112020-04-24 Tom Tromey <tromey@adacore.com>
4512
4513 * nat/windows-nat.h (struct windows_thread_info)
4514 <pc_adjusted>: New member.
4515 * windows-nat.c (windows_fetch_one_register): Check
4516 pc_adjusted.
4517 (windows_nat_target::get_windows_debug_event)
4518 (windows_nat_target::wait): Set pc_adjusted.
4519
f80cb3b4
TV
45202020-04-24 Tom de Vries <tdevries@suse.de>
4521
4522 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4523 Run gdb-add-index inside temp dir.
4524
29514b87
TT
45252020-04-23 Tom Tromey <tromey@adacore.com>
4526
4527 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4528 in loop.
4529
5939967b
LM
45302020-04-23 Luis Machado <luis.machado@linaro.org>
4531
4532 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4533 get_frame_register instead of gdbarch_unwind_pc.
4534
70bc38f5
TV
45352020-04-23 Tom de Vries <tdevries@suse.de>
4536
4537 * symtab.c (lookup_global_symbol): Prefer def over decl.
4538
de82891c
TV
45392020-04-23 Tom de Vries <tdevries@suse.de>
4540
4541 PR symtab/25807
4542 * block.c (best_symbol, better_symbol): Promote to external.
4543 * block.h (best_symbol, better_symbol): Declare.
4544 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4545 decl.
4546
ecc6c606
TT
45472020-04-23 Tom Tromey <tromey@adacore.com>
4548
4549 PR ada/25837:
4550 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4551 "const char *", not a "const std::string &".
4552 <name_and_matcher::operator==>: Update.
4553 * unittests/lookup_name_info-selftests.c: Change type of
4554 "result".
4555
740480b8
TT
45562020-04-23 Tom Tromey <tom@tromey.com>
4557
4558 * inferior.h (iterate_over_inferiors): Don't declare.
4559 * inferior.c (iterate_over_inferiors): Remove.
4560 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4561 Remove.
4562 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4563 use iterate_over_inferiors.
4564 (darwin_resume_inferior_it)
4565 (struct resume_inferior_threads_param)
4566 (darwin_resume_inferior_threads_it): Remove.
4567 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4568
ae3ab1f0
TV
45692020-04-23 Tom de Vries <tdevries@suse.de>
4570
4571 * blockframe.c (find_pc_partial_function): Use
4572 find_pc_sect_compunit_symtab rather than
4573 objfile->sf->qf->find_pc_sect_compunit_symtab.
4574
317d2668
TV
45752020-04-22 Tom de Vries <tdevries@suse.de>
4576
4577 PR symtab/25764
4578 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4579 in psymtabs.
4580
eea9e357
TV
45812020-04-22 Tom de Vries <tdevries@suse.de>
4582
4583 PR symtab/25801
4584 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4585 symtabs.
4586
3d5afab3
TV
45872020-04-22 Tom de Vries <tdevries@suse.de>
4588
4589 PR symtab/25700
4590 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4591 CU if already created.
4592
d43b7a2d
TBA
45932020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4594
4595 * infrun.c (displaced_step_fixup): Switch to the event_thread
4596 before calling displaced_step_restore, not after.
4597
d89edf9b
MM
45982020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4599
4600 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4601 its inferior is not recorded by us.
4602 (record_btrace_target_open): Replace call to
4603 all_non_exited_threads () with call to current_inferior
4604 ()->non_exited_threads ().
4605 (record_btrace_target::stop_recording): Likewise.
4606 (record_btrace_target::close): Likewise.
4607 (record_btrace_target::wait): Likewise.
4608 (record_btrace_target::record_stop_replaying): Likewise.
4609
5897fd49
MM
46102020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4611
4612 * btrace.c (btrace_enable): Throw an error on double enables and
4613 when enabling recording fails.
4614 (btrace_disable): Throw an error if the thread is not recorded.
4615
1a476b6d
MM
46162020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4617
4618 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4619 request if we do not have a thread_info.
4620
4778a5f8
TV
46212020-04-21 Tom de Vries <tdevries@suse.de>
4622
4623 PR gdb/25471
4624 * thread.c
4625 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4626 exception in get_frame_id.
4627
0fa7617d
TT
46282020-04-20 Tom Tromey <tromey@adacore.com>
4629
4630 * python/python.c (struct gdbpy_event): Mark move constructor as
4631 noexcept.
4632 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4633 constructor as noexcept.
4634 * completer.h (struct completion_result): Mark move constructor as
4635 noexcept.
4636 * completer.c (completion_result::completion_result): Use
4637 initialization style. Don't call reset_match_list.
4638
ad23bda0
MS
46392020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4640
4641 * MAINTAINERS (Write After Approval): Add myself.
4642
45e1f031
TT
46432020-04-18 Tom Tromey <tom@tromey.com>
4644
4645 * windows-tdep.c (init_w32_command_list)
4646 (w32_prefix_command_valid): Restore.
4647 (_initialize_windows_tdep): Call init_w32_command_list.
4648
08feed99
TT
46492020-04-18 Tom Tromey <tom@tromey.com>
4650
4651 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4652 * value.c (value_fn_field): Update.
4653 * valops.c (find_function_in_inferior)
4654 (value_allocate_space_in_inferior): Update.
4655 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4656 Update.
4657 * tui/tui-source.c (tui_source_window::set_contents): Update.
4658 * symtab.c (lookup_global_or_static_symbol)
4659 (find_function_start_sal_1, skip_prologue_sal)
4660 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4661 * symmisc.c (dump_msymbols, dump_symtab_1)
4662 (maintenance_print_one_line_table): Update.
4663 * symfile.c (init_entry_point_info, section_is_mapped)
4664 (list_overlays_command, simple_read_overlay_table)
4665 (simple_overlay_update_1): Update.
4666 * stap-probe.c (handle_stap_probe): Update.
4667 * stabsread.c (dbx_init_float_type, define_symbol)
4668 (read_one_struct_field, read_enum_type, read_range_type): Update.
4669 * source.c (info_line_command): Update.
4670 * python/python.c (gdbpy_source_objfile_script)
4671 (gdbpy_execute_objfile_script): Update.
4672 * python/py-type.c (save_objfile_types): Update.
4673 * python/py-objfile.c (py_free_objfile): Update.
4674 * python/py-inferior.c (python_new_objfile): Update.
4675 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4676 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4677 (maintenance_check_psymtabs): Update.
4678 * printcmd.c (info_address_command): Update.
4679 * objfiles.h (struct objfile) <arch>: New method, from
4680 get_objfile_arch.
4681 (get_objfile_arch): Don't declare.
4682 * objfiles.c (get_objfile_arch): Remove.
4683 (filter_overlapping_sections): Update.
4684 * minsyms.c (msymbol_is_function): Update.
4685 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4686 (output_nondebug_symbol): Update.
4687 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4688 (mdebug_expand_psymtab): Update.
4689 * machoread.c (macho_add_oso_symfile): Update.
4690 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4691 Update.
4692 * linux-fork.c (checkpoint_command): Update.
4693 * linespec.c (convert_linespec_to_sals): Update.
4694 * jit.c (finalize_symtab): Update.
4695 * infrun.c (insert_exception_resume_from_probe): Update.
4696 * ia64-tdep.c (ia64_find_unwind_table): Update.
4697 * hppa-tdep.c (internalize_unwinds): Update.
4698 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4699 Update.
4700 * gcore.c (call_target_sbrk): Update.
4701 * elfread.c (record_minimal_symbol, elf_symtab_read)
4702 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4703 (elf_gnu_ifunc_resolve_by_got): Update.
4704 * dwarf2/read.c (create_addrmap_from_index)
4705 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4706 (read_debug_names_from_section)
4707 (process_psymtab_comp_unit_reader, add_partial_symbol)
4708 (add_partial_subprogram, process_full_comp_unit)
4709 (read_file_scope, read_func_scope, read_lexical_block_scope)
4710 (read_call_site_scope, dwarf2_ranges_read)
4711 (dwarf2_record_block_ranges, dwarf2_add_field)
4712 (mark_common_block_symbol_computed, read_tag_pointer_type)
4713 (read_tag_string_type, dwarf2_init_float_type)
4714 (dwarf2_init_complex_target_type, read_base_type)
4715 (partial_die_info::read, partial_die_info::read)
4716 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4717 (dwarf2_fetch_die_loc_sect_off): Update.
4718 * dwarf2/loc.c (dwarf2_find_location_expression)
4719 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4720 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4721 (dwarf2_loc_desc_get_symbol_read_needs)
4722 (locexpr_describe_location_piece, locexpr_describe_location_1)
4723 (loclist_describe_location): Update.
4724 * dwarf2/index-write.c (write_debug_names): Update.
4725 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4726 * dtrace-probe.c (dtrace_process_dof): Update.
4727 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4728 (process_one_symbol): Update.
4729 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4730 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4731 (coff_read_enum_type): Update.
4732 * cli/cli-cmds.c (edit_command, list_command): Update.
4733 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4734 * breakpoint.c (create_overlay_event_breakpoint)
4735 (create_longjmp_master_breakpoint)
4736 (create_std_terminate_master_breakpoint)
4737 (create_exception_master_breakpoint, get_sal_arch): Update.
4738 * block.c (block_gdbarch): Update.
4739 * annotate.c (annotate_source_line): Update.
4740
0743fc83
TT
47412020-04-17 Tom Tromey <tromey@adacore.com>
4742
4743 * auto-load.c (show_auto_load_cmd): Remove.
4744 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4745 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4746 (maintenance_print_arc_command): Remove.
4747 * tui/tui-win.c (tui_command): Remove.
4748 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4749 * tui/tui-layout.c (tui_layout_command): Remove.
4750 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4751 * python/python.c (user_set_python, user_show_python): Remove.
4752 (_initialize_python): Use add_basic_prefix_cmd,
4753 add_show_prefix_cmd.
4754 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4755 (install_gdb_commands): Use add_basic_prefix_cmd,
4756 add_show_prefix_cmd.
4757 (info_guile_command): Remove.
4758 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4759 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4760 add_show_prefix_cmd.
4761 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4762 Remove do_set and do_show parameters.
4763 * cli/cli-style.c (set_style, show_style): Remove.
4764 (_initialize_cli_style): Use add_basic_prefix_cmd,
4765 add_show_prefix_cmd.
4766 (cli_style_option::add_setshow_commands): Remove do_set and
4767 do_show parameters.
4768 (cli_style_option::add_setshow_commands): Use
4769 add_basic_prefix_cmd, add_show_prefix_cmd.
4770 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4771 (set_style_name): Remove.
4772 * cli/cli-dump.c (dump_command, append_command): Remove.
4773 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4774 (tekhex_dump_command, binary_dump_command)
4775 (binary_append_command): Remove.
4776 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4777 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4778 (init_w32_command_list): Remove; move into ...
4779 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4780 * valprint.c (set_print, show_print, set_print_raw)
4781 (show_print_raw): Remove.
4782 (_initialize_valprint): Use add_basic_prefix_cmd,
4783 add_show_prefix_cmd.
4784 * typeprint.c (set_print_type, show_print_type): Remove.
4785 (_initialize_typeprint): Use add_basic_prefix_cmd,
4786 add_show_prefix_cmd.
4787 * record.c (set_record_command, show_record_command): Remove.
4788 (_initialize_record): Use add_basic_prefix_cmd,
4789 add_show_prefix_cmd.
4790 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4791 add_show_prefix_cmd.
4792 (info_command, show_command, set_debug, show_debug): Remove.
4793 * top.h (set_history, show_history): Don't declare.
4794 * top.c (set_history, show_history): Remove.
4795 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4796 (unset_tdesc_cmd): Remove.
4797 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4798 add_show_prefix_cmd.
4799 * symtab.c (info_module_command): Remove.
4800 (_initialize_symtab): Use add_basic_prefix_cmd.
4801 * symfile.c (overlay_command): Remove.
4802 (_initialize_symfile): Use add_basic_prefix_cmd.
4803 * sparc64-tdep.c (info_adi_command): Remove.
4804 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4805 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4806 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4807 add_show_prefix_cmd.
4808 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4809 (_initialize_serial): Use add_basic_prefix_cmd,
4810 add_show_prefix_cmd.
4811 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4812 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4813 add_show_prefix_cmd.
4814 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4815 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4816 add_show_prefix_cmd.
4817 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4818 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4819 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4820 add_show_prefix_cmd.
4821 * remote.c (remote_command, set_remote_cmd): Remove.
4822 (_initialize_remote): Use add_basic_prefix_cmd.
4823 * record-full.c (set_record_full_command)
4824 (show_record_full_command): Remove.
4825 (_initialize_record_full): Use add_basic_prefix_cmd,
4826 add_show_prefix_cmd.
4827 * record-btrace.c (cmd_set_record_btrace)
4828 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4829 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4830 (cmd_show_record_btrace_pt): Remove.
4831 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4832 add_show_prefix_cmd.
4833 * ravenscar-thread.c (set_ravenscar_command)
4834 (show_ravenscar_command): Remove.
4835 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4836 add_show_prefix_cmd.
4837 * mips-tdep.c (show_mips_command, set_mips_command)
4838 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4839 add_show_prefix_cmd.
4840 * maint.c (maintenance_command, maintenance_info_command)
4841 (maintenance_check_command, maintenance_print_command)
4842 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4843 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4844 add_show_prefix_cmd.
4845 (show_per_command_cmd): Remove.
4846 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4847 Remove.
4848 (maintenance_show_test_settings_cmd): Remove.
4849 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4850 add_show_prefix_cmd.
4851 * maint-test-options.c (maintenance_test_options_command):
4852 Remove.
4853 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4854 * macrocmd.c (macro_command): Remove
4855 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4856 * language.c (set_check, show_check): Remove.
4857 (_initialize_language): Use add_basic_prefix_cmd,
4858 add_show_prefix_cmd.
4859 * infcmd.c (unset_command): Remove.
4860 (_initialize_infcmd): Use add_basic_prefix_cmd.
4861 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4862 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4863 add_show_prefix_cmd.
4864 * go32-nat.c (go32_info_dos_command): Remove.
4865 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4866 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4867 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4868 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4869 (_initialize_frame): Use add_basic_prefix_cmd,
4870 add_show_prefix_cmd.
4871 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4872 (_initialize_dcache): Use add_basic_prefix_cmd,
4873 add_show_prefix_cmd.
4874 * cp-support.c (maint_cplus_command): Remove.
4875 (_initialize_cp_support): Use add_basic_prefix_cmd.
4876 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4877 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4878 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4879 add_basic_prefix_cmd, add_show_prefix_cmd.
4880 * breakpoint.c (save_command): Remove.
4881 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4882 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4883 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4884 add_show_prefix_cmd.
4885 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4886 (set_ada_command, show_ada_command): Remove.
4887 (_initialize_ada_language): Use add_basic_prefix_cmd,
4888 add_show_prefix_cmd.
4889 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4890
3557f442
KR
48912020-04-16 Kamil Rytarowski <n54@gmx.com>
4892
4893 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4894 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4895
16197208
SM
48962020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4897
4898 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4899 warning messages.
4900
00ac85d3
SM
49012020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4902
4903 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4904 import table is not at beginning of .idata section.
4905
381ce63f
PA
49062020-04-16 Pedro Alves <palves@redhat.com>
4907
4908 * inferior.c (delete_inferior): Use delete operator directly
4909 instead of delete_program_space.
4910 * progspace.c (add_program_space): New, factored out from
4911 program_space::program_space.
4912 (remove_program_space): New, factored out from
4913 delete_program_space.
4914 (program_space::program_space): Remove intro comment. Rewrite.
4915 (program_space::~program_space): Remove intro comment. Call
4916 remove_program_space.
4917 (delete_program_space): Delete.
4918 * progspace.h (program_space::program_space): Make explicit. Move
4919 intro comment here, adjusted.
4920 (program_space::~program_space): Move intro comment here,
4921 adjusted.
4922 (delete_program_space): Remove.
4923
a010605f
TT
49242020-04-16 Tom Tromey <tromey@adacore.com>
4925
4926 * windows-nat.c (windows_nat::handle_access_violation): New
4927 function.
4928 * nat/windows-nat.h (handle_access_violation): Declare.
4929 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4930 windows-nat.c. Call handle_access_violation.
4931
efba5c23
TV
49322020-04-16 Tom de Vries <tdevries@suse.de>
4933
4934 PR symtab/25791
4935 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4936 CUs without psymtab.
4937
97ed802d
KB
49382020-04-16 Kevin Buettner <kevinb@redhat.com>
4939
4940 * python/python.c (do_start_initialization): Don't call
4941 PyEval_InitThreads for Python 3.9 and beyond.
4942
c7d64809
KR
49432020-04-15 Kamil Rytarowski <n54@gmx.com>
4944
4945 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4946 thread functions.
4947 (obsd_nat_target::wait): Likewise.
4948
ce127a96
TT
49492020-04-15 Tom Tromey <tromey@adacore.com>
4950
4951 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4952 (DEBUG_EXCEPT): Use debug_printf.
4953
99f1bc6a
AB
49542020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4955
4956 * completer.c (class completion_tracker::completion_hash_entry)
4957 <hash_name>: New member function.
4958 (completion_tracker::discard_completions): New callback to hash a
4959 completion_hash_entry, pass this to htab_create_alloc.
4960
a0e9b532
JT
49612016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4962
4963 * windows-nat.c (windows_make_so): Warn rather than stopping with
4964 an error if realpath() fails.
4965
06ca5dd4
KR
49662020-04-14 Kamil Rytarowski <n54@gmx.com>
4967
4968 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4969 (nbsd_nat_target::info_proc): Add do_status.
4970
194d088f
TV
49712020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4972 Tom de Vries <tdevries@suse.de>
4973
4974 PR symtab/25718
4975 * psympriv.h (struct partial_symtab::read_symtab)
4976 (struct partial_symtab::expand_psymtab)
4977 (struct partial_symtab::read_dependencies): Update comments.
4978 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4979 read_symtab for includer.
4980 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4981 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4982 (struct dwarf2_include_psymtab::m_readin): Remove.
4983 (struct dwarf2_include_psymtab::includer): New member function.
4984 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4985
c1a66c06
TV
49862020-04-14 Tom de Vries <tdevries@suse.de>
4987
4988 PR symtab/25720
4989 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4990 with NULL symbol_matcher and lookup_name.
4991 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4992 and lookup_name.
4993 * dwarf2/read.c (dw2_expand_symtabs_matching)
4994 (dw2_debug_names_expand_symtabs_matching): Same.
4995 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4996 Make lookup_name a pointer. Update comment.
4997 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4998 lookup_name being a pointer.
4999 * symfile.c (expand_symtabs_matching): Same.
5000 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5001 * linespec.c (iterate_over_all_matching_symtabs): Same.
5002
400b5eca
TT
50032020-04-13 Tom Tromey <tom@tromey.com>
5004
5005 * run-on-main-thread.c: Update include.
5006 * unittests/main-thread-selftests.c: Update include.
5007 * tui/tui-win.c: Update include.
5008 * tui/tui-io.c: Update include.
5009 * tui/tui-interp.c: Update include.
5010 * tui/tui-hooks.c: Update include.
5011 * top.h: Update include.
5012 * top.c: Update include.
5013 * ser-base.c: Update include.
5014 * remote.c: Update include.
5015 * remote-notif.c: Update include.
5016 * remote-fileio.c: Update include.
5017 * record-full.c: Update include.
5018 * record-btrace.c: Update include.
5019 * python/python.c: Update include.
5020 * posix-hdep.c: Update include.
5021 * mingw-hdep.c: Update include.
5022 * mi/mi-main.c: Update include.
5023 * mi/mi-interp.c: Update include.
5024 * main.c: Update include.
5025 * linux-nat.c: Update include.
5026 * interps.c: Update include.
5027 * infrun.c: Update include.
5028 * inf-loop.c: Update include.
5029 * event-top.c: Update include.
5030 * event-loop.c: Move to ../gdbsupport/.
5031 * event-loop.h: Move to ../gdbsupport/.
5032 * async-event.h: Update include.
5033 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5034
93b54c8e
TT
50352020-04-13 Tom Tromey <tom@tromey.com>
5036
5037 * tui/tui-win.c: Include async-event.h.
5038 * remote.c: Include async-event.h.
5039 * remote-notif.c: Include async-event.h.
5040 * record-full.c: Include async-event.h.
5041 * record-btrace.c: Include async-event.h.
5042 * infrun.c: Include async-event.h.
5043 * event-top.c: Include async-event.h.
5044 * event-loop.h: Move some declarations to async-event.h.
5045 * event-loop.c: Don't include ser-event.h or top.h. Move some
5046 code to async-event.c.
5047 * async-event.h: New file.
5048 * async-event.c: New file.
5049 * Makefile.in (COMMON_SFILES): Add async-event.c.
5050 (HFILES_NO_SRCDIR): Add async-event.h.
5051
c1cd3163
TT
50522020-04-13 Tom Tromey <tom@tromey.com>
5053
5054 * utils.c (flush_streams): New function.
5055 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5056
29f2bf4f
TT
50572020-04-13 Tom Tromey <tom@tromey.com>
5058
5059 * event-loop.c (handle_file_event): Use warning, not
5060 printf_unfiltered.
5061
98029d02
TT
50622020-04-13 Tom Tromey <tom@tromey.com>
5063
5064 * event-loop.c: Include <chrono>.
5065
06cc9596
TT
50662020-04-13 Tom Tromey <tom@tromey.com>
5067
5068 * gdb_select.h: Move to ../gdbsupport/.
5069 * event-loop.c: Update include path.
5070 * top.c: Update include path.
5071 * ser-base.c: Update include path.
5072 * ui-file.c: Update include path.
5073 * ser-tcp.c: Update include path.
5074 * guile/scm-ports.c: Update include path.
5075 * posix-hdep.c: Update include path.
5076 * ser-unix.c: Update include path.
5077 * gdb_usleep.c: Update include path.
5078 * mingw-hdep.c: Update include path.
5079 * inflow.c: Update include path.
5080 * infrun.c: Update include path.
5081 * event-top.c: Update include path.
5082
8ae8e197
TT
50832020-04-13 Tom Tromey <tom@tromey.com>
5084
5085 * configure: Rebuild.
5086 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5087
58cf28e8
TT
50882020-04-13 Tom Tromey <tom@tromey.com>
5089
5090 * event-loop.h (start_event_loop): Don't declare.
5091 * event-loop.c (start_event_loop): Move...
5092 * main.c (start_event_loop): ...here. Now static.
5093
b7f999ae
SDJ
50942020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5095
5096 * MAINTAINERS: Update my email address.
5097
1085dfd4
KR
50982020-04-12 Kamil Rytarowski <n54@gmx.com>
5099
5100 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5101 IP_ALL.
5102
49d1d1f5
KR
51032020-04-12 Kamil Rytarowski <n54@gmx.com>
5104
5105 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5106 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5107
b4848d2a
KR
51082020-04-12 Kamil Rytarowski <n54@gmx.com>
5109
5110 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5111 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5112
51c133d5
KR
51132020-04-12 Kamil Rytarowski <n54@gmx.com>
5114
5115 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5116
54b8cbd0
KR
51172020-04-11 Kamil Rytarowski <n54@gmx.com>
5118
5119 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5120 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5121 (nbsd_nat_target::info_proc): New functions.
5122 * nbsd-nat.c (kinfo_get_vmmap): New function.
5123 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5124 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5125 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5126 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5127 functions.
5128 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5129 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5130 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5131 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5132 (KINFO_VME_FLAG_GROWS_DOWN): New.
5133
cf83625d
AS
51342020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5135
5136 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5137 bit shift.
5138
0c4311ab
TT
51392020-04-10 Tom Tromey <tromey@adacore.com>
5140
5141 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5142
3e65b3e9
TT
51432020-04-10 Tom Tromey <tromey@adacore.com>
5144
5145 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5146 separate debug files.
5147
13302e95
HD
51482020-04-10 Hannes Domani <ssbssa@yahoo.de>
5149
5150 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5151 Move to...
5152 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5153 ... here.
5154 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5155 Check for STATUS_WX86_BREAKPOINT.
5156 (windows_nat_target::wait): Same.
5157
bdfc1e8a
TV
51582020-04-10 Tom de Vries <tdevries@suse.de>
5159
5160 PR cli/25808
5161 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5162
f4460aec
SM
51632020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5164
5165 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5166 (Write After Approval): Remove Tom de Vries.
5167
a25198bb
BE
51682020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5169
5170 revert partially:
5171 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5172
aac66a4c
SM
5173 * buildsym.c (record_line): Fix undefined behavior and preserve
5174 lines at eof.
a25198bb 5175
206c98a6
KR
51762020-04-09 Kamil Rytarowski <n54@gmx.com>
5177
5178 * auxv.h (svr4_auxv_parse): New.
5179 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5180 and generic_auxv_parse.
5181 (svr4_auxv_parse): Add.
5182 * obsd-tdep.c: Include "auxv.h".
5183 (obsd_auxv_parse): Remove.
5184 (obsd_init_abi): Remove comment.
5185 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5186 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5187 * nbsd-tdep.c: Include "auxv.h".
5188 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5189
71fbdbaf
TT
51902020-04-08 Tom Tromey <tromey@adacore.com>
5191
5192 * nat/windows-nat.h (last_wait_event): Don't declare.
5193 (wait_for_debug_event): Update comment.
5194 * nat/windows-nat.c (last_wait_event): Now static.
5195
2c1d95e8
TT
51962020-04-08 Tom Tromey <tromey@adacore.com>
5197
5198 * windows-nat.c (wait_for_debug_event): Move to
5199 nat/windows-nat.c.
5200 * nat/windows-nat.h (wait_for_debug_event): Declare.
5201 * nat/windows-nat.c (wait_for_debug_event): Move from
5202 windows-nat.c. No longer static.
5203
d2977bc4
TT
52042020-04-08 Tom Tromey <tromey@adacore.com>
5205
5206 * windows-nat.c (get_windows_debug_event): Use
5207 fetch_pending_stop.
5208 * nat/windows-nat.h (fetch_pending_stop): Declare.
5209 * nat/windows-nat.c (fetch_pending_stop): New function.
5210
e758e19c
TT
52112020-04-08 Tom Tromey <tromey@adacore.com>
5212
5213 * windows-nat.c (windows_continue): Use matching_pending_stop and
5214 continue_last_debug_event.
5215 * nat/windows-nat.h (matching_pending_stop)
5216 (continue_last_debug_event): Declare.
5217 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5218 (matching_pending_stop, continue_last_debug_event): New
5219 functions.
5220
8d30e395
TT
52212020-04-08 Tom Tromey <tromey@adacore.com>
5222
5223 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5224 (handle_exception_result): Move to nat/windows-nat.h.
5225 (DEBUG_EXCEPTION_SIMPLE): Remove.
5226 (windows_nat::handle_ms_vc_exception): New function.
5227 (handle_exception): Move to nat/windows-nat.c.
5228 (get_windows_debug_event): Update.
5229 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5230 nat/windows-nat.c.
5231 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5232 (handle_exception_result): Move from windows-nat.c.
5233 (handle_exception): Declare.
5234 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5235 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5236 windows-nat.c.
5237
29de418d
TT
52382020-04-08 Tom Tromey <tromey@adacore.com>
5239
5240 * windows-nat.c (exception_count, event_count): Remove.
5241 (handle_exception, get_windows_debug_event)
5242 (do_initial_windows_stuff): Update.
5243
a816ba18
TT
52442020-04-08 Tom Tromey <tromey@adacore.com>
5245
5246 * windows-nat.c (windows_nat::handle_load_dll)
5247 (windows_nat::handle_unload_dll): Rename. No longer static.
5248 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5249 Declare.
5250
a00caa12
TT
52512020-04-08 Tom Tromey <tromey@adacore.com>
5252
5253 * complaints.h (stop_whining): Declare at top-level.
5254 (complaint): Don't declare stop_whining.
5255
d41b524f
TT
52562020-04-08 Tom Tromey <tromey@adacore.com>
5257
5258 * windows-nat.c (windows_nat::handle_output_debug_string):
5259 Rename. No longer static.
5260 * nat/windows-nat.h (handle_output_debug_string): Declare.
5261
3c76026d
TT
52622020-04-08 Tom Tromey <tromey@adacore.com>
5263
5264 * windows-nat.c (current_process_handle, current_process_id)
5265 (main_thread_id, last_sig, current_event, last_wait_event)
5266 (current_windows_thread, desired_stop_thread_id, pending_stops)
5267 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5268 (display_selectors, fake_create_process)
5269 (get_windows_debug_event): Update.
5270 * nat/windows-nat.h (current_process_handle, current_process_id)
5271 (main_thread_id, last_sig, current_event, last_wait_event)
5272 (current_windows_thread, desired_stop_thread_id, pending_stops)
5273 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5274 * nat/windows-nat.c (current_process_handle, current_process_id)
5275 (main_thread_id, last_sig, current_event, last_wait_event)
5276 (current_windows_thread, desired_stop_thread_id, pending_stops)
5277 (siginfo_er): New globals. Move from windows-nat.c.
5278
9d8679cc
TT
52792020-04-08 Tom Tromey <tromey@adacore.com>
5280
5281 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5282 (handle_load_dll): Update.
5283 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5284
28688adf
TT
52852020-04-08 Tom Tromey <tromey@adacore.com>
5286
5287 * windows-nat.c (enum thread_disposition_type): Move to
5288 nat/windows-nat.h.
5289 (windows_nat::thread_rec): Rename from thread_rec. No longer
5290 static.
5291 (windows_add_thread, windows_nat_target::fetch_registers)
5292 (windows_nat_target::store_registers, handle_exception)
5293 (windows_nat_target::resume, get_windows_debug_event)
5294 (windows_nat_target::get_tib_address)
5295 (windows_nat_target::thread_name)
5296 (windows_nat_target::thread_alive): Update.
5297 * nat/windows-nat.h (enum thread_disposition_type): Move from
5298 windows-nat.c.
5299 (thread_rec): Declare.
5300
4834dad0
TT
53012020-04-08 Tom Tromey <tromey@adacore.com>
5302
5303 * windows-nat.c: Add "using namespace".
5304 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5305 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5306
65bafd5b
TT
53072020-04-08 Tom Tromey <tromey@adacore.com>
5308
5309 * nat/windows-nat.h (struct windows_thread_info): Declare
5310 destructor.
5311 * nat/windows-nat.c (~windows_thread_info): New.
5312
0a4afda3
TT
53132020-04-08 Tom Tromey <tromey@adacore.com>
5314
5315 PR gdb/22992
5316 * windows-nat.c (current_event): Update comment.
5317 (last_wait_event, desired_stop_thread_id): New globals.
5318 (struct pending_stop): New.
5319 (pending_stops): New global.
5320 (windows_nat_target) <stopped_by_sw_breakpoint>
5321 <supports_stopped_by_sw_breakpoint>: New methods.
5322 (windows_fetch_one_register): Add assertions. Adjust PC.
5323 (windows_continue): Handle pending stops. Suspend other threads
5324 when stepping. Use last_wait_event
5325 (wait_for_debug_event): New function.
5326 (get_windows_debug_event): Use wait_for_debug_event. Handle
5327 pending stops. Queue spurious stops.
5328 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5329 (windows_nat_target::kill): Use wait_for_debug_event.
5330 * nat/windows-nat.h (struct windows_thread_info)
5331 <stopped_at_software_breakpoint>: New field.
5332 * nat/windows-nat.c (windows_thread_info::resume): Clear
5333 stopped_at_software_breakpoint.
5334
8e61ebec
TT
53352020-04-08 Tom Tromey <tromey@adacore.com>
5336
5337 * windows-nat.c (enum thread_disposition_type): New.
5338 (thread_rec): Replace "get_context" parameter with "disposition";
5339 change type.
5340 (windows_add_thread, windows_nat_target::fetch_registers)
5341 (windows_nat_target::store_registers, handle_exception)
5342 (windows_nat_target::resume, get_windows_debug_event)
5343 (windows_nat_target::get_tib_address)
5344 (windows_nat_target::thread_name)
5345 (windows_nat_target::thread_alive): Update.
5346
98a03287
TT
53472020-04-08 Tom Tromey <tromey@adacore.com>
5348
5349 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5350 (windows_continue): Use windows_continue::resume.
5351 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5352 resume>: Declare new methods.
5353 * nat/windows-nat.c: New file.
5354 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5355
7c7411bc
TT
53562020-04-08 Tom Tromey <tromey@adacore.com>
5357
5358 * windows-nat.c (windows_add_thread, windows_delete_thread)
5359 (windows_nat_target::fetch_registers)
5360 (windows_nat_target::store_registers, fake_create_process)
5361 (windows_nat_target::resume, windows_nat_target::resume)
5362 (get_windows_debug_event, windows_nat_target::wait)
5363 (windows_nat_target::pid_to_str)
5364 (windows_nat_target::get_tib_address)
5365 (windows_nat_target::get_ada_task_ptid)
5366 (windows_nat_target::thread_name)
5367 (windows_nat_target::thread_alive): Use lwp, not tid.
5368
2950fdf7
TT
53692020-04-08 Tom Tromey <tromey@adacore.com>
5370
5371 * windows-nat.c (handle_exception)
5372 (windows_nat_target::thread_name): Update.
5373 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5374 <name>: Now unique_xmalloc_ptr.
5375
62fe396b
TT
53762020-04-08 Tom Tromey <tromey@adacore.com>
5377
5378 * windows-nat.c (thread_rec)
5379 (windows_nat_target::fetch_registers): Update.
5380 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5381 Update comment.
5382 <debug_registers_changed, reload_context>: Now bool.
5383
e9534bd2
TT
53842020-04-08 Tom Tromey <tromey@adacore.com>
5385
5386 * windows-nat.c (windows_add_thread): Use new.
5387 (windows_init_thread_list, windows_delete_thread): Use delete.
5388 (get_windows_debug_event): Update.
5389 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5390 destructor, and initializers.
5391
ae1f8880
TT
53922020-04-08 Tom Tromey <tromey@adacore.com>
5393
5394 * windows-nat.c (struct windows_thread_info): Remove.
5395 * nat/windows-nat.h: New file.
5396
55a1e039
TT
53972020-04-08 Tom Tromey <tromey@adacore.com>
5398
5399 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5400 (thread_rec, windows_add_thread, windows_delete_thread)
5401 (windows_continue): Update.
5402
93366324
TT
54032020-04-08 Tom Tromey <tromey@adacore.com>
5404
5405 * windows-nat.c (struct windows_thread_info): Remove typedef.
5406 (thread_head): Remove.
5407 (thread_list): New global.
5408 (thread_rec, windows_add_thread, windows_init_thread_list)
5409 (windows_delete_thread, windows_continue): Update.
5410
0f2265e2
SM
54112020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5412
5413 * windows-tdep.h (windows_init_abi): Add comment.
5414 (cygwin_init_abi): New declaration.
5415 * windows-tdep.c: Split signal enumeration in two, one for
5416 Windows and one for Cygwin.
5417 (windows_gdb_signal_to_target): Only deal with signal of the
5418 Windows OS ABI.
5419 (cygwin_gdb_signal_to_target): New function.
5420 (windows_init_abi): Rename to windows_init_abi_common, don't set
5421 gdb_signal_to_target gdbarch method. Add new new function with
5422 this name.
5423 (cygwin_init_abi): New function.
5424 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5425 comment. Don't call windows_init_abi.
5426 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5427 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5428 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5429 i386_windows_init_abi_common, don't call windows_init_abi. Add
5430 a new function of this name.
5431 (i386_cygwin_init_abi): New function.
5432 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5433 OS ABI Cygwin.
5434
3810f182
SM
54352020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5436
5437 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5438 parameter.c.
5439 (dwarf2_read_gdb_index): Update.
5440
063f8e80
KR
54412020-04-07 Kamil Rytarowski <n54@gmx.com>
5442
5443 * nbsd-tdep.c: Include "objfiles.h".
5444 (nbsd_skip_solib_resolver): New.
5445 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5446
85a9510c 54472020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5448
5449 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5450 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5451 with DW_LLE_base_addressx are being emitted in DWARFv5.
5452 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5453 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5454 unsigned integer.
5455
9fc3eaae 54562020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5457
5458 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5459 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5460 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5461 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5462 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5463 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5464 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5465
5466
41144253 54672020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5468
5469 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5470 (read_loclist_index): New function definition.
5471 (lookup_loclist_base): New function definition.
5472 (read_loclist_header): New function definition.
5473 (dwarf2_cu): Add loclist_base and loclist_header field.
5474 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5475 (read_full_die_1): Read the value of DW_AT_loclists_base.
5476 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5477 (read_attribute_value): Handle DW_FORM_loclistx.
5478 (skip_one_die): Handle DW_FORM_loclistx.
5479 (loclist_header): New structure declaration.
5480 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5481
9f4e76a4
SM
54822020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5483
5484 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5485 constructor. Remove `addr` parameter from other constructor and
5486 add `per_cu` parameter.
5487 * dwarf2/read.c (create_partial_symtab): Update.
5488
25c11aca
TV
54892020-04-07 Tom de Vries <tdevries@suse.de>
5490
5491 PR symtab/25796
5492 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5493 (partial_die_info::fixup): Inherit has_const_value.
5494
5707e24b
TV
54952020-04-07 Tom de Vries <tdevries@suse.de>
5496
5497 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5498 symbols without address.
5499
05f00e22
KR
55002020-04-06 Kamil Rytarowski <n54@gmx.com>
5501
5502 * nbsd-nat.h (struct thread_info): Add forward declaration.
5503 (nbsd_nat_target::thread_alive): Add.
5504 (nbsd_nat_target::thread_name): Likewise.
5505 (nbsd_nat_target::update_thread_list): Likewise.
5506 (update_thread_list::post_attach): Likewise.
5507 (post_attach::pid_to_str): Likewise.
5508 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5509 (nbsd_thread_lister): Add.
5510 (nbsd_nat_target::thread_alive): Likewise.
5511 (nbsd_nat_target::thread_name): Likewise.
5512 (nbsd_add_threads): Likewise.
5513 (update_thread_list::post_attach): Likewise.
5514 (nbsd_nat_target::update_thread_list): Likewise.
5515 (post_attach::pid_to_str): Likewise.
5516
6ee448cc
TT
55172020-04-06 Tom Tromey <tromey@adacore.com>
5518
5519 * ada-valprint.c (print_variant_part): Extract the variant field.
5520 (print_field_values): Use the field as the outer value when
5521 recursing.
5522
dea34e8c
TT
55232020-04-06 Tom Tromey <tromey@adacore.com>
5524
5525 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5526 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5527 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5528 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5529 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5530
93689ce9
TT
55312020-04-06 Tom Tromey <tromey@adacore.com>
5532
5533 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5534 TYPE_CODE_ERROR.
5535
79743962
KR
55362020-04-06 Kamil Rytarowski <n54@gmx.com>
5537
5538 * nbsd-tdep.c: Include "gdbarch.h".
5539 Define enum with NetBSD signal numbers.
5540 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5541 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5542 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5543 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5544 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5545 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5546 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5547 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5548 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5549 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5550 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5551 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5552
9e7c9a03
HD
55532020-04-03 Hannes Domani <ssbssa@yahoo.de>
5554
5555 PR gdb/25325
5556 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5557
d9e49b61
TT
55582020-04-03 Tom Tromey <tromey@adacore.com>
5559
5560 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5561 Read constant block.
5562
e0fc5c3f
SM
55632020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5564
5565 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5566 (gdb_bfd_get_full_section_contents): New declaration.
5567 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5568 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5569 gdb_bfd_get_full_section_contents.
5570
e2ff18a0
SM
55712020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5572
5573 * exec.c (build_section_table): Replace internal_error with
5574 gdb_assert.
5575 (section_table_xfer_memory_partial): Likewise.
5576 * mdebugread.c (parse_partial_symbols): Likewise.
5577 * psymtab.c (lookup_partial_symbol): Likewise.
5578 * utils.c (wrap_here): Likewise.
5579
0830d301
TT
55802020-04-02 Tom Tromey <tromey@adacore.com>
5581
5582 * f-lang.c (build_fortran_types): Use arch_type to initialize
5583 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5584
e7da7f8f
TT
55852020-04-02 Tom Tromey <tromey@adacore.com>
5586
5587 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5588 of attributes.
5589
c90d28ac
AB
55902020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5591 Bernd Edlinger <bernd.edlinger@hotmail.de>
5592 Tom Tromey <tromey@adacore.com>
5593
5594 * buildsym.c (buildsym_compunit::record_line): Remove
5595 deduplication code.
5596
1aa98955
TV
55972020-04-02 Tom de Vries <tdevries@suse.de>
5598
5599 PR ada/24671
5600 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5601
d3214198
TV
56022020-04-02 Tom de Vries <tdevries@suse.de>
5603
5604 * dwarf2/read.c (dwarf2_gdb_index_functions,
5605 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5606 NULL.
5607 * psymtab.c (psym_lookup_global_symbol_language): New function.
5608 (psym_functions): Init psym_lookup_global_symbol_language with
5609 psym_lookup_global_symbol_language.
5610 * symfile-debug.c (debug_sym_quick_functions): Init
5611 lookup_global_symbol_language with NULL.
5612 * symfile.c (set_initial_language): Remove fixme comment.
5613 * symfile.h (struct quick_symbol_functions): Add
5614 lookup_global_symbol_language.
5615 * symtab.c (find_quick_global_symbol_language): New function.
5616 (find_main_name): Use find_quick_global_symbol_language.
5617
2836752f
SM
56182020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5619
5620 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5621
64dc2d4b
BE
56222020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5623
5624 * buildsym.c (record_line): Fix undefined behavior and preserve
5625 lines at eof.
5626
bbe3dc41
BE
56272020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5628
5629 * buildsym.c (record_line): Fix the resizing condition.
5630
6b4a335b
TT
56312020-04-01 Tom Tromey <tom@tromey.com>
5632
5633 * value.h (value_literal_complex): Add comment.
5634 * valops.c (value_literal_complex): Refer to value.h.
5635
3638a098
TT
56362020-04-01 Tom Tromey <tom@tromey.com>
5637
5638 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5639 (scalar_type): New rule, from typebase.
5640 (typebase): Use scalar_type. Recognize complex types.
5641 (field_name): Handle FLOAT_KEYWORD.
5642 (ident_tokens): Add _Complex and __complex__.
5643
c34e8714
TT
56442020-04-01 Tom Tromey <tom@tromey.com>
5645
5646 PR exp/25299:
5647 * valarith.c (promotion_type, complex_binop): New functions.
5648 (scalar_binop): Handle complex numbers. Use promotion_type.
5649 (value_pos, value_neg, value_complement): Handle complex numbers.
5650
fa649bb7
TT
56512020-04-01 Tom Tromey <tom@tromey.com>
5652
5653 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5654 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5655 (parse_number): Handle complex numbers.
5656
981c08ce
TT
56572020-04-01 Tom Tromey <tom@tromey.com>
5658
5659 * c-valprint.c (c_decorations): Change complex suffix to "i".
5660
4c99290d
TT
56612020-04-01 Tom Tromey <tom@tromey.com>
5662
5663 * valprint.c (generic_value_print_complex): Use accessors.
5664 * value.h (value_real_part, value_imaginary_part): Declare.
5665 * valops.c (value_real_part, value_imaginary_part): New
5666 functions.
5667 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5668
5b930b45
TT
56692020-04-01 Tom Tromey <tom@tromey.com>
5670
5671 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5672 (read_range_type): Update.
5673 * mdebugread.c (basic_type): Update.
5674 * go-lang.c (build_go_types): Use init_complex_type.
5675 * gdbtypes.h (struct main_type) <complex_type>: New member.
5676 (init_complex_type): Update.
5677 (arch_complex_type): Don't declare.
5678 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5679 Make name if none given. Use alloc_type_copy. Look for cached
5680 complex type.
5681 (arch_complex_type): Remove.
5682 (gdbtypes_post_init): Use init_complex_type.
5683 * f-lang.c (build_fortran_types): Use init_complex_type.
5684 * dwarf2/read.c (read_base_type): Update.
5685 * d-lang.c (build_d_types): Use init_complex_type.
5686 * ctfread.c (read_base_type): Update.
5687
53cccef1
TBA
56882020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5689
5690 * infrun.c (stop_all_threads): Update assertion, plus when
5691 stopping threads, take into account that we might be trying
5692 to stop an all-stop target.
5693 (stop_waiting): Call 'stop_all_threads' if there exists a
5694 non-stop target.
5695
a0714d30
TBA
56962020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5697
5698 * target.h (exists_non_stop_target): New function declaration.
5699 * target.c (exists_non_stop_target): New function.
5700
60e22c1e
HD
57012020-04-01 Hannes Domani <ssbssa@yahoo.de>
5702
5703 PR gdb/24789
5704 * eval.c (is_integral_or_integral_reference): New function.
5705 (evaluate_subexp_standard): Allow integer references in
5706 pointer arithmetic.
5707
e139a727
TBA
57082020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5709
5710 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5711 check for no ptid in the stop reply when the target is non-stop.
5712
e0802d59
TT
57132020-04-01 Tom Tromey <tromey@adacore.com>
5714
5715 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5716 "name" parameter to rvalue reference. Initialize m_name_holder.
5717 <lookup_name_info>: New overloads.
5718 <name>: Return gdb::string_view.
5719 <c_str>: New method.
5720 <make_ignore_params>: Update.
5721 <search_name_hash>: Update.
5722 <language_lookup_name>: Return const char *.
5723 <m_name>: Change type.
5724 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5725 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5726 (lookup_name_info::match_any): Update.
5727 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5728 Update.
5729 * minsyms.c (linkage_name_str): Update.
5730 * language.c (default_symbol_name_matcher): Update.
5731 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5732 Update.
5733 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5734 (ada_lookup_name_info::ada_lookup_name_info): Update.
5735 (literal_symbol_name_matcher): Update.
5736
8c072cb6
TT
57372020-04-01 Tom Tromey <tromey@adacore.com>
5738
5739 * psymtab.c (psymtab_search_name): Remove function.
5740 (psym_lookup_symbol): Create search name and lookup name here.
5741 (lookup_partial_symbol): Remove "name" parameter; add
5742 lookup_name.
5743 (psym_expand_symtabs_for_function): Update.
5744
6f29a534
TT
57452020-03-31 Joel Jones <joelkevinjones@gmail.com>
5746
5747 PR tui/25597:
5748 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5749
af62665e
TT
57502020-03-31 Tom Tromey <tromey@adacore.com>
5751
5752 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5753 memcpy.
5754
d1a89da5
NC
57552020-03-30 Nelson Chu <nelson.chu@sifive.com>
5756
5757 * features/riscv/32bit-csr.xml: Regenerated.
5758 * features/riscv/64bit-csr.xml: Regenerated.
5759
d8af9068
TT
57602020-03-30 Tom Tromey <tromey@adacore.com>
5761
5762 * ada-valprint.c (print_variant_part): Update.
5763 * ada-lang.h (ada_which_variant_applies): Update.
5764 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5765 outer_valaddr parameters; replace with "outer" value parameter.
5766 (to_fixed_variant_branch_type): Update.
5767
227c0bf4
PFC
57682020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5769
5770 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5771 <list>. Remove inclusion of observable.h.
5772 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5773 (struct arch_lwp_info): New struct.
5774 (class ppc_linux_dreg_interface): New class.
5775 (struct ppc_linux_process_info): New struct.
5776 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5777 <low_new_clone, low_forget_process, low_prepare_to_resume>
5778 <copy_thread_dreg_state, mark_thread_stale>
5779 <mark_debug_registers_changed, register_hw_breakpoint>
5780 <clear_hw_breakpoint, register_wp, clear_wp>
5781 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5782 <num_memory_accesses, get_trigger_type>
5783 <create_watchpoint_request, hwdebug_point_cmp>
5784 <init_arch_lwp_info, get_arch_lwp_info>
5785 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5786 methods.
5787 <struct ptid_hash>: New inner struct.
5788 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5789 members.
5790 (saved_dabr_value, hwdebug_info, max_slots_number)
5791 (struct hw_break_tuple, struct thread_points, ppc_threads)
5792 (have_ptrace_hwdebug_interface)
5793 (hwdebug_find_thread_points_by_tid)
5794 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5795 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5796 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5797 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5798 use m_dreg_interface.
5799 (hwdebug_point_cmp): Change to...
5800 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5801 reference arguments instead of pointers.
5802 (ppc_linux_nat_target::ranged_break_num_registers): Use
5803 m_dreg_interface.
5804 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5805 m_dreg_interface. Call register_hw_breakpoint.
5806 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5807 m_dreg_interface. Call clear_hw_breakpoint.
5808 (get_trigger_type): Change to...
5809 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5810 comment.
5811 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5812 use m_dreg_interface. Call register_hw_breakpoint.
5813 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5814 use m_dreg_interface. Call clear_hw_breakpoint.
5815 (can_use_watchpoint_cond_accel): Change to...
5816 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5817 method. Update comment, use m_dreg_interface and
5818 m_process_info.
5819 (calculate_dvc): Change to...
5820 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5821 m_dreg_interface.
5822 (num_memory_accesses): Change to...
5823 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5824 (check_condition): Change to...
5825 (ppc_linux_nat_target::check_condition): ...this method.
5826 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5827 comment, use m_dreg_interface.
5828 (create_watchpoint_request): Change to...
5829 (ppc_linux_nat_target::create_watchpoint_request): ...this
5830 method. Use m_dreg_interface.
5831 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5832 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5833 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5834 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5835 (ppc_linux_nat_target::low_forget_process)
5836 (ppc_linux_nat_target::low_new_fork)
5837 (ppc_linux_nat_target::low_new_clone)
5838 (ppc_linux_nat_target::low_delete_thread)
5839 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5840 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5841 only call mark_thread_stale.
5842 (ppc_linux_thread_exit): Remove.
5843 (ppc_linux_nat_target::stopped_data_address): Change to...
5844 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5845 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5846 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5847 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5848 comment. Call low_stopped_data_address.
5849 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5850 m_dreg_interface.
5851 (ppc_linux_nat_target::masked_watch_num_registers): Use
5852 m_dreg_interface.
5853 (ppc_linux_nat_target::copy_thread_dreg_state)
5854 (ppc_linux_nat_target::mark_thread_stale)
5855 (ppc_linux_nat_target::mark_debug_registers_changed)
5856 (ppc_linux_nat_target::register_hw_breakpoint)
5857 (ppc_linux_nat_target::clear_hw_breakpoint)
5858 (ppc_linux_nat_target::register_wp)
5859 (ppc_linux_nat_target::clear_wp)
5860 (ppc_linux_nat_target::init_arch_lwp_info)
5861 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5862 (_initialize_ppc_linux_nat): Remove observer callback.
5863
4db10d8f
PFC
58642020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5865
5866 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5867 (ppc_linux_nat_target::auxv_parse)
5868 (ppc_linux_nat_target::read_description)
5869 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5870 Move up.
5871
1310c1b0
PFC
58722020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5873
5874 * linux-nat.h (low_new_clone): New method.
5875 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5876
69b037c3
SM
58772020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5878
5879 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5880 (dbx_expand_psymtab): ... this.
5881 (start_psymtab): Update.
5882 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5883 (mdebug_expand_psymtab): ... this.
5884 (parse_partial_symbols): Update.
5885 (new_psymtab): Update.
5886 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5887 (xcoff_expand_psymtab): ... this.
5888 (xcoff_start_psymtab): Update.
5889
48993951
SM
58902020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5891
5892 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5893 <expand_dependencies>: ... this.
5894 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5895 (partial_symtab::expand_dependencies): ... this.
5896 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5897 Update.
5898 (dwarf2_psymtab::expand_psymtab): Update.
5899 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5900 * mdebugread.c (psymtab_to_symtab_1): Update.
5901 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5902
3ad83046
SM
59032020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5904
5905 * psympriv.h (discard_psymtab): Remove.
5906 * dbxread.c (dbx_end_psymtab): Update.
5907 * xcoffread.c (xcoff_end_psymtab): Update.
5908
4d1b9ab6
TT
59092020-03-28 Tom Tromey <tom@tromey.com>
5910
5911 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5912 comment.
5913
f1749218
TT
59142020-03-28 Tom Tromey <tom@tromey.com>
5915
5916 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5917
ebea7626
HD
59182020-03-27 Hannes Domani <ssbssa@yahoo.de>
5919
5920 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5921
a879b4d5
JB
59222020-03-26 John Baldwin <jhb@FreeBSD.org>
5923
5924 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5925
0826b30a
TT
59262020-03-26 Tom Tromey <tom@tromey.com>
5927
5928 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5929 (mark_common_block_symbol_computed, read_tag_string_type)
5930 (attr_to_dynamic_prop, read_subrange_type): Update.
5931 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5932 to be methods on struct attribute.
5933 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5934 (read_call_site_scope, partial_die_info::read)
5935 (partial_die_info::read, lookup_die_type, follow_die_ref):
5936 Update.
5937 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5938 from dwarf2_get_ref_die_offset.
5939 (attribute::constant_value): New method, from
5940 dwarf2_get_attr_constant_value.
5941 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5942 Declare method.
5943 <constant_value>: New method.
5944
2b2558bf
TT
59452020-03-26 Tom Tromey <tom@tromey.com>
5946
5947 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5948 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5949 (dwarf_type_encoding_name): Move to stringify.c.
5950 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5951 * dwarf2/stringify.c: New file.
5952 * dwarf2/stringify.h: New file.
5953
eeb64781
TT
59542020-03-26 Tom Tromey <tom@tromey.com>
5955
5956 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5957 Rewrite.
5958
a39fdb41
TT
59592020-03-26 Tom Tromey <tom@tromey.com>
5960
5961 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5962 methods.
5963 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5964 (lookup_ranges_base): Likewise.
5965 (read_cutu_die_from_dwo, read_full_die_1): Update.
5966
436c571c
TT
59672020-03-26 Tom Tromey <tom@tromey.com>
5968
5969 * dwarf2/read.c (read_import_statement, read_file_scope)
5970 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5971 (read_lexical_block_scope, read_call_site_scope)
5972 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5973 (handle_struct_member_die, process_structure_scope)
5974 (update_enumeration_type_from_children)
5975 (process_enumeration_scope, read_array_type, read_common_block)
5976 (read_namespace, read_module, read_subroutine_type): Update.
5977 (sibling_die): Remove.
5978
052c8bb8
TT
59792020-03-26 Tom Tromey <tom@tromey.com>
5980
5981 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5982 (build_type_psymtabs_reader, read_structure_type)
5983 (read_enumeration_type, read_full_die_1): Update.
5984 (dwarf2_attr_no_follow): Move to die.h.
5985 * dwarf2/die.h (struct die_info) <attr>: New method.
5986
2b24b6e4
TT
59872020-03-26 Tom Tromey <tom@tromey.com>
5988
5989 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5990 <base_address>: Now an optional.
5991 (dwarf2_find_base_address, dwarf2_rnglists_process)
5992 (dwarf2_ranges_process, fill_in_loclist_baton)
5993 (dwarf2_symbol_mark_computed): Update.
5994
c2d50fd0
TT
59952020-03-26 Tom Tromey <tom@tromey.com>
5996
5997 * dwarf2/read.c (struct die_info): Move to die.h.
5998 * dwarf2/die.h: New file.
5999
0df7ad3a
TT
60002020-03-26 Tom Tromey <tom@tromey.com>
6001
6002 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6003 * dwarf2/read.c
6004 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6005 Move to line-header.c.
6006 (read_checked_initial_length_and_offset, read_formatted_entries):
6007 Likewise.
6008 (dwarf_decode_line_header): Split into two.
6009 * dwarf2/line-header.c
6010 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6011 Move from read.c.
6012 (read_checked_initial_length_and_offset, read_formatted_entries):
6013 Likewise.
6014 (dwarf_decode_line_header): New function, split from read.c.
6015
86c0bb4c
TT
60162020-03-26 Tom Tromey <tom@tromey.com>
6017
6018 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6019 Declare method.
6020 * dwarf2/read.c (read_attribute_value): Update.
6021 (dwarf2_per_objfile::read_line_string): Rename from
6022 read_indirect_line_string.
6023 (read_formatted_entries): Update.
6024
2ef46c2f
TT
60252020-03-26 Tom Tromey <tom@tromey.com>
6026
6027 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6028 variable.
6029
4f9c1eda
TT
60302020-03-26 Tom Tromey <tom@tromey.com>
6031
6032 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6033 const.
6034 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6035 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6036 parameter const.
6037
5a0e026f
TT
60382020-03-26 Tom Tromey <tom@tromey.com>
6039
6040 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6041 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6042 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6043 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6044
8844c11b
TT
60452020-03-26 Tom Tromey <tom@tromey.com>
6046
6047 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6048 file_names_size, file_full_name, file_file_name>: Use const.
6049 <file_name_at, file_names>: Add const overload.
6050 * dwarf2/line-header.c (line_header::file_file_name)
6051 (line_header::file_full_name): Update.
6052
c90ec28a
TT
60532020-03-26 Tom Tromey <tom@tromey.com>
6054
6055 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6056 (macro_start_file, consume_improper_spaces)
6057 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6058 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6059 (dwarf_decode_macros): Move to macro.c.
6060 * dwarf2/macro.c: New file.
6061 * dwarf2/macro.h: New file.
6062 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6063
4f44ae6c
TT
60642020-03-26 Tom Tromey <tom@tromey.com>
6065
6066 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6067 method.
6068 * dwarf2/section.c: New method. From
6069 read_indirect_string_at_offset_from.
6070 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6071 (read_indirect_string_at_offset_from): Move to section.c.
6072 (read_indirect_string_at_offset): Rewrite.
6073 (read_indirect_line_string_at_offset): Remove.
6074 (read_indirect_string, read_indirect_line_string)
6075 (dwarf_decode_macro_bytes): Update.
6076
a0194fa8
TT
60772020-03-26 Tom Tromey <tom@tromey.com>
6078
6079 * dwarf2/section.h (struct dwarf2_section_info)
6080 <overload_complaint>: Declare.
6081 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6082 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6083 Rename from dwarf2_section_buffer_overflow_complaint.
6084 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6085 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6086
3d27bbdb
TT
60872020-03-26 Tom Tromey <tom@tromey.com>
6088
6089 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6090 Declare.
6091 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6092 Move from read.c.
6093 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6094 to section.c.
6095
9eac9650
TT
60962020-03-26 Tom Tromey <tom@tromey.com>
6097
6098 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6099
bf80d710
TT
61002020-03-26 Tom Tromey <tom@tromey.com>
6101
6102 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6103 "builder".
6104 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6105 parameter.
6106 (dwarf_decode_macros): Update.
6107
0314b390
TT
61082020-03-26 Tom Tromey <tom@tromey.com>
6109
6110 * dwarf2/read.c (read_attribute_value): Update.
6111 (read_indirect_string_from_dwz): Move to dwz.c; change into
6112 method.
6113 (dwarf_decode_macro_bytes): Update.
6114 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6115 * dwarf2/dwz.c: New file.
6116 * Makefile.in (COMMON_SFILES): Add dwz.c.
6117
9fda78b6
TT
61182020-03-26 Tom Tromey <tom@tromey.com>
6119
6120 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6121 * dwarf2/read.c: Add include.
6122 * dwarf2/index-write.c: Add include.
6123 * dwarf2/index-cache.c: Add include.
6124 * dwarf2/dwz.h: New file.
6125
33aa3c10
TT
61262020-03-25 Tom Tromey <tom@tromey.com>
6127
6128 * compile/compile-object-load.c (get_out_value_type): Mention
6129 correct symbol name in error message.
6130
d503b685
HD
61312020-03-25 Hannes Domani <ssbssa@yahoo.de>
6132
6133 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6134
7b1eff95
TV
61352020-03-25 Tom de Vries <tdevries@suse.de>
6136
6137 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6138 * symmisc.c (dump_symtab_1): Print user and includes fields.
6139 (maintenance_info_symtabs): Same.
6140
dd895392
AB
61412020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6142
6143 PR gdb/25534
6144 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6145 (riscv_regcache_cooked_write): New function.
6146 (riscv_push_dummy_call): Use new function.
6147 (riscv_return_value): Likewise.
6148
5ab2fbf1
SM
61492020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6150
6151 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6152 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6153 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6154 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6155 * infrun.c (follow_fork): Likewise.
6156 (follow_fork_inferior): Likewise.
6157 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6158 * linux-nat.h (class linux_nat_target): Likewise.
6159 * remote.c (class remote_target) <follow_fork>: Likewise.
6160 (remote_target::follow_fork): Likewise.
6161 * target-delegates.c: Re-generate.
6162 * target.c (default_follow_fork): Likewise.
6163 (target_follow_fork): Likewise.
6164 * target.h (struct target_ops) <follow_fork>: Likewise.
6165 (target_follow_fork): Likewise.
6166
a64fafb5
TV
61672020-03-24 Tom de Vries <tdevries@suse.de>
6168
6169 * psymtab.c (maintenance_info_psymtabs): Print user field.
6170
fe26d3a3
TT
61712020-03-20 Tom Tromey <tromey@adacore.com>
6172
6173 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6174 const.
6175 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6176 const.
6177
c884cc46
SM
61782020-03-20 Simon Marchi <simon.marchi@efficios.com>
6179
6180 * ptrace.m4: Don't check for ptrace declaration.
6181 * config.in: Re-generate.
6182 * configure: Re-generate.
6183 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6184 not defined.
6185
1ff700c2
KR
61862020-03-20 Kamil Rytarowski <n54@gmx.com>
6187
6188 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6189 `PTRACE_TYPE_RET'.
6190 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6191 * sparc-nat.c (gdb_ptrace): Likewise.
6192 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6193
f7d4f0b1
TT
61942020-03-20 Tom Tromey <tromey@adacore.com>
6195
6196 * c-exp.y (lex_one_token): Fix assert.
6197
f67210ff
TT
61982020-03-20 Tom Tromey <tromey@adacore.com>
6199
6200 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6201 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6202 strncpy call.
6203
1773be9e
TT
62042020-03-20 Tom Tromey <tromey@adacore.com>
6205
6206 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6207
70304be9
TT
62082020-03-20 Tom Tromey <tromey@adacore.com>
6209
6210 * ada-valprint.c (print_variant_part): Remove parameters; switch
6211 to value-based API.
6212 (print_field_values): Likewise.
6213 (ada_val_print_struct_union): Likewise.
6214 (ada_value_print_1): Update.
6215
9faa006d
KR
62162020-03-20 Kamil Rytarowski <n54@gmx.com>
6217
6218 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6219 nbsd_nat_target instead of inf_ptrace_target.
6220 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6221 nbsd_nat_target.
6222
4a90f062
KR
62232020-03-20 Kamil Rytarowski <n54@gmx.com>
6224
6225 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6226 it to the ptrace call.
6227 * (store_registers): Likewise.
6228
62292020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6230
6231 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6232 it to the ptrace call.
6233 * (store_registers): Likewise.
6234
2d07da27
LM
62352020-03-19 Luis Machado <luis.machado@linaro.org>
6236
6237 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6238 valid, fetch vg value from ptrace.
6239
f09db380
KR
62402020-03-19 Kamil Rytarowski <n54@gmx.com>
6241 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6242 * inf-ptrace.c: Likewise.
6243 * (gdb_ptrace): Add.
6244 * (inf_ptrace_target::resume): Update.
6245 * (inf_ptrace_target::xfer_partial): Likewise.
6246 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6247 * (inf_ptrace_peek_poke): Update.
6248
fcc7376e
KR
62492020-03-19 Kamil Rytarowski <n54@gmx.com>
6250
6251 * x86-bsd-nat.c (gdb_ptrace): New.
6252 * (x86bsd_dr_set): Add new argument `ptid'.
6253 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6254 x86bsd_dr_set_addr): Update.
6255
cada5fc9
AB
62562020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6257
6258 * remote.c (remote_target::process_stop_reply): Handle events for
6259 all threads differently.
6260
19a2740f
AB
62612020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6262
6263 * completer.c (completion_tracker::remove_completion): Define new
6264 function.
6265 * completer.h (completion_tracker::remove_completion): Declare new
6266 function.
6267 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6268 when adding a C++ function symbol.
6269
724fd9ba
AB
62702020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6271
6272 * completer.c (completion_tracker::completion_hash_entry): Define
6273 new class.
6274 (advance_to_filename_complete_word_point): Call
6275 recompute_lowest_common_denominator.
6276 (completion_tracker::completion_tracker): Call discard_completions
6277 to setup the hash table.
6278 (completion_tracker::discard_completions): Allow for being called
6279 from the constructor, pass new equal function, and element deleter
6280 when constructing the hash table. Initialise new class member
6281 variables.
6282 (completion_tracker::maybe_add_completion): Remove use of
6283 m_entries_vec, and store more information into m_entries_hash.
6284 (completion_tracker::recompute_lcd_visitor): New function, most
6285 content taken from...
6286 (completion_tracker::recompute_lowest_common_denominator):
6287 ...here, this now just visits each item in the hash calling the
6288 above visitor.
6289 (completion_tracker::build_completion_result): Remove use of
6290 m_entries_vec, call recompute_lowest_common_denominator.
6291 * completer.h (completion_tracker::have_completions): Remove use
6292 of m_entries_vec.
6293 (completion_tracker::completion_hash_entry): Declare new class.
6294 (completion_tracker::recompute_lowest_common_denominator): Change
6295 function signature.
6296 (completion_tracker::recompute_lcd_visitor): Declare new function.
6297 (completion_tracker::m_entries_vec): Delete.
6298 (completion_tracker::m_entries_hash): Initialize to NULL.
6299 (completion_tracker::m_lowest_common_denominator_valid): New
6300 member variable.
6301 (completion_tracker::m_lowest_common_denominator_max_length): New
6302 member variable.
6303
5a82b8a1
KR
63042020-03-17 Kamil Rytarowski <n54@gmx.com>
6305
6306 * regformats/regdef.h: Put reg in gdb namespace.
6307
fb516a69
KR
63082020-03-17 Kamil Rytarowski <n54@gmx.com>
6309
6310 * i386-bsd-nat.c (gdb_ptrace): New.
6311 * (i386bsd_fetch_inferior_registers,
6312 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6313 * (i386bsd_fetch_inferior_registers,
6314 i386bsd_store_inferior_registers) Use gdb_ptrace.
6315
1c0aa1fb
KR
63162020-03-17 Kamil Rytarowski <n54@gmx.com>
6317
6318 * amd64-bsd-nat.c (gdb_ptrace): New.
6319 * (amd64bsd_fetch_inferior_registers,
6320 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6321 * (amd64bsd_fetch_inferior_registers,
6322 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6323
5ccd2fb7
KR
63242020-03-17 Kamil Rytarowski <n54@gmx.com>
6325
6326 * user-regs.c (user_reg::read): Rename to...
6327 (user_reg::xread): ...this.
6328 * (append_user_reg): Rename argument `read' to `xread'.
6329 * (user_reg_add_builtin): Likewise.
6330 * (user_reg_add): Likewise.
6331 * (value_of_user_reg): Likewise.
6332
2108a63a
KR
63332020-03-17 Kamil Rytarowski <n54@gmx.com>
6334
6335 * sparc-nat.c (gdb_ptrace): New.
6336 * sparc-nat.c (sparc_fetch_inferior_registers)
6337 (sparc_store_inferior_registers) Remove obsolete comment.
6338 * sparc-nat.c (sparc_fetch_inferior_registers)
6339 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6340 * sparc-nat.c (sparc_fetch_inferior_registers)
6341 (sparc_store_inferior_registers) Use gdb_ptrace.
6342
a225c9a8
KR
63432020-03-17 Kamil Rytarowski <n54@gmx.com>
6344
6345 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6346 it to the ptrace call.
6347 * sh-nbsd-nat.c (store_registers): Likewise.
6348
98097623
KR
63492020-03-17 Kamil Rytarowski <n54@gmx.com>
6350
6351 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6352 nbsd_nat_target instead of inf_ptrace_target.
6353 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6354 nbsd_nat_target.
6355
9e38d619
KR
63562020-03-17 Kamil Rytarowski <n54@gmx.com>
6357
6358 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6359
a2ecbe9f
KR
63602020-03-17 Kamil Rytarowski <n54@gmx.com>
6361
6362 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6363 <sys/sysctl.h>.
6364 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6365
58990295
TV
63662020-03-17 Tom de Vries <tdevries@suse.de>
6367
6368 PR gdb/23710
6369 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6370 fields.
6371 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6372 fields.
6373 (process_imported_unit_die): Skip import of c++ CUs.
6374
771dd3a8
TT
63752020-03-16 Tom Tromey <tom@tromey.com>
6376
6377 * p-valprint.c (pascal_object_print_value): Initialize
6378 base_value.
6379
817a7585
AK
63802020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6381 Shahab Vahedi <shahab@synopsys.com>
6382
6383 * Makefile.in: Add arch/arc.o
6384 * configure.tgt: Likewise.
6385 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6386 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6387 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6388 * arc-tdep.h (arc_read_description): Add proto type.
6389 * arch/arc.c: New file.
6390 * arch/arc.h: Likewise.
6391 * features/Makefile: Replace old target descriptions with new.
6392 * features/arc-arcompact.c: Remove.
6393 * features/arc-arcompact.xml: Likewise.
6394 * features/arc-v2.c: Likewise
6395 * features/arc-v2.xml: Likewise
6396 * features/arc/aux-arcompact.xml: New file.
6397 * features/arc/aux-v2.xml: Likewise.
6398 * features/arc/core-arcompact.xml: Likewise.
6399 * features/arc/core-v2.xml: Likewise.
6400 * features/arc/aux-arcompact.c: Generate.
6401 * features/arc/aux-v2.c: Likewise.
6402 * features/arc/core-arcompact.c: Likewise.
6403 * features/arc/core-v2.c: Likewise.
6404 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6405
67430cd0
TT
64062020-03-16 Tom Tromey <tromey@adacore.com>
6407
6408 PR gdb/25663:
6409 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6410 putting value into bcache.
6411
30efb6c7
SM
64122020-03-16 Simon Marchi <simon.marchi@efficios.com>
6413
6414 PR gdb/21500
6415 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6416 to...
6417 (amd64_windows_init_abi_common): ... this. Don't set size of
6418 long type.
6419 (amd64_windows_init_abi): New function.
6420 (amd64_cygwin_init_abi): New function.
6421 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6422 the Cygwin OS ABI.
6423 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6424 comment.
6425
8db52437
SM
64262020-03-16 Simon Marchi <simon.marchi@efficios.com>
6427
6428 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6429 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6430 (pe_import_directory_entry): New struct type.
6431 (is_linked_with_cygwin_dll): New function.
6432 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6433 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6434 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6435
5982a56a
SM
64362020-03-16 Simon Marchi <simon.marchi@efficios.com>
6437
6438 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6439 i386_cygwin_core_osabi_sniffer.
6440
7a1998df
SM
64412020-03-16 Simon Marchi <simon.marchi@efficios.com>
6442
6443 * i386-cygwin-tdep.c: Rename to...
6444 * i386-windows-tdep.c: ... this.
6445 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6446 i386-windows-tdep.c.
6447 * configure.tgt: Likewise.
6448
053205cc
SM
64492020-03-16 Simon Marchi <simon.marchi@efficios.com>
6450
6451 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6452 * osabi.c (gdb_osabi_names): Add "Windows".
6453 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6454 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6455 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6456 i386_cygwin_osabi_sniffer.
6457 (_initialize_i386_cygwin_tdep): Register OS ABI
6458 GDB_OSABI_WINDOWS for i386.
6459 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6460 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6461 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6462 for x86-64.
6463 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6464 when the target matches '*-*-mingw*'.
6465
fe4b2ee6
SM
64662020-03-16 Simon Marchi <simon.marchi@efficios.com>
6467
6468 * defs.h (enum gdb_osabi): Move to...
6469 * osabi.h (enum gdb_osabi): ... here.
6470 * gdbarch.sh: Include osabi.h in gdbarch.h.
6471 * gdbarch.h: Re-generate.
6472
cb9b645d
SM
64732020-03-16 Simon Marchi <simon.marchi@efficios.com>
6474
6475 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6476 function.
6477 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6478
3293bbaf
TT
64792020-03-14 Tom Tromey <tom@tromey.com>
6480
6481 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6482 for C++.
6483 (c_type_print_modifier): Likewise. Add "language" parameter.
6484 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6485 (c_type_print_base_1): Update.
6486 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6487 constants.
6488 * type-stack.c (type_stack::insert): Handle tp_atomic and
6489 tp_restrict.
6490 (type_stack::follow_type_instance_flags): Likewise.
6491 (type_stack::follow_types): Likewise. Merge type-following code.
6492 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6493 (space_identifier, cv_with_space_id)
6494 (const_or_volatile_or_space_identifier_noopt)
6495 (const_or_volatile_or_space_identifier): Remove.
6496 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6497 rules.
6498 (ptr_operator, typebase): Update.
6499 (enum token_flag) <FLAG_C>: New constant.
6500 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6501 "_Atomic".
6502 (lex_one_token): Handle FLAG_C.
6503
154151a6
KR
65042020-03-14 Kamil Rytarowski <n54@gmx.com>
6505
6506 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6507 it to the ptrace call.
6508 * m68k-bsd-nat.c (store_registers): Likewise.
6509
bc107784
KR
65102020-03-14 Kamil Rytarowski <n54@gmx.com>
6511
6512 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6513 gdb_byte *.
6514 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6515 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6516 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6517
01a80117
KR
65182020-03-14 Kamil Rytarowski <n54@gmx.com>
6519
6520 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6521 nbsd_nat_target instead of inf_ptrace_target.
6522 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6523 nbsd_nat_target.
6524
f90280ca
KR
65252020-03-14 Kamil Rytarowski <n54@gmx.com>
6526
6527 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6528 register_t.
6529
6def66f1
KR
65302020-03-14 Kamil Rytarowski <n54@gmx.com>
6531
6532 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6533 it to the ptrace call.
6534 * alpha-bsd-nat.c (store_registers): Likewise.
6535
66eaca97
KR
65362020-03-14 Kamil Rytarowski <n54@gmx.com>
6537
6538 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6539 includes.
6540 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6541 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6542 fill_fpregset): Likewise.
6543
4fed520b
KR
65442020-03-14 Kamil Rytarowski <n54@gmx.com>
6545
6546 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6547 nbsd_nat_target instead of inf_ptrace_target.
6548 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6549 nbsd_nat_target.
6550
2190cf06
KR
65512020-03-14 Kamil Rytarowski <n54@gmx.com>
6552
6553 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6554 register_t.
6555
75c56d3d
KR
65562020-03-14 Kamil Rytarowski <n54@gmx.com>
6557
6558 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6559 it to the ptrace call.
6560 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6561 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6562 * arm-nbsd-nat.c (store_register): Likewise.
6563 * arm-nbsd-nat.c (store_regs): Likewise.
6564 * arm-nbsd-nat.c (store_fp_register): Likewise.
6565 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6566
6018d381
KR
65672020-03-14 Kamil Rytarowski <n54@gmx.com>
6568
6569 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6570 nbsd_nat_target instead of inf_ptrace_target.
6571 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6572 nbsd_nat_target.
6573
013f99f0
KR
65742020-03-14 Kamil Rytarowski <n54@gmx.com>
6575
6576 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6577 it to the ptrace call.
6578 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6579
12753073
KR
65802020-03-14 Kamil Rytarowski <n54@gmx.com>
6581
6227b330
KR
6582 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6583 it to the ptrace call.
6584 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6585
65862020-03-14 Kamil Rytarowski <n54@gmx.com>
6587
6588 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6589 gdb_byte *.
12753073
KR
6590 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6591
d5be5fa4
KR
65922020-03-14 Kamil Rytarowski <n54@gmx.com>
6593
6594 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6595 instead of inf_ptrace_target.
6596 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6597 nbsd_nat_target.
6598
8110f842
KR
65992020-03-14 Kamil Rytarowski <n54@gmx.com>
6600
6601 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6602 register_t.
6603
52feded7
KR
66042020-03-14 Kamil Rytarowski <n54@gmx.com>
6605
6606 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6607 register_t.
6608
25567eee
KR
66092020-03-14 Kamil Rytarowski <n54@gmx.com>
6610
6611 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6612 register_t.
6613
426a9c18
TT
66142020-03-13 Tom Tromey <tom@tromey.com>
6615
6616 * value.h (val_print): Don't declare.
6617 * valprint.h (val_print_array_elements)
6618 (val_print_scalar_formatted, generic_val_print): Don't declare.
6619 * valprint.c (generic_val_print_array): Take a struct value.
6620 (generic_val_print_ptr, generic_val_print_memberptr)
6621 (generic_val_print_bool, generic_val_print_int)
6622 (generic_val_print_char, generic_val_print_complex)
6623 (generic_val_print): Remove.
6624 (generic_value_print): Update.
6625 (do_val_print): Remove unused parameters. Don't call
6626 la_val_print.
6627 (val_print): Remove.
6628 (common_val_print): Update. Don't call value_check_printable.
6629 (val_print_scalar_formatted, val_print_array_elements): Remove.
6630 * rust-lang.c (rust_val_print): Remove.
6631 (rust_language_defn): Update.
6632 * p-valprint.c (pascal_val_print): Remove.
6633 (pascal_value_print_inner): Update.
6634 (pascal_object_print_val_fields, pascal_object_print_val):
6635 Remove.
6636 (pascal_object_print_static_field): Update.
6637 * p-lang.h (pascal_val_print): Don't declare.
6638 * p-lang.c (pascal_language_defn): Update.
6639 * opencl-lang.c (opencl_language_defn): Update.
6640 * objc-lang.c (objc_language_defn): Update.
6641 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6642 * m2-lang.h (m2_val_print): Don't declare.
6643 * m2-lang.c (m2_language_defn): Update.
6644 * language.h (struct language_defn) <la_val_print>: Remove.
6645 * language.c (unk_lang_value_print_inner): Rename. Change
6646 argument types.
6647 (unknown_language_defn, auto_language_defn): Update.
6648 * go-valprint.c (go_val_print): Remove.
6649 * go-lang.h (go_val_print): Don't declare.
6650 * go-lang.c (go_language_defn): Update.
6651 * f-valprint.c (f_val_print): Remove.
6652 * f-lang.h (f_value_print): Don't declare.
6653 * f-lang.c (f_language_defn): Update.
6654 * d-valprint.c (d_val_print): Remove.
6655 * d-lang.h (d_value_print): Don't declare.
6656 * d-lang.c (d_language_defn): Update.
6657 * cp-valprint.c (cp_print_value_fields)
6658 (cp_print_value_fields_rtti, cp_print_value): Remove.
6659 (cp_print_static_field): Update.
6660 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6661 (c_val_print_struct, c_val_print_union, c_val_print_int)
6662 (c_val_print_memberptr, c_val_print): Remove.
6663 * c-lang.h (c_val_print_array, cp_print_value_fields)
6664 (cp_print_value_fields_rtti): Don't declare.
6665 * c-lang.c (c_language_defn, cplus_language_defn)
6666 (asm_language_defn, minimal_language_defn): Update.
6667 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6668 (ada_val_print_enum): Take a struct value.
6669 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6670 (ada_val_print): Remove.
6671 (ada_value_print_1): Update.
6672 (printable_val_type): Remove.
6673 * ada-lang.h (ada_val_print): Don't declare.
6674 * ada-lang.c (ada_language_defn): Update.
6675
42331a1e
TT
66762020-03-13 Tom Tromey <tom@tromey.com>
6677
6678 * valprint.c (do_val_print): Update.
6679 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6680 a struct value.
6681 (value_to_value_object_no_release): Declare.
6682 * python/py-value.c (value_to_value_object_no_release): New
6683 function.
6684 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6685 struct value.
6686 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6687 function.
6688 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6689 a struct value.
6690 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6691 Declare.
6692 (gdbscm_apply_val_pretty_printer): Take a struct value.
6693 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6694 value.
6695 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6696 value.
6697 * extension-priv.h (struct extension_language_ops)
6698 <apply_val_pretty_printer>: Take a struct value.
6699 * cp-valprint.c (cp_print_value): Create a struct value.
6700 (cp_print_value): Update.
6701
3a916a97
TT
67022020-03-13 Tom Tromey <tom@tromey.com>
6703
6704 * ada-valprint.c (print_field_values): Call common_val_print.
6705
b59eac37
TT
67062020-03-13 Tom Tromey <tom@tromey.com>
6707
6708 * ada-valprint.c (val_print_packed_array_elements): Remove
6709 bitoffset and val parameters. Call common_val_print.
6710 (ada_val_print_string): Remove offset, address, and original_value
6711 parameters.
6712 (ada_val_print_array): Update.
6713 (ada_value_print_array): New function.
6714 (ada_value_print_1): Call it.
6715
03371129
TT
67162020-03-13 Tom Tromey <tom@tromey.com>
6717
6718 * ada-valprint.c (ada_value_print): Use common_val_print.
6719
2e088f8b
TT
67202020-03-13 Tom Tromey <tom@tromey.com>
6721
6722 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6723
39ef85a8
TT
67242020-03-13 Tom Tromey <tom@tromey.com>
6725
6726 * ada-valprint.c (ada_value_print_num): New function.
6727 (ada_value_print_1): Use it.
6728
b9fa6e07
TT
67292020-03-13 Tom Tromey <tom@tromey.com>
6730
6731 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6732
416595d6
TT
67332020-03-13 Tom Tromey <tom@tromey.com>
6734
6735 * ada-valprint.c (ada_value_print_ptr): New function.
6736 (ada_value_print_1): Use it.
6737
5b5e15ec
TT
67382020-03-13 Tom Tromey <tom@tromey.com>
6739
6740 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6741 call common_val_print.
6742 (ada_val_print_1): Update.
6743 (ada_value_print_1): New function.
6744 (ada_value_print_inner): Rewrite.
6745
fbf54e75
TT
67462020-03-13 Tom Tromey <tom@tromey.com>
6747
6748 * cp-valprint.c (cp_print_value_fields): Update.
6749 (cp_print_value): New function.
6750
64b653ca
TT
67512020-03-13 Tom Tromey <tom@tromey.com>
6752
6753 * m2-valprint.c (m2_value_print_inner): Use
6754 cp_print_value_fields.
6755 * cp-valprint.c (cp_print_value_fields): New function.
6756 * c-valprint.c (c_value_print_struct): New function.
6757 (c_value_print_inner): Use c_value_print_struct.
6758 * c-lang.h (cp_print_value_fields): Declare.
6759
6999f067
TT
67602020-03-13 Tom Tromey <tom@tromey.com>
6761
6762 * c-valprint.c (c_value_print_array): New function.
6763 (c_value_print_inner): Use it.
6764
ce80b8bd
TT
67652020-03-13 Tom Tromey <tom@tromey.com>
6766
6767 * c-valprint.c (c_value_print_memberptr): New function.
6768 (c_value_print_inner): Use it.
6769
2faac269
TT
67702020-03-13 Tom Tromey <tom@tromey.com>
6771
6772 * c-valprint.c (c_value_print_int): New function.
6773 (c_value_print_inner): Use it.
6774
da3e2c29
TT
67752020-03-13 Tom Tromey <tom@tromey.com>
6776
6777 * c-valprint.c (c_value_print_ptr): New function.
6778 (c_value_print_inner): Use it.
6779
50836231
TT
67802020-03-13 Tom Tromey <tom@tromey.com>
6781
6782 * c-valprint.c (c_value_print_inner): Rewrite.
6783
4f412b6e
TT
67842020-03-13 Tom Tromey <tom@tromey.com>
6785
6786 * valprint.c (generic_value_print_complex): New function.
6787 (generic_value_print): Use it.
6788
f5354008
TT
67892020-03-13 Tom Tromey <tom@tromey.com>
6790
6791 * valprint.c (generic_val_print_float): Don't call
6792 val_print_scalar_formatted.
6793 (generic_val_print, generic_value_print): Update.
6794
3eec3b05
TT
67952020-03-13 Tom Tromey <tom@tromey.com>
6796
6797 * valprint.c (generic_value_print_char): New function
6798 (generic_value_print): Use it.
6799
fdddfccb
TT
68002020-03-13 Tom Tromey <tom@tromey.com>
6801
6802 * valprint.c (generic_value_print_int): New function.
6803 (generic_value_print): Use it.
6804
6dde7521
TT
68052020-03-13 Tom Tromey <tom@tromey.com>
6806
6807 * valprint.c (generic_value_print_bool): New function.
6808 (generic_value_print): Use it.
6809
4112d2e6
TT
68102020-03-13 Tom Tromey <tom@tromey.com>
6811
6812 * valprint.c (generic_val_print_func): Simplify.
6813 (generic_val_print, generic_value_print): Update.
6814
65786af6
TT
68152020-03-13 Tom Tromey <tom@tromey.com>
6816
6817 * valprint.c (generic_val_print_flags): Remove.
6818 (generic_val_print, generic_value_print): Update.
6819 (val_print_type_code_flags): Add original_value parameter.
6820
40f3ce18
TT
68212020-03-13 Tom Tromey <tom@tromey.com>
6822
6823 * valprint.c (generic_val_print): Update.
6824 (generic_value_print): Update.
6825 * valprint.c (generic_val_print_enum): Don't call
6826 val_print_scalar_formatted.
6827
2a5b130b
TT
68282020-03-13 Tom Tromey <tom@tromey.com>
6829
6830 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6831 * valprint.c (generic_value_print_ptr): New function.
6832
abc66ce9
TT
68332020-03-13 Tom Tromey <tom@tromey.com>
6834
6835 * valprint.c (generic_value_print): Rewrite.
6836
07a32858
TT
68372020-03-13 Tom Tromey <tom@tromey.com>
6838
6839 * p-valprint.c (pascal_object_print_value_fields)
6840 (pascal_object_print_value): New functions.
6841
64d64d3a
TT
68422020-03-13 Tom Tromey <tom@tromey.com>
6843
6844 * p-valprint.c (pascal_value_print_inner): Rewrite.
6845
6a95a1f5
TT
68462020-03-13 Tom Tromey <tom@tromey.com>
6847
6848 * f-valprint.c (f_value_print_innner): Rewrite.
6849
59fcdac6
TT
68502020-03-13 Tom Tromey <tom@tromey.com>
6851
6852 * m2-valprint.c (m2_print_unbounded_array): New overload.
6853 (m2_print_unbounded_array): Update.
6854 (m2_print_array_contents): Take a struct value.
6855 (m2_value_print_inner): Rewrite.
6856
d133c3e1
TT
68572020-03-13 Tom Tromey <tom@tromey.com>
6858
6859 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6860 (d_value_print_inner): New function.
6861 * d-lang.h (d_value_print_inner): Declare.
6862 * d-lang.c (d_language_defn): Use d_value_print_inner.
6863
23b0f06b
TT
68642020-03-13 Tom Tromey <tom@tromey.com>
6865
6866 * go-valprint.c (go_value_print_inner): New function.
6867 * go-lang.h (go_value_print_inner): Declare.
6868 * go-lang.c (go_language_defn): Use go_value_print_inner.
6869
5f56f7cb
TT
68702020-03-13 Tom Tromey <tom@tromey.com>
6871
6872 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6873 API.
6874 (rust_val_print): Rewrite.
6875 (rust_value_print_inner): New function, from rust_val_print.
6876 (rust_language_defn): Use rust_value_print_inner.
6877
26792ee0
TT
68782020-03-13 Tom Tromey <tom@tromey.com>
6879
6880 * ada-valprint.c (ada_value_print_inner): New function.
6881 * ada-lang.h (ada_value_print_inner): Declare.
6882 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6883
24051bbe
TT
68842020-03-13 Tom Tromey <tom@tromey.com>
6885
6886 * f-valprint.c (f_value_print_innner): New function.
6887 * f-lang.h (f_value_print_innner): Declare.
6888 * f-lang.c (f_language_defn): Use f_value_print_innner.
6889
c0941be6
TT
68902020-03-13 Tom Tromey <tom@tromey.com>
6891
6892 * p-valprint.c (pascal_value_print_inner): New function.
6893 * p-lang.h (pascal_value_print_inner): Declare.
6894 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6895
62c4663d
TT
68962020-03-13 Tom Tromey <tom@tromey.com>
6897
6898 * m2-valprint.c (m2_value_print_inner): New function.
6899 * m2-lang.h (m2_value_print_inner): Declare.
6900 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6901
62182190
TT
69022020-03-13 Tom Tromey <tom@tromey.com>
6903
6904 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6905 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6906 * c-valprint.c (c_value_print_inner): New function.
6907 * c-lang.h (c_value_print_inner): Declare.
6908 * c-lang.c (c_language_defn, cplus_language_defn)
6909 (asm_language_defn, minimal_language_defn): Use
6910 c_value_print_inner.
6911
1e592a8a
TT
69122020-03-13 Tom Tromey <tom@tromey.com>
6913
6914 * p-valprint.c (pascal_object_print_value_fields): Now static.
6915 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6916
7fe471e9
TT
69172020-03-13 Tom Tromey <tom@tromey.com>
6918
6919 * c-valprint.c (c_val_print_array): Simplify.
6920
d121c6ce
TT
69212020-03-13 Tom Tromey <tom@tromey.com>
6922
6923 * valprint.c (value_print_array_elements): New function.
6924 * valprint.h (value_print_array_elements): Declare.
6925
4dba70ee
TT
69262020-03-13 Tom Tromey <tom@tromey.com>
6927
6928 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6929 * mips-tdep.c (mips_print_register): Use
6930 value_print_scalar_formatted.
6931
4f9ae810
TT
69322020-03-13 Tom Tromey <tom@tromey.com>
6933
6934 * valprint.h (value_print_scalar_formatted): Declare.
6935 * valprint.c (value_print_scalar_formatted): New function.
6936
156bfec9
TT
69372020-03-13 Tom Tromey <tom@tromey.com>
6938
6939 * valprint.h (generic_value_print): Declare.
6940 * valprint.c (generic_value_print): New function.
6941
2b4e573d
TT
69422020-03-13 Tom Tromey <tom@tromey.com>
6943
6944 * valprint.c (do_val_print): Call la_value_print_inner, if
6945 available.
6946 * rust-lang.c (rust_language_defn): Update.
6947 * p-lang.c (pascal_language_defn): Update.
6948 * opencl-lang.c (opencl_language_defn): Update.
6949 * objc-lang.c (objc_language_defn): Update.
6950 * m2-lang.c (m2_language_defn): Update.
6951 * language.h (struct language_defn) <la_value_print_inner>: New
6952 member.
6953 * language.c (unknown_language_defn, auto_language_defn): Update.
6954 * go-lang.c (go_language_defn): Update.
6955 * f-lang.c (f_language_defn): Update.
6956 * d-lang.c (d_language_defn): Update.
6957 * c-lang.c (c_language_defn, cplus_language_defn)
6958 (asm_language_defn, minimal_language_defn): Update.
6959 * ada-lang.c (ada_language_defn): Update.
6960
a1f6a07c
TT
69612020-03-13 Tom Tromey <tom@tromey.com>
6962
6963 * c-valprint.c (c_value_print): Use common_val_print.
6964
410cf315
TT
69652020-03-13 Tom Tromey <tom@tromey.com>
6966
6967 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6968
72a45c93
TT
69692020-03-13 Tom Tromey <tom@tromey.com>
6970
6971 * f-valprint.c (f77_print_array_1, f_val_print): Use
6972 common_val_print.
6973
040f66bd
TT
69742020-03-13 Tom Tromey <tom@tromey.com>
6975
6976 * riscv-tdep.c (riscv_print_one_register_info): Use
6977 common_val_print.
6978
a6e05a6c
TT
69792020-03-13 Tom Tromey <tom@tromey.com>
6980
6981 * mi/mi-main.c (output_register): Use common_val_print.
6982
3444c526
TT
69832020-03-13 Tom Tromey <tom@tromey.com>
6984
6985 * infcmd.c (default_print_one_register_info): Use
6986 common_val_print.
6987
c2a44efe
TT
69882020-03-13 Tom Tromey <tom@tromey.com>
6989
6990 * valprint.h (common_val_print_checked): Declare.
6991 * valprint.c (common_val_print_checked): New function.
6992 * stack.c (print_frame_arg): Use common_val_print_checked.
6993
b0c26e99
TT
69942020-03-13 Tom Tromey <tom@tromey.com>
6995
6996 * valprint.c (do_val_print): New function, from val_print.
6997 (val_print): Use do_val_print.
6998 (common_val_print): Use do_val_print.
6999
ce3acbe9
TT
70002020-03-13 Tom Tromey <tom@tromey.com>
7001
7002 * valprint.c (value_print): Use scoped_value_mark.
7003
96c7f873
TV
70042020-03-13 Tom de Vries <tdevries@suse.de>
7005
7006 PR symtab/25646
7007 * psymtab.c (partial_symtab::partial_symtab): Don't set
7008 globals_offset and statics_offset. Push element onto
7009 current_global_psymbols and current_static_psymbols stacks.
7010 (concat): New function.
7011 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7012 element from current_global_psymbols and current_static_psymbols
7013 stacks. Concat popped elements to global_psymbols and
7014 static_symbols.
7015 (add_psymbol_to_list): Use current_global_psymbols and
7016 current_static_psymbols stacks.
7017 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7018 current_static_psymbols fields.
7019
6ba0a321
CB
70202020-03-12 Christian Biesinger <cbiesinger@google.com>
7021
7022 * corelow.c (sniff_core_bfd): Remove.
7023 (class core_target) <m_core_vec>: Remove.
7024 (core_target::core_target): Update.
7025 (core_file_fns): Remove.
7026 (deprecated_add_core_fns): Remove.
7027 (default_core_sniffer): Remove.
7028 (sniff_core_bfd): Remove.
7029 (default_check_format): Remove.
7030 (gdb_check_format): Remove.
7031 (core_target_open): Update.
7032 (core_target::get_core_register_section): Update.
7033 (get_core_registers_cb): Update.
7034 (core_target::fetch_registers): Update.
7035 * gdbcore.h (struct core_fns): Remove.
7036 (deprecated_add_core_fns): Remove.
7037 (default_core_sniffer): Remove.
7038 (default_check_format): Remove.
7039
227031b2
TT
70402020-03-12 Tom Tromey <tom@tromey.com>
7041
7042 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7043 CORE_ADDR.
7044 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7045
53807e9f
TT
70462020-03-12 Tom Tromey <tom@tromey.com>
7047
7048 * remote.c (remote_target::download_tracepoint)
7049 (remote_target::enable_tracepoint)
7050 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7051 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7052 sprintf_vma.
7053
64f25102
TT
70542020-03-12 Tom Tromey <tom@tromey.com>
7055
7056 * symfile-mem.c: Update CORE_ADDR size assert.
7057
272cd5a3
SM
70582020-03-12 Simon Marchi <simon.marchi@efficios.com>
7059
7060 * selftest.m4: Move to gdbsupport/.
7061 * acinclude.m4: Update path to selftest.m4.
7062
74cd3f9d
SM
70632020-03-12 Simon Marchi <simon.marchi@efficios.com>
7064
7065 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7066 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7067 gdbarch-selfselftests.c and selftest-arch.c.
7068 (SUBDIR_UNITTESTS_OBS): Rename to...
7069 (SELFTESTS_OBS): ... this.
7070 (COMMON_SFILES): Remove disasm-selftests.c and
7071 gdbarch-selftests.c.
7072 * configure.ac: Don't add selftest-arch.{c,o} to
7073 CONFIG_{SRCS,OBS}.
7074 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7075 preprocessor conditions.
7076
db6878ac
SM
70772020-03-12 Simon Marchi <simon.marchi@efficios.com>
7078
7079 * configure.ac: Don't source bfd/development.sh.
7080 * selftest.m4: Modify comment.
7081 * configure: Re-generate.
7082
4d696a5c
SM
70832020-03-12 Simon Marchi <simon.marchi@efficios.com>
7084
7085 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7086 not "true" or "false".
7087 * configure: Re-generate.
7088
8dd8e1c7
CB
70892020-03-12 Christian Biesinger <cbiesinger@google.com>
7090
7091 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7092 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7093 renamed to arm_nbsd_supply_gregset.
7094 (fetch_register): Update to call arm_nbsd_supply_gregset.
7095 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7096 (arm_netbsd_nat_target::fetch_registers): Update.
7097 (fetch_elfcore_registers): Removed.
7098 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7099 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7100 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7101 not require NetBSD system headers.
7102 (arm_nbsd_regset): New struct.
7103 (arm_nbsd_iterate_over_regset_sections): New function.
7104 (arm_netbsd_init_abi_common): Updated to call
7105 set_gdbarch_iterate_over_regset_sections.
7106 * arm-nbsd-tdep.h: New file.
7107
dd69bf7a
KB
71082020-03-11 Kevin Buettner <kevinb@redhat.com>
7109
7110 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7111 recursion.
7112
a0761e34
SM
71132020-03-11 Simon Marchi <simon.marchi@efficios.com>
7114
7115 * configure: Re-generate.
7116
e7a82140
TT
71172020-03-11 Tom Tromey <tromey@adacore.com>
7118
7119 * ada-typeprint.c (print_choices): Fix comment.
7120
dcc050c8
AB
71212020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7122
7123 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7124 previous item in the list, when the list has no items.
7125
1c33af77
TV
71262020-03-11 Tom de Vries <tdevries@suse.de>
7127
7128 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7129 PROP_LOCLIST handling code.
7130
8c95582d
AB
71312020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7132
7133 * buildsym-legacy.c (record_line): Pass extra parameter to
7134 record_line.
7135 * buildsym.c (buildsym_compunit::record_line): Take an extra
7136 parameter, reduce duplication in the line table, and record the
7137 is_stmt flag in the line table.
7138 * buildsym.h (buildsym_compunit::record_line): Add extra
7139 parameter.
7140 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7141 non-statement lines.
7142 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7143 this to the symtab builder.
7144 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7145 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7146 through to dwarf_record_line_1.
7147 * infrun.c (process_event_stop_test): When stepping, don't stop at
7148 a non-statement instruction, and only refresh the step info when
7149 we land in the middle of a line's range. Also add an extra
7150 comment.
7151 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7152 field.
7153 * record-btrace.c (btrace_find_line_range): Only record lines
7154 marked as is-statement.
7155 * stack.c (frame_show_address): Show the frame address if we are
7156 in a non-statement sal.
7157 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7158 (maintenance_print_one_line_table): Print a header for the is_stmt
7159 column, and include is_stmt information in the output.
7160 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7161 preference to non-statements.
7162 (find_pcs_for_symtab_line): Prefer is-statement entries.
7163 (find_line_common): Likewise.
7164 * symtab.h (struct linetable_entry): Add is_stmt field.
7165 (struct symtab_and_line): Likewise.
7166 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7167 arranging the line table.
7168
e4003a34
TV
71692020-03-07 Tom de Vries <tdevries@suse.de>
7170
7171 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7172 DIE.
7173
e8932576
TT
71742020-03-07 Tom Tromey <tom@tromey.com>
7175
7176 * valops.c (value_literal_complex): Remove obsolete comment.
7177 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7178 comment.
7179
29734269
SM
71802020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7181
7182 * infrun.h: Forward-declare thread_info.
7183 (set_step_info): Add thread_info parameter, add doc.
7184 * infrun.c (set_step_info): Add thread_info parameter, move doc
7185 to header.
7186 * infrun.c (process_event_stop_test): Pass thread to
7187 set_step_info call.
7188 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7189 set_step_info.
7190 (prepare_one_step): Add thread_info parameter, pass it to
7191 set_step_frame and prepare_one_step (recursive) call.
7192 (step_1): Pass thread to prepare_one_step call.
7193 (step_command_fsm::should_stop): Pass thread to
7194 prepare_one_step.
7195 (until_next_fsm): Pass thread to set_step_frame call.
7196 (finish_command): Pass thread to set_step_info call.
7197
b7d64b29
HD
71982020-03-06 Hannes Domani <ssbssa@yahoo.de>
7199
7200 * windows-tdep.c (windows_solib_create_inferior_hook):
7201 Check if inferior is running.
7202
09f2921c
TV
72032020-03-06 Tom de Vries <tdevries@suse.de>
7204
7205 * NEWS: Fix "the the".
7206 * ctfread.c: Same.
7207
fd760e79
TV
72082020-03-06 Tom de Vries <tdevries@suse.de>
7209
7210 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7211
20ea4a60
AB
72122020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7213
7214 * .dir-locals.el: Add a comment referencing the other copies of
7215 this file.
7216
0afbabf0
JB
72172020-03-05 John Baldwin <jhb@FreeBSD.org>
7218
7219 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7220 psargs.
7221
842806cb
TBA
72222020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7223
7224 * .gitattributes: New file.
7225
be1e3d3e
TT
72262020-03-04 Tom Tromey <tom@tromey.com>
7227
7228 * symmisc.c (print_symbol_bcache_statistics)
7229 (print_objfile_statistics): Update.
7230 * symfile.c (allocate_symtab): Use intern.
7231 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7232 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7233 macro_cache>: Remove.
7234 <string_cache>: New member.
7235 (struct objfile) <intern>: New methods.
7236 * elfread.c (elf_symtab_read): Use intern.
7237 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7238 (dwarf2_compute_name, dwarf2_physname)
7239 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7240 names.
7241 (guess_partial_die_structure_name): Update.
7242 (partial_die_info::fixup): Intern name.
7243 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7244 name.
7245 (dwarf2_name): Intern name. Update.
7246 * buildsym.c (buildsym_compunit::get_macro_table): Use
7247 string_cache.
7248
4e7625fd
TT
72492020-03-04 Tom Tromey <tom@tromey.com>
7250
7251 * jit.c (bfd_open_from_target_memory): Make "target" const.
7252 * corefile.c (gnutarget): Now const.
7253 * gdbcore.h (gnutarget): Now const.
7254
46f9f931
HD
72552020-03-04 Hannes Domani <ssbssa@yahoo.de>
7256
7257 * NEWS: Mention support for WOW64 processes.
7258 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7259 (amd64_windows_segment_register_p): Remove static.
7260 (_initialize_amd64_windows_nat): Update.
7261 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7262 * i386-windows-nat.c (context_offset): Update.
7263 (i386_mappings): Rename and remove static.
7264 (i386_windows_segment_register_p): Remove static.
7265 (_initialize_i386_windows_nat): Update.
7266 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7267 (STATUS_WX86_SINGLE_STEP): New macro.
7268 (EnumProcessModulesEx): New macro.
7269 (Wow64SuspendThread): New macro.
7270 (Wow64GetThreadContext): New macro.
7271 (Wow64SetThreadContext): New macro.
7272 (Wow64GetThreadSelectorEntry): New macro.
7273 (windows_set_context_register_offsets): Add static.
7274 (windows_set_segment_register_p): Likewise.
7275 (windows_add_thread): Adapt for WOW64 processes.
7276 (windows_fetch_one_register): Likewise.
7277 (windows_nat_target::fetch_registers): Likewise.
7278 (windows_store_one_register): Likewise.
7279 (display_selector): Likewise.
7280 (display_selectors): Likewise.
7281 (handle_exception): Likewise.
7282 (windows_continue): Likewise.
7283 (windows_nat_target::resume): Likewise.
7284 (windows_add_all_dlls): Likewise.
7285 (do_initial_windows_stuff): Likewise.
7286 (windows_nat_target::attach): Likewise.
7287 (windows_get_exec_module_filename): Likewise.
7288 (windows_nat_target::create_inferior): Likewise.
7289 (windows_xfer_siginfo): Likewise.
7290 (_initialize_loadable): Initialize Wow64SuspendThread,
7291 Wow64GetThreadContext, Wow64SetThreadContext,
7292 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7293 * windows-nat.h (windows_set_context_register_offsets):
7294 Remove declaration.
7295 (windows_set_segment_register_p): Likewise.
7296 (i386_windows_segment_register_p): Add declaration.
7297 (amd64_windows_segment_register_p): Likewise.
7298
440cf44e
LM
72992020-03-04 Luis Machado <luis.machado@linaro.org>
7300
7301 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7302 in "info registers" for AArch64/ARM.
7303
7304 The change caused "info registers" to not print GPR's.
7305
7306 gdb/ChangeLog:
7307
7308 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7309
7310 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7311 when reg->group is empty and reggroup is not.
7312
1009d92f
TT
73132020-03-03 Tom Tromey <tromey@adacore.com>
7314
7315 * dwarf2/frame.c (struct dwarf2_frame_cache)
7316 <checked_tailcall_bottom, entry_cfa_sp_offset,
7317 entry_cfa_sp_offset_p>: Remove members.
7318 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7319 (dwarf2_frame_prev_register): Don't call
7320 dwarf2_tailcall_sniffer_first.
7321 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7322 * frame-unwind.c (add_unwinder): New fuction.
7323 (frame_unwind_init): Use it. Add tailcall unwinder.
7324
5e5d66b6
AB
73252020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7326 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7327
7328 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7329 value should be printed as true.
7330
584cf46d
HD
73312020-03-03 Hannes Domani <ssbssa@yahoo.de>
7332
7333 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7334 (windows_init_abi): Set and use windows_so_ops.
7335
7b973adc
SDJ
73362020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7337
7338 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7339 when verifying if dealing with a convenience variable.
7340
bb7b70ab
LM
73412020-03-03 Luis Machado <luis.machado@linaro.org>
7342
7343 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7344
9822cb57
SM
73452020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7346
7347 * infrun.c (gdbarch_supports_displaced_stepping): New.
7348 (use_displaced_stepping): Break up conditions in smaller pieces.
7349 Use gdbarch_supports_displaced_stepping.
7350 (displaced_step_prepare_throw): Use
7351 gdbarch_supports_displaced_stepping.
7352
63e163f2
AB
73532020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7354
7355 * NEWS: Mention new behaviour of the history filename.
7356 * top.c (write_history_p): Add comment.
7357 (show_write_history_p): Add header comment, give a different
7358 message when history writing is on, but the history filename is
7359 empty.
7360 (history_filename): Add comment.
7361 (history_filename_empty): New function.
7362 (show_history_filename): Add header comment, give a different
7363 message when the filename is empty.
7364 (init_history): Compare history_filename against nullptr, and only
7365 read history if the filename is not empty.
7366 (set_history_filename): Add header comment, and only make
7367 non-empty filenames absolute.
7368 (init_main): Make the filename argument to 'set history filename'
7369 optional.
7370
81b86b97
CB
73712020-03-02 Christian Biesinger <cbiesinger@google.com>
7372
7373 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7374 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7375 (fetch_fp_register): Update.
7376 (fetch_fp_regs): Update.
7377 (store_fp_register): Update.
7378 (store_fp_regs): Update.
7379 (arm_netbsd_nat_target::read_description): New function.
7380 (fetch_elfcore_registers): Update.
7381
24ed6739
AB
73822020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7383
7384 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7385 general_thread if the stop reply is missing a thread-id.
7386 (remote_target::process_stop_reply): Use the first non-exited
7387 thread if the target didn't pass a thread-id.
7388 * infrun.c (do_target_wait): Move call to
7389 switch_to_inferior_no_thread to ....
7390 (do_target_wait_1): ... here.
7391
a84bb2a0
JT
73922020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7393
7394 * debuginfod-support.c: Include defs.h first.
7395
658dadf0
TV
73962020-02-28 Tom de Vries <tdevries@suse.de>
7397
7398 * symfile.c (set_initial_language): Use default language for lookup.
7399
4ebe4877
SM
74002020-02-28 Simon Marchi <simon.marchi@efficios.com>
7401
7402 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7403 reader variable, pass `this` to read_cutu_die_from_dwo.
7404
e5da1139
AM
74052020-02-27 Aaron Merey <amerey@redhat.com>
7406
7407 * source.c (open_source_file): Check for nullptr when computing
7408 srcpath.
7409
317f7127
TT
74102020-02-27 Tom Tromey <tromey@adacore.com>
7411
7412 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7413 member.
7414 (dwarf2_add_field): Don't update nfields.
7415 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7416
3104d9ee
AB
74172020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7418
7419 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7420 abs.
7421
b83470bf
TT
74222020-02-26 Tom Tromey <tom@tromey.com>
7423
7424 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7425 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7426 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7427 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7428 per_cu_data.
7429
edfe0a0c
TT
74302020-02-26 Tom Tromey <tom@tromey.com>
7431
7432 * dwarf2/index-write.c (psym_index_map): Change type.
7433 (add_address_entry_worker, write_one_signatured_type)
7434 (recursively_count_psymbols, recursively_write_psymbols)
7435 (class debug_names, psyms_seen_size, write_gdbindex)
7436 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7437
0d79cdc4
AM
74382020-02-26 Aaron Merey <amerey@redhat.com>
7439
7440 * Makefile.in: Handle optional debuginfod support.
7441 * NEWS: Update.
7442 * README: Add --with-debuginfod summary.
7443 * config.in: Regenerate.
7444 * configure: Regenerate.
7445 * configure.ac: Handle optional debuginfod support.
7446 * debuginfod-support.c: debuginfod helper functions.
7447 * debuginfod-support.h: Ditto.
7448 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7449 summary.
7450 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7451 when a dwz file cannot be found.
7452 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7453 debuginfo file cannot be found.
7454 * source.c (open_source_file): Query debuginfod servers when a
7455 source file cannot be found.
7456 * top.c (print_gdb_configuration): Include
7457 --{with,without}-debuginfod in the output.
7458
b65ce565
JG
74592020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7460
7461 * thread.c (thr_try_catch_cmd): Print thread name.
7462
d4c9a4f8
SM
74632020-02-26 Simon Marchi <simon.marchi@efficios.com>
7464
7465 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7466 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7467 dwarf2_fetch_die_type_sect_off): Move to...
7468 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7469 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7470 dwarf2_fetch_die_type_sect_off): ... here.
7471 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7472 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7473 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7474
0dce4280
TV
74752020-02-26 Tom de Vries <tdevries@suse.de>
7476
7477 PR gdb/25603
7478 * symfile.c (set_initial_language): Exit-early if
7479 language_mode == language_mode_manual.
7480
450a1bfc
SM
74812020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7482
7483 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7484 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7485 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7486
9e80cfa1
AB
74872020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7488
7489 * gdbtypes.c (create_array_type_with_stride): Handle negative
7490 array strides.
7491 * valarith.c (value_subscripted_rvalue): Likewise.
7492
09624f1f
LM
74932020-02-25 Luis Machado <luis.machado@linaro.org>
7494
7495 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7496
8cb5117c
SM
74972020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7498
7499 * loc.h (dwarf2_get_die_type): Move to...
7500 * read.h (dwarf2_get_die_type): ... here.
7501 * read.c (dwarf2_get_die_type): Move doc to header.
7502
c325c44e
JB
75032020-02-25 Joel Brobecker <brobecker@adacore.com>
7504
7505 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7506 'gnulib/Makefile.in' to the list.
7507
4ac93832
TT
75082020-02-24 Tom Tromey <tom@tromey.com>
7509
7510 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7511 Remove.
7512 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7513 XOBNEWVEC.
7514
197400e8
TT
75152020-02-24 Tom Tromey <tom@tromey.com>
7516
7517 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7518 New method.
7519 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7520 (dw2_do_instantiate_symtab, dw2_get_file_names)
7521 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7522
76935768
TT
75232020-02-24 Tom Tromey <tom@tromey.com>
7524
7525 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7526 make_scoped_restore.
7527 (dwarf2_psymtab::read_symtab): Don't clear
7528 reading_partial_symbols.
7529
a88ef40d
TV
75302020-02-24 Tom de Vries <tdevries@suse.de>
7531
7532 PR gdb/25592
7533 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7534
c9af6521
TV
75352020-02-24 Tom de Vries <tdevries@suse.de>
7536
7537 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7538 commands layout next/prev/regs.
7539
5707a07a
TT
75402020-02-22 Tom Tromey <tom@tromey.com>
7541
7542 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7543 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7544
3b0fb49e
TT
75452020-02-22 Tom Tromey <tom@tromey.com>
7546
7547 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7548
283be8bf
TT
75492020-02-22 Tom Tromey <tom@tromey.com>
7550
7551 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7552 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7553 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7554 * tui/tui.c (_initialize_tui): Add usage text.
7555
ca793b96
TT
75562020-02-22 Tom Tromey <tom@tromey.com>
7557
7558 * tui/tui-win.c (tui_set_focus_command)
7559 (tui_set_win_height_command): Use error_no_arg.
7560 (_initialize_tui_win): Update help text.
7561 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7562
432b5c40
TT
75632020-02-22 Tom Tromey <tom@tromey.com>
7564
7565 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7566 * tui/tui-disasm.h (struct tui_disasm_window)
7567 <display_start_addr>: Declare.
7568 * tui/tui-source.h (struct tui_source_window)
7569 <display_start_addr>: Declare.
7570 * tui/tui-winsource.h (struct tui_source_window_base)
7571 <show_source_line, display_start_addr>: New methods.
7572 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7573 Rename and move to protected section.
7574 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7575 (tui_source_window_base::do_erase_source_content): Update.
7576 (tui_source_window_base::show_source_line): Now a method.
7577 (tui_source_window_base::show_source_content)
7578 (tui_source_window_base::tui_source_window_base)
7579 (tui_source_window_base::rerender)
7580 (tui_source_window_base::refill)
7581 (tui_source_window_base::do_scroll_horizontal)
7582 (tui_source_window_base::set_is_exec_point_at)
7583 (tui_source_window_base::update_breakpoint_info)
7584 (tui_source_window_base::update_exec_info): Update.
7585 * tui/tui-source.c (tui_source_window::set_contents)
7586 (tui_source_window::showing_source_p)
7587 (tui_source_window::do_scroll_vertical)
7588 (tui_source_window::location_matches_p)
7589 (tui_source_window::line_is_displayed): Update.
7590 (tui_source_window::display_start_addr): New method.
7591 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7592 (tui_disasm_window::do_scroll_vertical)
7593 (tui_disasm_window::location_matches_p): Update.
7594 (tui_disasm_window::display_start_addr): New method.
7595
01b1af32
TT
75962020-02-22 Tom Tromey <tom@tromey.com>
7597
7598 * NEWS: Add entry for gdb.register_window_type.
7599 * tui/tui-layout.h (window_factory): New typedef.
7600 (tui_register_window): Declare.
7601 * tui/tui-layout.c (saved_tui_windows): New global.
7602 (tui_apply_current_layout): Use it.
7603 (tui_register_window): New function.
7604 * python/python.c (do_start_initialization): Call
7605 gdbpy_initialize_tui.
7606 (python_GdbMethods): Add "register_window_type" function.
7607 * python/python-internal.h (gdbpy_register_tui_window)
7608 (gdbpy_initialize_tui): Declare.
7609 * python/py-tui.c: New file.
7610 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7611
fc96d20b
TT
76122020-02-22 Tom Tromey <tom@tromey.com>
7613
7614 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7615
935c78c0
TT
76162020-02-22 Tom Tromey <tom@tromey.com>
7617
7618 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7619 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7620 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7621 (tui_set_win_focus_to): Move from tui-win.c.
7622
0240c8f1
TT
76232020-02-22 Tom Tromey <tom@tromey.com>
7624
7625 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7626 functions.
7627 (known_window_types): New global.
7628 (tui_get_window_by_name): Reimplement.
7629 (initialize_known_windows): New function.
7630 (validate_window_name): Rewrite.
7631 (_initialize_tui_layout): Call initialize_known_windows.
7632
fdb01f0c
TT
76332020-02-22 Tom Tromey <tom@tromey.com>
7634
7635 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7636 Remove constants.
7637 * tui/tui-winsource.h (struct tui_source_window_base)
7638 <tui_source_window_base>: Remove parameter.
7639 * tui/tui-winsource.c
7640 (tui_source_window_base::tui_source_window_base): Remove
7641 parameter.
7642 (tui_source_window_base::refill): Update.
7643 * tui/tui-stack.h (struct tui_locator_window)
7644 <tui_locator_window>: Update.
7645 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7646 Default the constructor.
7647 * tui/tui-regs.h (struct tui_data_item_window)
7648 <tui_data_item_window>: Default the constructor.
7649 (struct tui_data_window) <tui_data_window>: Likewise.
7650 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7651 Default the constructor.
7652 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7653 Default the constructor.
7654 <type>: Remove.
7655 (struct tui_win_info) <tui_win_info>: Default the constructor.
7656 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7657 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7658 Default the constructor.
7659
865a5aec
TT
76602020-02-22 Tom Tromey <tom@tromey.com>
7661
7662 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7663 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7664 * tui/tui-win.c (tui_resize_all): Don't call
7665 tui_delete_invisible_windows.
7666 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7667 done.
7668 (tui_set_layout): Update.
7669 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7670 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7671 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7672
e098d18c
TT
76732020-02-22 Tom Tromey <tom@tromey.com>
7674
7675 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7676 correctly.
7677
eb9c8874
TT
76782020-02-22 Tom Tromey <tom@tromey.com>
7679
7680 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7681
7eed1a8e
TT
76822020-02-22 Tom Tromey <tom@tromey.com>
7683
7684 * tui/tui-winsource.h (struct tui_source_window_iterator)
7685 <inner_iterator>: New etytypedef.
7686 <tui_source_window_iterator>: Take "end" parameter.
7687 <tui_source_window_iterator>: Take iterator.
7688 <operator*, advance>: Update.
7689 <m_iter>: Change type.
7690 <m_end>: New field.
7691 (struct tui_source_windows) <begin, end>: Update.
7692 * tui/tui-layout.c (tui_windows): New global.
7693 (tui_apply_current_layout): Clear tui_windows.
7694 (tui_layout_window::apply): Update tui_windows.
7695 * tui/tui-data.h (tui_windows): Declare.
7696 (all_tui_windows): Now inline function.
7697 (class tui_window_iterator, struct all_tui_windows): Remove.
7698
7c043ba6
TT
76992020-02-22 Tom Tromey <tom@tromey.com>
7700
7701 PR tui/17850:
7702 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7703 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7704 "height" argument.
7705 (class tui_layout_window) <get_sizes>: Likewise.
7706 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7707 argument.
7708 <get_sizes>: Add "height" argument.
7709 <m_vertical>: New field.
7710 * tui/tui-layout.c (tui_layout_split::clone): Update.
7711 (tui_layout_split::get_sizes): Add "height" argument.
7712 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7713 (tui_new_layout_command): Parse "-horizontal".
7714 (_initialize_tui_layout): Update help string.
7715 (tui_layout_split::specification): Add "-horizontal" when needed.
7716 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7717 argument.
7718 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7719 New methods.
7720
6bc56648
TT
77212020-02-22 Tom Tromey <tom@tromey.com>
7722
7723 * tui/tui-layout.h (enum tui_adjust_result): New.
7724 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7725 (class tui_layout_window) <adjust_size>: Return
7726 tui_adjust_result. Rewrite.
7727 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7728 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7729
c22fef7e
TT
77302020-02-22 Tom Tromey <tom@tromey.com>
7731
7732 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7733 parameter and return types.
7734 (class tui_layout_base) <specification>: Add "depth".
7735 (class tui_layout_window) <specification>: Add "depth".
7736 (class tui_layout_split) <specification>: Add "depth".
7737 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7738 and return types.
7739 (tui_new_layout_command): Parse sub-layouts.
7740 (_initialize_tui_layout): Update help string.
7741 (tui_layout_window::specification): Add "depth".
7742 (add_layout_command): Update.
7743
ee325b61
TT
77442020-02-22 Tom Tromey <tom@tromey.com>
7745
7746 * NEWS: Add "tui new-layout" item.
7747 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7748 Add new-layout command to help text.
7749 (validate_window_name): New function.
7750 (tui_new_layout_command): New function.
7751 (_initialize_tui_layout): Register "new-layout".
7752 (tui_layout_window::specification): New method.
7753 (tui_layout_window::specification): New method.
7754 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7755 method.
7756 (class tui_layout_window) <specification>: New method.
7757 (class tui_layout_split) <specification>: New method.
7758
416eb92d
TT
77592020-02-22 Tom Tromey <tom@tromey.com>
7760
7761 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7762 * tui/tui-win.c (window_name_completer): Update comment.
7763 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7764 Declare method.
7765 (class tui_layout_window) <replace_window>: Likewise.
7766 (class tui_layout_split) <replace_window>: Likewise.
7767 (tui_set_layout): Don't declare.
7768 (tui_set_initial_layout): Declare function.
7769 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7770 (asm_regs_layout): New globals.
7771 (tui_current_layout, show_layout): Remove.
7772 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7773 (find_layout, tui_apply_layout): New function.
7774 (layout_completer): Remove.
7775 (tui_next_layout): Reimplement.
7776 (tui_next_layout_command): New function.
7777 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7778 (tui_regs_layout): Reimplement.
7779 (tui_regs_layout_command): New function.
7780 (extract_display_start_addr): Rewrite.
7781 (next_layout, prev_layout): Remove.
7782 (tui_layout_window::replace_window): New method.
7783 (tui_layout_split::replace_window): New method.
7784 (destroy_layout): New function.
7785 (layout_list): New global.
7786 (add_layout_command): New function.
7787 (initialize_layouts): Update.
7788 (tui_layout_command): New function.
7789 (_initialize_tui_layout): Install "layout" commands.
7790 * tui/tui-data.h (enum tui_layout_type): Remove.
7791 (tui_current_layout): Don't declare.
7792
0dbc2fc7
TT
77932020-02-22 Tom Tromey <tom@tromey.com>
7794
7795 * tui/tui-regs.c (tui_reg_layout): Remove.
7796 (tui_reg_command): Use tui_regs_layout.
7797 * tui/tui-layout.h (tui_reg_command): Declare.
7798 * tui/tui-layout.c (tui_reg_command): New function.
7799
5afe342e
TT
78002020-02-22 Tom Tromey <tom@tromey.com>
7801
7802 * tui/tui.c (tui_rl_delete_other_windows): Call
7803 tui_remove_some_windows.
7804 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7805 Declare method.
7806 (class tui_layout_window) <remove_windows>: New method.
7807 (class tui_layout_split) <remove_windows>: Declare.
7808 (tui_remove_some_windows): Declare.
7809 * tui/tui-layout.c (tui_remove_some_windows): New function.
7810 (tui_layout_split::remove_windows): New method.
7811
427326a8
TT
78122020-02-22 Tom Tromey <tom@tromey.com>
7813
7814 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7815 * tui/tui-layout.h (tui_next_layout): Declare.
7816 * tui/tui-layout.c (tui_next_layout): New function.
7817
3fe12b6d
TT
78182020-02-22 Tom Tromey <tom@tromey.com>
7819
7820 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7821 correct coordinates.
7822
59b8b5d2
TT
78232020-02-22 Tom Tromey <tom@tromey.com>
7824
7825 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7826 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7827 DATA_WIN case.
7828
2a3d458b
TT
78292020-02-22 Tom Tromey <tom@tromey.com>
7830
7831 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7832 TUI_DISASM_WIN, not tui_win_list.
7833
3f0cbb04
TT
78342020-02-22 Tom Tromey <tom@tromey.com>
7835
7836 * valprint.c (generic_val_print_enum_1)
7837 (val_print_type_code_flags): Style member names.
7838 * rust-lang.c (val_print_struct, rust_print_enum)
7839 (rust_print_struct_def, rust_internal_print_type): Style member
7840 names.
7841 * p-valprint.c (pascal_object_print_value_fields): Style member
7842 names. Only call fprintf_symbol_filtered for static members.
7843 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7844 * f-valprint.c (f_val_print): Style member names.
7845 * f-typeprint.c (f_type_print_base): Style member names.
7846 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7847 call fprintf_symbol_filtered for static members.
7848 (cp_print_class_member): Style member names.
7849 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7850 member names.
7851 * ada-valprint.c (ada_print_scalar): Style enum names.
7852 (ada_val_print_enum): Likewise.
7853 * ada-typeprint.c (print_enum_type): Style enum names.
7854
d4d947ae
TT
78552020-02-21 Tom Tromey <tom@tromey.com>
7856
7857 * psympriv.h (struct partial_symtab): Update comment.
7858
e94e944b
TT
78592020-02-21 Tom Tromey <tromey@adacore.com>
7860
7861 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7862 type is CORE_ADDR.
7863
1eb73179
TV
78642020-02-21 Tom de Vries <tdevries@suse.de>
7865
7866 PR gdb/25534
7867 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7868 if dependencies[i]->user != NULL.
7869
4f180d53
AT
78702020-02-21 Ali Tamur <tamur@google.com>
7871
7872 * dwarf2/read.c (dwarf2_name): Add null check.
7873
22b6cd70
TT
78742020-02-20 Tom Tromey <tom@tromey.com>
7875
7876 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7877 ">=", in binary search.
7878 (dwarf2_find_containing_comp_unit): New overload.
7879 (run_test): New self-test.
7880 (_initialize_dwarf2_read): Register new test.
7881
bd0cf5a6
NC
78822020-02-20 Nelson Chu <nelson.chu@sifive.com>
7883
7884 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7885 * riscv-tdep.h: Likewise.
7886 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7887 rv32-only CSR.
7888 * features/riscv/64bit-csr.xml: Regenerated.
7889
3f702acd
SDJ
78902020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7891 Tom Tromey <tom@tromey.com>
7892
7893 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7894 of 'fputc_unfiltered'.
7895 (putchar_unfiltered): Call 'fputc_unfiltered'.
7896 (fputc_unfiltered): Call 'fputs_unfiltered'.
7897
d13c7322
AB
78982020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7899
7900 * config.in: Regenerate.
7901 * configure: Regenerate.
7902 * configure.ac: Add --with-python-libdir option.
7903 * main.c: Use WITH_PYTHON_LIBDIR.
7904
869d8950
TT
79052020-02-19 Tom Tromey <tom@tromey.com>
7906
7907 * symtab.c (general_symbol_info::compute_and_set_names): Use
7908 obstack_strndup. Simplify call to symbol_set_demangled_name.
7909
298e9637
SM
79102020-02-19 Simon Marchi <simon.marchi@efficios.com>
7911
7912 * dwarf2/read.c (allocate_signatured_type_table,
7913 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7914 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7915 Remove objfile parameter, update all callers.
7916
08410482
DE
79172020-02-19 Doug Evans <dje@google.com>
7918
7919 PR rust/25535
7920 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7921 rust_enum_variant calculation.
7922
dfdeeca1
TT
79232020-02-19 Tom Tromey <tromey@adacore.com>
7924
7925 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7926
2ef5453b
TT
79272020-02-19 Tom Tromey <tromey@adacore.com>
7928
7929 * ada-lang.c (cache_symbol): Use obstack_strdup.
7930
9f1528a1
AB
79312020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7932
7933 * configure: Regenerate.
7934
d3c22fa8
TT
79352020-02-19 Tom Tromey <tromey@adacore.com>
7936
7937 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7938 NULL check.
7939
bf84f706
MR
79402020-02-19 Maciej W. Rozycki <macro@wdc.com>
7941
7942 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7943
d1c9b20f
AB
79442020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7945
7946 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7947 if GDBSERVER is not defined.
7948 (riscv_tdesc_cache): Likewise, also store const target_desc.
7949 (STATIC_IN_GDB): Define.
7950 (riscv_create_target_description): Update declaration with
7951 STATIC_IN_GDB.
7952 (riscv_lookup_target_description): New function, only define if
7953 GDBSERVER is not defined.
7954 * arch/riscv.h (riscv_create_target_description): Declare only
7955 when GDBSERVER is defined.
7956 (riscv_lookup_target_description): New declaration when GDBSERVER
7957 is not defined.
7958 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7959 (riscv_linux_read_features): ...this, and return
7960 riscv_gdbarch_features instead of target_desc.
7961 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7962 (riscv_linux_read_description): Rename to...
7963 (riscv_linux_read_features): ...this.
7964 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7965 Update to use riscv_gdbarch_features and
7966 riscv_lookup_target_description.
7967 * riscv-tdep.c (riscv_find_default_target_description): Use
7968 riscv_lookup_target_description instead of
7969 riscv_create_target_description.
7970
373d7ac0
SM
79712020-02-18 Simon Marchi <simon.marchi@efficios.com>
7972
7973 * valprint.c (generic_val_print_enum_1): When printing a flag
7974 enum with value 0 and there is no enumerator with value 0, print
7975 just "0" instead of "(unknown: 0x0)".
7976
b29a2df0
SM
79772020-02-18 Simon Marchi <simon.marchi@efficios.com>
7978
7979 * valprint.c (generic_val_print_enum_1): Print unknown part of
7980 flag enum in hex.
7981
6740f0cc
SM
79822020-02-18 Simon Marchi <simon.marchi@efficios.com>
7983
7984 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7985 flag enums to contain duplicate enumerators.
7986 * valprint.c (generic_val_print_enum_1): Update comment.
7987
edd45eb0
SM
79882020-02-18 Simon Marchi <simon.marchi@efficios.com>
7989
7990 * dwarf2/read.c: Include "count-one-bits.h".
7991 (update_enumeration_type_from_children): If an enumerator has
7992 multiple bits set, don't treat the enumeration as a "flag enum".
7993 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7994 of flag enums have 0 or 1 bit set.
7995
6d0cf446
BE
79962020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7997
7998 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7999 conversion.
8000 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8001 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8002 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8003 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8004 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8005
7001c1b7
SM
80062020-02-18 Simon Marchi <simon.marchi@efficios.com>
8007
8008 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8009
fdb61c6c
SM
80102020-02-14 Simon Marchi <simon.marchi@efficios.com>
8011
8012 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8013 displaced_step_closure_up.
8014 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8015 (struct displaced_step_closure_up):
8016 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8017 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8018 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8019 Likewise.
8020 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8021 * gdbarch.c, gdbarch.h: Re-generate.
8022 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8023 displaced_step_closure_up.
8024 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8025 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8026 * infrun.h (displaced_step_closure_up): New type alias.
8027 (struct displaced_step_inferior_state) <step_closure>: Change
8028 type to displaced_step_closure_up.
8029 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8030 displaced_step_closure_up.
8031 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8032
a4a38eb4
TT
80332020-02-14 Tom Tromey <tom@tromey.com>
8034
8035 * minidebug.c (gnu_debug_key): New global.
8036 (find_separate_debug_file_in_section): Use it.
8037
e8217e61
SM
80382020-02-14 Simon Marchi <simon.marchi@efficios.com>
8039
8040 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8041 std::unique_ptr.
8042 * gdbarch.c: Re-generate.
8043 * gdbarch.h: Re-generate.
8044 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8045 change.
8046 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8047 type to std::unique_ptr.
8048 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8049 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8050 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8051 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8052 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8053 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8054 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8055 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8056 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8057
d8d83535
SM
80582020-02-14 Simon Marchi <simon.marchi@efficios.com>
8059
8060 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8061 std::unique_ptr.
8062 (displaced_step_clear): Rename to...
8063 (displaced_step_reset): ... this. Just call displaced->reset ().
8064 (displaced_step_clear_cleanup): Rename to...
8065 (displaced_step_reset_cleanup): ... this.
8066 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8067 (displaced_step_fixup): Likewise.
8068 (resume_1): Likewise.
8069 (handle_inferior_event): Restore child's memory before calling
8070 displaced_step_fixup on the parent.
8071 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8072 to std::unique_ptr.
8073 <step_closure>: Change type to std::unique_ptr.
8074
5f661e03
SM
80752020-02-14 Simon Marchi <simon.marchi@efficios.com>
8076
8077 * arm-tdep.c: Include count-one-bits.h.
8078 (cleanup_block_store_pc): Use count_one_bits.
8079 (cleanup_block_load_pc): Use count_one_bits.
8080 (arm_copy_block_xfer): Use count_one_bits.
8081 (thumb2_copy_block_xfer): Use count_one_bits.
8082 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8083 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8084 (thumb_get_next_pcs_raw): Use count_one_bits.
8085 (arm_get_next_pcs_raw): Use count_one_bits_l.
8086 * arch/arm.c (bitcount): Remove.
8087 * arch/arm.h (bitcount): Remove.
8088
8084e579
TT
80892020-02-14 Tom Tromey <tromey@adacore.com>
8090
8091 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8092 Update.
8093 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8094 * dwarf2/loc.c (call_site_find_chain_1): Return
8095 unique_xmalloc_ptr.
8096 (call_site_find_chain): Likewise.
8097
258bf0ee
RB
80982020-02-14 Richard Biener <rguenther@suse.de>
8099
8100 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8101 on expression with division operators.
8102
f98a8458
AKS
81032020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8104
8105 * MAINTAINERS (Write After Approval): Adding myself.
8106
d1437c0e
TT
81072020-02-12 Tom Tromey <tom@tromey.com>
8108
8109 * event-loop.c (event_data, gdb_event, event_handler_func):
8110 Remove.
8111
3d4560f7
TT
81122020-02-12 Tom Tromey <tom@tromey.com>
8113
8114 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8115 (dwarf2_frame_objfile_data): Add comment.
8116 (find_comp_unit, set_comp_unit): New functions.
8117 (dwarf2_frame_find_fde): Use find_comp_unit.
8118 (dwarf2_build_frame_info): Use set_comp_unit.
8119
21982304
TT
81202020-02-12 Tom Tromey <tom@tromey.com>
8121
8122 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8123 (comp_unit): Don't initialize objfile.
8124 (execute_cfa_program): Add text_offset parameter.
8125 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8126 (dwarf2_frame_cache): Update.
8127 (dwarf2_build_frame_info): Don't set "objfile" member.
8128
4debb237
TT
81292020-02-12 Tom Tromey <tom@tromey.com>
8130
8131 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8132 (decode_frame_entry): Likewise.
8133 (dwarf2_build_frame_info): Update.
8134
0d404d44
TT
81352020-02-12 Tom Tromey <tom@tromey.com>
8136
8137 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8138 (decode_frame_entry_1): Use the comp_unit obstack.
8139
a7a3ae5c
TT
81402020-02-12 Tom Tromey <tom@tromey.com>
8141
8142 * dwarf2/frame.c (struct comp_unit): Add initializers and
8143 constructor.
8144 (dwarf2_frame_objfile_data): Store a comp_unit.
8145 (dwarf2_frame_find_fde): Update.
8146 (dwarf2_build_frame_info): Use "new".
8147
a9d65418
TT
81482020-02-12 Tom Tromey <tom@tromey.com>
8149
8150 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8151 (dwarf2_fde_table): Typedef for std::vector.
8152 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8153 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8154 (decode_frame_entry): Update.
8155 (dwarf2_build_frame_info): Use "new".
8156
7559c217
CB
81572020-02-12 Christian Biesinger <cbiesinger@google.com>
8158
8159 * arm-tdep.c (arm_gdbarch_init): Update.
8160 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8161 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8162 have_neon, is_m>: Change to bool.
8163
aeefc73c
CB
81642020-02-12 Christian Biesinger <cbiesinger@google.com>
8165
8166 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8167
d27b8e5f
TT
81682020-02-12 Tom Tromey <tom@tromey.com>
8169
8170 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8171
cd5900f3
HD
81722020-02-12 Hannes Domani <ssbssa@yahoo.de>
8173
8174 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8175 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8176
f056b22b
TT
81772020-02-11 Tom Tromey <tom@tromey.com>
8178
8179 * psymtab.h: Update comment.
8180
f92ff6b5
TT
81812020-02-11 Tom Tromey <tom@tromey.com>
8182
8183 * gdb_obstack.h (struct auto_obstack): Use
8184 DISABLE_COPY_AND_ASSIGN.
8185
3fd6912b
TT
81862020-02-11 Tom Tromey <tom@tromey.com>
8187
8188 * dwarf2/frame.h (struct objfile): Don't forward declare.
8189
69ed9b74
CB
81902020-02-11 Christian Biesinger <cbiesinger@google.com>
8191
8192 * cris-tdep.c (cris_supply_gregset): Change signature to match
8193 what struct regset expects.
8194 (cris_regset): New struct.
8195 (fetch_core_registers): Remove.
8196 (cris_iterate_over_regset_sections): New function.
8197 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8198 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8199
bda874f6
CB
82002020-02-11 Christian Biesinger <cbiesinger@google.com>
8201
8202 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8203 registers.
8204
754e1564
CB
82052020-02-11 Christian Biesinger <cbiesinger@google.com>
8206
8207 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8208
8ddd8e0e
SM
82092020-02-11 Simon Marchi <simon.marchi@efficios.com>
8210
8211 * configure: Re-generate.
8212
898e7f60
SM
82132020-02-11 Simon Marchi <simon.marchi@efficios.com>
8214
8215 * configure: Re-generate.
8216
58df732b
SM
82172020-02-11 Simon Marchi <simon.marchi@efficios.com>
8218
8219 * acinclude: Update warning.m4 path.
8220 * warning.m4: Move to gdbsupport.
8221
da5bd37e
TT
82222020-02-11 Tom Tromey <tromey@adacore.com>
8223
8224 * remote.c (remote_console_output): Update.
8225 * printcmd.c (printf_command): Update.
8226 * event-loop.c (gdb_wait_for_event): Update.
8227 * linux-nat.c (sigchld_handler): Update.
8228 * remote-sim.c (gdb_os_write_stdout): Update.
8229 (gdb_os_flush_stdout): Update.
8230 (gdb_os_flush_stderr): Update.
8231 (gdb_os_write_stderr): Update.
8232 * exceptions.c (print_exception): Update.
8233 * remote-fileio.c (remote_fileio_func_read): Update.
8234 (remote_fileio_func_write): Update.
8235 * tui/tui.c (tui_enable): Update.
8236 * tui/tui-interp.c (tui_interp::init): Update.
8237 * utils.c (init_page_info): Update.
8238 (putchar_unfiltered, fputc_unfiltered): Update.
8239 (gdb_flush): Update.
8240 (emit_style_escape): Update.
8241 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8242 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8243 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8244 (stderr_file::write): Update.
8245 (stderr_file::puts): Update.
8246 * ui-file.h (ui_file_isatty, ui_file_write)
8247 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8248 (ui_file_puts): Don't declare.
8249
85f0dd3c
TV
82502020-02-10 Tom de Vries <tdevries@suse.de>
8251
8252 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8253 sentinel to char *.
8254
2e927613
TV
82552020-02-09 Tom de Vries <tdevries@suse.de>
8256
8257 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8258 filename if it matches "<artificial>".
8259
6bafc845
HD
82602020-02-09 Hannes Domani <ssbssa@yahoo.de>
8261
8262 * windows-tdep.c (struct enum_value_name): New struct.
8263 (create_enum): New function.
8264 (windows_get_siginfo_type): Create and use enum types.
8265
7928d571
HD
82662020-02-09 Hannes Domani <ssbssa@yahoo.de>
8267
8268 * NEWS: Mention $_siginfo support for Windows.
8269 * windows-nat.c (handle_exception): Set siginfo_er.
8270 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8271 (windows_xfer_siginfo): New function.
8272 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8273 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8274 (init_windows_gdbarch_data): New function.
8275 (get_windows_gdbarch_data): New function.
8276 (windows_get_siginfo_type): New function.
8277 (windows_init_abi): Register windows_get_siginfo_type.
8278 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8279
6751ebae
TT
82802020-02-08 Tom Tromey <tom@tromey.com>
8281
8282 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8283 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8284 <keep>: Declare method.
8285 <m_keep>: Remove member.
8286 <~cutu_reader>: Remove.
8287 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8288 (cutu_reader::cutu_reader): Update.
8289 (cutu_reader::keep): Rename from ~cutu_reader.
8290 (process_psymtab_comp_unit, build_type_psymtabs_1)
8291 (process_skeletonless_type_unit, load_partial_comp_unit)
8292 (load_full_comp_unit, dwarf2_read_addr_index)
8293 (read_signatured_type): Update.
8294
135f5437
TT
82952020-02-08 Tom Tromey <tom@tromey.com>
8296
8297 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8298 "want_partial_unit" parameter.
8299 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8300 Inline check for DW_TAG_partial_unit.
8301 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8302
9f66ff1c
TT
83032020-02-08 Tom Tromey <tom@tromey.com>
8304
8305 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8306 read.c.
8307 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8308 read.c.
8309
c8a7a66f
TT
83102020-02-08 Tom Tromey <tom@tromey.com>
8311
8312 * dwarf2/read.c (read_address): Move to comp-unit.c.
8313 (dwarf2_rnglists_process, dwarf2_ranges_process)
8314 (read_attribute_value, dwarf_decode_lines_1)
8315 (var_decode_location, decode_locdesc): Update.
8316 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8317 read.c. Remove "cu" parameter.
8318 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8319 method.
8320
8266302d
TT
83212020-02-08 Tom Tromey <tom@tromey.com>
8322
8323 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8324 (read_indirect_line_string): Update.
8325 * dwarf2/comp-unit.c (read_offset): Remove.
8326 (read_comp_unit_head): Update.
8327 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8328 method.
8329 (read_offset): Don't declare.
8330
4057dfde
TT
83312020-02-08 Tom Tromey <tom@tromey.com>
8332
8333 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8334 * dwarf2/read.c (struct comp_unit_head): Move to
8335 dwarf2/comp-unit.h.
8336 (enum class rcuh_kind): Move to comp-unit.h.
8337 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8338 (read_comp_unit_head, error_check_comp_unit_head)
8339 (read_and_check_comp_unit_head): Move to comp-unit.c.
8340 (read_offset, dwarf_unit_type_name): Likewise.
8341 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8342 (cutu_reader::cutu_reader, read_call_site_scope)
8343 (find_partial_die, follow_die_offset): Update.
8344 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8345
24aa364d
TT
83462020-02-08 Tom Tromey <tom@tromey.com>
8347
8348 * dwarf2/read.c (read_offset_1): Move to leb.c.
8349 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8350 (dwarf_decode_macro_bytes): Update.
8351 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8352 * dwarf2/leb.h (read_offset): Declare.
8353
2c7d5afc
TT
83542020-02-08 Tom Tromey <tom@tromey.com>
8355
8356 * dwarf2/read.c (dwarf2_section_size): Remove.
8357 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8358 Update.
8359 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8360
4075cb26
TT
83612020-02-08 Tom Tromey <tom@tromey.com>
8362
8363 * dwarf2/read.c (read_initial_length): Move to leb.c.
8364 * dwarf2/leb.h (read_initial_length): Declare.
8365 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8366 handle_nonstd parameter.
8367 * dwarf2/frame.c (read_initial_length): Remove.
8368 (decode_frame_entry_1): Update.
8369
09ba997f
TT
83702020-02-08 Tom Tromey <tom@tromey.com>
8371
8372 * dwarf2/loc.c (dwarf2_find_location_expression)
8373 (dwarf_evaluate_loc_desc::get_tls_address)
8374 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8375 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8376 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8377 (dwarf2_compile_property_to_c)
8378 (dwarf2_loc_desc_get_symbol_read_needs)
8379 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8380 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8381 (loclist_describe_location, loclist_tracepoint_var_ref)
8382 (loclist_generate_c_location): Update.
8383 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8384 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8385 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8386 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8387 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8388 (dwarf2_per_cu_data::addr_size)
8389 (dwarf2_per_cu_data::ref_addr_size)
8390 (dwarf2_per_cu_data::text_offset)
8391 (dwarf2_per_cu_data::addr_type): Now methods.
8392 (per_cu_header_read_in): Make per_cu "const".
8393 (dwarf2_version): Remove.
8394 (dwarf2_per_cu_data::int_type): Now a method.
8395 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8396 (set_die_type, read_array_type, read_subrange_index_type)
8397 (read_tag_string_type, read_subrange_type): Update.
8398 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8399 offset_size, ref_addr_size, text_offset, addr_type, version,
8400 objfile, int_type, addr_sized_int_type>: Declare methods.
8401
96c738c0
TT
84022020-02-08 Tom Tromey <tom@tromey.com>
8403
8404 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8405 Move earlier.
8406
8fdd972c
TT
84072020-02-08 Tom Tromey <tom@tromey.com>
8408
8409 * dwarf2/read.h (dwarf_line_debug): Declare.
8410 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8411 * dwarf2/read.c: Move line_header code to new files.
8412 (dwarf_line_debug): No longer static.
8413 * dwarf2/line-header.c: New file.
8414 * dwarf2/line-header.h: New file.
8415
03075812
TT
84162020-02-08 Tom Tromey <tom@tromey.com>
8417
8418 * dwarf2/read.c (struct line_header) <file_full_name,
8419 file_file_name>: Return unique_xmalloc_ptr.
8420 (line_header::file_file_name): Update.
8421 (line_header::file_full_name): Update.
8422 (dw2_get_file_names_reader): Update.
8423 (macro_start_file): Update.
8424
bb822404
TT
84252020-02-08 Tom Tromey <tom@tromey.com>
8426
8427 * dwarf2/read.c (struct line_header) <file_full_name,
8428 file_file_name>: Declare methods.
8429 (dw2_get_file_names_reader): Update.
8430 (file_file_name): Now a method.
8431 (file_full_name): Likewise.
8432 (macro_start_file): Update.
8433
009b64fc
TT
84342020-02-08 Tom Tromey <tom@tromey.com>
8435
8436 * dwarf2/read.c (dwarf_always_disassemble)
8437 (show_dwarf_always_disassemble): Move to loc.c.
8438 (_initialize_dwarf2_read): Move "always-disassemble" registration
8439 to loc.c.
8440 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8441 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8442 static.
8443 (show_dwarf_always_disassemble): Move from read.c.
8444 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8445
5895093f
TT
84462020-02-08 Tom Tromey <tom@tromey.com>
8447
8448 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8449 (create_quick_file_names_table): Return htab_up.
8450 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8451 Update.
8452 * dwarf2/read.h (struct dwarf2_per_objfile)
8453 <quick_file_names_table>: Now htab_up.
8454
b3b32279
TT
84552020-02-08 Tom Tromey <tom@tromey.com>
8456
8457 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8458
1d33d811
TT
84592020-02-08 Tom Tromey <tom@tromey.com>
8460
8461 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8462 Rewrite.
8463 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8464 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8465 (abbrev_table::abbrev_table): No longer inline.
8466 (ABBREV_HASH_SIZE): Remove.
8467 (abbrev_table::m_abbrevs): Now an htab_up.
8468
86de1d91
TT
84692020-02-08 Tom Tromey <tom@tromey.com>
8470
8471 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8472 (cutu_reader): Update.
8473 (build_type_psymtabs_1): Update.
8474 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8475 (abbrev_table::alloc_abbrev): Update.
8476 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8477 (abbrev_table::read): New static method, renamed from
8478 abbrev_table_read_table.
8479 (abbrev_table::alloc_abbrev)
8480 (abbrev_table::add_abbrev): Now private.
8481 (abbrev_table::abbrev_table): Now private.
8482 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8483
0335378b
TT
84842020-02-08 Tom Tromey <tom@tromey.com>
8485
8486 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8487 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8488 htab_up.
8489
48b490f2
TT
84902020-02-08 Tom Tromey <tom@tromey.com>
8491
8492 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8493 htab_up.
8494 (lookup_dwo_unit_in_dwp): Update.
8495 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8496 on obstack.
8497
bc68fb19
TT
84982020-02-08 Tom Tromey <tom@tromey.com>
8499
8500 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8501 obstack.
8502
d15acc42
TT
85032020-02-08 Tom Tromey <tom@tromey.com>
8504
8505 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8506 line_header_hash.
8507 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8508 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8509 Change type to htab_up.
8510
eaa5fa8b
TT
85112020-02-08 Tom Tromey <tom@tromey.com>
8512
8513 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8514 htab_up. Don't allocate on obstack.
8515 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8516 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8517 Change type to htab_up.
8518
b0b6a987
TT
85192020-02-08 Tom Tromey <tom@tromey.com>
8520
8521 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8522 Change type to htab_up.
8523 * dwarf2/read.c (create_signatured_type_table_from_index)
8524 (create_signatured_type_table_from_debug_names)
8525 (create_all_type_units, add_type_unit)
8526 (lookup_dwo_signatured_type, lookup_signatured_type)
8527 (process_skeletonless_type_unit): Update.
8528 (create_debug_type_hash_table, create_debug_types_hash_table):
8529 Change type of types_htab.
8530 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8531 htab_up. Don't allocate on obstack.
8532 (create_cus_hash_table): Change type of cus_htab parameter.
8533 (struct dwo_file) <cus, tus>: Now htab_up.
8534 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8535 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8536 (queue_and_load_all_dwo_tus): Update.
8537 * dwarf2/index-write.c (write_gdbindex): Update.
8538 (write_debug_names): Update.
8539
39856def
TT
85402020-02-08 Tom Tromey <tom@tromey.com>
8541
8542 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8543 dwarf2/read.c. Remove "next" member. Add constructor ntad
8544 destructor.
8545 (struct dwarf2_per_objfile) <queue>: New member.
8546 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8547 dwarf2/read.h.
8548 (dwarf2_queue, dwarf2_queue_tail): Remove.
8549 (class dwarf2_queue_guard): Add parameter to constructor. Use
8550 DISABLE_COPY_AND_ASSIGN.
8551 <m_per_objfile>: New member.
8552 <~dwarf2_queue_guard>: Rewrite.
8553 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8554 Update.
8555 (~dwarf2_queue_item): New.
8556
3e225074
TT
85572020-02-08 Tom Tromey <tom@tromey.com>
8558
8559 * dwarf2/read.c (struct die_info) <has_children>: New member.
8560 (dw2_get_file_names_reader): Remove has_children.
8561 (dw2_get_file_names): Update.
8562 (read_cutu_die_from_dwo): Remove has_children.
8563 (cutu_reader::init_tu_and_read_dwo_dies)
8564 (cutu_reader::cutu_reader): Update.
8565 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8566 Remove has_children.
8567 (build_type_psymtabs_1, process_skeletonless_type_unit)
8568 (load_partial_comp_unit, load_full_comp_unit): Update.
8569 (create_dwo_cu_reader): Remove has_children.
8570 (create_cus_hash_table, read_die_and_children): Update.
8571 (read_full_die_1,read_full_die): Remove has_children.
8572 (read_signatured_type): Update.
8573 (class cutu_reader) <has_children>: Remove.
8574
82ca8957
TT
85752020-02-08 Tom Tromey <tom@tromey.com>
8576
8577 * dwarf2/expr.c: Rename from dwarf2expr.c.
8578 * dwarf2/expr.h: Rename from dwarf2expr.h.
8579 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8580 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8581 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8582 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8583 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8584 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8585 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8586 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8587 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8588 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8589 * dwarf2/loc.c: Rename from dwarf2loc.c.
8590 * dwarf2/loc.h: Rename from dwarf2loc.h.
8591 * dwarf2/read.c: Rename from dwarf2read.c.
8592 * dwarf2/read.h: Rename from dwarf2read.h.
8593 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8594 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8595 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8596 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8597 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8598 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8599 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8600 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8601 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8602 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8603 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8604 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8605 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8606 Update.
8607 * Makefile.in (COMMON_SFILES): Update.
8608 (HFILES_NO_SRCDIR): Update.
8609
9e35d499
TT
86102020-02-08 Tom Tromey <tom@tromey.com>
8611
8612 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8613 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8614
1eba2311
TT
86152020-02-08 Tom Tromey <tom@tromey.com>
8616
8617 * dwarf2read.h (struct die_info): Don't declare.
8618
e41c2da2
TT
86192020-02-08 Tom Tromey <tom@tromey.com>
8620
8621 * dwarf2read.h (die_info_ptr): Remove typedef.
8622
4fc6c0d5
TT
86232020-02-08 Tom Tromey <tom@tromey.com>
8624
8625 * dwarf2read.c (read_call_site_scope)
8626 (handle_data_member_location, dwarf2_add_member_fn)
8627 (mark_common_block_symbol_computed, read_common_block)
8628 (attr_to_dynamic_prop, partial_die_info::read)
8629 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8630 (dwarf2_symbol_mark_computed, set_die_type): Update.
8631 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8632 method.
8633 (attr_form_is_block): Don't declare.
8634 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8635
cd6c91b4
TT
86362020-02-08 Tom Tromey <tom@tromey.com>
8637
8638 * dwarf2read.c (dwarf2_find_base_address, )
8639 (read_call_site_scope, rust_containing_type)
8640 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8641 (handle_data_member_location, dwarf2_add_member_fn)
8642 (get_alignment, read_structure_type, process_structure_scope)
8643 (mark_common_block_symbol_computed, read_common_block)
8644 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8645 (partial_die_info::read, read_attribute_value, new_symbol)
8646 (lookup_die_type, dwarf2_get_ref_die_offset)
8647 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8648 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8649 (dwarf2_symbol_mark_computed): Update.
8650 * dwarf2/attribute.h (struct attribute) <value_as_address,
8651 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8652 methods.
8653 (value_as_address, attr_form_is_section_offset)
8654 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8655 * dwarf2/attribute.c (attribute::value_as_address)
8656 (attribute::form_is_section_offset, attribute::form_is_constant)
8657 (attribute::form_is_ref): Now methods.
8658
162dce55
TT
86592020-02-08 Tom Tromey <tom@tromey.com>
8660
8661 * dwarf2read.c (struct attribute, DW_STRING)
8662 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8663 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8664 (attr_form_is_block, attr_form_is_section_offset)
8665 (attr_form_is_constant, attr_form_is_ref): Move.
8666 * dwarf2/attribute.h: New file.
8667 * dwarf2/attribute.c: New file, from dwarf2read.c.
8668 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8669
3054dd54
TT
86702020-02-08 Tom Tromey <tom@tromey.com>
8671
8672 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8673 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8674 Move.
8675 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8676 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8677 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8678 abbrev.c.
8679 * dwarf2/abbrev.h: New file.
8680 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8681 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8682
96b79293
TT
86832020-02-08 Tom Tromey <tom@tromey.com>
8684
8685 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8686 (dwarf2_section_size, dwarf2_get_section_info)
8687 (create_signatured_type_table_from_debug_names)
8688 (create_addrmap_from_aranges, read_debug_names_from_section)
8689 (get_gdb_index_contents_from_section, read_comp_unit_head)
8690 (error_check_comp_unit_head, read_abbrev_offset)
8691 (create_debug_type_hash_table, init_cu_die_reader)
8692 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8693 (read_comp_units_from_section, create_cus_hash_table)
8694 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8695 (create_dwp_v2_section, dwarf2_rnglists_process)
8696 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8697 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8698 (read_indirect_string_from_dwz, read_addr_index_1)
8699 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8700 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8701 (fill_in_loclist_baton): Update.
8702 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8703 get_containing_section, get_bfd_owner, get_bfd_section,
8704 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8705 (dwarf2_read_section, get_section_name, get_section_file_name)
8706 (get_containing_section, get_section_bfd_owner)
8707 (get_section_bfd_section, get_section_name, get_section_file_name)
8708 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8709 declare.
8710 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8711 (dwarf2_section_info::get_bfd_owner)
8712 (dwarf2_section_info::get_bfd_section)
8713 (dwarf2_section_info::get_name)
8714 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8715 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8716 (dwarf2_section_info::read): Now methods.
8717 * dwarf-index-write.c (class debug_names): Update.
8718
2c86cff9
TT
87192020-02-08 Tom Tromey <tom@tromey.com>
8720
8721 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8722 Move to dwarf2/section.h.
8723 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8724 (get_section_bfd_section, get_section_name)
8725 (get_section_file_name, get_section_id, get_section_flags)
8726 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8727 dwarf2/section.c.
8728 * dwarf2/section.h: New file.
8729 * dwarf2/section.c: New file, from dwarf2read.c.
8730 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8731
f4382c45
TT
87322020-02-08 Tom Tromey <tom@tromey.com>
8733
8734 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8735 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8736 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8737 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8738 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8739 * dwarf2/leb.h: New file, from dwarf2read.c.
8740 * dwarf2/leb.c: New file, from dwarf2read.c.
8741 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8742 Remove.
8743 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8744 (COMMON_SFILES): Add dwarf2/leb.c.
8745
01840b7a
JB
87462020-02-08 Joel Brobecker <brobecker@adacore.com>
8747
8748 GDB 9.1 released.
8749
dfcb27e4
IB
87502020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8751
8752 PR gdb/25190:
aac66a4c
SM
8753 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8754 * gdb/remote.c (remote_console_output): Update.
8755 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8756 (ui_file_puts): ...this.
8757 * gdb/ui-file.h (ui_file_puts): Add declaration.
8758 * gdb/utils.c (emit_style_escape): Update.
8759 (flush_wrap_buffer): Update.
8760 (fputs_maybe_filtered): Update.
8761 (fputs_unfiltered): Add function.
dfcb27e4 8762
faa17681
IB
87632020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8764
aac66a4c
SM
8765 * gdb/event-loop.c (gdb_wait_for_event): Update.
8766 * gdb/printcmd.c (printf_command): Update.
8767 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8768 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8769 (gdb_os_flush_stderr): Update.
8770 * gdb/remote.c (remote_console_output): Update.
8771 * gdb/ui-file.c (gdb_flush): Rename to...
8772 (ui_file_flush): ...this.
8773 (stderr_file::write): Update.
8774 (stderr_file::puts): Update.
8775 * gdb/ui-file.h (gdb_flush): Rename to...
8776 (ui_file_flush): ...this.
8777 * gdb/utils.c (gdb_flush): Add function.
8778 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8779
5abbbe1d
TT
87802020-02-07 Tom Tromey <tromey@adacore.com>
8781
8782 PR breakpoints/24915:
8783 * source.c (find_and_open_source): Do not check basenames_may_differ.
8784
919adfe8
TT
87852020-02-07 Tom Tromey <tom@tromey.com>
8786
8787 * README: Update gdbserver documentation.
8788 * gdbserver: Move to top level.
8789 * configure.tgt (build_gdbserver): Remove.
8790 * configure.ac: Remove --enable-gdbserver.
8791 * configure: Rebuild.
8792 * Makefile.in (distclean): Don't mention gdbserver.
8793
1d5d29e7
SV
87942020-02-06 Shahab Vahedi <shahab@synopsys.com>
8795
8796 * source-cache.c (source_cache::ensure): Surround
8797 get_plain_source_lines with a try/catch.
8798 (source_cache::get_line_charpos): Get rid of try/catch
8799 and only check for the return value of "ensure".
8800 * tui/tui-source.c (tui_source_window::set_contents):
8801 Simplify "nlines" calculation.
8802
6eb1129c
SV
88032020-02-06 Shahab Vahedi <shahab@synopsys.com>
8804
8805 * MAINTAINERS (Write After Approval): Add myself.
8806
c6a42d11
CB
88072020-02-05 Christian Biesinger <cbiesinger@google.com>
8808
8809 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8810 function call.
8811
c8ecdda6
CB
88122020-02-05 Christian Biesinger <cbiesinger@google.com>
8813
8814 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8815
f6480e70
MR
88162020-02-05 Maciej W. Rozycki <macro@wdc.com>
8817
8818 * nat/riscv-linux-tdesc.h: New file.
8819 * nat/riscv-linux-tdesc.c: New file, taking code from...
8820 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8821 ... here.
8822 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8823 NATDEPFILES.
8824
dcc9fbc6
AB
88252020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8826
8827 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8828 we don't set the fake simulator ptid to the null_ptid.
8829
719546c4
SM
88302020-02-03 Simon Marchi <simon.marchi@efficios.com>
8831
8832 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8833 * gdbthread.h (class thread_info) <resumed>: Likewise.
8834 * infrun.c (resume_1): Likewise.
8835 (proceed): Likewise.
8836 (infrun_thread_stop_requested): Likewise.
8837 (stop_all_threads): Likewise.
8838 (handle_inferior_event): Likewise.
8839 (restart_threads): Likewise.
8840 (finish_step_over): Likewise.
8841 (keep_going_stepped_thread): Likewise.
8842 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8843 (linux_handle_extended_wait): Likewise.
8844 * record-btrace.c (get_thread_current_frame_id): Likewise.
8845 * record-full.c (record_full_wait_1): Likewise.
8846 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8847 * target.c (target_resume): Likewise.
8848 * thread.c (set_running_thread): Likewise.
8849
e409c542
AKS
88502020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8851
8852 * f-valprint.c (f77_print_array_1): Changed datatype of index
8853 variable to LONGEST from int to enable it to contain bound
8854 values correctly.
8855
ee98c0da
MR
88562020-02-03 Maciej W. Rozycki <macro@wdc.com>
8857
8858 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8859 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8860 offsets according to FLEN determined.
8861 (riscv_linux_nat_target::read_description): Determine FLEN
8862 dynamically.
8863 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8864 according to FLEN determined.
8865 (riscv_linux_nat_target::store_registers): Likewise.
8866
aa66aac4
SV
88672020-02-01 Shahab Vahedi <shahab@synopsys.com>
8868
8869 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8870 when reg->group is empty and reggroup is not.
8871
fd9faca8
TT
88722020-01-31 Tom Tromey <tromey@adacore.com>
8873
8874 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8875 Call beneath target's mourn_inferior after unpushing.
8876
42330a68
AB
88772020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8878
8879 PR tui/9765
8880 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8881 have enough lines to fill the screen, still return the lowest
8882 address we found.
8883
7a27a45b
AB
88842020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8885
8886 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8887 '-', '<', and '>' commands.
8888
c47f70e2
PA
88892020-01-29 Pedro Alves <palves@redhat.com>
8890 Sergio Durigan Junior <sergiodj@redhat.com>
8891
8892 * infcmd.c (construct_inferior_arguments): Assert that
8893 'argc' is greater than 0.
8894
5133a315
LM
88952020-01-29 Luis Machado <luis.machado@linaro.org>
8896
8897 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8898 (BRK_INSN_MASK): Define to 0xd4200000.
8899 (aarch64_program_breakpoint_here_p): New function.
8900 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8901 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8902 breakpoint.c.
8903 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8904 breakpoint.h
8905 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8906 call gdbarch_program_breakpoint_here_p.
8907 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8908 default_program_breakpoint_here_p, changed return type to bool and
8909 simplified.
8910 * breakpoint.h (program_breakpoint_here): Moved prototype to
8911 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8912 return type to bool.
8913 * gdbarch.c: Regenerate.
8914 * gdbarch.h: Regenerate.
8915 * gdbarch.sh (program_breakpoint_here_p): New method.
8916 * infrun.c (handle_signal_stop): Call
8917 gdbarch_program_breakpoint_here_p.
8918
168f8c6b
TT
89192020-01-26 Tom Tromey <tom@tromey.com>
8920
8921 * ctfread.c (struct ctf_fp_info): Reindent.
8922 (_initialize_ctfread): Remove.
8923
128a391f
TT
89242020-01-26 Tom Tromey <tom@tromey.com>
8925
8926 * psymtab.c (partial_map_expand_apply)
8927 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8928 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8929 (psym_print_stats, psym_expand_symtabs_for_function)
8930 (psym_map_symbol_filenames, psym_map_matching_symbols)
8931 (psym_expand_symtabs_matching)
8932 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8933 (maintenance_check_psymtabs): Use new methods.
8934 * psympriv.h (struct partial_symtab) <readin_p,
8935 get_compunit_symtab>: New methods.
8936 <readin, compunit_symtab>: Remove members.
8937 (struct standard_psymtab): New.
8938 (struct legacy_psymtab): Derive from standard_psymtab.
8939 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8940 standard_psymtab.
8941 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8942
0494dbec
TT
89432020-01-26 Tom Tromey <tom@tromey.com>
8944
8945 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8946 read_dependencies. Add assert.
8947 * psymtab.c (partial_symtab::read_dependencies): New method.
8948 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8949 method.
8950 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8951 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8952 read_dependencies.
8953 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8954 Add assert.
8955
8566b89b
TT
89562020-01-26 Tom Tromey <tom@tromey.com>
8957
8958 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8959 Call expand_psymtab.
8960 (xcoff_read_symtab): Call expand_psymtab.
8961 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8962 legacy_expand_psymtab.
8963 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8964 method.
8965 (struct legacy_psymtab) <expand_psymtab>: Implement.
8966 <legacy_expand_psymtab>: New member.
8967 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8968 (parse_partial_symbols): Set legacy_expand_psymtab.
8969 (psymtab_to_symtab_1): Change argument order. Call
8970 expand_psymtab.
8971 (new_psymtab): Set legacy_expand_psymtab.
8972 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8973 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8974 expand_psymtab.
8975 (dwarf2_psymtab::expand_psymtab): Rename from
8976 psymtab_to_symtab_1. Call expand_psymtab.
8977 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8978 (dbx_end_psymtab): Likewise.
8979 (dbx_psymtab_to_symtab_1): Change argument order. Call
8980 expand_psymtab.
8981 (dbx_read_symtab): Call expand_psymtab.
8982 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8983 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8984 (ctf_psymtab::read_symtab): Call expand_psymtab.
8985
077cbab2
TT
89862020-01-26 Tom Tromey <tom@tromey.com>
8987
8988 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8989 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8990 messages.
8991 * mdebugread.c (mdebug_read_symtab): Remove prints.
8992 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8993 assert.
8994 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8995
891813be
TT
89962020-01-26 Tom Tromey <tom@tromey.com>
8997
8998 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8999 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9000 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9001 legacy_symtab.
9002 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9003 * psymtab.c (psymtab_to_symtab): Call method.
9004 (dump_psymtab): Update.
9005 * psympriv.h (struct partial_symtab): Add virtual destructor.
9006 <read_symtab>: New method.
9007 (struct legacy_symtab): New.
9008 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9009 (struct pst_map) <pst>: Now a legacy_psymtab.
9010 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9011 (new_psymtab): Use legacy_psymtab.
9012 * dwarf2read.h (struct dwarf2_psymtab): New.
9013 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9014 * dwarf2read.c (dwarf2_create_include_psymtab)
9015 (dwarf2_build_include_psymtabs, create_type_unit_group)
9016 (create_partial_symtab, process_psymtab_comp_unit_reader)
9017 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9018 (set_partial_user): Use dwarf2_psymtab.
9019 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9020 (psymtab_to_symtab_1, process_full_comp_unit)
9021 (process_full_type_unit, dwarf2_ranges_read)
9022 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9023 (dwarf_decode_lines): Use dwarf2_psymtab.
9024 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9025 (add_address_entry_worker, write_one_signatured_type)
9026 (recursively_count_psymbols, recursively_write_psymbols)
9027 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9028 (write_debug_names): Likewise.
9029 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9030 <pst>: Now a legacy_psymtab.
9031 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9032 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9033 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9034 * ctfread.c (struct ctf_psymtab): New.
9035 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9036 ctf_psymtab.
9037 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9038 (create_partial_symtab): Return a ctf_psymtab.
9039 (scan_partial_symbols): Update.
9040
c3693a1d
TT
90412020-01-26 Tom Tromey <tom@tromey.com>
9042
9043 * xcoffread.c (xcoff_start_psymtab): Use new.
9044 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9045 renamed from start_psymtab_common.
9046 * psympriv.h (struct partial_symtab): Add new constructor.
9047 (start_psymtab_common): Don't declare.
9048 * mdebugread.c (parse_partial_symbols): Use new.
9049 * dwarf2read.c (create_partial_symtab): Use new.
9050 * dbxread.c (start_psymtab): Use new.
9051 * ctfread.c (create_partial_symtab): Use new.
9052
32caafd0
TT
90532020-01-26 Tom Tromey <tom@tromey.com>
9054
9055 * xcoffread.c (xcoff_end_psymtab): Use new.
9056 * psymtab.c (start_psymtab_common): Use new.
9057 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9058 Update.
9059 * psympriv.h (struct partial_symtab): Add parameters to
9060 constructor. Don't inline.
9061 (allocate_psymtab): Don't declare.
9062 * mdebugread.c (new_psymtab): Use new.
9063 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9064 * dbxread.c (dbx_end_psymtab): Use new.
9065
abaa2f23
TT
90662020-01-26 Tom Tromey <tom@tromey.com>
9067
9068 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9069 allocate_psymtab. Update documentation.
9070 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9071 allocate_psymtab. Do not use new.
9072 (allocate_psymtab): Use new. Update.
9073
6d94535f
TT
90742020-01-26 Tom Tromey <tom@tromey.com>
9075
9076 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9077 * psymtab.c (psym_print_stats): Update.
9078 * psympriv.h (struct partial_symtab) <readin,
9079 psymtabs_addrmap_supported, anonymous>: Now bool.
9080 * mdebugread.c (psymtab_to_symtab_1): Update.
9081 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9082 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9083 (process_full_comp_unit, process_full_type_unit): Update.
9084 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9085 * ctfread.c (psymtab_to_symtab): Update.
9086
6f17252b
TT
90872020-01-26 Tom Tromey <tom@tromey.com>
9088
9089 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9090 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9091 * psymtab.c (psymtab_storage): Delete psymtabs.
9092 (psymtab_storage::allocate_psymtab): Use new.
9093 (psymtab_storage::discard_psymtab): Use delete.
9094 * psympriv.h (struct partial_symtab): Add constructor and
9095 initializers.
9096
f6f1cebc
TT
90972020-01-26 Tom Tromey <tom@tromey.com>
9098
9099 * machoread.c: Do not include psympriv.h.
9100
e47e48f6
PW
91012020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9102
9103 * NEWS: Mention the new option and the set/show commands.
9104
a2fedca9
PW
91052020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9106
9107 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9108 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9109 (validate_exec_file): New variables, enums, functions.
9110 (exec_file_locate_attach, print_section_info): Style the filenames.
9111 (_initialize_exec): Install show_exec_file_mismatch_command and
9112 set_exec_file_mismatch_command.
9113 * gdbcore.h (validate_exec_file): Declare.
9114 * infcmd.c (attach_command): Call validate_exec_file.
9115 * remote.c ( remote_target::remote_add_inferior): Likewise.
9116
7ffa82e1
AB
91172020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9118
9119 * frame.c (find_frame_sal): Move call to get_next_frame into more
9120 inner scope.
9121 * inline-frame.c (inilne_state) <inline_state>: Update argument
9122 types.
9123 (inilne_state) <skipped_symbol>: Rename to...
9124 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9125 (skip_inline_frames): Build vector of skipped symbols and use this
9126 to reate the inline_state.
9127 (inline_skipped_symbol): Add a comment and some assertions, fetch
9128 skipped symbol from the list.
9129
3d92a3e3
AB
91302020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9131
9132 * buildsym.c (lte_is_less_than): Delete.
9133 (buildsym_compunit::end_symtab_with_blockvector): Create local
9134 lambda function to sort line table entries, and use
9135 std::stable_sort instead of std::sort.
9136 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9137 markers when looking for a previous line.
9138
94a72be7
AB
91392020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9140
9141 * dwarf2read.c (lnp_state_machine::record_line): Include
9142 end_sequence parameter in debug print out. Record the line if we
9143 are at an end_sequence marker even if it's not the start of a
9144 statement.
9145 * symmisc.c (maintenance_print_one_line_table): Print end of
9146 sequence markers with 'END' not '0'.
9147
53af73bf
PA
91482020-01-24 Pedro Alves <palves@redhat.com>
9149
9150 PR gdb/25410
9151 * thread.c (scoped_restore_current_thread::restore): Use
9152 switch_to_inferior_no_thread.
9153 * exec.c: Include "progspace-and-thread.h".
9154 (add_target_sections, remove_target_sections):
9155 scoped_restore_current_pspace_and_thread instead of
9156 scoped_restore_current_thread.
9157 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9158 and aspace to the inferior before calling clone_program_space.
9159 Remove stale comment.
9160
3050c6f4
CB
91612020-01-24 Christian Biesinger <cbiesinger@google.com>
9162
9163 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9164 (arm_netbsd_nat_target::fetch_registers): ...this.
9165 (arm_nbsd_nat_target::store_registers): Rename to...
9166 (arm_netbsd_nat_target::store_registers): ...this.
9167
73685c7e
CB
91682020-01-24 Christian Biesinger <cbiesinger@google.com>
9169
9170 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9171 register_t.
9172
89203d40
CB
91732020-01-24 Christian Biesinger <cbiesinger@google.com>
9174
9175 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9176 Update comment.
9177 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9178 Likewise.
9179 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9180 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9181 the correct replacement (iterate_over_regset_sections).
9182 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9183 Update comment.
9184
1ba1ac88
AB
91852020-01-24 Graham Markall <graham.markall@embecosm.com>
9186
9187 PR gdb/23718
9188 * gdb/python/python.c (execute_gdb_command): Call
9189 async_enable_stdin in catch block.
9190
f3364a6d
AB
91912020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9192
9193 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9194 SWITCH_THRU_ALL_UIS.
9195
733d0a67
AB
91962020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9197
9198 PR tui/9765
9199 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9200 comment, add extra parameter, and update to store previous symbol
9201 when appropriate.
9202 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9203 add extra parameter.
9204 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9205 remove unneeded parameter, add try/catch around gdb_print_insn,
9206 rewrite to add items to asm_lines vector.
9207 (tui_find_backward_disassembly_start_address): New function.
9208 (tui_find_disassembly_address): Updated throughout.
9209 (tui_disasm_window::set_contents): Update for changes to
9210 tui_disassemble.
9211 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9212 number of lines to scroll.
9213
b3b3bada
SM
92142020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9215
9216 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9217 (SECT_OFF_DATA): Likewise.
9218 (SECT_OFF_RODATA): Likewise.
9219 (SECT_OFF_TEXT): Likewise.
9220 (SECT_OFF_BSS): Likewise.
9221 (struct objfile) <text_section_offset, data_section_offset>: New
9222 methods.
9223 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9224 objfile::text_section_offset.
9225 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9226 * coffread.c (coff_symtab_read): Likewise.
9227 (enter_linenos): Likewise.
9228 (process_coff_symbol): Likewise.
9229 * ctfread.c (get_objfile_text_range): Likewise.
9230 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9231 Use objfile::data_section_offset.
9232 * dwarf2-frame.c (execute_cfa_program): Use
9233 objfile::text_section_offset.
9234 (dwarf2_frame_find_fde): Likewise.
9235 * dwarf2read.c (create_addrmap_from_index): Likewise.
9236 (create_addrmap_from_aranges): Likewise.
9237 (dw2_find_pc_sect_compunit_symtab): Likewise.
9238 (process_psymtab_comp_unit_reader): Likewise.
9239 (add_partial_symbol): Likewise.
9240 (add_partial_subprogram): Likewise.
9241 (process_full_comp_unit): Likewise.
9242 (read_file_scope): Likewise.
9243 (read_func_scope): Likewise.
9244 (read_lexical_block_scope): Likewise.
9245 (read_call_site_scope): Likewise.
9246 (dwarf2_rnglists_process): Likewise.
9247 (dwarf2_ranges_process): Likewise.
9248 (dwarf2_ranges_read): Likewise.
9249 (dwarf_decode_lines_1): Likewise.
9250 (new_symbol): Likewise.
9251 (dwarf2_fetch_die_loc_sect_off): Likewise.
9252 (dwarf2_per_cu_text_offset): Likewise.
9253 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9254 * hppa-tdep.c (read_unwind_info): Likewise.
9255 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9256 * psympriv.h (struct partial_symtab): Likewise.
9257 * psymtab.c (find_pc_sect_psymtab): Likewise.
9258 * solib-svr4.c (enable_break): Likewise.
9259 * stap-probe.c (relocate_address): Use
9260 objfile::data_section_offset.
9261 * xcoffread.c (enter_line_range): Use
9262 objfile::text_section_offset.
9263 (read_xcoff_symtab): Likewise.
9264
ab53f382
SM
92652020-01-23 Simon Marchi <simon.marchi@efficios.com>
9266
9267 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9268 declaration to narrower scopes.
9269
e7eee665
SM
92702020-01-23 Simon Marchi <simon.marchi@efficios.com>
9271
9272 * darwin-nat.h (struct darwin_exception_msg, enum
9273 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9274 Move up.
9275 (class darwin_nat_target) <wait_1, check_new_threads,
9276 decode_exception_message, decode_message, stop_inferior,
9277 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9278 * darwin-nat.c (darwin_check_new_threads): Rename to...
9279 (darwin_nat_target::check_new_threads): ... this.
9280 (darwin_suspend_inferior_it): Remove.
9281 (darwin_decode_exception_message): Rename to...
9282 (darwin_nat_target::decode_exception_message): ... this.
9283 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9284 (darwin_decode_message): Rename to...
9285 (darwin_nat_target::decode_message): ... this.
9286 (cancel_breakpoint): Rename to...
9287 (darwin_nat_target::cancel_breakpoint): ... this.
9288 (darwin_wait): Rename to...
9289 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9290 instead of iterate_over_inferiors.
9291 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9292 (darwin_stop_inferior): Rename to...
9293 (darwin_nat_target::stop_inferior): ... this.
9294 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9295 (darwin_init_thread_list): Rename to...
9296 (darwin_nat_target::init_thread_list): ... this.
9297 (darwin_ptrace_him): Rename to...
9298 (darwin_nat_target::ptrace_him): ... this.
9299 (darwin_nat_target::create_inferior): Pass lambda function to
9300 fork_inferior.
9301 (darwin_nat_target::detach): Call stop_inferior instead of
9302 darwin_stop_inferior.
9303 * fork-inferior.h (fork_inferior): Change init_trace_fun
9304 parameter to gdb::function_view.
9305 * fork-inferior.c (fork_inferior): Likewise.
9306
c162ed3e
HD
93072020-01-23 Hannes Domani <ssbssa@yahoo.de>
9308
9309 * i386-cygwin-tdep.c (core_process_module_section): Update.
9310 * windows-nat.c (struct lm_info_windows): Add text_offset.
9311 (windows_xfer_shared_libraries): Update.
9312 * windows-tdep.c (windows_xfer_shared_library):
9313 Add text_offset_cached argument.
9314 * windows-tdep.h (windows_xfer_shared_library): Update.
9315
a1237872
SM
93162020-01-21 Simon Marchi <simon.marchi@efficios.com>
9317
9318 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9319
b3ee6dd9
SM
93202020-01-21 Simon Marchi <simon.marchi@efficios.com>
9321
9322 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9323 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9324 replace with range-based for.
9325 (gdbsim_interrupt_inferior): Remove.
9326 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9327 with a range-based for. Inline code from
9328 gdbsim_interrupt_inferior.
9329
f9fac3c8
SM
93302020-01-21 Simon Marchi <simon.marchi@efficios.com>
9331
9332 * infrun.c (proceed): Fix indentation.
9333
f6474de9
TT
93342020-01-21 Tom Tromey <tromey@adacore.com>
9335
9336 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9337 * python/python.c (python_extension_ops): Update.
9338 (gdbpy_colorize): New function.
9339 * python/lib/gdb/__init__.py (colorize): New function.
9340 * extension.h (ext_lang_colorize): Declare.
9341 * extension.c (ext_lang_colorize): New function.
9342 * extension-priv.h (struct extension_language_ops) <colorize>: New
9343 member.
9344 * cli/cli-style.c (_initialize_cli_style): Update help text.
9345
f0c702d4
LM
93462020-01-21 Luis Machado <luis.machado@linaro.org>
9347
9348 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9349 <cond>: Change type to bool.
9350 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9351 (aarch64_displaced_step_cb): Likewise.
9352 (aarch64_displaced_step_tb): Likewise.
9353
1ab139e5
LM
93542020-01-21 Luis Machado <luis.machado@linaro.org>
9355
9356 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9357 output.
9358
0c271889
LM
93592020-01-21 Luis Machado <luis.machado@linaro.org>
9360
9361 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9362 <pc_adjust>: Adjust the documentation.
9363 (aarch64_displaced_step_fixup): Check if PC really moved before
9364 adjusting it.
9365
4d89c1c7
TT
93662020-01-19 Tom Tromey <tom@tromey.com>
9367
9368 * disasm.c (~gdb_disassembler): New destructor.
9369 (gdb_buffered_insn_length): Call disassemble_free_target.
9370 * disasm.h (class gdb_disassembler): Declare destructor. Use
9371 DISABLE_COPY_AND_ASSIGN.
9372
c0ab21c2
TT
93732020-01-19 Tom Tromey <tom@tromey.com>
9374
9375 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9376 (die_reader_func_ftype): Remove.
9377 (cutu_reader): New class.
9378 (dw2_get_file_names_reader): Remove "data" parameter.
9379 (dw2_get_file_names): Use cutu_reader.
9380 (create_debug_type_hash_table): Update.
9381 (read_cutu_die_from_dwo): Update comment.
9382 (lookup_dwo_unit): Add dwo_name parameter.
9383 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9384 die_reader_func_ftype and data parameters.
9385 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9386 Remove die_reader_func_ftype and data parameters.
9387 (~cutu_reader): New; from init_cutu_and_read_dies.
9388 (cutu_reader::cutu_reader): Rename from
9389 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9390 and data parameters.
9391 (init_cutu_and_read_dies_simple): Remove.
9392 (struct process_psymtab_comp_unit_data): Remove.
9393 (process_psymtab_comp_unit_reader): Remove data parameter; add
9394 want_partial_unit and pretend_language parameters.
9395 (process_psymtab_comp_unit): Use cutu_reader.
9396 (build_type_psymtabs_reader): Remove data parameter.
9397 (build_type_psymtabs_1): Use cutu_reader.
9398 (process_skeletonless_type_unit): Likewise.
9399 (load_partial_comp_unit_reader): Remove.
9400 (load_partial_comp_unit): Use cutu_reader.
9401 (load_full_comp_unit_reader): Remove.
9402 (load_full_comp_unit): Use cutu_reader.
9403 (struct create_dwo_cu_data): Remove.
9404 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9405 dwo_unit parameters.
9406 (create_cus_hash_table): Use cutu_reader.
9407 (struct dwarf2_read_addr_index_data): Remove.
9408 (dwarf2_read_addr_index_reader): Remove.
9409 (dwarf2_read_addr_index): Use cutu_reader.
9410 (read_signatured_type_reader): Remove.
9411 (read_signatured_type): Use cutu_reader.
9412
45bbae5c
TT
94132020-01-19 Tom Tromey <tom@tromey.com>
9414
9415 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9416 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9417 (tui_wrefresh): Declare.
9418 * tui/tui-wingeneral.c (suppress_output): New global.
9419 (tui_suppress_output, ~tui_suppress_output): New constructor and
9420 destructor.
9421 (tui_wrefresh): New function.
9422 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9423 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9424 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9425 method.
9426 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9427 tui_wrefresh.
9428 (tui_data_window::no_refresh): New method.
9429 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9430 (tui_reg_command): Use tui_suppress_output
9431 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9432 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9433 method.
9434 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9435
4f13c1c0
TT
94362020-01-19 Tom Tromey <tom@tromey.com>
9437
9438 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9439 Handle case where symtab is null.
9440
fa47e446
SM
94412020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9442
9443 * linux-fork.c (one_fork_p): Simplify.
9444
26f42329
SM
94452020-01-17 Simon Marchi <simon.marchi@efficios.com>
9446
9447 * top.c (struct qt_args): Remove.
9448 (kill_or_detach): Change return type to void, replace `void *`
9449 parameter with a proper one.
9450 (print_inferior_quit_action): Likewise.
9451 (quit_confirm): Use range-based for loop to iterate over inferiors.
9452 (quit_force): Likewise.
9453
a9ac81b1
SM
94542020-01-17 Simon Marchi <simon.marchi@efficios.com>
9455
9456 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9457 `void *` parameter with proper parameters.
9458 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9459 (print_one_inferior): Change return type to void, replace `void *`
9460 parameter with proper parameters.
9461 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9462 inferiors.
9463 (get_other_inferior): Remove.
9464 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9465 inferiors.
9466
788eca49
SM
94672020-01-17 Simon Marchi <simon.marchi@efficios.com>
9468
9469 * mi/mi-interp.c (report_initial_inferior): Remove.
9470 (mi_interp::init): Use range-based for to iterate over inferiors.
9471
d9bc85b6
SM
94722020-01-17 Simon Marchi <simon.marchi@efficios.com>
9473
9474 * python/py-inferior.c (build_inferior_list): Remove.
9475 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9476
40c94099
CB
94772020-01-16 Christian Biesinger <cbiesinger@google.com>
9478
9479 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9480 (btrace_stitch_trace): Likewise.
9481 * charset.c (intermediate_encoding): Likewise (vaild).
9482 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9483 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9484 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9485
e0cdfe3c
HD
94862020-01-16 Hannes Domani <ssbssa@yahoo.de>
9487
9488 * windows-tdep.c (windows_get_tlb_type):
9489 Add rtl_user_process_parameters type.
9490
790f1718 94912020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9492 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9493
9494 PR build/24805
9495 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9496 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9497 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9498 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9499 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9500 (ps_plog): Redeclare exported functions with default visibility.
9501
3112ed97
NA
95022020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9503
9504 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9505 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9506
8dc3273e
SM
95072020-01-15 Simon Marchi <simon.marchi@efficios.com>
9508
9509 * infcmd.c (post_create_inferior): Use get_thread_regcache
9510 instead of get_current_regcache.
9511
ff47f4f0
TT
95122020-01-14 Tom Tromey <tom@tromey.com>
9513
9514 PR symtab/12535:
9515 * python/python.c (gdbpy_decode_line): Treat empty string the same
9516 as no argument.
9517
975f45b7
TT
95182020-01-14 Tom Tromey <tom@tromey.com>
9519
9520 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9521
25e57356
TT
95222020-01-14 Tom Tromey <tom@tromey.com>
9523
9524 * nat/linux-btrace.c: Don't include <config.h>.
9525 * nat/linux-ptrace.c: Don't include <config.h>.
9526 * nat/x86-linux-dregs.c: Don't include <config.h>.
9527
05ea2a05
TT
95282020-01-14 Tom Tromey <tom@tromey.com>
9529
9530 * configure: Rebuild.
9531 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9532
01027315
TT
95332020-01-14 Tom Tromey <tom@tromey.com>
9534
9535 * nat/x86-linux-dregs.c: Include configh.h.
9536 * nat/linux-ptrace.c: Include configh.h.
9537 * nat/linux-btrace.c: Include configh.h.
9538 * defs.h: Include config.h, bfd.h.
9539 * configure.ac: Don't source common.host.
9540 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9541 * configure: Rebuild.
9542 * acinclude.m4: Update path.
9543 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9544 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9545 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9546 (CLIBS): Add LIBSUPPORT.
9547 (CDEPS): Likewise.
9548 (COMMON_SFILES): Remove gdbsupport files.
9549 (HFILES_NO_SRCDIR): Likewise.
9550 (stamp-version): Update path to create-version.sh.
9551 (ALLDEPFILES): Remove gdbsupport files.
9552
b2ceabe8
TT
95532020-01-14 Tom Tromey <tom@tromey.com>
9554
9555 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9556 USE_WIN32API when needed.
9557 * configure.ac (USE_WIN32API): Don't define.
9558 (WIN32LIBS): Use WIN32APILIBS.
9559 * configure: Rebuild.
9560
25c51f71
TT
95612020-01-14 Tom Tromey <tom@tromey.com>
9562
9563 * configure: Rebuild.
9564 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9565
717c684d
BE
95662020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9567
9568 * skip.c (skip_function_command): Make skip w/o arguments use the
9569 name of the inlined function if pc is inside any inlined function.
9570
7da6a5b9
LM
95712020-01-14 Luis Machado <luis.machado@linaro.org>
9572
9573 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9574 * infrun.c (resume_1): Likewise.
9575 (handle_inferior_event): Remove stale comment.
9576 * linux-nat.c (linux_nat_target::resume): Update comments.
9577 (save_stop_reason): Likewise.
9578 (linux_nat_filter_event): Likewise.
9579 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9580
44e4c775
AB
95812020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9582
9583 * elfread.c (record_minimal_symbol): Set section index to 0 for
9584 non-allocatable sections.
9585
18a8505e
AT
9586
95872020-01-13 Ali Tamur <tamur@google.com>
9588
9589 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9590 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9591 to gdb::optional. Update comments.
9592 (dwo_file): Update comments.
9593 (read_attribute): Update API to take an additional out parameter,
9594 need_reprocess. This is used to mark attributes that need other
9595 attributes (e.g. str_offsets_base) for correct computation which may not
9596 have been read yet.
9597 (read_attribute_reprocess): New function declaration.
9598 (read_addr_index): Likewise.
9599 (read_dwo_str_index): Likewise.
9600 (read_stub_str_index): Likewise.
9601 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9602 (lookup_addr_base): New function definition.
9603 (lookup_ranges_base): Likewise.
9604 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9605 lookup_ranges_base.
9606 (init_cutu_and_read_dies): Update comments.
9607 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9608 unit. This is used to inherit parent's str_offsets_base and addr_base.
9609 Update comments.
9610 (init_cutu_and_read_dies_simple): Reflect API changes.
9611 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9612 (create_cus_hash_table): Change API to take parent compile unit.
9613 Reflect API changes.
9614 (open_and_init_dwo_file): Reflect API changes.
9615 (dwarf2_get_pc_bounds): Update comments.
9616 (dwarf2_record_block_ranges): Likewise.
9617 (read_full_die_1): Change implementation to reprocess attributes that
9618 need str_offsets_base and addr_base.
9619 (partial_die_info::read): Likewise.
9620 (read_attribute_reprocess): New function definition.
9621 (read_attribute_value): Change API to take an additional out parameter,
9622 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9623 when a non-dwo compile unit has index based attributes.
9624 (read_attribute): Reflect API changes.
9625 (read_addr_index_1): Reflect API changes. Update comments.
9626 (dwarf2_read_addr_index_data): Reflect API changes.
9627 (dwarf2_read_addr_index): Likewise.
9628 (read_str_index): Change API and implementation. This becomes a helper
9629 to be used by the new string index related methods. Update error
9630 message and comments.
9631 (read_dwo_str_index): New function definition.
9632 (read_stub_str_index): Likewise.
9633 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9634 * symfile.h (dwarf2_debug_sections): Likewise.
9635 * xcoffread.c (dwarf2_debug_sections): Likewise.
9636
0cac9354
SM
96372020-01-13 Simon Marchi <simon.marchi@efficios.com>
9638
9639 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9640 core_reg_sect type to gdb_byte *.
9641 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9642 * cris-tdep.c (fetch_core_registers): Likewise.
9643 * corelow.c (core_target::get_core_register_section): Change
9644 type of `contents` to gdb::byte_vector.
9645
9a6d629c
AB
96462020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9647
9648 * tui/tui-wingeneral.c (box_win): Position the title in the center
9649 of the border.
9650
d8b2f9e3
SM
96512020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9652
9653 * corelow.c (core_target::get_core_register_section): Use
9654 std::vector instead of alloca.
9655
bb564c58
SM
96562020-01-13 Simon Marchi <simon.marchi@efficios.com>
9657
9658 * warning.m4: Add -Wmissing-declarations to build_warnings.
9659 * configure: Re-generate.
9660
6b366111
SM
96612020-01-13 Simon Marchi <simon.marchi@efficios.com>
9662
9663 * python/python.c (init__gdb_module): Add declaration.
9664
6c265988
SM
96652020-01-13 Simon Marchi <simon.marchi@efficios.com>
9666
9667 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9668 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9669 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9670 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9671 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9672 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9673 * ada-exp.y (_initialize_ada_exp): Add declaration.
9674 * ada-lang.c (_initialize_ada_language): Add declaration.
9675 * ada-tasks.c (_initialize_tasks): Add declaration.
9676 * agent.c (_initialize_agent): Add declaration.
9677 * aix-thread.c (_initialize_aix_thread): Add declaration.
9678 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9679 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9680 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9681 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9682 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9683 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9684 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9685 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9686 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9687 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9688 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9689 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9690 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9691 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9692 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9693 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9694 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9695 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9696 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9697 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9698 * annotate.c (_initialize_annotate): Add declaration.
9699 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9700 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9701 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9702 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9703 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9704 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9705 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9706 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9707 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9708 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9709 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9710 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9711 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9712 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9713 * auto-load.c (_initialize_auto_load): Add declaration.
9714 * auxv.c (_initialize_auxv): Add declaration.
9715 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9716 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9717 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9718 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9719 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9720 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9721 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9722 * breakpoint.c (_initialize_breakpoint): Add declaration.
9723 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9724 * btrace.c (_initialize_btrace): Add declaration.
9725 * charset.c (_initialize_charset): Add declaration.
9726 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9727 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9728 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9729 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9730 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9731 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9732 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9733 * coffread.c (_initialize_coffread): Add declaration.
9734 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9735 * compile/compile.c (_initialize_compile): Add declaration.
9736 * complaints.c (_initialize_complaints): Add declaration.
9737 * completer.c (_initialize_completer): Add declaration.
9738 * copying.c (_initialize_copying): Add declaration.
9739 * corefile.c (_initialize_core): Add declaration.
9740 * corelow.c (_initialize_corelow): Add declaration.
9741 * cp-abi.c (_initialize_cp_abi): Add declaration.
9742 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9743 * cp-support.c (_initialize_cp_support): Add declaration.
9744 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9745 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9746 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9747 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9748 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9749 * ctfread.c (_initialize_ctfread): Add declaration.
9750 * d-lang.c (_initialize_d_language): Add declaration.
9751 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9752 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9753 * dbxread.c (_initialize_dbxread): Add declaration.
9754 * dcache.c (_initialize_dcache): Add declaration.
9755 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9756 * disasm.c (_initialize_disasm): Add declaration.
9757 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9758 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9759 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9760 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9761 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9762 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9763 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9764 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9765 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9766 * elfread.c (_initialize_elfread): Add declaration.
9767 * exec.c (_initialize_exec): Add declaration.
9768 * extension.c (_initialize_extension): Add declaration.
9769 * f-lang.c (_initialize_f_language): Add declaration.
9770 * f-valprint.c (_initialize_f_valprint): Add declaration.
9771 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9772 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9773 * filesystem.c (_initialize_filesystem): Add declaration.
9774 * findcmd.c (_initialize_mem_search): Add declaration.
9775 * findvar.c (_initialize_findvar): Add declaration.
9776 * fork-child.c (_initialize_fork_child): Add declaration.
9777 * frame-base.c (_initialize_frame_base): Add declaration.
9778 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9779 * frame.c (_initialize_frame): Add declaration.
9780 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9781 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9782 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9783 * gcore.c (_initialize_gcore): Add declaration.
9784 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9785 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9786 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9787 * gdbarch.c (_initialize_gdbarch): Add declaration.
9788 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9789 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9790 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9791 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9792 * go-lang.c (_initialize_go_language): Add declaration.
9793 * go32-nat.c (_initialize_go32_nat): Add declaration.
9794 * guile/guile.c (_initialize_guile): Add declaration.
9795 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9796 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9797 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9798 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9799 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9800 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9801 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9802 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9803 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9804 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9805 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9806 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9807 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9808 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9809 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9810 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9811 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9812 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9813 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9814 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9815 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9816 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9817 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9818 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9819 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9820 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9821 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9822 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9823 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9824 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9825 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9826 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9827 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9828 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9829 * infcall.c (_initialize_infcall): Add declaration.
9830 * infcmd.c (_initialize_infcmd): Add declaration.
9831 * inflow.c (_initialize_inflow): Add declaration.
9832 * infrun.c (_initialize_infrun): Add declaration.
9833 * interps.c (_initialize_interpreter): Add declaration.
9834 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9835 * jit.c (_initialize_jit): Add declaration.
9836 * language.c (_initialize_language): Add declaration.
9837 * linux-fork.c (_initialize_linux_fork): Add declaration.
9838 * linux-nat.c (_initialize_linux_nat): Add declaration.
9839 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9840 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9841 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9842 * m2-lang.c (_initialize_m2_language): Add declaration.
9843 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9844 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9845 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9846 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9847 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9848 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9849 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9850 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9851 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9852 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9853 * machoread.c (_initialize_machoread): Add declaration.
9854 * macrocmd.c (_initialize_macrocmd): Add declaration.
9855 * macroscope.c (_initialize_macroscope): Add declaration.
9856 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9857 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9858 * maint.c (_initialize_maint_cmds): Add declaration.
9859 * mdebugread.c (_initialize_mdebugread): Add declaration.
9860 * memattr.c (_initialize_mem): Add declaration.
9861 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9862 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9863 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9864 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9865 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9866 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9867 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9868 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9869 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9870 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9871 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9872 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9873 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9874 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9875 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9876 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9877 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9878 * mipsread.c (_initialize_mipsread): Add declaration.
9879 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9880 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9881 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9882 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9883 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9884 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9885 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9886 * nto-procfs.c (_initialize_procfs): Add declaration.
9887 * objc-lang.c (_initialize_objc_language): Add declaration.
9888 * observable.c (_initialize_observer): Add declaration.
9889 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9890 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9891 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9892 * osabi.c (_initialize_gdb_osabi): Add declaration.
9893 * osdata.c (_initialize_osdata): Add declaration.
9894 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9895 * parse.c (_initialize_parse): Add declaration.
9896 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9897 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9898 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9899 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9900 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9901 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9902 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9903 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9904 * printcmd.c (_initialize_printcmd): Add declaration.
9905 * probe.c (_initialize_probe): Add declaration.
9906 * proc-api.c (_initialize_proc_api): Add declaration.
9907 * proc-events.c (_initialize_proc_events): Add declaration.
9908 * proc-service.c (_initialize_proc_service): Add declaration.
9909 * procfs.c (_initialize_procfs): Add declaration.
9910 * producer.c (_initialize_producer): Add declaration.
9911 * psymtab.c (_initialize_psymtab): Add declaration.
9912 * python/python.c (_initialize_python): Add declaration.
9913 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9914 * record-btrace.c (_initialize_record_btrace): Add declaration.
9915 * record-full.c (_initialize_record_full): Add declaration.
9916 * record.c (_initialize_record): Add declaration.
9917 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9918 * regcache.c (_initialize_regcache): Add declaration.
9919 * reggroups.c (_initialize_reggroup): Add declaration.
9920 * remote-notif.c (_initialize_notif): Add declaration.
9921 * remote-sim.c (_initialize_remote_sim): Add declaration.
9922 * remote.c (_initialize_remote): Add declaration.
9923 * reverse.c (_initialize_reverse): Add declaration.
9924 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9925 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9926 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9927 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9928 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9929 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9930 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9931 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9932 Add declaration.
9933 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9934 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9935 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9936 * rust-exp.y (_initialize_rust_exp): Add declaration.
9937 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9938 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9939 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9940 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9941 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9942 * score-tdep.c (_initialize_score_tdep): Add declaration.
9943 * ser-go32.c (_initialize_ser_dos): Add declaration.
9944 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9945 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9946 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9947 * ser-uds.c (_initialize_ser_socket): Add declaration.
9948 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9949 * serial.c (_initialize_serial): Add declaration.
9950 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9951 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9952 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9953 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9954 * skip.c (_initialize_step_skip): Add declaration.
9955 * sol-thread.c (_initialize_sol_thread): Add declaration.
9956 * solib-aix.c (_initialize_solib_aix): Add declaration.
9957 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9958 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9959 * solib-frv.c (_initialize_frv_solib): Add declaration.
9960 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9961 * solib-target.c (_initialize_solib_target): Add declaration.
9962 * solib.c (_initialize_solib): Add declaration.
9963 * source-cache.c (_initialize_source_cache): Add declaration.
9964 * source.c (_initialize_source): Add declaration.
9965 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9966 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9967 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9968 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9969 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9970 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9971 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9972 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9973 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9974 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9975 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9976 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9977 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9978 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9979 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9980 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9981 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9982 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9983 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9984 * stabsread.c (_initialize_stabsread): Add declaration.
9985 * stack.c (_initialize_stack): Add declaration.
9986 * stap-probe.c (_initialize_stap_probe): Add declaration.
9987 * std-regs.c (_initialize_frame_reg): Add declaration.
9988 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9989 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9990 * symfile.c (_initialize_symfile): Add declaration.
9991 * symmisc.c (_initialize_symmisc): Add declaration.
9992 * symtab.c (_initialize_symtab): Add declaration.
9993 * target.c (_initialize_target): Add declaration.
9994 * target-connection.c (_initialize_target_connection): Add
9995 declaration.
9996 * target-dcache.c (_initialize_target_dcache): Add declaration.
9997 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9998 * thread.c (_initialize_thread): Add declaration.
9999 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10000 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10001 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10002 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10003 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10004 * tracectf.c (_initialize_ctf): Add declaration.
10005 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10006 * tracefile.c (_initialize_tracefile): Add declaration.
10007 * tracepoint.c (_initialize_tracepoint): Add declaration.
10008 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10009 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10010 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10011 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10012 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10013 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10014 * tui/tui.c (_initialize_tui): Add declaration.
10015 * typeprint.c (_initialize_typeprint): Add declaration.
10016 * ui-style.c (_initialize_ui_style): Add declaration.
10017 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10018 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10019 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10020 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10021 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10022 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10023 * unittests/filtered_iterator-selftests.c
10024 (_initialize_filtered_iterator_selftests): Add declaration.
10025 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10026 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10027 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10028 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10029 * unittests/main-thread-selftests.c
10030 (_initialize_main_thread_selftests): Add declaration.
10031 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10032 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10033 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10034 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10035 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10036 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10037 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10038 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10039 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10040 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10041 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10042 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10043 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10044 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10045 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10046 declaration.
10047 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10048 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10049 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10050 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10051 * user-regs.c (_initialize_user_regs): Add declaration.
10052 * utils.c (_initialize_utils): Add declaration.
10053 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10054 * valops.c (_initialize_valops): Add declaration.
10055 * valprint.c (_initialize_valprint): Add declaration.
10056 * value.c (_initialize_values): Add declaration.
10057 * varobj.c (_initialize_varobj): Add declaration.
10058 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10059 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10060 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10061 * windows-nat.c (_initialize_windows_nat): Add declaration.
10062 (_initialize_check_for_gdb_ini): Add declaration.
10063 (_initialize_loadable): Add declaration.
10064 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10065 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10066 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10067 * xcoffread.c (_initialize_xcoffread): Add declaration.
10068 * xml-support.c (_initialize_xml_support): Add declaration.
10069 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10070 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10071 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10072 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10073
e2de1eec
SM
100742020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10075
10076 * regformats/regdat.sh: Generate declaration for init function.
10077
e0037b4c
SM
100782020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10079
10080 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10081 up.
10082 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10083 close_one_inferior>: New methods.
10084 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10085 pass down target to find_inferior_pid.
10086 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10087 Pass down target to find_inferior_ptid.
10088 (gdbsim_target::create_inferior): Pass down target to
10089 add_thread_silent.
10090 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10091 target down to find_inferior_ptid and switch_to_thread.
10092 (gdbsim_target::close): Update to call close_one_inferior.
10093 (struct resume_data): Remove.
10094 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10095 directly, rather than through a void pointer.
10096 (gdbsim_target::resume): Update to call resume_one_inferior.
10097
58920b5b
SM
100982020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10099
10100 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10101
4ec89149
PA
101022020-01-12 Pedro Alves <palves@redhat.com>
10103
10104 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10105 directly for the current inferior instead of
10106 discard_all_inferiors.
10107 (discard_all_inferiors): Delete.
10108
7c392d1d
TT
101092020-01-11 Tom Tromey <tom@tromey.com>
10110
10111 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10112 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10113 deprecated_safe_get_selected_frame.
10114
d9ebdab7
TBA
101152020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10116
10117 * inferior.c (print_inferior): Switch inferior before printing it.
10118
f3c469b9
PA
101192020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10120 Pedro Alves <palves@redhat.com>
10121
10122 * progspace-and-thread.c (switch_to_program_space_and_thread):
10123 Assert there's an inferior for PSPACE. Use
10124 switch_to_inferior_no_thread to switch the inferior too.
10125 * progspace.c (program_space::~program_space): Call
10126 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10127 (program_space::free_all_objfiles): Don't call clear_symtab_users
10128 here.
10129 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10130
65c574f6
PA
101312020-01-10 Pedro Alves <palves@redhat.com>
10132
10133 * NEWS: Mention multi-target debugging, "info connections", and
10134 "add-inferior -no-connection".
10135
2f4fcf00
PA
101362020-01-10 Pedro Alves <palves@redhat.com>
10137
10138 * infrun.c: Include "target-connection.h".
10139 (check_multi_target_resumption): New.
10140 (proceed): Call it.
10141 * target-connection.c (make_target_connection_string): Make
10142 extern.
10143 * target-connection.h (make_target_connection_string): Declare.
10144
121b3efd
PA
101452020-01-10 Pedro Alves <palves@redhat.com>
10146
10147 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10148 * inferior.c (uiout_field_connection): New function.
10149 (print_inferior): Add new "connection-id" column.
10150 (add_inferior_command): Show connection number/string of added
10151 inferior.
10152 * process-stratum-target.h
10153 (process_stratum_target::connection_string): New virtual method.
10154 (process_stratum_target::connection_number): New field.
10155 * remote.c (remote_target::connection_string): New override.
10156 * target-connection.c: New file.
10157 * target-connection.h: New file.
10158 * target.c (decref_target): Remove process_stratum targets from
10159 the connection list.
10160 (target_stack::push): Add process_stratum targets to the
10161 connection list.
10162
4f837581
PA
101632020-01-10 Pedro Alves <palves@redhat.com>
10164
10165 Revert:
10166 2016-04-12 Pedro Alves <palves@redhat.com>
10167 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10168 Remove references to name.
10169 * serial.h (struct serial) <name>: Delete.
10170
f4ec508e
PA
101712020-01-10 Pedro Alves <palves@redhat.com>
10172
10173 * gdbarch-selftests.c (register_to_value_test): Remove "target
10174 already pushed" check.
10175
5b6d1e4f
PA
101762020-01-10 Pedro Alves <palves@redhat.com>
10177 John Baldwin <jhb@FreeBSD.org>
10178
10179 * aarch64-linux-nat.c
10180 (aarch64_linux_nat_target::thread_architecture): Adjust.
10181 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10182 (task_command_1): Likewise.
10183 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10184 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10185 (aix_thread_target::store_registers)
10186 (aix_thread_target::thread_alive): Adjust.
10187 * amd64-fbsd-tdep.c: Include "inferior.h".
10188 (amd64fbsd_get_thread_local_address): Pass down target.
10189 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10190 thread's gdbarch instead of target_gdbarch.
10191 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10192 get_last_target_status.
10193 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10194 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10195 inferiors.
10196 (update_inserted_breakpoint_locations): Skip if inferiors with no
10197 execution.
10198 (update_global_location_list): When handling moribund locations,
10199 find representative inferior for location's pspace, and use thread
10200 count of its process_stratum target.
10201 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10202 * bsd-uthread.c (bsd_uthread_target::wait): Use
10203 as_process_stratum_target and adjust thread_change_ptid and
10204 add_thread calls.
10205 (bsd_uthread_target::update_thread_list): Use
10206 as_process_stratum_target and adjust find_thread_ptid,
10207 thread_change_ptid and add_thread calls.
10208 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10209 find_thread_ptid call.
10210 * corelow.c (add_to_thread_list): Adjust add_thread call.
10211 (core_target_open): Adjust add_thread_silent and thread_count
10212 calls.
10213 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10214 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10215 * event-top.c (async_disconnect): Pop targets from all inferiors.
10216 * exec.c (add_target_sections): Push exec target on all inferiors
10217 sharing the program space.
10218 (remove_target_sections): Remove the exec target from all
10219 inferiors sharing the program space.
10220 (exec_on_vfork): New.
10221 * exec.h (exec_on_vfork): Declare.
10222 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10223 Pass it down.
10224 (fbsd_nat_target::update_thread_list): Adjust.
10225 (fbsd_nat_target::resume): Adjust.
10226 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10227 down.
10228 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10229 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10230 get_thread_arch_regcache call.
10231 * fork-child.c (gdb_startup_inferior): Pass target down to
10232 startup_inferior and set_executing.
10233 * gdbthread.h (struct process_stratum_target): Forward declare.
10234 (add_thread, add_thread_silent, add_thread_with_info)
10235 (in_thread_list): Add process_stratum_target parameter.
10236 (find_thread_ptid(inferior*, ptid_t)): New overload.
10237 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10238 parameter.
10239 (all_threads()): Delete overload.
10240 (all_threads, all_non_exited_threads): Add process_stratum_target
10241 parameter.
10242 (all_threads_safe): Use brace initialization.
10243 (thread_count): Add process_stratum_target parameter.
10244 (set_resumed, set_running, set_stop_requested, set_executing)
10245 (threads_are_executing, finish_thread_state): Add
10246 process_stratum_target parameter.
10247 (switch_to_thread): Use is_current_thread.
10248 * i386-fbsd-tdep.c: Include "inferior.h".
10249 (i386fbsd_get_thread_local_address): Pass down target.
10250 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10251 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10252 have_inferiors check.
10253 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10254 (inf_ptrace_target::attach): Adjust.
10255 * infcall.c (run_inferior_call): Adjust.
10256 * infcmd.c (run_command_1): Pass target to
10257 scoped_finish_thread_state.
10258 (proceed_thread_callback): Skip inferiors with no execution.
10259 (continue_command): Rename 'all_threads' local to avoid hiding
10260 'all_threads' function. Adjust get_last_target_status call.
10261 (prepare_one_step): Adjust set_running call.
10262 (signal_command): Use user_visible_resume_target. Compare thread
10263 pointers instead of inferior_ptid.
10264 (info_program_command): Adjust to pass down target.
10265 (attach_command): Mark target's 'thread_executing' flag.
10266 (stop_current_target_threads_ns): New, factored out from ...
10267 (interrupt_target_1): ... this. Switch inferior before making
10268 target calls.
10269 * inferior-iter.h
10270 (struct all_inferiors_iterator, struct all_inferiors_range)
10271 (struct all_inferiors_safe_range)
10272 (struct all_non_exited_inferiors_range): Filter on
10273 process_stratum_target too. Remove explicit.
10274 * inferior.c (inferior::inferior): Push dummy target on target
10275 stack.
10276 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10277 Add process_stratum_target parameter, and pass it down.
10278 (have_live_inferiors): Adjust.
10279 (switch_to_inferior_and_push_target): New.
10280 (add_inferior_command, clone_inferior_command): Handle
10281 "-no-connection" parameter. Use
10282 switch_to_inferior_and_push_target.
10283 (_initialize_inferior): Mention "-no-connection" option in
10284 the help of "add-inferior" and "clone-inferior" commands.
10285 * inferior.h: Include "process-stratum-target.h".
10286 (interrupt_target_1): Use bool.
10287 (struct inferior) <push_target, unpush_target, target_is_pushed,
10288 find_target_beneath, top_target, process_target, target_at,
10289 m_stack>: New.
10290 (discard_all_inferiors): Delete.
10291 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10292 (all_inferiors, all_non_exited_inferiors): Add
10293 process_stratum_target parameter.
10294 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10295 (target_last_proc_target): New global.
10296 (follow_fork_inferior): Push target on new inferior. Pass target
10297 to add_thread_silent. Call exec_on_vfork. Handle target's
10298 reference count.
10299 (follow_fork): Adjust get_last_target_status call. Also consider
10300 target.
10301 (follow_exec): Push target on new inferior.
10302 (struct execution_control_state) <target>: New field.
10303 (user_visible_resume_target): New.
10304 (do_target_resume): Call target_async.
10305 (resume_1): Set target's threads_executing flag. Consider resume
10306 target.
10307 (commit_resume_all_targets): New.
10308 (proceed): Also consider resume target. Skip threads of inferiors
10309 with no execution. Commit resumtion in all targets.
10310 (start_remote): Pass current inferior to wait_for_inferior.
10311 (infrun_thread_stop_requested): Consider target as well. Pass
10312 thread_info pointer to clear_inline_frame_state instead of ptid.
10313 (infrun_thread_thread_exit): Consider target as well.
10314 (random_pending_event_thread): New inferior parameter. Use it.
10315 (do_target_wait): Rename to ...
10316 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10317 down.
10318 (threads_are_resumed_pending_p, do_target_wait): New.
10319 (prepare_for_detach): Adjust calls.
10320 (wait_for_inferior): New inferior parameter. Handle it. Use
10321 do_target_wait_1 instead of do_target_wait.
10322 (fetch_inferior_event): Adjust. Switch to representative
10323 inferior. Pass target down.
10324 (set_last_target_status): Add process_stratum_target parameter.
10325 Save target in global.
10326 (get_last_target_status): Add process_stratum_target parameter and
10327 handle it.
10328 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10329 (context_switch): Check inferior_ptid == null_ptid before calling
10330 inferior_thread().
10331 (get_inferior_stop_soon): Pass down target.
10332 (wait_one): Rename to ...
10333 (poll_one_curr_target): ... this.
10334 (struct wait_one_event): New.
10335 (wait_one): New.
10336 (stop_all_threads): Adjust.
10337 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10338 event's target.
10339 (switch_back_to_stepped_thread): Also consider target.
10340 (print_stop_event): Update.
10341 (normal_stop): Update. Also consider the resume target.
10342 * infrun.h (wait_for_inferior): Remove declaration.
10343 (user_visible_resume_target): New declaration.
10344 (get_last_target_status, set_last_target_status): New
10345 process_stratum_target parameter.
10346 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10347 process_stratum_target parameter, and use it.
10348 (clear_inline_frame_state (thread_info*)): New.
10349 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10350 process_stratum_target parameter.
10351 (clear_inline_frame_state (thread_info*)): Declare.
10352 * linux-fork.c (delete_checkpoint_command): Pass target down to
10353 find_thread_ptid.
10354 (checkpoint_command): Adjust.
10355 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10356 instead of just tweaking inferior_ptid.
10357 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10358 (exit_lwp): Pass target down to find_thread_ptid.
10359 (attach_proc_task_lwp_callback): Pass target down to
10360 add_thread/set_running/set_executing.
10361 (linux_nat_target::attach): Pass target down to
10362 thread_change_ptid.
10363 (get_detach_signal): Pass target down to find_thread_ptid.
10364 Consider last target status's target.
10365 (linux_resume_one_lwp_throw, resume_lwp)
10366 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10367 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10368 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10369 (linux_nat_target::async_wait_fd): New.
10370 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10371 target down.
10372 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10373 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10374 * linux-thread-db.c (struct thread_db_info::process_target): New
10375 field.
10376 (add_thread_db_info): Save target.
10377 (get_thread_db_info): New process_stratum_target parameter. Also
10378 match target.
10379 (delete_thread_db_info): New process_stratum_target parameter.
10380 Also match target.
10381 (thread_from_lwp): Adjust to pass down target.
10382 (thread_db_notice_clone): Pass down target.
10383 (check_thread_db_callback): Pass down target.
10384 (try_thread_db_load_1): Always push the thread_db target.
10385 (try_thread_db_load, record_thread): Pass target down.
10386 (thread_db_target::detach): Pass target down. Always unpush the
10387 thread_db target.
10388 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10389 target down. Always unpush the thread_db target.
10390 (find_new_threads_callback, thread_db_find_new_threads_2)
10391 (thread_db_target::update_thread_list): Pass target down.
10392 (thread_db_target::pid_to_str): Pass current inferior down.
10393 (thread_db_target::get_thread_local_address): Pass target down.
10394 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10395 target down.
10396 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10397 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10398 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10399 (procfs_init_inferior): Rename to ...
10400 (procfs_target::procfs_init_inferior): ... this and adjust.
10401 (procfs_target::create_inferior, procfs_notice_thread)
10402 (procfs_do_thread_registers): Adjust.
10403 * ppc-fbsd-tdep.c: Include "inferior.h".
10404 (ppcfbsd_get_thread_local_address): Pass down target.
10405 * proc-service.c (ps_xfer_memory): Switch current inferior and
10406 program space as well.
10407 (get_ps_regcache): Pass target down.
10408 * process-stratum-target.c
10409 (process_stratum_target::thread_address_space)
10410 (process_stratum_target::thread_architecture): Pass target down.
10411 * process-stratum-target.h
10412 (process_stratum_target::threads_executing): New field.
10413 (as_process_stratum_target): New.
10414 * ravenscar-thread.c
10415 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10416 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10417 down.
10418 * record-btrace.c (record_btrace_target::info_record): Adjust.
10419 (record_btrace_target::record_method)
10420 (record_btrace_target::record_is_replaying)
10421 (record_btrace_target::fetch_registers)
10422 (get_thread_current_frame_id, record_btrace_target::resume)
10423 (record_btrace_target::wait, record_btrace_target::stop): Pass
10424 target down.
10425 * record-full.c (record_full_wait_1): Switch to event thread.
10426 Pass target down.
10427 * regcache.c (regcache::regcache)
10428 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10429 process_stratum_target parameter and handle it.
10430 (current_thread_target): New global.
10431 (get_thread_regcache): Add process_stratum_target parameter and
10432 handle it. Switch inferior before calling target method.
10433 (get_thread_regcache): Pass target down.
10434 (get_thread_regcache_for_ptid): Pass target down.
10435 (registers_changed_ptid): Add process_stratum_target parameter and
10436 handle it.
10437 (registers_changed_thread, registers_changed): Pass target down.
10438 (test_get_thread_arch_aspace_regcache): New.
10439 (current_regcache_test): Define a couple local test_target_ops
10440 instances and use them for testing.
10441 (readwrite_regcache): Pass process_stratum_target parameter.
10442 (cooked_read_test, cooked_write_test): Pass mock_target down.
10443 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10444 (get_thread_arch_aspace_regcache): Add process_stratum_target
10445 parameter.
10446 (regcache::target): New method.
10447 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10448 (regcache::registers_changed_ptid): Add process_stratum_target
10449 parameter.
10450 (regcache::m_target): New field.
10451 (registers_changed_ptid): Add process_stratum_target parameter.
10452 * remote.c (remote_state::supports_vCont_probed): New field.
10453 (remote_target::async_wait_fd): New method.
10454 (remote_unpush_and_throw): Add remote_target parameter.
10455 (get_current_remote_target): Adjust.
10456 (remote_target::remote_add_inferior): Push target.
10457 (remote_target::remote_add_thread)
10458 (remote_target::remote_notice_new_inferior)
10459 (get_remote_thread_info): Pass target down.
10460 (remote_target::update_thread_list): Skip threads of inferiors
10461 bound to other targets. (remote_target::close): Don't discard
10462 inferiors. (remote_target::add_current_inferior_and_thread)
10463 (remote_target::process_initial_stop_replies)
10464 (remote_target::start_remote)
10465 (remote_target::remote_serial_quit_handler): Pass down target.
10466 (remote_target::remote_unpush_target): New remote_target
10467 parameter. Unpush the target from all inferiors.
10468 (remote_target::remote_unpush_and_throw): New remote_target
10469 parameter. Pass it down.
10470 (remote_target::open_1): Check whether the current inferior has
10471 execution instead of checking whether any inferior is live. Pass
10472 target down.
10473 (remote_target::remote_detach_1): Pass down target. Use
10474 remote_unpush_target.
10475 (extended_remote_target::attach): Pass down target.
10476 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10477 (remote_target::append_resumption): Pass down target.
10478 (remote_target::append_pending_thread_resumptions)
10479 (remote_target::remote_resume_with_hc, remote_target::resume)
10480 (remote_target::commit_resume): Pass down target.
10481 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10482 (remote_target::interrupt_query)
10483 (remote_target::remove_new_fork_children)
10484 (remote_target::check_pending_events_prevent_wildcard_vcont)
10485 (remote_target::remote_parse_stop_reply)
10486 (remote_target::process_stop_reply): Pass down target.
10487 (first_remote_resumed_thread): New remote_target parameter. Pass
10488 it down.
10489 (remote_target::wait_as): Pass down target.
10490 (unpush_and_perror): New remote_target parameter. Pass it down.
10491 (remote_target::readchar, remote_target::remote_serial_write)
10492 (remote_target::getpkt_or_notif_sane_1)
10493 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10494 down target.
10495 (remote_target::mourn_inferior): Pass down target. Use
10496 remote_unpush_target.
10497 (remote_target::core_of_thread)
10498 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10499 (remote_target::pid_to_exec_file)
10500 (remote_target::thread_handle_to_thread_info): Pass down target.
10501 (remote_target::async_wait_fd): New.
10502 * riscv-fbsd-tdep.c: Include "inferior.h".
10503 (riscv_fbsd_get_thread_local_address): Pass down target.
10504 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10505 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10506 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10507 Adjust.
10508 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10509 * solib-svr4.c (enable_break): Pass down target.
10510 * spu-multiarch.c (parse_spufs_run): Pass down target.
10511 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10512 * target-delegates.c: Regenerate.
10513 * target.c (g_target_stack): Delete.
10514 (current_top_target): Return the current inferior's top target.
10515 (target_has_execution_1): Refer to the passed-in inferior's top
10516 target.
10517 (target_supports_terminal_ours): Check whether the initial
10518 inferior was already created.
10519 (decref_target): New.
10520 (target_stack::push): Incref/decref the target.
10521 (push_target, push_target, unpush_target): Adjust.
10522 (target_stack::unpush): Defref target.
10523 (target_is_pushed): Return bool. Adjust to refer to the current
10524 inferior's target stack.
10525 (dispose_inferior): Delete, and inline parts ...
10526 (target_preopen): ... here. Only dispose of the current inferior.
10527 (target_detach): Hold strong target reference while detaching.
10528 Pass target down.
10529 (target_thread_name): Add assertion.
10530 (target_resume): Pass down target.
10531 (target_ops::beneath, find_target_at): Adjust to refer to the
10532 current inferior's target stack.
10533 (get_dummy_target): New.
10534 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10535 has a thread running.
10536 (initialize_targets): Rename to ...
10537 (_initialize_target): ... this.
10538 * target.h: Include "gdbsupport/refcounted-object.h".
10539 (struct target_ops): Inherit refcounted_object.
10540 (target_ops::shortname, target_ops::longname): Make const.
10541 (target_ops::async_wait_fd): New method.
10542 (decref_target): Declare.
10543 (struct target_ops_ref_policy): New.
10544 (target_ops_ref): New typedef.
10545 (get_dummy_target): Declare function.
10546 (target_is_pushed): Return bool.
10547 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10548 (all_matching_threads_iterator::all_matching_threads_iterator):
10549 Handle filter target.
10550 * thread-iter.h (struct all_matching_threads_iterator, struct
10551 all_matching_threads_range, class all_non_exited_threads_range):
10552 Filter by target too. Remove explicit.
10553 * thread.c (threads_executing): Delete.
10554 (inferior_thread): Pass down current inferior.
10555 (clear_thread_inferior_resources): Pass down thread pointer
10556 instead of ptid_t.
10557 (add_thread_silent, add_thread_with_info, add_thread): Add
10558 process_stratum_target parameter. Use it for thread and inferior
10559 searches.
10560 (is_current_thread): New.
10561 (thread_info::deletable): Use it.
10562 (find_thread_ptid, thread_count, in_thread_list)
10563 (thread_change_ptid, set_resumed, set_running): New
10564 process_stratum_target parameter. Pass it down.
10565 (set_executing): New process_stratum_target parameter. Pass it
10566 down. Adjust reference to 'threads_executing'.
10567 (threads_are_executing): New process_stratum_target parameter.
10568 Adjust reference to 'threads_executing'.
10569 (set_stop_requested, finish_thread_state): New
10570 process_stratum_target parameter. Pass it down.
10571 (switch_to_thread): Also match inferior.
10572 (switch_to_thread): New process_stratum_target parameter. Pass it
10573 down.
10574 (update_threads_executing): Reimplement.
10575 * top.c (quit_force): Pop targets from all inferior.
10576 (gdb_init): Don't call initialize_targets.
10577 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10578 Declare.
10579 (windows_add_thread, windows_delete_thread): Adjust.
10580 (get_windows_debug_event): Rename to ...
10581 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10582 * tracefile-tfile.c (tfile_target_open): Pass down target.
10583 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10584 Forward declare.
10585 (switch_to_thread): Add process_stratum_target parameter.
10586 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10587 parameter. Use it.
10588 (mi_on_resume): Pass target down.
10589 * nat/fork-inferior.c (startup_inferior): Add
10590 process_stratum_target parameter. Pass it down.
10591 * nat/fork-inferior.h (startup_inferior): Add
10592 process_stratum_target parameter.
10593 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10594
75c6c844
PA
105952020-01-10 Pedro Alves <palves@redhat.com>
10596
10597 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10598 directly. Instead find the first thread in the thread list and
10599 use switch_to_thread.
10600
78f2c40a
PA
106012020-01-10 Pedro Alves <palves@redhat.com>
10602
10603 * remote.c (remote_target::remote_add_inferior): Don't bind a
10604 process to the current inferior if the current inferior is already
10605 bound to a process.
10606
e7af6c70
TBA
106072020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10608 Pedro Alves <palves@redhat.com>
10609
10610 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10611 If no process is specified, return null_ptid instead of
10612 inferior_ptid.
10613 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10614 TARGET_WAITKIND_SIGNALLED with no pid.
10615
31ba933e
PA
106162020-01-10 Pedro Alves <palves@redhat.com>
10617
10618 * remote.c (first_remote_resumed_thread): New.
10619 (remote_target::wait_as): Use it as default event_ptid instead of
10620 inferior_ptid.
10621
735fc2ca
PA
106222020-01-10 Pedro Alves <palves@redhat.com>
10623
10624 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10625
c17e02e1
PA
106262020-01-10 Pedro Alves <palves@redhat.com>
10627
10628 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10629 not -1.
10630
ab1ddbcf
PA
106312020-01-10 Pedro Alves <palves@redhat.com>
10632
10633 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10634 ptid to get_last_target_status.
10635 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10636 ptid to get_last_target_status.
10637 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10638 get_last_target_status.
10639 (info_program_command): Don't pass a target_waitstatus to
10640 get_last_target_status.
10641 * infrun.c (init_wait_for_inferior): Use
10642 nullify_last_target_wait_ptid.
10643 (get_last_target_status): Handle nullptr arguments.
10644 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10645 (print_stop_event): Don't pass a ptid to get_last_target_status.
10646 (normal_stop): Don't pass a ptid to get_last_target_status.
10647 * infrun.h (get_last_target_status, set_last_target_status): Move
10648 comments here and update.
10649 (nullify_last_target_wait_ptid): Declare.
10650 * linux-fork.c (fork_load_infrun_state): Remove local extern
10651 declaration of nullify_last_target_wait_ptid.
10652 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10653 to get_last_target_status.
10654
f3f8ece4
PA
106552020-01-10 Pedro Alves <palves@redhat.com>
10656
10657 * gdbthread.h (scoped_restore_current_thread)
10658 <dont_restore, restore, m_dont_restore>: Declare.
10659 * thread.c (thread_alive): Add assertion. Return bool.
10660 (switch_to_thread_if_alive): New.
10661 (prune_threads): Switch inferior/thread.
10662 (print_thread_info_1): Switch thread before calling target methods.
10663 (scoped_restore_current_thread::restore): New, factored out from
10664 ...
10665 (scoped_restore_current_thread::~scoped_restore_current_thread):
10666 ... this.
10667 (scoped_restore_current_thread::scoped_restore_current_thread):
10668 Add assertion.
10669 (thread_apply_all_command, thread_select): Use
10670 switch_to_thread_if_alive.
10671 * infrun.c (proceed, restart_threads, handle_signal_stop)
10672 (switch_back_to_stepped_thread): Switch current thread before
10673 calling target methods.
10674
db2d40f7
PA
106752020-01-10 Pedro Alves <palves@redhat.com>
10676
10677 * inferior.c (switch_to_inferior_no_thread): New function,
10678 factored out from ...
10679 (inferior_command): ... here.
10680 * inferior.h (switch_to_inferior_no_thread): Declare.
10681 * mi/mi-main.c (run_one_inferior): Use
10682 switch_to_inferior_no_thread.
10683
bd420a2d
PA
106842020-01-10 Pedro Alves <palves@redhat.com>
10685
10686 * infcmd.c (kill_command): Remove dead code.
10687
ddf5db90
PA
106882020-01-10 Pedro Alves <palves@redhat.com>
10689
10690 * remote.c (remote_target::mourn_inferior): No longer check
10691 whether the target is running.
10692
5018ce90
PA
106932020-01-10 Pedro Alves <palves@redhat.com>
10694
10695 * corelow.c (core_target::has_execution): Change parameter type to
10696 inferior pointer.
10697 * inferior.c (number_of_live_inferiors): Use
10698 inferior::has_execution instead of target_has_execution_1.
10699 * inferior.h (inferior::has_execution): New.
10700 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10701 inferior::has_execution instead of target_has_execution_1.
10702 * process-stratum-target.c
10703 (process_stratum_target::has_execution): Change parameter type to
10704 inferior pointer. Check the inferior's PID instead of
10705 inferior_ptid.
10706 * process-stratum-target.h
10707 (process_stratum_target::has_execution): Change parameter type to
10708 inferior pointer.
10709 * record-full.c (record_full_core_target::has_execution): Change
10710 parameter type to inferior pointer.
10711 * target.c (target_has_execution_1): Change parameter type to
10712 inferior pointer.
10713 (target_has_execution_current): Adjust.
10714 * target.h (target_ops::has_execution): Change parameter type to
10715 inferior pointer.
10716 (target_has_execution_1): Change parameter type to inferior
10717 pointer. Change return type to bool.
10718 * tracefile.h (tracefile_target::has_execution): Change parameter
10719 type to inferior pointer.
10720
74375d18
PA
107212020-01-10 Pedro Alves <palves@redhat.com>
10722
10723 * exceptions.c (print_flush): Remove current_top_target() check.
10724
acdf84a6
PA
107252020-01-10 Pedro Alves <palves@redhat.com>
10726
10727 * remote.c (show_remote_exec_file): Show the current inferior's
10728 exec-file instead of the command variable's value.
10729
ec506636
PA
107302020-01-10 Pedro Alves <palves@redhat.com>
10731
10732 * record-full.c (record_full_resume_ptid): New global.
10733 (record_full_target::resume): Set it.
10734 (record_full_wait_1): Use record_full_resume_ptid instead of
10735 inferior_ptid.
10736
873657b9
PA
107372020-01-10 Pedro Alves <palves@redhat.com>
10738
10739 * gdbthread.h (scoped_restore_current_thread)
10740 <dont_restore, restore, m_dont_restore>: Declare.
10741 * thread.c (thread_alive): Add assertion. Return bool.
10742 (switch_to_thread_if_alive): New.
10743 (prune_threads): Switch inferior/thread.
10744 (print_thread_info_1): Switch thread before calling target methods.
10745 (scoped_restore_current_thread::restore): New, factored out from
10746 ...
10747 (scoped_restore_current_thread::~scoped_restore_current_thread):
10748 ... this.
10749 (scoped_restore_current_thread::scoped_restore_current_thread):
10750 Add assertion.
10751 (thread_apply_all_command, thread_select): Use
10752 switch_to_thread_if_alive.
10753
7f0ae84c
GB
107542020-01-10 George Barrett <bob@bob131.so>
10755
10756 * stap-probe.c (stap_modify_semaphore): Don't check for null
10757 semaphores.
10758 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10759 for null semaphores.
10760
f5a7c406
AB
107612020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10762
10763 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10764 all source windows, and maintain horizontal scroll status while
10765 doing so.
10766
9ae6bf64
TT
107672020-01-09 Tom Tromey <tom@tromey.com>
10768
10769 PR tui/18932:
10770 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10771 update_source_window, not print_source_lines.
10772
b2efe70c
AB
107732020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10774
10775 * tui/tui.c (tui_enable): Register tui hooks after calling
10776 tui_display_main.
10777
5f23a082
CB
107782020-01-09 Christian Biesinger <cbiesinger@google.com>
10779
10780 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10781
3061113b
SM
107822020-01-08 Simon Marchi <simon.marchi@efficios.com>
10783
10784 * thread.c (print_thread_info_1): Fix indentation.
10785
57d75002
CB
107862020-01-09 Christian Biesinger <cbiesinger@google.com>
10787
10788 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10789 unique_xmalloc_ptr outside the if to always free the demangled name.
10790
6a053cb1
TT
107912020-01-08 Tom Tromey <tromey@adacore.com>
10792
10793 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10794 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10795 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10796 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10797 Remove.
10798 (section_offsets): New typedef.
10799 * symtab.c (fixup_section, get_msymbol_address): Update.
10800 * symmisc.c (dump_msymbols): Update.
10801 * symfile.h (relative_addr_info_to_section_offsets)
10802 (symfile_map_offsets_to_segments): Update.
10803 * symfile.c (build_section_addr_info_from_objfile)
10804 (init_objfile_sect_indices): Update.
10805 (struct place_section_arg): Change type of "offsets".
10806 (place_section): Update.
10807 (relative_addr_info_to_section_offsets): Change type of
10808 "section_offsets". Remove "num_sections" parameter.
10809 (default_symfile_offsets, syms_from_objfile_1)
10810 (set_objfile_default_section_offset): Update.
10811 (reread_symbols): No need to preserve section offsets by hand.
10812 (symfile_map_offsets_to_segments): Change type of "offsets".
10813 * stap-probe.c (relocate_address): Update.
10814 * stabsread.h (process_one_symbol): Update.
10815 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10816 (solib_target_relocate_section_addresses): Update.
10817 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10818 Update.
10819 * solib-frv.c (frv_relocate_main_executable): Update.
10820 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10821 * solib-aix.c (solib_aix_get_section_offsets): Change return
10822 type.
10823 (solib_aix_solib_create_inferior_hook): Update.
10824 * remote.c (remote_target::get_offsets): Update.
10825 * psymtab.c (find_pc_sect_psymtab): Update.
10826 * psympriv.h (struct partial_symbol) <address, text_low,
10827 text_high>: Update.
10828 * objfiles.h (obj_section_offset): Update.
10829 (struct objfile) <section_offsets>: Change type.
10830 <num_sections>: Remove.
10831 (objfile_relocate): Update.
10832 * objfiles.c (entry_point_address_query): Update
10833 (relocate_one_symbol): Change type of "section_offsets".
10834 (objfile_relocate1, objfile_relocate1): Change type of
10835 "new_offsets".
10836 (objfile_rebase1): Update.
10837 * mipsread.c (mipscoff_symfile_read): Update.
10838 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10839 parameter.
10840 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10841 (parse_external, psymtab_to_symtab_1): Update.
10842 * machoread.c (macho_symfile_offsets): Update.
10843 * ia64-tdep.c (ia64_find_unwind_table): Update.
10844 * hppa-tdep.c (read_unwind_info): Update.
10845 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10846 * dwarf2read.c (create_addrmap_from_index)
10847 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10848 (process_psymtab_comp_unit_reader, add_partial_symbol)
10849 (add_partial_subprogram, process_full_comp_unit)
10850 (read_file_scope, read_func_scope, read_lexical_block_scope)
10851 (read_call_site_scope, dwarf2_rnglists_process)
10852 (dwarf2_ranges_process, dwarf2_ranges_read)
10853 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10854 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10855 Update.
10856 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10857 Update.
10858 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10859 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10860 (process_one_symbol): Change type of "section_offsets".
10861 * ctfread.c (get_objfile_text_range): Update.
10862 * coffread.c (coff_symtab_read, enter_linenos)
10863 (process_coff_symbol): Update.
10864 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10865 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10866
456e800a
TT
108672020-01-08 Tom Tromey <tromey@adacore.com>
10868
10869 * dwarf2read.c (parse_macro_definition): Use std::string.
10870 (parse_macro_definition): Likewise.
10871
6dfa2fc2
TT
108722020-01-08 Tom Tromey <tromey@adacore.com>
10873
10874 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10875 (ATTR_ALLOC_CHUNK): Remove.
10876
421d1616
TT
108772020-01-08 Tom Tromey <tromey@adacore.com>
10878
10879 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10880
43816ebc
TT
108812020-01-08 Tom Tromey <tromey@adacore.com>
10882
10883 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10884 (dwarf2_compute_name, open_dwo_file): Likewise.
10885 (process_enumeration_scope): Use std::vector.
10886 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10887 (partial_die_info::fixup, dwarf2_start_subfile)
10888 (guess_full_die_structure_name, dwarf2_name): Likewise.
10889 (determine_prefix): Update.
10890 (guess_full_die_structure_name): Make return type const.
10891 (partial_die_full_name): Return unique_xmalloc_ptr.
10892 (DW_FIELD_ALLOC_CHUNK): Remove.
10893
4212d509
TT
108942020-01-07 Tom Tromey <tromey@adacore.com>
10895
10896 PR build/24937:
10897 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10898
06a6207a
JT
108992020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10900
10901 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10902
153d79c4
AB
109032020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10904
10905 * stack.c (print_frame_info): Move disassemble_next_line code
10906 inside source_print block.
10907
66182876
EZ
109082020-01-06 Eli Zaretskii <eliz@gnu.org>
10909
10910 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10911 gdb/signals.h, as we are now using native signal symbols.
10912
cbfa8581
SV
109132020-01-06 Shahab Vahedi <shahab@synopsys.com>
10914
10915 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10916 overflow by an early check of content vs threshold.
aac66a4c 10917 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10918 Likewise.
10919
3f602821
EZ
109202020-01-06 Eli Zaretskii <eliz@gnu.org>
10921
10922 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10923
a08c904d
JT
109242020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10925
10926 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10927 export table if no section contains it's RVA.
10928
89a65580
EZ
109292020-01-06 Eli Zaretskii <eliz@gnu.org>
10930
10931 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10932
8b7fcda2
HD
109332020-01-06 Hannes Domani <ssbssa@yahoo.de>
10934
10935 * source.c (print_source_lines_base): Set last_line_listed.
10936
a61b4f69
SV
109372020-01-06 Shahab Vahedi <shahab@synopsys.com>
10938
10939 * tui/tui-disasm.c: Remove trailing spaces.
10940
559e7e50
EZ
109412020-01-06 Eli Zaretskii <eliz@gnu.org>
10942 Pedro Alves <palves@redhat.com>
10943
10944 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10945 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10946 (windows_gdb_signal_to_target): New function, uses the above
10947 enumeration to convert GDB internal signal codes to equivalent
10948 Windows codes.
10949 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10950 * windows-nat.c: Include "gdb_wait.h".
10951 (get_windows_debug_event): Extract the fatal exception from the
10952 exit status and convert to the equivalent Posix signal number.
10953 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10954 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10955 * gdbsupport/gdb_wait.c: New file, implements
10956 windows_status_to_termsig.
10957 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10958 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10959
f2302a34
AB
109602020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10961
10962 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10963 show_layout.
10964
6a5206eb
LM
109652020-01-05 Luis Machado <luis.machado@linaro.org>
10966
10967 * aarch64-linux-nat.c
10968 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10969 and bfd_mach_aarch64.
10970
6ec1d75e
PW
109712020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10972
10973 * ui-file.c (stdio_file::can_emit_style_escape)
10974 (tee_file::can_emit_style_escape): Ensure style is used also on
10975 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10976 to gdb_stdout.
10977 * main.c (set_gdb_data_directory): Use file style to output the
10978 warning that the given pathname is not a directory.
10979 * top.c (show_history_filename, gdb_safe_append_history)
10980 (show_gdb_datadir): Use file style.
10981
44f81a76
HD
109822020-01-03 Hannes Domani <ssbssa@yahoo.de>
10983
10984 * solib-target.c (struct lm_info_target):
10985 Change offsets to be a unique_xmalloc_ptr.
10986 (solib_target_relocate_section_addresses): Update.
10987
25057eb0
HD
109882020-01-03 Hannes Domani <ssbssa@yahoo.de>
10989
10990 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10991
6e2118f5
BE
109922020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10993
10994 * MAINTAINERS (Write After Approval): Add myself.
10995
8133c7dc
LM
109962020-01-02 Luis Machado <luis.machado@linaro.org>
10997
10998 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10999 Cell BE architecture.
11000 * target.h (struct target_ops) <thread_architecture>: Likewise.
11001
48189bec
HD
110022020-01-01 Hannes Domani <ssbssa@yahoo.de>
11003
11004 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11005
ead1063b
HD
110062020-01-01 Hannes Domani <ssbssa@yahoo.de>
11007
11008 * MAINTAINERS (Write After Approval): Add myself.
11009
e5d78223
JB
110102020-01-01 Joel Brobecker <brobecker@adacore.com>
11011
11012 * gdbarch.sh: Update copyright year range of generated files.
11013
b811d2c2
JB
110142020-01-01 Joel Brobecker <brobecker@adacore.com>
11015
11016 Update copyright year range in all GDB files.
11017
5f4def5c
JB
110182020-01-01 Joel Brobecker <brobecker@adacore.com>
11019
11020 * copyright.py: Convert to Python 3.
11021
51fd4002
JB
110222020-01-01 Joel Brobecker <brobecker@adacore.com>
11023
11024 * copyright.py: Adapt after move of gnulib directory from gdb
11025 directory to toplevel directory.
11026
5fb651f2
JB
110272020-01-01 Joel Brobecker <brobecker@adacore.com>
11028
11029 * copyright.py (main): Exit if run from the wrong directory.
11030
5dd8bf88
JB
110312020-01-01 Joel Brobecker <brobecker@adacore.com>
11032
11033 * top.c (print_gdb_version): Change copyright year to 2020.
11034
9f71dacb 110352020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11036
9f71dacb 11037 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11038
9f71dacb 11039For older changes see ChangeLog-2019.
c906108c
SS
11040\f
11041Local Variables:
11042mode: change-log
11043left-margin: 8
11044fill-column: 74
11045version-control: never
57da7796 11046coding: utf-8
c906108c 11047End: