]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: remove TYPE_RANGE_DATA macro
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
599088e3
SM
12020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4 the type::bounds method directly.
5
c4dfcb36
SM
62020-07-12 Simon Marchi <simon.marchi@efficios.com>
7
8 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
9 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
10 are used to set the range type's bounds to use set_bounds.
11
0a278aa7
PW
122020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13
14 * exec.c (_initialize_exec): Update exec-file-mismatch help.
15
cce20f10
PA
162020-07-10 Pedro Alves <pedro@palves.net>
17
18 * gdbthread.h (inferior_ref): Define.
19 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
20 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
21 * thread.c
22 (scoped_restore_current_thread::restore):
23 Adjust to gdb::ref_ptr.
24 (scoped_restore_current_thread::~scoped_restore_current_thread):
25 Remove manual decref handling.
26 (scoped_restore_current_thread::scoped_restore_current_thread):
27 Adjust to use
28 inferior_ref::new_reference/thread_info_ref::new_reference.
29 Incref the thread before calling get_frame_id instead of after.
30 Let TARGET_CLOSE_ERROR propagate.
31
6d7aa592
PA
322020-07-10 Pedro Alves <pedro@palves.net>
33
34 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
35 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
36 NOT_AVAILABLE_ERROR.
37 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
38 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
39
b3e3a4c1
SM
402020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
41 Pedro Alves <pedro@palves.net>
42
43 PR gdb/26199
44 * infrun.c (threads_are_resumed_pending_p): Delete.
45 (do_target_wait): Remove threads_are_executing and
46 threads_are_resumed_pending_p checks from the inferior_matches
47 lambda. Update comments.
48
d6cc5d98
PA
492020-07-10 Pedro Alves <pedro@palves.net>
50
51 PR gdb/26199
52 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
53 executing threads.
54
7d3badc6
PA
552020-07-10 Pedro Alves <pedro@palves.net>
56
57 PR gdb/26199
58 * infrun.c (handle_no_resumed): Handle multiple targets.
59
42bd97a6
PA
602020-07-10 Pedro Alves <pedro@palves.net>
61
62 PR gdb/26199
63 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
64 target_is_async_p.
65
43667cc6
PA
662020-07-10 Pedro Alves <pedro@palves.net>
67
68 PR gdb/26199
69 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
70 threads, not all threads.
71
96118d11
PA
722020-07-10 Pedro Alves <pedro@palves.net>
73
74 PR gdb/26199
75 * remote.c (remote_target::open_1): Pass remote target pointer as
76 data to create_async_event_handler.
77 (remote_async_inferior_event_handler): Mark async event handler
78 before returning if the remote target still has either pending
79 events or unacknowledged notifications.
80
54904d81
JB
812020-07-10 John Baldwin <jhb@FreeBSD.org>
82
83 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
84 declaration.
85 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
86 function.
87
f37e5866
JB
882020-07-09 John Baldwin <jhb@FreeBSD.org>
89
90 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
91 inferior_ptid.
92
fc238d4a
JB
932020-07-09 John Baldwin <jhb@FreeBSD.org>
94
95 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
96 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
97 AT_FREEBSD_PS_STRINGS.
98
6e2469ff
HD
992020-07-08 Hannes Domani <ssbssa@yahoo.de>
100
101 * auto-load.c (auto_load_objfile_script_1): Convert drive part
102 of debugfile path on Windows.
103
d1076c41
JB
1042020-07-08 John Baldwin <jhb@FreeBSD.org>
105
106 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
107 argument to 'data'.
108
15f3b077
TT
1092020-07-08 Tom Tromey <tromey@adacore.com>
110
111 * ada-lang.c (ada_exception_message_1): Use read_memory.
112
9fc501fd
AB
1132020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
114
115 PR python/22748
116 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
117 special handling for inline frames.
118 * findvar.c (value_of_register_lazy): Skip inline frames when
119 creating lazy register values.
120 * frame.c (frame_id_computed_p): Delete definition.
121 * frame.h (frame_id_computed_p): Delete declaration.
122
64cb3757
AB
1232020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
124
125 * NEWS: Mention additions to Python API.
126 * python/py-arch.c (archpy_register_groups): New function.
127 (arch_object_methods): Add 'register_groups' method.
128 * python/py-registers.c (reggroup_iterator_object): New struct.
129 (reggroup_object): New struct.
130 (gdbpy_new_reggroup): New function.
131 (gdbpy_reggroup_to_string): New function.
132 (gdbpy_reggroup_name): New function.
133 (gdbpy_reggroup_iter): New function.
134 (gdbpy_reggroup_iter_next): New function.
135 (gdbpy_new_reggroup_iterator): New function
136 (gdbpy_initialize_registers): Register new types.
137 (reggroup_iterator_object_type): Define new Python type.
138 (gdbpy_reggroup_getset): New static global.
139 (reggroup_object_type): Define new Python type.
140 * python/python-internal.h
141
0f767f94
AB
1422020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
143
144 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
145 * python/py-arch.c (archpy_registers): New function.
146 (arch_object_methods): Add 'registers' method.
147 * python/py-registers.c: New file.
148 * python/python-internal.h
149 (gdbpy_new_register_descriptor_iterator): Declare.
150 (gdbpy_initialize_registers): Declare.
151 * python/python.c (do_start_initialization): Call
152 gdbpy_initialize_registers.
153 * NEWS: Mention additions to the Python API.
154
87dbc774
AB
1552020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
156
157 * NEWS: Mention new Python API method.
158 * python/py-unwind.c (pending_framepy_architecture): New function.
159 (pending_frame_object_methods): Add architecture method.
160
3bc98c0c
AB
1612020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
162
163 * gdbarch.c: Regenerate.
164 * gdbarch.h: Regenerate.
165 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
166 (gdbarch_data): Use internal_error for the case where
167 deprecated_set_gdbarch_data was originally needed.
168 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
169 and use passed in obstack.
170 (libunwind_frame_set_descr): Should no longer get back NULL from
171 gdbarch_data.
172 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
173 type.
174 * user-regs.c (user_regs_init): Update parameters, and use passed
175 in obstack.
176 (user_reg_add): Should no longer get back NULL from gdbarch_data.
177 (_initialize_user_regs): Register as a pre-init gdbarch data type.
178
d8cc8af6
TV
1792020-07-06 Tom de Vries <tdevries@suse.de>
180
181 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
182 End-Of-Sequence in lte_is_less_than.
183 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
184 "gdb: Don't reorder line table entries too much when sorting".
185
947f7597
TV
1862020-07-06 Tom de Vries <tdevries@suse.de>
187
188 PR tui/26205
189 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
190
1e7c1b22
TV
1912020-07-05 Tom de Vries <tdevries@suse.de>
192
193 PR build/26187
194 * inferior.h (struct infcall_suspend_state_deleter): If available, use
195 std::uncaught_exceptions instead of deprecated
196 std::uncaught_exception.
197
a36158ec
SM
1982020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
199
200 * macroexp.h (macro_stringify): Return
201 gdb::unique_xmalloc_ptr<char>.
202 * macroexp.c (macro_stringify): Likewise.
203 * macrotab.c (fixup_definition): Update.
204
14d960c8
SM
2052020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
206
207 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
208 (lex_one_token): Update.
209 * macroexp.c (struct macro_buffer) <release>: Return
210 gdb::unique_xmalloc_ptr<char>.
211 (macro_stringify): Update.
212 (macro_expand): Update.
213 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
214 * macroexp.h (macro_expand_next): Likewise.
215
211d5b1c
SM
2162020-07-02 Simon Marchi <simon.marchi@efficios.com>
217
218 * macroexp.h (macro_lookup_ftype): Remove.
219 (macro_expand, macro_expand_once, macro_expand_next): Remove
220 lookup function parameters, add scope parameter.
221 * macroexp.c (scan, substitute_args, expand, maybe_expand,
222 macro_expand, macro_expand_once, macro_expand_next): Likewise.
223 * macroscope.h (standard_macro_lookup): Change parameter type
224 to macro_scope.
225 * macroscope.c (standard_macro_lookup): Likewise.
226 * c-exp.y (lex_one_token): Update.
227 * macrocmd.c (macro_expand_command): Likewise.
228 (macro_expand_once_command): Likewise.
229
b1a35af2
SM
2302020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
231
232 * inf-loop.c (inferior_event_handler): Remove client_data param.
233 * inf-loop.h (inferior_event_handler): Likewise.
234 * infcmd.c (step_1): Adjust.
235 * infrun.c (proceed): Adjust.
236 (fetch_inferior_event): Remove client_data param.
237 (infrun_async_inferior_event_handler): Adjust.
238 * infrun.h (fetch_inferior_event): Remove `void *` param.
239 * linux-nat.c (handle_target_event): Adjust.
240 * record-btrace.c (record_btrace_handle_async_inferior_event):
241 Adjust.
242 * record-full.c (record_full_async_inferior_event_handler):
243 Adjust.
244 * remote.c (remote_async_inferior_event_handler): Adjust.
245
1cdf9e33
TT
2462020-07-01 Tom Tromey <tom@tromey.com>
247
248 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
249 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
250
32c1e210
TT
2512020-07-01 Tom Tromey <tom@tromey.com>
252
253 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
254 tui_gen_win_info.
255 (tui_win_info::make_window): Merge with
256 tui_gen_win_info::make_window.
257 (tui_win_info::make_visible): Move from tui_gen_win_info.
258 * tui/tui-win.c (tui_win_info::max_width): Move from
259 tui_gen_win_info.
260 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
261 type.
262 <window_factory>: Likewise.
263 * tui/tui-layout.c (tui_win_info::resize): Move from
264 tui_gen_win_info.
265 (make_standard_window): Change return type.
266 (get_locator_window, tui_get_window_by_name): Likewise.
267 (tui_layout_window::apply): Remove a cast.
268 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
269 (struct tui_win_info): Merge with tui_gen_win_info.
270 (struct tui_gen_win_info): Remove.
271
a30cb6da
TT
2722020-07-01 Tom Tromey <tom@tromey.com>
273
274 * tui/tui-stack.h (struct tui_locator_window): Derive from
275 tui_win_info.
276 <do_scroll_horizontal, do_scroll_vertical>: New methods.
277 <can_box>: New method.
278
1eb2161f
TT
2792020-07-01 Tom Tromey <tom@tromey.com>
280
281 * tui/tui-stack.h (struct tui_locator_window): Remove body.
282
7134f2eb
TT
2832020-07-01 Tom Tromey <tom@tromey.com>
284
285 * tui/tui-regs.c (tui_data_window::display_registers_from)
286 (tui_data_window::display_registers_from)
287 (tui_data_window::first_data_item_displayed)
288 (tui_data_window::delete_data_content_windows): Update.
289 (tui_data_window::refresh_window, tui_data_window::no_refresh):
290 Remove.
291 (tui_data_window::check_register_values): Update.
292 (tui_data_item_window::rerender): Add parameters. Update.
293 (tui_data_item_window::refresh_window): Remove.
294 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
295 virtual.
296 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
297 tui_gen_win_info.
298 <refresh_window, max_height, min_height>: Remove.
299 <rerender>: Add parameters.
300 <x, y, visible>: New members.
301 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
302 <m_item_width>: New member.
303
22b7b041
TT
3042020-07-01 Tom Tromey <tom@tromey.com>
305
306 * tui/tui-regs.c (tui_data_window::show_register_group)
307 (tui_data_window::check_register_values): Update.
308 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
309 from item_no.
310
c9753adb
TT
3112020-07-01 Tom Tromey <tom@tromey.com>
312
313 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
314 useless "if".
315
9ab26b4a
TT
3162020-07-01 Tom Tromey <tom@tromey.com>
317
318 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
319 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
320
e555083f
TT
3212020-07-01 Tom Tromey <tom@tromey.com>
322
323 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
324 * tui/tui-winsource.h (enum tui_line_or_address_kind)
325 (struct tui_line_or_address): Move from tui-data.h.
326 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
327 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
328 (tui_cmd_window, tui_source_window_base, tui_source_window)
329 (tui_disasm_window): Don't declare.
330 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
331 to tui-winsource.h.
332 (SINGLE_KEY): Move to tui-stack.c.
333
7a02bab7
TT
3342020-07-01 Tom Tromey <tom@tromey.com>
335
336 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
337 std::string.
338 * tui/tui-regs.c (class tab_expansion_file): New.
339 (tab_expansion_file::write): New method.
340 (tui_register_format): Change return type. Use
341 tab_expansion_file.
342 (tui_get_register, tui_data_window::display_registers_from)
343 (tui_data_item_window::rerender): Update.
344 * tui/tui-io.h (tui_expand_tabs): Don't declare.
345 * tui/tui-io.c (tui_expand_tabs): Remove.
346
ea68593b
TT
3472020-07-01 Tom Tromey <tom@tromey.com>
348
349 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
350
a8caed5d
FS
3512020-07-01 Fangrui Song <maskray@google.com>
352
353 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
354
9cdf9820
AKS
3552020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
356
357 * dwarf2/read.c (set_die_type): Removed conditions to restrict
358 forms for DW_AT_associated and DW_AT_allocated attributes,
359 which is already checked in function attr_to_dynamic_prop.
360
a1520ad8
TT
3612020-06-30 Tom Tromey <tromey@adacore.com>
362
363 * dwarf2/read.c (quirk_rust_enum): Correctly call
364 alloc_rust_variant for default-less enum.
365
5ac58899
TT
3662020-06-30 Tom Tromey <tromey@adacore.com>
367
368 PR build/26183:
369 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
370 gdb::to_string.
371
19b187a9
SM
3722020-06-29 Simon Marchi <simon.marchi@efficios.com>
373
374 * gdbarch.sh (displaced_step_copy_insn): Update doc.
375 * gdbarch.h: Re-generate.
376
cd4c4c07
TT
3772020-06-28 Tom Tromey <tom@tromey.com>
378
379 * command.h (cmd_types): Remove.
380 (cmd_type): Don't declare.
381 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
382 typedef.
383 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
384 * cli/cli-decode.c (cmd_type): Remove.
385
05779d57
PA
3862020-06-27 Pedro Alves <palves@redhat.com>
387
388 * fork-child.c (prefork_hook): Adjust.
389 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
390 Delete.
391 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
392 * inferior.c (inferior::set_tty, inferior::tty): New methods.
393 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
394 Remove declarations.
395 (struct inferior) <set_tty, tty>: New methods.
396 (struct inferior) <terminal>: Rename to ...
397 (struct inferior) <m_terminal>: ... this and make private.
398 * main.c (captured_main_1): Adjust.
399 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
400 (mi_cmd_inferior_tty_show): Adjust.
401 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
402 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
403
1776e3e5
NA
4042020-06-26 Nick Alcock <nick.alcock@oracle.com>
405
406 * configure.ac: Add --enable-libctf: handle --disable-static
407 properly.
408 * acinclude.m4: sinclude ../config/enable.m4.
409 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
410 (LIBCTF): Substitute in.
411 (CTF_DEPS): New, likewise.
412 (CLIBS): libctf needs symbols from libbfd: move earlier.
413 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
414 flags.
415 * ctfread.c: Surround in ENABLE_LIBCTF.
416 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
417 * configure: Regenerate.
418 * config.in: Likewise.
419
58373b80
SM
4202020-06-25 Simon Marchi <simon.marchi@efficios.com>
421
422 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
423
277474ee
SM
4242020-06-25 Simon Marchi <simon.marchi@efficios.com>
425
426 * inferior.h (struct inferior) <terminal>: Change type to
427 gdb::unique_xmalloc_ptr<char>.
428 * inferior.c (inferior::~inferior): Don't free inf->terminal.
429 * infcmd.c (set_inferior_io_terminal): Don't free terminal
430 field, adjust to unique pointer.
431 (get_inferior_io_terminal): Adjust to unique pointer.
432
6d74da72
AB
4332020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
434
435 * riscv-tdep.c (riscv_print_registers_info): Loop over all
436 registers, not just the known core set of registers.
437
2e52d038
AB
4382020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
439
440 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
441 fflags, frm, and fcsr registers.
442 (riscv_register_reggroup_p): Remove unknown CSRs from save and
443 restore groups.
444 (riscv_tdesc_unknown_reg): New function.
445 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
446 tdesc_use_registers.
447 * riscv-tdep.h (struct gdbarch_tdep): Add
448 unknown_csrs_first_regnum, unknown_csrs_count,
449 duplicate_fflags_regnum, duplicate_frm_regnum, and
450 duplicate_fcsr_regnum fields.
451
be64fd07
AB
4522020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
453
454 * target-descriptions.c (tdesc_use_registers): Add new parameter a
455 callback, use the callback (when not null) to help number unknown
456 registers.
457 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
458 (tdesc_use_registers): Add extra parameter to declaration.
459
3b9fce96
AB
4602020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
461
462 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
463 in the file.
464 (class riscv_pending_register_alias): Likewise.
465 (riscv_register_feature::register_info): Change 'required_p' field
466 to 'required', and change its type. Add 'check' member function.
467 (riscv_register_feature::register_info::check): Define new member
468 function.
469 (riscv_xreg_feature): Change initialisation of 'required' field.
470 (riscv_freg_feature): Likewise.
471 (riscv_virtual_feature): Likewise.
472 (riscv_csr_feature): Likewise.
473 (riscv_check_tdesc_feature): Take extra parameter, the csr
474 tdesc_feature, rewrite the function to use the new
475 riscv_register_feature::register_info::check function.
476 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
477
865bad26
AB
4782020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
479
480 * features/Makefile: Remove all references to the deleted files
481 below.
482 * features/riscv/32bit-csr.c: Deleted.
483 * features/riscv/32bit-csr.xml: Deleted.
484 * features/riscv/64bit-csr.c: Deleted.
485 * features/riscv/64bit-csr.xml: Deleted.
486 * features/riscv/rebuild-csr-xml.sh: Deleted.
487
ed69cbc8
AB
4882020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
489
490 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
491 whitespace error for declaration of names member variable.
492 (struct riscv_register_feature): Add new prefer_first_name member
493 variable, and fix whitespace error in declaration of registers.
494 (riscv_xreg_feature): Initialize prefer_first_name field.
495 (riscv_freg_feature): Likewise.
496 (riscv_virtual_feature): Likewise.
497 (riscv_csr_feature): Likewise.
498 (riscv_register_name): Expand on comments. Remove register name
499 modifications for CSR and virtual registers.
500
4445e8f5
AB
5012020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
502
503 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
504 errors.
505
767a879e
AB
5062020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
507
508 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
509 riscv-opc.h.
510 (class riscv_pending_register_alias): New class.
511 (riscv_check_tdesc_feature): Take vector of pending aliases and
512 populate it as appropriate.
513 (riscv_setup_register_aliases): Delete.
514 (riscv_gdbarch_init): Create vector of pending aliases and pass it
515 to riscv_check_tdesc_feature in all cases. Use the vector to
516 create the register aliases.
517
bb6e55f3
RO
5182020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
519
520 * sol2-tdep.c (sol2_static_transform_name): Remove.
521 (sol2_init_abi): Don't register it.
522 * gdbarch.sh (static_transform_name): Remove.
523 * gdbarch.c, gdbarch.h: Regenerate.
524
525 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
526 gdbarch_static_transform_name.
527 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
528 * stabsread.c (define_symbol) <'X'>: Remove.
529 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
530 handling.
531 <'V'>: Likewise.
532 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
533 <'S'>: Remove call to gdbarch_static_transform_name.
534
c6d36836
RO
5352020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
536
537 * procfs.c (procfs_pre_trace): New function.
538 (procfs_target::create_inferior): Pass it to fork_inferior.
539
a7e6196b
RO
5402020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
541
542 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
543 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
544 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
545 sol2-tdep.o, sparc-sol2-tdep.o.
546 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
547 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
548 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
549 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
550
d412e696
RO
5512020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
552
553 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
554 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
555 Call sol2_init_abi.
556 Remove calls to set_gdbarch_skip_solib_resolver,
557 set_gdbarch_core_pid_to_str.
558 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
559 (i386_sol2_static_transform_name): Remove.
560 (i386_sol2_init_abi): Call sol2_init_abi.
561 Remove calls to set_gdbarch_sofun_address_maybe_missing,
562 set_gdbarch_static_transform_name,
563 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
564 Use sol2_sigtramp_p.
565 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
566 (sol2_sigtramp_p): New function.
567 (sol2_static_transform_name): New function.
568 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
569 (sol2_init_abi): New function.
570 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
571 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
572 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
573 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
574 (sparc_sol2_static_transform_name): Remove.
575 (sparc32_sol2_init_abi): Call sol2_init_abi.
576 Remove calls to set_gdbarch_sofun_address_maybe_missing,
577 set_gdbarch_static_transform_name,
578 set_gdbarch_skip_solib_resolver,
579 set_gdbarch_core_pid_to_str.
580 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
581 (sparc_sol2_static_transform_name): Remove
582 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
583 call sol2_sigtramp_p.
584 (sparc64_sol2_init_abi): Call sol2_init_abi.
585 Remove calls to set_gdbarch_sofun_address_maybe_missing,
586 set_gdbarch_static_transform_name,
587 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
588
a8654e7d
PW
5892020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
590
591 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
592 * exec.c (validate_exec_file): If from_tty, set both
593 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
594 * symfile.c (symbol_file_add_with_addrs): if always_confirm
595 and from_tty, unconditionally ask a confirmation.
596
caa7fd04
AB
5972020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
598
599 * target-descriptions.c (tdesc_architecture_name): Protect against
600 NULL pointer dereference.
601 (maint_print_xml_tdesc_cmd): New function.
602 (_initialize_target_descriptions): Register new 'maint print
603 xml-tdesc' command and give it the filename completer.
604 * NEWS: Mention new 'maint print xml-tdesc' command.
605
fbf42f4e
AB
6062020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
607
608 * target-descriptions.c (class tdesc_compatible_info): New class.
609 (struct target_desc): Change type of compatible vector.
610 (tdesc_compatible_p): Update for change in type of
611 target_desc::compatible.
612 (tdesc_compatible_info_list): New function.
613 (tdesc_compatible_info_arch_name): New function.
614 (tdesc_add_compatible): Update for change in type of
615 target_desc::compatible.
616 (print_c_tdesc::visit_pre): Likewise.
617
20821f4e
AB
6182020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
619
620 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
621 whitespace to underscore.
622 (maint_print_c_tdesc_cmd): Use fake filename for target
623 descriptions that came from the target.
624 (_initialize_target_descriptions): Add filename command completion
625 for 'maint print c-tdesc'.
626
1fb5ee62
SM
6272020-06-23 Simon Marchi <simon.marchi@efficios.com>
628
629 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
630 lines.
631
fc3ecb3e
SM
6322020-06-23 Simon Marchi <simon.marchi@efficios.com>
633
634 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
635 lines.
636 (dwarf2_find_location_expression): Likewise.
637 (call_site_parameter_matches): Likewise.
638 (dwarf2_compile_expr_to_ax): Likewise.
639 (disassemble_dwarf_expression): Likewise.
640 (loclist_describe_location): Likewise.
641
236ef034
PA
6422020-06-23 Pedro Alves <palves@redhat.com>
643
644 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
645 progspace-and-thread.h. Include scoped-mock-context.h instead.
646 (register_to_value_test): Use scoped_mock_context.
647 * regcache.c: Include "scoped-mock-context.h".
648 (cooked_read_test): Don't error out if a target is already pushed.
649 Use scoped_mock_context. Adjust.
650 * scoped-mock-context.h: New file.
651
39e7ecca
AB
6522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
653
654 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
655 initializer.
656 (ada_language::is_string_type_p): New member function.
657 * c-lang.c (c_language_data): Delete la_is_string_type_p
658 initializer.
659 (cplus_language_data): Likewise.
660 (asm_language_data): Likewise.
661 (minimal_language_data): Likewise.
662 * d-lang.c (d_language_data): Likewise.
663 * f-lang.c (f_is_string_type_p): Delete function, implementation
664 moved to f_language::is_string_type_p.
665 (f_language_data): Delete la_is_string_type_p initializer.
666 (f_language::is_string_type_p): New member function,
667 implementation from f_is_string_type_p.
668 * go-lang.c (go_is_string_type_p): Delete function, implementation
669 moved to go_language::is_string_type_p.
670 (go_language_data): Delete la_is_string_type_p initializer.
671 (go_language::is_string_type_p): New member function,
672 implementation from go_is_string_type_p.
673 * language.c (language_defn::is_string_type_p): Define new member
674 function.
675 (default_is_string_type_p): Make static, add comment copied from
676 header file.
677 (unknown_language_data): Delete la_is_string_type_p initializer.
678 (unknown_language::is_string_type_p): New member function.
679 (auto_language_data): Delete la_is_string_type_p initializer.
680 (auto_language::is_string_type_p): New member function.
681 * language.h (language_data): Delete la_is_string_type_p field.
682 (language_defn::is_string_type_p): Declare new function.
683 (default_is_string_type_p): Delete desclaration, move comment to
684 definition.
685 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
686 moved to m2_language::is_string_type_p.
687 (m2_language_data): Delete la_is_string_type_p initializer.
688 (m2_language::is_string_type_p): New member function,
689 implementation from m2_is_string_type_p.
690 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
691 initializer.
692 * opencl-lang.c (opencl_language_data): Likewise.
693 * p-lang.c (pascal_is_string_type_p): Delete function,
694 implementation moved to pascal_language::is_string_type_p.
695 (pascal_language_data): Delete la_is_string_type_p initializer.
696 (pascal_language::is_string_type_p): New member function,
697 implementation from pascal_is_string_type_p.
698 * rust-lang.c (rust_is_string_type_p): Delete function,
699 implementation moved to rust_language::is_string_type_p.
700 (rust_language_data): Delete la_is_string_type_p initializer.
701 (rust_language::is_string_type_p): New member function,
702 implementation from rust_is_string_type_p.
703 * valprint.c (val_print_scalar_or_string_type_p): Update call to
704 is_string_type_p.
705
4ffc13fb
AB
7062020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
707
708 * ada-lang.c (ada_language_data): Delete la_print_typedef
709 initializer.
710 (ada_language::print_typedef): New member function.
711 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
712 (cplus_language_data): Likewise.
713 (asm_language_data): Likewise.
714 (minimal_language_data): Likewise.
715 * d-lang.c (d_language_data): Likewise.
716 * f-lang.c (f_language_data): Likewise.
717 (f_language::print_typedef): New member function.
718 * go-lang.c (go_language_data): Delete la_print_typedef
719 initializer.
720 * language.c (language_defn::print_typedef): Define member
721 function.
722 (unknown_language_data): Delete la_print_typedef initializer.
723 (unknown_language::print_typedef): New member function.
724 (auto_language_data): Delete la_print_typedef initializer.
725 (auto_language::print_typedef): New member function.
726 * language.h (language_data): Delete la_print_typedef field.
727 (language_defn::print_typedef): Declare new member function.
728 (LA_PRINT_TYPEDEF): Update call to print_typedef.
729 (default_print_typedef): Delete declaration.
730 * m2-lang.c (m2_language_data): Delete la_print_typedef
731 initializer.
732 (m2_language::print_typedef): New member function.
733 * objc-lang.c (objc_language_data): Delete la_print_typedef
734 initializer.
735 * opencl-lang.c (opencl_language_data): Likewise.
736 * p-lang.c (pascal_language_data): Likewise.
737 (pascal_language::print_typedef): New member function.
738 * rust-lang.c (rust_print_typedef): Delete function,
739 implementation moved to rust_language::print_typedef.
740 (rust_language): Delete la_print_typedef initializer.
741 (rust_language::print_typedef): New member function,
742 implementation from rust_print_typedef.
743 * typeprint.c (default_print_typedef): Delete.
744
d711ee67
AB
7452020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
746
747 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
748 (ada_language::printstr): New member function.
749 * c-lang.c (c_language_data): Delete la_printstr initializer.
750 (cplus_language_data): Likewise.
751 (asm_language_data): Likewise.
752 (minimal_language_data): Likewise.
753 * d-lang.c (d_language_data): Likewise.
754 * f-lang.c (f_printstr): Rename to f_language::printstr.
755 (f_language_data): Delete la_printstr initializer.
756 (f_language::printstr): New member function, implementation from
757 f_printstr.
758 * go-lang.c (go_language_data): Delete la_printstr initializer.
759 * language.c (language_defn::printstr): Define new member
760 function.
761 (unk_lang_printstr): Delete.
762 (unknown_language_data): Delete la_printstr initializer.
763 (unknown_language::printstr): New member function.
764 (auto_language_data): Delete la_printstr initializer.
765 (auto_language::printstr): New member function.
766 * language.h (language_data): Delete la_printstr field.
767 (language_defn::printstr): Declare new member function.
768 (LA_PRINT_STRING): Update call to printstr.
769 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
770 (m2_language_data): Delete la_printstr initializer.
771 (m2_language::printstr): New member function, implementation from
772 m2_printstr.
773 * objc-lang.c (objc_language_data): Delete la_printstr
774 initializer.
775 * opencl-lang.c (opencl_language_data): Likewise.
776 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
777 (pascal_language_data): Delete la_printstr initializer.
778 (pascal_language::printstr): New member function, implementation
779 from pascal_printstr.
780 * p-lang.h (pascal_printstr): Delete declaration.
781 * rust-lang.c (rust_printstr): Update header comment.
782 (rust_language_data): Delete la_printstr initializer.
783 (rust_language::printstr): New member function.
784
52b50f2c
AB
7852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
786
787 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
788 (ada_language::printchar): New member function.
789 * c-lang.c (c_language_data): Delete la_printchar initializer.
790 (cplus_language_data): Likewise.
791 (asm_language_data): Likewise.
792 (minimal_language_data): Likewise.
793 * d-lang.c (d_language_data): Likewise.
794 * f-lang.c (f_printchar): Rename to f_language::printchar.
795 (f_language_data): Delete la_printchar initializer.
796 (f_language::printchar): New member function, implementation from
797 f_printchar.
798 * go-lang.c (go_language_data): Delete la_printchar initializer.
799 * language.c (unk_lang_printchar): Delete.
800 (language_defn::printchar): Define new member function.
801 (unknown_language_data): Delete la_printchar initializer.
802 (unknown_language::printchar): New member function.
803 (auto_language_data): Delete la_printchar initializer.
804 (auto_language::printchar): New member function.
805 * language.h (language_data): Delete la_printchar field.
806 (language_defn::printchar): Declare new member function.
807 (LA_PRINT_CHAR): Update call to printchar.
808 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
809 (m2_language::printchar): New member function.
810 * objc-lang.c (objc_language_data): Delete la_printchar
811 initializer.
812 * opencl-lang.c (opencl_language_data): Likewise.
813 * p-lang.c (pascal_language_data): Delete la_printchar
814 initializer.
815 (pascal_language::printchar): New member function.
816 * rust-lang.c (rust_printchar): Rename to
817 rust_language::printchar.
818 (rust_language_data): Delete la_printchar initializer.
819 (rust_language::printchar): New member function, implementation
820 from rust_printchar.
821
ec8cec5b
AB
8222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
823
824 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
825 (ada_language_data): Delete la_emitchar initializer.
826 (ada_language::emitchar): New member function, implementation from
827 emit_char.
828 * c-lang.c (c_language_data): Delete la_emitchar initializer.
829 (cplus_language_data): Likewise.
830 (asm_language_data): Likewise.
831 (minimal_language_data): Likewise.
832 * d-lang.c (d_language_data): Likewise.
833 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
834 (f_language_data): Delete la_emitchar initializer.
835 (f_language::emitchar): New member function, implementation from
836 f_emit_char.
837 * go-lang.c (go_language_data): Delete la_emitchar initializer.
838 * language.c (unk_lang_emit_char): Delete.
839 (language_defn::emitchar): New member function definition.
840 (unknown_language_data): Delete la_emitchar initializer.
841 (unknown_language::emitchar): New member function.
842 (auto_language_data): Delete la_emitchar initializer.
843 (auto_language::emitchar): New member function.
844 * language.h (language_data): Delete la_emitchar field.
845 (language_defn::emitchar): New member field declaration.
846 (LA_EMIT_CHAR): Update call to emitchar.
847 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
848 (m2_language_data): Delete la_emitchar initializer.
849 (m2_language::emitchar): New member function, implementation from
850 m2_emit_char.
851 * objc-lang.c (objc_language_data): Delete la_emitchar
852 initializer.
853 * opencl-lang.c (opencl_language_data): Likewise.
854 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
855 (pascal_language_data): Delete la_emitchar initializer.
856 (pascal_language::emitchar): New member function, implementation
857 from pascal_emit_char.
858 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
859 (rust_language_data): Delete la_emitchar initializer.
860 (rust_language::emitchar): New member function, implementation
861 from rust_emitchar.
862
1bf9c363
AB
8632020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
864
865 * ada-lang.c (resolve): Rename to ada_language::post_parser.
866 (ada_language_data): Delete la_post_parser initializer.
867 (ada_language::post_parser): New member function.
868 * c-lang.c (c_language_data): Delete la_post_parser initializer.
869 (cplus_language_data): Likewise.
870 (asm_language_data): Likewise.
871 (minimal_language_data): Likewise.
872 * d-lang.c (d_language_data): Likewise.
873 * f-lang.c (f_language_data): Likewise.
874 * go-lang.c (go_language_data): Likewise.
875 * language.c (unknown_language_data): Likewise.
876 (auto_language_data): Likewise.
877 * language.h (language_data): Delete la_post_parser field.
878 (language_defn::post_parser): New member function.
879 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
880 * objc-lang.c (objc_language_data): Likewise.
881 * opencl-lang.c (opencl_language_data): Likewise.
882 * p-lang.c (pascal_language_data): Likewise.
883 * parse.c (parse_exp_in_context): Update call to post_parser.
884 (null_post_parser): Delete definition.
885 * parser-defs.h (null_post_parser): Delete declaration.
886 * rust-lang.c (rust_language_data): Delete la_post_parser
887 initializer.
888
87afa652
AB
8892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
890
891 * ada-lang.c (parse): Rename to ada_language::parser.
892 (ada_language_data): Delete la_parser initializer.
893 (ada_language::parser): New member function, implementation from
894 parse.
895 * c-lang.c (c_language_data): Delete la_parser initializer.
896 (cplus_language_data): Likewise.
897 (asm_language_data): Likewise.
898 (minimal_language_data): Likewise.
899 * d-lang.c (d_language_data): Likewise.
900 (d_language::parser): New member function.
901 * f-lang.c (f_language_data): Delete la_parser initializer.
902 (f_language::parser): New member function.
903 * go-lang.c (go_language_data): Delete la_parser initializer.
904 (go_language::parser): New member function.
905 * language.c (unk_lang_parser): Delete.
906 (language_defn::parser): Define new member function.
907 (unknown_language_data): Delete la_parser initializer.
908 (unknown_language::parser): New member function.
909 (auto_language_data): Delete la_parser initializer.
910 (auto_language::parser): New member function.
911 * language.h (language_data): Delete la_parser field.
912 (language_defn::parser): Declare new member function.
913 * m2-lang.c (m2_language_data): Delete la_parser initializer.
914 (m2_language::parser): New member function.
915 * objc-lang.c (objc_language_data): Delete la_parser initializer.
916 * opencl-lang.c (opencl_language_data): Likewise.
917 * p-lang.c (pascal_language_data): Likewise.
918 (pascal_language::parser): New member function.
919 * parse.c (parse_exp_in_context): Update call to parser.
920 * rust-lang.c (rust_language_data): Delete la_parser initializer.
921 (rust_language::parser): New member function.
922
37825800
AB
9232020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
924
925 * top.c (print_gdb_configuration): Print --with-python-libdir
926 configuration value.
927
5b860c93
PW
9282020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
929
930 * NEWS: Mention change to the alias command.
931
cf00cd6f
PW
9322020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
933
934 * cli/cli-cmds.c (lookup_cmd_for_default_args)
935 (alias_command_completer)
936 (make_alias_options_def_group): New functions.
937 (alias_opts, alias_option_defs): New struct and array.
938 (alias_usage_error): Update usage.
939 (alias_command): Handles optional DEFAULT-ARGS... arguments.
940 Use option framework.
941 (_initialize_cli_cmds): Update alias command help.
942 Update aliases command help.
943 (show_user):
944 Add NULL for new default_args lookup_cmd argument.
945 (valid_command_p): Rename to validate_aliased_command.
946 Add NULL for new default_args lookup_cmd argument. Verify that the
947 aliased_command has no default args.
948 * cli/cli-decode.c (help_cmd): Show aliases definitions.
949 (lookup_cmd_1, lookup_cmd): New argument default_args.
950 (add_alias_cmd):
951 Add NULL for new default_args lookup_cmd argument.
952 (print_help_for_command): Show default args under the layout
953 alias some_alias = some_aliased_cmd some_alias_default_arg.
954 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
955 xfree default_args in destructor.
956 * cli/cli-script.c (process_next_line, do_define_command):
957 Add NULL for new default_args lookup_cmd argument.
958 * command.h: Declare new default_args argument in lookup_cmd
959 and lookup_cmd_1.
960 * completer.c (complete_line_internal_1):
961 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
962 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
963 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
964 Likewise.
965 * infcmd.c (_initialize_infcmd): Likewise.
966 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
967 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
968 * python/py-param.c (add_setshow_generic): Likewise.
969 * remote.c (_initialize_remote): Likewise.
970 * top.c (execute_command): Prepend default_args if command has some.
971 (set_verbose):
972 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
973 * tracepoint.c (validate_actionline, encode_actions_1):
974 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
975
bd920864
TBA
9762020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
977
978 * jit.c (jit_read_descriptor): Use bool as the return type.
979 (jit_breakpoint_re_set_internal): Use bool as the return type.
980 Invert the return value logic; return true if the jit breakpoint
981 has been successfully initialized.
982 (jit_inferior_init): Update the call to
983 jit_breakpoint_re_set_internal.
984
f8098322
PA
9852020-06-22 Pedro Alves <palves@redhat.com>
986
987 PR gdb/25939
988 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
989 Use the current inferior instead. Don't return
990 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
991 wait again.
992 * sol-thread.c (sol_thread_target::wait): Don't reference
993 inferior_ptid.
994 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
995 (sol_update_thread_list_callback): Use the current inferior's pid
996 instead of inferior_ptid.
997
196535a6
RO
9982020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
999
1000 * procfs.c: Cleanup many comments.
1001
1002 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1003 (AFTER_WATCHFLAG): Replace by value.
1004
1005 (MAIN_PROC_NAME_FORMAT): Inline ...
1006 (create_procinfo): ... here.
1007
1008 (procfs_debug_inferior): Remove SYS_exec handling.
1009 (syscall_is_exec): Likewise.
1010 (procfs_set_exec_trap): Likewise.
1011
1012 (syscall_is_lwp_exit): Inline in callers.
1013 (syscall_is_exit): Likewise.
1014 (syscall_is_exec): Likewise.
1015 (syscall_is_lwp_create): Likewise.
1016
1017 (invalidate_cache): Remove #if 0 code.
1018
1019 (make_signal_thread_runnable): Remove.
1020 (procfs_target::resume): Remove #if 0 code.
1021
cf6f3e86
RO
10222020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1023
1024 PR gdb/25939
1025 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1026 call ...
1027 (procfs_target::create_inferior): ... here.
1028
48e9cc84
PW
10292020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1030
1031 * exec.c (validate_exec_file): Ensure the build-id is up to
1032 date by calling reopen_exec_file (that checks file timestamp
1033 to decide to re-read the file).
1034
3922b302
PA
10352020-06-18 Pedro Alves <palves@redhat.com>
1036
1037 PR gdb/25412
1038 * gdbthread.h (delete_thread, delete_thread_silent)
1039 (find_thread_ptid): Update comments.
1040 * thread.c (current_thread_): New global.
1041 (is_current_thread): Move higher, and reimplement.
1042 (inferior_thread): Reimplement.
1043 (set_thread_exited): Use bool. Add assertions.
1044 (add_thread_silent): Simplify thread-reuse handling by always
1045 calling delete_thread.
1046 (delete_thread): Remove intro comment.
1047 (find_thread_ptid): Skip exited threads.
1048 (switch_to_thread_no_regs): Write to current_thread_.
1049 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1050 INFERIOR_PTID. Clear current_thread_.
1051
6dbdab44
PA
10522020-06-18 Pedro Alves <palves@redhat.com>
1053
1054 * aix-thread.c (pd_update): Use switch_to_thread.
1055
2da4b788
PA
10562020-06-18 Pedro Alves <palves@redhat.com>
1057
1058 * ravenscar-thread.c (ravenscar_thread_target): Update.
1059 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1060 (ravenscar_thread_target::add_active_thread): ... this. Don't
1061 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1062 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1063
50838d1b
PA
10642020-06-18 Pedro Alves <palves@redhat.com>
1065
1066 * nat/windows-nat.c (current_windows_thread): Remove.
1067 * nat/windows-nat.h (current_windows_thread): Remove.
1068 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1069 Adjust.
1070 (display_selectors): Adjust to fetch the current
1071 windows_thread_info based on inferior_ptid.
1072 (fake_create_process): No longer write to current_windows_thread.
1073 (windows_nat_target::get_windows_debug_event):
1074 Don't set inferior_ptid or current_windows_thread.
1075 (windows_nat_target::wait): Adjust to not rely on
1076 current_windows_thread.
1077 (do_initial_windows_stuff): Now a method of windows_nat_target.
1078 Switch to the last_ptid thread.
1079 (windows_nat_target::attach): Adjust.
1080 (windows_nat_target::detach): Use switch_to_no_thread instead of
1081 writing to inferior_ptid directly.
1082 (windows_nat_target::create_inferior): Adjust.
1083
31ce04e9
PA
10842020-06-18 Pedro Alves <palves@redhat.com>
1085
1086 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1087
1ee1a363
PA
10882020-06-18 Pedro Alves <palves@redhat.com>
1089
1090 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1091 after creating it, instead of writing to inferior_ptid. Don't
1092 write to inferior_ptid.
1093
6d350754
PA
10942020-06-18 Pedro Alves <palves@redhat.com>
1095
1096 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1097
5d971d48
PA
10982020-06-18 Pedro Alves <palves@redhat.com>
1099
1100 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1101 it, instead of writing to inferior_ptid.
1102
86e57d1b
PA
11032020-06-18 Pedro Alves <palves@redhat.com>
1104
1105 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1106 to inferior_ptid.
1107
f2e1c129
PA
11082020-06-18 Pedro Alves <palves@redhat.com>
1109
1110 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1111 instead of writing to inferior_ptid directly.
1112
60db1b85
PA
11132020-06-18 Pedro Alves <palves@redhat.com>
1114
1115 * corelow.c (core_target::close): Use switch_to_no_thread instead
1116 of writing to inferior_ptid directly.
1117 (add_to_thread_list, core_target_open): Use switch_to_thread
1118 instead of writing to inferior_ptid directly.
1119
fe7d6a8d
PA
11202020-06-18 Pedro Alves <palves@redhat.com>
1121
1122 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1123 inferior_ptid.
1124 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1125 inferior_ptid.
1126 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1127 inferior_ptid directly.
1128 (darwin_nat_target::init_thread_list): Switch to thread, instead
1129 of writing to inferior_ptid.
1130 (darwin_nat_target::attach): Don't write to inferior_ptid.
1131 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1132
975f8708
PA
11332020-06-18 Pedro Alves <palves@redhat.com>
1134
1135 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1136 thread.
1137 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1138 Instead use switch_to_thread.
1139 (gnu_nat_target::detach): Use switch_to_no_thread
1140 instead of writing to inferior_ptid directly. Used passed-in
1141 inferior instead of looking up the inferior by pid.
1142
1a204730
PA
11432020-06-18 Pedro Alves <palves@redhat.com>
1144
1145 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1146 inferior_ptid.
1147
ebe84f23
PA
11482020-06-18 Pedro Alves <palves@redhat.com>
1149
1150 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1151 inferior_ptid.
1152 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1153 thread.
1154 (nto_procfs_target::detach): Avoid referencing
1155 inferior_ptid. Use switch_to_no_thread instead of writing to
1156 inferior_ptid directly.
1157 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1158 instead of writing to inferior_ptid directly.
1159 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1160 to thread.
1161
191f02e5
PA
11622020-06-18 Pedro Alves <palves@redhat.com>
1163
1164 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1165 after creating it, instead of writing to inferior_ptid.
1166 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1167 to inferior_ptid directly.
1168 (gdbsim_target::wait): Don't write to inferior_ptid.
1169
0ac55310
PA
11702020-06-18 Pedro Alves <palves@redhat.com>
1171
1172 * remote.c (remote_target::remote_notice_new_inferior): Use
1173 switch_to_thread instead of writing to inferior_ptid directly.
1174 (remote_target::add_current_inferior_and_thread): Use
1175 switch_to_no_thread instead of writing to inferior_ptid directly.
1176 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1177 and switch_to_thread instead of using set_current_inferior or
1178 writing to inferior_ptid directly.
1179
5233f39b
PA
11802020-06-18 Pedro Alves <palves@redhat.com>
1181
1182 * tracectf.c (ctf_target_open): Switch to added thread instead of
1183 writing to inferior_ptid directly.
1184 (ctf_target::close): Use switch_to_no_thread instead of writing to
1185 inferior_ptid directly.
1186
087e161b
PA
11872020-06-18 Pedro Alves <palves@redhat.com>
1188
1189 * tracefile-tfile.c (tfile_target_open): Don't write to
1190 inferior_ptid directly, instead switch to added thread.
1191 (tfile_target::close): Use switch_to_no_thread instead of writing
1192 to inferior_ptid directly.
1193
7fb43e53
PA
11942020-06-18 Pedro Alves <palves@redhat.com>
1195
1196 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1197 (procfs_target::detach): Use switch_to_no_thread
1198 instead of writing to inferior_ptid directly.
1199 (do_attach): Change return type to void. Switch to the added
1200 thread.
1201 (procfs_target::create_inferior): Switch to the added thread.
1202 (procfs_do_thread_registers): Don't write to inferior_ptid.
1203
18493a00
PA
12042020-06-18 Pedro Alves <palves@redhat.com>
1205
1206 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1207 of writing to inferior_ptid.
1208 (scoped_restore_exited_inferior): Delete.
1209 (handle_vfork_child_exec_or_exit): Simplify using
1210 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1211 instead of writing to inferior_ptid.
1212 (THREAD_STOPPED_BY): Delete.
1213 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1214 (thread_stopped_by_hw_breakpoint): Delete.
1215 (save_waitstatus): Use
1216 scoped_restore_current_thread+switch_to_thread, and call
1217 target_stopped_by_watchpoint instead of
1218 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1219 instead of thread_stopped_by_sw_breakpoint, and
1220 target_stopped_by_hw_breakpoint instead of
1221 thread_stopped_by_hw_breakpoint.
1222 (handle_inferior_event)
1223 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1224 inferior_ptid directly, nor
1225 set_current_inferior/set_current_program_space. Use
1226 switch_to_thread / switch_to_inferior_no_thread instead.
1227
a0776b13
PA
12282020-06-18 Pedro Alves <palves@redhat.com>
1229
1230 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1231 instead of writing to inferior_ptid.
1232
6155c136
PA
12332020-06-18 Pedro Alves <palves@redhat.com>
1234
1235 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1236 added thread.
1237 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1238 to the added thread.
1239 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1240 instead of writing to inferior_ptid.
1241
c5316fc6
PA
12422020-06-18 Pedro Alves <palves@redhat.com>
1243
1244 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1245 (register_to_value_test): Mock a program_space too. Heap-allocate
1246 the address space. Don't write to inferior_ptid. Use
1247 switch_to_thread instead.
1248
8df01799
PA
12492020-06-18 Pedro Alves <palves@redhat.com>
1250
1251 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1252 Delete.
1253 (find_signalled_thread()): New, factored out from
1254 linux_make_corefile_notes and adjusted to handle exited threads.
1255 (linux_make_corefile_notes): Adjust to use the new
1256 find_signalled_thread.
1257
41792d68
PA
12582020-06-18 Pedro Alves <palves@redhat.com>
1259
1260 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1261 of saving/restoring inferior_ptid.
1262
612f258a
TT
12632020-06-17 Tom Tromey <tom@tromey.com>
1264
1265 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1266 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1267 declare.
1268 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1269
efb763a5
SM
12702020-06-15 Simon Marchi <simon.marchi@efficios.com>
1271
1272 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1273 of partial symtabs.
1274
2951f6c0
SM
12752020-06-17 Simon Marchi <simon.marchi@efficios.com>
1276
1277 * regformats/reg-arm.dat: Remove.
1278 * regformats/reg-bfin.dat: Remove.
1279 * regformats/reg-cris.dat: Remove.
1280 * regformats/reg-crisv32.dat: Remove.
1281 * regformats/reg-m32r.dat: Remove.
1282 * regformats/reg-tilegx.dat: Remove.
1283 * regformats/reg-tilegx32.dat: Remove.
1284
7d458ea5
SM
12852020-06-17 Simon Marchi <simon.marchi@efficios.com>
1286
1287 * features/Makefile (WHICH): Remove arm files.
1288 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1289 * regformats/arm/arm-with-neon.dat: Remove.
1290 * regformats/arm/arm-with-vfpv2.dat: Remove.
1291 * regformats/arm/arm-with-vfpv3.dat: Remove.
1292
3af96c0d
SM
12932020-06-17 Simon Marchi <simon.marchi@efficios.com>
1294
1295 * features/Makefile (XMLTOC): Remove rx.xml.
1296
b25e22fd
PA
12972020-06-17 Pedro Alves <palves@redhat.com>
1298
1299 * gdbthread.h (thread_control_state) <trap_expected> Update
1300 comments.
1301
a78a19b1
AB
13022020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1303
1304 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1305 ada_language::lookup_symbol_nonlocal.
1306 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1307 (ada_language::lookup_symbol_nonlocal): New member function,
1308 implementation from ada_lookup_symbol_nonlocal.
1309 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1310 initializer.
1311 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1312 initializer.
1313 (cplus_language::lookup_symbol_nonlocal): New member function.
1314 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1315 (minimal_language_data) Likewise.
1316 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1317 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1318 initializer.
1319 (d_language::lookup_symbol_nonlocal): New member function.
1320 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1321 initializer.
1322 (f_language::lookup_symbol_nonlocal): New member function.
1323 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1324 initializer.
1325 * language.c (unknown_language_data): Likewise.
1326 (auto_language_data): Likewise.
1327 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1328 field.
1329 (language_defn::lookup_symbol_nonlocal): New member function.
1330 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1331 initializer.
1332 * objc-lang.c (objc_language_data): Likewise.
1333 * opencl-lang.c (opencl_language_data): Likewise.
1334 * p-lang.c (pascal_language_data): Likewise.
1335 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1336 rust_language::lookup_symbol_nonlocal.
1337 (rust_language_data): Delete la_lookup_symbol_nonlocal
1338 initializer.
1339 (rust_language::lookup_symbol_nonlocal): New member function,
1340 implementation from rust_lookup_symbol_nonlocal.
1341 * symtab.c (lookup_symbol_aux): Update call to
1342 lookup_symbol_nonlocal.
1343 (basic_lookup_symbol_nonlocal): Rename to...
1344 (language_defn::lookup_symbol_nonlocal): ...this, and update
1345 header comment. Remove language_defn parameter, and replace with
1346 uses of `this'.
1347 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1348
ebe2334e
AB
13492020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1350
1351 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1352 initializer.
1353 (ada_language::value_print_inner): New member function.
1354 * c-lang.c (c_language_data): Delete la_value_print_inner
1355 initializer.
1356 (cplus_language_data): Likewise.
1357 (asm_language_data): Likewise.
1358 (minimal_language_data): Likewise.
1359 * d-lang.c (d_language_data): Likewise.
1360 (d_language::value_print_inner): New member function.
1361 * f-lang.c (f_language_data): Delete la_value_print_inner
1362 initializer.
1363 (f_language::value_print_inner): New member function.
1364 * f-lang.h (f_value_print_innner): Rename to...
1365 (f_value_print_inner): ...this (note spelling of 'inner').
1366 * f-valprint.c (f_value_print_innner): Rename to...
1367 (f_value_print_inner): ...this (note spelling of 'inner').
1368 * go-lang.c (go_language_data): Delete la_value_print_inner
1369 initializer.
1370 (go_language::value_print_inner): New member function.
1371 * language.c (language_defn::value_print_inner): Define new member
1372 function.
1373 (unk_lang_value_print_inner): Delete.
1374 (unknown_language_data): Delete la_value_print_inner initializer.
1375 (unknown_language::value_print_inner): New member function.
1376 (auto_language_data): Delete la_value_print_inner initializer.
1377 (auto_language::value_print_inner): New member function.
1378 * language.h (language_data): Delete la_value_print_inner field.
1379 (language_defn::value_print_inner): Delcare new member function.
1380 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1381 initializer.
1382 (m2_language::value_print_inner): New member function.
1383 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1384 initializer.
1385 * opencl-lang.c (opencl_language_data): Likewise.
1386 * p-lang.c (pascal_language_data): Likewise.
1387 (pascal_language::value_print_inner): New member function.
1388 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1389 initializer.
1390 (rust_language::value_print_inner): New member function.
1391 * valprint.c (do_val_print): Update call to value_print_inner.
1392
a1d1fa3e
AB
13932020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1394
1395 * ada-lang.c (ada_language_data): Delete la_value_print
1396 initializer.
1397 (ada_language::value_print): New member function.
1398 * c-lang.c (c_language_data): Delete la_value_print initializer.
1399 (cplus_language_data): Likewise.
1400 (asm_language_data): Likewise.
1401 (minimal_language_data): Likewise.
1402 * d-lang.c (d_language_data): Likewise.
1403 * f-lang.c (f_language_data): Likewise.
1404 * go-lang.c (go_language_data): Likewise.
1405 * language.c (unk_lang_value_print): Delete.
1406 (language_defn::value_print): Define new member function.
1407 (unknown_language_data): Delete la_value_print initializer.
1408 (unknown_language::value_print): New member function.
1409 (auto_language_data): Delete la_value_print initializer.
1410 (auto_language::value_print): New member function.
1411 * language.h (language_data): Delete la_value_print field.
1412 (language_defn::value_print): Declare new member function.
1413 (LA_VALUE_PRINT): Update call to value_print.
1414 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1415 * objc-lang.c (objc_language_data): Likewise.
1416 * opencl-lang.c (opencl_language_data): Likewise.
1417 * p-lang.c (pascal_language_data): Likewise.
1418 (pascal_language::value_print): New member function.
1419 * rust-lang.c (rust_language_data): Delete la_value_print
1420 initializer.
1421
f16a9f57
AB
14222020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1423
1424 * ada-lang.c (ada_watch_location_expression): Rename to
1425 ada_language::watch_location_expression.
1426 (ada_language_data): Delete la_watch_location_expression
1427 initializer.
1428 (ada_language::watch_location_expression): New member function,
1429 implementation from ada_watch_location_expression.
1430 * breakpoint.c (watch_command_1): Update call to
1431 watch_location_expression.
1432 * c-lang.c (c_watch_location_expression): Rename to
1433 language_defn::watch_location_expression.
1434 (c_language_data): Delete la_watch_location_expression
1435 initializer.
1436 (cplus_language_data): Likewise.
1437 (asm_language_data): Likewise.
1438 (minimal_language_data): Likewise.
1439 * c-lang.h (c_watch_location_expression): Delete declaration.
1440 * d-lang.c (d_language_data): Delete la_watch_location_expression
1441 initializer.
1442 * f-lang.c (f_language_data): Likewise.
1443 * go-lang.c (go_language_data): Likewise.
1444 * language.c (language_defn::watch_location_expression): Member
1445 function implementation from c_watch_location_expression.
1446 (unknown_language_data): Delete la_watch_location_expression
1447 initializer.
1448 (auto_language_data): Likewise.
1449 * language.h (language_data): Delete la_watch_location_expression
1450 field.
1451 (language_defn::watch_location_expression): Declare new member
1452 function.
1453 * m2-lang.c (m2_language_data): Delete
1454 la_watch_location_expression initializer.
1455 * objc-lang.c (objc_language_data): Likewise.
1456 * opencl-lang.c (opencl_language_data): Likewise.
1457 * p-lang.c (pascal_language_data): Likewise.
1458 * rust-lang.c (rust_watch_location_expression): Rename to
1459 rust_language::watch_location_expression.
1460 (rust_language_data): Delete la_watch_location_expression
1461 initializer.
1462 (rust_language::watch_location_expression): New member function,
1463 implementation from rust_watch_location_expression.
1464
7e56227d
AB
14652020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1466
1467 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1468 ada_language::collect_symbol_completion_matches.
1469 (ada_language_data): Delete la_collect_symbol_completion_matches
1470 initializer.
1471 (ada_language::collect_symbol_completion_matches): New member
1472 function, implementation from
1473 ada_collect_symbol_completion_matches.
1474 * c-lang.c (c_language_data): Delete
1475 la_collect_symbol_completion_matches initializer.
1476 (cplus_language_data): Likewise.
1477 (asm_language_data): Likewise.
1478 (minimal_language_data): Likewise.
1479 * d-lang.c (d_language_data): Likewise.
1480 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1481 f_language::collect_symbol_completion_matches.
1482 (f_language_data): Delete la_collect_symbol_completion_matches
1483 initializer.
1484 (f_language::collect_symbol_completion_matches) New member
1485 function, implementation from f_collect_symbol_completion_matches.
1486 * go-lang.c (go_language_data): Delete
1487 la_collect_symbol_completion_matches initializer.
1488 * language.c (unknown_language_data): Likewise.
1489 (auto_language_data): Likewise.
1490 * language.h (language_data): Delete
1491 la_collect_symbol_completion_matches field.
1492 (language_defn::collect_symbol_completion_matches): New member
1493 function.
1494 * m2-lang.c (m2_language_data): Delete
1495 la_collect_symbol_completion_matches initializer.
1496 * objc-lang.c (objc_language_data): Likewise.
1497 * opencl-lang.c (opencl_language_data): Likewise.
1498 * p-lang.c (pascal_language_data): Likewise.
1499 * rust-lang.c (rust_language_data): Likewise.
1500 * symtab.c (default_collect_symbol_completion_matches): Delete.
1501 (collect_symbol_completion_matches): Update call to
1502 collect_symbol_completion_matches.
1503 (collect_symbol_completion_matches_type): Likewise.
1504 * symtab.h (default_collect_symbol_completion_matches): Delete
1505 declaration.
1506
53fc67f8
AB
15072020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1508
1509 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1510 (ada_language_data): Delete la_word_break_characters initializer.
1511 (ada_language::word_break_characters): New member function.
1512 * c-lang.c (c_language_data): Delete la_word_break_characters
1513 initializer.
1514 (cplus_language_data): Likewise.
1515 (asm_language_data): Likewise.
1516 (minimal_language_data): Likewise.
1517 * completer.c: Update global comment.
1518 (advance_to_expression_complete_word_point): Update call to
1519 word_break_characters.
1520 (complete_files_symbols): Likewise.
1521 (complete_line_internal_1): Likewise.
1522 (default_completer_handle_brkchars): Likewise.
1523 (skip_quoted_chars): Likewise.
1524 * d-lang.c (d_language_data): Delete la_word_break_characters
1525 initializer.
1526 * f-lang.c (f_word_break_characters): Delete.
1527 (f_language_data): Delete la_word_break_characters initializer.
1528 (f_language::word_break_characters): New member function.
1529 * go-lang.c (go_language_data): Delete la_word_break_characters
1530 initializer.
1531 * language.c (unknown_language_data): Likewise.
1532 (auto_language_data): Likewise.
1533 * language.h (default_word_break_characters): Move declaration to
1534 earlier in the file.
1535 (language_data): Delete la_word_break_characters field.
1536 (language_defn::word_break_characters): New member function.
1537 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1538 initializer.
1539 * objc-lang.c (objc_language_data): Likewise.
1540 * opencl-lang.c (opencl_language_data): Likewise.
1541 * p-lang.c (pascal_language_data): Likewise.
1542 * rust-lang.c (rust_language_data): Likewise.
1543
c9debfb9
AB
15442020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1545
1546 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1547 (ada_language_data): Delete la_get_symbol_name_matcher
1548 initializer.
1549 (language_defn::get_symbol_name_matcher_inner): New member
1550 function.
1551 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1552 initializer.
1553 (cplus_language_data): Likewise.
1554 (cplus_language::get_symbol_name_matcher_inner): New member
1555 function.
1556 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1557 (minimal_language_data): Likewise.
1558 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1559 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1560 initializer.
1561 * dictionary.c (iter_match_first_hashed): Update call to
1562 get_symbol_name_matcher.
1563 (iter_match_next_hashed): Likewise.
1564 (iter_match_next_linear): Likewise.
1565 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1566 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1567 initializer.
1568 (f_language::get_symbol_name_matcher_inner): New member function.
1569 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1570 initializer.
1571 * language.c (default_symbol_name_matcher): Update header comment,
1572 make static.
1573 (language_defn::get_symbol_name_matcher): New definition.
1574 (language_defn::get_symbol_name_matcher_inner): Likewise.
1575 (get_symbol_name_matcher): Delete.
1576 (unknown_language_data): Delete la_get_symbol_name_matcher
1577 initializer.
1578 (auto_language_data): Likewise.
1579 * language.h (language_data): Delete la_get_symbol_name_matcher
1580 field.
1581 (language_defn::get_symbol_name_matcher): New member function.
1582 (language_defn::get_symbol_name_matcher_inner): Likewise.
1583 (default_symbol_name_matcher): Delete declaration.
1584 * linespec.c (find_methods): Update call to
1585 get_symbol_name_matcher.
1586 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1587 initializer.
1588 * minsyms.c (lookup_minimal_symbol): Update call to
1589 get_symbol_name_matcher.
1590 (iterate_over_minimal_symbols): Likewise.
1591 * objc-lang.c (objc_language_data): Delete
1592 la_get_symbol_name_matcher initializer.
1593 * opencl-lang.c (opencl_language_data): Likewise.
1594 * p-lang.c (pascal_language_data): Likewise.
1595 * psymtab.c (psymbol_name_matches): Update call to
1596 get_symbol_name_matcher.
1597 * rust-lang.c (rust_language_data): Delete
1598 la_get_symbol_name_matcher initializer.
1599 * symtab.c (symbol_matches_search_name): Update call to
1600 get_symbol_name_matcher.
1601 (compare_symbol_name): Likewise.
1602
9a49ad8c
AB
16032020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1604
1605 * ada-lang.c (ada_language_data): Delete la_compute_program
1606 initializer.
1607 * c-lang.c (c_language_data): Likewise.
1608 (c_language::compute_program): New member function.
1609 (cplus_language_data): Delete la_compute_program initializer.
1610 (cplus_language::compute_program): New member function.
1611 (asm_language_data): Delete la_compute_program initializer.
1612 (minimal_language_data): Likewise.
1613 * c-lang.h (c_compute_program): Update comment.
1614 (cplus_compute_program): Likewise.
1615 * compile/compile-c-support.c (c_compute_program): Likewise.
1616 (cplus_compute_program): Likewise.
1617 * compile/compile.c (compile_to_object): Update call to
1618 la_compute_program.
1619 * d-lang.c (d_language_data): Delete la_compute_program
1620 initializer.
1621 * f-lang.c (f_language_data): Likewise.
1622 * go-lang.c (go_language_data): Likewise.
1623 * language.c (unknown_language_data): Likewise.
1624 (auto_language_data): Likewise.
1625 * language.h (language_data): Delete la_compute_program field.
1626 (language_defn::compute_program): New member function.
1627 * m2-lang.c (m2_language_data): Delete la_compute_program
1628 initializer.
1629 * objc-lang.c (objc_language_data): Likewise.
1630 * opencl-lang.c (opencl_language_data): Likewise.
1631 * p-lang.c (pascal_language_data): Likewise.
1632 * rust-lang.c (rust_language_data): Likewise.
1633
eff93b4d
AB
16342020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1635
1636 * ada-lang.c (ada_language_data) Delete
1637 la_class_name_from_physname initializer.
1638 * c-lang.c (c_language_data): Likewise.
1639 (cplus_language_data): Likewise.
1640 (cplus_language::class_name_from_physname): New member function.
1641 (asm_language_data): Delete la_class_name_from_physname
1642 initializer.
1643 (minimal_language_data): Likewise.
1644 * d-lang.c (d_language_data): Likewise.
1645 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1646 method on language_defn class.
1647 (guess_full_die_structure_name): Likewise.
1648 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1649 initializer.
1650 * go-lang.c (go_language_data): Likewise.
1651 * language.c (language_class_name_from_physname): Delete.
1652 (unk_lang_class_name): Delete.
1653 (unknown_language_data): Delete la_class_name_from_physname
1654 initializer.
1655 (auto_language_data): Likewise.
1656 * language.h (language_data): Delete la_class_name_from_physname
1657 field.
1658 (language_defn::class_name_from_physname): New function.
1659 (language_class_name_from_physname): Delete declaration.
1660 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1661 initializer.
1662 * objc-lang.c (objc_language_data): Likewise.
1663 * opencl-lang.c (opencl_language_data): Likewise.
1664 * p-lang.c (pascal_language_data): Likewise.
1665 * rust-lang.c (rust_language_data): Likewise.
1666
de543742
TT
16672020-06-16 Tom Tromey <tom@tromey.com>
1668
1669 * tui/tui-data.h (STATUS_NAME): New macro.
1670 * tui/tui-layout.c (tui_remove_some_windows)
1671 (initialize_known_windows, tui_register_window)
1672 (tui_layout_split::remove_windows, initialize_layouts)
1673 (tui_new_layout_command): Don't use hard-coded window names.
1674
a350efd4
TT
16752020-06-16 Tom Tromey <tom@tromey.com>
1676
1677 PR tui/25348:
1678 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1679 tui_initialize_readline. Only run once. Call rl_initialize.
1680 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1681 tui_initialize_readline.
1682 * tui/tui-io.c (tui_setup_io): Call
1683 tui_ensure_readline_initialized.
1684 * tui/tui-interp.c (tui_interp::init): Update.
1685
39ec0490
TT
16862020-06-16 Tom Tromey <tom@tromey.com>
1687
1688 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1689 Also preserve the status window.
1690
d2d1ea20
TT
16912020-06-16 Tom Tromey <tom@tromey.com>
1692
1693 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1694 where m_window==nullptr.
1695
66920317
TT
16962020-06-15 Tom Tromey <tromey@adacore.com>
1697
1698 * windows-nat.c (windows_nat::handle_output_debug_string):
1699 Update.
1700 (windows_nat::handle_ms_vc_exception): Update.
1701 * target.h (target_read_string): Change API.
1702 * target.c (target_read_string): Change API.
1703 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1704 Update.
1705 * solib-frv.c (frv_current_sos): Update.
1706 * solib-dsbt.c (dsbt_current_sos): Update.
1707 * solib-darwin.c (darwin_current_sos): Update.
1708 * linux-thread-db.c (inferior_has_bug): Update.
1709 * expprint.c (print_subexp_standard): Update.
1710 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1711 (ada_exception_message_1): Update.
1712
a5d871dd
TT
17132020-06-15 Tom Tromey <tromey@adacore.com>
1714
1715 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1716
670e35fa
TT
17172020-06-15 Tom Tromey <tromey@adacore.com>
1718
1719 * valprint.c (read_string): Update comment.
1720 * target.c (MIN): Remove.
1721 (target_read_string): Rewrite.
1722
f5272a3b
TT
17232020-06-15 Tom Tromey <tromey@adacore.com>
1724
1725 * corefile.c (read_memory_string): Remove.
1726 * ada-valprint.c (ada_value_print_ptr): Update.
1727 * ada-lang.h (ada_tag_name): Change return type.
1728 * ada-lang.c (type_from_tag): Update.
1729 (ada_tag_name_from_tsd): Change return type. Use
1730 target_read_string.
1731 (ada_tag_name): Likewise.
1732 * gdbcore.h (read_memory_string): Don't declare.
1733
2c074f49
HD
17342020-06-14 Hannes Domani <ssbssa@yahoo.de>
1735
1736 * symtab.c (rbreak_command): Ignore Windows drive colon.
1737
6a17d503
SM
17382020-06-12 Simon Marchi <simon.marchi@efficios.com>
1739
1740 * NEWS: Mention removed GDBserver host support.
1741
453c733f
NC
17422020-06-12 Nelson Chu <nelson.chu@sifive.com>
1743
1744 * features/riscv/rebuild-csr-xml.sh: Updated.
1745
2b4e6a3f
TT
17462020-06-11 Tom Tromey <tom@tromey.com>
1747
1748 PR gdb/18318:
1749 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1750
4412332f
JG
17512020-06-09 Jonny Grant <jg@jguk.org>
17522020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1753
1754 * main.c (captured_main_1): Don't print new line after help.
1755 (print_gdb_help): add mailing list and IRC channel information
1756 to --help. Add new lines between items in the footer. Remove
1757 quotes around bug url.
1758
2f33032a
KS
17592020-06-11 Keith Seitz <keiths@redhat.com>
1760
1761 PR gdb/21356
1762 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1763 Resolve typedefs for type length calculations.
1764
7ab96794
TV
17652020-06-10 Tom de Vries <tdevries@suse.de>
1766
1767 PR ada/24713
1768 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1769 (write_psymbols): Enable .gdb_index for ada.
1770 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1771 ada.
1772
e5f3ece2
TV
17732020-06-10 Tom de Vries <tdevries@suse.de>
1774
1775 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1776 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1777 namei" instead of "const char *name" argument.
1778 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1779 dw2_symtab_iter_init.
1780
940da03e
SM
17812020-06-08 Simon Marchi <simon.marchi@efficios.com>
1782
1783 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1784 to use type::field and field::type instead.
1785
b6cdac4b
SM
17862020-06-08 Simon Marchi <simon.marchi@efficios.com>
1787
1788 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1789 to use field::type instead.
1790
5d14b6e5
SM
17912020-06-08 Simon Marchi <simon.marchi@efficios.com>
1792
1793 * gdbtypes.h (struct field) <type, set_type>: New methods.
1794 Rename `type` field to...
1795 <m_type>: ... this. Change references throughout to use type or
1796 set_type methods.
1797 (FIELD_TYPE): Use field::type. Change call sites that modify
1798 the field's type to use field::set_type instead.
1799
3d967001
SM
18002020-06-08 Simon Marchi <simon.marchi@efficios.com>
1801
1802 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1803 to use type::index_type instead.
1804
262abc0d
SM
18052020-06-08 Simon Marchi <simon.marchi@efficios.com>
1806
1807 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1808 methods.
1809 (TYPE_INDEX_TYPE): Use type::index_type.
1810 * gdbtypes.c (create_array_type_with_stride): Likewise.
1811
82836c92
TT
18122020-06-07 Tom Tromey <tom@tromey.com>
1813
1814 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1815 parameter.
1816 (generic_value_print): Update.
1817
940dace9
AB
18182020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1819
1820 Revert commit 982a38f60b0.
1821 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1822
982a38f6
AB
18232020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1824
1825 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1826 avoid use after free.
1827
82f06518
TV
18282020-06-05 Tom de Vries <tdevries@suse.de>
1829
1830 * NEWS: Fix typos.
1831
f8c41851
SM
18322020-06-04 Simon Marchi <simon.marchi@efficios.com>
1833
1834 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1835 the per_bfd object.
1836 (dwarf2_read_debug_names): Likewise.
1837 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1838 object when re-using a per_bfd object with an index.
1839
f9b5d5ea
TV
18402020-06-03 Tom de Vries <tdevries@suse.de>
1841
1842 PR symtab/26046
1843 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1844 children for C++.
1845 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1846 DW_TAG_subprogram.
1847
f6eee2d0
AB
18482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1849
1850 * ada-lang.c (ada_language_data): Delete skip_trampoline
1851 initializer.
1852 * c-lang.c (c_language_data): Likewise.
1853 (cplus_language_data): Likewise.
1854 (cplus_language::skip_trampoline): New member function.
1855 (asm_language_data): Delete skip_trampoline initializer.
1856 (minimal_language_data): Likewise.
1857 * d-lang.c (d_language_data): Likewise.
1858 * f-lang.c (f_language_data): Likewise.
1859 * go-lang.c (go_language_data): Likewise.
1860 * language.c (unk_lang_trampoline): Delete function.
1861 (skip_language_trampoline): Update.
1862 (unknown_language_data): Delete skip_trampoline initializer.
1863 (auto_language_data): Likewise.
1864 * language.h (language_data): Delete skip_trampoline field.
1865 (language_defn::skip_trampoline): New function.
1866 * m2-lang.c (m2_language_data): Delete skip_trampoline
1867 initializer.
1868 * objc-lang.c (objc_skip_trampoline): Delete function, move
1869 implementation to objc_language::skip_trampoline.
1870 (objc_language_data): Delete skip_trampoline initializer.
1871 (objc_language::skip_trampoline): New member function with
1872 implementation from objc_skip_trampoline.
1873 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1874 initializer.
1875 * p-lang.c (pascal_language_data): Likewise.
1876 * rust-lang.c (rust_language_data): Likewise.
1877
0a50df5d
AB
18782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1879
1880 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1881 (ada_language::demangle): New member function.
1882 * c-lang.c (c_language_data): Delete la_demangle initializer.
1883 (cplus_language_data): Delete la_demangle initializer.
1884 (cplus_language::demangle): New member function.
1885 (asm_language_data): Delete la_demangle initializer.
1886 (minimal_language_data): Delete la_demangle initializer.
1887 * d-lang.c (d_language_data): Delete la_demangle initializer.
1888 (d_language::demangle): New member function.
1889 * f-lang.c (f_language_data): Delete la_demangle initializer.
1890 (f_language::demangle): New member function.
1891 * go-lang.c (go_language_data): Delete la_demangle initializer.
1892 (go_language::demangle): New member function.
1893 * language.c (language_demangle): Update.
1894 (unk_lang_demangle): Delete.
1895 (unknown_language_data): Delete la_demangle initializer.
1896 (unknown_language::demangle): New member function.
1897 (auto_language_data): Delete la_demangle initializer.
1898 (auto_language::demangle): New member function.
1899 * language.h (language_data): Delete la_demangle field.
1900 (language_defn::demangle): New function.
1901 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1902 * objc-lang.c (objc_language_data): Delete la_demangle
1903 initializer.
1904 (objc_language::demangle): New member function.
1905 * opencl-lang.c (opencl_language_data): Delete la_demangle
1906 initializer.
1907 * p-lang.c (pascal_language_data): Likewise.
1908 * rust-lang.c (rust_language_data): Likewise.
1909 (rust_language::demangle): New member function.
1910
fbfb0a46
AB
19112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1912
1913 * ada-lang.c (ada_language_data): Delete la_print_type
1914 initializer.
1915 (ada_language::print_type): New member function.
1916 * c-lang.c (c_language_data): Delete la_print_type initializer.
1917 (c_language::print_type): New member function.
1918 (cplus_language_data): Delete la_print_type initializer.
1919 (cplus_language::print_type): New member function.
1920 (asm_language_data): Delete la_print_type initializer.
1921 (asm_language::print_type): New member function.
1922 (minimal_language_data): Delete la_print_type initializer.
1923 (minimal_language::print_type): New member function.
1924 * d-lang.c (d_language_data): Delete la_print_type initializer.
1925 (d_language::print_type): New member function.
1926 * f-lang.c (f_language_data): Delete la_print_type initializer.
1927 (f_language::print_type): New member function.
1928 * go-lang.c (go_language_data): Delete la_print_type initializer.
1929 (go_language::print_type): New member function.
1930 * language.c (unk_lang_print_type): Delete.
1931 (unknown_language_data): Delete la_print_type initializer.
1932 (unknown_language::print_type): New member function.
1933 (auto_language_data): Delete la_print_type initializer.
1934 (auto_language::print_type): New member function.
1935 * language.h (language_data): Delete la_print_type field.
1936 (language_defn::print_type): New function.
1937 (LA_PRINT_TYPE): Update.
1938 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1939 (m2_language::print_type): New member function.
1940 * objc-lang.c (objc_language_data): Delete la_print_type
1941 initializer.
1942 (objc_language::print_type): New member function.
1943 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1944 to opencl_language::print_type.
1945 (opencl_language_data): Delete la_print_type initializer.
1946 (opencl_language::print_type): New member function, implementation
1947 from opencl_print_type.
1948 * p-lang.c (pascal_language_data): Delete la_print_type
1949 initializer.
1950 (pascal_language::print_type): New member function.
1951 * rust-lang.c (rust_print_type): Delete, implementation moved to
1952 rust_language::print_type.
1953 (rust_language_data): Delete la_print_type initializer.
1954 (rust_language::print_type): New member function, implementation
1955 from rust_print_type.
1956
6f827019
AB
19572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1958
1959 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1960 implementation moves to...
1961 (ada_language::sniff_from_mangled_name): ...here. Update return
1962 type.
1963 (ada_language_data): Delete la_sniff_from_mangled_name
1964 initializer.
1965 * c-lang.c (c_language_data): Likewise.
1966 (cplus_language_data): Likewise.
1967 (cplus_language::sniff_from_mangled_name): New member function,
1968 implementation taken from gdb_sniff_from_mangled_name.
1969 (asm_language_data): Delete la_sniff_from_mangled_name
1970 initializer.
1971 (minimal_language_data): Likewise.
1972 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1973 implementation moves to cplus_language::sniff_from_mangled_name.
1974 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1975 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1976 moves to...
1977 (d_language::sniff_from_mangled_name): ...here.
1978 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1979 * f-lang.c (f_language_data): Likewise.
1980 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1981 moves to...
1982 (go_language::sniff_from_mangled_name): ...here.
1983 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1984 * language.c (language_sniff_from_mangled_name): Delete.
1985 (unknown_language_data): Delete la_sniff_from_mangled_name
1986 initializer.
1987 (auto_language_data): Likewise.
1988 * language.h (language_data): Delete la_sniff_from_mangled_name
1989 field.
1990 (language_defn::sniff_from_mangled_name): New function.
1991 (language_sniff_from_mangled_name): Delete declaration.
1992 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1993 field.
1994 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1995 implementation moves to...
1996 (objc_language::sniff_from_mangled_name): ...here.
1997 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1998 * opencl-lang.c (opencl_language_data): Likewise.
1999 * p-lang.c (pascal_language_data): Likewise.
2000 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2001 implementation moves to...
2002 (rust_language::sniff_from_mangled_name): ...here.
2003 (rust_language_data): Delete la_sniff_from_mangled_name
2004 initializer.
2005 * symtab.c (symbol_find_demangled_name): Call
2006 sniff_from_mangled_name member function.
2007
fb8006fd
AB
20082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2009
2010 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2011 initializer.
2012 * c-lang.c (c_language_data): Likewise.
2013 (cplus_language_data): Likewise.
2014 (cplus_language::search_name_hash): New member function.
2015 (asm_language_data): Delete la_search_name_hash initializer.
2016 (minimal_language_data): Likewise.
2017 * d-lang.c (d_language_data): Likewise.
2018 * dictionary.c (default_search_name_hash): Rename to...
2019 (language_defn::search_name_hash): ...this.
2020 * f-lang.c (f_language_data): Likewise.
2021 (f_language::search_name_hash): New member function.
2022 * go-lang.c (go_language_data): Delete la_search_name_hash
2023 initializer.
2024 * language.c (unknown_language_data): Likewise.
2025 (auto_language_data): Likewise.
2026 * language.h (struct language_data): Delete la_search_name_hash
2027 field.
2028 (language_defn::search_name_hash): Declare new member function.
2029 (default_search_name_hash): Delete declaration.
2030 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2031 initializer.
2032 * objc-lang.c (objc_language_data): Likewise.
2033 * opencl-lang.c (opencl_language_data): Likewise.
2034 * p-lang.c (pascal_language_data): Likewise.
2035 * rust-lang.c (rust_language_data): Likewise.
2036 * symtab.c (search_name_hash): Update call.
2037
8e25bafe
AB
20382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2039
2040 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2041 initializer.
2042 * c-lang.c (class compile_instance): Declare.
2043 (c_language_data): Delete la_get_compile_instance initializer.
2044 (c_language::get_compile_instance): New member function.
2045 (cplus_language_data): Delete la_get_compile_instance initializer.
2046 (cplus_language::get_compile_instance): New member function.
2047 (asm_language_data): Delete la_get_compile_instance initializer.
2048 (minimal_language_data): Likewise.
2049 * c-lang.h (c_get_compile_context): Update comment.
2050 (cplus_get_compile_context): Update comment.
2051 * compile/compile.c (compile_to_object): Update calls, don't rely
2052 on function pointer being NULL.
2053 * d-lang.c (d_language_data): Delete la_get_compile_instance
2054 initializer.
2055 * f-lang.c (f_language_data): Likewise.
2056 * go-lang.c (go_language_data): Likewise.
2057 * language.c (unknown_language_data): Likewise.
2058 (auto_language_data): Likewise.
2059 * language.h (language_data): Delete la_get_compile_instance field.
2060 (language_defn::get_compile_instance): New member function.
2061 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2062 initializer.
2063 * objc-lang.c (objc_language_data): Likewise.
2064 * opencl-lang.c (opencl_language_data): Likewise.
2065 * p-lang.c (pascal_language_data): Likewise.
2066 * rust-lang.c (rust_language_data): Likewise.
2067
4009ee92
AB
20682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2069
2070 * ada-lang.c (ada_add_all_symbols): Update comment.
2071 (ada_iterate_over_symbols): Delete, move implementation to...
2072 (ada_language::iterate_over_symbols): ...here, a new member
2073 function, rewrite to use range based for loop.
2074 (ada_language_data): Delete la_iterate_over_symbols initializer.
2075 * c-lang.c (c_language_data): Likewise.
2076 (cplus_language_data): Likewise.
2077 (asm_language_data): Likewise.
2078 (minimal_language_data): Likewise.
2079 * d-lang.c (d_language_data): Likewise.
2080 * f-lang.c (f_language_data): Likewise.
2081 * go-lang.c (go_language_data): Likewise.
2082 * language.c (unknown_language_data): Likewise.
2083 (auto_language_data): Likewise.
2084 * language.h (language_data): Delete la_iterate_over_symbols field.
2085 (language_defn::iterate_over_symbols): New member function.
2086 (LA_ITERATE_OVER_SYMBOLS): Update.
2087 * linespec.c (iterate_over_all_matching_symtabs): Update.
2088 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2089 initializer.
2090 * objc-lang.c (objc_language_data): Likewise.
2091 * opencl-lang.c (opencl_language_data): Likewise.
2092 * p-lang.c (pascal_language_data): Likewise.
2093 * rust-lang.c (rust_language_data): Likewise.
2094
54f4ca46
AB
20952020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2096
2097 * ada-lang.c (ada_language_data): Delete
2098 la_lookup_transparent_type initializer.
2099 * c-lang.c (c_language_data): Likewise.
2100 (cplus_language_data): Likewise.
2101 (cplus_language::lookup_transparent_type): New member function.
2102 (asm_language_data): Delete la_lookup_transparent_type
2103 initializer.
2104 (minimal_language_data): Likewise.
2105 * d-lang.c (d_language_data): Likewise.
2106 * f-lang.c (f_language_data): Likewise.
2107 * go-lang.c (go_language_data): Likewise.
2108 * language.c (unknown_language_data): Likewise.
2109 (auto_language_data): Likewise.
2110 * language.h (struct language_data): Delete
2111 la_lookup_transparent_type field.
2112 (language_defn::lookup_transparent_type): New member function.
2113 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2114 initializer.
2115 * objc-lang.c (objc_language_data): Likewise.
2116 * opencl-lang.c (opencl_language_data): Likewise.
2117 * p-lang.c (pascal_language_data): Likewise.
2118 * rust-lang.c (rust_language_data): Likewise.
2119 * symtab.c (symbol_matches_domain): Update call.
2120
1fb314aa
AB
21212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2122
2123 * ada-lang.c (ada_language_arch_info): Delete function, move
2124 implementation to...
2125 (ada_language::language_arch_info): ...here, a new member
2126 function.
2127 (ada_language_data): Delete la_language_arch_info.
2128 * c-lang.c (c_language_data): Likewise.
2129 (c_language::language_arch_info): New member function.
2130 (cplus_language_arch_info): Delete function, move
2131 implementation to...
2132 (cplus_language::language_arch_info): ...here, a new member
2133 function.
2134 (cplus_language_data): Delete la_language_arch_info.
2135 (asm_language_data): Likewise.
2136 (asm_language::language_arch_info): New member function.
2137 (minimal_language_data): Delete la_language_arch_info.
2138 (minimal_language::language_arch_info): New member function.
2139 * d-lang.c (d_language_arch_info): Delete function, move
2140 implementation to...
2141 (d_language::language_arch_info): ...here, a new member
2142 function.
2143 (d_language_data): Delete la_language_arch_info.
2144 * f-lang.c (f_language_arch_info): Delete function, move
2145 implementation to...
2146 (f_language::language_arch_info): ...here, a new member
2147 function.
2148 (f_language_data): Delete la_language_arch_info.
2149 * go-lang.c (go_language_arch_info): Delete function, move
2150 implementation to...
2151 (go_language::language_arch_info): ...here, a new member
2152 function.
2153 (go_language_data): Delete la_language_arch_info.
2154 * language.c (unknown_language_data): Likewise.
2155 (unknown_language::language_arch_info): New member function.
2156 (auto_language_data): Delete la_language_arch_info.
2157 (auto_language::language_arch_info): New member function.
2158 (language_gdbarch_post_init): Update call to
2159 la_language_arch_info.
2160 * language.h (language_data): Delete la_language_arch_info
2161 function pointer.
2162 (language_defn::language_arch_info): New function.
2163 * m2-lang.c (m2_language_arch_info): Delete function, move
2164 implementation to...
2165 (m2_language::language_arch_info): ...here, a new member
2166 function.
2167 (m2_language_data): Delete la_language_arch_info.
2168 * objc-lang.c (objc_language_arch_info): Delete function, move
2169 implementation to...
2170 (objc_language::language_arch_info): ...here, a new member
2171 function.
2172 (objc_language_data): Delete la_language_arch_info.
2173 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2174 implementation to...
2175 (opencl_language::language_arch_info): ...here, a new member
2176 function.
2177 (opencl_language_data): Delete la_language_arch_info.
2178 * p-lang.c (pascal_language_arch_info): Delete function, move
2179 implementation to...
2180 (pascal_language::language_arch_info): ...here, a new member
2181 function.
2182 (pascal_language_data): Delete la_language_arch_info.
2183 * rust-lang.c (rust_language_arch_info): Delete function, move
2184 implementation to...
2185 (rust_language::language_arch_info): ...here, a new member
2186 function.
2187 (rust_language_data): Delete la_language_arch_info.
2188
48448202
AB
21892020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2190
2191 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2192 initializer.
2193 * c-lang.c (c_language_data): Likewise.
2194 (cplus_language_data): Likewise.
2195 (cplus_language::pass_by_reference_info): New method.
2196 (asm_language_data): Delete la_pass_by_reference initializer.
2197 (minimal_language_data): Likewise.
2198 * cp-abi.c (cp_pass_by_reference): Remove use of
2199 default_pass_by_reference.
2200 * d-lang.c (d_language_data): Likewise.
2201 * f-lang.c (f_language_data): Likewise.
2202 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2203 default_pass_by_reference.
2204 * go-lang.c (go_language_data): Likewise.
2205 * language.c (language_pass_by_reference): Update.
2206 (default_pass_by_reference): Delete.
2207 (unknown_language_data): Delete la_pass_by_reference
2208 initializer.
2209 (auto_language_data): Likewise.
2210 * language.h (struct language_data): Delete la_pass_by_reference
2211 field.
2212 (language_defn::pass_by_reference_info): New member function.
2213 (default_pass_by_reference): Delete declaration.
2214 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2215 initializer.
2216 * objc-lang.c (objc_language_data): Likewise.
2217 * opencl-lang.c (opencl_language_data): Likewise.
2218 * p-lang.c (pascal_language_data): Likewise.
2219 * rust-lang.c (rust_language_data): Likewise.
2220
15e5fd35
AB
22212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2222
2223 * ada-lang.c (ada_read_var_value): Delete function, move
2224 implementation to...
2225 (ada_language::read_var_value): ...here.
2226 (ada_language_data): Delete la_read_var_value initializer.
2227 * c-lang.c (c_language_data): Likewise.
2228 (cplus_language_data): Likewise.
2229 (minimal_language_data): Likewise.
2230 * d-lang.c (d_language_data): Likewise.
2231 * f-lang.c (f_language_data): Likewise.
2232 * findvar.c (default_read_var_value): Rename to...
2233 (language_defn::read_var_value): ...this.
2234 * findvar.c (read_var_value): Update header comment, and change to
2235 call member function instead of function pointer.
2236 * go-lang.c (go_language_data): Likewise.
2237 * language.c (unknown_language_data): Delete la_read_var_value
2238 initializer.
2239 (auto_language_data): Likewise.
2240 * language.h (struct language_data): Delete la_read_var_value
2241 field.
2242 (language_defn::read_var_value): New member function.
2243 (default_read_var_value): Delete declaration.
2244 * m2-lang.c (m2_language_data): Delete la_read_var_value
2245 initializer.
2246 * objc-lang.c (objc_language_data): Likewise.
2247 * opencl-lang.c (opencl_language_data): Likewise.
2248 * p-lang.c (pascal_language_data): Likewise.
2249 * rust-lang.c (rust_language_data): Likewise.
2250 * value.h (default_read_var_value): Delete declaration.
2251
5bd40f2a
AB
22522020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2253
2254 * ada-lang.c (ada_print_array_index): Delete function, move
2255 implementation to...
2256 (ada_language::print_array_index): ...here.
2257 (ada_language_data): Delete la_print_array_index initializer.
2258 * c-lang.c (c_language_data): Likewise.
2259 (cplus_language_data): Likewise.
2260 (minimal_language_data): Likewise.
2261 * d-lang.c (d_language_data): Likewise.
2262 * f-lang.c (f_language_data): Likewise.
2263 * go-lang.c (go_language_data): Likewise.
2264 * language.c (default_print_array_index): Delete function, move
2265 implementation to...
2266 (language_defn::print_array_index): ...here.
2267 (unknown_language_data): Delete la_print_array_index initializer.
2268 (auto_language_data): Likewise.
2269 * language.h (struct language_data): Delete la_print_array_index
2270 field.
2271 (language_defn::print_array_index): New member function.
2272 (LA_PRINT_ARRAY_INDEX): Update.
2273 (default_print_array_index): Delete declaration.
2274 * m2-lang.c (m2_language_data): Delete la_print_array_index
2275 initializer.
2276 * objc-lang.c (objc_language_data): Likewise.
2277 * opencl-lang.c (opencl_language_data): Likewise.
2278 * p-lang.c (pascal_language_data): Likewise.
2279 * rust-lang.c (rust_language_data): Likewise.
2280
0874fd07
AB
22812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2282
2283 * gdb/ada-lang.c (ada_language_defn): Convert to...
2284 (ada_language_data): ...this.
2285 (class ada_language): New class.
2286 (ada_language_defn): New static global.
2287 * gdb/c-lang.c (c_language_defn): Convert to...
2288 (c_language_data): ...this.
2289 (class c_language): New class.
2290 (c_language_defn): New static global.
2291 (cplus_language_defn): Convert to...
2292 (cplus_language_data): ...this.
2293 (class cplus_language): New class.
2294 (cplus_language_defn): New static global.
2295 (asm_language_defn): Convert to...
2296 (asm_language_data): ...this.
2297 (class asm_language): New class.
2298 (asm_language_defn): New static global.
2299 (minimal_language_defn): Convert to...
2300 (minimal_language_data): ...this.
2301 (class minimal_language): New class.
2302 (minimal_language_defn): New static global.
2303 * gdb/d-lang.c (d_language_defn): Convert to...
2304 (d_language_data): ...this.
2305 (class d_language): New class.
2306 (d_language_defn): New static global.
2307 * gdb/f-lang.c (f_language_defn): Convert to...
2308 (f_language_data): ...this.
2309 (class f_language): New class.
2310 (f_language_defn): New static global.
2311 * gdb/go-lang.c (go_language_defn): Convert to...
2312 (go_language_data): ...this.
2313 (class go_language): New class.
2314 (go_language_defn): New static global.
2315 * gdb/language.c (unknown_language_defn): Remove declaration.
2316 (current_language): Initialize to nullptr, real initialization is
2317 moved to _initialize_language.
2318 (languages): Delete global.
2319 (language_defn::languages): Define.
2320 (set_language_command): Use language_defn::languages.
2321 (set_language): Likewise.
2322 (range_error): Likewise.
2323 (language_enum): Likewise.
2324 (language_def): Likewise.
2325 (add_set_language_command): Use language_def::languages for the
2326 language list, and language_def to lookup language pointers.
2327 (skip_language_trampoline): Use language_defn::languages.
2328 (unknown_language_defn): Convert to...
2329 (unknown_language_data): ...this.
2330 (class unknown_language): New class.
2331 (unknown_language_defn): New static global.
2332 (auto_language_defn): Convert to...
2333 (auto_language_data): ...this.
2334 (class auto_language): New class.
2335 (auto_language_defn): New static global.
2336 (language_gdbarch_post_init): Use language_defn::languages.
2337 (_initialize_language): Initialize current_language.
2338 * gdb/language.h (struct language_defn): Rename to...
2339 (struct language_data): ...this.
2340 (struct language_defn): New.
2341 (auto_language_defn): Delete.
2342 (unknown_language_defn): Delete.
2343 (minimal_language_defn): Delete.
2344 (ada_language_defn): Delete.
2345 (asm_language_defn): Delete.
2346 (c_language_defn): Delete.
2347 (cplus_language_defn): Delete.
2348 (d_language_defn): Delete.
2349 (f_language_defn): Delete.
2350 (go_language_defn): Delete.
2351 (m2_language_defn): Delete.
2352 (objc_language_defn): Delete.
2353 (opencl_language_defn): Delete.
2354 (pascal_language_defn): Delete.
2355 (rust_language_defn): Delete.
2356 * gdb/m2-lang.c (m2_language_defn): Convert to...
2357 (m2_language_data): ...this.
2358 (class m2_language): New class.
2359 (m2_language_defn): New static global.
2360 * gdb/objc-lang.c (objc_language_defn): Convert to...
2361 (objc_language_data): ...this.
2362 (class objc_language): New class.
2363 (objc_language_defn): New static global.
2364 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2365 (opencl_language_data): ...this.
2366 (class opencl_language): New class.
2367 (opencl_language_defn): New static global.
2368 * gdb/p-lang.c (pascal_language_defn): Convert to...
2369 (pascal_language_data): ...this.
2370 (class pascal_language): New class.
2371 (pascal_language_defn): New static global.
2372 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2373 language pointer, update comment format.
2374 * gdb/rust-lang.c (rust_language_defn): Convert to...
2375 (rust_language_data): ...this.
2376 (class rust_language): New class.
2377 (rust_language_defn): New static global.
2378
1313c56e
AB
23792020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2380
2381 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2382 member variable.
2383 <m_stmt_at_address>: New member variable.
2384 (lnp_state_machine::record_line): Don't record some lines, update
2385 tracking of is_stmt at the same address.
2386 (lnp_state_machine::lnp_state_machine): Initialise new member
2387 variables.
2388
b7ed9f3d
ST
23892020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2390
2391 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2392 "-include gnu-nat-mig.h".
2393 * gnu-nat-mig.h: New file.
2394 * gnu-nat.c: Include "gnu-nat-mig.h".
2395 (exc_server, msg_reply_server, notify_server,
2396 process_reply_server): Remove declarations.
2397
14a8ad62
ST
23982020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2399
2400 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2401 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2402 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2403 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2404 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2405 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2406 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2407 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2408 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2409 to gnu_nat_target class.
2410 * gnu-nat.c: Likewise.
2411 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2412 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2413 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2414 object.
2415 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2416 instead of `gnu_target'.
2417
0af5e106
ST
24182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2419
2420 * i386-gnu-tdep.c: Include "gdbcore.h"
2421 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2422 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2423 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2424 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2425 i386_gnu_sigcontext_addr): New functions
2426 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2427 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2428 tdep.
2429
078f2fc9
ST
24302020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2431
2432 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2433 before fork_inferior call. Avoid calling it if target_is_pushed returns
2434 true.
2435
53dff92c
ST
24362020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2437
2438 * gnu-nat.h (gnu_target): New variable declaration.
2439 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2440 gnu_target.
2441 * gnu-nat.c (gnu_target): New variable.
2442 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2443 add_thread_silent, and add_thread calls.
2444 (gnu_nat_target::create_inferior): Pass gnu_target to
2445 add_thread_silent, thread_change_ptid call.
2446 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2447 call.
2448
5a8b8627
ST
24492020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2450
2451 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2452 (gnu_nat_target::find_memory_regions): Remove unused
2453 `old_address' variable.
2454
366f550a
ST
24552020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2456
2457 * gnu-nat.c: Include "gdbarch.h".
2458
f14871bf
ST
24592020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2460
2461 * reply_mig_hack.awk (Error return): Cast function through
2462 void *, to bypass compiler function call check.
2463
c6887cfb
ST
24642020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2465
2466 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2467 $(srcdir)/reply_mig_hack.awk.
2468
6930bffe
ST
24692020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2470
2471 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2472
112c22ed
JG
24732020-05-30 Jonny Grant <jg@jguk.org>
2474
2475 * configure.ac (ACX_BUGURL): change bug URL to https.
2476
f68f85b5
PA
24772020-05-30 Pedro Alves <palves@redhat.com>
2478
2479 * cp-support.c (replace_typedefs_template): New.
2480 (replace_typedefs_qualified_name): Handle
2481 DEMANGLE_COMPONENT_TEMPLATE.
2482
976ca316
SM
24832020-05-29 Simon Marchi <simon.marchi@efficios.com>
2484
2485 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2486 dwarf2/index-cache.h, dwarf2/index-write.c,
2487 dwarf2/index-write.h, dwarf2/line-header.c,
2488 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2489 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2490 variables and fields from `dwarf2_per_objfile` to just
2491 `per_objfile` throughout.
2492
989ade05
SM
24932020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2494
2495 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2496 <push_dwarf_reg_entry_value>: Add comment.
2497
c47bae85
KB
24982020-05-28 Kevin Buettner <kevinb@redhat.com>
2499 Keith Seitz <keiths@redhat.com>
2500
2501 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2502 instead of PyEval_ReleaseLock.
2503 (class gdbpy_gil): Move to earlier in file.
2504 (finalize_python): Set gdb_python_initialized.
2505 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2506 when not initialized.
2507
44486dcf
SM
25082020-05-28 Simon Marchi <simon.marchi@efficios.com>
2509
2510 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2511 <push_dwarf_reg_entry_value>: Remove assert. Override
2512 per_objfile with caller_per_objfile.
2513
f030440d
TV
25142020-05-28 Tom de Vries <tdevries@suse.de>
2515
2516 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2517 PR gold/15646 workaround to symbol kind "type".
2518
f0fbb768
TT
25192020-05-27 Tom Tromey <tromey@adacore.com>
2520
2521 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2522
af0b2a3e
TT
25232020-05-27 Tom Tromey <tromey@adacore.com>
2524
2525 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2526 Use htab_find_with_hash.
2527 <add_abbrev>: Remove "abbrev_number" parameter.
2528 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2529 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2530 (hash_abbrev): Add comment.
2531 (abbrev_table::lookup_abbrev): Move to header file.
2532 (abbrev_table::read): Update.
2533
7d00ffec
TT
25342020-05-27 Tom Tromey <tromey@adacore.com>
2535
2536 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2537 method.
2538 <canonical_name>: New member.
2539 <raw_name>: Rename from "name".
2540 (partial_die_info): Initialize canonical_name.
2541 (scan_partial_symbols): Check raw_name.
2542 (partial_die_parent_scope, partial_die_full_name)
2543 (add_partial_symbol, add_partial_subprogram)
2544 (add_partial_enumeration, load_partial_dies): Use "name" method.
2545 (partial_die_info::name): New method.
2546 (partial_die_info::read, guess_partial_die_structure_name)
2547 (partial_die_info::fixup): Update.
2548
697bba18
TT
25492020-05-27 Tom Tromey <tromey@adacore.com>
2550
2551 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2552 <get_ref_die_offset>: Inline.
2553 <get_ref_die_offset_complaint>: New method.
2554 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2555 (attribute::get_ref_die_offset_complaint): Rename from
2556 get_ref_die_offset. Just issue complaint.
2557
c17ace43
HD
25582020-05-27 Hannes Domani <ssbssa@yahoo.de>
2559
2560 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2561
96445f0b
HD
25622020-05-27 Hannes Domani <ssbssa@yahoo.de>
2563
2564 * exec.c (exec_file_attach): Use errno value of first openp failure.
2565
ac637ec3
HD
25662020-05-27 Hannes Domani <ssbssa@yahoo.de>
2567
2568 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2569 Don't close thread handle.
2570
17ee85fc
TT
25712020-05-27 Tom Tromey <tom@tromey.com>
2572 Simon Marchi <simon.marchi@efficios.com>
2573
2574 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2575 shared_ptr.
2576 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2577 member.
2578 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2579 dwarf2_per_bfd_objfile_data_key>: New globals.
2580 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2581 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2582 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2583 shared.
2584 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2585 short-circuit when sharing.
2586 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2587 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2588
39b16f87
SM
25892020-05-27 Simon Marchi <simon.marchi@efficios.com>
2590
2591 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2592 to...
2593 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2594 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2595
fcf23d5b
SM
25962020-05-27 Simon Marchi <simon.marchi@efficios.com>
2597
2598 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2599 build_name_components, find_name_components_bounds>:
2600 Add per_objfile parameter.
2601 (struct mapped_index) <symbol_name_at>: Likewise.
2602 (struct mapped_debug_names): Remove constructor.
2603 <dwarf2_per_objfile>: Remove field.
2604 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2605 (mapped_index_base::find_name_components_bounds,
2606 mapped_index_base::build_name_components,
2607 dw2_expand_symtabs_matching_symbol): Likewise.
2608 (class mock_mapped_index) <symbol_name_at>: Likewise.
2609 (check_match): Likewise.
2610 (check_find_bounds_finds): Likewise.
2611 (test_mapped_index_find_name_component_bounds): Update.
2612 (CHECK_MATCH): Update.
2613 (dw2_expand_symtabs_matching): Update.
2614 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2615 per_objfile parameter.
2616 <find_vec_in_debug_names>: Likewise.
2617 <m_per_objfile>: New field.
2618 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2619 parameter.
2620 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2621 (dw2_debug_names_iterator::next): Update.
2622 (dw2_debug_names_lookup_symbol): Update.
2623 (dw2_debug_names_expand_symtabs_for_function): Update.
2624 (dw2_debug_names_map_matching_symbols): Update.
2625 (dw2_debug_names_expand_symtabs_matching): Update.
2626 (dwarf2_read_debug_names): Update.
2627
7188ed02
SM
26282020-05-27 Simon Marchi <simon.marchi@efficios.com>
2629
2630 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2631 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2632 move to dwarf2_per_objfile.
2633 <read_in_chain>: Remove.
2634 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2635 remove_all_cus, age_comp_units>: New methods.
2636 <m_dwarf2_cus>: New member.
2637 (struct dwarf2_per_cu_data) <cu>: Remove.
2638 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2639 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2640 moved to methods of dwarf2_per_objfile.
2641 (dwarf2_clear_marks): Remove.
2642 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2643 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2644 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2645 (dwarf2_per_objfile::remove_all_cus): New.
2646 (class free_cached_comp_units) <~free_cached_comp_units>:
2647 Update.
2648 (load_cu): Update.
2649 (dw2_do_instantiate_symtab): Adjust.
2650 (fill_in_sig_entry_from_dwo_entry): Adjust.
2651 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2652 (cutu_reader::cutu_reader): Likewise.
2653 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2654 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2655 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2656 and dwarf2_per_objfile::age_comp_units.
2657 (load_partial_comp_unit): Update.
2658 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2659 (process_queue): Likewise.
2660 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2661 backlink.
2662 (dwarf2_read_addr_index): Likewise.
2663 (follow_die_offset): Likewise.
2664 (dwarf2_fetch_die_loc_sect_off): Likewise.
2665 (dwarf2_fetch_constant_bytes): Likewise.
2666 (dwarf2_fetch_die_type_sect_off): Likewise.
2667 (follow_die_sig_1): Likewise.
2668 (load_full_type_unit): Likewise.
2669 (read_signatured_type): Likewise.
2670 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2671 (dwarf2_cu::~dwarf2_cu): Remove.
2672 (dwarf2_per_objfile::get_cu): New.
2673 (dwarf2_per_objfile::set_cu): New.
2674 (age_cached_comp_units): Rename to...
2675 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2676 to std::unordered_map.
2677 (free_one_cached_comp_unit): Rename to...
2678 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2679 to std::unordered_map.
2680 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2681 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2682 a dwarf2_per_objfile in data.
2683 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2684 (dwarf2_clear_marks): Remove.
2685
2e671100
SM
26862020-05-27 Simon Marchi <simon.marchi@efficios.com>
2687
2688 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2689 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2690 (init_tu_and_read_dwo_dies): Likewise.
2691 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2692 (cutu_reader::cutu_reader): Likewise.
2693 (load_partial_comp_unit): Likewise.
2694 (process_psymtab_comp_unit): Update.
2695 (build_type_psymtabs_1): Update.
2696 (process_skeletonless_type_unit): Update.
2697 (load_full_comp_unit): Update.
2698 (find_partial_die): Update.
2699 (dwarf2_read_addr_index): Update.
2700 (read_signatured_type): Update.
2701
2e6a9f79
SM
27022020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2703
2704 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2705 m_header_read_in>: New fields.
2706 <get_header>: New method.
2707 * dwarf2/read.c (per_cu_header_read_in): Remove.
2708 (dwarf2_per_cu_data::get_header): New.
2709 (dwarf2_per_cu_data::addr_size): Update.
2710 (dwarf2_per_cu_data::offset_size): Update.
2711 (dwarf2_per_cu_data::ref_addr_size): Update.
2712
1b555f17
SM
27132020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2714
2715 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2716 (dw2_do_instantiate_symtab): Update.
2717 (queue_and_load_all_dwo_tus): Change parameter from
2718 dwarf2_per_cu_data to dwarf2_cu.
2719 (dwarf2_fetch_die_loc_sect_off): Update.
2720 (dwarf2_fetch_constant_bytes): Update.
2721 (dwarf2_fetch_die_type_sect_off): Update.
2722
8fc0b21d
SM
27232020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2724
2725 * dwarf2/read.c (process_full_comp_unit,
2726 process_full_type_unit): Remove per_cu, per_objfile paramters.
2727 Add dwarf2_cu parameter.
2728 (process_queue): Update.
2729
168c9250
SM
27302020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2731
2732 * dwarf2/read.c (create_cu_from_index_list): Replace
2733 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2734 (create_cus_from_index_list): Likewise.
2735 (create_cus_from_index): Likewise.
2736 (create_signatured_type_table_from_index): Likewise.
2737 (create_cus_from_debug_names_list): Likewise.
2738 (create_cus_from_debug_names): Likewise.
2739 (dwarf2_read_gdb_index): Update.
2740 (dwarf2_read_debug_names): Update.
2741
e286671b
TT
27422020-05-27 Tom Tromey <tom@tromey.com>
2743 Simon Marchi <simon.marchi@efficios.com>
2744
2745 * dwarf2/read.h (struct dwarf2_per_objfile)
2746 <get_type_for_signatured_type, set_type_for_signatured_type>:
2747 New methods.
2748 <m_type_map>: New member.
2749 (struct signatured_type) <type>: Remove.
2750 * dwarf2/read.c
2751 (dwarf2_per_objfile::get_type_for_signatured_type,
2752 dwarf2_per_objfile::set_type_for_signatured_type): New.
2753 (get_signatured_type): Use new methods.
2754
8adb8487
TT
27552020-05-27 Tom Tromey <tom@tromey.com>
2756 Simon Marchi <simon.marchi@efficios.com>
2757
2758 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2759 (struct dwarf2_per_objfile) <type_units>: New member.
2760 <get_type_unit_group_unshareable>: New method.
2761 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2762 num_symtabs, symtabs>: Remove; move to
2763 type_unit_group_unshareable.
2764 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2765 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2766 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2767
127bbf4b
SM
27682020-05-27 Simon Marchi <simon.marchi@efficios.com>
2769
2770 * dwarf2/read.h (struct dwarf2_per_cu_data):
2771 <dwarf2_per_objfile>: Remove.
2772 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2773 dwarf2_per_objfile.
2774 (create_signatured_type_table_from_index): Likewise.
2775 (create_signatured_type_table_from_debug_names): Likewise.
2776 (create_debug_type_hash_table): Likewise.
2777 (fill_in_sig_entry_from_dwo_entry): Likewise.
2778 (create_type_unit_group): Likewise.
2779 (read_comp_units_from_section): Likewise.
2780 (create_cus_hash_table): Likewise.
2781
f6e649dd
SM
27822020-05-27 Simon Marchi <simon.marchi@efficios.com>
2783
2784 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2785 dwarf2_per_cu_data::dwarf2_per_objfile.
2786 (compute_compunit_symtab_includes): Likewise.
2787 (dwarf2_cu::start_symtab): Likewise.
2788
aa66c379
SM
27892020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2790
2791 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2792 parameter.
2793 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2794 (read_namespace_alias): Update.
2795 (lookup_die_type): Update.
2796 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2797 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2798 Update.
2799 (disassemble_dwarf_expression): Update.
2800
120ce1b5
SM
28012020-05-27 Simon Marchi <simon.marchi@efficios.com>
2802
2803 * dwarf2/read.h (struct dwarf2_queue_item): Add
2804 dwarf2_per_objfile parameter, assign new parameter.
2805 <per_objfile>: New field.
2806 * dwarf2/read.c (free_one_cached_comp_unit): Add
2807 dwarf2_per_objfile parameter.
2808 (queue_comp_unit): Likewise.
2809 (dw2_do_instantiate_symtab): Update.
2810 (process_psymtab_comp_unit): Update.
2811 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2812 (process_imported_unit_die): Update.
2813 (queue_and_load_dwo_tu): Update.
2814 (follow_die_offset): Update.
2815 (follow_die_sig_1): Update.
2816
9f47c707
SM
28172020-05-27 Simon Marchi <simon.marchi@efficios.com>
2818
2819 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2820 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2821 (read_call_site_scope): Assign per_objfile.
2822 (dwarf2_per_cu_data::objfile): Remove.
2823 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2824 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2825 dwarf2_per_objfile parameter.
2826 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2827 dwarf2_per_objfile parameter.
2828 (dwarf_expr_reg_to_entry_parameter): Add output
2829 dwarf2_per_objfile parameter.
2830 (locexpr_get_frame_base): Update.
2831 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2832 <push_dwarf_reg_entry_value>: Update.
2833 <call_site_to_target_addr>: Update.
2834 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2835 parameter.
2836 (value_of_dwarf_reg_entry): Update.
2837 (rw_pieced_value): Update.
2838 (indirect_synthetic_pointer): Update.
2839 (dwarf2_evaluate_property): Update.
2840 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2841 parameter.
2842 (locexpr_read_variable): Update.
2843 (locexpr_get_symbol_read_needs): Update.
2844 (loclist_read_variable): Update.
2845
14095eb3
SM
28462020-05-27 Simon Marchi <simon.marchi@efficios.com>
2847
2848 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2849 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2850 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2851 parameter.
2852 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2853 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2854 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2855 parameter.
2856 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2857 sect_variable_value): Add dwarf2_per_objfile parameter.
2858 (class dwarf_evaluate_loc_desc) <dwarf_call,
2859 dwarf_variable_value>: Update.
2860 (fetch_const_value_from_synthetic_pointer): Add
2861 dwarf2_per_objfile parameter.
2862 (fetch_const_value_from_synthetic_pointer): Update.
2863 (coerced_pieced_ref): Update.
2864 (class symbol_needs_eval_context) <dwarf_call,
2865 dwarf_variable_value>: Update.
2866 (dwarf2_compile_expr_to_ax): Update.
2867
3c3cd3d4
SM
28682020-05-27 Simon Marchi <simon.marchi@efficios.com>
2869
2870 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2871 parameter.
2872 (dwarf2_evaluate_loc_desc_full): Update.
2873
82ca3f51
SM
28742020-05-27 Simon Marchi <simon.marchi@efficios.com>
2875
2876 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2877 parameter.
2878 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2879 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2880 dwarf2_per_objfile parameter.
2881 (decode_debug_loc_dwo_addresses): Likewise.
2882 (dwarf2_find_location_expression): Update.
2883 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2884 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2885 parameter.
2886 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2887 parameter.
2888 (locexpr_describe_location_1): Likewise.
2889 (locexpr_describe_location): Update.
2890
4b167ea1
SM
28912020-05-27 Simon Marchi <simon.marchi@efficios.com>
2892
2893 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2894 Remove.
2895 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2896 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2897 (dwarf2_compile_property_to_c): Update.
2898 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2899 use text offset from objfile.
2900 (locexpr_tracepoint_var_ref): Update.
2901 (locexpr_generate_c_location): Update.
2902 (loclist_describe_location): Update.
2903 (loclist_tracepoint_var_ref): Update.
2904 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2905 dwarf2_per_objfile parameter.
2906 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2907 use text offset from objfile.
2908 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2909
89b07335
SM
29102020-05-27 Simon Marchi <simon.marchi@efficios.com>
2911
2912 * dwarf2/expr.h (struct dwarf_expr_context)
2913 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2914 <offset>: Remove.
2915 <per_objfile>: New member.
2916 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2917 dwarf2_per_objfile parameter. Don't set offset, set
2918 per_objfile.
2919 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2920 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2921 a dwarf2_per_objfile object instead of an offset.
2922 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2923 constructor.
2924 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2925 to dwarf2_expr_executor constructor. Don't set offset.
2926 (dwarf2_fetch_cfa_info): Update.
2927 (struct dwarf2_frame_cache) <text_offset>: Remove.
2928 <per_objfile>: New field.
2929 (dwarf2_frame_cache): Update.
2930 (dwarf2_frame_prev_register): Update.
2931 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2932 <dwarf_evaluate_loc_desc>: Add constructor.
2933 (dwarf2_evaluate_loc_desc_full): Update.
2934 (dwarf2_locexpr_baton_eval): Update.
2935 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2936 Add constructor.
2937 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2938
293e7e51
SM
29392020-05-27 Simon Marchi <simon.marchi@efficios.com>
2940
2941 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2942 addr_sized_int_type>: Move to dwarf2_cu.
2943 <int_type>: Move to dwarf2_per_objfile.
2944 (struct dwarf2_per_objfile) <int_type>: Move here.
2945 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2946 addr_sized_int_type>: Move here.
2947 (read_func_scope): Update.
2948 (read_array_type): Update.
2949 (read_tag_string_type): Update.
2950 (attr_to_dynamic_prop): Update.
2951 (dwarf2_per_cu_data::int_type): Rename to...
2952 (dwarf2_per_objfile::int_type): ... this.
2953 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2954 (dwarf2_cu::addr_sized_int_type): ... this.
2955 (read_subrange_type): Update.
2956 (dwarf2_per_cu_data::addr_type): Rename to...
2957 (dwarf2_cu::addr_type): ... this.
2958 (set_die_type): Update.
2959
64874a40
SM
29602020-05-27 Simon Marchi <simon.marchi@efficios.com>
2961
2962 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2963 data through per_cu->cu.
2964
4ab09049
SM
29652020-05-27 Simon Marchi <simon.marchi@efficios.com>
2966
2967 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2968 dwarf2_per_cu_data parameter fo dwarf2_cu.
2969 (lookup_dwo_type_unit): Likewise.
2970 (read_cutu_die_from_dwo): Likewise.
2971 (lookup_dwo_unit): Likewise.
2972 (open_and_init_dwo_file): Likewise.
2973 (lookup_dwo_cutu): Likewise.
2974 (lookup_dwo_comp_unit): Likewise.
2975 (lookup_dwo_type_unit): Likewise.
2976 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2977 (cutu_reader::cutu_reader): Update.
2978
47b14e86
SM
29792020-05-27 Simon Marchi <simon.marchi@efficios.com>
2980
2981 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2982 parameter.
2983 (process_full_type_unit): Likewise.
2984 (process_queue): Update.
2985
43182c09
SM
29862020-05-27 Simon Marchi <simon.marchi@efficios.com>
2987
2988 * dwarf2/read.c (recursively_compute_inclusions): Add
2989 dwarf2_per_objfile parameter.
2990 (compute_compunit_symtab_includes): Likewise.
2991 (process_cu_includes): Update.
2992
7aa104c4
SM
29932020-05-27 Simon Marchi <simon.marchi@efficios.com>
2994
2995 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2996 parameter.
2997 (create_type_unit_group): Update.
2998 (process_psymtab_comp_unit_reader): Update.
2999 (build_type_psymtabs_reader): Update.
3000
e3beb21d
SM
30012020-05-27 Simon Marchi <simon.marchi@efficios.com>
3002
3003 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3004 object through m_this_cu->cu.
3005
d460f660
SM
30062020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3007
3008 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3009 the info parameter.
3010 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3011
ab432490
SM
30122020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3013
3014 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3015 per_objfile parameter.
3016 (load_full_type_unit): Add per_objfile parameter.
3017 (read_signatured_type): Likewise.
3018 (load_full_comp_unit): Likewise.
3019 (load_cu): Likewise.
3020 (dw2_do_instantiate_symtab): Likewise.
3021 (dw2_get_file_names): Likewise.
3022 (dw2_map_symtabs_matching_filename): Update.
3023 (dw_expand_symtabs_matching_file_matcher): Update.
3024 (dw2_map_symbol_filenames): Update.
3025 (process_psymtab_comp_unit): Add per_objfile parameter.
3026 (build_type_psymtabs_1): Update.
3027 (process_skeletonless_type_unit): Update.
3028 (dwarf2_build_psymtabs_hard): Update.
3029 (load_partial_comp_unit): Add per_objfile parameter.
3030 (scan_partial_symbols): Update.
3031 (load_full_comp_unit): Add per_objfile parameter.
3032 (process_imported_unit_die): Update.
3033 (create_cus_hash_table): Update.
3034 (find_partial_die): Update.
3035 (dwarf2_read_addr_index): Update.
3036 (follow_die_offset): Update.
3037 (dwarf2_fetch_die_loc_sect_off): Update.
3038 (dwarf2_fetch_constant_bytes): Update.
3039 (dwarf2_fetch_die_type_sect_off): Update.
3040 (follow_die_sig_1): Update.
3041 (load_full_type_unit): Add per_objfile parameter.
3042 (read_signatured_type): Likewise.
3043
313bad1b
SM
30442020-05-27 Simon Marchi <simon.marchi@efficios.com>
3045
3046 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3047 of objfile_name.
3048
c3699833
SM
30492020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3050
3051 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3052 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3053 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3054 field.
3055 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3056 (create_cus_from_index): Update.
3057 (dwarf2_read_gdb_index): Update.
3058 (create_cus_from_debug_names): Update.
3059 (dwarf2_read_debug_names): Update.
3060 (get_abbrev_section_for_cu): Update.
3061 (create_all_comp_units): Update.
3062 (read_attribute_value): Update.
3063 (get_debug_line_section): Update.
3064 * dwarf2/index-cache.c (index_cache::store): Update.
3065 * dwarf2/index-write.c (save_gdb_index_command): Update.
3066 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3067
1859c670
SM
30682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3069
3070 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3071 member.
3072 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3073 dwarf2_per_cu_data::per_bfd.
3074 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3075 (create_type_unit_group): Likewise.
3076 (queue_comp_unit): Remove reference to
3077 per_cu->dwarf2_per_objfile.
3078 (maybe_queue_comp_unit): Likewise.
3079 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3080 (create_cus_hash_table): Assign new field.
3081
5e22e966
SM
30822020-05-27 Simon Marchi <simon.marchi@efficios.com>
3083
3084 * dwarf2/read.c: Replace
3085 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3086 dwarf2_cu->per_objfile throughout.
3087
97a1449a
SM
30882020-05-27 Simon Marchi <simon.marchi@efficios.com>
3089
3090 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3091 parameter, don't use per_cu->dwarf2_per_objfile.
3092 (dw2_instantiate_symtab): Likewise.
3093 (dw2_find_last_source_symtab): Update.
3094 (dw2_map_expand_apply): Update.
3095 (dw2_lookup_symbol): Update.
3096 (dw2_expand_symtabs_for_function): Update.
3097 (dw2_expand_all_symtabs): Update.
3098 (dw2_expand_symtabs_with_fullname): Update.
3099 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3100 don't use per_cu->dwarf2_per_objfile.
3101 (dw2_expand_marked_cus): Update.
3102 (dw2_find_pc_sect_compunit_symtab): Update.
3103 (dw2_debug_names_lookup_symbol): Update.
3104 (dw2_debug_names_expand_symtabs_for_function): Update.
3105 (dw2_debug_names_map_matching_symbols): Update.
3106 (dwarf2_psymtab::expand_psymtab): Update.
3107
9e021579
SM
31082020-05-27 Simon Marchi <simon.marchi@efficios.com>
3109
3110 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3111 <per_objfile>: New member.
3112 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3113 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3114 call to dwarf2_cu.
3115 (cutu_reader::cutu_reader): Update.
3116 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3117
ae090bdb
SM
31182020-05-27 Simon Marchi <simon.marchi@efficios.com>
3119
3120 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3121 struct dwarf2_per_objfile.
3122 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3123 dwarf2_per_bfd.
3124 * dwarf2/read.c (set_die_type): Update.
3125 (get_die_type_at_offset): Update.
3126
af758d11
SM
31272020-05-27 Tom Tromey <tom@tromey.com>
3128 Simon Marchi <simon.marchi@efficios.com>
3129
3130 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3131 method.
3132 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3133 get_symtab, set_symtab>: New methods.
3134 <m_symtabs>: New field.
3135 (struct dwarf2_psymtab): Derive from partial_symtab.
3136 <readin_p, get_compunit_symtab>: Declare methods.
3137 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3138 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3139 New methods.
3140 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3141 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3142 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3143 (dw2_symtab_iter_next, dw2_print_stats)
3144 (dw2_expand_symtabs_with_fullname)
3145 (dw2_expand_symtabs_matching_one)
3146 (dw_expand_symtabs_matching_file_matcher)
3147 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3148 (dw2_debug_names_iterator::next)
3149 (dw2_debug_names_map_matching_symbols)
3150 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3151 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3152 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3153 New methods.
3154 (get_compunit_symtab, process_full_comp_unit)
3155 (process_full_type_unit): Update.
3156 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3157
5989a64e
SM
31582020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3159
3160 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3161 then introduce a new dwarf2_per_objfile type.
3162 <read_line_string>: Move to the new dwarf2_per_objfile type.
3163 <objfile>: Likewise.
3164 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3165 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3166 dwarf2_per_objfile->per_bfd.
3167 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3168 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3169 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3170 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3171 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3172 (dwarf2_per_objfile::locate_sections): Rename to...
3173 (dwarf2_per_bfd::locate_sections): ... this.
3174 (dwarf2_per_objfile::get_cutu): Rename to...
3175 (dwarf2_per_bfd::get_cutu): ... this.
3176 (dwarf2_per_objfile::get_cu): Rename to...
3177 (dwarf2_per_bfd::get_cu): ... this.
3178 (dwarf2_per_objfile::get_tu): Rename to...
3179 (dwarf2_per_bfd::get_tu): ... this.
3180 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3181 (dwarf2_per_bfd::allocate_per_cu): ... this.
3182 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3183 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3184 (get_gdb_index_contents_ftype): Change parameter from
3185 dwarf2_per_objfile to dwarf2_per_bfd.
3186 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3187 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3188
a50264ba
TT
31892020-05-27 Tom Tromey <tom@tromey.com>
3190 Simon Marchi <simon.marchi@efficios.com>
3191
3192 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3193 (allocate_piece_closure): Set "per_objfile" member.
3194 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3195 (locexpr_describe_location, loclist_describe_location): Use new
3196 member.
3197 * dwarf2/read.c (read_call_site_scope)
3198 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3199 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3200 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3201 handle_data_member_location): Set per_objfile member.
3202 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3203 member.
3204 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3205
d3473f0c
TT
32062020-05-27 Tom Tromey <tom@tromey.com>
3207
3208 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3209 allocate_signatured_type>: Declare new methods.
3210 <m_num_psymtabs>: New member.
3211 (struct dwarf2_per_cu_data) <index>: New member.
3212 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3213 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3214 (create_cu_from_index_list): Use allocate_per_cu.
3215 (create_signatured_type_table_from_index)
3216 (create_signatured_type_table_from_debug_names)
3217 (create_debug_type_hash_table, add_type_unit)
3218 (read_comp_units_from_section): Use allocate_signatured_type.
3219
5717c425
TT
32202020-05-27 Tom Tromey <tom@tromey.com>
3221
3222 * psymtab.c (partial_map_expand_apply)
3223 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3224 (psym_lookup_global_symbol_language)
3225 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3226 (psym_print_stats, psym_expand_symtabs_for_function)
3227 (psym_map_symbol_filenames, psym_map_matching_symbols)
3228 (psym_expand_symtabs_matching)
3229 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3230 (maintenance_check_psymtabs): Update.
3231 * psympriv.h (struct partial_symtab) <readin_p,
3232 get_compunit_symtab>: Add objfile parameter.
3233 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3234 Likewise.
3235 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3236 get_compunit_symtab>: Likewise.
3237 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3238
45940949
TT
32392020-05-27 Tom Tromey <tom@tromey.com>
3240
3241 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3242 member.
3243 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3244 (create_cu_from_index_list)
3245 (create_signatured_type_table_from_index)
3246 (create_signatured_type_table_from_debug_names)
3247 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3248 (dwarf2_create_include_psymtab)
3249 (create_debug_type_hash_table, add_type_unit)
3250 (create_type_unit_group, read_comp_units_from_section)
3251 (dwarf2_compute_name, create_cus_hash_table)
3252 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3253 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3254 obstack.
3255 (dw2_get_real_path): Likewise. Change argument to
3256 dwarf2_per_objfile.
3257
f8c6d152
LM
32582020-05-27 Luis Machado <luis.machado@linaro.org>
3259
3260 PR tdep/26000
3261 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3262 for ldrd (immediate).
3263
e98d2e6d
PW
32642020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3265
3266 * command.h: Add comment giving the name of class_tui.
3267 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3268 create the fake command for the help for class_tui.
3269
53a47a3e
TT
32702020-05-26 Tom Tromey <tromey@adacore.com>
3271
3272 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3273 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3274 (val_atr): New function.
3275 (value_val_atr): Use it.
3276 * ada-valprint.c (print_optional_low_bound): Change low bound
3277 handling for enums.
3278 (val_print_packed_array_elements): Don't call discrete_position.
3279 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3280 discrete_position for enum types.
3281 * language.c (default_print_array_index): Change type.
3282 * language.h (struct language_defn) <la_print_array_index>: Add
3283 index_type parameter, change type of index_value.
3284 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3285 (default_print_array_index): Update.
3286 * valprint.c (maybe_print_array_index): Don't call
3287 value_from_longest. Update.
3288 (value_print_array_elements): Don't call discrete_position.
3289
0bc2354b
TT
32902020-05-26 Tom Tromey <tromey@adacore.com>
3291
3292 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3293 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3294
1218a4bf
CDA
32952020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3296
3297 PR gdb/13519
3298 * avr-tdep.c (avr_integer_to_address): Return data or code
3299 address accordingly to the second 'type' argument of the
3300 function.
3301
92651b1d
MW
33022020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3303
3304 * infcmd.c, inferior.h: (construct_inferior_arguments):
3305 Moved function from here to gdbsupport/common-inferior.{h,cc}
3306
0a4f5f8c
TT
33072020-05-23 Tom Tromey <tom@tromey.com>
3308
3309 Revert commit eca1f90c:
3310 * NEWS: Remove entry for completion styling.
3311 * completer.c (_rl_completion_prefix_display_length): Move
3312 declaration later.
3313 (gdb_fnprint): Revert.
3314 (gdb_display_match_list_1): Likewise.
3315 * cli/cli-style.c (completion_prefix_style)
3316 (completion_difference_style, completion_suffix_style): Remove.
3317 (_initialize_cli_style): Revert.
3318 * cli/cli-style.h (completion_prefix_style)
3319 (completion_difference_style, completion_suffix_style): Don't
3320 declare.
3321
e08bd6c5
PA
33222020-05-24 Pedro Alves <palves@redhat.com>
3323
3324 * symtab.c (completion_list_add_name): Return boolean indication
3325 of whether the symbol matched.
3326 (completion_list_add_symbol): Don't try to remove C++ aliases if
3327 the symbol didn't match in the first place.
3328 * symtab.h (completion_list_add_name): Return bool.
3329
ceacbf6e
SM
33302020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3331
3332 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3333 type::field.
3334
26f16254
JB
33352020-05-23 Joel Brobecker <brobecker@adacore.com>
3336
3337 GDB 9.2 released.
3338
eca1f90c
TT
33392020-05-23 Tom Tromey <tom@tromey.com>
3340
3341 * NEWS: Add entry for completion styling.
3342 * completer.c (_rl_completion_prefix_display_length): Move
3343 declaration earlier.
3344 (gdb_fnprint): Use completion_style.
3345 (gdb_display_match_list_1): Likewise.
3346 * cli/cli-style.c (completion_prefix_style)
3347 (completion_difference_style, completion_suffix_style): New
3348 globals.
3349 (_initialize_cli_style): Register new globals.
3350 * cli/cli-style.h (completion_prefix_style)
3351 (completion_difference_style, completion_suffix_style): Declare.
3352
51e2cfa2
PA
33532020-05-23 Pedro Alves <palves@redhat.com>
3354
3355 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3356 (parse_escape): Use ISDIGIT instead of isdigit.
3357 (puts_debug): Use gdb_isprint instead of isprint.
3358 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3359 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3360 ISSPACE instead of isspace.
3361 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3362 instead of isspace.
3363 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3364 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3365 instead of isxdigit and ISDIGIT instead of isdigit.
3366
80fc5e77
SM
33672020-05-22 Simon Marchi <simon.marchi@efficios.com>
3368
3369 * gdbtypes.h (struct type) <field>: New method.
3370 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3371 or type::field.
3372
3cabb6b0
SM
33732020-05-22 Simon Marchi <simon.marchi@efficios.com>
3374
3375 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3376 (TYPE_FIELDS): Use type::fields. Change all call sites that
3377 modify the propery to use type::set_fields instead.
3378
1f704f76
SM
33792020-05-22 Simon Marchi <simon.marchi@efficios.com>
3380
3381 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3382 type::num_fields instead.
3383
5e33d5f4
SM
33842020-05-22 Simon Marchi <simon.marchi@efficios.com>
3385
3386 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3387 methods.
3388 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3389 that modify the number of fields to use type::set_num_fields
3390 instead.
3391
9392ebb3
TT
33922020-05-22 Tom Tromey <tromey@adacore.com>
3393
3394 * compile/compile-object-load.h (munmap_list_free): Don't
3395 declare.
3396
7c13f4e8
AB
33972020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3398
3399 * annotate.c (annotate_source_line): Update return type, add call
3400 to update current symtab and line.
3401 * annotate.h (annotate_source_line): Update return type, and
3402 extend header comment.
3403 * source.c (info_line_command): Check annotation_level before
3404 calling annotate_source_line.
3405 * stack.c (print_frame_info): If calling annotate_source_line
3406 returns true, then don't print any other source line information.
3407
aa370940
SM
34082020-05-21 Simon Marchi <simon.marchi@efficios.com>
3409
3410 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3411
84d53fa9
SM
34122020-05-21 Simon Marchi <simon.marchi@efficios.com>
3413
3414 * coffread.c (patch_type): Remove NULL check before xfree.
3415 * corefile.c (set_gnutarget): Likewise.
3416 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3417 * exec.c (build_section_table): Likewise.
3418 * remote.c (remote_target::pass_signals): Likewise.
3419 * utils.c (n_spaces): Likewise.
3420 * cli/cli-script.c (document_command): Likewise.
3421 * i386-windows-tdep.c (core_process_module_section): Likewise.
3422 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3423
9d428aae
SM
34242020-05-20 Simon Marchi <simon.marchi@efficios.com>
3425
3426 * symfile.c (reread_symbols): Clear objfile's section_offsets
3427 vector and section indices, re-compute them by calling
3428 sym_offsets.
3429
250106a7
TT
34302020-05-20 Tom Tromey <tromey@adacore.com>
3431
3432 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3433 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3434
9a0bacfb
TV
34352020-05-20 Tom de Vries <tdevries@suse.de>
3436
3437 PR symtab/25833
3438 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3439
7b958a48
AM
34402020-05-20 Alan Modra <amodra@gmail.com>
3441
3442 PR 25993
3443 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3444 bfd_set_filename.
3445 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3446 passed to bfd_set_filename.
3447 * symfile-mem.c (add_vsyscall_page): Likewise for string
3448 passed to symbol_file_add_from_memory.
3449 (symbol_file_add_from_memory): Make name param a const char* and
3450 don't strdup.
3451
c7e97679
AM
34522020-05-20 Alan Modra <amodra@gmail.com>
3453
3454 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3455 rather than accessing bfd->filename directly.
3456 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3457 and use bfd_section_name.
3458 * dwarf2/frame.c (decode_frame_entry): Likewise.
3459 * exec.c (exec_set_section_address): Likewise.
3460 * solib-aix.c (solib_aix_bfd_open): Likewise.
3461 * stap-probe.c (get_stap_base_address): Likewise.
3462 * symfile.c (reread_symbols): Likewise.
3463
563c591b
TT
34642020-05-19 Tom Tromey <tromey@adacore.com>
3465
3466 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3467
f408d82c
SM
34682020-05-19 Simon Marchi <simon.marchi@efficios.com>
3469
3470 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3471
98c59b52
PA
34722020-05-19 Pedro Alves <palves@redhat.com>
3473
3474 * NEWS (set exec-file-mismatch): Adjust entry.
3475 * exec.c: Include "build-id.h".
3476 (validate_exec_file): Try to match build IDs instead of filenames.
3477 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3478 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3479 and pass down 'warn_if_slow'.
3480 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3481 gdb_bfd_open_closure to pass it down.
3482 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3483
4111f652
PA
34842020-05-19 Pedro Alves <palves@redhat.com>
3485
3486 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3487 * target.c (target_fileio_open_1): Rename to target_fileio_open
3488 and make extern. Use bool.
3489 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3490 (target_fileio_read_alloc_1): Adjust.
3491 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3492 (target_fileio_open_warn_if_slow): Delete declaration.
3493
ad80db5b
PA
34942020-05-19 Pedro Alves <palves@redhat.com>
3495
3496 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3497 Adjust all callers.
3498
1d6ce4d3
YS
34992020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3500
3501 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3502 whether disp is negative.
3503
9005fbbb
SM
35042020-05-19 Simon Marchi <simon.marchi@efficios.com>
3505
3506 * symfile.h (struct symfile_segment_data)
3507 <~symfile_segment_data>: Remove.
3508 <segment_info>: Change to std::vector.
3509 * symfile.c (default_symfile_segments): Update.
3510 * elfread.c (elf_symfile_segments): Update.
3511
68b888ff
SM
35122020-05-19 Simon Marchi <simon.marchi@efficios.com>
3513
3514 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3515 <segments>: New.
3516 <segment_bases, segment_sizes>: Remove.
3517 * symfile.c (default_symfile_segments): Update.
3518 * elfread.c (elf_symfile_segments): Update.
3519 * remote.c (remote_target::get_offsets): Update.
3520 * solib-target.c (solib_target_relocate_section_addresses):
3521 Update.
3522
62982abd
SM
35232020-05-19 Simon Marchi <simon.marchi@efficios.com>
3524
3525 * symfile.h (struct symfile_segment_data): Initialize fields.
3526 <~symfile_segment_data>: Add.
3527 (symfile_segment_data_up): New.
3528 (struct sym_fns) <sym_segments>: Return a
3529 symfile_segment_data_up.
3530 (default_symfile_segments): Return a symfile_segment_data_up.
3531 (free_symfile_segment_data): Remove.
3532 (get_symfile_segment_data): Return a symfile_segment_data_up.
3533 * symfile.c (default_symfile_segments): Likewise.
3534 (get_symfile_segment_data): Likewise.
3535 (free_symfile_segment_data): Remove.
3536 (symfile_find_segment_sections): Update.
3537 * elfread.c (elf_symfile_segments): Return a
3538 symfile_segment_data_up.
3539 * remote.c (remote_target::get_offsets): Update.
3540 * solib-target.c (solib_target_relocate_section_addresses):
3541 Update.
3542 * symfile-debug.c (debug_sym_segments): Return a
3543 symfile_segment_data_up.
3544
7f204339
RO
35452020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3546
e52a0f1b
RO
3547 PR build/25981
3548 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3549 Hardcode register numbers.
3550
7f204339
RO
3551 PR build/25981
3552 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3553 procfs_find_LDT_entry): Remove.
3554 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3555 procfs_find_LDT_entry): Remove.
3556 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3557 Remove.
3558
7f32a4d5
PA
35592020-05-17 Pedro Alves <palves@redhat.com>
3560 Andrew Burgess <andrew.burgess@embecosm.com>
3561 Keno Fischer <keno@juliacomputing.com>
3562
3563 PR gdb/25741
3564 * breakpoint.c (build_target_condition_list): Update comments.
3565 (build_target_command_list): Update comments and skip matching
3566 locations.
3567 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3568 a separate function. Simplify "set breakpoint auto-hw off"
3569 handling.
3570 (insert_breakpoints): Update comment.
3571 (tracepoint_locations_match): New parameter. For breakpoints,
3572 compare location types too, if the caller wants to.
3573 (handle_automatic_hardware_breakpoints): New functions.
3574 (bp_location_is_less_than): Also sort by location type and
3575 hardware breakpoint length.
3576 (update_global_location_list): Handle "set breakpoint auto-hw on"
3577 here.
3578 (update_breakpoint_locations): Ask breakpoint_locations_match to
3579 ignore location types.
3580
7d93a1e0
SM
35812020-05-16 Simon Marchi <simon.marchi@efficios.com>
3582
3583 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3584 type::name instead.
3585
d0e39ea2
SM
35862020-05-16 Simon Marchi <simon.marchi@efficios.com>
3587
3588 * gdbtypes.h (struct type) <name, set_name>: New methods.
3589 (TYPE_CODE): Use type::name. Change all call sites used to set
3590 the name to use type::set_name instead.
3591
2dab0c7b
TT
35922020-05-16 Tom Tromey <tom@tromey.com>
3593
3594 * top.c (quit_force): Update.
3595 * infrun.c (handle_no_resumed): Update.
3596 * top.h (all_uis): New function.
3597 (ALL_UIS): Remove.
3598
59f7bd8d
SM
35992020-05-16 Simon Marchi <simon.marchi@efficios.com>
3600
3601 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3602
9bf058f0
PA
36032020-05-16 Pedro Alves <palves@redhat.com>
3604
3605 * ia64-linux-nat.c
3606 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3607 Declare method.
3608 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3609
8f86ae1a
SM
36102020-05-15 Simon Marchi <simon.marchi@efficios.com>
3611
3612 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3613 (sparc64_adi_info): Likewise.
3614
d6bc0792
TT
36152020-05-15 Tom Tromey <tom@tromey.com>
3616
3617 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3618 block_objfile.
3619 (lookup_objfile_from_block): Remove.
3620 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3621 (lookup_global_symbol): Use block_objfile.
3622 * symtab.h (lookup_objfile_from_block): Don't declare.
3623 * printcmd.c (clear_dangling_display_expressions): Use
3624 block_objfile.
3625 * parse.c (operator_check_standard): Use block_objfile.
3626
8c14c3a3
TT
36272020-05-15 Tom Tromey <tom@tromey.com>
3628
3629 * language.c (language_alloc_type_symbol): Set
3630 SYMBOL_SECTION.
3631 * symtab.c (initialize_objfile_symbol): Remove.
3632 (allocate_symbol): Remove.
3633 (allocate_template_symbol): Remove.
3634 * dwarf2/read.c (fixup_go_packaging): Use "new".
3635 (new_symbol): Use "new".
3636 (read_variable): Don't call initialize_objfile_symbol. Use
3637 "new".
3638 (read_func_scope): Use "new".
3639 * xcoffread.c (process_xcoff_symbol): Don't call
3640 initialize_objfile_symbol.
3641 (SYMBOL_DUP): Remove.
3642 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3643 "new".
3644 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3645 (allocate_template_symbol): Don't declare.
3646 (struct symbol): Add copy constructor. Change defaults.
3647 * jit.c (finalize_symtab): Use "new".
3648 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3649 Use "new".
3650 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3651 (common_block_end): Use "new".
3652 * mdebugread.c (parse_symbol): Use "new".
3653 (new_symbol): Likewise.
3654
5b4a1a8d
PW
36552020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3656
3657 * NEWS: Mention changes to help and apropos.
3658
57b4f16e
PW
36592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3660
3661 * command.h (enum command_class): Improve comments, document
3662 that class_alias is for user-defined aliases, give the class
3663 name for each class, remove unused class_xdb.
3664 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3665 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3666 by a precise class.
3667 * infcmd.c (_initialize_infcmd): Likewise.
3668 * reverse.c (_initialize_reverse): Likewise.
3669 * stack.c (_initialize_stack): Likewise.
3670 * symfile.c (_initialize_symfile): Likewise.
3671 * tracepoint.c (_initialize_tracepoint): Likewise.
3672
7c05caf7
PW
36732020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3674
3675 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3676 when their aliased command is traversed.
3677 (help_cmd): Add fput_command_names_styled call to
3678 output command name and aliases when command has an alias.
3679
3b3aaacb
PW
36802020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3681
3682 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3683 * cli/cli-decode.c (help_cmd_list): Declare as static,
3684 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3685 a command together with the command.
3686 (fput_command_name_styled, fput_command_names_styled): New functions.
3687 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3688 fput_command_name_styled.
3689 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3690 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3691
7aa1b46f
PW
36922020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3693
3694 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3695 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3696 * command.h (cmd_show_list): Likewise.
3697 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3698 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3699
89bcba74
PW
37002020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3701
3702 * unittests/command-def-selftests.c (traverse_command_structure):
3703 Verify all commands of a list have the same prefix command and
3704 that only the top cmdlist commands have a null prefix.
3705
3f4d92eb
PW
37062020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3707
3708 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3709 as prefix, not one of its aliases.
3710 (set_cmd_prefix): Remove.
3711 (do_add_cmd): Centralize the setting of the prefix of a command, when
3712 command is defined after its full chain of prefix commands.
3713 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3714 (add_setshow_cmd_full): Likewise.
3715 (update_prefix_field_of_prefixed_commands): New function.
3716 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3717 update_prefix_field_of_prefixed_commands.
3718 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3719 addresses of remote_set_cmdlist and remote_show_cmdlist given
3720 as argument, not the address of an argument.
3721 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3722 * gdb/remote.c (_initialize_remote): Likewise.
3723
0605465f
PW
37242020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3725
3726 * cli/cli-cmds.c (alias_command): Check for an existing alias
3727 using lookup_cmd_composition, as valid_command_p is too strict
3728 and forbids aliases that are the prefix of an existing alias
3729 or command.
3730 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3731 command is properly recognised as a valid command.
3732
58e6ac70
PW
37332020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3734
3735 * unittests/help-doc-selftests.c: Rename to
3736 unittests/command-def-selftests.c
3737 * unittests/command-def-selftests.c (help_doc_tests): Update some
3738 comments.
3739 (command_structure_tests, traverse_command_structure): New namespace
3740 and function.
3741 (command_structure_invariants_tests): New function.
3742 (_initialize_command_def_selftests) Renamed from
3743 _initialize_help_doc_selftests, register command_structure_invariants
3744 selftest.
3745
a7b9ceb8
PW
37462020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3747
3748 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3749 an alias of 'show'.
3750
b2188a06
JB
37512020-05-15 Joel Brobecker <brobecker@adacore.com>
3752
3753 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3754 ada_is_fixed_point_type. Update all callers.
3755 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3756 all callers.
3757 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3758 Update all callers.
3759 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3760 print_fixed_point_type. Update all callers.
3761 * ada-valprint.c (ada_value_print_num): Replace call to
3762 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3763
a51951c2
KB
37642020-05-14 Kevin Buettner <kevinb@redhat.com>
3765
3766 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3767 processors.
3768 (cpu_supports_bts): Add CV_AMD case.
3769
29d6859f
LM
37702020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3771 Simon Marchi <simon.marchi@efficios.com>
3772
3773 * infrun.c (stop_all_threads): Collect multiple wait events at
3774 each pass.
3775
78134374
SM
37762020-05-14 Simon Marchi <simon.marchi@efficios.com>
3777
3778 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3779 type::code instead.
3780
67607e24
SM
37812020-05-14 Simon Marchi <simon.marchi@efficios.com>
3782
3783 * gdbtypes.h (struct type) <code, set_code>: New methods.
3784 (TYPE_CODE): Use type::code. Change all call sites used to set
3785 the code to use type::set_code instead.
3786
a05575d3
TBA
37872020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3788 Tom de Vries <tdevries@suse.de>
3789 Pedro Alves <palves@redhat.com>
3790
3791 PR threads/25478
3792 * infrun.c (stop_all_threads): Do NOT ignore
3793 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3794 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3795 received.
3796 (handle_no_resumed): Remove code handling a live inferior with no
3797 threads.
3798 * remote.c (has_single_non_exited_thread): New.
3799 (remote_target::update_thread_list): Do not delete a thread if is
3800 the last thread of the process.
3801 * thread.c (thread_select): Call delete_exited_threads instead of
3802 prune_threads.
3803
6ad82919
TBA
38042020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3805
3806 * infrun.c (stop_all_threads): Enable/disable thread events of all
3807 targets. Move a debug message denoting the end of the function
3808 into the SCOPED_EXIT block.
3809
d890404b
TBA
38102020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3811
3812 * process-stratum-target.h: Include <set>.
3813 (all_non_exited_process_targets, switch_to_target_no_thread): New
3814 function declarations.
3815 * process-stratum-target.c (all_non_exited_process_targets)
3816 (switch_to_target_no_thread): New function implementations.
3817
293b3ebc
TBA
38182020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3819
3820 * infrun.c (handle_inferior_event): Extract out a piece of code
3821 into...
3822 (mark_non_executing_threads): ...this new function.
3823
7ca9b62a
TBA
38242020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3825
3826 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3827 use.
3828
fc75c28b
TBA
38292020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3830
3831 * regcache.c (regcache_read_pc_protected): New function
3832 implementation that returns 0 if the PC cannot read via
3833 'regcache_read_pc'.
3834 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3835 instead of 'regcache_read_pc'.
3836 (keep_going_pass_signal): Ditto.
3837
a89febbd
TT
38382020-05-13 Tom Tromey <tromey@adacore.com>
3839
3840 * ada-lang.c (align_value): Remove.
3841 (ada_template_to_fixed_record_type_1): Use align_up.
3842
f7e23710
TBA
38432020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3844
3845 * async-event.c: Update the copyright year.
3846 * async-event.h: Update the copyright year.
3847
02ff80c2
SM
38482020-05-12 Simon Marchi <simon.marchi@efficios.com>
3849
3850 * objfiles.h (is_addr_in_objfile,
3851 shared_objfile_contains_address_p): Return bool.
3852 * objfile.c (is_addr_in_objfile,
3853 shared_objfile_contains_address_p): Return bool.
3854
4fd6c7e8
TT
38552020-05-11 Tom Tromey <tromey@adacore.com>
3856
3857 * cli/cli-cmds.c (info_command): Restore.
3858 (_initialize_cli_cmds): Use add_prefix_command for "info".
3859 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3860
5eb68a39
TT
38612020-05-11 Tom Tromey <tromey@adacore.com>
3862
3863 * ada-lang.c (ada_value_primitive_field): Now public.
3864 * ada-lang.h (ada_value_primitive_field): Declare.
3865 * ada-valprint.c (print_field_values): Use
3866 ada_value_primitive_field for wrapper fields.
3867
7666722f
TV
38682020-05-11 Tom de Vries <tdevries@suse.de>
3869
3870 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3871 MODULE_DOMAIN.
3872
3ee6bb11
TV
38732020-05-11 Tom de Vries <tdevries@suse.de>
3874
3875 PR symtab/25941
3876 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3877 with length 0, if not gdb-produced.
3878 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3879
43434996
TV
38802020-05-09 Tom de Vries <tdevries@suse.de>
3881
3882 PR gdb/25955
3883 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3884 calculation.
3885
2f78cffc
TT
38862020-05-09 Tom Tromey <tom@tromey.com>
3887
3888 * top.c (server_command): Now bool.
3889 * top.h (server_command): Now bool.
3890
4f7bc5ed
TT
38912020-05-08 Tom Tromey <tromey@adacore.com>
3892
3893 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3894 already being processed.
3895
8be4b118
TT
38962020-05-08 Tom Tromey <tom@tromey.com>
3897
3898 * printcmd.c (struct display) <next>: Remove.
3899 <display>: New constructor.
3900 <exp_string>: Now a std::string.
3901 <enabled_p>: Now a bool.
3902 (display_number): Move definition earlier.
3903 (displays): Rename from display_chain. Now a std::vector.
3904 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3905 (display_command): Update.
3906 (do_one_display, disable_display)
3907 (enable_disable_display_command, do_enable_disable_display):
3908 Update.
3909 (free_display): Remove.
3910 (clear_displays): Rewrite.
3911 (delete_display): Update.
3912 (map_display_numbers): Use function_view. Remove "data"
3913 parameter. Update.
3914 (do_delete_display): Remove.
3915 (undisplay_command): Update.
3916 (do_one_display, do_displays, disable_display)
3917 (info_display_command): Update.
3918 (do_enable_disable_display): Remove.
3919 (enable_disable_display_command)
3920 (clear_dangling_display_expressions): Update.
3921
94c93c35
TT
39222020-05-08 Tom Tromey <tom@tromey.com>
3923
3924 * symtab.c (set_symbol_cache_size)
3925 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3926 (maintenance_print_symbol_cache_statistics): Update.
3927 * symmisc.c (print_symbol_bcache_statistics)
3928 (print_objfile_statistics, maintenance_print_objfiles)
3929 (maintenance_info_symtabs, maintenance_check_symtabs)
3930 (maintenance_expand_symtabs, maintenance_info_line_tables):
3931 Update.
3932 * symfile-debug.c (set_debug_symfile): Update.
3933 * source.c (forget_cached_source_info): Update.
3934 * python/python.c (gdbpy_progspaces): Update.
3935 * psymtab.c (maintenance_info_psymtabs): Update.
3936 * probe.c (parse_probes): Update.
3937 * linespec.c (iterate_over_all_matching_symtabs)
3938 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3939 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3940 * exec.c (exec_target::close): Update.
3941 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3942 * breakpoint.c (print_one_breakpoint_location)
3943 (create_longjmp_master_breakpoint)
3944 (create_std_terminate_master_breakpoint): Update.
3945 * progspace.c (program_spaces): Now a std::vector.
3946 (maybe_new_address_space): Update.
3947 (add_program_space): Remove.
3948 (program_space::program_space): Update.
3949 (remove_program_space): Update.
3950 (number_of_program_spaces): Remove.
3951 (print_program_space, update_address_spaces): Update.
3952 * progspace.h (program_spaces): Change type.
3953 (ALL_PSPACES): Remove.
3954 (number_of_program_spaces): Don't declare.
3955 (struct program_space) <next>: Remove.
3956
a1fd1ac9
TT
39572020-05-08 Tom Tromey <tom@tromey.com>
3958
3959 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3960 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3961 (enable_break): Update.
3962 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3963 (frv_fdpic_find_canonical_descriptor): Update.
3964 (frv_fetch_objfile_link_map): Update.
3965 * progspace.c (program_space::free_all_objfiles): Update.
3966 (program_space::solibs): New method.
3967 * progspace.h (struct program_space) <solibs>: New method.
3968 * solist.h (master_so_list): Don't declare.
3969 (ALL_SO_LIBS): Remove.
3970 * solib.h (so_list_head): Remove.
3971 (update_solib_list): Update comment.
3972 * solib.c (master_so_list): Remove.
3973 (solib_used, update_solib_list, solib_add)
3974 (info_sharedlibrary_command, clear_solib)
3975 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3976
38eae084
TT
39772020-05-08 Tom Tromey <tom@tromey.com>
3978
3979 * extension.c (extension_languages): Now a std::array.
3980 (ALL_EXTENSION_LANGUAGES): Remove.
3981 (get_ext_lang_defn, get_ext_lang_of_file)
3982 (eval_ext_lang_from_control_command): Update.
3983 (finish_ext_lang_initialization)
3984 (auto_load_ext_lang_scripts_for_objfile)
3985 (ext_lang_type_printers::ext_lang_type_printers)
3986 (apply_ext_lang_type_printers)
3987 (ext_lang_type_printers::~ext_lang_type_printers)
3988 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3989 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3990 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3991 (get_matching_xmethod_workers, ext_lang_colorize)
3992 (ext_lang_before_prompt): Update.
3993 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3994
596dc4ad
TT
39952020-05-08 Tom Tromey <tom@tromey.com>
3996
3997 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3998 overload.
3999 <swap_string, m_string>: Remove.
4000 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4001 Update.
4002 * stabsread.c (define_symbol, read_type): Update.
4003 * linespec.c (find_linespec_symbols): Update.
4004 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4005 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4006 * dbxread.c (read_dbx_symtab): Update.
4007 * cp-support.h (cp_canonicalize_string_full)
4008 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4009 Return unique_xmalloc_ptr.
4010 * cp-support.c (inspect_type): Update.
4011 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4012 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4013 Likewise.
4014 * c-typeprint.c (print_name_maybe_canonical): Update.
4015 * break-catch-throw.c (check_status_exception_catchpoint):
4016 Update.
4017
bf4cb9be
TV
40182020-05-08 Tom de Vries <tdevries@suse.de>
4019
4020 * infrun.c (follow_fork): Copy current_line and current_symtab to
4021 child thread.
4022
a1b68f28
SM
40232020-05-07 Simon Marchi <simon.marchi@efficios.com>
4024
4025 * async-event.c (struct async_signal_handler, struct
4026 async_event_handler): Reformat, remove typedef.
4027
98d48915
SM
40282020-05-07 Simon Marchi <simon.marchi@efficios.com>
4029
4030 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4031 access thistype->main_type->dyn_prop_list directly.
4032
7aa91313
SM
40332020-05-07 Simon Marchi <simon.marchi@efficios.com>
4034
4035 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4036 (remove_dyn_prop): Remove. Update all users to use
4037 type::remove_dyn_prop.
4038 * gdbtypes.c (remove_dyn_prop): Rename to...
4039 (type::remove_dyn_prop): ... this.
4040
5c54719c
SM
40412020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4042
4043 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4044 (add_dyn_prop): Remove. Update all users to use
4045 type::add_dyn_prop.
4046 * gdbtypes.c (add_dyn_prop): Rename to...
4047 (type::add_dyn_prop): ... this.
4048
24e99c6c
SM
40492020-05-07 Simon Marchi <simon.marchi@efficios.com>
4050
4051 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4052 (get_dyn_prop): Remove. Update all users to use
4053 type::dyn_prop.
4054 * gdbtypes.c (get_dyn_prop): Rename to...
4055 (type::dyn_prop): ... this.
4056
0d4bf016
SM
40572020-05-06 Simon Marchi <simon.marchi@efficios.com>
4058
4059 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4060
ac4a4f1c
SM
40612020-05-06 Simon Marchi <simon.marchi@efficios.com>
4062
4063 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4064 instruction, skip it if it's there.
4065
a3bbacc1
SM
40662020-05-05 Simon Marchi <simon.marchi@efficios.com>
4067
4068 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4069
c3236f84
SM
40702020-05-04 Simon Marchi <simon.marchi@efficios.com>
4071
4072 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4073 * gdbtypes.c (recursive_dump_type): Remove use of
4074 TYPE_INCOMPLETE.
4075
3b6acaee
TT
40762020-05-03 Tom Tromey <tom@tromey.com>
4077
4078 * breakpoint.c (catch_command, tcatch_command): Remove.
4079 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4080 add_show_prefix_cmd.
4081 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4082 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4083 Remove.
4084 (add_internal_problem_command): Use add_basic_prefix_cmd,
4085 add_show_prefix_cmd.
4086 * mips-tdep.c (set_mipsfpu_command): Remove.
4087 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4088 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4089 (_initialize_index_cache): Use add_basic_prefix_cmd.
4090 * memattr.c (dummy_cmd): Remove.
4091 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4092 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4093 (_initialize_tui_win): Use add_basic_prefix_cmd,
4094 add_show_prefix_cmd.
4095 * cli/cli-logging.c (set_logging_command): Remove.
4096 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4097 add_show_prefix_cmd.
4098 (show_logging_command): Remove.
4099 * target.c (target_command): Remove.
4100 (add_target): Use add_basic_prefix_cmd.
4101
a51119cd
HD
41022020-05-02 Hannes Domani <ssbssa@yahoo.de>
4103
4104 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4105
652fc23a 41062020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4107
652fc23a
PW
4108 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4109 info_command.
4110
117539e6
KR
41112020-04-30 Kamil Rytarowski <n54@gmx.com>
4112
4113 * nbsd-nat.c (nbsd_enable_proc_events)
4114 (nbsd_nat_target::post_startup_inferior): Add.
4115 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4116 (nbsd_nat_target::update_thread_list): Rewrite.
4117 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4118 "PTRACE_LWP_CREATE".
4119 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4120
102e38eb 41212020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4122
102e38eb
PW
4123 * stack.c (_initialize_stack): Remove duplicated creation
4124 of "frame" command and "f" alias.
4125
ee9d1e5f
HD
41262020-04-30 Hannes Domani <ssbssa@yahoo.de>
4127
4128 PR gdb/18706
4129 * gdbtypes.c (check_typedef): Calculate size of array of
4130 stubbed type.
4131
627c7fb8
HD
41322020-04-30 Hannes Domani <ssbssa@yahoo.de>
4133
4134 PR gdb/15559
4135 * i386-tdep.c (i386_push_dummy_call): Call
4136 i386_thiscall_push_dummy_call.
4137 (i386_thiscall_push_dummy_call): New function.
4138 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4139 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4140 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4141
ffc2844e
SM
41422020-04-29 Simon Marchi <simon.marchi@efficios.com>
4143
4144 * gdbarch.sh (do_read): Add shellcheck disable directive for
4145 warning SC2162.
4146
1207375d
SM
41472020-04-29 Simon Marchi <simon.marchi@efficios.com>
4148
4149 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4150 "referenced but not assigned" warning.
4151
9fdb2916
SM
41522020-04-29 Simon Marchi <simon.marchi@efficios.com>
4153
4154 * gdbarch.sh: Remove code that sets fallbackdefault.
4155
759cea5e
SM
41562020-04-29 Simon Marchi <simon.marchi@efficios.com>
4157
4158 * gdbarch.sh: Use shell operators && and || instead of
4159 -a and -o.
4160
cb02ab24
SM
41612020-04-29 Simon Marchi <simon.marchi@efficios.com>
4162
4163 * gdbarch.sh: Use $(...) instead of `...`.
4164
a6fc5ffc
SM
41652020-04-29 Simon Marchi <simon.marchi@efficios.com>
4166
4167 * gdbarch.sh: Use double quotes around variables.
4168
8d113d13
SM
41692020-04-29 Simon Marchi <simon.marchi@efficios.com>
4170
4171 * gdbarch.sh: Use %s with printf, instead of variables in the
4172 format string.
4173
ed6acedd
TT
41742020-04-29 Tom Tromey <tromey@adacore.com>
4175
4176 PR ada/25875:
4177 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4178 type fields here.
4179 (read_enumeration_type): Call
4180 update_enumeration_type_from_children later. Update comments.
4181 (process_enumeration_scope): Don't create type fields.
4182
b68b1b58
KR
41832020-04-29 Kamil Rytarowski <n54@gmx.com>
4184
4185 * nbsd-tdep.c: Include "xml-syscall.h".
4186 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4187
f94b2e03
KR
41882020-04-29 Kamil Rytarowski <n54@gmx.com>
4189
4190 * nbsd-nat.c: Include "sys/wait.h".
4191 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4192 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4193 (nbsd_nat_target::remove_exec_catchpoint)
4194 (nbsd_nat_target::set_syscall_catchpoint): Add.
4195 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4196 (nbsd_nat_target::insert_exec_catchpoint)
4197 (nbsd_nat_target::remove_exec_catchpoint)
4198 (nbsd_nat_target::set_syscall_catchpoint): Add.
4199 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4200 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4201 `nbsd_get_syscall_number'.
4202
fc49bc72
TT
42032020-04-29 Tom Tromey <tom@tromey.com>
4204
4205 * stack.c (print_block_frame_labels): Remove.
4206
d642b692
HD
42072020-04-29 Hannes Domani <ssbssa@yahoo.de>
4208
4209 PR gdb/17320
4210 * ada-valprint.c (val_print_packed_array_elements): Move array
4211 end bracket to new line.
4212 (ada_val_print_string): Remove extra spaces before first array
4213 element.
4214 * c-valprint.c (c_value_print_array): Likewise.
4215 * m2-valprint.c (m2_print_array_contents): Likewise.
4216 (m2_value_print_inner): Likewise.
4217 * p-valprint.c (pascal_value_print_inner): Likewise.
4218 * valprint.c (generic_val_print_array): Likewise.
4219 (value_print_array_elements): Move first array element and array
4220 end bracket to new line.
4221
ea90f227
TV
42222020-04-29 Tom de Vries <tdevries@suse.de>
4223
4224 PR symtab/25889
4225 * linespec.c (find_method): Fix ix calculation.
4226
4498ef4f
KR
42272020-04-28 Kamil Rytarowski <n54@gmx.com>
4228
4229 * syscalls/update-netbsd.sh: New file.
4230 * syscalls/netbsd.xml: Regenerate.
4231 * data-directory/Makefile.in: Register `netbsd.xml' in
4232 `SYSCALLS_FILES'.
4233
a55e30b5
SM
42342020-04-28 Simon Marchi <simon.marchi@efficios.com>
4235
4236 * syscalls/update-freebsd.sh: Add double quotes.
4237
2b2fbab8
TT
42382020-04-28 Tom Tromey <tom@tromey.com>
4239
4240 * NEWS: Update.
4241 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4242 (cmdpy_init): Allow class_tui.
4243
a65189c9
TV
42442020-04-28 Mark Williams <mark@myosotissp.com>
4245
4246 PR gdb/24480
4247 * dwarf2read.c: Add missing assingments to list_in_scope when
4248 start_symtab was already called.
4249
1b95cdb7
SM
42502020-04-28 Simon Marchi <simon.marchi@efficios.com>
4251
4252 PR gdb/25881
4253 * dwarf2/read.c (offset_map_type): Use
4254 gdb:hash_enum<sect_offset> as hash function.
4255
15cd93d0
TV
42562020-04-28 Tom de Vries <tdevries@suse.de>
4257
4258 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4259 with DW_AT_signature.
4260
1eb39914
SM
42612020-04-27 Simon Marchi <simon.marchi@efficios.com>
4262
4263 * configure.ac: Remove check for fs_base/gs_base in
4264 user_regs_struct.
4265 * configure: Re-generate.
4266 * config.in: Re-generate.
4267 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4268 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4269 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4270
991a3e2e
LM
42712020-04-27 Luis Machado <luis.machado@linaro.org>
4272
4273 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4274 problematic inline frame unwinding situation.
4275 * frame.c (frame_id_computed_p): New function.
4276 * frame.h (frame_id_computed_p): New prototype.
4277
361ba0e8
TT
42782020-04-26 Tom Tromey <tom@tromey.com>
4279
4280 * command.h (enum command_class) <class_pseudo>: Remove.
4281
bc3609fd
PW
42822020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4283
4284 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4285 and whitespace.
4286
b9771db7
KR
42872020-04-25 Kamil Rytarowski <n54@gmx.com>
4288
ec16513e
SM
4289 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4290 `PT_GET_PROCESS_STATE' block.
b9771db7 4291
7151c1af
TT
42922020-04-24 Tom Tromey <tom@tromey.com>
4293
4294 * symtab.h (symbol_get_demangled_name): Don't declare.
4295 * symtab.c (symbol_get_demangled_name): Remove.
4296 (general_symbol_info::natural_name)
4297 (general_symbol_info::demangled_name): Update.
4298
906bb4c5
TT
42992020-04-24 Tom Tromey <tom@tromey.com>
4300
4301 PR rust/25025:
4302 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4303
bcfe6157
TT
43042020-04-24 Tom Tromey <tom@tromey.com>
4305
4306 PR symtab/12707:
4307 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4308 exists.
4309 (new_symbol): Likewise.
4310 * compile/compile-object-load.c (get_out_value_type): Use
4311 symbol_matches_search_name.
4312
f049a313
TT
43132020-04-24 Tom Tromey <tom@tromey.com>
4314
4315 * dwarf2/read.c (add_partial_symbol): Do not call
4316 compute_and_set_names.
4317
76e288d1
TT
43182020-04-24 Tom Tromey <tom@tromey.com>
4319
4320 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4321 overload.
4322
2467f4f6
TT
43232020-04-24 Tom Tromey <tom@tromey.com>
4324
4325 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4326 (add_psymbol_to_list): New overload. Make old overload call new
4327 one.
4328 * psympriv.h (add_psymbol_to_list): New overload.
4329
e61108c9
TT
43302020-04-24 Tom Tromey <tom@tromey.com>
4331
4332 * dwarf2/read.c (partial_die_info::read) <case
4333 DW_AT_linkage_name>: Use value_as_string.
4334 (dwarf2_string_attr): Use value_as_string.
4335 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4336 method.
4337 * dwarf2/attribute.c (attribute::value_as_string): New method.
4338
8c87a452
TT
43392020-04-24 Tom Tromey <tom@tromey.com>
4340
4341 * symtab.c (general_symbol_info::natural_name)
4342 (general_symbol_info::demangled_name): Check for language_rust.
4343
787de330
TT
43442020-04-24 Tom Tromey <tom@tromey.com>
4345
4346 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4347 (dwarf2_physname): ... from here.
4348 (partial_die_info::read): Add Rust "{" hack.
4349
ff985671
TT
43502020-04-24 Tom Tromey <tom@tromey.com>
4351
4352 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4353 method.
4354 (symbol_set_demangled_name): Don't declare.
4355 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4356 symbol_set_demangled_name.
4357 (general_symbol_info::set_language)
4358 (general_symbol_info::compute_and_set_names): Update.
4359 * minsyms.c (minimal_symbol_reader::install): Update.
4360 * dwarf2/read.c (new_symbol): Update.
4361
1acda803
TT
43622020-04-24 Tom Tromey <tromey@adacore.com>
4363
4364 PR python/23662:
4365 * python/py-type.c (convert_field): Handle
4366 FIELD_LOC_KIND_DWARF_BLOCK.
4367 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4368 (typy_get_dynamic): Nw function.
4369 (type_object_getset): Add "dynamic".
4370 * NEWS: Add entry.
4371
d656f129
TT
43722020-04-24 Tom Tromey <tromey@adacore.com>
4373
4374 * ada-typeprint.c (print_choices, print_variant_part)
4375 (print_record_field_types_dynamic): New functions.
4376 (print_record_field_types): Use print_record_field_types_dynamic.
4377
7d79de9a
TT
43782020-04-24 Tom Tromey <tromey@adacore.com>
4379
4380 * dwarf2/read.c (handle_data_member_location): New overload.
4381 (dwarf2_add_field): Use it.
4382 (decode_locdesc): Add "computed" parameter. Update comment.
4383 * gdbtypes.c (is_dynamic_type_internal): Also look for
4384 FIELD_LOC_KIND_DWARF_BLOCK.
4385 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4386 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4387 virtual base classes.
4388 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4389 FIELD_LOC_KIND_DWARF_BLOCK.
4390
f8e89861
TT
43912020-04-24 Tom Tromey <tromey@adacore.com>
4392
4393 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4394 * gdbtypes.c (is_dynamic_type_internal): Check
4395 TYPE_HAS_DYNAMIC_LENGTH.
4396 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4397 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4398 New macros.
4399 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4400 constant.
4401
9c6a1327
TT
44022020-04-24 Tom Tromey <tromey@adacore.com>
4403
4404 * dwarf2/read.c (struct variant_field): Rewrite.
4405 (struct variant_part_builder): New.
4406 (struct nextfield): Remove "variant" field. Add "offset".
4407 (struct field_info): Add "current_variant_part" and
4408 "variant_parts".
4409 (alloc_discriminant_info): Remove.
4410 (alloc_rust_variant): New function.
4411 (quirk_rust_enum): Update.
4412 (dwarf2_add_field): Set "offset" member. Don't handle
4413 DW_TAG_variant_part.
4414 (offset_map_type): New typedef.
4415 (convert_variant_range, create_one_variant)
4416 (create_one_variant_part, create_variant_parts)
4417 (add_variant_property): New functions.
4418 (dwarf2_attach_fields_to_type): Call add_variant_property.
4419 (read_structure_type): Don't handle DW_TAG_variant_part.
4420 (handle_variant_part, handle_variant): New functions.
4421 (handle_struct_member_die): Use them.
4422 (process_structure_scope): Don't handle variant parts.
4423 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4424 (struct discriminant_info): Remove.
4425 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4426 (struct main_type) <flag_discriminated_union>: Remove.
4427 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4428 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4429 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4430 Update.
4431 * valops.c (value_union_variant): Remove.
4432 * value.h (value_union_variant): Don't declare.
4433
b249d2c2
TT
44342020-04-24 Tom Tromey <tromey@adacore.com>
4435
4436 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4437 (ada_value_primitive_packed_val): Update.
4438 * ada-valprint.c (ada_value_print_1): Update.
4439 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4440 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4441 just an address. Use evaluate_for_locexpr_baton.
4442 (dwarf2_evaluate_property): Update.
4443 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4444 array_view.
4445 * findvar.c (default_read_var_value): Update.
4446 * gdbtypes.c (compute_variant_fields_inner)
4447 (resolve_dynamic_type_internal): Update.
4448 (resolve_dynamic_type): Change type of valaddr parameter.
4449 * gdbtypes.h (resolve_dynamic_type): Update.
4450 * valarith.c (value_subscripted_rvalue): Update.
4451 * value.c (value_from_contents_and_address): Update.
4452
61122aa9
TT
44532020-04-24 Tom Tromey <tromey@adacore.com>
4454
4455 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4456 "push_initial_value" parameter.
4457 (dwarf2_evaluate_property): Likewise.
4458 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4459
ef83a141
TT
44602020-04-24 Tom Tromey <tromey@adacore.com>
4461
4462 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4463 (variant::matches, compute_variant_fields_recurse)
4464 (compute_variant_fields_inner, compute_variant_fields): New
4465 functions.
4466 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4467 Use resolved_type after type is made.
4468 (operator==): Add new cases.
4469 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4470 (struct discriminant_range, struct variant, struct variant_part):
4471 New.
4472 (union dynamic_prop_data) <variant_parts, original_type>: New
4473 members.
4474 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4475 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4476 constants.
4477 * value.c (unpack_bits_as_long): Now public.
4478 * value.h (unpack_bits_as_long): Declare.
4479
675127ec
TT
44802020-04-24 Tom Tromey <tromey@adacore.com>
4481
4482 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4483 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4484
9852ceef
HD
44852020-04-24 Hannes Domani <ssbssa@yahoo.de>
4486
4487 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4488
7632c6ce
KR
44892020-04-24 Kamil Rytarowski <n54@gmx.com>
4490
4491 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4492 (remove_fork_catchpoint, post_startup_inferior)
4493 (post_attach): Move...
4494 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4495 (remove_fork_catchpoint, post_startup_inferior)
4496 (post_attach): ...here.
4497 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4498 (remove_fork_catchpoint, post_startup_inferior)
4499 (post_attach): Move...
4500 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4501 (remove_fork_catchpoint, post_startup_inferior)
4502 (post_attach): ...here.
4503
7be2bb4f
TT
45042020-04-24 Tom Tromey <tromey@adacore.com>
4505
4506 * nat/windows-nat.h (struct windows_thread_info)
4507 <pc_adjusted>: New member.
4508 * windows-nat.c (windows_fetch_one_register): Check
4509 pc_adjusted.
4510 (windows_nat_target::get_windows_debug_event)
4511 (windows_nat_target::wait): Set pc_adjusted.
4512
f80cb3b4
TV
45132020-04-24 Tom de Vries <tdevries@suse.de>
4514
4515 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4516 Run gdb-add-index inside temp dir.
4517
29514b87
TT
45182020-04-23 Tom Tromey <tromey@adacore.com>
4519
4520 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4521 in loop.
4522
5939967b
LM
45232020-04-23 Luis Machado <luis.machado@linaro.org>
4524
4525 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4526 get_frame_register instead of gdbarch_unwind_pc.
4527
70bc38f5
TV
45282020-04-23 Tom de Vries <tdevries@suse.de>
4529
4530 * symtab.c (lookup_global_symbol): Prefer def over decl.
4531
de82891c
TV
45322020-04-23 Tom de Vries <tdevries@suse.de>
4533
4534 PR symtab/25807
4535 * block.c (best_symbol, better_symbol): Promote to external.
4536 * block.h (best_symbol, better_symbol): Declare.
4537 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4538 decl.
4539
ecc6c606
TT
45402020-04-23 Tom Tromey <tromey@adacore.com>
4541
4542 PR ada/25837:
4543 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4544 "const char *", not a "const std::string &".
4545 <name_and_matcher::operator==>: Update.
4546 * unittests/lookup_name_info-selftests.c: Change type of
4547 "result".
4548
740480b8
TT
45492020-04-23 Tom Tromey <tom@tromey.com>
4550
4551 * inferior.h (iterate_over_inferiors): Don't declare.
4552 * inferior.c (iterate_over_inferiors): Remove.
4553 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4554 Remove.
4555 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4556 use iterate_over_inferiors.
4557 (darwin_resume_inferior_it)
4558 (struct resume_inferior_threads_param)
4559 (darwin_resume_inferior_threads_it): Remove.
4560 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4561
ae3ab1f0
TV
45622020-04-23 Tom de Vries <tdevries@suse.de>
4563
4564 * blockframe.c (find_pc_partial_function): Use
4565 find_pc_sect_compunit_symtab rather than
4566 objfile->sf->qf->find_pc_sect_compunit_symtab.
4567
317d2668
TV
45682020-04-22 Tom de Vries <tdevries@suse.de>
4569
4570 PR symtab/25764
4571 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4572 in psymtabs.
4573
eea9e357
TV
45742020-04-22 Tom de Vries <tdevries@suse.de>
4575
4576 PR symtab/25801
4577 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4578 symtabs.
4579
3d5afab3
TV
45802020-04-22 Tom de Vries <tdevries@suse.de>
4581
4582 PR symtab/25700
4583 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4584 CU if already created.
4585
d43b7a2d
TBA
45862020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4587
4588 * infrun.c (displaced_step_fixup): Switch to the event_thread
4589 before calling displaced_step_restore, not after.
4590
d89edf9b
MM
45912020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4592
4593 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4594 its inferior is not recorded by us.
4595 (record_btrace_target_open): Replace call to
4596 all_non_exited_threads () with call to current_inferior
4597 ()->non_exited_threads ().
4598 (record_btrace_target::stop_recording): Likewise.
4599 (record_btrace_target::close): Likewise.
4600 (record_btrace_target::wait): Likewise.
4601 (record_btrace_target::record_stop_replaying): Likewise.
4602
5897fd49
MM
46032020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4604
4605 * btrace.c (btrace_enable): Throw an error on double enables and
4606 when enabling recording fails.
4607 (btrace_disable): Throw an error if the thread is not recorded.
4608
1a476b6d
MM
46092020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4610
4611 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4612 request if we do not have a thread_info.
4613
4778a5f8
TV
46142020-04-21 Tom de Vries <tdevries@suse.de>
4615
4616 PR gdb/25471
4617 * thread.c
4618 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4619 exception in get_frame_id.
4620
0fa7617d
TT
46212020-04-20 Tom Tromey <tromey@adacore.com>
4622
4623 * python/python.c (struct gdbpy_event): Mark move constructor as
4624 noexcept.
4625 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4626 constructor as noexcept.
4627 * completer.h (struct completion_result): Mark move constructor as
4628 noexcept.
4629 * completer.c (completion_result::completion_result): Use
4630 initialization style. Don't call reset_match_list.
4631
ad23bda0
MS
46322020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4633
4634 * MAINTAINERS (Write After Approval): Add myself.
4635
45e1f031
TT
46362020-04-18 Tom Tromey <tom@tromey.com>
4637
4638 * windows-tdep.c (init_w32_command_list)
4639 (w32_prefix_command_valid): Restore.
4640 (_initialize_windows_tdep): Call init_w32_command_list.
4641
08feed99
TT
46422020-04-18 Tom Tromey <tom@tromey.com>
4643
4644 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4645 * value.c (value_fn_field): Update.
4646 * valops.c (find_function_in_inferior)
4647 (value_allocate_space_in_inferior): Update.
4648 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4649 Update.
4650 * tui/tui-source.c (tui_source_window::set_contents): Update.
4651 * symtab.c (lookup_global_or_static_symbol)
4652 (find_function_start_sal_1, skip_prologue_sal)
4653 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4654 * symmisc.c (dump_msymbols, dump_symtab_1)
4655 (maintenance_print_one_line_table): Update.
4656 * symfile.c (init_entry_point_info, section_is_mapped)
4657 (list_overlays_command, simple_read_overlay_table)
4658 (simple_overlay_update_1): Update.
4659 * stap-probe.c (handle_stap_probe): Update.
4660 * stabsread.c (dbx_init_float_type, define_symbol)
4661 (read_one_struct_field, read_enum_type, read_range_type): Update.
4662 * source.c (info_line_command): Update.
4663 * python/python.c (gdbpy_source_objfile_script)
4664 (gdbpy_execute_objfile_script): Update.
4665 * python/py-type.c (save_objfile_types): Update.
4666 * python/py-objfile.c (py_free_objfile): Update.
4667 * python/py-inferior.c (python_new_objfile): Update.
4668 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4669 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4670 (maintenance_check_psymtabs): Update.
4671 * printcmd.c (info_address_command): Update.
4672 * objfiles.h (struct objfile) <arch>: New method, from
4673 get_objfile_arch.
4674 (get_objfile_arch): Don't declare.
4675 * objfiles.c (get_objfile_arch): Remove.
4676 (filter_overlapping_sections): Update.
4677 * minsyms.c (msymbol_is_function): Update.
4678 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4679 (output_nondebug_symbol): Update.
4680 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4681 (mdebug_expand_psymtab): Update.
4682 * machoread.c (macho_add_oso_symfile): Update.
4683 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4684 Update.
4685 * linux-fork.c (checkpoint_command): Update.
4686 * linespec.c (convert_linespec_to_sals): Update.
4687 * jit.c (finalize_symtab): Update.
4688 * infrun.c (insert_exception_resume_from_probe): Update.
4689 * ia64-tdep.c (ia64_find_unwind_table): Update.
4690 * hppa-tdep.c (internalize_unwinds): Update.
4691 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4692 Update.
4693 * gcore.c (call_target_sbrk): Update.
4694 * elfread.c (record_minimal_symbol, elf_symtab_read)
4695 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4696 (elf_gnu_ifunc_resolve_by_got): Update.
4697 * dwarf2/read.c (create_addrmap_from_index)
4698 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4699 (read_debug_names_from_section)
4700 (process_psymtab_comp_unit_reader, add_partial_symbol)
4701 (add_partial_subprogram, process_full_comp_unit)
4702 (read_file_scope, read_func_scope, read_lexical_block_scope)
4703 (read_call_site_scope, dwarf2_ranges_read)
4704 (dwarf2_record_block_ranges, dwarf2_add_field)
4705 (mark_common_block_symbol_computed, read_tag_pointer_type)
4706 (read_tag_string_type, dwarf2_init_float_type)
4707 (dwarf2_init_complex_target_type, read_base_type)
4708 (partial_die_info::read, partial_die_info::read)
4709 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4710 (dwarf2_fetch_die_loc_sect_off): Update.
4711 * dwarf2/loc.c (dwarf2_find_location_expression)
4712 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4713 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4714 (dwarf2_loc_desc_get_symbol_read_needs)
4715 (locexpr_describe_location_piece, locexpr_describe_location_1)
4716 (loclist_describe_location): Update.
4717 * dwarf2/index-write.c (write_debug_names): Update.
4718 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4719 * dtrace-probe.c (dtrace_process_dof): Update.
4720 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4721 (process_one_symbol): Update.
4722 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4723 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4724 (coff_read_enum_type): Update.
4725 * cli/cli-cmds.c (edit_command, list_command): Update.
4726 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4727 * breakpoint.c (create_overlay_event_breakpoint)
4728 (create_longjmp_master_breakpoint)
4729 (create_std_terminate_master_breakpoint)
4730 (create_exception_master_breakpoint, get_sal_arch): Update.
4731 * block.c (block_gdbarch): Update.
4732 * annotate.c (annotate_source_line): Update.
4733
0743fc83
TT
47342020-04-17 Tom Tromey <tromey@adacore.com>
4735
4736 * auto-load.c (show_auto_load_cmd): Remove.
4737 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4738 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4739 (maintenance_print_arc_command): Remove.
4740 * tui/tui-win.c (tui_command): Remove.
4741 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4742 * tui/tui-layout.c (tui_layout_command): Remove.
4743 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4744 * python/python.c (user_set_python, user_show_python): Remove.
4745 (_initialize_python): Use add_basic_prefix_cmd,
4746 add_show_prefix_cmd.
4747 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4748 (install_gdb_commands): Use add_basic_prefix_cmd,
4749 add_show_prefix_cmd.
4750 (info_guile_command): Remove.
4751 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4752 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4753 add_show_prefix_cmd.
4754 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4755 Remove do_set and do_show parameters.
4756 * cli/cli-style.c (set_style, show_style): Remove.
4757 (_initialize_cli_style): Use add_basic_prefix_cmd,
4758 add_show_prefix_cmd.
4759 (cli_style_option::add_setshow_commands): Remove do_set and
4760 do_show parameters.
4761 (cli_style_option::add_setshow_commands): Use
4762 add_basic_prefix_cmd, add_show_prefix_cmd.
4763 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4764 (set_style_name): Remove.
4765 * cli/cli-dump.c (dump_command, append_command): Remove.
4766 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4767 (tekhex_dump_command, binary_dump_command)
4768 (binary_append_command): Remove.
4769 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4770 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4771 (init_w32_command_list): Remove; move into ...
4772 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4773 * valprint.c (set_print, show_print, set_print_raw)
4774 (show_print_raw): Remove.
4775 (_initialize_valprint): Use add_basic_prefix_cmd,
4776 add_show_prefix_cmd.
4777 * typeprint.c (set_print_type, show_print_type): Remove.
4778 (_initialize_typeprint): Use add_basic_prefix_cmd,
4779 add_show_prefix_cmd.
4780 * record.c (set_record_command, show_record_command): Remove.
4781 (_initialize_record): Use add_basic_prefix_cmd,
4782 add_show_prefix_cmd.
4783 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4784 add_show_prefix_cmd.
4785 (info_command, show_command, set_debug, show_debug): Remove.
4786 * top.h (set_history, show_history): Don't declare.
4787 * top.c (set_history, show_history): Remove.
4788 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4789 (unset_tdesc_cmd): Remove.
4790 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4791 add_show_prefix_cmd.
4792 * symtab.c (info_module_command): Remove.
4793 (_initialize_symtab): Use add_basic_prefix_cmd.
4794 * symfile.c (overlay_command): Remove.
4795 (_initialize_symfile): Use add_basic_prefix_cmd.
4796 * sparc64-tdep.c (info_adi_command): Remove.
4797 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4798 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4799 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4800 add_show_prefix_cmd.
4801 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4802 (_initialize_serial): Use add_basic_prefix_cmd,
4803 add_show_prefix_cmd.
4804 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4805 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4806 add_show_prefix_cmd.
4807 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4808 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4809 add_show_prefix_cmd.
4810 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4811 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4812 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4813 add_show_prefix_cmd.
4814 * remote.c (remote_command, set_remote_cmd): Remove.
4815 (_initialize_remote): Use add_basic_prefix_cmd.
4816 * record-full.c (set_record_full_command)
4817 (show_record_full_command): Remove.
4818 (_initialize_record_full): Use add_basic_prefix_cmd,
4819 add_show_prefix_cmd.
4820 * record-btrace.c (cmd_set_record_btrace)
4821 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4822 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4823 (cmd_show_record_btrace_pt): Remove.
4824 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4825 add_show_prefix_cmd.
4826 * ravenscar-thread.c (set_ravenscar_command)
4827 (show_ravenscar_command): Remove.
4828 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4829 add_show_prefix_cmd.
4830 * mips-tdep.c (show_mips_command, set_mips_command)
4831 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4832 add_show_prefix_cmd.
4833 * maint.c (maintenance_command, maintenance_info_command)
4834 (maintenance_check_command, maintenance_print_command)
4835 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4836 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4837 add_show_prefix_cmd.
4838 (show_per_command_cmd): Remove.
4839 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4840 Remove.
4841 (maintenance_show_test_settings_cmd): Remove.
4842 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4843 add_show_prefix_cmd.
4844 * maint-test-options.c (maintenance_test_options_command):
4845 Remove.
4846 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4847 * macrocmd.c (macro_command): Remove
4848 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4849 * language.c (set_check, show_check): Remove.
4850 (_initialize_language): Use add_basic_prefix_cmd,
4851 add_show_prefix_cmd.
4852 * infcmd.c (unset_command): Remove.
4853 (_initialize_infcmd): Use add_basic_prefix_cmd.
4854 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4855 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4856 add_show_prefix_cmd.
4857 * go32-nat.c (go32_info_dos_command): Remove.
4858 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4859 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4860 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4861 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4862 (_initialize_frame): Use add_basic_prefix_cmd,
4863 add_show_prefix_cmd.
4864 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4865 (_initialize_dcache): Use add_basic_prefix_cmd,
4866 add_show_prefix_cmd.
4867 * cp-support.c (maint_cplus_command): Remove.
4868 (_initialize_cp_support): Use add_basic_prefix_cmd.
4869 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4870 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4871 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4872 add_basic_prefix_cmd, add_show_prefix_cmd.
4873 * breakpoint.c (save_command): Remove.
4874 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4875 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4876 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4877 add_show_prefix_cmd.
4878 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4879 (set_ada_command, show_ada_command): Remove.
4880 (_initialize_ada_language): Use add_basic_prefix_cmd,
4881 add_show_prefix_cmd.
4882 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4883
3557f442
KR
48842020-04-16 Kamil Rytarowski <n54@gmx.com>
4885
4886 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4887 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4888
16197208
SM
48892020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4890
4891 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4892 warning messages.
4893
00ac85d3
SM
48942020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4895
4896 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4897 import table is not at beginning of .idata section.
4898
381ce63f
PA
48992020-04-16 Pedro Alves <palves@redhat.com>
4900
4901 * inferior.c (delete_inferior): Use delete operator directly
4902 instead of delete_program_space.
4903 * progspace.c (add_program_space): New, factored out from
4904 program_space::program_space.
4905 (remove_program_space): New, factored out from
4906 delete_program_space.
4907 (program_space::program_space): Remove intro comment. Rewrite.
4908 (program_space::~program_space): Remove intro comment. Call
4909 remove_program_space.
4910 (delete_program_space): Delete.
4911 * progspace.h (program_space::program_space): Make explicit. Move
4912 intro comment here, adjusted.
4913 (program_space::~program_space): Move intro comment here,
4914 adjusted.
4915 (delete_program_space): Remove.
4916
a010605f
TT
49172020-04-16 Tom Tromey <tromey@adacore.com>
4918
4919 * windows-nat.c (windows_nat::handle_access_violation): New
4920 function.
4921 * nat/windows-nat.h (handle_access_violation): Declare.
4922 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4923 windows-nat.c. Call handle_access_violation.
4924
efba5c23
TV
49252020-04-16 Tom de Vries <tdevries@suse.de>
4926
4927 PR symtab/25791
4928 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4929 CUs without psymtab.
4930
97ed802d
KB
49312020-04-16 Kevin Buettner <kevinb@redhat.com>
4932
4933 * python/python.c (do_start_initialization): Don't call
4934 PyEval_InitThreads for Python 3.9 and beyond.
4935
c7d64809
KR
49362020-04-15 Kamil Rytarowski <n54@gmx.com>
4937
4938 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4939 thread functions.
4940 (obsd_nat_target::wait): Likewise.
4941
ce127a96
TT
49422020-04-15 Tom Tromey <tromey@adacore.com>
4943
4944 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4945 (DEBUG_EXCEPT): Use debug_printf.
4946
99f1bc6a
AB
49472020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4948
4949 * completer.c (class completion_tracker::completion_hash_entry)
4950 <hash_name>: New member function.
4951 (completion_tracker::discard_completions): New callback to hash a
4952 completion_hash_entry, pass this to htab_create_alloc.
4953
a0e9b532
JT
49542016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4955
4956 * windows-nat.c (windows_make_so): Warn rather than stopping with
4957 an error if realpath() fails.
4958
06ca5dd4
KR
49592020-04-14 Kamil Rytarowski <n54@gmx.com>
4960
4961 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4962 (nbsd_nat_target::info_proc): Add do_status.
4963
194d088f
TV
49642020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4965 Tom de Vries <tdevries@suse.de>
4966
4967 PR symtab/25718
4968 * psympriv.h (struct partial_symtab::read_symtab)
4969 (struct partial_symtab::expand_psymtab)
4970 (struct partial_symtab::read_dependencies): Update comments.
4971 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4972 read_symtab for includer.
4973 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4974 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4975 (struct dwarf2_include_psymtab::m_readin): Remove.
4976 (struct dwarf2_include_psymtab::includer): New member function.
4977 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4978
c1a66c06
TV
49792020-04-14 Tom de Vries <tdevries@suse.de>
4980
4981 PR symtab/25720
4982 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4983 with NULL symbol_matcher and lookup_name.
4984 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4985 and lookup_name.
4986 * dwarf2/read.c (dw2_expand_symtabs_matching)
4987 (dw2_debug_names_expand_symtabs_matching): Same.
4988 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4989 Make lookup_name a pointer. Update comment.
4990 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4991 lookup_name being a pointer.
4992 * symfile.c (expand_symtabs_matching): Same.
4993 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4994 * linespec.c (iterate_over_all_matching_symtabs): Same.
4995
400b5eca
TT
49962020-04-13 Tom Tromey <tom@tromey.com>
4997
4998 * run-on-main-thread.c: Update include.
4999 * unittests/main-thread-selftests.c: Update include.
5000 * tui/tui-win.c: Update include.
5001 * tui/tui-io.c: Update include.
5002 * tui/tui-interp.c: Update include.
5003 * tui/tui-hooks.c: Update include.
5004 * top.h: Update include.
5005 * top.c: Update include.
5006 * ser-base.c: Update include.
5007 * remote.c: Update include.
5008 * remote-notif.c: Update include.
5009 * remote-fileio.c: Update include.
5010 * record-full.c: Update include.
5011 * record-btrace.c: Update include.
5012 * python/python.c: Update include.
5013 * posix-hdep.c: Update include.
5014 * mingw-hdep.c: Update include.
5015 * mi/mi-main.c: Update include.
5016 * mi/mi-interp.c: Update include.
5017 * main.c: Update include.
5018 * linux-nat.c: Update include.
5019 * interps.c: Update include.
5020 * infrun.c: Update include.
5021 * inf-loop.c: Update include.
5022 * event-top.c: Update include.
5023 * event-loop.c: Move to ../gdbsupport/.
5024 * event-loop.h: Move to ../gdbsupport/.
5025 * async-event.h: Update include.
5026 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5027
93b54c8e
TT
50282020-04-13 Tom Tromey <tom@tromey.com>
5029
5030 * tui/tui-win.c: Include async-event.h.
5031 * remote.c: Include async-event.h.
5032 * remote-notif.c: Include async-event.h.
5033 * record-full.c: Include async-event.h.
5034 * record-btrace.c: Include async-event.h.
5035 * infrun.c: Include async-event.h.
5036 * event-top.c: Include async-event.h.
5037 * event-loop.h: Move some declarations to async-event.h.
5038 * event-loop.c: Don't include ser-event.h or top.h. Move some
5039 code to async-event.c.
5040 * async-event.h: New file.
5041 * async-event.c: New file.
5042 * Makefile.in (COMMON_SFILES): Add async-event.c.
5043 (HFILES_NO_SRCDIR): Add async-event.h.
5044
c1cd3163
TT
50452020-04-13 Tom Tromey <tom@tromey.com>
5046
5047 * utils.c (flush_streams): New function.
5048 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5049
29f2bf4f
TT
50502020-04-13 Tom Tromey <tom@tromey.com>
5051
5052 * event-loop.c (handle_file_event): Use warning, not
5053 printf_unfiltered.
5054
98029d02
TT
50552020-04-13 Tom Tromey <tom@tromey.com>
5056
5057 * event-loop.c: Include <chrono>.
5058
06cc9596
TT
50592020-04-13 Tom Tromey <tom@tromey.com>
5060
5061 * gdb_select.h: Move to ../gdbsupport/.
5062 * event-loop.c: Update include path.
5063 * top.c: Update include path.
5064 * ser-base.c: Update include path.
5065 * ui-file.c: Update include path.
5066 * ser-tcp.c: Update include path.
5067 * guile/scm-ports.c: Update include path.
5068 * posix-hdep.c: Update include path.
5069 * ser-unix.c: Update include path.
5070 * gdb_usleep.c: Update include path.
5071 * mingw-hdep.c: Update include path.
5072 * inflow.c: Update include path.
5073 * infrun.c: Update include path.
5074 * event-top.c: Update include path.
5075
8ae8e197
TT
50762020-04-13 Tom Tromey <tom@tromey.com>
5077
5078 * configure: Rebuild.
5079 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5080
58cf28e8
TT
50812020-04-13 Tom Tromey <tom@tromey.com>
5082
5083 * event-loop.h (start_event_loop): Don't declare.
5084 * event-loop.c (start_event_loop): Move...
5085 * main.c (start_event_loop): ...here. Now static.
5086
b7f999ae
SDJ
50872020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5088
5089 * MAINTAINERS: Update my email address.
5090
1085dfd4
KR
50912020-04-12 Kamil Rytarowski <n54@gmx.com>
5092
5093 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5094 IP_ALL.
5095
49d1d1f5
KR
50962020-04-12 Kamil Rytarowski <n54@gmx.com>
5097
5098 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5099 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5100
b4848d2a
KR
51012020-04-12 Kamil Rytarowski <n54@gmx.com>
5102
5103 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5104 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5105
51c133d5
KR
51062020-04-12 Kamil Rytarowski <n54@gmx.com>
5107
5108 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5109
54b8cbd0
KR
51102020-04-11 Kamil Rytarowski <n54@gmx.com>
5111
5112 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5113 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5114 (nbsd_nat_target::info_proc): New functions.
5115 * nbsd-nat.c (kinfo_get_vmmap): New function.
5116 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5117 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5118 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5119 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5120 functions.
5121 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5122 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5123 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5124 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5125 (KINFO_VME_FLAG_GROWS_DOWN): New.
5126
cf83625d
AS
51272020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5128
5129 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5130 bit shift.
5131
0c4311ab
TT
51322020-04-10 Tom Tromey <tromey@adacore.com>
5133
5134 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5135
3e65b3e9
TT
51362020-04-10 Tom Tromey <tromey@adacore.com>
5137
5138 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5139 separate debug files.
5140
13302e95
HD
51412020-04-10 Hannes Domani <ssbssa@yahoo.de>
5142
5143 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5144 Move to...
5145 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5146 ... here.
5147 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5148 Check for STATUS_WX86_BREAKPOINT.
5149 (windows_nat_target::wait): Same.
5150
bdfc1e8a
TV
51512020-04-10 Tom de Vries <tdevries@suse.de>
5152
5153 PR cli/25808
5154 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5155
f4460aec
SM
51562020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5157
5158 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5159 (Write After Approval): Remove Tom de Vries.
5160
a25198bb
BE
51612020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5162
5163 revert partially:
5164 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5165
aac66a4c
SM
5166 * buildsym.c (record_line): Fix undefined behavior and preserve
5167 lines at eof.
a25198bb 5168
206c98a6
KR
51692020-04-09 Kamil Rytarowski <n54@gmx.com>
5170
5171 * auxv.h (svr4_auxv_parse): New.
5172 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5173 and generic_auxv_parse.
5174 (svr4_auxv_parse): Add.
5175 * obsd-tdep.c: Include "auxv.h".
5176 (obsd_auxv_parse): Remove.
5177 (obsd_init_abi): Remove comment.
5178 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5179 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5180 * nbsd-tdep.c: Include "auxv.h".
5181 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5182
71fbdbaf
TT
51832020-04-08 Tom Tromey <tromey@adacore.com>
5184
5185 * nat/windows-nat.h (last_wait_event): Don't declare.
5186 (wait_for_debug_event): Update comment.
5187 * nat/windows-nat.c (last_wait_event): Now static.
5188
2c1d95e8
TT
51892020-04-08 Tom Tromey <tromey@adacore.com>
5190
5191 * windows-nat.c (wait_for_debug_event): Move to
5192 nat/windows-nat.c.
5193 * nat/windows-nat.h (wait_for_debug_event): Declare.
5194 * nat/windows-nat.c (wait_for_debug_event): Move from
5195 windows-nat.c. No longer static.
5196
d2977bc4
TT
51972020-04-08 Tom Tromey <tromey@adacore.com>
5198
5199 * windows-nat.c (get_windows_debug_event): Use
5200 fetch_pending_stop.
5201 * nat/windows-nat.h (fetch_pending_stop): Declare.
5202 * nat/windows-nat.c (fetch_pending_stop): New function.
5203
e758e19c
TT
52042020-04-08 Tom Tromey <tromey@adacore.com>
5205
5206 * windows-nat.c (windows_continue): Use matching_pending_stop and
5207 continue_last_debug_event.
5208 * nat/windows-nat.h (matching_pending_stop)
5209 (continue_last_debug_event): Declare.
5210 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5211 (matching_pending_stop, continue_last_debug_event): New
5212 functions.
5213
8d30e395
TT
52142020-04-08 Tom Tromey <tromey@adacore.com>
5215
5216 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5217 (handle_exception_result): Move to nat/windows-nat.h.
5218 (DEBUG_EXCEPTION_SIMPLE): Remove.
5219 (windows_nat::handle_ms_vc_exception): New function.
5220 (handle_exception): Move to nat/windows-nat.c.
5221 (get_windows_debug_event): Update.
5222 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5223 nat/windows-nat.c.
5224 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5225 (handle_exception_result): Move from windows-nat.c.
5226 (handle_exception): Declare.
5227 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5228 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5229 windows-nat.c.
5230
29de418d
TT
52312020-04-08 Tom Tromey <tromey@adacore.com>
5232
5233 * windows-nat.c (exception_count, event_count): Remove.
5234 (handle_exception, get_windows_debug_event)
5235 (do_initial_windows_stuff): Update.
5236
a816ba18
TT
52372020-04-08 Tom Tromey <tromey@adacore.com>
5238
5239 * windows-nat.c (windows_nat::handle_load_dll)
5240 (windows_nat::handle_unload_dll): Rename. No longer static.
5241 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5242 Declare.
5243
a00caa12
TT
52442020-04-08 Tom Tromey <tromey@adacore.com>
5245
5246 * complaints.h (stop_whining): Declare at top-level.
5247 (complaint): Don't declare stop_whining.
5248
d41b524f
TT
52492020-04-08 Tom Tromey <tromey@adacore.com>
5250
5251 * windows-nat.c (windows_nat::handle_output_debug_string):
5252 Rename. No longer static.
5253 * nat/windows-nat.h (handle_output_debug_string): Declare.
5254
3c76026d
TT
52552020-04-08 Tom Tromey <tromey@adacore.com>
5256
5257 * windows-nat.c (current_process_handle, current_process_id)
5258 (main_thread_id, last_sig, current_event, last_wait_event)
5259 (current_windows_thread, desired_stop_thread_id, pending_stops)
5260 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5261 (display_selectors, fake_create_process)
5262 (get_windows_debug_event): Update.
5263 * nat/windows-nat.h (current_process_handle, current_process_id)
5264 (main_thread_id, last_sig, current_event, last_wait_event)
5265 (current_windows_thread, desired_stop_thread_id, pending_stops)
5266 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5267 * nat/windows-nat.c (current_process_handle, current_process_id)
5268 (main_thread_id, last_sig, current_event, last_wait_event)
5269 (current_windows_thread, desired_stop_thread_id, pending_stops)
5270 (siginfo_er): New globals. Move from windows-nat.c.
5271
9d8679cc
TT
52722020-04-08 Tom Tromey <tromey@adacore.com>
5273
5274 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5275 (handle_load_dll): Update.
5276 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5277
28688adf
TT
52782020-04-08 Tom Tromey <tromey@adacore.com>
5279
5280 * windows-nat.c (enum thread_disposition_type): Move to
5281 nat/windows-nat.h.
5282 (windows_nat::thread_rec): Rename from thread_rec. No longer
5283 static.
5284 (windows_add_thread, windows_nat_target::fetch_registers)
5285 (windows_nat_target::store_registers, handle_exception)
5286 (windows_nat_target::resume, get_windows_debug_event)
5287 (windows_nat_target::get_tib_address)
5288 (windows_nat_target::thread_name)
5289 (windows_nat_target::thread_alive): Update.
5290 * nat/windows-nat.h (enum thread_disposition_type): Move from
5291 windows-nat.c.
5292 (thread_rec): Declare.
5293
4834dad0
TT
52942020-04-08 Tom Tromey <tromey@adacore.com>
5295
5296 * windows-nat.c: Add "using namespace".
5297 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5298 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5299
65bafd5b
TT
53002020-04-08 Tom Tromey <tromey@adacore.com>
5301
5302 * nat/windows-nat.h (struct windows_thread_info): Declare
5303 destructor.
5304 * nat/windows-nat.c (~windows_thread_info): New.
5305
0a4afda3
TT
53062020-04-08 Tom Tromey <tromey@adacore.com>
5307
5308 PR gdb/22992
5309 * windows-nat.c (current_event): Update comment.
5310 (last_wait_event, desired_stop_thread_id): New globals.
5311 (struct pending_stop): New.
5312 (pending_stops): New global.
5313 (windows_nat_target) <stopped_by_sw_breakpoint>
5314 <supports_stopped_by_sw_breakpoint>: New methods.
5315 (windows_fetch_one_register): Add assertions. Adjust PC.
5316 (windows_continue): Handle pending stops. Suspend other threads
5317 when stepping. Use last_wait_event
5318 (wait_for_debug_event): New function.
5319 (get_windows_debug_event): Use wait_for_debug_event. Handle
5320 pending stops. Queue spurious stops.
5321 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5322 (windows_nat_target::kill): Use wait_for_debug_event.
5323 * nat/windows-nat.h (struct windows_thread_info)
5324 <stopped_at_software_breakpoint>: New field.
5325 * nat/windows-nat.c (windows_thread_info::resume): Clear
5326 stopped_at_software_breakpoint.
5327
8e61ebec
TT
53282020-04-08 Tom Tromey <tromey@adacore.com>
5329
5330 * windows-nat.c (enum thread_disposition_type): New.
5331 (thread_rec): Replace "get_context" parameter with "disposition";
5332 change type.
5333 (windows_add_thread, windows_nat_target::fetch_registers)
5334 (windows_nat_target::store_registers, handle_exception)
5335 (windows_nat_target::resume, get_windows_debug_event)
5336 (windows_nat_target::get_tib_address)
5337 (windows_nat_target::thread_name)
5338 (windows_nat_target::thread_alive): Update.
5339
98a03287
TT
53402020-04-08 Tom Tromey <tromey@adacore.com>
5341
5342 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5343 (windows_continue): Use windows_continue::resume.
5344 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5345 resume>: Declare new methods.
5346 * nat/windows-nat.c: New file.
5347 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5348
7c7411bc
TT
53492020-04-08 Tom Tromey <tromey@adacore.com>
5350
5351 * windows-nat.c (windows_add_thread, windows_delete_thread)
5352 (windows_nat_target::fetch_registers)
5353 (windows_nat_target::store_registers, fake_create_process)
5354 (windows_nat_target::resume, windows_nat_target::resume)
5355 (get_windows_debug_event, windows_nat_target::wait)
5356 (windows_nat_target::pid_to_str)
5357 (windows_nat_target::get_tib_address)
5358 (windows_nat_target::get_ada_task_ptid)
5359 (windows_nat_target::thread_name)
5360 (windows_nat_target::thread_alive): Use lwp, not tid.
5361
2950fdf7
TT
53622020-04-08 Tom Tromey <tromey@adacore.com>
5363
5364 * windows-nat.c (handle_exception)
5365 (windows_nat_target::thread_name): Update.
5366 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5367 <name>: Now unique_xmalloc_ptr.
5368
62fe396b
TT
53692020-04-08 Tom Tromey <tromey@adacore.com>
5370
5371 * windows-nat.c (thread_rec)
5372 (windows_nat_target::fetch_registers): Update.
5373 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5374 Update comment.
5375 <debug_registers_changed, reload_context>: Now bool.
5376
e9534bd2
TT
53772020-04-08 Tom Tromey <tromey@adacore.com>
5378
5379 * windows-nat.c (windows_add_thread): Use new.
5380 (windows_init_thread_list, windows_delete_thread): Use delete.
5381 (get_windows_debug_event): Update.
5382 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5383 destructor, and initializers.
5384
ae1f8880
TT
53852020-04-08 Tom Tromey <tromey@adacore.com>
5386
5387 * windows-nat.c (struct windows_thread_info): Remove.
5388 * nat/windows-nat.h: New file.
5389
55a1e039
TT
53902020-04-08 Tom Tromey <tromey@adacore.com>
5391
5392 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5393 (thread_rec, windows_add_thread, windows_delete_thread)
5394 (windows_continue): Update.
5395
93366324
TT
53962020-04-08 Tom Tromey <tromey@adacore.com>
5397
5398 * windows-nat.c (struct windows_thread_info): Remove typedef.
5399 (thread_head): Remove.
5400 (thread_list): New global.
5401 (thread_rec, windows_add_thread, windows_init_thread_list)
5402 (windows_delete_thread, windows_continue): Update.
5403
0f2265e2
SM
54042020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5405
5406 * windows-tdep.h (windows_init_abi): Add comment.
5407 (cygwin_init_abi): New declaration.
5408 * windows-tdep.c: Split signal enumeration in two, one for
5409 Windows and one for Cygwin.
5410 (windows_gdb_signal_to_target): Only deal with signal of the
5411 Windows OS ABI.
5412 (cygwin_gdb_signal_to_target): New function.
5413 (windows_init_abi): Rename to windows_init_abi_common, don't set
5414 gdb_signal_to_target gdbarch method. Add new new function with
5415 this name.
5416 (cygwin_init_abi): New function.
5417 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5418 comment. Don't call windows_init_abi.
5419 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5420 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5421 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5422 i386_windows_init_abi_common, don't call windows_init_abi. Add
5423 a new function of this name.
5424 (i386_cygwin_init_abi): New function.
5425 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5426 OS ABI Cygwin.
5427
3810f182
SM
54282020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5429
5430 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5431 parameter.c.
5432 (dwarf2_read_gdb_index): Update.
5433
063f8e80
KR
54342020-04-07 Kamil Rytarowski <n54@gmx.com>
5435
5436 * nbsd-tdep.c: Include "objfiles.h".
5437 (nbsd_skip_solib_resolver): New.
5438 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5439
85a9510c 54402020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5441
5442 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5443 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5444 with DW_LLE_base_addressx are being emitted in DWARFv5.
5445 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5446 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5447 unsigned integer.
5448
9fc3eaae 54492020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5450
5451 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5452 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5453 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5454 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5455 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5456 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5457 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5458
5459
41144253 54602020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5461
5462 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5463 (read_loclist_index): New function definition.
5464 (lookup_loclist_base): New function definition.
5465 (read_loclist_header): New function definition.
5466 (dwarf2_cu): Add loclist_base and loclist_header field.
5467 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5468 (read_full_die_1): Read the value of DW_AT_loclists_base.
5469 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5470 (read_attribute_value): Handle DW_FORM_loclistx.
5471 (skip_one_die): Handle DW_FORM_loclistx.
5472 (loclist_header): New structure declaration.
5473 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5474
9f4e76a4
SM
54752020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5476
5477 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5478 constructor. Remove `addr` parameter from other constructor and
5479 add `per_cu` parameter.
5480 * dwarf2/read.c (create_partial_symtab): Update.
5481
25c11aca
TV
54822020-04-07 Tom de Vries <tdevries@suse.de>
5483
5484 PR symtab/25796
5485 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5486 (partial_die_info::fixup): Inherit has_const_value.
5487
5707e24b
TV
54882020-04-07 Tom de Vries <tdevries@suse.de>
5489
5490 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5491 symbols without address.
5492
05f00e22
KR
54932020-04-06 Kamil Rytarowski <n54@gmx.com>
5494
5495 * nbsd-nat.h (struct thread_info): Add forward declaration.
5496 (nbsd_nat_target::thread_alive): Add.
5497 (nbsd_nat_target::thread_name): Likewise.
5498 (nbsd_nat_target::update_thread_list): Likewise.
5499 (update_thread_list::post_attach): Likewise.
5500 (post_attach::pid_to_str): Likewise.
5501 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5502 (nbsd_thread_lister): Add.
5503 (nbsd_nat_target::thread_alive): Likewise.
5504 (nbsd_nat_target::thread_name): Likewise.
5505 (nbsd_add_threads): Likewise.
5506 (update_thread_list::post_attach): Likewise.
5507 (nbsd_nat_target::update_thread_list): Likewise.
5508 (post_attach::pid_to_str): Likewise.
5509
6ee448cc
TT
55102020-04-06 Tom Tromey <tromey@adacore.com>
5511
5512 * ada-valprint.c (print_variant_part): Extract the variant field.
5513 (print_field_values): Use the field as the outer value when
5514 recursing.
5515
dea34e8c
TT
55162020-04-06 Tom Tromey <tromey@adacore.com>
5517
5518 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5519 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5520 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5521 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5522 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5523
93689ce9
TT
55242020-04-06 Tom Tromey <tromey@adacore.com>
5525
5526 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5527 TYPE_CODE_ERROR.
5528
79743962
KR
55292020-04-06 Kamil Rytarowski <n54@gmx.com>
5530
5531 * nbsd-tdep.c: Include "gdbarch.h".
5532 Define enum with NetBSD signal numbers.
5533 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5534 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5535 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5536 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5537 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5538 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5539 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5540 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5541 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5542 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5543 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5544 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5545
9e7c9a03
HD
55462020-04-03 Hannes Domani <ssbssa@yahoo.de>
5547
5548 PR gdb/25325
5549 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5550
d9e49b61
TT
55512020-04-03 Tom Tromey <tromey@adacore.com>
5552
5553 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5554 Read constant block.
5555
e0fc5c3f
SM
55562020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5557
5558 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5559 (gdb_bfd_get_full_section_contents): New declaration.
5560 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5561 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5562 gdb_bfd_get_full_section_contents.
5563
e2ff18a0
SM
55642020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5565
5566 * exec.c (build_section_table): Replace internal_error with
5567 gdb_assert.
5568 (section_table_xfer_memory_partial): Likewise.
5569 * mdebugread.c (parse_partial_symbols): Likewise.
5570 * psymtab.c (lookup_partial_symbol): Likewise.
5571 * utils.c (wrap_here): Likewise.
5572
0830d301
TT
55732020-04-02 Tom Tromey <tromey@adacore.com>
5574
5575 * f-lang.c (build_fortran_types): Use arch_type to initialize
5576 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5577
e7da7f8f
TT
55782020-04-02 Tom Tromey <tromey@adacore.com>
5579
5580 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5581 of attributes.
5582
c90d28ac
AB
55832020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5584 Bernd Edlinger <bernd.edlinger@hotmail.de>
5585 Tom Tromey <tromey@adacore.com>
5586
5587 * buildsym.c (buildsym_compunit::record_line): Remove
5588 deduplication code.
5589
1aa98955
TV
55902020-04-02 Tom de Vries <tdevries@suse.de>
5591
5592 PR ada/24671
5593 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5594
d3214198
TV
55952020-04-02 Tom de Vries <tdevries@suse.de>
5596
5597 * dwarf2/read.c (dwarf2_gdb_index_functions,
5598 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5599 NULL.
5600 * psymtab.c (psym_lookup_global_symbol_language): New function.
5601 (psym_functions): Init psym_lookup_global_symbol_language with
5602 psym_lookup_global_symbol_language.
5603 * symfile-debug.c (debug_sym_quick_functions): Init
5604 lookup_global_symbol_language with NULL.
5605 * symfile.c (set_initial_language): Remove fixme comment.
5606 * symfile.h (struct quick_symbol_functions): Add
5607 lookup_global_symbol_language.
5608 * symtab.c (find_quick_global_symbol_language): New function.
5609 (find_main_name): Use find_quick_global_symbol_language.
5610
2836752f
SM
56112020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5612
5613 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5614
64dc2d4b
BE
56152020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5616
5617 * buildsym.c (record_line): Fix undefined behavior and preserve
5618 lines at eof.
5619
bbe3dc41
BE
56202020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5621
5622 * buildsym.c (record_line): Fix the resizing condition.
5623
6b4a335b
TT
56242020-04-01 Tom Tromey <tom@tromey.com>
5625
5626 * value.h (value_literal_complex): Add comment.
5627 * valops.c (value_literal_complex): Refer to value.h.
5628
3638a098
TT
56292020-04-01 Tom Tromey <tom@tromey.com>
5630
5631 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5632 (scalar_type): New rule, from typebase.
5633 (typebase): Use scalar_type. Recognize complex types.
5634 (field_name): Handle FLOAT_KEYWORD.
5635 (ident_tokens): Add _Complex and __complex__.
5636
c34e8714
TT
56372020-04-01 Tom Tromey <tom@tromey.com>
5638
5639 PR exp/25299:
5640 * valarith.c (promotion_type, complex_binop): New functions.
5641 (scalar_binop): Handle complex numbers. Use promotion_type.
5642 (value_pos, value_neg, value_complement): Handle complex numbers.
5643
fa649bb7
TT
56442020-04-01 Tom Tromey <tom@tromey.com>
5645
5646 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5647 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5648 (parse_number): Handle complex numbers.
5649
981c08ce
TT
56502020-04-01 Tom Tromey <tom@tromey.com>
5651
5652 * c-valprint.c (c_decorations): Change complex suffix to "i".
5653
4c99290d
TT
56542020-04-01 Tom Tromey <tom@tromey.com>
5655
5656 * valprint.c (generic_value_print_complex): Use accessors.
5657 * value.h (value_real_part, value_imaginary_part): Declare.
5658 * valops.c (value_real_part, value_imaginary_part): New
5659 functions.
5660 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5661
5b930b45
TT
56622020-04-01 Tom Tromey <tom@tromey.com>
5663
5664 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5665 (read_range_type): Update.
5666 * mdebugread.c (basic_type): Update.
5667 * go-lang.c (build_go_types): Use init_complex_type.
5668 * gdbtypes.h (struct main_type) <complex_type>: New member.
5669 (init_complex_type): Update.
5670 (arch_complex_type): Don't declare.
5671 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5672 Make name if none given. Use alloc_type_copy. Look for cached
5673 complex type.
5674 (arch_complex_type): Remove.
5675 (gdbtypes_post_init): Use init_complex_type.
5676 * f-lang.c (build_fortran_types): Use init_complex_type.
5677 * dwarf2/read.c (read_base_type): Update.
5678 * d-lang.c (build_d_types): Use init_complex_type.
5679 * ctfread.c (read_base_type): Update.
5680
53cccef1
TBA
56812020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5682
5683 * infrun.c (stop_all_threads): Update assertion, plus when
5684 stopping threads, take into account that we might be trying
5685 to stop an all-stop target.
5686 (stop_waiting): Call 'stop_all_threads' if there exists a
5687 non-stop target.
5688
a0714d30
TBA
56892020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5690
5691 * target.h (exists_non_stop_target): New function declaration.
5692 * target.c (exists_non_stop_target): New function.
5693
60e22c1e
HD
56942020-04-01 Hannes Domani <ssbssa@yahoo.de>
5695
5696 PR gdb/24789
5697 * eval.c (is_integral_or_integral_reference): New function.
5698 (evaluate_subexp_standard): Allow integer references in
5699 pointer arithmetic.
5700
e139a727
TBA
57012020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5702
5703 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5704 check for no ptid in the stop reply when the target is non-stop.
5705
e0802d59
TT
57062020-04-01 Tom Tromey <tromey@adacore.com>
5707
5708 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5709 "name" parameter to rvalue reference. Initialize m_name_holder.
5710 <lookup_name_info>: New overloads.
5711 <name>: Return gdb::string_view.
5712 <c_str>: New method.
5713 <make_ignore_params>: Update.
5714 <search_name_hash>: Update.
5715 <language_lookup_name>: Return const char *.
5716 <m_name>: Change type.
5717 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5718 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5719 (lookup_name_info::match_any): Update.
5720 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5721 Update.
5722 * minsyms.c (linkage_name_str): Update.
5723 * language.c (default_symbol_name_matcher): Update.
5724 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5725 Update.
5726 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5727 (ada_lookup_name_info::ada_lookup_name_info): Update.
5728 (literal_symbol_name_matcher): Update.
5729
8c072cb6
TT
57302020-04-01 Tom Tromey <tromey@adacore.com>
5731
5732 * psymtab.c (psymtab_search_name): Remove function.
5733 (psym_lookup_symbol): Create search name and lookup name here.
5734 (lookup_partial_symbol): Remove "name" parameter; add
5735 lookup_name.
5736 (psym_expand_symtabs_for_function): Update.
5737
6f29a534
TT
57382020-03-31 Joel Jones <joelkevinjones@gmail.com>
5739
5740 PR tui/25597:
5741 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5742
af62665e
TT
57432020-03-31 Tom Tromey <tromey@adacore.com>
5744
5745 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5746 memcpy.
5747
d1a89da5
NC
57482020-03-30 Nelson Chu <nelson.chu@sifive.com>
5749
5750 * features/riscv/32bit-csr.xml: Regenerated.
5751 * features/riscv/64bit-csr.xml: Regenerated.
5752
d8af9068
TT
57532020-03-30 Tom Tromey <tromey@adacore.com>
5754
5755 * ada-valprint.c (print_variant_part): Update.
5756 * ada-lang.h (ada_which_variant_applies): Update.
5757 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5758 outer_valaddr parameters; replace with "outer" value parameter.
5759 (to_fixed_variant_branch_type): Update.
5760
227c0bf4
PFC
57612020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5762
5763 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5764 <list>. Remove inclusion of observable.h.
5765 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5766 (struct arch_lwp_info): New struct.
5767 (class ppc_linux_dreg_interface): New class.
5768 (struct ppc_linux_process_info): New struct.
5769 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5770 <low_new_clone, low_forget_process, low_prepare_to_resume>
5771 <copy_thread_dreg_state, mark_thread_stale>
5772 <mark_debug_registers_changed, register_hw_breakpoint>
5773 <clear_hw_breakpoint, register_wp, clear_wp>
5774 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5775 <num_memory_accesses, get_trigger_type>
5776 <create_watchpoint_request, hwdebug_point_cmp>
5777 <init_arch_lwp_info, get_arch_lwp_info>
5778 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5779 methods.
5780 <struct ptid_hash>: New inner struct.
5781 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5782 members.
5783 (saved_dabr_value, hwdebug_info, max_slots_number)
5784 (struct hw_break_tuple, struct thread_points, ppc_threads)
5785 (have_ptrace_hwdebug_interface)
5786 (hwdebug_find_thread_points_by_tid)
5787 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5788 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5789 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5790 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5791 use m_dreg_interface.
5792 (hwdebug_point_cmp): Change to...
5793 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5794 reference arguments instead of pointers.
5795 (ppc_linux_nat_target::ranged_break_num_registers): Use
5796 m_dreg_interface.
5797 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5798 m_dreg_interface. Call register_hw_breakpoint.
5799 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5800 m_dreg_interface. Call clear_hw_breakpoint.
5801 (get_trigger_type): Change to...
5802 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5803 comment.
5804 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5805 use m_dreg_interface. Call register_hw_breakpoint.
5806 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5807 use m_dreg_interface. Call clear_hw_breakpoint.
5808 (can_use_watchpoint_cond_accel): Change to...
5809 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5810 method. Update comment, use m_dreg_interface and
5811 m_process_info.
5812 (calculate_dvc): Change to...
5813 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5814 m_dreg_interface.
5815 (num_memory_accesses): Change to...
5816 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5817 (check_condition): Change to...
5818 (ppc_linux_nat_target::check_condition): ...this method.
5819 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5820 comment, use m_dreg_interface.
5821 (create_watchpoint_request): Change to...
5822 (ppc_linux_nat_target::create_watchpoint_request): ...this
5823 method. Use m_dreg_interface.
5824 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5825 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5826 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5827 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5828 (ppc_linux_nat_target::low_forget_process)
5829 (ppc_linux_nat_target::low_new_fork)
5830 (ppc_linux_nat_target::low_new_clone)
5831 (ppc_linux_nat_target::low_delete_thread)
5832 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5833 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5834 only call mark_thread_stale.
5835 (ppc_linux_thread_exit): Remove.
5836 (ppc_linux_nat_target::stopped_data_address): Change to...
5837 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5838 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5839 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5840 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5841 comment. Call low_stopped_data_address.
5842 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5843 m_dreg_interface.
5844 (ppc_linux_nat_target::masked_watch_num_registers): Use
5845 m_dreg_interface.
5846 (ppc_linux_nat_target::copy_thread_dreg_state)
5847 (ppc_linux_nat_target::mark_thread_stale)
5848 (ppc_linux_nat_target::mark_debug_registers_changed)
5849 (ppc_linux_nat_target::register_hw_breakpoint)
5850 (ppc_linux_nat_target::clear_hw_breakpoint)
5851 (ppc_linux_nat_target::register_wp)
5852 (ppc_linux_nat_target::clear_wp)
5853 (ppc_linux_nat_target::init_arch_lwp_info)
5854 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5855 (_initialize_ppc_linux_nat): Remove observer callback.
5856
4db10d8f
PFC
58572020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5858
5859 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5860 (ppc_linux_nat_target::auxv_parse)
5861 (ppc_linux_nat_target::read_description)
5862 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5863 Move up.
5864
1310c1b0
PFC
58652020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5866
5867 * linux-nat.h (low_new_clone): New method.
5868 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5869
69b037c3
SM
58702020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5871
5872 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5873 (dbx_expand_psymtab): ... this.
5874 (start_psymtab): Update.
5875 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5876 (mdebug_expand_psymtab): ... this.
5877 (parse_partial_symbols): Update.
5878 (new_psymtab): Update.
5879 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5880 (xcoff_expand_psymtab): ... this.
5881 (xcoff_start_psymtab): Update.
5882
48993951
SM
58832020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5884
5885 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5886 <expand_dependencies>: ... this.
5887 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5888 (partial_symtab::expand_dependencies): ... this.
5889 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5890 Update.
5891 (dwarf2_psymtab::expand_psymtab): Update.
5892 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5893 * mdebugread.c (psymtab_to_symtab_1): Update.
5894 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5895
3ad83046
SM
58962020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5897
5898 * psympriv.h (discard_psymtab): Remove.
5899 * dbxread.c (dbx_end_psymtab): Update.
5900 * xcoffread.c (xcoff_end_psymtab): Update.
5901
4d1b9ab6
TT
59022020-03-28 Tom Tromey <tom@tromey.com>
5903
5904 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5905 comment.
5906
f1749218
TT
59072020-03-28 Tom Tromey <tom@tromey.com>
5908
5909 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5910
ebea7626
HD
59112020-03-27 Hannes Domani <ssbssa@yahoo.de>
5912
5913 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5914
a879b4d5
JB
59152020-03-26 John Baldwin <jhb@FreeBSD.org>
5916
5917 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5918
0826b30a
TT
59192020-03-26 Tom Tromey <tom@tromey.com>
5920
5921 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5922 (mark_common_block_symbol_computed, read_tag_string_type)
5923 (attr_to_dynamic_prop, read_subrange_type): Update.
5924 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5925 to be methods on struct attribute.
5926 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5927 (read_call_site_scope, partial_die_info::read)
5928 (partial_die_info::read, lookup_die_type, follow_die_ref):
5929 Update.
5930 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5931 from dwarf2_get_ref_die_offset.
5932 (attribute::constant_value): New method, from
5933 dwarf2_get_attr_constant_value.
5934 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5935 Declare method.
5936 <constant_value>: New method.
5937
2b2558bf
TT
59382020-03-26 Tom Tromey <tom@tromey.com>
5939
5940 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5941 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5942 (dwarf_type_encoding_name): Move to stringify.c.
5943 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5944 * dwarf2/stringify.c: New file.
5945 * dwarf2/stringify.h: New file.
5946
eeb64781
TT
59472020-03-26 Tom Tromey <tom@tromey.com>
5948
5949 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5950 Rewrite.
5951
a39fdb41
TT
59522020-03-26 Tom Tromey <tom@tromey.com>
5953
5954 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5955 methods.
5956 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5957 (lookup_ranges_base): Likewise.
5958 (read_cutu_die_from_dwo, read_full_die_1): Update.
5959
436c571c
TT
59602020-03-26 Tom Tromey <tom@tromey.com>
5961
5962 * dwarf2/read.c (read_import_statement, read_file_scope)
5963 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5964 (read_lexical_block_scope, read_call_site_scope)
5965 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5966 (handle_struct_member_die, process_structure_scope)
5967 (update_enumeration_type_from_children)
5968 (process_enumeration_scope, read_array_type, read_common_block)
5969 (read_namespace, read_module, read_subroutine_type): Update.
5970 (sibling_die): Remove.
5971
052c8bb8
TT
59722020-03-26 Tom Tromey <tom@tromey.com>
5973
5974 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5975 (build_type_psymtabs_reader, read_structure_type)
5976 (read_enumeration_type, read_full_die_1): Update.
5977 (dwarf2_attr_no_follow): Move to die.h.
5978 * dwarf2/die.h (struct die_info) <attr>: New method.
5979
2b24b6e4
TT
59802020-03-26 Tom Tromey <tom@tromey.com>
5981
5982 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5983 <base_address>: Now an optional.
5984 (dwarf2_find_base_address, dwarf2_rnglists_process)
5985 (dwarf2_ranges_process, fill_in_loclist_baton)
5986 (dwarf2_symbol_mark_computed): Update.
5987
c2d50fd0
TT
59882020-03-26 Tom Tromey <tom@tromey.com>
5989
5990 * dwarf2/read.c (struct die_info): Move to die.h.
5991 * dwarf2/die.h: New file.
5992
0df7ad3a
TT
59932020-03-26 Tom Tromey <tom@tromey.com>
5994
5995 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5996 * dwarf2/read.c
5997 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5998 Move to line-header.c.
5999 (read_checked_initial_length_and_offset, read_formatted_entries):
6000 Likewise.
6001 (dwarf_decode_line_header): Split into two.
6002 * dwarf2/line-header.c
6003 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6004 Move from read.c.
6005 (read_checked_initial_length_and_offset, read_formatted_entries):
6006 Likewise.
6007 (dwarf_decode_line_header): New function, split from read.c.
6008
86c0bb4c
TT
60092020-03-26 Tom Tromey <tom@tromey.com>
6010
6011 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6012 Declare method.
6013 * dwarf2/read.c (read_attribute_value): Update.
6014 (dwarf2_per_objfile::read_line_string): Rename from
6015 read_indirect_line_string.
6016 (read_formatted_entries): Update.
6017
2ef46c2f
TT
60182020-03-26 Tom Tromey <tom@tromey.com>
6019
6020 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6021 variable.
6022
4f9c1eda
TT
60232020-03-26 Tom Tromey <tom@tromey.com>
6024
6025 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6026 const.
6027 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6028 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6029 parameter const.
6030
5a0e026f
TT
60312020-03-26 Tom Tromey <tom@tromey.com>
6032
6033 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6034 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6035 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6036 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6037
8844c11b
TT
60382020-03-26 Tom Tromey <tom@tromey.com>
6039
6040 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6041 file_names_size, file_full_name, file_file_name>: Use const.
6042 <file_name_at, file_names>: Add const overload.
6043 * dwarf2/line-header.c (line_header::file_file_name)
6044 (line_header::file_full_name): Update.
6045
c90ec28a
TT
60462020-03-26 Tom Tromey <tom@tromey.com>
6047
6048 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6049 (macro_start_file, consume_improper_spaces)
6050 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6051 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6052 (dwarf_decode_macros): Move to macro.c.
6053 * dwarf2/macro.c: New file.
6054 * dwarf2/macro.h: New file.
6055 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6056
4f44ae6c
TT
60572020-03-26 Tom Tromey <tom@tromey.com>
6058
6059 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6060 method.
6061 * dwarf2/section.c: New method. From
6062 read_indirect_string_at_offset_from.
6063 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6064 (read_indirect_string_at_offset_from): Move to section.c.
6065 (read_indirect_string_at_offset): Rewrite.
6066 (read_indirect_line_string_at_offset): Remove.
6067 (read_indirect_string, read_indirect_line_string)
6068 (dwarf_decode_macro_bytes): Update.
6069
a0194fa8
TT
60702020-03-26 Tom Tromey <tom@tromey.com>
6071
6072 * dwarf2/section.h (struct dwarf2_section_info)
6073 <overload_complaint>: Declare.
6074 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6075 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6076 Rename from dwarf2_section_buffer_overflow_complaint.
6077 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6078 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6079
3d27bbdb
TT
60802020-03-26 Tom Tromey <tom@tromey.com>
6081
6082 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6083 Declare.
6084 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6085 Move from read.c.
6086 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6087 to section.c.
6088
9eac9650
TT
60892020-03-26 Tom Tromey <tom@tromey.com>
6090
6091 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6092
bf80d710
TT
60932020-03-26 Tom Tromey <tom@tromey.com>
6094
6095 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6096 "builder".
6097 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6098 parameter.
6099 (dwarf_decode_macros): Update.
6100
0314b390
TT
61012020-03-26 Tom Tromey <tom@tromey.com>
6102
6103 * dwarf2/read.c (read_attribute_value): Update.
6104 (read_indirect_string_from_dwz): Move to dwz.c; change into
6105 method.
6106 (dwarf_decode_macro_bytes): Update.
6107 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6108 * dwarf2/dwz.c: New file.
6109 * Makefile.in (COMMON_SFILES): Add dwz.c.
6110
9fda78b6
TT
61112020-03-26 Tom Tromey <tom@tromey.com>
6112
6113 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6114 * dwarf2/read.c: Add include.
6115 * dwarf2/index-write.c: Add include.
6116 * dwarf2/index-cache.c: Add include.
6117 * dwarf2/dwz.h: New file.
6118
33aa3c10
TT
61192020-03-25 Tom Tromey <tom@tromey.com>
6120
6121 * compile/compile-object-load.c (get_out_value_type): Mention
6122 correct symbol name in error message.
6123
d503b685
HD
61242020-03-25 Hannes Domani <ssbssa@yahoo.de>
6125
6126 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6127
7b1eff95
TV
61282020-03-25 Tom de Vries <tdevries@suse.de>
6129
6130 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6131 * symmisc.c (dump_symtab_1): Print user and includes fields.
6132 (maintenance_info_symtabs): Same.
6133
dd895392
AB
61342020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6135
6136 PR gdb/25534
6137 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6138 (riscv_regcache_cooked_write): New function.
6139 (riscv_push_dummy_call): Use new function.
6140 (riscv_return_value): Likewise.
6141
5ab2fbf1
SM
61422020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6143
6144 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6145 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6146 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6147 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6148 * infrun.c (follow_fork): Likewise.
6149 (follow_fork_inferior): Likewise.
6150 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6151 * linux-nat.h (class linux_nat_target): Likewise.
6152 * remote.c (class remote_target) <follow_fork>: Likewise.
6153 (remote_target::follow_fork): Likewise.
6154 * target-delegates.c: Re-generate.
6155 * target.c (default_follow_fork): Likewise.
6156 (target_follow_fork): Likewise.
6157 * target.h (struct target_ops) <follow_fork>: Likewise.
6158 (target_follow_fork): Likewise.
6159
a64fafb5
TV
61602020-03-24 Tom de Vries <tdevries@suse.de>
6161
6162 * psymtab.c (maintenance_info_psymtabs): Print user field.
6163
fe26d3a3
TT
61642020-03-20 Tom Tromey <tromey@adacore.com>
6165
6166 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6167 const.
6168 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6169 const.
6170
c884cc46
SM
61712020-03-20 Simon Marchi <simon.marchi@efficios.com>
6172
6173 * ptrace.m4: Don't check for ptrace declaration.
6174 * config.in: Re-generate.
6175 * configure: Re-generate.
6176 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6177 not defined.
6178
1ff700c2
KR
61792020-03-20 Kamil Rytarowski <n54@gmx.com>
6180
6181 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6182 `PTRACE_TYPE_RET'.
6183 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6184 * sparc-nat.c (gdb_ptrace): Likewise.
6185 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6186
f7d4f0b1
TT
61872020-03-20 Tom Tromey <tromey@adacore.com>
6188
6189 * c-exp.y (lex_one_token): Fix assert.
6190
f67210ff
TT
61912020-03-20 Tom Tromey <tromey@adacore.com>
6192
6193 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6194 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6195 strncpy call.
6196
1773be9e
TT
61972020-03-20 Tom Tromey <tromey@adacore.com>
6198
6199 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6200
70304be9
TT
62012020-03-20 Tom Tromey <tromey@adacore.com>
6202
6203 * ada-valprint.c (print_variant_part): Remove parameters; switch
6204 to value-based API.
6205 (print_field_values): Likewise.
6206 (ada_val_print_struct_union): Likewise.
6207 (ada_value_print_1): Update.
6208
9faa006d
KR
62092020-03-20 Kamil Rytarowski <n54@gmx.com>
6210
6211 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6212 nbsd_nat_target instead of inf_ptrace_target.
6213 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6214 nbsd_nat_target.
6215
4a90f062
KR
62162020-03-20 Kamil Rytarowski <n54@gmx.com>
6217
6218 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6219 it to the ptrace call.
6220 * (store_registers): Likewise.
6221
62222020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6223
6224 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6225 it to the ptrace call.
6226 * (store_registers): Likewise.
6227
2d07da27
LM
62282020-03-19 Luis Machado <luis.machado@linaro.org>
6229
6230 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6231 valid, fetch vg value from ptrace.
6232
f09db380
KR
62332020-03-19 Kamil Rytarowski <n54@gmx.com>
6234 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6235 * inf-ptrace.c: Likewise.
6236 * (gdb_ptrace): Add.
6237 * (inf_ptrace_target::resume): Update.
6238 * (inf_ptrace_target::xfer_partial): Likewise.
6239 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6240 * (inf_ptrace_peek_poke): Update.
6241
fcc7376e
KR
62422020-03-19 Kamil Rytarowski <n54@gmx.com>
6243
6244 * x86-bsd-nat.c (gdb_ptrace): New.
6245 * (x86bsd_dr_set): Add new argument `ptid'.
6246 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6247 x86bsd_dr_set_addr): Update.
6248
cada5fc9
AB
62492020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6250
6251 * remote.c (remote_target::process_stop_reply): Handle events for
6252 all threads differently.
6253
19a2740f
AB
62542020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6255
6256 * completer.c (completion_tracker::remove_completion): Define new
6257 function.
6258 * completer.h (completion_tracker::remove_completion): Declare new
6259 function.
6260 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6261 when adding a C++ function symbol.
6262
724fd9ba
AB
62632020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6264
6265 * completer.c (completion_tracker::completion_hash_entry): Define
6266 new class.
6267 (advance_to_filename_complete_word_point): Call
6268 recompute_lowest_common_denominator.
6269 (completion_tracker::completion_tracker): Call discard_completions
6270 to setup the hash table.
6271 (completion_tracker::discard_completions): Allow for being called
6272 from the constructor, pass new equal function, and element deleter
6273 when constructing the hash table. Initialise new class member
6274 variables.
6275 (completion_tracker::maybe_add_completion): Remove use of
6276 m_entries_vec, and store more information into m_entries_hash.
6277 (completion_tracker::recompute_lcd_visitor): New function, most
6278 content taken from...
6279 (completion_tracker::recompute_lowest_common_denominator):
6280 ...here, this now just visits each item in the hash calling the
6281 above visitor.
6282 (completion_tracker::build_completion_result): Remove use of
6283 m_entries_vec, call recompute_lowest_common_denominator.
6284 * completer.h (completion_tracker::have_completions): Remove use
6285 of m_entries_vec.
6286 (completion_tracker::completion_hash_entry): Declare new class.
6287 (completion_tracker::recompute_lowest_common_denominator): Change
6288 function signature.
6289 (completion_tracker::recompute_lcd_visitor): Declare new function.
6290 (completion_tracker::m_entries_vec): Delete.
6291 (completion_tracker::m_entries_hash): Initialize to NULL.
6292 (completion_tracker::m_lowest_common_denominator_valid): New
6293 member variable.
6294 (completion_tracker::m_lowest_common_denominator_max_length): New
6295 member variable.
6296
5a82b8a1
KR
62972020-03-17 Kamil Rytarowski <n54@gmx.com>
6298
6299 * regformats/regdef.h: Put reg in gdb namespace.
6300
fb516a69
KR
63012020-03-17 Kamil Rytarowski <n54@gmx.com>
6302
6303 * i386-bsd-nat.c (gdb_ptrace): New.
6304 * (i386bsd_fetch_inferior_registers,
6305 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6306 * (i386bsd_fetch_inferior_registers,
6307 i386bsd_store_inferior_registers) Use gdb_ptrace.
6308
1c0aa1fb
KR
63092020-03-17 Kamil Rytarowski <n54@gmx.com>
6310
6311 * amd64-bsd-nat.c (gdb_ptrace): New.
6312 * (amd64bsd_fetch_inferior_registers,
6313 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6314 * (amd64bsd_fetch_inferior_registers,
6315 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6316
5ccd2fb7
KR
63172020-03-17 Kamil Rytarowski <n54@gmx.com>
6318
6319 * user-regs.c (user_reg::read): Rename to...
6320 (user_reg::xread): ...this.
6321 * (append_user_reg): Rename argument `read' to `xread'.
6322 * (user_reg_add_builtin): Likewise.
6323 * (user_reg_add): Likewise.
6324 * (value_of_user_reg): Likewise.
6325
2108a63a
KR
63262020-03-17 Kamil Rytarowski <n54@gmx.com>
6327
6328 * sparc-nat.c (gdb_ptrace): New.
6329 * sparc-nat.c (sparc_fetch_inferior_registers)
6330 (sparc_store_inferior_registers) Remove obsolete comment.
6331 * sparc-nat.c (sparc_fetch_inferior_registers)
6332 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6333 * sparc-nat.c (sparc_fetch_inferior_registers)
6334 (sparc_store_inferior_registers) Use gdb_ptrace.
6335
a225c9a8
KR
63362020-03-17 Kamil Rytarowski <n54@gmx.com>
6337
6338 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6339 it to the ptrace call.
6340 * sh-nbsd-nat.c (store_registers): Likewise.
6341
98097623
KR
63422020-03-17 Kamil Rytarowski <n54@gmx.com>
6343
6344 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6345 nbsd_nat_target instead of inf_ptrace_target.
6346 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6347 nbsd_nat_target.
6348
9e38d619
KR
63492020-03-17 Kamil Rytarowski <n54@gmx.com>
6350
6351 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6352
a2ecbe9f
KR
63532020-03-17 Kamil Rytarowski <n54@gmx.com>
6354
6355 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6356 <sys/sysctl.h>.
6357 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6358
58990295
TV
63592020-03-17 Tom de Vries <tdevries@suse.de>
6360
6361 PR gdb/23710
6362 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6363 fields.
6364 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6365 fields.
6366 (process_imported_unit_die): Skip import of c++ CUs.
6367
771dd3a8
TT
63682020-03-16 Tom Tromey <tom@tromey.com>
6369
6370 * p-valprint.c (pascal_object_print_value): Initialize
6371 base_value.
6372
817a7585
AK
63732020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6374 Shahab Vahedi <shahab@synopsys.com>
6375
6376 * Makefile.in: Add arch/arc.o
6377 * configure.tgt: Likewise.
6378 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6379 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6380 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6381 * arc-tdep.h (arc_read_description): Add proto type.
6382 * arch/arc.c: New file.
6383 * arch/arc.h: Likewise.
6384 * features/Makefile: Replace old target descriptions with new.
6385 * features/arc-arcompact.c: Remove.
6386 * features/arc-arcompact.xml: Likewise.
6387 * features/arc-v2.c: Likewise
6388 * features/arc-v2.xml: Likewise
6389 * features/arc/aux-arcompact.xml: New file.
6390 * features/arc/aux-v2.xml: Likewise.
6391 * features/arc/core-arcompact.xml: Likewise.
6392 * features/arc/core-v2.xml: Likewise.
6393 * features/arc/aux-arcompact.c: Generate.
6394 * features/arc/aux-v2.c: Likewise.
6395 * features/arc/core-arcompact.c: Likewise.
6396 * features/arc/core-v2.c: Likewise.
6397 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6398
67430cd0
TT
63992020-03-16 Tom Tromey <tromey@adacore.com>
6400
6401 PR gdb/25663:
6402 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6403 putting value into bcache.
6404
30efb6c7
SM
64052020-03-16 Simon Marchi <simon.marchi@efficios.com>
6406
6407 PR gdb/21500
6408 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6409 to...
6410 (amd64_windows_init_abi_common): ... this. Don't set size of
6411 long type.
6412 (amd64_windows_init_abi): New function.
6413 (amd64_cygwin_init_abi): New function.
6414 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6415 the Cygwin OS ABI.
6416 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6417 comment.
6418
8db52437
SM
64192020-03-16 Simon Marchi <simon.marchi@efficios.com>
6420
6421 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6422 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6423 (pe_import_directory_entry): New struct type.
6424 (is_linked_with_cygwin_dll): New function.
6425 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6426 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6427 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6428
5982a56a
SM
64292020-03-16 Simon Marchi <simon.marchi@efficios.com>
6430
6431 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6432 i386_cygwin_core_osabi_sniffer.
6433
7a1998df
SM
64342020-03-16 Simon Marchi <simon.marchi@efficios.com>
6435
6436 * i386-cygwin-tdep.c: Rename to...
6437 * i386-windows-tdep.c: ... this.
6438 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6439 i386-windows-tdep.c.
6440 * configure.tgt: Likewise.
6441
053205cc
SM
64422020-03-16 Simon Marchi <simon.marchi@efficios.com>
6443
6444 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6445 * osabi.c (gdb_osabi_names): Add "Windows".
6446 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6447 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6448 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6449 i386_cygwin_osabi_sniffer.
6450 (_initialize_i386_cygwin_tdep): Register OS ABI
6451 GDB_OSABI_WINDOWS for i386.
6452 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6453 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6454 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6455 for x86-64.
6456 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6457 when the target matches '*-*-mingw*'.
6458
fe4b2ee6
SM
64592020-03-16 Simon Marchi <simon.marchi@efficios.com>
6460
6461 * defs.h (enum gdb_osabi): Move to...
6462 * osabi.h (enum gdb_osabi): ... here.
6463 * gdbarch.sh: Include osabi.h in gdbarch.h.
6464 * gdbarch.h: Re-generate.
6465
cb9b645d
SM
64662020-03-16 Simon Marchi <simon.marchi@efficios.com>
6467
6468 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6469 function.
6470 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6471
3293bbaf
TT
64722020-03-14 Tom Tromey <tom@tromey.com>
6473
6474 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6475 for C++.
6476 (c_type_print_modifier): Likewise. Add "language" parameter.
6477 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6478 (c_type_print_base_1): Update.
6479 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6480 constants.
6481 * type-stack.c (type_stack::insert): Handle tp_atomic and
6482 tp_restrict.
6483 (type_stack::follow_type_instance_flags): Likewise.
6484 (type_stack::follow_types): Likewise. Merge type-following code.
6485 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6486 (space_identifier, cv_with_space_id)
6487 (const_or_volatile_or_space_identifier_noopt)
6488 (const_or_volatile_or_space_identifier): Remove.
6489 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6490 rules.
6491 (ptr_operator, typebase): Update.
6492 (enum token_flag) <FLAG_C>: New constant.
6493 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6494 "_Atomic".
6495 (lex_one_token): Handle FLAG_C.
6496
154151a6
KR
64972020-03-14 Kamil Rytarowski <n54@gmx.com>
6498
6499 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6500 it to the ptrace call.
6501 * m68k-bsd-nat.c (store_registers): Likewise.
6502
bc107784
KR
65032020-03-14 Kamil Rytarowski <n54@gmx.com>
6504
6505 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6506 gdb_byte *.
6507 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6508 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6509 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6510
01a80117
KR
65112020-03-14 Kamil Rytarowski <n54@gmx.com>
6512
6513 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6514 nbsd_nat_target instead of inf_ptrace_target.
6515 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6516 nbsd_nat_target.
6517
f90280ca
KR
65182020-03-14 Kamil Rytarowski <n54@gmx.com>
6519
6520 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6521 register_t.
6522
6def66f1
KR
65232020-03-14 Kamil Rytarowski <n54@gmx.com>
6524
6525 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6526 it to the ptrace call.
6527 * alpha-bsd-nat.c (store_registers): Likewise.
6528
66eaca97
KR
65292020-03-14 Kamil Rytarowski <n54@gmx.com>
6530
6531 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6532 includes.
6533 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6534 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6535 fill_fpregset): Likewise.
6536
4fed520b
KR
65372020-03-14 Kamil Rytarowski <n54@gmx.com>
6538
6539 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6540 nbsd_nat_target instead of inf_ptrace_target.
6541 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6542 nbsd_nat_target.
6543
2190cf06
KR
65442020-03-14 Kamil Rytarowski <n54@gmx.com>
6545
6546 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6547 register_t.
6548
75c56d3d
KR
65492020-03-14 Kamil Rytarowski <n54@gmx.com>
6550
6551 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6552 it to the ptrace call.
6553 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6554 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6555 * arm-nbsd-nat.c (store_register): Likewise.
6556 * arm-nbsd-nat.c (store_regs): Likewise.
6557 * arm-nbsd-nat.c (store_fp_register): Likewise.
6558 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6559
6018d381
KR
65602020-03-14 Kamil Rytarowski <n54@gmx.com>
6561
6562 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6563 nbsd_nat_target instead of inf_ptrace_target.
6564 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6565 nbsd_nat_target.
6566
013f99f0
KR
65672020-03-14 Kamil Rytarowski <n54@gmx.com>
6568
6569 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6570 it to the ptrace call.
6571 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6572
12753073
KR
65732020-03-14 Kamil Rytarowski <n54@gmx.com>
6574
6227b330
KR
6575 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6576 it to the ptrace call.
6577 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6578
65792020-03-14 Kamil Rytarowski <n54@gmx.com>
6580
6581 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6582 gdb_byte *.
12753073
KR
6583 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6584
d5be5fa4
KR
65852020-03-14 Kamil Rytarowski <n54@gmx.com>
6586
6587 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6588 instead of inf_ptrace_target.
6589 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6590 nbsd_nat_target.
6591
8110f842
KR
65922020-03-14 Kamil Rytarowski <n54@gmx.com>
6593
6594 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6595 register_t.
6596
52feded7
KR
65972020-03-14 Kamil Rytarowski <n54@gmx.com>
6598
6599 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6600 register_t.
6601
25567eee
KR
66022020-03-14 Kamil Rytarowski <n54@gmx.com>
6603
6604 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6605 register_t.
6606
426a9c18
TT
66072020-03-13 Tom Tromey <tom@tromey.com>
6608
6609 * value.h (val_print): Don't declare.
6610 * valprint.h (val_print_array_elements)
6611 (val_print_scalar_formatted, generic_val_print): Don't declare.
6612 * valprint.c (generic_val_print_array): Take a struct value.
6613 (generic_val_print_ptr, generic_val_print_memberptr)
6614 (generic_val_print_bool, generic_val_print_int)
6615 (generic_val_print_char, generic_val_print_complex)
6616 (generic_val_print): Remove.
6617 (generic_value_print): Update.
6618 (do_val_print): Remove unused parameters. Don't call
6619 la_val_print.
6620 (val_print): Remove.
6621 (common_val_print): Update. Don't call value_check_printable.
6622 (val_print_scalar_formatted, val_print_array_elements): Remove.
6623 * rust-lang.c (rust_val_print): Remove.
6624 (rust_language_defn): Update.
6625 * p-valprint.c (pascal_val_print): Remove.
6626 (pascal_value_print_inner): Update.
6627 (pascal_object_print_val_fields, pascal_object_print_val):
6628 Remove.
6629 (pascal_object_print_static_field): Update.
6630 * p-lang.h (pascal_val_print): Don't declare.
6631 * p-lang.c (pascal_language_defn): Update.
6632 * opencl-lang.c (opencl_language_defn): Update.
6633 * objc-lang.c (objc_language_defn): Update.
6634 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6635 * m2-lang.h (m2_val_print): Don't declare.
6636 * m2-lang.c (m2_language_defn): Update.
6637 * language.h (struct language_defn) <la_val_print>: Remove.
6638 * language.c (unk_lang_value_print_inner): Rename. Change
6639 argument types.
6640 (unknown_language_defn, auto_language_defn): Update.
6641 * go-valprint.c (go_val_print): Remove.
6642 * go-lang.h (go_val_print): Don't declare.
6643 * go-lang.c (go_language_defn): Update.
6644 * f-valprint.c (f_val_print): Remove.
6645 * f-lang.h (f_value_print): Don't declare.
6646 * f-lang.c (f_language_defn): Update.
6647 * d-valprint.c (d_val_print): Remove.
6648 * d-lang.h (d_value_print): Don't declare.
6649 * d-lang.c (d_language_defn): Update.
6650 * cp-valprint.c (cp_print_value_fields)
6651 (cp_print_value_fields_rtti, cp_print_value): Remove.
6652 (cp_print_static_field): Update.
6653 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6654 (c_val_print_struct, c_val_print_union, c_val_print_int)
6655 (c_val_print_memberptr, c_val_print): Remove.
6656 * c-lang.h (c_val_print_array, cp_print_value_fields)
6657 (cp_print_value_fields_rtti): Don't declare.
6658 * c-lang.c (c_language_defn, cplus_language_defn)
6659 (asm_language_defn, minimal_language_defn): Update.
6660 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6661 (ada_val_print_enum): Take a struct value.
6662 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6663 (ada_val_print): Remove.
6664 (ada_value_print_1): Update.
6665 (printable_val_type): Remove.
6666 * ada-lang.h (ada_val_print): Don't declare.
6667 * ada-lang.c (ada_language_defn): Update.
6668
42331a1e
TT
66692020-03-13 Tom Tromey <tom@tromey.com>
6670
6671 * valprint.c (do_val_print): Update.
6672 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6673 a struct value.
6674 (value_to_value_object_no_release): Declare.
6675 * python/py-value.c (value_to_value_object_no_release): New
6676 function.
6677 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6678 struct value.
6679 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6680 function.
6681 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6682 a struct value.
6683 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6684 Declare.
6685 (gdbscm_apply_val_pretty_printer): Take a struct value.
6686 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6687 value.
6688 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6689 value.
6690 * extension-priv.h (struct extension_language_ops)
6691 <apply_val_pretty_printer>: Take a struct value.
6692 * cp-valprint.c (cp_print_value): Create a struct value.
6693 (cp_print_value): Update.
6694
3a916a97
TT
66952020-03-13 Tom Tromey <tom@tromey.com>
6696
6697 * ada-valprint.c (print_field_values): Call common_val_print.
6698
b59eac37
TT
66992020-03-13 Tom Tromey <tom@tromey.com>
6700
6701 * ada-valprint.c (val_print_packed_array_elements): Remove
6702 bitoffset and val parameters. Call common_val_print.
6703 (ada_val_print_string): Remove offset, address, and original_value
6704 parameters.
6705 (ada_val_print_array): Update.
6706 (ada_value_print_array): New function.
6707 (ada_value_print_1): Call it.
6708
03371129
TT
67092020-03-13 Tom Tromey <tom@tromey.com>
6710
6711 * ada-valprint.c (ada_value_print): Use common_val_print.
6712
2e088f8b
TT
67132020-03-13 Tom Tromey <tom@tromey.com>
6714
6715 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6716
39ef85a8
TT
67172020-03-13 Tom Tromey <tom@tromey.com>
6718
6719 * ada-valprint.c (ada_value_print_num): New function.
6720 (ada_value_print_1): Use it.
6721
b9fa6e07
TT
67222020-03-13 Tom Tromey <tom@tromey.com>
6723
6724 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6725
416595d6
TT
67262020-03-13 Tom Tromey <tom@tromey.com>
6727
6728 * ada-valprint.c (ada_value_print_ptr): New function.
6729 (ada_value_print_1): Use it.
6730
5b5e15ec
TT
67312020-03-13 Tom Tromey <tom@tromey.com>
6732
6733 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6734 call common_val_print.
6735 (ada_val_print_1): Update.
6736 (ada_value_print_1): New function.
6737 (ada_value_print_inner): Rewrite.
6738
fbf54e75
TT
67392020-03-13 Tom Tromey <tom@tromey.com>
6740
6741 * cp-valprint.c (cp_print_value_fields): Update.
6742 (cp_print_value): New function.
6743
64b653ca
TT
67442020-03-13 Tom Tromey <tom@tromey.com>
6745
6746 * m2-valprint.c (m2_value_print_inner): Use
6747 cp_print_value_fields.
6748 * cp-valprint.c (cp_print_value_fields): New function.
6749 * c-valprint.c (c_value_print_struct): New function.
6750 (c_value_print_inner): Use c_value_print_struct.
6751 * c-lang.h (cp_print_value_fields): Declare.
6752
6999f067
TT
67532020-03-13 Tom Tromey <tom@tromey.com>
6754
6755 * c-valprint.c (c_value_print_array): New function.
6756 (c_value_print_inner): Use it.
6757
ce80b8bd
TT
67582020-03-13 Tom Tromey <tom@tromey.com>
6759
6760 * c-valprint.c (c_value_print_memberptr): New function.
6761 (c_value_print_inner): Use it.
6762
2faac269
TT
67632020-03-13 Tom Tromey <tom@tromey.com>
6764
6765 * c-valprint.c (c_value_print_int): New function.
6766 (c_value_print_inner): Use it.
6767
da3e2c29
TT
67682020-03-13 Tom Tromey <tom@tromey.com>
6769
6770 * c-valprint.c (c_value_print_ptr): New function.
6771 (c_value_print_inner): Use it.
6772
50836231
TT
67732020-03-13 Tom Tromey <tom@tromey.com>
6774
6775 * c-valprint.c (c_value_print_inner): Rewrite.
6776
4f412b6e
TT
67772020-03-13 Tom Tromey <tom@tromey.com>
6778
6779 * valprint.c (generic_value_print_complex): New function.
6780 (generic_value_print): Use it.
6781
f5354008
TT
67822020-03-13 Tom Tromey <tom@tromey.com>
6783
6784 * valprint.c (generic_val_print_float): Don't call
6785 val_print_scalar_formatted.
6786 (generic_val_print, generic_value_print): Update.
6787
3eec3b05
TT
67882020-03-13 Tom Tromey <tom@tromey.com>
6789
6790 * valprint.c (generic_value_print_char): New function
6791 (generic_value_print): Use it.
6792
fdddfccb
TT
67932020-03-13 Tom Tromey <tom@tromey.com>
6794
6795 * valprint.c (generic_value_print_int): New function.
6796 (generic_value_print): Use it.
6797
6dde7521
TT
67982020-03-13 Tom Tromey <tom@tromey.com>
6799
6800 * valprint.c (generic_value_print_bool): New function.
6801 (generic_value_print): Use it.
6802
4112d2e6
TT
68032020-03-13 Tom Tromey <tom@tromey.com>
6804
6805 * valprint.c (generic_val_print_func): Simplify.
6806 (generic_val_print, generic_value_print): Update.
6807
65786af6
TT
68082020-03-13 Tom Tromey <tom@tromey.com>
6809
6810 * valprint.c (generic_val_print_flags): Remove.
6811 (generic_val_print, generic_value_print): Update.
6812 (val_print_type_code_flags): Add original_value parameter.
6813
40f3ce18
TT
68142020-03-13 Tom Tromey <tom@tromey.com>
6815
6816 * valprint.c (generic_val_print): Update.
6817 (generic_value_print): Update.
6818 * valprint.c (generic_val_print_enum): Don't call
6819 val_print_scalar_formatted.
6820
2a5b130b
TT
68212020-03-13 Tom Tromey <tom@tromey.com>
6822
6823 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6824 * valprint.c (generic_value_print_ptr): New function.
6825
abc66ce9
TT
68262020-03-13 Tom Tromey <tom@tromey.com>
6827
6828 * valprint.c (generic_value_print): Rewrite.
6829
07a32858
TT
68302020-03-13 Tom Tromey <tom@tromey.com>
6831
6832 * p-valprint.c (pascal_object_print_value_fields)
6833 (pascal_object_print_value): New functions.
6834
64d64d3a
TT
68352020-03-13 Tom Tromey <tom@tromey.com>
6836
6837 * p-valprint.c (pascal_value_print_inner): Rewrite.
6838
6a95a1f5
TT
68392020-03-13 Tom Tromey <tom@tromey.com>
6840
6841 * f-valprint.c (f_value_print_innner): Rewrite.
6842
59fcdac6
TT
68432020-03-13 Tom Tromey <tom@tromey.com>
6844
6845 * m2-valprint.c (m2_print_unbounded_array): New overload.
6846 (m2_print_unbounded_array): Update.
6847 (m2_print_array_contents): Take a struct value.
6848 (m2_value_print_inner): Rewrite.
6849
d133c3e1
TT
68502020-03-13 Tom Tromey <tom@tromey.com>
6851
6852 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6853 (d_value_print_inner): New function.
6854 * d-lang.h (d_value_print_inner): Declare.
6855 * d-lang.c (d_language_defn): Use d_value_print_inner.
6856
23b0f06b
TT
68572020-03-13 Tom Tromey <tom@tromey.com>
6858
6859 * go-valprint.c (go_value_print_inner): New function.
6860 * go-lang.h (go_value_print_inner): Declare.
6861 * go-lang.c (go_language_defn): Use go_value_print_inner.
6862
5f56f7cb
TT
68632020-03-13 Tom Tromey <tom@tromey.com>
6864
6865 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6866 API.
6867 (rust_val_print): Rewrite.
6868 (rust_value_print_inner): New function, from rust_val_print.
6869 (rust_language_defn): Use rust_value_print_inner.
6870
26792ee0
TT
68712020-03-13 Tom Tromey <tom@tromey.com>
6872
6873 * ada-valprint.c (ada_value_print_inner): New function.
6874 * ada-lang.h (ada_value_print_inner): Declare.
6875 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6876
24051bbe
TT
68772020-03-13 Tom Tromey <tom@tromey.com>
6878
6879 * f-valprint.c (f_value_print_innner): New function.
6880 * f-lang.h (f_value_print_innner): Declare.
6881 * f-lang.c (f_language_defn): Use f_value_print_innner.
6882
c0941be6
TT
68832020-03-13 Tom Tromey <tom@tromey.com>
6884
6885 * p-valprint.c (pascal_value_print_inner): New function.
6886 * p-lang.h (pascal_value_print_inner): Declare.
6887 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6888
62c4663d
TT
68892020-03-13 Tom Tromey <tom@tromey.com>
6890
6891 * m2-valprint.c (m2_value_print_inner): New function.
6892 * m2-lang.h (m2_value_print_inner): Declare.
6893 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6894
62182190
TT
68952020-03-13 Tom Tromey <tom@tromey.com>
6896
6897 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6898 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6899 * c-valprint.c (c_value_print_inner): New function.
6900 * c-lang.h (c_value_print_inner): Declare.
6901 * c-lang.c (c_language_defn, cplus_language_defn)
6902 (asm_language_defn, minimal_language_defn): Use
6903 c_value_print_inner.
6904
1e592a8a
TT
69052020-03-13 Tom Tromey <tom@tromey.com>
6906
6907 * p-valprint.c (pascal_object_print_value_fields): Now static.
6908 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6909
7fe471e9
TT
69102020-03-13 Tom Tromey <tom@tromey.com>
6911
6912 * c-valprint.c (c_val_print_array): Simplify.
6913
d121c6ce
TT
69142020-03-13 Tom Tromey <tom@tromey.com>
6915
6916 * valprint.c (value_print_array_elements): New function.
6917 * valprint.h (value_print_array_elements): Declare.
6918
4dba70ee
TT
69192020-03-13 Tom Tromey <tom@tromey.com>
6920
6921 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6922 * mips-tdep.c (mips_print_register): Use
6923 value_print_scalar_formatted.
6924
4f9ae810
TT
69252020-03-13 Tom Tromey <tom@tromey.com>
6926
6927 * valprint.h (value_print_scalar_formatted): Declare.
6928 * valprint.c (value_print_scalar_formatted): New function.
6929
156bfec9
TT
69302020-03-13 Tom Tromey <tom@tromey.com>
6931
6932 * valprint.h (generic_value_print): Declare.
6933 * valprint.c (generic_value_print): New function.
6934
2b4e573d
TT
69352020-03-13 Tom Tromey <tom@tromey.com>
6936
6937 * valprint.c (do_val_print): Call la_value_print_inner, if
6938 available.
6939 * rust-lang.c (rust_language_defn): Update.
6940 * p-lang.c (pascal_language_defn): Update.
6941 * opencl-lang.c (opencl_language_defn): Update.
6942 * objc-lang.c (objc_language_defn): Update.
6943 * m2-lang.c (m2_language_defn): Update.
6944 * language.h (struct language_defn) <la_value_print_inner>: New
6945 member.
6946 * language.c (unknown_language_defn, auto_language_defn): Update.
6947 * go-lang.c (go_language_defn): Update.
6948 * f-lang.c (f_language_defn): Update.
6949 * d-lang.c (d_language_defn): Update.
6950 * c-lang.c (c_language_defn, cplus_language_defn)
6951 (asm_language_defn, minimal_language_defn): Update.
6952 * ada-lang.c (ada_language_defn): Update.
6953
a1f6a07c
TT
69542020-03-13 Tom Tromey <tom@tromey.com>
6955
6956 * c-valprint.c (c_value_print): Use common_val_print.
6957
410cf315
TT
69582020-03-13 Tom Tromey <tom@tromey.com>
6959
6960 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6961
72a45c93
TT
69622020-03-13 Tom Tromey <tom@tromey.com>
6963
6964 * f-valprint.c (f77_print_array_1, f_val_print): Use
6965 common_val_print.
6966
040f66bd
TT
69672020-03-13 Tom Tromey <tom@tromey.com>
6968
6969 * riscv-tdep.c (riscv_print_one_register_info): Use
6970 common_val_print.
6971
a6e05a6c
TT
69722020-03-13 Tom Tromey <tom@tromey.com>
6973
6974 * mi/mi-main.c (output_register): Use common_val_print.
6975
3444c526
TT
69762020-03-13 Tom Tromey <tom@tromey.com>
6977
6978 * infcmd.c (default_print_one_register_info): Use
6979 common_val_print.
6980
c2a44efe
TT
69812020-03-13 Tom Tromey <tom@tromey.com>
6982
6983 * valprint.h (common_val_print_checked): Declare.
6984 * valprint.c (common_val_print_checked): New function.
6985 * stack.c (print_frame_arg): Use common_val_print_checked.
6986
b0c26e99
TT
69872020-03-13 Tom Tromey <tom@tromey.com>
6988
6989 * valprint.c (do_val_print): New function, from val_print.
6990 (val_print): Use do_val_print.
6991 (common_val_print): Use do_val_print.
6992
ce3acbe9
TT
69932020-03-13 Tom Tromey <tom@tromey.com>
6994
6995 * valprint.c (value_print): Use scoped_value_mark.
6996
96c7f873
TV
69972020-03-13 Tom de Vries <tdevries@suse.de>
6998
6999 PR symtab/25646
7000 * psymtab.c (partial_symtab::partial_symtab): Don't set
7001 globals_offset and statics_offset. Push element onto
7002 current_global_psymbols and current_static_psymbols stacks.
7003 (concat): New function.
7004 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7005 element from current_global_psymbols and current_static_psymbols
7006 stacks. Concat popped elements to global_psymbols and
7007 static_symbols.
7008 (add_psymbol_to_list): Use current_global_psymbols and
7009 current_static_psymbols stacks.
7010 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7011 current_static_psymbols fields.
7012
6ba0a321
CB
70132020-03-12 Christian Biesinger <cbiesinger@google.com>
7014
7015 * corelow.c (sniff_core_bfd): Remove.
7016 (class core_target) <m_core_vec>: Remove.
7017 (core_target::core_target): Update.
7018 (core_file_fns): Remove.
7019 (deprecated_add_core_fns): Remove.
7020 (default_core_sniffer): Remove.
7021 (sniff_core_bfd): Remove.
7022 (default_check_format): Remove.
7023 (gdb_check_format): Remove.
7024 (core_target_open): Update.
7025 (core_target::get_core_register_section): Update.
7026 (get_core_registers_cb): Update.
7027 (core_target::fetch_registers): Update.
7028 * gdbcore.h (struct core_fns): Remove.
7029 (deprecated_add_core_fns): Remove.
7030 (default_core_sniffer): Remove.
7031 (default_check_format): Remove.
7032
227031b2
TT
70332020-03-12 Tom Tromey <tom@tromey.com>
7034
7035 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7036 CORE_ADDR.
7037 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7038
53807e9f
TT
70392020-03-12 Tom Tromey <tom@tromey.com>
7040
7041 * remote.c (remote_target::download_tracepoint)
7042 (remote_target::enable_tracepoint)
7043 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7044 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7045 sprintf_vma.
7046
64f25102
TT
70472020-03-12 Tom Tromey <tom@tromey.com>
7048
7049 * symfile-mem.c: Update CORE_ADDR size assert.
7050
272cd5a3
SM
70512020-03-12 Simon Marchi <simon.marchi@efficios.com>
7052
7053 * selftest.m4: Move to gdbsupport/.
7054 * acinclude.m4: Update path to selftest.m4.
7055
74cd3f9d
SM
70562020-03-12 Simon Marchi <simon.marchi@efficios.com>
7057
7058 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7059 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7060 gdbarch-selfselftests.c and selftest-arch.c.
7061 (SUBDIR_UNITTESTS_OBS): Rename to...
7062 (SELFTESTS_OBS): ... this.
7063 (COMMON_SFILES): Remove disasm-selftests.c and
7064 gdbarch-selftests.c.
7065 * configure.ac: Don't add selftest-arch.{c,o} to
7066 CONFIG_{SRCS,OBS}.
7067 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7068 preprocessor conditions.
7069
db6878ac
SM
70702020-03-12 Simon Marchi <simon.marchi@efficios.com>
7071
7072 * configure.ac: Don't source bfd/development.sh.
7073 * selftest.m4: Modify comment.
7074 * configure: Re-generate.
7075
4d696a5c
SM
70762020-03-12 Simon Marchi <simon.marchi@efficios.com>
7077
7078 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7079 not "true" or "false".
7080 * configure: Re-generate.
7081
8dd8e1c7
CB
70822020-03-12 Christian Biesinger <cbiesinger@google.com>
7083
7084 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7085 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7086 renamed to arm_nbsd_supply_gregset.
7087 (fetch_register): Update to call arm_nbsd_supply_gregset.
7088 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7089 (arm_netbsd_nat_target::fetch_registers): Update.
7090 (fetch_elfcore_registers): Removed.
7091 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7092 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7093 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7094 not require NetBSD system headers.
7095 (arm_nbsd_regset): New struct.
7096 (arm_nbsd_iterate_over_regset_sections): New function.
7097 (arm_netbsd_init_abi_common): Updated to call
7098 set_gdbarch_iterate_over_regset_sections.
7099 * arm-nbsd-tdep.h: New file.
7100
dd69bf7a
KB
71012020-03-11 Kevin Buettner <kevinb@redhat.com>
7102
7103 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7104 recursion.
7105
a0761e34
SM
71062020-03-11 Simon Marchi <simon.marchi@efficios.com>
7107
7108 * configure: Re-generate.
7109
e7a82140
TT
71102020-03-11 Tom Tromey <tromey@adacore.com>
7111
7112 * ada-typeprint.c (print_choices): Fix comment.
7113
dcc050c8
AB
71142020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7115
7116 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7117 previous item in the list, when the list has no items.
7118
1c33af77
TV
71192020-03-11 Tom de Vries <tdevries@suse.de>
7120
7121 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7122 PROP_LOCLIST handling code.
7123
8c95582d
AB
71242020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7125
7126 * buildsym-legacy.c (record_line): Pass extra parameter to
7127 record_line.
7128 * buildsym.c (buildsym_compunit::record_line): Take an extra
7129 parameter, reduce duplication in the line table, and record the
7130 is_stmt flag in the line table.
7131 * buildsym.h (buildsym_compunit::record_line): Add extra
7132 parameter.
7133 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7134 non-statement lines.
7135 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7136 this to the symtab builder.
7137 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7138 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7139 through to dwarf_record_line_1.
7140 * infrun.c (process_event_stop_test): When stepping, don't stop at
7141 a non-statement instruction, and only refresh the step info when
7142 we land in the middle of a line's range. Also add an extra
7143 comment.
7144 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7145 field.
7146 * record-btrace.c (btrace_find_line_range): Only record lines
7147 marked as is-statement.
7148 * stack.c (frame_show_address): Show the frame address if we are
7149 in a non-statement sal.
7150 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7151 (maintenance_print_one_line_table): Print a header for the is_stmt
7152 column, and include is_stmt information in the output.
7153 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7154 preference to non-statements.
7155 (find_pcs_for_symtab_line): Prefer is-statement entries.
7156 (find_line_common): Likewise.
7157 * symtab.h (struct linetable_entry): Add is_stmt field.
7158 (struct symtab_and_line): Likewise.
7159 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7160 arranging the line table.
7161
e4003a34
TV
71622020-03-07 Tom de Vries <tdevries@suse.de>
7163
7164 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7165 DIE.
7166
e8932576
TT
71672020-03-07 Tom Tromey <tom@tromey.com>
7168
7169 * valops.c (value_literal_complex): Remove obsolete comment.
7170 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7171 comment.
7172
29734269
SM
71732020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7174
7175 * infrun.h: Forward-declare thread_info.
7176 (set_step_info): Add thread_info parameter, add doc.
7177 * infrun.c (set_step_info): Add thread_info parameter, move doc
7178 to header.
7179 * infrun.c (process_event_stop_test): Pass thread to
7180 set_step_info call.
7181 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7182 set_step_info.
7183 (prepare_one_step): Add thread_info parameter, pass it to
7184 set_step_frame and prepare_one_step (recursive) call.
7185 (step_1): Pass thread to prepare_one_step call.
7186 (step_command_fsm::should_stop): Pass thread to
7187 prepare_one_step.
7188 (until_next_fsm): Pass thread to set_step_frame call.
7189 (finish_command): Pass thread to set_step_info call.
7190
b7d64b29
HD
71912020-03-06 Hannes Domani <ssbssa@yahoo.de>
7192
7193 * windows-tdep.c (windows_solib_create_inferior_hook):
7194 Check if inferior is running.
7195
09f2921c
TV
71962020-03-06 Tom de Vries <tdevries@suse.de>
7197
7198 * NEWS: Fix "the the".
7199 * ctfread.c: Same.
7200
fd760e79
TV
72012020-03-06 Tom de Vries <tdevries@suse.de>
7202
7203 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7204
20ea4a60
AB
72052020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7206
7207 * .dir-locals.el: Add a comment referencing the other copies of
7208 this file.
7209
0afbabf0
JB
72102020-03-05 John Baldwin <jhb@FreeBSD.org>
7211
7212 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7213 psargs.
7214
842806cb
TBA
72152020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7216
7217 * .gitattributes: New file.
7218
be1e3d3e
TT
72192020-03-04 Tom Tromey <tom@tromey.com>
7220
7221 * symmisc.c (print_symbol_bcache_statistics)
7222 (print_objfile_statistics): Update.
7223 * symfile.c (allocate_symtab): Use intern.
7224 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7225 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7226 macro_cache>: Remove.
7227 <string_cache>: New member.
7228 (struct objfile) <intern>: New methods.
7229 * elfread.c (elf_symtab_read): Use intern.
7230 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7231 (dwarf2_compute_name, dwarf2_physname)
7232 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7233 names.
7234 (guess_partial_die_structure_name): Update.
7235 (partial_die_info::fixup): Intern name.
7236 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7237 name.
7238 (dwarf2_name): Intern name. Update.
7239 * buildsym.c (buildsym_compunit::get_macro_table): Use
7240 string_cache.
7241
4e7625fd
TT
72422020-03-04 Tom Tromey <tom@tromey.com>
7243
7244 * jit.c (bfd_open_from_target_memory): Make "target" const.
7245 * corefile.c (gnutarget): Now const.
7246 * gdbcore.h (gnutarget): Now const.
7247
46f9f931
HD
72482020-03-04 Hannes Domani <ssbssa@yahoo.de>
7249
7250 * NEWS: Mention support for WOW64 processes.
7251 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7252 (amd64_windows_segment_register_p): Remove static.
7253 (_initialize_amd64_windows_nat): Update.
7254 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7255 * i386-windows-nat.c (context_offset): Update.
7256 (i386_mappings): Rename and remove static.
7257 (i386_windows_segment_register_p): Remove static.
7258 (_initialize_i386_windows_nat): Update.
7259 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7260 (STATUS_WX86_SINGLE_STEP): New macro.
7261 (EnumProcessModulesEx): New macro.
7262 (Wow64SuspendThread): New macro.
7263 (Wow64GetThreadContext): New macro.
7264 (Wow64SetThreadContext): New macro.
7265 (Wow64GetThreadSelectorEntry): New macro.
7266 (windows_set_context_register_offsets): Add static.
7267 (windows_set_segment_register_p): Likewise.
7268 (windows_add_thread): Adapt for WOW64 processes.
7269 (windows_fetch_one_register): Likewise.
7270 (windows_nat_target::fetch_registers): Likewise.
7271 (windows_store_one_register): Likewise.
7272 (display_selector): Likewise.
7273 (display_selectors): Likewise.
7274 (handle_exception): Likewise.
7275 (windows_continue): Likewise.
7276 (windows_nat_target::resume): Likewise.
7277 (windows_add_all_dlls): Likewise.
7278 (do_initial_windows_stuff): Likewise.
7279 (windows_nat_target::attach): Likewise.
7280 (windows_get_exec_module_filename): Likewise.
7281 (windows_nat_target::create_inferior): Likewise.
7282 (windows_xfer_siginfo): Likewise.
7283 (_initialize_loadable): Initialize Wow64SuspendThread,
7284 Wow64GetThreadContext, Wow64SetThreadContext,
7285 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7286 * windows-nat.h (windows_set_context_register_offsets):
7287 Remove declaration.
7288 (windows_set_segment_register_p): Likewise.
7289 (i386_windows_segment_register_p): Add declaration.
7290 (amd64_windows_segment_register_p): Likewise.
7291
440cf44e
LM
72922020-03-04 Luis Machado <luis.machado@linaro.org>
7293
7294 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7295 in "info registers" for AArch64/ARM.
7296
7297 The change caused "info registers" to not print GPR's.
7298
7299 gdb/ChangeLog:
7300
7301 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7302
7303 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7304 when reg->group is empty and reggroup is not.
7305
1009d92f
TT
73062020-03-03 Tom Tromey <tromey@adacore.com>
7307
7308 * dwarf2/frame.c (struct dwarf2_frame_cache)
7309 <checked_tailcall_bottom, entry_cfa_sp_offset,
7310 entry_cfa_sp_offset_p>: Remove members.
7311 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7312 (dwarf2_frame_prev_register): Don't call
7313 dwarf2_tailcall_sniffer_first.
7314 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7315 * frame-unwind.c (add_unwinder): New fuction.
7316 (frame_unwind_init): Use it. Add tailcall unwinder.
7317
5e5d66b6
AB
73182020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7319 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7320
7321 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7322 value should be printed as true.
7323
584cf46d
HD
73242020-03-03 Hannes Domani <ssbssa@yahoo.de>
7325
7326 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7327 (windows_init_abi): Set and use windows_so_ops.
7328
7b973adc
SDJ
73292020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7330
7331 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7332 when verifying if dealing with a convenience variable.
7333
bb7b70ab
LM
73342020-03-03 Luis Machado <luis.machado@linaro.org>
7335
7336 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7337
9822cb57
SM
73382020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7339
7340 * infrun.c (gdbarch_supports_displaced_stepping): New.
7341 (use_displaced_stepping): Break up conditions in smaller pieces.
7342 Use gdbarch_supports_displaced_stepping.
7343 (displaced_step_prepare_throw): Use
7344 gdbarch_supports_displaced_stepping.
7345
63e163f2
AB
73462020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7347
7348 * NEWS: Mention new behaviour of the history filename.
7349 * top.c (write_history_p): Add comment.
7350 (show_write_history_p): Add header comment, give a different
7351 message when history writing is on, but the history filename is
7352 empty.
7353 (history_filename): Add comment.
7354 (history_filename_empty): New function.
7355 (show_history_filename): Add header comment, give a different
7356 message when the filename is empty.
7357 (init_history): Compare history_filename against nullptr, and only
7358 read history if the filename is not empty.
7359 (set_history_filename): Add header comment, and only make
7360 non-empty filenames absolute.
7361 (init_main): Make the filename argument to 'set history filename'
7362 optional.
7363
81b86b97
CB
73642020-03-02 Christian Biesinger <cbiesinger@google.com>
7365
7366 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7367 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7368 (fetch_fp_register): Update.
7369 (fetch_fp_regs): Update.
7370 (store_fp_register): Update.
7371 (store_fp_regs): Update.
7372 (arm_netbsd_nat_target::read_description): New function.
7373 (fetch_elfcore_registers): Update.
7374
24ed6739
AB
73752020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7376
7377 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7378 general_thread if the stop reply is missing a thread-id.
7379 (remote_target::process_stop_reply): Use the first non-exited
7380 thread if the target didn't pass a thread-id.
7381 * infrun.c (do_target_wait): Move call to
7382 switch_to_inferior_no_thread to ....
7383 (do_target_wait_1): ... here.
7384
a84bb2a0
JT
73852020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7386
7387 * debuginfod-support.c: Include defs.h first.
7388
658dadf0
TV
73892020-02-28 Tom de Vries <tdevries@suse.de>
7390
7391 * symfile.c (set_initial_language): Use default language for lookup.
7392
4ebe4877
SM
73932020-02-28 Simon Marchi <simon.marchi@efficios.com>
7394
7395 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7396 reader variable, pass `this` to read_cutu_die_from_dwo.
7397
e5da1139
AM
73982020-02-27 Aaron Merey <amerey@redhat.com>
7399
7400 * source.c (open_source_file): Check for nullptr when computing
7401 srcpath.
7402
317f7127
TT
74032020-02-27 Tom Tromey <tromey@adacore.com>
7404
7405 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7406 member.
7407 (dwarf2_add_field): Don't update nfields.
7408 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7409
3104d9ee
AB
74102020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7411
7412 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7413 abs.
7414
b83470bf
TT
74152020-02-26 Tom Tromey <tom@tromey.com>
7416
7417 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7418 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7419 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7420 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7421 per_cu_data.
7422
edfe0a0c
TT
74232020-02-26 Tom Tromey <tom@tromey.com>
7424
7425 * dwarf2/index-write.c (psym_index_map): Change type.
7426 (add_address_entry_worker, write_one_signatured_type)
7427 (recursively_count_psymbols, recursively_write_psymbols)
7428 (class debug_names, psyms_seen_size, write_gdbindex)
7429 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7430
0d79cdc4
AM
74312020-02-26 Aaron Merey <amerey@redhat.com>
7432
7433 * Makefile.in: Handle optional debuginfod support.
7434 * NEWS: Update.
7435 * README: Add --with-debuginfod summary.
7436 * config.in: Regenerate.
7437 * configure: Regenerate.
7438 * configure.ac: Handle optional debuginfod support.
7439 * debuginfod-support.c: debuginfod helper functions.
7440 * debuginfod-support.h: Ditto.
7441 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7442 summary.
7443 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7444 when a dwz file cannot be found.
7445 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7446 debuginfo file cannot be found.
7447 * source.c (open_source_file): Query debuginfod servers when a
7448 source file cannot be found.
7449 * top.c (print_gdb_configuration): Include
7450 --{with,without}-debuginfod in the output.
7451
b65ce565
JG
74522020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7453
7454 * thread.c (thr_try_catch_cmd): Print thread name.
7455
d4c9a4f8
SM
74562020-02-26 Simon Marchi <simon.marchi@efficios.com>
7457
7458 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7459 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7460 dwarf2_fetch_die_type_sect_off): Move to...
7461 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7462 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7463 dwarf2_fetch_die_type_sect_off): ... here.
7464 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7465 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7466 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7467
0dce4280
TV
74682020-02-26 Tom de Vries <tdevries@suse.de>
7469
7470 PR gdb/25603
7471 * symfile.c (set_initial_language): Exit-early if
7472 language_mode == language_mode_manual.
7473
450a1bfc
SM
74742020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7475
7476 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7477 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7478 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7479
9e80cfa1
AB
74802020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7481
7482 * gdbtypes.c (create_array_type_with_stride): Handle negative
7483 array strides.
7484 * valarith.c (value_subscripted_rvalue): Likewise.
7485
09624f1f
LM
74862020-02-25 Luis Machado <luis.machado@linaro.org>
7487
7488 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7489
8cb5117c
SM
74902020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7491
7492 * loc.h (dwarf2_get_die_type): Move to...
7493 * read.h (dwarf2_get_die_type): ... here.
7494 * read.c (dwarf2_get_die_type): Move doc to header.
7495
c325c44e
JB
74962020-02-25 Joel Brobecker <brobecker@adacore.com>
7497
7498 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7499 'gnulib/Makefile.in' to the list.
7500
4ac93832
TT
75012020-02-24 Tom Tromey <tom@tromey.com>
7502
7503 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7504 Remove.
7505 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7506 XOBNEWVEC.
7507
197400e8
TT
75082020-02-24 Tom Tromey <tom@tromey.com>
7509
7510 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7511 New method.
7512 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7513 (dw2_do_instantiate_symtab, dw2_get_file_names)
7514 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7515
76935768
TT
75162020-02-24 Tom Tromey <tom@tromey.com>
7517
7518 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7519 make_scoped_restore.
7520 (dwarf2_psymtab::read_symtab): Don't clear
7521 reading_partial_symbols.
7522
a88ef40d
TV
75232020-02-24 Tom de Vries <tdevries@suse.de>
7524
7525 PR gdb/25592
7526 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7527
c9af6521
TV
75282020-02-24 Tom de Vries <tdevries@suse.de>
7529
7530 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7531 commands layout next/prev/regs.
7532
5707a07a
TT
75332020-02-22 Tom Tromey <tom@tromey.com>
7534
7535 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7536 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7537
3b0fb49e
TT
75382020-02-22 Tom Tromey <tom@tromey.com>
7539
7540 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7541
283be8bf
TT
75422020-02-22 Tom Tromey <tom@tromey.com>
7543
7544 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7545 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7546 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7547 * tui/tui.c (_initialize_tui): Add usage text.
7548
ca793b96
TT
75492020-02-22 Tom Tromey <tom@tromey.com>
7550
7551 * tui/tui-win.c (tui_set_focus_command)
7552 (tui_set_win_height_command): Use error_no_arg.
7553 (_initialize_tui_win): Update help text.
7554 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7555
432b5c40
TT
75562020-02-22 Tom Tromey <tom@tromey.com>
7557
7558 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7559 * tui/tui-disasm.h (struct tui_disasm_window)
7560 <display_start_addr>: Declare.
7561 * tui/tui-source.h (struct tui_source_window)
7562 <display_start_addr>: Declare.
7563 * tui/tui-winsource.h (struct tui_source_window_base)
7564 <show_source_line, display_start_addr>: New methods.
7565 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7566 Rename and move to protected section.
7567 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7568 (tui_source_window_base::do_erase_source_content): Update.
7569 (tui_source_window_base::show_source_line): Now a method.
7570 (tui_source_window_base::show_source_content)
7571 (tui_source_window_base::tui_source_window_base)
7572 (tui_source_window_base::rerender)
7573 (tui_source_window_base::refill)
7574 (tui_source_window_base::do_scroll_horizontal)
7575 (tui_source_window_base::set_is_exec_point_at)
7576 (tui_source_window_base::update_breakpoint_info)
7577 (tui_source_window_base::update_exec_info): Update.
7578 * tui/tui-source.c (tui_source_window::set_contents)
7579 (tui_source_window::showing_source_p)
7580 (tui_source_window::do_scroll_vertical)
7581 (tui_source_window::location_matches_p)
7582 (tui_source_window::line_is_displayed): Update.
7583 (tui_source_window::display_start_addr): New method.
7584 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7585 (tui_disasm_window::do_scroll_vertical)
7586 (tui_disasm_window::location_matches_p): Update.
7587 (tui_disasm_window::display_start_addr): New method.
7588
01b1af32
TT
75892020-02-22 Tom Tromey <tom@tromey.com>
7590
7591 * NEWS: Add entry for gdb.register_window_type.
7592 * tui/tui-layout.h (window_factory): New typedef.
7593 (tui_register_window): Declare.
7594 * tui/tui-layout.c (saved_tui_windows): New global.
7595 (tui_apply_current_layout): Use it.
7596 (tui_register_window): New function.
7597 * python/python.c (do_start_initialization): Call
7598 gdbpy_initialize_tui.
7599 (python_GdbMethods): Add "register_window_type" function.
7600 * python/python-internal.h (gdbpy_register_tui_window)
7601 (gdbpy_initialize_tui): Declare.
7602 * python/py-tui.c: New file.
7603 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7604
fc96d20b
TT
76052020-02-22 Tom Tromey <tom@tromey.com>
7606
7607 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7608
935c78c0
TT
76092020-02-22 Tom Tromey <tom@tromey.com>
7610
7611 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7612 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7613 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7614 (tui_set_win_focus_to): Move from tui-win.c.
7615
0240c8f1
TT
76162020-02-22 Tom Tromey <tom@tromey.com>
7617
7618 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7619 functions.
7620 (known_window_types): New global.
7621 (tui_get_window_by_name): Reimplement.
7622 (initialize_known_windows): New function.
7623 (validate_window_name): Rewrite.
7624 (_initialize_tui_layout): Call initialize_known_windows.
7625
fdb01f0c
TT
76262020-02-22 Tom Tromey <tom@tromey.com>
7627
7628 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7629 Remove constants.
7630 * tui/tui-winsource.h (struct tui_source_window_base)
7631 <tui_source_window_base>: Remove parameter.
7632 * tui/tui-winsource.c
7633 (tui_source_window_base::tui_source_window_base): Remove
7634 parameter.
7635 (tui_source_window_base::refill): Update.
7636 * tui/tui-stack.h (struct tui_locator_window)
7637 <tui_locator_window>: Update.
7638 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7639 Default the constructor.
7640 * tui/tui-regs.h (struct tui_data_item_window)
7641 <tui_data_item_window>: Default the constructor.
7642 (struct tui_data_window) <tui_data_window>: Likewise.
7643 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7644 Default the constructor.
7645 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7646 Default the constructor.
7647 <type>: Remove.
7648 (struct tui_win_info) <tui_win_info>: Default the constructor.
7649 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7650 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7651 Default the constructor.
7652
865a5aec
TT
76532020-02-22 Tom Tromey <tom@tromey.com>
7654
7655 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7656 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7657 * tui/tui-win.c (tui_resize_all): Don't call
7658 tui_delete_invisible_windows.
7659 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7660 done.
7661 (tui_set_layout): Update.
7662 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7663 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7664 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7665
e098d18c
TT
76662020-02-22 Tom Tromey <tom@tromey.com>
7667
7668 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7669 correctly.
7670
eb9c8874
TT
76712020-02-22 Tom Tromey <tom@tromey.com>
7672
7673 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7674
7eed1a8e
TT
76752020-02-22 Tom Tromey <tom@tromey.com>
7676
7677 * tui/tui-winsource.h (struct tui_source_window_iterator)
7678 <inner_iterator>: New etytypedef.
7679 <tui_source_window_iterator>: Take "end" parameter.
7680 <tui_source_window_iterator>: Take iterator.
7681 <operator*, advance>: Update.
7682 <m_iter>: Change type.
7683 <m_end>: New field.
7684 (struct tui_source_windows) <begin, end>: Update.
7685 * tui/tui-layout.c (tui_windows): New global.
7686 (tui_apply_current_layout): Clear tui_windows.
7687 (tui_layout_window::apply): Update tui_windows.
7688 * tui/tui-data.h (tui_windows): Declare.
7689 (all_tui_windows): Now inline function.
7690 (class tui_window_iterator, struct all_tui_windows): Remove.
7691
7c043ba6
TT
76922020-02-22 Tom Tromey <tom@tromey.com>
7693
7694 PR tui/17850:
7695 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7696 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7697 "height" argument.
7698 (class tui_layout_window) <get_sizes>: Likewise.
7699 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7700 argument.
7701 <get_sizes>: Add "height" argument.
7702 <m_vertical>: New field.
7703 * tui/tui-layout.c (tui_layout_split::clone): Update.
7704 (tui_layout_split::get_sizes): Add "height" argument.
7705 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7706 (tui_new_layout_command): Parse "-horizontal".
7707 (_initialize_tui_layout): Update help string.
7708 (tui_layout_split::specification): Add "-horizontal" when needed.
7709 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7710 argument.
7711 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7712 New methods.
7713
6bc56648
TT
77142020-02-22 Tom Tromey <tom@tromey.com>
7715
7716 * tui/tui-layout.h (enum tui_adjust_result): New.
7717 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7718 (class tui_layout_window) <adjust_size>: Return
7719 tui_adjust_result. Rewrite.
7720 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7721 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7722
c22fef7e
TT
77232020-02-22 Tom Tromey <tom@tromey.com>
7724
7725 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7726 parameter and return types.
7727 (class tui_layout_base) <specification>: Add "depth".
7728 (class tui_layout_window) <specification>: Add "depth".
7729 (class tui_layout_split) <specification>: Add "depth".
7730 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7731 and return types.
7732 (tui_new_layout_command): Parse sub-layouts.
7733 (_initialize_tui_layout): Update help string.
7734 (tui_layout_window::specification): Add "depth".
7735 (add_layout_command): Update.
7736
ee325b61
TT
77372020-02-22 Tom Tromey <tom@tromey.com>
7738
7739 * NEWS: Add "tui new-layout" item.
7740 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7741 Add new-layout command to help text.
7742 (validate_window_name): New function.
7743 (tui_new_layout_command): New function.
7744 (_initialize_tui_layout): Register "new-layout".
7745 (tui_layout_window::specification): New method.
7746 (tui_layout_window::specification): New method.
7747 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7748 method.
7749 (class tui_layout_window) <specification>: New method.
7750 (class tui_layout_split) <specification>: New method.
7751
416eb92d
TT
77522020-02-22 Tom Tromey <tom@tromey.com>
7753
7754 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7755 * tui/tui-win.c (window_name_completer): Update comment.
7756 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7757 Declare method.
7758 (class tui_layout_window) <replace_window>: Likewise.
7759 (class tui_layout_split) <replace_window>: Likewise.
7760 (tui_set_layout): Don't declare.
7761 (tui_set_initial_layout): Declare function.
7762 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7763 (asm_regs_layout): New globals.
7764 (tui_current_layout, show_layout): Remove.
7765 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7766 (find_layout, tui_apply_layout): New function.
7767 (layout_completer): Remove.
7768 (tui_next_layout): Reimplement.
7769 (tui_next_layout_command): New function.
7770 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7771 (tui_regs_layout): Reimplement.
7772 (tui_regs_layout_command): New function.
7773 (extract_display_start_addr): Rewrite.
7774 (next_layout, prev_layout): Remove.
7775 (tui_layout_window::replace_window): New method.
7776 (tui_layout_split::replace_window): New method.
7777 (destroy_layout): New function.
7778 (layout_list): New global.
7779 (add_layout_command): New function.
7780 (initialize_layouts): Update.
7781 (tui_layout_command): New function.
7782 (_initialize_tui_layout): Install "layout" commands.
7783 * tui/tui-data.h (enum tui_layout_type): Remove.
7784 (tui_current_layout): Don't declare.
7785
0dbc2fc7
TT
77862020-02-22 Tom Tromey <tom@tromey.com>
7787
7788 * tui/tui-regs.c (tui_reg_layout): Remove.
7789 (tui_reg_command): Use tui_regs_layout.
7790 * tui/tui-layout.h (tui_reg_command): Declare.
7791 * tui/tui-layout.c (tui_reg_command): New function.
7792
5afe342e
TT
77932020-02-22 Tom Tromey <tom@tromey.com>
7794
7795 * tui/tui.c (tui_rl_delete_other_windows): Call
7796 tui_remove_some_windows.
7797 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7798 Declare method.
7799 (class tui_layout_window) <remove_windows>: New method.
7800 (class tui_layout_split) <remove_windows>: Declare.
7801 (tui_remove_some_windows): Declare.
7802 * tui/tui-layout.c (tui_remove_some_windows): New function.
7803 (tui_layout_split::remove_windows): New method.
7804
427326a8
TT
78052020-02-22 Tom Tromey <tom@tromey.com>
7806
7807 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7808 * tui/tui-layout.h (tui_next_layout): Declare.
7809 * tui/tui-layout.c (tui_next_layout): New function.
7810
3fe12b6d
TT
78112020-02-22 Tom Tromey <tom@tromey.com>
7812
7813 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7814 correct coordinates.
7815
59b8b5d2
TT
78162020-02-22 Tom Tromey <tom@tromey.com>
7817
7818 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7819 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7820 DATA_WIN case.
7821
2a3d458b
TT
78222020-02-22 Tom Tromey <tom@tromey.com>
7823
7824 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7825 TUI_DISASM_WIN, not tui_win_list.
7826
3f0cbb04
TT
78272020-02-22 Tom Tromey <tom@tromey.com>
7828
7829 * valprint.c (generic_val_print_enum_1)
7830 (val_print_type_code_flags): Style member names.
7831 * rust-lang.c (val_print_struct, rust_print_enum)
7832 (rust_print_struct_def, rust_internal_print_type): Style member
7833 names.
7834 * p-valprint.c (pascal_object_print_value_fields): Style member
7835 names. Only call fprintf_symbol_filtered for static members.
7836 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7837 * f-valprint.c (f_val_print): Style member names.
7838 * f-typeprint.c (f_type_print_base): Style member names.
7839 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7840 call fprintf_symbol_filtered for static members.
7841 (cp_print_class_member): Style member names.
7842 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7843 member names.
7844 * ada-valprint.c (ada_print_scalar): Style enum names.
7845 (ada_val_print_enum): Likewise.
7846 * ada-typeprint.c (print_enum_type): Style enum names.
7847
d4d947ae
TT
78482020-02-21 Tom Tromey <tom@tromey.com>
7849
7850 * psympriv.h (struct partial_symtab): Update comment.
7851
e94e944b
TT
78522020-02-21 Tom Tromey <tromey@adacore.com>
7853
7854 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7855 type is CORE_ADDR.
7856
1eb73179
TV
78572020-02-21 Tom de Vries <tdevries@suse.de>
7858
7859 PR gdb/25534
7860 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7861 if dependencies[i]->user != NULL.
7862
4f180d53
AT
78632020-02-21 Ali Tamur <tamur@google.com>
7864
7865 * dwarf2/read.c (dwarf2_name): Add null check.
7866
22b6cd70
TT
78672020-02-20 Tom Tromey <tom@tromey.com>
7868
7869 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7870 ">=", in binary search.
7871 (dwarf2_find_containing_comp_unit): New overload.
7872 (run_test): New self-test.
7873 (_initialize_dwarf2_read): Register new test.
7874
bd0cf5a6
NC
78752020-02-20 Nelson Chu <nelson.chu@sifive.com>
7876
7877 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7878 * riscv-tdep.h: Likewise.
7879 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7880 rv32-only CSR.
7881 * features/riscv/64bit-csr.xml: Regenerated.
7882
3f702acd
SDJ
78832020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7884 Tom Tromey <tom@tromey.com>
7885
7886 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7887 of 'fputc_unfiltered'.
7888 (putchar_unfiltered): Call 'fputc_unfiltered'.
7889 (fputc_unfiltered): Call 'fputs_unfiltered'.
7890
d13c7322
AB
78912020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7892
7893 * config.in: Regenerate.
7894 * configure: Regenerate.
7895 * configure.ac: Add --with-python-libdir option.
7896 * main.c: Use WITH_PYTHON_LIBDIR.
7897
869d8950
TT
78982020-02-19 Tom Tromey <tom@tromey.com>
7899
7900 * symtab.c (general_symbol_info::compute_and_set_names): Use
7901 obstack_strndup. Simplify call to symbol_set_demangled_name.
7902
298e9637
SM
79032020-02-19 Simon Marchi <simon.marchi@efficios.com>
7904
7905 * dwarf2/read.c (allocate_signatured_type_table,
7906 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7907 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7908 Remove objfile parameter, update all callers.
7909
08410482
DE
79102020-02-19 Doug Evans <dje@google.com>
7911
7912 PR rust/25535
7913 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7914 rust_enum_variant calculation.
7915
dfdeeca1
TT
79162020-02-19 Tom Tromey <tromey@adacore.com>
7917
7918 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7919
2ef5453b
TT
79202020-02-19 Tom Tromey <tromey@adacore.com>
7921
7922 * ada-lang.c (cache_symbol): Use obstack_strdup.
7923
9f1528a1
AB
79242020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7925
7926 * configure: Regenerate.
7927
d3c22fa8
TT
79282020-02-19 Tom Tromey <tromey@adacore.com>
7929
7930 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7931 NULL check.
7932
bf84f706
MR
79332020-02-19 Maciej W. Rozycki <macro@wdc.com>
7934
7935 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7936
d1c9b20f
AB
79372020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7938
7939 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7940 if GDBSERVER is not defined.
7941 (riscv_tdesc_cache): Likewise, also store const target_desc.
7942 (STATIC_IN_GDB): Define.
7943 (riscv_create_target_description): Update declaration with
7944 STATIC_IN_GDB.
7945 (riscv_lookup_target_description): New function, only define if
7946 GDBSERVER is not defined.
7947 * arch/riscv.h (riscv_create_target_description): Declare only
7948 when GDBSERVER is defined.
7949 (riscv_lookup_target_description): New declaration when GDBSERVER
7950 is not defined.
7951 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7952 (riscv_linux_read_features): ...this, and return
7953 riscv_gdbarch_features instead of target_desc.
7954 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7955 (riscv_linux_read_description): Rename to...
7956 (riscv_linux_read_features): ...this.
7957 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7958 Update to use riscv_gdbarch_features and
7959 riscv_lookup_target_description.
7960 * riscv-tdep.c (riscv_find_default_target_description): Use
7961 riscv_lookup_target_description instead of
7962 riscv_create_target_description.
7963
373d7ac0
SM
79642020-02-18 Simon Marchi <simon.marchi@efficios.com>
7965
7966 * valprint.c (generic_val_print_enum_1): When printing a flag
7967 enum with value 0 and there is no enumerator with value 0, print
7968 just "0" instead of "(unknown: 0x0)".
7969
b29a2df0
SM
79702020-02-18 Simon Marchi <simon.marchi@efficios.com>
7971
7972 * valprint.c (generic_val_print_enum_1): Print unknown part of
7973 flag enum in hex.
7974
6740f0cc
SM
79752020-02-18 Simon Marchi <simon.marchi@efficios.com>
7976
7977 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7978 flag enums to contain duplicate enumerators.
7979 * valprint.c (generic_val_print_enum_1): Update comment.
7980
edd45eb0
SM
79812020-02-18 Simon Marchi <simon.marchi@efficios.com>
7982
7983 * dwarf2/read.c: Include "count-one-bits.h".
7984 (update_enumeration_type_from_children): If an enumerator has
7985 multiple bits set, don't treat the enumeration as a "flag enum".
7986 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7987 of flag enums have 0 or 1 bit set.
7988
6d0cf446
BE
79892020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7990
7991 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7992 conversion.
7993 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7994 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7995 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7996 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7997 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7998
7001c1b7
SM
79992020-02-18 Simon Marchi <simon.marchi@efficios.com>
8000
8001 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8002
fdb61c6c
SM
80032020-02-14 Simon Marchi <simon.marchi@efficios.com>
8004
8005 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8006 displaced_step_closure_up.
8007 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8008 (struct displaced_step_closure_up):
8009 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8010 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8011 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8012 Likewise.
8013 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8014 * gdbarch.c, gdbarch.h: Re-generate.
8015 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8016 displaced_step_closure_up.
8017 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8018 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8019 * infrun.h (displaced_step_closure_up): New type alias.
8020 (struct displaced_step_inferior_state) <step_closure>: Change
8021 type to displaced_step_closure_up.
8022 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8023 displaced_step_closure_up.
8024 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8025
a4a38eb4
TT
80262020-02-14 Tom Tromey <tom@tromey.com>
8027
8028 * minidebug.c (gnu_debug_key): New global.
8029 (find_separate_debug_file_in_section): Use it.
8030
e8217e61
SM
80312020-02-14 Simon Marchi <simon.marchi@efficios.com>
8032
8033 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8034 std::unique_ptr.
8035 * gdbarch.c: Re-generate.
8036 * gdbarch.h: Re-generate.
8037 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8038 change.
8039 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8040 type to std::unique_ptr.
8041 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8042 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8043 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8044 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8045 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8046 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8047 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8048 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8049 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8050
d8d83535
SM
80512020-02-14 Simon Marchi <simon.marchi@efficios.com>
8052
8053 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8054 std::unique_ptr.
8055 (displaced_step_clear): Rename to...
8056 (displaced_step_reset): ... this. Just call displaced->reset ().
8057 (displaced_step_clear_cleanup): Rename to...
8058 (displaced_step_reset_cleanup): ... this.
8059 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8060 (displaced_step_fixup): Likewise.
8061 (resume_1): Likewise.
8062 (handle_inferior_event): Restore child's memory before calling
8063 displaced_step_fixup on the parent.
8064 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8065 to std::unique_ptr.
8066 <step_closure>: Change type to std::unique_ptr.
8067
5f661e03
SM
80682020-02-14 Simon Marchi <simon.marchi@efficios.com>
8069
8070 * arm-tdep.c: Include count-one-bits.h.
8071 (cleanup_block_store_pc): Use count_one_bits.
8072 (cleanup_block_load_pc): Use count_one_bits.
8073 (arm_copy_block_xfer): Use count_one_bits.
8074 (thumb2_copy_block_xfer): Use count_one_bits.
8075 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8076 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8077 (thumb_get_next_pcs_raw): Use count_one_bits.
8078 (arm_get_next_pcs_raw): Use count_one_bits_l.
8079 * arch/arm.c (bitcount): Remove.
8080 * arch/arm.h (bitcount): Remove.
8081
8084e579
TT
80822020-02-14 Tom Tromey <tromey@adacore.com>
8083
8084 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8085 Update.
8086 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8087 * dwarf2/loc.c (call_site_find_chain_1): Return
8088 unique_xmalloc_ptr.
8089 (call_site_find_chain): Likewise.
8090
258bf0ee
RB
80912020-02-14 Richard Biener <rguenther@suse.de>
8092
8093 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8094 on expression with division operators.
8095
f98a8458
AKS
80962020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8097
8098 * MAINTAINERS (Write After Approval): Adding myself.
8099
d1437c0e
TT
81002020-02-12 Tom Tromey <tom@tromey.com>
8101
8102 * event-loop.c (event_data, gdb_event, event_handler_func):
8103 Remove.
8104
3d4560f7
TT
81052020-02-12 Tom Tromey <tom@tromey.com>
8106
8107 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8108 (dwarf2_frame_objfile_data): Add comment.
8109 (find_comp_unit, set_comp_unit): New functions.
8110 (dwarf2_frame_find_fde): Use find_comp_unit.
8111 (dwarf2_build_frame_info): Use set_comp_unit.
8112
21982304
TT
81132020-02-12 Tom Tromey <tom@tromey.com>
8114
8115 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8116 (comp_unit): Don't initialize objfile.
8117 (execute_cfa_program): Add text_offset parameter.
8118 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8119 (dwarf2_frame_cache): Update.
8120 (dwarf2_build_frame_info): Don't set "objfile" member.
8121
4debb237
TT
81222020-02-12 Tom Tromey <tom@tromey.com>
8123
8124 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8125 (decode_frame_entry): Likewise.
8126 (dwarf2_build_frame_info): Update.
8127
0d404d44
TT
81282020-02-12 Tom Tromey <tom@tromey.com>
8129
8130 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8131 (decode_frame_entry_1): Use the comp_unit obstack.
8132
a7a3ae5c
TT
81332020-02-12 Tom Tromey <tom@tromey.com>
8134
8135 * dwarf2/frame.c (struct comp_unit): Add initializers and
8136 constructor.
8137 (dwarf2_frame_objfile_data): Store a comp_unit.
8138 (dwarf2_frame_find_fde): Update.
8139 (dwarf2_build_frame_info): Use "new".
8140
a9d65418
TT
81412020-02-12 Tom Tromey <tom@tromey.com>
8142
8143 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8144 (dwarf2_fde_table): Typedef for std::vector.
8145 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8146 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8147 (decode_frame_entry): Update.
8148 (dwarf2_build_frame_info): Use "new".
8149
7559c217
CB
81502020-02-12 Christian Biesinger <cbiesinger@google.com>
8151
8152 * arm-tdep.c (arm_gdbarch_init): Update.
8153 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8154 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8155 have_neon, is_m>: Change to bool.
8156
aeefc73c
CB
81572020-02-12 Christian Biesinger <cbiesinger@google.com>
8158
8159 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8160
d27b8e5f
TT
81612020-02-12 Tom Tromey <tom@tromey.com>
8162
8163 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8164
cd5900f3
HD
81652020-02-12 Hannes Domani <ssbssa@yahoo.de>
8166
8167 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8168 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8169
f056b22b
TT
81702020-02-11 Tom Tromey <tom@tromey.com>
8171
8172 * psymtab.h: Update comment.
8173
f92ff6b5
TT
81742020-02-11 Tom Tromey <tom@tromey.com>
8175
8176 * gdb_obstack.h (struct auto_obstack): Use
8177 DISABLE_COPY_AND_ASSIGN.
8178
3fd6912b
TT
81792020-02-11 Tom Tromey <tom@tromey.com>
8180
8181 * dwarf2/frame.h (struct objfile): Don't forward declare.
8182
69ed9b74
CB
81832020-02-11 Christian Biesinger <cbiesinger@google.com>
8184
8185 * cris-tdep.c (cris_supply_gregset): Change signature to match
8186 what struct regset expects.
8187 (cris_regset): New struct.
8188 (fetch_core_registers): Remove.
8189 (cris_iterate_over_regset_sections): New function.
8190 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8191 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8192
bda874f6
CB
81932020-02-11 Christian Biesinger <cbiesinger@google.com>
8194
8195 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8196 registers.
8197
754e1564
CB
81982020-02-11 Christian Biesinger <cbiesinger@google.com>
8199
8200 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8201
8ddd8e0e
SM
82022020-02-11 Simon Marchi <simon.marchi@efficios.com>
8203
8204 * configure: Re-generate.
8205
898e7f60
SM
82062020-02-11 Simon Marchi <simon.marchi@efficios.com>
8207
8208 * configure: Re-generate.
8209
58df732b
SM
82102020-02-11 Simon Marchi <simon.marchi@efficios.com>
8211
8212 * acinclude: Update warning.m4 path.
8213 * warning.m4: Move to gdbsupport.
8214
da5bd37e
TT
82152020-02-11 Tom Tromey <tromey@adacore.com>
8216
8217 * remote.c (remote_console_output): Update.
8218 * printcmd.c (printf_command): Update.
8219 * event-loop.c (gdb_wait_for_event): Update.
8220 * linux-nat.c (sigchld_handler): Update.
8221 * remote-sim.c (gdb_os_write_stdout): Update.
8222 (gdb_os_flush_stdout): Update.
8223 (gdb_os_flush_stderr): Update.
8224 (gdb_os_write_stderr): Update.
8225 * exceptions.c (print_exception): Update.
8226 * remote-fileio.c (remote_fileio_func_read): Update.
8227 (remote_fileio_func_write): Update.
8228 * tui/tui.c (tui_enable): Update.
8229 * tui/tui-interp.c (tui_interp::init): Update.
8230 * utils.c (init_page_info): Update.
8231 (putchar_unfiltered, fputc_unfiltered): Update.
8232 (gdb_flush): Update.
8233 (emit_style_escape): Update.
8234 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8235 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8236 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8237 (stderr_file::write): Update.
8238 (stderr_file::puts): Update.
8239 * ui-file.h (ui_file_isatty, ui_file_write)
8240 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8241 (ui_file_puts): Don't declare.
8242
85f0dd3c
TV
82432020-02-10 Tom de Vries <tdevries@suse.de>
8244
8245 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8246 sentinel to char *.
8247
2e927613
TV
82482020-02-09 Tom de Vries <tdevries@suse.de>
8249
8250 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8251 filename if it matches "<artificial>".
8252
6bafc845
HD
82532020-02-09 Hannes Domani <ssbssa@yahoo.de>
8254
8255 * windows-tdep.c (struct enum_value_name): New struct.
8256 (create_enum): New function.
8257 (windows_get_siginfo_type): Create and use enum types.
8258
7928d571
HD
82592020-02-09 Hannes Domani <ssbssa@yahoo.de>
8260
8261 * NEWS: Mention $_siginfo support for Windows.
8262 * windows-nat.c (handle_exception): Set siginfo_er.
8263 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8264 (windows_xfer_siginfo): New function.
8265 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8266 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8267 (init_windows_gdbarch_data): New function.
8268 (get_windows_gdbarch_data): New function.
8269 (windows_get_siginfo_type): New function.
8270 (windows_init_abi): Register windows_get_siginfo_type.
8271 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8272
6751ebae
TT
82732020-02-08 Tom Tromey <tom@tromey.com>
8274
8275 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8276 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8277 <keep>: Declare method.
8278 <m_keep>: Remove member.
8279 <~cutu_reader>: Remove.
8280 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8281 (cutu_reader::cutu_reader): Update.
8282 (cutu_reader::keep): Rename from ~cutu_reader.
8283 (process_psymtab_comp_unit, build_type_psymtabs_1)
8284 (process_skeletonless_type_unit, load_partial_comp_unit)
8285 (load_full_comp_unit, dwarf2_read_addr_index)
8286 (read_signatured_type): Update.
8287
135f5437
TT
82882020-02-08 Tom Tromey <tom@tromey.com>
8289
8290 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8291 "want_partial_unit" parameter.
8292 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8293 Inline check for DW_TAG_partial_unit.
8294 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8295
9f66ff1c
TT
82962020-02-08 Tom Tromey <tom@tromey.com>
8297
8298 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8299 read.c.
8300 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8301 read.c.
8302
c8a7a66f
TT
83032020-02-08 Tom Tromey <tom@tromey.com>
8304
8305 * dwarf2/read.c (read_address): Move to comp-unit.c.
8306 (dwarf2_rnglists_process, dwarf2_ranges_process)
8307 (read_attribute_value, dwarf_decode_lines_1)
8308 (var_decode_location, decode_locdesc): Update.
8309 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8310 read.c. Remove "cu" parameter.
8311 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8312 method.
8313
8266302d
TT
83142020-02-08 Tom Tromey <tom@tromey.com>
8315
8316 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8317 (read_indirect_line_string): Update.
8318 * dwarf2/comp-unit.c (read_offset): Remove.
8319 (read_comp_unit_head): Update.
8320 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8321 method.
8322 (read_offset): Don't declare.
8323
4057dfde
TT
83242020-02-08 Tom Tromey <tom@tromey.com>
8325
8326 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8327 * dwarf2/read.c (struct comp_unit_head): Move to
8328 dwarf2/comp-unit.h.
8329 (enum class rcuh_kind): Move to comp-unit.h.
8330 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8331 (read_comp_unit_head, error_check_comp_unit_head)
8332 (read_and_check_comp_unit_head): Move to comp-unit.c.
8333 (read_offset, dwarf_unit_type_name): Likewise.
8334 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8335 (cutu_reader::cutu_reader, read_call_site_scope)
8336 (find_partial_die, follow_die_offset): Update.
8337 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8338
24aa364d
TT
83392020-02-08 Tom Tromey <tom@tromey.com>
8340
8341 * dwarf2/read.c (read_offset_1): Move to leb.c.
8342 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8343 (dwarf_decode_macro_bytes): Update.
8344 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8345 * dwarf2/leb.h (read_offset): Declare.
8346
2c7d5afc
TT
83472020-02-08 Tom Tromey <tom@tromey.com>
8348
8349 * dwarf2/read.c (dwarf2_section_size): Remove.
8350 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8351 Update.
8352 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8353
4075cb26
TT
83542020-02-08 Tom Tromey <tom@tromey.com>
8355
8356 * dwarf2/read.c (read_initial_length): Move to leb.c.
8357 * dwarf2/leb.h (read_initial_length): Declare.
8358 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8359 handle_nonstd parameter.
8360 * dwarf2/frame.c (read_initial_length): Remove.
8361 (decode_frame_entry_1): Update.
8362
09ba997f
TT
83632020-02-08 Tom Tromey <tom@tromey.com>
8364
8365 * dwarf2/loc.c (dwarf2_find_location_expression)
8366 (dwarf_evaluate_loc_desc::get_tls_address)
8367 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8368 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8369 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8370 (dwarf2_compile_property_to_c)
8371 (dwarf2_loc_desc_get_symbol_read_needs)
8372 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8373 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8374 (loclist_describe_location, loclist_tracepoint_var_ref)
8375 (loclist_generate_c_location): Update.
8376 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8377 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8378 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8379 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8380 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8381 (dwarf2_per_cu_data::addr_size)
8382 (dwarf2_per_cu_data::ref_addr_size)
8383 (dwarf2_per_cu_data::text_offset)
8384 (dwarf2_per_cu_data::addr_type): Now methods.
8385 (per_cu_header_read_in): Make per_cu "const".
8386 (dwarf2_version): Remove.
8387 (dwarf2_per_cu_data::int_type): Now a method.
8388 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8389 (set_die_type, read_array_type, read_subrange_index_type)
8390 (read_tag_string_type, read_subrange_type): Update.
8391 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8392 offset_size, ref_addr_size, text_offset, addr_type, version,
8393 objfile, int_type, addr_sized_int_type>: Declare methods.
8394
96c738c0
TT
83952020-02-08 Tom Tromey <tom@tromey.com>
8396
8397 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8398 Move earlier.
8399
8fdd972c
TT
84002020-02-08 Tom Tromey <tom@tromey.com>
8401
8402 * dwarf2/read.h (dwarf_line_debug): Declare.
8403 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8404 * dwarf2/read.c: Move line_header code to new files.
8405 (dwarf_line_debug): No longer static.
8406 * dwarf2/line-header.c: New file.
8407 * dwarf2/line-header.h: New file.
8408
03075812
TT
84092020-02-08 Tom Tromey <tom@tromey.com>
8410
8411 * dwarf2/read.c (struct line_header) <file_full_name,
8412 file_file_name>: Return unique_xmalloc_ptr.
8413 (line_header::file_file_name): Update.
8414 (line_header::file_full_name): Update.
8415 (dw2_get_file_names_reader): Update.
8416 (macro_start_file): Update.
8417
bb822404
TT
84182020-02-08 Tom Tromey <tom@tromey.com>
8419
8420 * dwarf2/read.c (struct line_header) <file_full_name,
8421 file_file_name>: Declare methods.
8422 (dw2_get_file_names_reader): Update.
8423 (file_file_name): Now a method.
8424 (file_full_name): Likewise.
8425 (macro_start_file): Update.
8426
009b64fc
TT
84272020-02-08 Tom Tromey <tom@tromey.com>
8428
8429 * dwarf2/read.c (dwarf_always_disassemble)
8430 (show_dwarf_always_disassemble): Move to loc.c.
8431 (_initialize_dwarf2_read): Move "always-disassemble" registration
8432 to loc.c.
8433 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8434 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8435 static.
8436 (show_dwarf_always_disassemble): Move from read.c.
8437 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8438
5895093f
TT
84392020-02-08 Tom Tromey <tom@tromey.com>
8440
8441 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8442 (create_quick_file_names_table): Return htab_up.
8443 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8444 Update.
8445 * dwarf2/read.h (struct dwarf2_per_objfile)
8446 <quick_file_names_table>: Now htab_up.
8447
b3b32279
TT
84482020-02-08 Tom Tromey <tom@tromey.com>
8449
8450 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8451
1d33d811
TT
84522020-02-08 Tom Tromey <tom@tromey.com>
8453
8454 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8455 Rewrite.
8456 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8457 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8458 (abbrev_table::abbrev_table): No longer inline.
8459 (ABBREV_HASH_SIZE): Remove.
8460 (abbrev_table::m_abbrevs): Now an htab_up.
8461
86de1d91
TT
84622020-02-08 Tom Tromey <tom@tromey.com>
8463
8464 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8465 (cutu_reader): Update.
8466 (build_type_psymtabs_1): Update.
8467 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8468 (abbrev_table::alloc_abbrev): Update.
8469 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8470 (abbrev_table::read): New static method, renamed from
8471 abbrev_table_read_table.
8472 (abbrev_table::alloc_abbrev)
8473 (abbrev_table::add_abbrev): Now private.
8474 (abbrev_table::abbrev_table): Now private.
8475 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8476
0335378b
TT
84772020-02-08 Tom Tromey <tom@tromey.com>
8478
8479 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8480 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8481 htab_up.
8482
48b490f2
TT
84832020-02-08 Tom Tromey <tom@tromey.com>
8484
8485 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8486 htab_up.
8487 (lookup_dwo_unit_in_dwp): Update.
8488 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8489 on obstack.
8490
bc68fb19
TT
84912020-02-08 Tom Tromey <tom@tromey.com>
8492
8493 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8494 obstack.
8495
d15acc42
TT
84962020-02-08 Tom Tromey <tom@tromey.com>
8497
8498 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8499 line_header_hash.
8500 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8501 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8502 Change type to htab_up.
8503
eaa5fa8b
TT
85042020-02-08 Tom Tromey <tom@tromey.com>
8505
8506 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8507 htab_up. Don't allocate on obstack.
8508 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8509 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8510 Change type to htab_up.
8511
b0b6a987
TT
85122020-02-08 Tom Tromey <tom@tromey.com>
8513
8514 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8515 Change type to htab_up.
8516 * dwarf2/read.c (create_signatured_type_table_from_index)
8517 (create_signatured_type_table_from_debug_names)
8518 (create_all_type_units, add_type_unit)
8519 (lookup_dwo_signatured_type, lookup_signatured_type)
8520 (process_skeletonless_type_unit): Update.
8521 (create_debug_type_hash_table, create_debug_types_hash_table):
8522 Change type of types_htab.
8523 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8524 htab_up. Don't allocate on obstack.
8525 (create_cus_hash_table): Change type of cus_htab parameter.
8526 (struct dwo_file) <cus, tus>: Now htab_up.
8527 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8528 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8529 (queue_and_load_all_dwo_tus): Update.
8530 * dwarf2/index-write.c (write_gdbindex): Update.
8531 (write_debug_names): Update.
8532
39856def
TT
85332020-02-08 Tom Tromey <tom@tromey.com>
8534
8535 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8536 dwarf2/read.c. Remove "next" member. Add constructor ntad
8537 destructor.
8538 (struct dwarf2_per_objfile) <queue>: New member.
8539 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8540 dwarf2/read.h.
8541 (dwarf2_queue, dwarf2_queue_tail): Remove.
8542 (class dwarf2_queue_guard): Add parameter to constructor. Use
8543 DISABLE_COPY_AND_ASSIGN.
8544 <m_per_objfile>: New member.
8545 <~dwarf2_queue_guard>: Rewrite.
8546 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8547 Update.
8548 (~dwarf2_queue_item): New.
8549
3e225074
TT
85502020-02-08 Tom Tromey <tom@tromey.com>
8551
8552 * dwarf2/read.c (struct die_info) <has_children>: New member.
8553 (dw2_get_file_names_reader): Remove has_children.
8554 (dw2_get_file_names): Update.
8555 (read_cutu_die_from_dwo): Remove has_children.
8556 (cutu_reader::init_tu_and_read_dwo_dies)
8557 (cutu_reader::cutu_reader): Update.
8558 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8559 Remove has_children.
8560 (build_type_psymtabs_1, process_skeletonless_type_unit)
8561 (load_partial_comp_unit, load_full_comp_unit): Update.
8562 (create_dwo_cu_reader): Remove has_children.
8563 (create_cus_hash_table, read_die_and_children): Update.
8564 (read_full_die_1,read_full_die): Remove has_children.
8565 (read_signatured_type): Update.
8566 (class cutu_reader) <has_children>: Remove.
8567
82ca8957
TT
85682020-02-08 Tom Tromey <tom@tromey.com>
8569
8570 * dwarf2/expr.c: Rename from dwarf2expr.c.
8571 * dwarf2/expr.h: Rename from dwarf2expr.h.
8572 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8573 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8574 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8575 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8576 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8577 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8578 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8579 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8580 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8581 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8582 * dwarf2/loc.c: Rename from dwarf2loc.c.
8583 * dwarf2/loc.h: Rename from dwarf2loc.h.
8584 * dwarf2/read.c: Rename from dwarf2read.c.
8585 * dwarf2/read.h: Rename from dwarf2read.h.
8586 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8587 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8588 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8589 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8590 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8591 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8592 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8593 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8594 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8595 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8596 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8597 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8598 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8599 Update.
8600 * Makefile.in (COMMON_SFILES): Update.
8601 (HFILES_NO_SRCDIR): Update.
8602
9e35d499
TT
86032020-02-08 Tom Tromey <tom@tromey.com>
8604
8605 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8606 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8607
1eba2311
TT
86082020-02-08 Tom Tromey <tom@tromey.com>
8609
8610 * dwarf2read.h (struct die_info): Don't declare.
8611
e41c2da2
TT
86122020-02-08 Tom Tromey <tom@tromey.com>
8613
8614 * dwarf2read.h (die_info_ptr): Remove typedef.
8615
4fc6c0d5
TT
86162020-02-08 Tom Tromey <tom@tromey.com>
8617
8618 * dwarf2read.c (read_call_site_scope)
8619 (handle_data_member_location, dwarf2_add_member_fn)
8620 (mark_common_block_symbol_computed, read_common_block)
8621 (attr_to_dynamic_prop, partial_die_info::read)
8622 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8623 (dwarf2_symbol_mark_computed, set_die_type): Update.
8624 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8625 method.
8626 (attr_form_is_block): Don't declare.
8627 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8628
cd6c91b4
TT
86292020-02-08 Tom Tromey <tom@tromey.com>
8630
8631 * dwarf2read.c (dwarf2_find_base_address, )
8632 (read_call_site_scope, rust_containing_type)
8633 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8634 (handle_data_member_location, dwarf2_add_member_fn)
8635 (get_alignment, read_structure_type, process_structure_scope)
8636 (mark_common_block_symbol_computed, read_common_block)
8637 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8638 (partial_die_info::read, read_attribute_value, new_symbol)
8639 (lookup_die_type, dwarf2_get_ref_die_offset)
8640 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8641 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8642 (dwarf2_symbol_mark_computed): Update.
8643 * dwarf2/attribute.h (struct attribute) <value_as_address,
8644 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8645 methods.
8646 (value_as_address, attr_form_is_section_offset)
8647 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8648 * dwarf2/attribute.c (attribute::value_as_address)
8649 (attribute::form_is_section_offset, attribute::form_is_constant)
8650 (attribute::form_is_ref): Now methods.
8651
162dce55
TT
86522020-02-08 Tom Tromey <tom@tromey.com>
8653
8654 * dwarf2read.c (struct attribute, DW_STRING)
8655 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8656 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8657 (attr_form_is_block, attr_form_is_section_offset)
8658 (attr_form_is_constant, attr_form_is_ref): Move.
8659 * dwarf2/attribute.h: New file.
8660 * dwarf2/attribute.c: New file, from dwarf2read.c.
8661 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8662
3054dd54
TT
86632020-02-08 Tom Tromey <tom@tromey.com>
8664
8665 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8666 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8667 Move.
8668 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8669 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8670 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8671 abbrev.c.
8672 * dwarf2/abbrev.h: New file.
8673 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8674 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8675
96b79293
TT
86762020-02-08 Tom Tromey <tom@tromey.com>
8677
8678 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8679 (dwarf2_section_size, dwarf2_get_section_info)
8680 (create_signatured_type_table_from_debug_names)
8681 (create_addrmap_from_aranges, read_debug_names_from_section)
8682 (get_gdb_index_contents_from_section, read_comp_unit_head)
8683 (error_check_comp_unit_head, read_abbrev_offset)
8684 (create_debug_type_hash_table, init_cu_die_reader)
8685 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8686 (read_comp_units_from_section, create_cus_hash_table)
8687 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8688 (create_dwp_v2_section, dwarf2_rnglists_process)
8689 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8690 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8691 (read_indirect_string_from_dwz, read_addr_index_1)
8692 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8693 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8694 (fill_in_loclist_baton): Update.
8695 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8696 get_containing_section, get_bfd_owner, get_bfd_section,
8697 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8698 (dwarf2_read_section, get_section_name, get_section_file_name)
8699 (get_containing_section, get_section_bfd_owner)
8700 (get_section_bfd_section, get_section_name, get_section_file_name)
8701 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8702 declare.
8703 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8704 (dwarf2_section_info::get_bfd_owner)
8705 (dwarf2_section_info::get_bfd_section)
8706 (dwarf2_section_info::get_name)
8707 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8708 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8709 (dwarf2_section_info::read): Now methods.
8710 * dwarf-index-write.c (class debug_names): Update.
8711
2c86cff9
TT
87122020-02-08 Tom Tromey <tom@tromey.com>
8713
8714 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8715 Move to dwarf2/section.h.
8716 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8717 (get_section_bfd_section, get_section_name)
8718 (get_section_file_name, get_section_id, get_section_flags)
8719 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8720 dwarf2/section.c.
8721 * dwarf2/section.h: New file.
8722 * dwarf2/section.c: New file, from dwarf2read.c.
8723 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8724
f4382c45
TT
87252020-02-08 Tom Tromey <tom@tromey.com>
8726
8727 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8728 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8729 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8730 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8731 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8732 * dwarf2/leb.h: New file, from dwarf2read.c.
8733 * dwarf2/leb.c: New file, from dwarf2read.c.
8734 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8735 Remove.
8736 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8737 (COMMON_SFILES): Add dwarf2/leb.c.
8738
01840b7a
JB
87392020-02-08 Joel Brobecker <brobecker@adacore.com>
8740
8741 GDB 9.1 released.
8742
dfcb27e4
IB
87432020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8744
8745 PR gdb/25190:
aac66a4c
SM
8746 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8747 * gdb/remote.c (remote_console_output): Update.
8748 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8749 (ui_file_puts): ...this.
8750 * gdb/ui-file.h (ui_file_puts): Add declaration.
8751 * gdb/utils.c (emit_style_escape): Update.
8752 (flush_wrap_buffer): Update.
8753 (fputs_maybe_filtered): Update.
8754 (fputs_unfiltered): Add function.
dfcb27e4 8755
faa17681
IB
87562020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8757
aac66a4c
SM
8758 * gdb/event-loop.c (gdb_wait_for_event): Update.
8759 * gdb/printcmd.c (printf_command): Update.
8760 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8761 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8762 (gdb_os_flush_stderr): Update.
8763 * gdb/remote.c (remote_console_output): Update.
8764 * gdb/ui-file.c (gdb_flush): Rename to...
8765 (ui_file_flush): ...this.
8766 (stderr_file::write): Update.
8767 (stderr_file::puts): Update.
8768 * gdb/ui-file.h (gdb_flush): Rename to...
8769 (ui_file_flush): ...this.
8770 * gdb/utils.c (gdb_flush): Add function.
8771 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8772
5abbbe1d
TT
87732020-02-07 Tom Tromey <tromey@adacore.com>
8774
8775 PR breakpoints/24915:
8776 * source.c (find_and_open_source): Do not check basenames_may_differ.
8777
919adfe8
TT
87782020-02-07 Tom Tromey <tom@tromey.com>
8779
8780 * README: Update gdbserver documentation.
8781 * gdbserver: Move to top level.
8782 * configure.tgt (build_gdbserver): Remove.
8783 * configure.ac: Remove --enable-gdbserver.
8784 * configure: Rebuild.
8785 * Makefile.in (distclean): Don't mention gdbserver.
8786
1d5d29e7
SV
87872020-02-06 Shahab Vahedi <shahab@synopsys.com>
8788
8789 * source-cache.c (source_cache::ensure): Surround
8790 get_plain_source_lines with a try/catch.
8791 (source_cache::get_line_charpos): Get rid of try/catch
8792 and only check for the return value of "ensure".
8793 * tui/tui-source.c (tui_source_window::set_contents):
8794 Simplify "nlines" calculation.
8795
6eb1129c
SV
87962020-02-06 Shahab Vahedi <shahab@synopsys.com>
8797
8798 * MAINTAINERS (Write After Approval): Add myself.
8799
c6a42d11
CB
88002020-02-05 Christian Biesinger <cbiesinger@google.com>
8801
8802 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8803 function call.
8804
c8ecdda6
CB
88052020-02-05 Christian Biesinger <cbiesinger@google.com>
8806
8807 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8808
f6480e70
MR
88092020-02-05 Maciej W. Rozycki <macro@wdc.com>
8810
8811 * nat/riscv-linux-tdesc.h: New file.
8812 * nat/riscv-linux-tdesc.c: New file, taking code from...
8813 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8814 ... here.
8815 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8816 NATDEPFILES.
8817
dcc9fbc6
AB
88182020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8819
8820 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8821 we don't set the fake simulator ptid to the null_ptid.
8822
719546c4
SM
88232020-02-03 Simon Marchi <simon.marchi@efficios.com>
8824
8825 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8826 * gdbthread.h (class thread_info) <resumed>: Likewise.
8827 * infrun.c (resume_1): Likewise.
8828 (proceed): Likewise.
8829 (infrun_thread_stop_requested): Likewise.
8830 (stop_all_threads): Likewise.
8831 (handle_inferior_event): Likewise.
8832 (restart_threads): Likewise.
8833 (finish_step_over): Likewise.
8834 (keep_going_stepped_thread): Likewise.
8835 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8836 (linux_handle_extended_wait): Likewise.
8837 * record-btrace.c (get_thread_current_frame_id): Likewise.
8838 * record-full.c (record_full_wait_1): Likewise.
8839 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8840 * target.c (target_resume): Likewise.
8841 * thread.c (set_running_thread): Likewise.
8842
e409c542
AKS
88432020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8844
8845 * f-valprint.c (f77_print_array_1): Changed datatype of index
8846 variable to LONGEST from int to enable it to contain bound
8847 values correctly.
8848
ee98c0da
MR
88492020-02-03 Maciej W. Rozycki <macro@wdc.com>
8850
8851 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8852 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8853 offsets according to FLEN determined.
8854 (riscv_linux_nat_target::read_description): Determine FLEN
8855 dynamically.
8856 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8857 according to FLEN determined.
8858 (riscv_linux_nat_target::store_registers): Likewise.
8859
aa66aac4
SV
88602020-02-01 Shahab Vahedi <shahab@synopsys.com>
8861
8862 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8863 when reg->group is empty and reggroup is not.
8864
fd9faca8
TT
88652020-01-31 Tom Tromey <tromey@adacore.com>
8866
8867 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8868 Call beneath target's mourn_inferior after unpushing.
8869
42330a68
AB
88702020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8871
8872 PR tui/9765
8873 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8874 have enough lines to fill the screen, still return the lowest
8875 address we found.
8876
7a27a45b
AB
88772020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8878
8879 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8880 '-', '<', and '>' commands.
8881
c47f70e2
PA
88822020-01-29 Pedro Alves <palves@redhat.com>
8883 Sergio Durigan Junior <sergiodj@redhat.com>
8884
8885 * infcmd.c (construct_inferior_arguments): Assert that
8886 'argc' is greater than 0.
8887
5133a315
LM
88882020-01-29 Luis Machado <luis.machado@linaro.org>
8889
8890 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8891 (BRK_INSN_MASK): Define to 0xd4200000.
8892 (aarch64_program_breakpoint_here_p): New function.
8893 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8894 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8895 breakpoint.c.
8896 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8897 breakpoint.h
8898 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8899 call gdbarch_program_breakpoint_here_p.
8900 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8901 default_program_breakpoint_here_p, changed return type to bool and
8902 simplified.
8903 * breakpoint.h (program_breakpoint_here): Moved prototype to
8904 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8905 return type to bool.
8906 * gdbarch.c: Regenerate.
8907 * gdbarch.h: Regenerate.
8908 * gdbarch.sh (program_breakpoint_here_p): New method.
8909 * infrun.c (handle_signal_stop): Call
8910 gdbarch_program_breakpoint_here_p.
8911
168f8c6b
TT
89122020-01-26 Tom Tromey <tom@tromey.com>
8913
8914 * ctfread.c (struct ctf_fp_info): Reindent.
8915 (_initialize_ctfread): Remove.
8916
128a391f
TT
89172020-01-26 Tom Tromey <tom@tromey.com>
8918
8919 * psymtab.c (partial_map_expand_apply)
8920 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8921 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8922 (psym_print_stats, psym_expand_symtabs_for_function)
8923 (psym_map_symbol_filenames, psym_map_matching_symbols)
8924 (psym_expand_symtabs_matching)
8925 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8926 (maintenance_check_psymtabs): Use new methods.
8927 * psympriv.h (struct partial_symtab) <readin_p,
8928 get_compunit_symtab>: New methods.
8929 <readin, compunit_symtab>: Remove members.
8930 (struct standard_psymtab): New.
8931 (struct legacy_psymtab): Derive from standard_psymtab.
8932 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8933 standard_psymtab.
8934 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8935
0494dbec
TT
89362020-01-26 Tom Tromey <tom@tromey.com>
8937
8938 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8939 read_dependencies. Add assert.
8940 * psymtab.c (partial_symtab::read_dependencies): New method.
8941 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8942 method.
8943 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8944 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8945 read_dependencies.
8946 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8947 Add assert.
8948
8566b89b
TT
89492020-01-26 Tom Tromey <tom@tromey.com>
8950
8951 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8952 Call expand_psymtab.
8953 (xcoff_read_symtab): Call expand_psymtab.
8954 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8955 legacy_expand_psymtab.
8956 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8957 method.
8958 (struct legacy_psymtab) <expand_psymtab>: Implement.
8959 <legacy_expand_psymtab>: New member.
8960 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8961 (parse_partial_symbols): Set legacy_expand_psymtab.
8962 (psymtab_to_symtab_1): Change argument order. Call
8963 expand_psymtab.
8964 (new_psymtab): Set legacy_expand_psymtab.
8965 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8966 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8967 expand_psymtab.
8968 (dwarf2_psymtab::expand_psymtab): Rename from
8969 psymtab_to_symtab_1. Call expand_psymtab.
8970 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8971 (dbx_end_psymtab): Likewise.
8972 (dbx_psymtab_to_symtab_1): Change argument order. Call
8973 expand_psymtab.
8974 (dbx_read_symtab): Call expand_psymtab.
8975 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8976 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8977 (ctf_psymtab::read_symtab): Call expand_psymtab.
8978
077cbab2
TT
89792020-01-26 Tom Tromey <tom@tromey.com>
8980
8981 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8982 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8983 messages.
8984 * mdebugread.c (mdebug_read_symtab): Remove prints.
8985 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8986 assert.
8987 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8988
891813be
TT
89892020-01-26 Tom Tromey <tom@tromey.com>
8990
8991 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8992 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8993 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8994 legacy_symtab.
8995 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8996 * psymtab.c (psymtab_to_symtab): Call method.
8997 (dump_psymtab): Update.
8998 * psympriv.h (struct partial_symtab): Add virtual destructor.
8999 <read_symtab>: New method.
9000 (struct legacy_symtab): New.
9001 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9002 (struct pst_map) <pst>: Now a legacy_psymtab.
9003 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9004 (new_psymtab): Use legacy_psymtab.
9005 * dwarf2read.h (struct dwarf2_psymtab): New.
9006 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9007 * dwarf2read.c (dwarf2_create_include_psymtab)
9008 (dwarf2_build_include_psymtabs, create_type_unit_group)
9009 (create_partial_symtab, process_psymtab_comp_unit_reader)
9010 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9011 (set_partial_user): Use dwarf2_psymtab.
9012 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9013 (psymtab_to_symtab_1, process_full_comp_unit)
9014 (process_full_type_unit, dwarf2_ranges_read)
9015 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9016 (dwarf_decode_lines): Use dwarf2_psymtab.
9017 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9018 (add_address_entry_worker, write_one_signatured_type)
9019 (recursively_count_psymbols, recursively_write_psymbols)
9020 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9021 (write_debug_names): Likewise.
9022 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9023 <pst>: Now a legacy_psymtab.
9024 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9025 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9026 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9027 * ctfread.c (struct ctf_psymtab): New.
9028 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9029 ctf_psymtab.
9030 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9031 (create_partial_symtab): Return a ctf_psymtab.
9032 (scan_partial_symbols): Update.
9033
c3693a1d
TT
90342020-01-26 Tom Tromey <tom@tromey.com>
9035
9036 * xcoffread.c (xcoff_start_psymtab): Use new.
9037 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9038 renamed from start_psymtab_common.
9039 * psympriv.h (struct partial_symtab): Add new constructor.
9040 (start_psymtab_common): Don't declare.
9041 * mdebugread.c (parse_partial_symbols): Use new.
9042 * dwarf2read.c (create_partial_symtab): Use new.
9043 * dbxread.c (start_psymtab): Use new.
9044 * ctfread.c (create_partial_symtab): Use new.
9045
32caafd0
TT
90462020-01-26 Tom Tromey <tom@tromey.com>
9047
9048 * xcoffread.c (xcoff_end_psymtab): Use new.
9049 * psymtab.c (start_psymtab_common): Use new.
9050 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9051 Update.
9052 * psympriv.h (struct partial_symtab): Add parameters to
9053 constructor. Don't inline.
9054 (allocate_psymtab): Don't declare.
9055 * mdebugread.c (new_psymtab): Use new.
9056 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9057 * dbxread.c (dbx_end_psymtab): Use new.
9058
abaa2f23
TT
90592020-01-26 Tom Tromey <tom@tromey.com>
9060
9061 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9062 allocate_psymtab. Update documentation.
9063 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9064 allocate_psymtab. Do not use new.
9065 (allocate_psymtab): Use new. Update.
9066
6d94535f
TT
90672020-01-26 Tom Tromey <tom@tromey.com>
9068
9069 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9070 * psymtab.c (psym_print_stats): Update.
9071 * psympriv.h (struct partial_symtab) <readin,
9072 psymtabs_addrmap_supported, anonymous>: Now bool.
9073 * mdebugread.c (psymtab_to_symtab_1): Update.
9074 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9075 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9076 (process_full_comp_unit, process_full_type_unit): Update.
9077 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9078 * ctfread.c (psymtab_to_symtab): Update.
9079
6f17252b
TT
90802020-01-26 Tom Tromey <tom@tromey.com>
9081
9082 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9083 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9084 * psymtab.c (psymtab_storage): Delete psymtabs.
9085 (psymtab_storage::allocate_psymtab): Use new.
9086 (psymtab_storage::discard_psymtab): Use delete.
9087 * psympriv.h (struct partial_symtab): Add constructor and
9088 initializers.
9089
f6f1cebc
TT
90902020-01-26 Tom Tromey <tom@tromey.com>
9091
9092 * machoread.c: Do not include psympriv.h.
9093
e47e48f6
PW
90942020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9095
9096 * NEWS: Mention the new option and the set/show commands.
9097
a2fedca9
PW
90982020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9099
9100 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9101 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9102 (validate_exec_file): New variables, enums, functions.
9103 (exec_file_locate_attach, print_section_info): Style the filenames.
9104 (_initialize_exec): Install show_exec_file_mismatch_command and
9105 set_exec_file_mismatch_command.
9106 * gdbcore.h (validate_exec_file): Declare.
9107 * infcmd.c (attach_command): Call validate_exec_file.
9108 * remote.c ( remote_target::remote_add_inferior): Likewise.
9109
7ffa82e1
AB
91102020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9111
9112 * frame.c (find_frame_sal): Move call to get_next_frame into more
9113 inner scope.
9114 * inline-frame.c (inilne_state) <inline_state>: Update argument
9115 types.
9116 (inilne_state) <skipped_symbol>: Rename to...
9117 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9118 (skip_inline_frames): Build vector of skipped symbols and use this
9119 to reate the inline_state.
9120 (inline_skipped_symbol): Add a comment and some assertions, fetch
9121 skipped symbol from the list.
9122
3d92a3e3
AB
91232020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9124
9125 * buildsym.c (lte_is_less_than): Delete.
9126 (buildsym_compunit::end_symtab_with_blockvector): Create local
9127 lambda function to sort line table entries, and use
9128 std::stable_sort instead of std::sort.
9129 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9130 markers when looking for a previous line.
9131
94a72be7
AB
91322020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9133
9134 * dwarf2read.c (lnp_state_machine::record_line): Include
9135 end_sequence parameter in debug print out. Record the line if we
9136 are at an end_sequence marker even if it's not the start of a
9137 statement.
9138 * symmisc.c (maintenance_print_one_line_table): Print end of
9139 sequence markers with 'END' not '0'.
9140
53af73bf
PA
91412020-01-24 Pedro Alves <palves@redhat.com>
9142
9143 PR gdb/25410
9144 * thread.c (scoped_restore_current_thread::restore): Use
9145 switch_to_inferior_no_thread.
9146 * exec.c: Include "progspace-and-thread.h".
9147 (add_target_sections, remove_target_sections):
9148 scoped_restore_current_pspace_and_thread instead of
9149 scoped_restore_current_thread.
9150 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9151 and aspace to the inferior before calling clone_program_space.
9152 Remove stale comment.
9153
3050c6f4
CB
91542020-01-24 Christian Biesinger <cbiesinger@google.com>
9155
9156 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9157 (arm_netbsd_nat_target::fetch_registers): ...this.
9158 (arm_nbsd_nat_target::store_registers): Rename to...
9159 (arm_netbsd_nat_target::store_registers): ...this.
9160
73685c7e
CB
91612020-01-24 Christian Biesinger <cbiesinger@google.com>
9162
9163 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9164 register_t.
9165
89203d40
CB
91662020-01-24 Christian Biesinger <cbiesinger@google.com>
9167
9168 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9169 Update comment.
9170 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9171 Likewise.
9172 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9173 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9174 the correct replacement (iterate_over_regset_sections).
9175 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9176 Update comment.
9177
1ba1ac88
AB
91782020-01-24 Graham Markall <graham.markall@embecosm.com>
9179
9180 PR gdb/23718
9181 * gdb/python/python.c (execute_gdb_command): Call
9182 async_enable_stdin in catch block.
9183
f3364a6d
AB
91842020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9185
9186 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9187 SWITCH_THRU_ALL_UIS.
9188
733d0a67
AB
91892020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9190
9191 PR tui/9765
9192 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9193 comment, add extra parameter, and update to store previous symbol
9194 when appropriate.
9195 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9196 add extra parameter.
9197 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9198 remove unneeded parameter, add try/catch around gdb_print_insn,
9199 rewrite to add items to asm_lines vector.
9200 (tui_find_backward_disassembly_start_address): New function.
9201 (tui_find_disassembly_address): Updated throughout.
9202 (tui_disasm_window::set_contents): Update for changes to
9203 tui_disassemble.
9204 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9205 number of lines to scroll.
9206
b3b3bada
SM
92072020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9208
9209 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9210 (SECT_OFF_DATA): Likewise.
9211 (SECT_OFF_RODATA): Likewise.
9212 (SECT_OFF_TEXT): Likewise.
9213 (SECT_OFF_BSS): Likewise.
9214 (struct objfile) <text_section_offset, data_section_offset>: New
9215 methods.
9216 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9217 objfile::text_section_offset.
9218 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9219 * coffread.c (coff_symtab_read): Likewise.
9220 (enter_linenos): Likewise.
9221 (process_coff_symbol): Likewise.
9222 * ctfread.c (get_objfile_text_range): Likewise.
9223 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9224 Use objfile::data_section_offset.
9225 * dwarf2-frame.c (execute_cfa_program): Use
9226 objfile::text_section_offset.
9227 (dwarf2_frame_find_fde): Likewise.
9228 * dwarf2read.c (create_addrmap_from_index): Likewise.
9229 (create_addrmap_from_aranges): Likewise.
9230 (dw2_find_pc_sect_compunit_symtab): Likewise.
9231 (process_psymtab_comp_unit_reader): Likewise.
9232 (add_partial_symbol): Likewise.
9233 (add_partial_subprogram): Likewise.
9234 (process_full_comp_unit): Likewise.
9235 (read_file_scope): Likewise.
9236 (read_func_scope): Likewise.
9237 (read_lexical_block_scope): Likewise.
9238 (read_call_site_scope): Likewise.
9239 (dwarf2_rnglists_process): Likewise.
9240 (dwarf2_ranges_process): Likewise.
9241 (dwarf2_ranges_read): Likewise.
9242 (dwarf_decode_lines_1): Likewise.
9243 (new_symbol): Likewise.
9244 (dwarf2_fetch_die_loc_sect_off): Likewise.
9245 (dwarf2_per_cu_text_offset): Likewise.
9246 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9247 * hppa-tdep.c (read_unwind_info): Likewise.
9248 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9249 * psympriv.h (struct partial_symtab): Likewise.
9250 * psymtab.c (find_pc_sect_psymtab): Likewise.
9251 * solib-svr4.c (enable_break): Likewise.
9252 * stap-probe.c (relocate_address): Use
9253 objfile::data_section_offset.
9254 * xcoffread.c (enter_line_range): Use
9255 objfile::text_section_offset.
9256 (read_xcoff_symtab): Likewise.
9257
ab53f382
SM
92582020-01-23 Simon Marchi <simon.marchi@efficios.com>
9259
9260 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9261 declaration to narrower scopes.
9262
e7eee665
SM
92632020-01-23 Simon Marchi <simon.marchi@efficios.com>
9264
9265 * darwin-nat.h (struct darwin_exception_msg, enum
9266 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9267 Move up.
9268 (class darwin_nat_target) <wait_1, check_new_threads,
9269 decode_exception_message, decode_message, stop_inferior,
9270 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9271 * darwin-nat.c (darwin_check_new_threads): Rename to...
9272 (darwin_nat_target::check_new_threads): ... this.
9273 (darwin_suspend_inferior_it): Remove.
9274 (darwin_decode_exception_message): Rename to...
9275 (darwin_nat_target::decode_exception_message): ... this.
9276 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9277 (darwin_decode_message): Rename to...
9278 (darwin_nat_target::decode_message): ... this.
9279 (cancel_breakpoint): Rename to...
9280 (darwin_nat_target::cancel_breakpoint): ... this.
9281 (darwin_wait): Rename to...
9282 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9283 instead of iterate_over_inferiors.
9284 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9285 (darwin_stop_inferior): Rename to...
9286 (darwin_nat_target::stop_inferior): ... this.
9287 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9288 (darwin_init_thread_list): Rename to...
9289 (darwin_nat_target::init_thread_list): ... this.
9290 (darwin_ptrace_him): Rename to...
9291 (darwin_nat_target::ptrace_him): ... this.
9292 (darwin_nat_target::create_inferior): Pass lambda function to
9293 fork_inferior.
9294 (darwin_nat_target::detach): Call stop_inferior instead of
9295 darwin_stop_inferior.
9296 * fork-inferior.h (fork_inferior): Change init_trace_fun
9297 parameter to gdb::function_view.
9298 * fork-inferior.c (fork_inferior): Likewise.
9299
c162ed3e
HD
93002020-01-23 Hannes Domani <ssbssa@yahoo.de>
9301
9302 * i386-cygwin-tdep.c (core_process_module_section): Update.
9303 * windows-nat.c (struct lm_info_windows): Add text_offset.
9304 (windows_xfer_shared_libraries): Update.
9305 * windows-tdep.c (windows_xfer_shared_library):
9306 Add text_offset_cached argument.
9307 * windows-tdep.h (windows_xfer_shared_library): Update.
9308
a1237872
SM
93092020-01-21 Simon Marchi <simon.marchi@efficios.com>
9310
9311 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9312
b3ee6dd9
SM
93132020-01-21 Simon Marchi <simon.marchi@efficios.com>
9314
9315 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9316 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9317 replace with range-based for.
9318 (gdbsim_interrupt_inferior): Remove.
9319 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9320 with a range-based for. Inline code from
9321 gdbsim_interrupt_inferior.
9322
f9fac3c8
SM
93232020-01-21 Simon Marchi <simon.marchi@efficios.com>
9324
9325 * infrun.c (proceed): Fix indentation.
9326
f6474de9
TT
93272020-01-21 Tom Tromey <tromey@adacore.com>
9328
9329 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9330 * python/python.c (python_extension_ops): Update.
9331 (gdbpy_colorize): New function.
9332 * python/lib/gdb/__init__.py (colorize): New function.
9333 * extension.h (ext_lang_colorize): Declare.
9334 * extension.c (ext_lang_colorize): New function.
9335 * extension-priv.h (struct extension_language_ops) <colorize>: New
9336 member.
9337 * cli/cli-style.c (_initialize_cli_style): Update help text.
9338
f0c702d4
LM
93392020-01-21 Luis Machado <luis.machado@linaro.org>
9340
9341 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9342 <cond>: Change type to bool.
9343 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9344 (aarch64_displaced_step_cb): Likewise.
9345 (aarch64_displaced_step_tb): Likewise.
9346
1ab139e5
LM
93472020-01-21 Luis Machado <luis.machado@linaro.org>
9348
9349 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9350 output.
9351
0c271889
LM
93522020-01-21 Luis Machado <luis.machado@linaro.org>
9353
9354 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9355 <pc_adjust>: Adjust the documentation.
9356 (aarch64_displaced_step_fixup): Check if PC really moved before
9357 adjusting it.
9358
4d89c1c7
TT
93592020-01-19 Tom Tromey <tom@tromey.com>
9360
9361 * disasm.c (~gdb_disassembler): New destructor.
9362 (gdb_buffered_insn_length): Call disassemble_free_target.
9363 * disasm.h (class gdb_disassembler): Declare destructor. Use
9364 DISABLE_COPY_AND_ASSIGN.
9365
c0ab21c2
TT
93662020-01-19 Tom Tromey <tom@tromey.com>
9367
9368 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9369 (die_reader_func_ftype): Remove.
9370 (cutu_reader): New class.
9371 (dw2_get_file_names_reader): Remove "data" parameter.
9372 (dw2_get_file_names): Use cutu_reader.
9373 (create_debug_type_hash_table): Update.
9374 (read_cutu_die_from_dwo): Update comment.
9375 (lookup_dwo_unit): Add dwo_name parameter.
9376 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9377 die_reader_func_ftype and data parameters.
9378 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9379 Remove die_reader_func_ftype and data parameters.
9380 (~cutu_reader): New; from init_cutu_and_read_dies.
9381 (cutu_reader::cutu_reader): Rename from
9382 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9383 and data parameters.
9384 (init_cutu_and_read_dies_simple): Remove.
9385 (struct process_psymtab_comp_unit_data): Remove.
9386 (process_psymtab_comp_unit_reader): Remove data parameter; add
9387 want_partial_unit and pretend_language parameters.
9388 (process_psymtab_comp_unit): Use cutu_reader.
9389 (build_type_psymtabs_reader): Remove data parameter.
9390 (build_type_psymtabs_1): Use cutu_reader.
9391 (process_skeletonless_type_unit): Likewise.
9392 (load_partial_comp_unit_reader): Remove.
9393 (load_partial_comp_unit): Use cutu_reader.
9394 (load_full_comp_unit_reader): Remove.
9395 (load_full_comp_unit): Use cutu_reader.
9396 (struct create_dwo_cu_data): Remove.
9397 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9398 dwo_unit parameters.
9399 (create_cus_hash_table): Use cutu_reader.
9400 (struct dwarf2_read_addr_index_data): Remove.
9401 (dwarf2_read_addr_index_reader): Remove.
9402 (dwarf2_read_addr_index): Use cutu_reader.
9403 (read_signatured_type_reader): Remove.
9404 (read_signatured_type): Use cutu_reader.
9405
45bbae5c
TT
94062020-01-19 Tom Tromey <tom@tromey.com>
9407
9408 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9409 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9410 (tui_wrefresh): Declare.
9411 * tui/tui-wingeneral.c (suppress_output): New global.
9412 (tui_suppress_output, ~tui_suppress_output): New constructor and
9413 destructor.
9414 (tui_wrefresh): New function.
9415 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9416 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9417 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9418 method.
9419 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9420 tui_wrefresh.
9421 (tui_data_window::no_refresh): New method.
9422 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9423 (tui_reg_command): Use tui_suppress_output
9424 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9425 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9426 method.
9427 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9428
4f13c1c0
TT
94292020-01-19 Tom Tromey <tom@tromey.com>
9430
9431 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9432 Handle case where symtab is null.
9433
fa47e446
SM
94342020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9435
9436 * linux-fork.c (one_fork_p): Simplify.
9437
26f42329
SM
94382020-01-17 Simon Marchi <simon.marchi@efficios.com>
9439
9440 * top.c (struct qt_args): Remove.
9441 (kill_or_detach): Change return type to void, replace `void *`
9442 parameter with a proper one.
9443 (print_inferior_quit_action): Likewise.
9444 (quit_confirm): Use range-based for loop to iterate over inferiors.
9445 (quit_force): Likewise.
9446
a9ac81b1
SM
94472020-01-17 Simon Marchi <simon.marchi@efficios.com>
9448
9449 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9450 `void *` parameter with proper parameters.
9451 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9452 (print_one_inferior): Change return type to void, replace `void *`
9453 parameter with proper parameters.
9454 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9455 inferiors.
9456 (get_other_inferior): Remove.
9457 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9458 inferiors.
9459
788eca49
SM
94602020-01-17 Simon Marchi <simon.marchi@efficios.com>
9461
9462 * mi/mi-interp.c (report_initial_inferior): Remove.
9463 (mi_interp::init): Use range-based for to iterate over inferiors.
9464
d9bc85b6
SM
94652020-01-17 Simon Marchi <simon.marchi@efficios.com>
9466
9467 * python/py-inferior.c (build_inferior_list): Remove.
9468 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9469
40c94099
CB
94702020-01-16 Christian Biesinger <cbiesinger@google.com>
9471
9472 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9473 (btrace_stitch_trace): Likewise.
9474 * charset.c (intermediate_encoding): Likewise (vaild).
9475 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9476 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9477 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9478
e0cdfe3c
HD
94792020-01-16 Hannes Domani <ssbssa@yahoo.de>
9480
9481 * windows-tdep.c (windows_get_tlb_type):
9482 Add rtl_user_process_parameters type.
9483
790f1718 94842020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9485 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9486
9487 PR build/24805
9488 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9489 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9490 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9491 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9492 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9493 (ps_plog): Redeclare exported functions with default visibility.
9494
3112ed97
NA
94952020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9496
9497 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9498 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9499
8dc3273e
SM
95002020-01-15 Simon Marchi <simon.marchi@efficios.com>
9501
9502 * infcmd.c (post_create_inferior): Use get_thread_regcache
9503 instead of get_current_regcache.
9504
ff47f4f0
TT
95052020-01-14 Tom Tromey <tom@tromey.com>
9506
9507 PR symtab/12535:
9508 * python/python.c (gdbpy_decode_line): Treat empty string the same
9509 as no argument.
9510
975f45b7
TT
95112020-01-14 Tom Tromey <tom@tromey.com>
9512
9513 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9514
25e57356
TT
95152020-01-14 Tom Tromey <tom@tromey.com>
9516
9517 * nat/linux-btrace.c: Don't include <config.h>.
9518 * nat/linux-ptrace.c: Don't include <config.h>.
9519 * nat/x86-linux-dregs.c: Don't include <config.h>.
9520
05ea2a05
TT
95212020-01-14 Tom Tromey <tom@tromey.com>
9522
9523 * configure: Rebuild.
9524 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9525
01027315
TT
95262020-01-14 Tom Tromey <tom@tromey.com>
9527
9528 * nat/x86-linux-dregs.c: Include configh.h.
9529 * nat/linux-ptrace.c: Include configh.h.
9530 * nat/linux-btrace.c: Include configh.h.
9531 * defs.h: Include config.h, bfd.h.
9532 * configure.ac: Don't source common.host.
9533 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9534 * configure: Rebuild.
9535 * acinclude.m4: Update path.
9536 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9537 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9538 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9539 (CLIBS): Add LIBSUPPORT.
9540 (CDEPS): Likewise.
9541 (COMMON_SFILES): Remove gdbsupport files.
9542 (HFILES_NO_SRCDIR): Likewise.
9543 (stamp-version): Update path to create-version.sh.
9544 (ALLDEPFILES): Remove gdbsupport files.
9545
b2ceabe8
TT
95462020-01-14 Tom Tromey <tom@tromey.com>
9547
9548 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9549 USE_WIN32API when needed.
9550 * configure.ac (USE_WIN32API): Don't define.
9551 (WIN32LIBS): Use WIN32APILIBS.
9552 * configure: Rebuild.
9553
25c51f71
TT
95542020-01-14 Tom Tromey <tom@tromey.com>
9555
9556 * configure: Rebuild.
9557 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9558
717c684d
BE
95592020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9560
9561 * skip.c (skip_function_command): Make skip w/o arguments use the
9562 name of the inlined function if pc is inside any inlined function.
9563
7da6a5b9
LM
95642020-01-14 Luis Machado <luis.machado@linaro.org>
9565
9566 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9567 * infrun.c (resume_1): Likewise.
9568 (handle_inferior_event): Remove stale comment.
9569 * linux-nat.c (linux_nat_target::resume): Update comments.
9570 (save_stop_reason): Likewise.
9571 (linux_nat_filter_event): Likewise.
9572 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9573
44e4c775
AB
95742020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9575
9576 * elfread.c (record_minimal_symbol): Set section index to 0 for
9577 non-allocatable sections.
9578
18a8505e
AT
9579
95802020-01-13 Ali Tamur <tamur@google.com>
9581
9582 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9583 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9584 to gdb::optional. Update comments.
9585 (dwo_file): Update comments.
9586 (read_attribute): Update API to take an additional out parameter,
9587 need_reprocess. This is used to mark attributes that need other
9588 attributes (e.g. str_offsets_base) for correct computation which may not
9589 have been read yet.
9590 (read_attribute_reprocess): New function declaration.
9591 (read_addr_index): Likewise.
9592 (read_dwo_str_index): Likewise.
9593 (read_stub_str_index): Likewise.
9594 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9595 (lookup_addr_base): New function definition.
9596 (lookup_ranges_base): Likewise.
9597 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9598 lookup_ranges_base.
9599 (init_cutu_and_read_dies): Update comments.
9600 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9601 unit. This is used to inherit parent's str_offsets_base and addr_base.
9602 Update comments.
9603 (init_cutu_and_read_dies_simple): Reflect API changes.
9604 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9605 (create_cus_hash_table): Change API to take parent compile unit.
9606 Reflect API changes.
9607 (open_and_init_dwo_file): Reflect API changes.
9608 (dwarf2_get_pc_bounds): Update comments.
9609 (dwarf2_record_block_ranges): Likewise.
9610 (read_full_die_1): Change implementation to reprocess attributes that
9611 need str_offsets_base and addr_base.
9612 (partial_die_info::read): Likewise.
9613 (read_attribute_reprocess): New function definition.
9614 (read_attribute_value): Change API to take an additional out parameter,
9615 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9616 when a non-dwo compile unit has index based attributes.
9617 (read_attribute): Reflect API changes.
9618 (read_addr_index_1): Reflect API changes. Update comments.
9619 (dwarf2_read_addr_index_data): Reflect API changes.
9620 (dwarf2_read_addr_index): Likewise.
9621 (read_str_index): Change API and implementation. This becomes a helper
9622 to be used by the new string index related methods. Update error
9623 message and comments.
9624 (read_dwo_str_index): New function definition.
9625 (read_stub_str_index): Likewise.
9626 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9627 * symfile.h (dwarf2_debug_sections): Likewise.
9628 * xcoffread.c (dwarf2_debug_sections): Likewise.
9629
0cac9354
SM
96302020-01-13 Simon Marchi <simon.marchi@efficios.com>
9631
9632 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9633 core_reg_sect type to gdb_byte *.
9634 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9635 * cris-tdep.c (fetch_core_registers): Likewise.
9636 * corelow.c (core_target::get_core_register_section): Change
9637 type of `contents` to gdb::byte_vector.
9638
9a6d629c
AB
96392020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9640
9641 * tui/tui-wingeneral.c (box_win): Position the title in the center
9642 of the border.
9643
d8b2f9e3
SM
96442020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9645
9646 * corelow.c (core_target::get_core_register_section): Use
9647 std::vector instead of alloca.
9648
bb564c58
SM
96492020-01-13 Simon Marchi <simon.marchi@efficios.com>
9650
9651 * warning.m4: Add -Wmissing-declarations to build_warnings.
9652 * configure: Re-generate.
9653
6b366111
SM
96542020-01-13 Simon Marchi <simon.marchi@efficios.com>
9655
9656 * python/python.c (init__gdb_module): Add declaration.
9657
6c265988
SM
96582020-01-13 Simon Marchi <simon.marchi@efficios.com>
9659
9660 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9661 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9662 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9663 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9664 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9665 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9666 * ada-exp.y (_initialize_ada_exp): Add declaration.
9667 * ada-lang.c (_initialize_ada_language): Add declaration.
9668 * ada-tasks.c (_initialize_tasks): Add declaration.
9669 * agent.c (_initialize_agent): Add declaration.
9670 * aix-thread.c (_initialize_aix_thread): Add declaration.
9671 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9672 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9673 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9674 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9675 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9676 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9677 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9678 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9679 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9680 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9681 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9682 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9683 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9684 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9685 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9686 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9687 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9688 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9689 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9690 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9691 * annotate.c (_initialize_annotate): Add declaration.
9692 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9693 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9694 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9695 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9696 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9697 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9698 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9699 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9700 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9701 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9702 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9703 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9704 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9705 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9706 * auto-load.c (_initialize_auto_load): Add declaration.
9707 * auxv.c (_initialize_auxv): Add declaration.
9708 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9709 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9710 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9711 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9712 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9713 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9714 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9715 * breakpoint.c (_initialize_breakpoint): Add declaration.
9716 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9717 * btrace.c (_initialize_btrace): Add declaration.
9718 * charset.c (_initialize_charset): Add declaration.
9719 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9720 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9721 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9722 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9723 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9724 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9725 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9726 * coffread.c (_initialize_coffread): Add declaration.
9727 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9728 * compile/compile.c (_initialize_compile): Add declaration.
9729 * complaints.c (_initialize_complaints): Add declaration.
9730 * completer.c (_initialize_completer): Add declaration.
9731 * copying.c (_initialize_copying): Add declaration.
9732 * corefile.c (_initialize_core): Add declaration.
9733 * corelow.c (_initialize_corelow): Add declaration.
9734 * cp-abi.c (_initialize_cp_abi): Add declaration.
9735 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9736 * cp-support.c (_initialize_cp_support): Add declaration.
9737 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9738 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9739 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9740 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9741 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9742 * ctfread.c (_initialize_ctfread): Add declaration.
9743 * d-lang.c (_initialize_d_language): Add declaration.
9744 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9745 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9746 * dbxread.c (_initialize_dbxread): Add declaration.
9747 * dcache.c (_initialize_dcache): Add declaration.
9748 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9749 * disasm.c (_initialize_disasm): Add declaration.
9750 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9751 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9752 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9753 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9754 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9755 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9756 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9757 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9758 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9759 * elfread.c (_initialize_elfread): Add declaration.
9760 * exec.c (_initialize_exec): Add declaration.
9761 * extension.c (_initialize_extension): Add declaration.
9762 * f-lang.c (_initialize_f_language): Add declaration.
9763 * f-valprint.c (_initialize_f_valprint): Add declaration.
9764 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9765 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9766 * filesystem.c (_initialize_filesystem): Add declaration.
9767 * findcmd.c (_initialize_mem_search): Add declaration.
9768 * findvar.c (_initialize_findvar): Add declaration.
9769 * fork-child.c (_initialize_fork_child): Add declaration.
9770 * frame-base.c (_initialize_frame_base): Add declaration.
9771 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9772 * frame.c (_initialize_frame): Add declaration.
9773 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9774 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9775 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9776 * gcore.c (_initialize_gcore): Add declaration.
9777 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9778 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9779 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9780 * gdbarch.c (_initialize_gdbarch): Add declaration.
9781 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9782 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9783 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9784 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9785 * go-lang.c (_initialize_go_language): Add declaration.
9786 * go32-nat.c (_initialize_go32_nat): Add declaration.
9787 * guile/guile.c (_initialize_guile): Add declaration.
9788 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9789 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9790 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9791 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9792 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9793 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9794 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9795 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9796 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9797 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9798 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9799 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9800 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9801 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9802 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9803 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9804 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9805 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9806 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9807 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9808 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9809 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9810 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9811 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9812 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9813 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9814 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9815 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9816 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9817 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9818 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9819 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9820 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9821 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9822 * infcall.c (_initialize_infcall): Add declaration.
9823 * infcmd.c (_initialize_infcmd): Add declaration.
9824 * inflow.c (_initialize_inflow): Add declaration.
9825 * infrun.c (_initialize_infrun): Add declaration.
9826 * interps.c (_initialize_interpreter): Add declaration.
9827 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9828 * jit.c (_initialize_jit): Add declaration.
9829 * language.c (_initialize_language): Add declaration.
9830 * linux-fork.c (_initialize_linux_fork): Add declaration.
9831 * linux-nat.c (_initialize_linux_nat): Add declaration.
9832 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9833 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9834 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9835 * m2-lang.c (_initialize_m2_language): Add declaration.
9836 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9837 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9838 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9839 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9840 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9841 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9842 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9843 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9844 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9845 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9846 * machoread.c (_initialize_machoread): Add declaration.
9847 * macrocmd.c (_initialize_macrocmd): Add declaration.
9848 * macroscope.c (_initialize_macroscope): Add declaration.
9849 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9850 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9851 * maint.c (_initialize_maint_cmds): Add declaration.
9852 * mdebugread.c (_initialize_mdebugread): Add declaration.
9853 * memattr.c (_initialize_mem): Add declaration.
9854 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9855 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9856 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9857 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9858 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9859 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9860 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9861 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9862 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9863 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9864 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9865 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9866 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9867 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9868 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9869 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9870 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9871 * mipsread.c (_initialize_mipsread): Add declaration.
9872 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9873 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9874 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9875 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9876 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9877 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9878 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9879 * nto-procfs.c (_initialize_procfs): Add declaration.
9880 * objc-lang.c (_initialize_objc_language): Add declaration.
9881 * observable.c (_initialize_observer): Add declaration.
9882 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9883 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9884 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9885 * osabi.c (_initialize_gdb_osabi): Add declaration.
9886 * osdata.c (_initialize_osdata): Add declaration.
9887 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9888 * parse.c (_initialize_parse): Add declaration.
9889 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9890 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9891 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9892 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9893 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9894 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9895 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9896 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9897 * printcmd.c (_initialize_printcmd): Add declaration.
9898 * probe.c (_initialize_probe): Add declaration.
9899 * proc-api.c (_initialize_proc_api): Add declaration.
9900 * proc-events.c (_initialize_proc_events): Add declaration.
9901 * proc-service.c (_initialize_proc_service): Add declaration.
9902 * procfs.c (_initialize_procfs): Add declaration.
9903 * producer.c (_initialize_producer): Add declaration.
9904 * psymtab.c (_initialize_psymtab): Add declaration.
9905 * python/python.c (_initialize_python): Add declaration.
9906 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9907 * record-btrace.c (_initialize_record_btrace): Add declaration.
9908 * record-full.c (_initialize_record_full): Add declaration.
9909 * record.c (_initialize_record): Add declaration.
9910 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9911 * regcache.c (_initialize_regcache): Add declaration.
9912 * reggroups.c (_initialize_reggroup): Add declaration.
9913 * remote-notif.c (_initialize_notif): Add declaration.
9914 * remote-sim.c (_initialize_remote_sim): Add declaration.
9915 * remote.c (_initialize_remote): Add declaration.
9916 * reverse.c (_initialize_reverse): Add declaration.
9917 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9918 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9919 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9920 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9921 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9922 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9923 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9924 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9925 Add declaration.
9926 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9927 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9928 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9929 * rust-exp.y (_initialize_rust_exp): Add declaration.
9930 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9931 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9932 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9933 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9934 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9935 * score-tdep.c (_initialize_score_tdep): Add declaration.
9936 * ser-go32.c (_initialize_ser_dos): Add declaration.
9937 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9938 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9939 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9940 * ser-uds.c (_initialize_ser_socket): Add declaration.
9941 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9942 * serial.c (_initialize_serial): Add declaration.
9943 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9944 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9945 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9946 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9947 * skip.c (_initialize_step_skip): Add declaration.
9948 * sol-thread.c (_initialize_sol_thread): Add declaration.
9949 * solib-aix.c (_initialize_solib_aix): Add declaration.
9950 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9951 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9952 * solib-frv.c (_initialize_frv_solib): Add declaration.
9953 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9954 * solib-target.c (_initialize_solib_target): Add declaration.
9955 * solib.c (_initialize_solib): Add declaration.
9956 * source-cache.c (_initialize_source_cache): Add declaration.
9957 * source.c (_initialize_source): Add declaration.
9958 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9959 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9960 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9961 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9962 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9963 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9964 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9965 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9966 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9967 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9968 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9969 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9970 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9971 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9972 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9973 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9974 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9975 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9976 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9977 * stabsread.c (_initialize_stabsread): Add declaration.
9978 * stack.c (_initialize_stack): Add declaration.
9979 * stap-probe.c (_initialize_stap_probe): Add declaration.
9980 * std-regs.c (_initialize_frame_reg): Add declaration.
9981 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9982 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9983 * symfile.c (_initialize_symfile): Add declaration.
9984 * symmisc.c (_initialize_symmisc): Add declaration.
9985 * symtab.c (_initialize_symtab): Add declaration.
9986 * target.c (_initialize_target): Add declaration.
9987 * target-connection.c (_initialize_target_connection): Add
9988 declaration.
9989 * target-dcache.c (_initialize_target_dcache): Add declaration.
9990 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9991 * thread.c (_initialize_thread): Add declaration.
9992 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9993 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9994 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9995 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9996 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9997 * tracectf.c (_initialize_ctf): Add declaration.
9998 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9999 * tracefile.c (_initialize_tracefile): Add declaration.
10000 * tracepoint.c (_initialize_tracepoint): Add declaration.
10001 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10002 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10003 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10004 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10005 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10006 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10007 * tui/tui.c (_initialize_tui): Add declaration.
10008 * typeprint.c (_initialize_typeprint): Add declaration.
10009 * ui-style.c (_initialize_ui_style): Add declaration.
10010 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10011 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10012 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10013 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10014 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10015 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10016 * unittests/filtered_iterator-selftests.c
10017 (_initialize_filtered_iterator_selftests): Add declaration.
10018 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10019 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10020 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10021 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10022 * unittests/main-thread-selftests.c
10023 (_initialize_main_thread_selftests): Add declaration.
10024 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10025 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10026 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10027 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10028 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10029 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10030 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10031 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10032 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10033 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10034 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10035 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10036 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10037 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10038 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10039 declaration.
10040 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10041 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10042 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10043 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10044 * user-regs.c (_initialize_user_regs): Add declaration.
10045 * utils.c (_initialize_utils): Add declaration.
10046 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10047 * valops.c (_initialize_valops): Add declaration.
10048 * valprint.c (_initialize_valprint): Add declaration.
10049 * value.c (_initialize_values): Add declaration.
10050 * varobj.c (_initialize_varobj): Add declaration.
10051 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10052 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10053 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10054 * windows-nat.c (_initialize_windows_nat): Add declaration.
10055 (_initialize_check_for_gdb_ini): Add declaration.
10056 (_initialize_loadable): Add declaration.
10057 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10058 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10059 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10060 * xcoffread.c (_initialize_xcoffread): Add declaration.
10061 * xml-support.c (_initialize_xml_support): Add declaration.
10062 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10063 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10064 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10065 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10066
e2de1eec
SM
100672020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10068
10069 * regformats/regdat.sh: Generate declaration for init function.
10070
e0037b4c
SM
100712020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10072
10073 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10074 up.
10075 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10076 close_one_inferior>: New methods.
10077 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10078 pass down target to find_inferior_pid.
10079 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10080 Pass down target to find_inferior_ptid.
10081 (gdbsim_target::create_inferior): Pass down target to
10082 add_thread_silent.
10083 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10084 target down to find_inferior_ptid and switch_to_thread.
10085 (gdbsim_target::close): Update to call close_one_inferior.
10086 (struct resume_data): Remove.
10087 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10088 directly, rather than through a void pointer.
10089 (gdbsim_target::resume): Update to call resume_one_inferior.
10090
58920b5b
SM
100912020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10092
10093 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10094
4ec89149
PA
100952020-01-12 Pedro Alves <palves@redhat.com>
10096
10097 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10098 directly for the current inferior instead of
10099 discard_all_inferiors.
10100 (discard_all_inferiors): Delete.
10101
7c392d1d
TT
101022020-01-11 Tom Tromey <tom@tromey.com>
10103
10104 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10105 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10106 deprecated_safe_get_selected_frame.
10107
d9ebdab7
TBA
101082020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10109
10110 * inferior.c (print_inferior): Switch inferior before printing it.
10111
f3c469b9
PA
101122020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10113 Pedro Alves <palves@redhat.com>
10114
10115 * progspace-and-thread.c (switch_to_program_space_and_thread):
10116 Assert there's an inferior for PSPACE. Use
10117 switch_to_inferior_no_thread to switch the inferior too.
10118 * progspace.c (program_space::~program_space): Call
10119 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10120 (program_space::free_all_objfiles): Don't call clear_symtab_users
10121 here.
10122 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10123
65c574f6
PA
101242020-01-10 Pedro Alves <palves@redhat.com>
10125
10126 * NEWS: Mention multi-target debugging, "info connections", and
10127 "add-inferior -no-connection".
10128
2f4fcf00
PA
101292020-01-10 Pedro Alves <palves@redhat.com>
10130
10131 * infrun.c: Include "target-connection.h".
10132 (check_multi_target_resumption): New.
10133 (proceed): Call it.
10134 * target-connection.c (make_target_connection_string): Make
10135 extern.
10136 * target-connection.h (make_target_connection_string): Declare.
10137
121b3efd
PA
101382020-01-10 Pedro Alves <palves@redhat.com>
10139
10140 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10141 * inferior.c (uiout_field_connection): New function.
10142 (print_inferior): Add new "connection-id" column.
10143 (add_inferior_command): Show connection number/string of added
10144 inferior.
10145 * process-stratum-target.h
10146 (process_stratum_target::connection_string): New virtual method.
10147 (process_stratum_target::connection_number): New field.
10148 * remote.c (remote_target::connection_string): New override.
10149 * target-connection.c: New file.
10150 * target-connection.h: New file.
10151 * target.c (decref_target): Remove process_stratum targets from
10152 the connection list.
10153 (target_stack::push): Add process_stratum targets to the
10154 connection list.
10155
4f837581
PA
101562020-01-10 Pedro Alves <palves@redhat.com>
10157
10158 Revert:
10159 2016-04-12 Pedro Alves <palves@redhat.com>
10160 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10161 Remove references to name.
10162 * serial.h (struct serial) <name>: Delete.
10163
f4ec508e
PA
101642020-01-10 Pedro Alves <palves@redhat.com>
10165
10166 * gdbarch-selftests.c (register_to_value_test): Remove "target
10167 already pushed" check.
10168
5b6d1e4f
PA
101692020-01-10 Pedro Alves <palves@redhat.com>
10170 John Baldwin <jhb@FreeBSD.org>
10171
10172 * aarch64-linux-nat.c
10173 (aarch64_linux_nat_target::thread_architecture): Adjust.
10174 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10175 (task_command_1): Likewise.
10176 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10177 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10178 (aix_thread_target::store_registers)
10179 (aix_thread_target::thread_alive): Adjust.
10180 * amd64-fbsd-tdep.c: Include "inferior.h".
10181 (amd64fbsd_get_thread_local_address): Pass down target.
10182 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10183 thread's gdbarch instead of target_gdbarch.
10184 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10185 get_last_target_status.
10186 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10187 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10188 inferiors.
10189 (update_inserted_breakpoint_locations): Skip if inferiors with no
10190 execution.
10191 (update_global_location_list): When handling moribund locations,
10192 find representative inferior for location's pspace, and use thread
10193 count of its process_stratum target.
10194 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10195 * bsd-uthread.c (bsd_uthread_target::wait): Use
10196 as_process_stratum_target and adjust thread_change_ptid and
10197 add_thread calls.
10198 (bsd_uthread_target::update_thread_list): Use
10199 as_process_stratum_target and adjust find_thread_ptid,
10200 thread_change_ptid and add_thread calls.
10201 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10202 find_thread_ptid call.
10203 * corelow.c (add_to_thread_list): Adjust add_thread call.
10204 (core_target_open): Adjust add_thread_silent and thread_count
10205 calls.
10206 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10207 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10208 * event-top.c (async_disconnect): Pop targets from all inferiors.
10209 * exec.c (add_target_sections): Push exec target on all inferiors
10210 sharing the program space.
10211 (remove_target_sections): Remove the exec target from all
10212 inferiors sharing the program space.
10213 (exec_on_vfork): New.
10214 * exec.h (exec_on_vfork): Declare.
10215 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10216 Pass it down.
10217 (fbsd_nat_target::update_thread_list): Adjust.
10218 (fbsd_nat_target::resume): Adjust.
10219 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10220 down.
10221 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10222 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10223 get_thread_arch_regcache call.
10224 * fork-child.c (gdb_startup_inferior): Pass target down to
10225 startup_inferior and set_executing.
10226 * gdbthread.h (struct process_stratum_target): Forward declare.
10227 (add_thread, add_thread_silent, add_thread_with_info)
10228 (in_thread_list): Add process_stratum_target parameter.
10229 (find_thread_ptid(inferior*, ptid_t)): New overload.
10230 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10231 parameter.
10232 (all_threads()): Delete overload.
10233 (all_threads, all_non_exited_threads): Add process_stratum_target
10234 parameter.
10235 (all_threads_safe): Use brace initialization.
10236 (thread_count): Add process_stratum_target parameter.
10237 (set_resumed, set_running, set_stop_requested, set_executing)
10238 (threads_are_executing, finish_thread_state): Add
10239 process_stratum_target parameter.
10240 (switch_to_thread): Use is_current_thread.
10241 * i386-fbsd-tdep.c: Include "inferior.h".
10242 (i386fbsd_get_thread_local_address): Pass down target.
10243 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10244 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10245 have_inferiors check.
10246 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10247 (inf_ptrace_target::attach): Adjust.
10248 * infcall.c (run_inferior_call): Adjust.
10249 * infcmd.c (run_command_1): Pass target to
10250 scoped_finish_thread_state.
10251 (proceed_thread_callback): Skip inferiors with no execution.
10252 (continue_command): Rename 'all_threads' local to avoid hiding
10253 'all_threads' function. Adjust get_last_target_status call.
10254 (prepare_one_step): Adjust set_running call.
10255 (signal_command): Use user_visible_resume_target. Compare thread
10256 pointers instead of inferior_ptid.
10257 (info_program_command): Adjust to pass down target.
10258 (attach_command): Mark target's 'thread_executing' flag.
10259 (stop_current_target_threads_ns): New, factored out from ...
10260 (interrupt_target_1): ... this. Switch inferior before making
10261 target calls.
10262 * inferior-iter.h
10263 (struct all_inferiors_iterator, struct all_inferiors_range)
10264 (struct all_inferiors_safe_range)
10265 (struct all_non_exited_inferiors_range): Filter on
10266 process_stratum_target too. Remove explicit.
10267 * inferior.c (inferior::inferior): Push dummy target on target
10268 stack.
10269 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10270 Add process_stratum_target parameter, and pass it down.
10271 (have_live_inferiors): Adjust.
10272 (switch_to_inferior_and_push_target): New.
10273 (add_inferior_command, clone_inferior_command): Handle
10274 "-no-connection" parameter. Use
10275 switch_to_inferior_and_push_target.
10276 (_initialize_inferior): Mention "-no-connection" option in
10277 the help of "add-inferior" and "clone-inferior" commands.
10278 * inferior.h: Include "process-stratum-target.h".
10279 (interrupt_target_1): Use bool.
10280 (struct inferior) <push_target, unpush_target, target_is_pushed,
10281 find_target_beneath, top_target, process_target, target_at,
10282 m_stack>: New.
10283 (discard_all_inferiors): Delete.
10284 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10285 (all_inferiors, all_non_exited_inferiors): Add
10286 process_stratum_target parameter.
10287 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10288 (target_last_proc_target): New global.
10289 (follow_fork_inferior): Push target on new inferior. Pass target
10290 to add_thread_silent. Call exec_on_vfork. Handle target's
10291 reference count.
10292 (follow_fork): Adjust get_last_target_status call. Also consider
10293 target.
10294 (follow_exec): Push target on new inferior.
10295 (struct execution_control_state) <target>: New field.
10296 (user_visible_resume_target): New.
10297 (do_target_resume): Call target_async.
10298 (resume_1): Set target's threads_executing flag. Consider resume
10299 target.
10300 (commit_resume_all_targets): New.
10301 (proceed): Also consider resume target. Skip threads of inferiors
10302 with no execution. Commit resumtion in all targets.
10303 (start_remote): Pass current inferior to wait_for_inferior.
10304 (infrun_thread_stop_requested): Consider target as well. Pass
10305 thread_info pointer to clear_inline_frame_state instead of ptid.
10306 (infrun_thread_thread_exit): Consider target as well.
10307 (random_pending_event_thread): New inferior parameter. Use it.
10308 (do_target_wait): Rename to ...
10309 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10310 down.
10311 (threads_are_resumed_pending_p, do_target_wait): New.
10312 (prepare_for_detach): Adjust calls.
10313 (wait_for_inferior): New inferior parameter. Handle it. Use
10314 do_target_wait_1 instead of do_target_wait.
10315 (fetch_inferior_event): Adjust. Switch to representative
10316 inferior. Pass target down.
10317 (set_last_target_status): Add process_stratum_target parameter.
10318 Save target in global.
10319 (get_last_target_status): Add process_stratum_target parameter and
10320 handle it.
10321 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10322 (context_switch): Check inferior_ptid == null_ptid before calling
10323 inferior_thread().
10324 (get_inferior_stop_soon): Pass down target.
10325 (wait_one): Rename to ...
10326 (poll_one_curr_target): ... this.
10327 (struct wait_one_event): New.
10328 (wait_one): New.
10329 (stop_all_threads): Adjust.
10330 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10331 event's target.
10332 (switch_back_to_stepped_thread): Also consider target.
10333 (print_stop_event): Update.
10334 (normal_stop): Update. Also consider the resume target.
10335 * infrun.h (wait_for_inferior): Remove declaration.
10336 (user_visible_resume_target): New declaration.
10337 (get_last_target_status, set_last_target_status): New
10338 process_stratum_target parameter.
10339 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10340 process_stratum_target parameter, and use it.
10341 (clear_inline_frame_state (thread_info*)): New.
10342 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10343 process_stratum_target parameter.
10344 (clear_inline_frame_state (thread_info*)): Declare.
10345 * linux-fork.c (delete_checkpoint_command): Pass target down to
10346 find_thread_ptid.
10347 (checkpoint_command): Adjust.
10348 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10349 instead of just tweaking inferior_ptid.
10350 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10351 (exit_lwp): Pass target down to find_thread_ptid.
10352 (attach_proc_task_lwp_callback): Pass target down to
10353 add_thread/set_running/set_executing.
10354 (linux_nat_target::attach): Pass target down to
10355 thread_change_ptid.
10356 (get_detach_signal): Pass target down to find_thread_ptid.
10357 Consider last target status's target.
10358 (linux_resume_one_lwp_throw, resume_lwp)
10359 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10360 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10361 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10362 (linux_nat_target::async_wait_fd): New.
10363 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10364 target down.
10365 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10366 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10367 * linux-thread-db.c (struct thread_db_info::process_target): New
10368 field.
10369 (add_thread_db_info): Save target.
10370 (get_thread_db_info): New process_stratum_target parameter. Also
10371 match target.
10372 (delete_thread_db_info): New process_stratum_target parameter.
10373 Also match target.
10374 (thread_from_lwp): Adjust to pass down target.
10375 (thread_db_notice_clone): Pass down target.
10376 (check_thread_db_callback): Pass down target.
10377 (try_thread_db_load_1): Always push the thread_db target.
10378 (try_thread_db_load, record_thread): Pass target down.
10379 (thread_db_target::detach): Pass target down. Always unpush the
10380 thread_db target.
10381 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10382 target down. Always unpush the thread_db target.
10383 (find_new_threads_callback, thread_db_find_new_threads_2)
10384 (thread_db_target::update_thread_list): Pass target down.
10385 (thread_db_target::pid_to_str): Pass current inferior down.
10386 (thread_db_target::get_thread_local_address): Pass target down.
10387 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10388 target down.
10389 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10390 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10391 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10392 (procfs_init_inferior): Rename to ...
10393 (procfs_target::procfs_init_inferior): ... this and adjust.
10394 (procfs_target::create_inferior, procfs_notice_thread)
10395 (procfs_do_thread_registers): Adjust.
10396 * ppc-fbsd-tdep.c: Include "inferior.h".
10397 (ppcfbsd_get_thread_local_address): Pass down target.
10398 * proc-service.c (ps_xfer_memory): Switch current inferior and
10399 program space as well.
10400 (get_ps_regcache): Pass target down.
10401 * process-stratum-target.c
10402 (process_stratum_target::thread_address_space)
10403 (process_stratum_target::thread_architecture): Pass target down.
10404 * process-stratum-target.h
10405 (process_stratum_target::threads_executing): New field.
10406 (as_process_stratum_target): New.
10407 * ravenscar-thread.c
10408 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10409 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10410 down.
10411 * record-btrace.c (record_btrace_target::info_record): Adjust.
10412 (record_btrace_target::record_method)
10413 (record_btrace_target::record_is_replaying)
10414 (record_btrace_target::fetch_registers)
10415 (get_thread_current_frame_id, record_btrace_target::resume)
10416 (record_btrace_target::wait, record_btrace_target::stop): Pass
10417 target down.
10418 * record-full.c (record_full_wait_1): Switch to event thread.
10419 Pass target down.
10420 * regcache.c (regcache::regcache)
10421 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10422 process_stratum_target parameter and handle it.
10423 (current_thread_target): New global.
10424 (get_thread_regcache): Add process_stratum_target parameter and
10425 handle it. Switch inferior before calling target method.
10426 (get_thread_regcache): Pass target down.
10427 (get_thread_regcache_for_ptid): Pass target down.
10428 (registers_changed_ptid): Add process_stratum_target parameter and
10429 handle it.
10430 (registers_changed_thread, registers_changed): Pass target down.
10431 (test_get_thread_arch_aspace_regcache): New.
10432 (current_regcache_test): Define a couple local test_target_ops
10433 instances and use them for testing.
10434 (readwrite_regcache): Pass process_stratum_target parameter.
10435 (cooked_read_test, cooked_write_test): Pass mock_target down.
10436 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10437 (get_thread_arch_aspace_regcache): Add process_stratum_target
10438 parameter.
10439 (regcache::target): New method.
10440 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10441 (regcache::registers_changed_ptid): Add process_stratum_target
10442 parameter.
10443 (regcache::m_target): New field.
10444 (registers_changed_ptid): Add process_stratum_target parameter.
10445 * remote.c (remote_state::supports_vCont_probed): New field.
10446 (remote_target::async_wait_fd): New method.
10447 (remote_unpush_and_throw): Add remote_target parameter.
10448 (get_current_remote_target): Adjust.
10449 (remote_target::remote_add_inferior): Push target.
10450 (remote_target::remote_add_thread)
10451 (remote_target::remote_notice_new_inferior)
10452 (get_remote_thread_info): Pass target down.
10453 (remote_target::update_thread_list): Skip threads of inferiors
10454 bound to other targets. (remote_target::close): Don't discard
10455 inferiors. (remote_target::add_current_inferior_and_thread)
10456 (remote_target::process_initial_stop_replies)
10457 (remote_target::start_remote)
10458 (remote_target::remote_serial_quit_handler): Pass down target.
10459 (remote_target::remote_unpush_target): New remote_target
10460 parameter. Unpush the target from all inferiors.
10461 (remote_target::remote_unpush_and_throw): New remote_target
10462 parameter. Pass it down.
10463 (remote_target::open_1): Check whether the current inferior has
10464 execution instead of checking whether any inferior is live. Pass
10465 target down.
10466 (remote_target::remote_detach_1): Pass down target. Use
10467 remote_unpush_target.
10468 (extended_remote_target::attach): Pass down target.
10469 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10470 (remote_target::append_resumption): Pass down target.
10471 (remote_target::append_pending_thread_resumptions)
10472 (remote_target::remote_resume_with_hc, remote_target::resume)
10473 (remote_target::commit_resume): Pass down target.
10474 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10475 (remote_target::interrupt_query)
10476 (remote_target::remove_new_fork_children)
10477 (remote_target::check_pending_events_prevent_wildcard_vcont)
10478 (remote_target::remote_parse_stop_reply)
10479 (remote_target::process_stop_reply): Pass down target.
10480 (first_remote_resumed_thread): New remote_target parameter. Pass
10481 it down.
10482 (remote_target::wait_as): Pass down target.
10483 (unpush_and_perror): New remote_target parameter. Pass it down.
10484 (remote_target::readchar, remote_target::remote_serial_write)
10485 (remote_target::getpkt_or_notif_sane_1)
10486 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10487 down target.
10488 (remote_target::mourn_inferior): Pass down target. Use
10489 remote_unpush_target.
10490 (remote_target::core_of_thread)
10491 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10492 (remote_target::pid_to_exec_file)
10493 (remote_target::thread_handle_to_thread_info): Pass down target.
10494 (remote_target::async_wait_fd): New.
10495 * riscv-fbsd-tdep.c: Include "inferior.h".
10496 (riscv_fbsd_get_thread_local_address): Pass down target.
10497 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10498 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10499 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10500 Adjust.
10501 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10502 * solib-svr4.c (enable_break): Pass down target.
10503 * spu-multiarch.c (parse_spufs_run): Pass down target.
10504 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10505 * target-delegates.c: Regenerate.
10506 * target.c (g_target_stack): Delete.
10507 (current_top_target): Return the current inferior's top target.
10508 (target_has_execution_1): Refer to the passed-in inferior's top
10509 target.
10510 (target_supports_terminal_ours): Check whether the initial
10511 inferior was already created.
10512 (decref_target): New.
10513 (target_stack::push): Incref/decref the target.
10514 (push_target, push_target, unpush_target): Adjust.
10515 (target_stack::unpush): Defref target.
10516 (target_is_pushed): Return bool. Adjust to refer to the current
10517 inferior's target stack.
10518 (dispose_inferior): Delete, and inline parts ...
10519 (target_preopen): ... here. Only dispose of the current inferior.
10520 (target_detach): Hold strong target reference while detaching.
10521 Pass target down.
10522 (target_thread_name): Add assertion.
10523 (target_resume): Pass down target.
10524 (target_ops::beneath, find_target_at): Adjust to refer to the
10525 current inferior's target stack.
10526 (get_dummy_target): New.
10527 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10528 has a thread running.
10529 (initialize_targets): Rename to ...
10530 (_initialize_target): ... this.
10531 * target.h: Include "gdbsupport/refcounted-object.h".
10532 (struct target_ops): Inherit refcounted_object.
10533 (target_ops::shortname, target_ops::longname): Make const.
10534 (target_ops::async_wait_fd): New method.
10535 (decref_target): Declare.
10536 (struct target_ops_ref_policy): New.
10537 (target_ops_ref): New typedef.
10538 (get_dummy_target): Declare function.
10539 (target_is_pushed): Return bool.
10540 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10541 (all_matching_threads_iterator::all_matching_threads_iterator):
10542 Handle filter target.
10543 * thread-iter.h (struct all_matching_threads_iterator, struct
10544 all_matching_threads_range, class all_non_exited_threads_range):
10545 Filter by target too. Remove explicit.
10546 * thread.c (threads_executing): Delete.
10547 (inferior_thread): Pass down current inferior.
10548 (clear_thread_inferior_resources): Pass down thread pointer
10549 instead of ptid_t.
10550 (add_thread_silent, add_thread_with_info, add_thread): Add
10551 process_stratum_target parameter. Use it for thread and inferior
10552 searches.
10553 (is_current_thread): New.
10554 (thread_info::deletable): Use it.
10555 (find_thread_ptid, thread_count, in_thread_list)
10556 (thread_change_ptid, set_resumed, set_running): New
10557 process_stratum_target parameter. Pass it down.
10558 (set_executing): New process_stratum_target parameter. Pass it
10559 down. Adjust reference to 'threads_executing'.
10560 (threads_are_executing): New process_stratum_target parameter.
10561 Adjust reference to 'threads_executing'.
10562 (set_stop_requested, finish_thread_state): New
10563 process_stratum_target parameter. Pass it down.
10564 (switch_to_thread): Also match inferior.
10565 (switch_to_thread): New process_stratum_target parameter. Pass it
10566 down.
10567 (update_threads_executing): Reimplement.
10568 * top.c (quit_force): Pop targets from all inferior.
10569 (gdb_init): Don't call initialize_targets.
10570 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10571 Declare.
10572 (windows_add_thread, windows_delete_thread): Adjust.
10573 (get_windows_debug_event): Rename to ...
10574 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10575 * tracefile-tfile.c (tfile_target_open): Pass down target.
10576 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10577 Forward declare.
10578 (switch_to_thread): Add process_stratum_target parameter.
10579 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10580 parameter. Use it.
10581 (mi_on_resume): Pass target down.
10582 * nat/fork-inferior.c (startup_inferior): Add
10583 process_stratum_target parameter. Pass it down.
10584 * nat/fork-inferior.h (startup_inferior): Add
10585 process_stratum_target parameter.
10586 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10587
75c6c844
PA
105882020-01-10 Pedro Alves <palves@redhat.com>
10589
10590 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10591 directly. Instead find the first thread in the thread list and
10592 use switch_to_thread.
10593
78f2c40a
PA
105942020-01-10 Pedro Alves <palves@redhat.com>
10595
10596 * remote.c (remote_target::remote_add_inferior): Don't bind a
10597 process to the current inferior if the current inferior is already
10598 bound to a process.
10599
e7af6c70
TBA
106002020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10601 Pedro Alves <palves@redhat.com>
10602
10603 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10604 If no process is specified, return null_ptid instead of
10605 inferior_ptid.
10606 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10607 TARGET_WAITKIND_SIGNALLED with no pid.
10608
31ba933e
PA
106092020-01-10 Pedro Alves <palves@redhat.com>
10610
10611 * remote.c (first_remote_resumed_thread): New.
10612 (remote_target::wait_as): Use it as default event_ptid instead of
10613 inferior_ptid.
10614
735fc2ca
PA
106152020-01-10 Pedro Alves <palves@redhat.com>
10616
10617 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10618
c17e02e1
PA
106192020-01-10 Pedro Alves <palves@redhat.com>
10620
10621 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10622 not -1.
10623
ab1ddbcf
PA
106242020-01-10 Pedro Alves <palves@redhat.com>
10625
10626 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10627 ptid to get_last_target_status.
10628 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10629 ptid to get_last_target_status.
10630 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10631 get_last_target_status.
10632 (info_program_command): Don't pass a target_waitstatus to
10633 get_last_target_status.
10634 * infrun.c (init_wait_for_inferior): Use
10635 nullify_last_target_wait_ptid.
10636 (get_last_target_status): Handle nullptr arguments.
10637 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10638 (print_stop_event): Don't pass a ptid to get_last_target_status.
10639 (normal_stop): Don't pass a ptid to get_last_target_status.
10640 * infrun.h (get_last_target_status, set_last_target_status): Move
10641 comments here and update.
10642 (nullify_last_target_wait_ptid): Declare.
10643 * linux-fork.c (fork_load_infrun_state): Remove local extern
10644 declaration of nullify_last_target_wait_ptid.
10645 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10646 to get_last_target_status.
10647
f3f8ece4
PA
106482020-01-10 Pedro Alves <palves@redhat.com>
10649
10650 * gdbthread.h (scoped_restore_current_thread)
10651 <dont_restore, restore, m_dont_restore>: Declare.
10652 * thread.c (thread_alive): Add assertion. Return bool.
10653 (switch_to_thread_if_alive): New.
10654 (prune_threads): Switch inferior/thread.
10655 (print_thread_info_1): Switch thread before calling target methods.
10656 (scoped_restore_current_thread::restore): New, factored out from
10657 ...
10658 (scoped_restore_current_thread::~scoped_restore_current_thread):
10659 ... this.
10660 (scoped_restore_current_thread::scoped_restore_current_thread):
10661 Add assertion.
10662 (thread_apply_all_command, thread_select): Use
10663 switch_to_thread_if_alive.
10664 * infrun.c (proceed, restart_threads, handle_signal_stop)
10665 (switch_back_to_stepped_thread): Switch current thread before
10666 calling target methods.
10667
db2d40f7
PA
106682020-01-10 Pedro Alves <palves@redhat.com>
10669
10670 * inferior.c (switch_to_inferior_no_thread): New function,
10671 factored out from ...
10672 (inferior_command): ... here.
10673 * inferior.h (switch_to_inferior_no_thread): Declare.
10674 * mi/mi-main.c (run_one_inferior): Use
10675 switch_to_inferior_no_thread.
10676
bd420a2d
PA
106772020-01-10 Pedro Alves <palves@redhat.com>
10678
10679 * infcmd.c (kill_command): Remove dead code.
10680
ddf5db90
PA
106812020-01-10 Pedro Alves <palves@redhat.com>
10682
10683 * remote.c (remote_target::mourn_inferior): No longer check
10684 whether the target is running.
10685
5018ce90
PA
106862020-01-10 Pedro Alves <palves@redhat.com>
10687
10688 * corelow.c (core_target::has_execution): Change parameter type to
10689 inferior pointer.
10690 * inferior.c (number_of_live_inferiors): Use
10691 inferior::has_execution instead of target_has_execution_1.
10692 * inferior.h (inferior::has_execution): New.
10693 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10694 inferior::has_execution instead of target_has_execution_1.
10695 * process-stratum-target.c
10696 (process_stratum_target::has_execution): Change parameter type to
10697 inferior pointer. Check the inferior's PID instead of
10698 inferior_ptid.
10699 * process-stratum-target.h
10700 (process_stratum_target::has_execution): Change parameter type to
10701 inferior pointer.
10702 * record-full.c (record_full_core_target::has_execution): Change
10703 parameter type to inferior pointer.
10704 * target.c (target_has_execution_1): Change parameter type to
10705 inferior pointer.
10706 (target_has_execution_current): Adjust.
10707 * target.h (target_ops::has_execution): Change parameter type to
10708 inferior pointer.
10709 (target_has_execution_1): Change parameter type to inferior
10710 pointer. Change return type to bool.
10711 * tracefile.h (tracefile_target::has_execution): Change parameter
10712 type to inferior pointer.
10713
74375d18
PA
107142020-01-10 Pedro Alves <palves@redhat.com>
10715
10716 * exceptions.c (print_flush): Remove current_top_target() check.
10717
acdf84a6
PA
107182020-01-10 Pedro Alves <palves@redhat.com>
10719
10720 * remote.c (show_remote_exec_file): Show the current inferior's
10721 exec-file instead of the command variable's value.
10722
ec506636
PA
107232020-01-10 Pedro Alves <palves@redhat.com>
10724
10725 * record-full.c (record_full_resume_ptid): New global.
10726 (record_full_target::resume): Set it.
10727 (record_full_wait_1): Use record_full_resume_ptid instead of
10728 inferior_ptid.
10729
873657b9
PA
107302020-01-10 Pedro Alves <palves@redhat.com>
10731
10732 * gdbthread.h (scoped_restore_current_thread)
10733 <dont_restore, restore, m_dont_restore>: Declare.
10734 * thread.c (thread_alive): Add assertion. Return bool.
10735 (switch_to_thread_if_alive): New.
10736 (prune_threads): Switch inferior/thread.
10737 (print_thread_info_1): Switch thread before calling target methods.
10738 (scoped_restore_current_thread::restore): New, factored out from
10739 ...
10740 (scoped_restore_current_thread::~scoped_restore_current_thread):
10741 ... this.
10742 (scoped_restore_current_thread::scoped_restore_current_thread):
10743 Add assertion.
10744 (thread_apply_all_command, thread_select): Use
10745 switch_to_thread_if_alive.
10746
7f0ae84c
GB
107472020-01-10 George Barrett <bob@bob131.so>
10748
10749 * stap-probe.c (stap_modify_semaphore): Don't check for null
10750 semaphores.
10751 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10752 for null semaphores.
10753
f5a7c406
AB
107542020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10755
10756 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10757 all source windows, and maintain horizontal scroll status while
10758 doing so.
10759
9ae6bf64
TT
107602020-01-09 Tom Tromey <tom@tromey.com>
10761
10762 PR tui/18932:
10763 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10764 update_source_window, not print_source_lines.
10765
b2efe70c
AB
107662020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10767
10768 * tui/tui.c (tui_enable): Register tui hooks after calling
10769 tui_display_main.
10770
5f23a082
CB
107712020-01-09 Christian Biesinger <cbiesinger@google.com>
10772
10773 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10774
3061113b
SM
107752020-01-08 Simon Marchi <simon.marchi@efficios.com>
10776
10777 * thread.c (print_thread_info_1): Fix indentation.
10778
57d75002
CB
107792020-01-09 Christian Biesinger <cbiesinger@google.com>
10780
10781 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10782 unique_xmalloc_ptr outside the if to always free the demangled name.
10783
6a053cb1
TT
107842020-01-08 Tom Tromey <tromey@adacore.com>
10785
10786 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10787 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10788 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10789 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10790 Remove.
10791 (section_offsets): New typedef.
10792 * symtab.c (fixup_section, get_msymbol_address): Update.
10793 * symmisc.c (dump_msymbols): Update.
10794 * symfile.h (relative_addr_info_to_section_offsets)
10795 (symfile_map_offsets_to_segments): Update.
10796 * symfile.c (build_section_addr_info_from_objfile)
10797 (init_objfile_sect_indices): Update.
10798 (struct place_section_arg): Change type of "offsets".
10799 (place_section): Update.
10800 (relative_addr_info_to_section_offsets): Change type of
10801 "section_offsets". Remove "num_sections" parameter.
10802 (default_symfile_offsets, syms_from_objfile_1)
10803 (set_objfile_default_section_offset): Update.
10804 (reread_symbols): No need to preserve section offsets by hand.
10805 (symfile_map_offsets_to_segments): Change type of "offsets".
10806 * stap-probe.c (relocate_address): Update.
10807 * stabsread.h (process_one_symbol): Update.
10808 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10809 (solib_target_relocate_section_addresses): Update.
10810 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10811 Update.
10812 * solib-frv.c (frv_relocate_main_executable): Update.
10813 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10814 * solib-aix.c (solib_aix_get_section_offsets): Change return
10815 type.
10816 (solib_aix_solib_create_inferior_hook): Update.
10817 * remote.c (remote_target::get_offsets): Update.
10818 * psymtab.c (find_pc_sect_psymtab): Update.
10819 * psympriv.h (struct partial_symbol) <address, text_low,
10820 text_high>: Update.
10821 * objfiles.h (obj_section_offset): Update.
10822 (struct objfile) <section_offsets>: Change type.
10823 <num_sections>: Remove.
10824 (objfile_relocate): Update.
10825 * objfiles.c (entry_point_address_query): Update
10826 (relocate_one_symbol): Change type of "section_offsets".
10827 (objfile_relocate1, objfile_relocate1): Change type of
10828 "new_offsets".
10829 (objfile_rebase1): Update.
10830 * mipsread.c (mipscoff_symfile_read): Update.
10831 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10832 parameter.
10833 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10834 (parse_external, psymtab_to_symtab_1): Update.
10835 * machoread.c (macho_symfile_offsets): Update.
10836 * ia64-tdep.c (ia64_find_unwind_table): Update.
10837 * hppa-tdep.c (read_unwind_info): Update.
10838 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10839 * dwarf2read.c (create_addrmap_from_index)
10840 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10841 (process_psymtab_comp_unit_reader, add_partial_symbol)
10842 (add_partial_subprogram, process_full_comp_unit)
10843 (read_file_scope, read_func_scope, read_lexical_block_scope)
10844 (read_call_site_scope, dwarf2_rnglists_process)
10845 (dwarf2_ranges_process, dwarf2_ranges_read)
10846 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10847 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10848 Update.
10849 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10850 Update.
10851 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10852 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10853 (process_one_symbol): Change type of "section_offsets".
10854 * ctfread.c (get_objfile_text_range): Update.
10855 * coffread.c (coff_symtab_read, enter_linenos)
10856 (process_coff_symbol): Update.
10857 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10858 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10859
456e800a
TT
108602020-01-08 Tom Tromey <tromey@adacore.com>
10861
10862 * dwarf2read.c (parse_macro_definition): Use std::string.
10863 (parse_macro_definition): Likewise.
10864
6dfa2fc2
TT
108652020-01-08 Tom Tromey <tromey@adacore.com>
10866
10867 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10868 (ATTR_ALLOC_CHUNK): Remove.
10869
421d1616
TT
108702020-01-08 Tom Tromey <tromey@adacore.com>
10871
10872 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10873
43816ebc
TT
108742020-01-08 Tom Tromey <tromey@adacore.com>
10875
10876 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10877 (dwarf2_compute_name, open_dwo_file): Likewise.
10878 (process_enumeration_scope): Use std::vector.
10879 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10880 (partial_die_info::fixup, dwarf2_start_subfile)
10881 (guess_full_die_structure_name, dwarf2_name): Likewise.
10882 (determine_prefix): Update.
10883 (guess_full_die_structure_name): Make return type const.
10884 (partial_die_full_name): Return unique_xmalloc_ptr.
10885 (DW_FIELD_ALLOC_CHUNK): Remove.
10886
4212d509
TT
108872020-01-07 Tom Tromey <tromey@adacore.com>
10888
10889 PR build/24937:
10890 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10891
06a6207a
JT
108922020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10893
10894 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10895
153d79c4
AB
108962020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10897
10898 * stack.c (print_frame_info): Move disassemble_next_line code
10899 inside source_print block.
10900
66182876
EZ
109012020-01-06 Eli Zaretskii <eliz@gnu.org>
10902
10903 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10904 gdb/signals.h, as we are now using native signal symbols.
10905
cbfa8581
SV
109062020-01-06 Shahab Vahedi <shahab@synopsys.com>
10907
10908 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10909 overflow by an early check of content vs threshold.
aac66a4c 10910 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10911 Likewise.
10912
3f602821
EZ
109132020-01-06 Eli Zaretskii <eliz@gnu.org>
10914
10915 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10916
a08c904d
JT
109172020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10918
10919 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10920 export table if no section contains it's RVA.
10921
89a65580
EZ
109222020-01-06 Eli Zaretskii <eliz@gnu.org>
10923
10924 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10925
8b7fcda2
HD
109262020-01-06 Hannes Domani <ssbssa@yahoo.de>
10927
10928 * source.c (print_source_lines_base): Set last_line_listed.
10929
a61b4f69
SV
109302020-01-06 Shahab Vahedi <shahab@synopsys.com>
10931
10932 * tui/tui-disasm.c: Remove trailing spaces.
10933
559e7e50
EZ
109342020-01-06 Eli Zaretskii <eliz@gnu.org>
10935 Pedro Alves <palves@redhat.com>
10936
10937 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10938 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10939 (windows_gdb_signal_to_target): New function, uses the above
10940 enumeration to convert GDB internal signal codes to equivalent
10941 Windows codes.
10942 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10943 * windows-nat.c: Include "gdb_wait.h".
10944 (get_windows_debug_event): Extract the fatal exception from the
10945 exit status and convert to the equivalent Posix signal number.
10946 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10947 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10948 * gdbsupport/gdb_wait.c: New file, implements
10949 windows_status_to_termsig.
10950 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10951 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10952
f2302a34
AB
109532020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10954
10955 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10956 show_layout.
10957
6a5206eb
LM
109582020-01-05 Luis Machado <luis.machado@linaro.org>
10959
10960 * aarch64-linux-nat.c
10961 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10962 and bfd_mach_aarch64.
10963
6ec1d75e
PW
109642020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10965
10966 * ui-file.c (stdio_file::can_emit_style_escape)
10967 (tee_file::can_emit_style_escape): Ensure style is used also on
10968 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10969 to gdb_stdout.
10970 * main.c (set_gdb_data_directory): Use file style to output the
10971 warning that the given pathname is not a directory.
10972 * top.c (show_history_filename, gdb_safe_append_history)
10973 (show_gdb_datadir): Use file style.
10974
44f81a76
HD
109752020-01-03 Hannes Domani <ssbssa@yahoo.de>
10976
10977 * solib-target.c (struct lm_info_target):
10978 Change offsets to be a unique_xmalloc_ptr.
10979 (solib_target_relocate_section_addresses): Update.
10980
25057eb0
HD
109812020-01-03 Hannes Domani <ssbssa@yahoo.de>
10982
10983 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10984
6e2118f5
BE
109852020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10986
10987 * MAINTAINERS (Write After Approval): Add myself.
10988
8133c7dc
LM
109892020-01-02 Luis Machado <luis.machado@linaro.org>
10990
10991 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10992 Cell BE architecture.
10993 * target.h (struct target_ops) <thread_architecture>: Likewise.
10994
48189bec
HD
109952020-01-01 Hannes Domani <ssbssa@yahoo.de>
10996
10997 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10998
ead1063b
HD
109992020-01-01 Hannes Domani <ssbssa@yahoo.de>
11000
11001 * MAINTAINERS (Write After Approval): Add myself.
11002
e5d78223
JB
110032020-01-01 Joel Brobecker <brobecker@adacore.com>
11004
11005 * gdbarch.sh: Update copyright year range of generated files.
11006
b811d2c2
JB
110072020-01-01 Joel Brobecker <brobecker@adacore.com>
11008
11009 Update copyright year range in all GDB files.
11010
5f4def5c
JB
110112020-01-01 Joel Brobecker <brobecker@adacore.com>
11012
11013 * copyright.py: Convert to Python 3.
11014
51fd4002
JB
110152020-01-01 Joel Brobecker <brobecker@adacore.com>
11016
11017 * copyright.py: Adapt after move of gnulib directory from gdb
11018 directory to toplevel directory.
11019
5fb651f2
JB
110202020-01-01 Joel Brobecker <brobecker@adacore.com>
11021
11022 * copyright.py (main): Exit if run from the wrong directory.
11023
5dd8bf88
JB
110242020-01-01 Joel Brobecker <brobecker@adacore.com>
11025
11026 * top.c (print_gdb_version): Change copyright year to 2020.
11027
9f71dacb 110282020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11029
9f71dacb 11030 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11031
9f71dacb 11032For older changes see ChangeLog-2019.
c906108c
SS
11033\f
11034Local Variables:
11035mode: change-log
11036left-margin: 8
11037fill-column: 74
11038version-control: never
57da7796 11039coding: utf-8
c906108c 11040End: