gdb: add type::bounds / type::set_bounds
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c4dfcb36
SM
12020-07-12 Simon Marchi <simon.marchi@efficios.com>
2
3 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5 are used to set the range type's bounds to use set_bounds.
6
0a278aa7
PW
72020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8
9 * exec.c (_initialize_exec): Update exec-file-mismatch help.
10
cce20f10
PA
112020-07-10 Pedro Alves <pedro@palves.net>
12
13 * gdbthread.h (inferior_ref): Define.
14 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
15 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
16 * thread.c
17 (scoped_restore_current_thread::restore):
18 Adjust to gdb::ref_ptr.
19 (scoped_restore_current_thread::~scoped_restore_current_thread):
20 Remove manual decref handling.
21 (scoped_restore_current_thread::scoped_restore_current_thread):
22 Adjust to use
23 inferior_ref::new_reference/thread_info_ref::new_reference.
24 Incref the thread before calling get_frame_id instead of after.
25 Let TARGET_CLOSE_ERROR propagate.
26
6d7aa592
PA
272020-07-10 Pedro Alves <pedro@palves.net>
28
29 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
30 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
31 NOT_AVAILABLE_ERROR.
32 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
33 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
34
b3e3a4c1
SM
352020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
36 Pedro Alves <pedro@palves.net>
37
38 PR gdb/26199
39 * infrun.c (threads_are_resumed_pending_p): Delete.
40 (do_target_wait): Remove threads_are_executing and
41 threads_are_resumed_pending_p checks from the inferior_matches
42 lambda. Update comments.
43
d6cc5d98
PA
442020-07-10 Pedro Alves <pedro@palves.net>
45
46 PR gdb/26199
47 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
48 executing threads.
49
7d3badc6
PA
502020-07-10 Pedro Alves <pedro@palves.net>
51
52 PR gdb/26199
53 * infrun.c (handle_no_resumed): Handle multiple targets.
54
42bd97a6
PA
552020-07-10 Pedro Alves <pedro@palves.net>
56
57 PR gdb/26199
58 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
59 target_is_async_p.
60
43667cc6
PA
612020-07-10 Pedro Alves <pedro@palves.net>
62
63 PR gdb/26199
64 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
65 threads, not all threads.
66
96118d11
PA
672020-07-10 Pedro Alves <pedro@palves.net>
68
69 PR gdb/26199
70 * remote.c (remote_target::open_1): Pass remote target pointer as
71 data to create_async_event_handler.
72 (remote_async_inferior_event_handler): Mark async event handler
73 before returning if the remote target still has either pending
74 events or unacknowledged notifications.
75
54904d81
JB
762020-07-10 John Baldwin <jhb@FreeBSD.org>
77
78 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
79 declaration.
80 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
81 function.
82
f37e5866
JB
832020-07-09 John Baldwin <jhb@FreeBSD.org>
84
85 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
86 inferior_ptid.
87
fc238d4a
JB
882020-07-09 John Baldwin <jhb@FreeBSD.org>
89
90 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
91 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
92 AT_FREEBSD_PS_STRINGS.
93
6e2469ff
HD
942020-07-08 Hannes Domani <ssbssa@yahoo.de>
95
96 * auto-load.c (auto_load_objfile_script_1): Convert drive part
97 of debugfile path on Windows.
98
d1076c41
JB
992020-07-08 John Baldwin <jhb@FreeBSD.org>
100
101 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
102 argument to 'data'.
103
15f3b077
TT
1042020-07-08 Tom Tromey <tromey@adacore.com>
105
106 * ada-lang.c (ada_exception_message_1): Use read_memory.
107
9fc501fd
AB
1082020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
109
110 PR python/22748
111 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
112 special handling for inline frames.
113 * findvar.c (value_of_register_lazy): Skip inline frames when
114 creating lazy register values.
115 * frame.c (frame_id_computed_p): Delete definition.
116 * frame.h (frame_id_computed_p): Delete declaration.
117
64cb3757
AB
1182020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
119
120 * NEWS: Mention additions to Python API.
121 * python/py-arch.c (archpy_register_groups): New function.
122 (arch_object_methods): Add 'register_groups' method.
123 * python/py-registers.c (reggroup_iterator_object): New struct.
124 (reggroup_object): New struct.
125 (gdbpy_new_reggroup): New function.
126 (gdbpy_reggroup_to_string): New function.
127 (gdbpy_reggroup_name): New function.
128 (gdbpy_reggroup_iter): New function.
129 (gdbpy_reggroup_iter_next): New function.
130 (gdbpy_new_reggroup_iterator): New function
131 (gdbpy_initialize_registers): Register new types.
132 (reggroup_iterator_object_type): Define new Python type.
133 (gdbpy_reggroup_getset): New static global.
134 (reggroup_object_type): Define new Python type.
135 * python/python-internal.h
136
0f767f94
AB
1372020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
138
139 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
140 * python/py-arch.c (archpy_registers): New function.
141 (arch_object_methods): Add 'registers' method.
142 * python/py-registers.c: New file.
143 * python/python-internal.h
144 (gdbpy_new_register_descriptor_iterator): Declare.
145 (gdbpy_initialize_registers): Declare.
146 * python/python.c (do_start_initialization): Call
147 gdbpy_initialize_registers.
148 * NEWS: Mention additions to the Python API.
149
87dbc774
AB
1502020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
151
152 * NEWS: Mention new Python API method.
153 * python/py-unwind.c (pending_framepy_architecture): New function.
154 (pending_frame_object_methods): Add architecture method.
155
3bc98c0c
AB
1562020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
157
158 * gdbarch.c: Regenerate.
159 * gdbarch.h: Regenerate.
160 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
161 (gdbarch_data): Use internal_error for the case where
162 deprecated_set_gdbarch_data was originally needed.
163 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
164 and use passed in obstack.
165 (libunwind_frame_set_descr): Should no longer get back NULL from
166 gdbarch_data.
167 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
168 type.
169 * user-regs.c (user_regs_init): Update parameters, and use passed
170 in obstack.
171 (user_reg_add): Should no longer get back NULL from gdbarch_data.
172 (_initialize_user_regs): Register as a pre-init gdbarch data type.
173
d8cc8af6
TV
1742020-07-06 Tom de Vries <tdevries@suse.de>
175
176 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
177 End-Of-Sequence in lte_is_less_than.
178 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
179 "gdb: Don't reorder line table entries too much when sorting".
180
947f7597
TV
1812020-07-06 Tom de Vries <tdevries@suse.de>
182
183 PR tui/26205
184 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
185
1e7c1b22
TV
1862020-07-05 Tom de Vries <tdevries@suse.de>
187
188 PR build/26187
189 * inferior.h (struct infcall_suspend_state_deleter): If available, use
190 std::uncaught_exceptions instead of deprecated
191 std::uncaught_exception.
192
a36158ec
SM
1932020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
194
195 * macroexp.h (macro_stringify): Return
196 gdb::unique_xmalloc_ptr<char>.
197 * macroexp.c (macro_stringify): Likewise.
198 * macrotab.c (fixup_definition): Update.
199
14d960c8
SM
2002020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
201
202 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
203 (lex_one_token): Update.
204 * macroexp.c (struct macro_buffer) <release>: Return
205 gdb::unique_xmalloc_ptr<char>.
206 (macro_stringify): Update.
207 (macro_expand): Update.
208 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
209 * macroexp.h (macro_expand_next): Likewise.
210
211d5b1c
SM
2112020-07-02 Simon Marchi <simon.marchi@efficios.com>
212
213 * macroexp.h (macro_lookup_ftype): Remove.
214 (macro_expand, macro_expand_once, macro_expand_next): Remove
215 lookup function parameters, add scope parameter.
216 * macroexp.c (scan, substitute_args, expand, maybe_expand,
217 macro_expand, macro_expand_once, macro_expand_next): Likewise.
218 * macroscope.h (standard_macro_lookup): Change parameter type
219 to macro_scope.
220 * macroscope.c (standard_macro_lookup): Likewise.
221 * c-exp.y (lex_one_token): Update.
222 * macrocmd.c (macro_expand_command): Likewise.
223 (macro_expand_once_command): Likewise.
224
b1a35af2
SM
2252020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
226
227 * inf-loop.c (inferior_event_handler): Remove client_data param.
228 * inf-loop.h (inferior_event_handler): Likewise.
229 * infcmd.c (step_1): Adjust.
230 * infrun.c (proceed): Adjust.
231 (fetch_inferior_event): Remove client_data param.
232 (infrun_async_inferior_event_handler): Adjust.
233 * infrun.h (fetch_inferior_event): Remove `void *` param.
234 * linux-nat.c (handle_target_event): Adjust.
235 * record-btrace.c (record_btrace_handle_async_inferior_event):
236 Adjust.
237 * record-full.c (record_full_async_inferior_event_handler):
238 Adjust.
239 * remote.c (remote_async_inferior_event_handler): Adjust.
240
1cdf9e33
TT
2412020-07-01 Tom Tromey <tom@tromey.com>
242
243 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
244 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
245
32c1e210
TT
2462020-07-01 Tom Tromey <tom@tromey.com>
247
248 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
249 tui_gen_win_info.
250 (tui_win_info::make_window): Merge with
251 tui_gen_win_info::make_window.
252 (tui_win_info::make_visible): Move from tui_gen_win_info.
253 * tui/tui-win.c (tui_win_info::max_width): Move from
254 tui_gen_win_info.
255 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
256 type.
257 <window_factory>: Likewise.
258 * tui/tui-layout.c (tui_win_info::resize): Move from
259 tui_gen_win_info.
260 (make_standard_window): Change return type.
261 (get_locator_window, tui_get_window_by_name): Likewise.
262 (tui_layout_window::apply): Remove a cast.
263 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
264 (struct tui_win_info): Merge with tui_gen_win_info.
265 (struct tui_gen_win_info): Remove.
266
a30cb6da
TT
2672020-07-01 Tom Tromey <tom@tromey.com>
268
269 * tui/tui-stack.h (struct tui_locator_window): Derive from
270 tui_win_info.
271 <do_scroll_horizontal, do_scroll_vertical>: New methods.
272 <can_box>: New method.
273
1eb2161f
TT
2742020-07-01 Tom Tromey <tom@tromey.com>
275
276 * tui/tui-stack.h (struct tui_locator_window): Remove body.
277
7134f2eb
TT
2782020-07-01 Tom Tromey <tom@tromey.com>
279
280 * tui/tui-regs.c (tui_data_window::display_registers_from)
281 (tui_data_window::display_registers_from)
282 (tui_data_window::first_data_item_displayed)
283 (tui_data_window::delete_data_content_windows): Update.
284 (tui_data_window::refresh_window, tui_data_window::no_refresh):
285 Remove.
286 (tui_data_window::check_register_values): Update.
287 (tui_data_item_window::rerender): Add parameters. Update.
288 (tui_data_item_window::refresh_window): Remove.
289 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
290 virtual.
291 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
292 tui_gen_win_info.
293 <refresh_window, max_height, min_height>: Remove.
294 <rerender>: Add parameters.
295 <x, y, visible>: New members.
296 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
297 <m_item_width>: New member.
298
22b7b041
TT
2992020-07-01 Tom Tromey <tom@tromey.com>
300
301 * tui/tui-regs.c (tui_data_window::show_register_group)
302 (tui_data_window::check_register_values): Update.
303 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
304 from item_no.
305
c9753adb
TT
3062020-07-01 Tom Tromey <tom@tromey.com>
307
308 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
309 useless "if".
310
9ab26b4a
TT
3112020-07-01 Tom Tromey <tom@tromey.com>
312
313 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
314 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
315
e555083f
TT
3162020-07-01 Tom Tromey <tom@tromey.com>
317
318 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
319 * tui/tui-winsource.h (enum tui_line_or_address_kind)
320 (struct tui_line_or_address): Move from tui-data.h.
321 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
322 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
323 (tui_cmd_window, tui_source_window_base, tui_source_window)
324 (tui_disasm_window): Don't declare.
325 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
326 to tui-winsource.h.
327 (SINGLE_KEY): Move to tui-stack.c.
328
7a02bab7
TT
3292020-07-01 Tom Tromey <tom@tromey.com>
330
331 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
332 std::string.
333 * tui/tui-regs.c (class tab_expansion_file): New.
334 (tab_expansion_file::write): New method.
335 (tui_register_format): Change return type. Use
336 tab_expansion_file.
337 (tui_get_register, tui_data_window::display_registers_from)
338 (tui_data_item_window::rerender): Update.
339 * tui/tui-io.h (tui_expand_tabs): Don't declare.
340 * tui/tui-io.c (tui_expand_tabs): Remove.
341
ea68593b
TT
3422020-07-01 Tom Tromey <tom@tromey.com>
343
344 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
345
a8caed5d
FS
3462020-07-01 Fangrui Song <maskray@google.com>
347
348 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
349
9cdf9820
AKS
3502020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
351
352 * dwarf2/read.c (set_die_type): Removed conditions to restrict
353 forms for DW_AT_associated and DW_AT_allocated attributes,
354 which is already checked in function attr_to_dynamic_prop.
355
a1520ad8
TT
3562020-06-30 Tom Tromey <tromey@adacore.com>
357
358 * dwarf2/read.c (quirk_rust_enum): Correctly call
359 alloc_rust_variant for default-less enum.
360
5ac58899
TT
3612020-06-30 Tom Tromey <tromey@adacore.com>
362
363 PR build/26183:
364 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
365 gdb::to_string.
366
19b187a9
SM
3672020-06-29 Simon Marchi <simon.marchi@efficios.com>
368
369 * gdbarch.sh (displaced_step_copy_insn): Update doc.
370 * gdbarch.h: Re-generate.
371
cd4c4c07
TT
3722020-06-28 Tom Tromey <tom@tromey.com>
373
374 * command.h (cmd_types): Remove.
375 (cmd_type): Don't declare.
376 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
377 typedef.
378 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
379 * cli/cli-decode.c (cmd_type): Remove.
380
05779d57
PA
3812020-06-27 Pedro Alves <palves@redhat.com>
382
383 * fork-child.c (prefork_hook): Adjust.
384 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
385 Delete.
386 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
387 * inferior.c (inferior::set_tty, inferior::tty): New methods.
388 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
389 Remove declarations.
390 (struct inferior) <set_tty, tty>: New methods.
391 (struct inferior) <terminal>: Rename to ...
392 (struct inferior) <m_terminal>: ... this and make private.
393 * main.c (captured_main_1): Adjust.
394 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
395 (mi_cmd_inferior_tty_show): Adjust.
396 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
397 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
398
1776e3e5
NA
3992020-06-26 Nick Alcock <nick.alcock@oracle.com>
400
401 * configure.ac: Add --enable-libctf: handle --disable-static
402 properly.
403 * acinclude.m4: sinclude ../config/enable.m4.
404 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
405 (LIBCTF): Substitute in.
406 (CTF_DEPS): New, likewise.
407 (CLIBS): libctf needs symbols from libbfd: move earlier.
408 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
409 flags.
410 * ctfread.c: Surround in ENABLE_LIBCTF.
411 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
412 * configure: Regenerate.
413 * config.in: Likewise.
414
58373b80
SM
4152020-06-25 Simon Marchi <simon.marchi@efficios.com>
416
417 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
418
277474ee
SM
4192020-06-25 Simon Marchi <simon.marchi@efficios.com>
420
421 * inferior.h (struct inferior) <terminal>: Change type to
422 gdb::unique_xmalloc_ptr<char>.
423 * inferior.c (inferior::~inferior): Don't free inf->terminal.
424 * infcmd.c (set_inferior_io_terminal): Don't free terminal
425 field, adjust to unique pointer.
426 (get_inferior_io_terminal): Adjust to unique pointer.
427
6d74da72
AB
4282020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
429
430 * riscv-tdep.c (riscv_print_registers_info): Loop over all
431 registers, not just the known core set of registers.
432
2e52d038
AB
4332020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
434
435 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
436 fflags, frm, and fcsr registers.
437 (riscv_register_reggroup_p): Remove unknown CSRs from save and
438 restore groups.
439 (riscv_tdesc_unknown_reg): New function.
440 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
441 tdesc_use_registers.
442 * riscv-tdep.h (struct gdbarch_tdep): Add
443 unknown_csrs_first_regnum, unknown_csrs_count,
444 duplicate_fflags_regnum, duplicate_frm_regnum, and
445 duplicate_fcsr_regnum fields.
446
be64fd07
AB
4472020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
448
449 * target-descriptions.c (tdesc_use_registers): Add new parameter a
450 callback, use the callback (when not null) to help number unknown
451 registers.
452 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
453 (tdesc_use_registers): Add extra parameter to declaration.
454
3b9fce96
AB
4552020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
456
457 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
458 in the file.
459 (class riscv_pending_register_alias): Likewise.
460 (riscv_register_feature::register_info): Change 'required_p' field
461 to 'required', and change its type. Add 'check' member function.
462 (riscv_register_feature::register_info::check): Define new member
463 function.
464 (riscv_xreg_feature): Change initialisation of 'required' field.
465 (riscv_freg_feature): Likewise.
466 (riscv_virtual_feature): Likewise.
467 (riscv_csr_feature): Likewise.
468 (riscv_check_tdesc_feature): Take extra parameter, the csr
469 tdesc_feature, rewrite the function to use the new
470 riscv_register_feature::register_info::check function.
471 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
472
865bad26
AB
4732020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
474
475 * features/Makefile: Remove all references to the deleted files
476 below.
477 * features/riscv/32bit-csr.c: Deleted.
478 * features/riscv/32bit-csr.xml: Deleted.
479 * features/riscv/64bit-csr.c: Deleted.
480 * features/riscv/64bit-csr.xml: Deleted.
481 * features/riscv/rebuild-csr-xml.sh: Deleted.
482
ed69cbc8
AB
4832020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
484
485 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
486 whitespace error for declaration of names member variable.
487 (struct riscv_register_feature): Add new prefer_first_name member
488 variable, and fix whitespace error in declaration of registers.
489 (riscv_xreg_feature): Initialize prefer_first_name field.
490 (riscv_freg_feature): Likewise.
491 (riscv_virtual_feature): Likewise.
492 (riscv_csr_feature): Likewise.
493 (riscv_register_name): Expand on comments. Remove register name
494 modifications for CSR and virtual registers.
495
4445e8f5
AB
4962020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
497
498 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
499 errors.
500
767a879e
AB
5012020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
502
503 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
504 riscv-opc.h.
505 (class riscv_pending_register_alias): New class.
506 (riscv_check_tdesc_feature): Take vector of pending aliases and
507 populate it as appropriate.
508 (riscv_setup_register_aliases): Delete.
509 (riscv_gdbarch_init): Create vector of pending aliases and pass it
510 to riscv_check_tdesc_feature in all cases. Use the vector to
511 create the register aliases.
512
bb6e55f3
RO
5132020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
514
515 * sol2-tdep.c (sol2_static_transform_name): Remove.
516 (sol2_init_abi): Don't register it.
517 * gdbarch.sh (static_transform_name): Remove.
518 * gdbarch.c, gdbarch.h: Regenerate.
519
520 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
521 gdbarch_static_transform_name.
522 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
523 * stabsread.c (define_symbol) <'X'>: Remove.
524 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
525 handling.
526 <'V'>: Likewise.
527 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
528 <'S'>: Remove call to gdbarch_static_transform_name.
529
c6d36836
RO
5302020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
531
532 * procfs.c (procfs_pre_trace): New function.
533 (procfs_target::create_inferior): Pass it to fork_inferior.
534
a7e6196b
RO
5352020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
536
537 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
538 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
539 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
540 sol2-tdep.o, sparc-sol2-tdep.o.
541 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
542 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
543 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
544 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
545
d412e696
RO
5462020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
547
548 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
549 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
550 Call sol2_init_abi.
551 Remove calls to set_gdbarch_skip_solib_resolver,
552 set_gdbarch_core_pid_to_str.
553 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
554 (i386_sol2_static_transform_name): Remove.
555 (i386_sol2_init_abi): Call sol2_init_abi.
556 Remove calls to set_gdbarch_sofun_address_maybe_missing,
557 set_gdbarch_static_transform_name,
558 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
559 Use sol2_sigtramp_p.
560 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
561 (sol2_sigtramp_p): New function.
562 (sol2_static_transform_name): New function.
563 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
564 (sol2_init_abi): New function.
565 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
566 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
567 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
568 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
569 (sparc_sol2_static_transform_name): Remove.
570 (sparc32_sol2_init_abi): Call sol2_init_abi.
571 Remove calls to set_gdbarch_sofun_address_maybe_missing,
572 set_gdbarch_static_transform_name,
573 set_gdbarch_skip_solib_resolver,
574 set_gdbarch_core_pid_to_str.
575 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
576 (sparc_sol2_static_transform_name): Remove
577 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
578 call sol2_sigtramp_p.
579 (sparc64_sol2_init_abi): Call sol2_init_abi.
580 Remove calls to set_gdbarch_sofun_address_maybe_missing,
581 set_gdbarch_static_transform_name,
582 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
583
a8654e7d
PW
5842020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
585
586 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
587 * exec.c (validate_exec_file): If from_tty, set both
588 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
589 * symfile.c (symbol_file_add_with_addrs): if always_confirm
590 and from_tty, unconditionally ask a confirmation.
591
caa7fd04
AB
5922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
593
594 * target-descriptions.c (tdesc_architecture_name): Protect against
595 NULL pointer dereference.
596 (maint_print_xml_tdesc_cmd): New function.
597 (_initialize_target_descriptions): Register new 'maint print
598 xml-tdesc' command and give it the filename completer.
599 * NEWS: Mention new 'maint print xml-tdesc' command.
600
fbf42f4e
AB
6012020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
602
603 * target-descriptions.c (class tdesc_compatible_info): New class.
604 (struct target_desc): Change type of compatible vector.
605 (tdesc_compatible_p): Update for change in type of
606 target_desc::compatible.
607 (tdesc_compatible_info_list): New function.
608 (tdesc_compatible_info_arch_name): New function.
609 (tdesc_add_compatible): Update for change in type of
610 target_desc::compatible.
611 (print_c_tdesc::visit_pre): Likewise.
612
20821f4e
AB
6132020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
614
615 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
616 whitespace to underscore.
617 (maint_print_c_tdesc_cmd): Use fake filename for target
618 descriptions that came from the target.
619 (_initialize_target_descriptions): Add filename command completion
620 for 'maint print c-tdesc'.
621
1fb5ee62
SM
6222020-06-23 Simon Marchi <simon.marchi@efficios.com>
623
624 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
625 lines.
626
fc3ecb3e
SM
6272020-06-23 Simon Marchi <simon.marchi@efficios.com>
628
629 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
630 lines.
631 (dwarf2_find_location_expression): Likewise.
632 (call_site_parameter_matches): Likewise.
633 (dwarf2_compile_expr_to_ax): Likewise.
634 (disassemble_dwarf_expression): Likewise.
635 (loclist_describe_location): Likewise.
636
236ef034
PA
6372020-06-23 Pedro Alves <palves@redhat.com>
638
639 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
640 progspace-and-thread.h. Include scoped-mock-context.h instead.
641 (register_to_value_test): Use scoped_mock_context.
642 * regcache.c: Include "scoped-mock-context.h".
643 (cooked_read_test): Don't error out if a target is already pushed.
644 Use scoped_mock_context. Adjust.
645 * scoped-mock-context.h: New file.
646
39e7ecca
AB
6472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
648
649 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
650 initializer.
651 (ada_language::is_string_type_p): New member function.
652 * c-lang.c (c_language_data): Delete la_is_string_type_p
653 initializer.
654 (cplus_language_data): Likewise.
655 (asm_language_data): Likewise.
656 (minimal_language_data): Likewise.
657 * d-lang.c (d_language_data): Likewise.
658 * f-lang.c (f_is_string_type_p): Delete function, implementation
659 moved to f_language::is_string_type_p.
660 (f_language_data): Delete la_is_string_type_p initializer.
661 (f_language::is_string_type_p): New member function,
662 implementation from f_is_string_type_p.
663 * go-lang.c (go_is_string_type_p): Delete function, implementation
664 moved to go_language::is_string_type_p.
665 (go_language_data): Delete la_is_string_type_p initializer.
666 (go_language::is_string_type_p): New member function,
667 implementation from go_is_string_type_p.
668 * language.c (language_defn::is_string_type_p): Define new member
669 function.
670 (default_is_string_type_p): Make static, add comment copied from
671 header file.
672 (unknown_language_data): Delete la_is_string_type_p initializer.
673 (unknown_language::is_string_type_p): New member function.
674 (auto_language_data): Delete la_is_string_type_p initializer.
675 (auto_language::is_string_type_p): New member function.
676 * language.h (language_data): Delete la_is_string_type_p field.
677 (language_defn::is_string_type_p): Declare new function.
678 (default_is_string_type_p): Delete desclaration, move comment to
679 definition.
680 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
681 moved to m2_language::is_string_type_p.
682 (m2_language_data): Delete la_is_string_type_p initializer.
683 (m2_language::is_string_type_p): New member function,
684 implementation from m2_is_string_type_p.
685 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
686 initializer.
687 * opencl-lang.c (opencl_language_data): Likewise.
688 * p-lang.c (pascal_is_string_type_p): Delete function,
689 implementation moved to pascal_language::is_string_type_p.
690 (pascal_language_data): Delete la_is_string_type_p initializer.
691 (pascal_language::is_string_type_p): New member function,
692 implementation from pascal_is_string_type_p.
693 * rust-lang.c (rust_is_string_type_p): Delete function,
694 implementation moved to rust_language::is_string_type_p.
695 (rust_language_data): Delete la_is_string_type_p initializer.
696 (rust_language::is_string_type_p): New member function,
697 implementation from rust_is_string_type_p.
698 * valprint.c (val_print_scalar_or_string_type_p): Update call to
699 is_string_type_p.
700
4ffc13fb
AB
7012020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
702
703 * ada-lang.c (ada_language_data): Delete la_print_typedef
704 initializer.
705 (ada_language::print_typedef): New member function.
706 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
707 (cplus_language_data): Likewise.
708 (asm_language_data): Likewise.
709 (minimal_language_data): Likewise.
710 * d-lang.c (d_language_data): Likewise.
711 * f-lang.c (f_language_data): Likewise.
712 (f_language::print_typedef): New member function.
713 * go-lang.c (go_language_data): Delete la_print_typedef
714 initializer.
715 * language.c (language_defn::print_typedef): Define member
716 function.
717 (unknown_language_data): Delete la_print_typedef initializer.
718 (unknown_language::print_typedef): New member function.
719 (auto_language_data): Delete la_print_typedef initializer.
720 (auto_language::print_typedef): New member function.
721 * language.h (language_data): Delete la_print_typedef field.
722 (language_defn::print_typedef): Declare new member function.
723 (LA_PRINT_TYPEDEF): Update call to print_typedef.
724 (default_print_typedef): Delete declaration.
725 * m2-lang.c (m2_language_data): Delete la_print_typedef
726 initializer.
727 (m2_language::print_typedef): New member function.
728 * objc-lang.c (objc_language_data): Delete la_print_typedef
729 initializer.
730 * opencl-lang.c (opencl_language_data): Likewise.
731 * p-lang.c (pascal_language_data): Likewise.
732 (pascal_language::print_typedef): New member function.
733 * rust-lang.c (rust_print_typedef): Delete function,
734 implementation moved to rust_language::print_typedef.
735 (rust_language): Delete la_print_typedef initializer.
736 (rust_language::print_typedef): New member function,
737 implementation from rust_print_typedef.
738 * typeprint.c (default_print_typedef): Delete.
739
d711ee67
AB
7402020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
741
742 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
743 (ada_language::printstr): New member function.
744 * c-lang.c (c_language_data): Delete la_printstr initializer.
745 (cplus_language_data): Likewise.
746 (asm_language_data): Likewise.
747 (minimal_language_data): Likewise.
748 * d-lang.c (d_language_data): Likewise.
749 * f-lang.c (f_printstr): Rename to f_language::printstr.
750 (f_language_data): Delete la_printstr initializer.
751 (f_language::printstr): New member function, implementation from
752 f_printstr.
753 * go-lang.c (go_language_data): Delete la_printstr initializer.
754 * language.c (language_defn::printstr): Define new member
755 function.
756 (unk_lang_printstr): Delete.
757 (unknown_language_data): Delete la_printstr initializer.
758 (unknown_language::printstr): New member function.
759 (auto_language_data): Delete la_printstr initializer.
760 (auto_language::printstr): New member function.
761 * language.h (language_data): Delete la_printstr field.
762 (language_defn::printstr): Declare new member function.
763 (LA_PRINT_STRING): Update call to printstr.
764 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
765 (m2_language_data): Delete la_printstr initializer.
766 (m2_language::printstr): New member function, implementation from
767 m2_printstr.
768 * objc-lang.c (objc_language_data): Delete la_printstr
769 initializer.
770 * opencl-lang.c (opencl_language_data): Likewise.
771 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
772 (pascal_language_data): Delete la_printstr initializer.
773 (pascal_language::printstr): New member function, implementation
774 from pascal_printstr.
775 * p-lang.h (pascal_printstr): Delete declaration.
776 * rust-lang.c (rust_printstr): Update header comment.
777 (rust_language_data): Delete la_printstr initializer.
778 (rust_language::printstr): New member function.
779
52b50f2c
AB
7802020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
781
782 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
783 (ada_language::printchar): New member function.
784 * c-lang.c (c_language_data): Delete la_printchar initializer.
785 (cplus_language_data): Likewise.
786 (asm_language_data): Likewise.
787 (minimal_language_data): Likewise.
788 * d-lang.c (d_language_data): Likewise.
789 * f-lang.c (f_printchar): Rename to f_language::printchar.
790 (f_language_data): Delete la_printchar initializer.
791 (f_language::printchar): New member function, implementation from
792 f_printchar.
793 * go-lang.c (go_language_data): Delete la_printchar initializer.
794 * language.c (unk_lang_printchar): Delete.
795 (language_defn::printchar): Define new member function.
796 (unknown_language_data): Delete la_printchar initializer.
797 (unknown_language::printchar): New member function.
798 (auto_language_data): Delete la_printchar initializer.
799 (auto_language::printchar): New member function.
800 * language.h (language_data): Delete la_printchar field.
801 (language_defn::printchar): Declare new member function.
802 (LA_PRINT_CHAR): Update call to printchar.
803 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
804 (m2_language::printchar): New member function.
805 * objc-lang.c (objc_language_data): Delete la_printchar
806 initializer.
807 * opencl-lang.c (opencl_language_data): Likewise.
808 * p-lang.c (pascal_language_data): Delete la_printchar
809 initializer.
810 (pascal_language::printchar): New member function.
811 * rust-lang.c (rust_printchar): Rename to
812 rust_language::printchar.
813 (rust_language_data): Delete la_printchar initializer.
814 (rust_language::printchar): New member function, implementation
815 from rust_printchar.
816
ec8cec5b
AB
8172020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
818
819 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
820 (ada_language_data): Delete la_emitchar initializer.
821 (ada_language::emitchar): New member function, implementation from
822 emit_char.
823 * c-lang.c (c_language_data): Delete la_emitchar initializer.
824 (cplus_language_data): Likewise.
825 (asm_language_data): Likewise.
826 (minimal_language_data): Likewise.
827 * d-lang.c (d_language_data): Likewise.
828 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
829 (f_language_data): Delete la_emitchar initializer.
830 (f_language::emitchar): New member function, implementation from
831 f_emit_char.
832 * go-lang.c (go_language_data): Delete la_emitchar initializer.
833 * language.c (unk_lang_emit_char): Delete.
834 (language_defn::emitchar): New member function definition.
835 (unknown_language_data): Delete la_emitchar initializer.
836 (unknown_language::emitchar): New member function.
837 (auto_language_data): Delete la_emitchar initializer.
838 (auto_language::emitchar): New member function.
839 * language.h (language_data): Delete la_emitchar field.
840 (language_defn::emitchar): New member field declaration.
841 (LA_EMIT_CHAR): Update call to emitchar.
842 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
843 (m2_language_data): Delete la_emitchar initializer.
844 (m2_language::emitchar): New member function, implementation from
845 m2_emit_char.
846 * objc-lang.c (objc_language_data): Delete la_emitchar
847 initializer.
848 * opencl-lang.c (opencl_language_data): Likewise.
849 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
850 (pascal_language_data): Delete la_emitchar initializer.
851 (pascal_language::emitchar): New member function, implementation
852 from pascal_emit_char.
853 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
854 (rust_language_data): Delete la_emitchar initializer.
855 (rust_language::emitchar): New member function, implementation
856 from rust_emitchar.
857
1bf9c363
AB
8582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
859
860 * ada-lang.c (resolve): Rename to ada_language::post_parser.
861 (ada_language_data): Delete la_post_parser initializer.
862 (ada_language::post_parser): New member function.
863 * c-lang.c (c_language_data): Delete la_post_parser initializer.
864 (cplus_language_data): Likewise.
865 (asm_language_data): Likewise.
866 (minimal_language_data): Likewise.
867 * d-lang.c (d_language_data): Likewise.
868 * f-lang.c (f_language_data): Likewise.
869 * go-lang.c (go_language_data): Likewise.
870 * language.c (unknown_language_data): Likewise.
871 (auto_language_data): Likewise.
872 * language.h (language_data): Delete la_post_parser field.
873 (language_defn::post_parser): New member function.
874 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
875 * objc-lang.c (objc_language_data): Likewise.
876 * opencl-lang.c (opencl_language_data): Likewise.
877 * p-lang.c (pascal_language_data): Likewise.
878 * parse.c (parse_exp_in_context): Update call to post_parser.
879 (null_post_parser): Delete definition.
880 * parser-defs.h (null_post_parser): Delete declaration.
881 * rust-lang.c (rust_language_data): Delete la_post_parser
882 initializer.
883
87afa652
AB
8842020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
885
886 * ada-lang.c (parse): Rename to ada_language::parser.
887 (ada_language_data): Delete la_parser initializer.
888 (ada_language::parser): New member function, implementation from
889 parse.
890 * c-lang.c (c_language_data): Delete la_parser initializer.
891 (cplus_language_data): Likewise.
892 (asm_language_data): Likewise.
893 (minimal_language_data): Likewise.
894 * d-lang.c (d_language_data): Likewise.
895 (d_language::parser): New member function.
896 * f-lang.c (f_language_data): Delete la_parser initializer.
897 (f_language::parser): New member function.
898 * go-lang.c (go_language_data): Delete la_parser initializer.
899 (go_language::parser): New member function.
900 * language.c (unk_lang_parser): Delete.
901 (language_defn::parser): Define new member function.
902 (unknown_language_data): Delete la_parser initializer.
903 (unknown_language::parser): New member function.
904 (auto_language_data): Delete la_parser initializer.
905 (auto_language::parser): New member function.
906 * language.h (language_data): Delete la_parser field.
907 (language_defn::parser): Declare new member function.
908 * m2-lang.c (m2_language_data): Delete la_parser initializer.
909 (m2_language::parser): New member function.
910 * objc-lang.c (objc_language_data): Delete la_parser initializer.
911 * opencl-lang.c (opencl_language_data): Likewise.
912 * p-lang.c (pascal_language_data): Likewise.
913 (pascal_language::parser): New member function.
914 * parse.c (parse_exp_in_context): Update call to parser.
915 * rust-lang.c (rust_language_data): Delete la_parser initializer.
916 (rust_language::parser): New member function.
917
37825800
AB
9182020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
919
920 * top.c (print_gdb_configuration): Print --with-python-libdir
921 configuration value.
922
5b860c93
PW
9232020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
924
925 * NEWS: Mention change to the alias command.
926
cf00cd6f
PW
9272020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
928
929 * cli/cli-cmds.c (lookup_cmd_for_default_args)
930 (alias_command_completer)
931 (make_alias_options_def_group): New functions.
932 (alias_opts, alias_option_defs): New struct and array.
933 (alias_usage_error): Update usage.
934 (alias_command): Handles optional DEFAULT-ARGS... arguments.
935 Use option framework.
936 (_initialize_cli_cmds): Update alias command help.
937 Update aliases command help.
938 (show_user):
939 Add NULL for new default_args lookup_cmd argument.
940 (valid_command_p): Rename to validate_aliased_command.
941 Add NULL for new default_args lookup_cmd argument. Verify that the
942 aliased_command has no default args.
943 * cli/cli-decode.c (help_cmd): Show aliases definitions.
944 (lookup_cmd_1, lookup_cmd): New argument default_args.
945 (add_alias_cmd):
946 Add NULL for new default_args lookup_cmd argument.
947 (print_help_for_command): Show default args under the layout
948 alias some_alias = some_aliased_cmd some_alias_default_arg.
949 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
950 xfree default_args in destructor.
951 * cli/cli-script.c (process_next_line, do_define_command):
952 Add NULL for new default_args lookup_cmd argument.
953 * command.h: Declare new default_args argument in lookup_cmd
954 and lookup_cmd_1.
955 * completer.c (complete_line_internal_1):
956 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
957 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
958 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
959 Likewise.
960 * infcmd.c (_initialize_infcmd): Likewise.
961 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
962 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
963 * python/py-param.c (add_setshow_generic): Likewise.
964 * remote.c (_initialize_remote): Likewise.
965 * top.c (execute_command): Prepend default_args if command has some.
966 (set_verbose):
967 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
968 * tracepoint.c (validate_actionline, encode_actions_1):
969 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
970
bd920864
TBA
9712020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
972
973 * jit.c (jit_read_descriptor): Use bool as the return type.
974 (jit_breakpoint_re_set_internal): Use bool as the return type.
975 Invert the return value logic; return true if the jit breakpoint
976 has been successfully initialized.
977 (jit_inferior_init): Update the call to
978 jit_breakpoint_re_set_internal.
979
f8098322
PA
9802020-06-22 Pedro Alves <palves@redhat.com>
981
982 PR gdb/25939
983 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
984 Use the current inferior instead. Don't return
985 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
986 wait again.
987 * sol-thread.c (sol_thread_target::wait): Don't reference
988 inferior_ptid.
989 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
990 (sol_update_thread_list_callback): Use the current inferior's pid
991 instead of inferior_ptid.
992
196535a6
RO
9932020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
994
995 * procfs.c: Cleanup many comments.
996
997 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
998 (AFTER_WATCHFLAG): Replace by value.
999
1000 (MAIN_PROC_NAME_FORMAT): Inline ...
1001 (create_procinfo): ... here.
1002
1003 (procfs_debug_inferior): Remove SYS_exec handling.
1004 (syscall_is_exec): Likewise.
1005 (procfs_set_exec_trap): Likewise.
1006
1007 (syscall_is_lwp_exit): Inline in callers.
1008 (syscall_is_exit): Likewise.
1009 (syscall_is_exec): Likewise.
1010 (syscall_is_lwp_create): Likewise.
1011
1012 (invalidate_cache): Remove #if 0 code.
1013
1014 (make_signal_thread_runnable): Remove.
1015 (procfs_target::resume): Remove #if 0 code.
1016
cf6f3e86
RO
10172020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1018
1019 PR gdb/25939
1020 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1021 call ...
1022 (procfs_target::create_inferior): ... here.
1023
48e9cc84
PW
10242020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1025
1026 * exec.c (validate_exec_file): Ensure the build-id is up to
1027 date by calling reopen_exec_file (that checks file timestamp
1028 to decide to re-read the file).
1029
3922b302
PA
10302020-06-18 Pedro Alves <palves@redhat.com>
1031
1032 PR gdb/25412
1033 * gdbthread.h (delete_thread, delete_thread_silent)
1034 (find_thread_ptid): Update comments.
1035 * thread.c (current_thread_): New global.
1036 (is_current_thread): Move higher, and reimplement.
1037 (inferior_thread): Reimplement.
1038 (set_thread_exited): Use bool. Add assertions.
1039 (add_thread_silent): Simplify thread-reuse handling by always
1040 calling delete_thread.
1041 (delete_thread): Remove intro comment.
1042 (find_thread_ptid): Skip exited threads.
1043 (switch_to_thread_no_regs): Write to current_thread_.
1044 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1045 INFERIOR_PTID. Clear current_thread_.
1046
6dbdab44
PA
10472020-06-18 Pedro Alves <palves@redhat.com>
1048
1049 * aix-thread.c (pd_update): Use switch_to_thread.
1050
2da4b788
PA
10512020-06-18 Pedro Alves <palves@redhat.com>
1052
1053 * ravenscar-thread.c (ravenscar_thread_target): Update.
1054 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1055 (ravenscar_thread_target::add_active_thread): ... this. Don't
1056 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1057 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1058
50838d1b
PA
10592020-06-18 Pedro Alves <palves@redhat.com>
1060
1061 * nat/windows-nat.c (current_windows_thread): Remove.
1062 * nat/windows-nat.h (current_windows_thread): Remove.
1063 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1064 Adjust.
1065 (display_selectors): Adjust to fetch the current
1066 windows_thread_info based on inferior_ptid.
1067 (fake_create_process): No longer write to current_windows_thread.
1068 (windows_nat_target::get_windows_debug_event):
1069 Don't set inferior_ptid or current_windows_thread.
1070 (windows_nat_target::wait): Adjust to not rely on
1071 current_windows_thread.
1072 (do_initial_windows_stuff): Now a method of windows_nat_target.
1073 Switch to the last_ptid thread.
1074 (windows_nat_target::attach): Adjust.
1075 (windows_nat_target::detach): Use switch_to_no_thread instead of
1076 writing to inferior_ptid directly.
1077 (windows_nat_target::create_inferior): Adjust.
1078
31ce04e9
PA
10792020-06-18 Pedro Alves <palves@redhat.com>
1080
1081 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1082
1ee1a363
PA
10832020-06-18 Pedro Alves <palves@redhat.com>
1084
1085 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1086 after creating it, instead of writing to inferior_ptid. Don't
1087 write to inferior_ptid.
1088
6d350754
PA
10892020-06-18 Pedro Alves <palves@redhat.com>
1090
1091 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1092
5d971d48
PA
10932020-06-18 Pedro Alves <palves@redhat.com>
1094
1095 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1096 it, instead of writing to inferior_ptid.
1097
86e57d1b
PA
10982020-06-18 Pedro Alves <palves@redhat.com>
1099
1100 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1101 to inferior_ptid.
1102
f2e1c129
PA
11032020-06-18 Pedro Alves <palves@redhat.com>
1104
1105 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1106 instead of writing to inferior_ptid directly.
1107
60db1b85
PA
11082020-06-18 Pedro Alves <palves@redhat.com>
1109
1110 * corelow.c (core_target::close): Use switch_to_no_thread instead
1111 of writing to inferior_ptid directly.
1112 (add_to_thread_list, core_target_open): Use switch_to_thread
1113 instead of writing to inferior_ptid directly.
1114
fe7d6a8d
PA
11152020-06-18 Pedro Alves <palves@redhat.com>
1116
1117 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1118 inferior_ptid.
1119 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1120 inferior_ptid.
1121 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1122 inferior_ptid directly.
1123 (darwin_nat_target::init_thread_list): Switch to thread, instead
1124 of writing to inferior_ptid.
1125 (darwin_nat_target::attach): Don't write to inferior_ptid.
1126 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1127
975f8708
PA
11282020-06-18 Pedro Alves <palves@redhat.com>
1129
1130 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1131 thread.
1132 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1133 Instead use switch_to_thread.
1134 (gnu_nat_target::detach): Use switch_to_no_thread
1135 instead of writing to inferior_ptid directly. Used passed-in
1136 inferior instead of looking up the inferior by pid.
1137
1a204730
PA
11382020-06-18 Pedro Alves <palves@redhat.com>
1139
1140 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1141 inferior_ptid.
1142
ebe84f23
PA
11432020-06-18 Pedro Alves <palves@redhat.com>
1144
1145 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1146 inferior_ptid.
1147 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1148 thread.
1149 (nto_procfs_target::detach): Avoid referencing
1150 inferior_ptid. Use switch_to_no_thread instead of writing to
1151 inferior_ptid directly.
1152 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1153 instead of writing to inferior_ptid directly.
1154 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1155 to thread.
1156
191f02e5
PA
11572020-06-18 Pedro Alves <palves@redhat.com>
1158
1159 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1160 after creating it, instead of writing to inferior_ptid.
1161 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1162 to inferior_ptid directly.
1163 (gdbsim_target::wait): Don't write to inferior_ptid.
1164
0ac55310
PA
11652020-06-18 Pedro Alves <palves@redhat.com>
1166
1167 * remote.c (remote_target::remote_notice_new_inferior): Use
1168 switch_to_thread instead of writing to inferior_ptid directly.
1169 (remote_target::add_current_inferior_and_thread): Use
1170 switch_to_no_thread instead of writing to inferior_ptid directly.
1171 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1172 and switch_to_thread instead of using set_current_inferior or
1173 writing to inferior_ptid directly.
1174
5233f39b
PA
11752020-06-18 Pedro Alves <palves@redhat.com>
1176
1177 * tracectf.c (ctf_target_open): Switch to added thread instead of
1178 writing to inferior_ptid directly.
1179 (ctf_target::close): Use switch_to_no_thread instead of writing to
1180 inferior_ptid directly.
1181
087e161b
PA
11822020-06-18 Pedro Alves <palves@redhat.com>
1183
1184 * tracefile-tfile.c (tfile_target_open): Don't write to
1185 inferior_ptid directly, instead switch to added thread.
1186 (tfile_target::close): Use switch_to_no_thread instead of writing
1187 to inferior_ptid directly.
1188
7fb43e53
PA
11892020-06-18 Pedro Alves <palves@redhat.com>
1190
1191 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1192 (procfs_target::detach): Use switch_to_no_thread
1193 instead of writing to inferior_ptid directly.
1194 (do_attach): Change return type to void. Switch to the added
1195 thread.
1196 (procfs_target::create_inferior): Switch to the added thread.
1197 (procfs_do_thread_registers): Don't write to inferior_ptid.
1198
18493a00
PA
11992020-06-18 Pedro Alves <palves@redhat.com>
1200
1201 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1202 of writing to inferior_ptid.
1203 (scoped_restore_exited_inferior): Delete.
1204 (handle_vfork_child_exec_or_exit): Simplify using
1205 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1206 instead of writing to inferior_ptid.
1207 (THREAD_STOPPED_BY): Delete.
1208 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1209 (thread_stopped_by_hw_breakpoint): Delete.
1210 (save_waitstatus): Use
1211 scoped_restore_current_thread+switch_to_thread, and call
1212 target_stopped_by_watchpoint instead of
1213 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1214 instead of thread_stopped_by_sw_breakpoint, and
1215 target_stopped_by_hw_breakpoint instead of
1216 thread_stopped_by_hw_breakpoint.
1217 (handle_inferior_event)
1218 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1219 inferior_ptid directly, nor
1220 set_current_inferior/set_current_program_space. Use
1221 switch_to_thread / switch_to_inferior_no_thread instead.
1222
a0776b13
PA
12232020-06-18 Pedro Alves <palves@redhat.com>
1224
1225 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1226 instead of writing to inferior_ptid.
1227
6155c136
PA
12282020-06-18 Pedro Alves <palves@redhat.com>
1229
1230 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1231 added thread.
1232 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1233 to the added thread.
1234 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1235 instead of writing to inferior_ptid.
1236
c5316fc6
PA
12372020-06-18 Pedro Alves <palves@redhat.com>
1238
1239 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1240 (register_to_value_test): Mock a program_space too. Heap-allocate
1241 the address space. Don't write to inferior_ptid. Use
1242 switch_to_thread instead.
1243
8df01799
PA
12442020-06-18 Pedro Alves <palves@redhat.com>
1245
1246 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1247 Delete.
1248 (find_signalled_thread()): New, factored out from
1249 linux_make_corefile_notes and adjusted to handle exited threads.
1250 (linux_make_corefile_notes): Adjust to use the new
1251 find_signalled_thread.
1252
41792d68
PA
12532020-06-18 Pedro Alves <palves@redhat.com>
1254
1255 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1256 of saving/restoring inferior_ptid.
1257
612f258a
TT
12582020-06-17 Tom Tromey <tom@tromey.com>
1259
1260 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1261 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1262 declare.
1263 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1264
efb763a5
SM
12652020-06-15 Simon Marchi <simon.marchi@efficios.com>
1266
1267 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1268 of partial symtabs.
1269
2951f6c0
SM
12702020-06-17 Simon Marchi <simon.marchi@efficios.com>
1271
1272 * regformats/reg-arm.dat: Remove.
1273 * regformats/reg-bfin.dat: Remove.
1274 * regformats/reg-cris.dat: Remove.
1275 * regformats/reg-crisv32.dat: Remove.
1276 * regformats/reg-m32r.dat: Remove.
1277 * regformats/reg-tilegx.dat: Remove.
1278 * regformats/reg-tilegx32.dat: Remove.
1279
7d458ea5
SM
12802020-06-17 Simon Marchi <simon.marchi@efficios.com>
1281
1282 * features/Makefile (WHICH): Remove arm files.
1283 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1284 * regformats/arm/arm-with-neon.dat: Remove.
1285 * regformats/arm/arm-with-vfpv2.dat: Remove.
1286 * regformats/arm/arm-with-vfpv3.dat: Remove.
1287
3af96c0d
SM
12882020-06-17 Simon Marchi <simon.marchi@efficios.com>
1289
1290 * features/Makefile (XMLTOC): Remove rx.xml.
1291
b25e22fd
PA
12922020-06-17 Pedro Alves <palves@redhat.com>
1293
1294 * gdbthread.h (thread_control_state) <trap_expected> Update
1295 comments.
1296
a78a19b1
AB
12972020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1298
1299 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1300 ada_language::lookup_symbol_nonlocal.
1301 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1302 (ada_language::lookup_symbol_nonlocal): New member function,
1303 implementation from ada_lookup_symbol_nonlocal.
1304 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1305 initializer.
1306 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1307 initializer.
1308 (cplus_language::lookup_symbol_nonlocal): New member function.
1309 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1310 (minimal_language_data) Likewise.
1311 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1312 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1313 initializer.
1314 (d_language::lookup_symbol_nonlocal): New member function.
1315 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1316 initializer.
1317 (f_language::lookup_symbol_nonlocal): New member function.
1318 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1319 initializer.
1320 * language.c (unknown_language_data): Likewise.
1321 (auto_language_data): Likewise.
1322 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1323 field.
1324 (language_defn::lookup_symbol_nonlocal): New member function.
1325 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1326 initializer.
1327 * objc-lang.c (objc_language_data): Likewise.
1328 * opencl-lang.c (opencl_language_data): Likewise.
1329 * p-lang.c (pascal_language_data): Likewise.
1330 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1331 rust_language::lookup_symbol_nonlocal.
1332 (rust_language_data): Delete la_lookup_symbol_nonlocal
1333 initializer.
1334 (rust_language::lookup_symbol_nonlocal): New member function,
1335 implementation from rust_lookup_symbol_nonlocal.
1336 * symtab.c (lookup_symbol_aux): Update call to
1337 lookup_symbol_nonlocal.
1338 (basic_lookup_symbol_nonlocal): Rename to...
1339 (language_defn::lookup_symbol_nonlocal): ...this, and update
1340 header comment. Remove language_defn parameter, and replace with
1341 uses of `this'.
1342 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1343
ebe2334e
AB
13442020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1345
1346 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1347 initializer.
1348 (ada_language::value_print_inner): New member function.
1349 * c-lang.c (c_language_data): Delete la_value_print_inner
1350 initializer.
1351 (cplus_language_data): Likewise.
1352 (asm_language_data): Likewise.
1353 (minimal_language_data): Likewise.
1354 * d-lang.c (d_language_data): Likewise.
1355 (d_language::value_print_inner): New member function.
1356 * f-lang.c (f_language_data): Delete la_value_print_inner
1357 initializer.
1358 (f_language::value_print_inner): New member function.
1359 * f-lang.h (f_value_print_innner): Rename to...
1360 (f_value_print_inner): ...this (note spelling of 'inner').
1361 * f-valprint.c (f_value_print_innner): Rename to...
1362 (f_value_print_inner): ...this (note spelling of 'inner').
1363 * go-lang.c (go_language_data): Delete la_value_print_inner
1364 initializer.
1365 (go_language::value_print_inner): New member function.
1366 * language.c (language_defn::value_print_inner): Define new member
1367 function.
1368 (unk_lang_value_print_inner): Delete.
1369 (unknown_language_data): Delete la_value_print_inner initializer.
1370 (unknown_language::value_print_inner): New member function.
1371 (auto_language_data): Delete la_value_print_inner initializer.
1372 (auto_language::value_print_inner): New member function.
1373 * language.h (language_data): Delete la_value_print_inner field.
1374 (language_defn::value_print_inner): Delcare new member function.
1375 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1376 initializer.
1377 (m2_language::value_print_inner): New member function.
1378 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1379 initializer.
1380 * opencl-lang.c (opencl_language_data): Likewise.
1381 * p-lang.c (pascal_language_data): Likewise.
1382 (pascal_language::value_print_inner): New member function.
1383 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1384 initializer.
1385 (rust_language::value_print_inner): New member function.
1386 * valprint.c (do_val_print): Update call to value_print_inner.
1387
a1d1fa3e
AB
13882020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1389
1390 * ada-lang.c (ada_language_data): Delete la_value_print
1391 initializer.
1392 (ada_language::value_print): New member function.
1393 * c-lang.c (c_language_data): Delete la_value_print initializer.
1394 (cplus_language_data): Likewise.
1395 (asm_language_data): Likewise.
1396 (minimal_language_data): Likewise.
1397 * d-lang.c (d_language_data): Likewise.
1398 * f-lang.c (f_language_data): Likewise.
1399 * go-lang.c (go_language_data): Likewise.
1400 * language.c (unk_lang_value_print): Delete.
1401 (language_defn::value_print): Define new member function.
1402 (unknown_language_data): Delete la_value_print initializer.
1403 (unknown_language::value_print): New member function.
1404 (auto_language_data): Delete la_value_print initializer.
1405 (auto_language::value_print): New member function.
1406 * language.h (language_data): Delete la_value_print field.
1407 (language_defn::value_print): Declare new member function.
1408 (LA_VALUE_PRINT): Update call to value_print.
1409 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1410 * objc-lang.c (objc_language_data): Likewise.
1411 * opencl-lang.c (opencl_language_data): Likewise.
1412 * p-lang.c (pascal_language_data): Likewise.
1413 (pascal_language::value_print): New member function.
1414 * rust-lang.c (rust_language_data): Delete la_value_print
1415 initializer.
1416
f16a9f57
AB
14172020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1418
1419 * ada-lang.c (ada_watch_location_expression): Rename to
1420 ada_language::watch_location_expression.
1421 (ada_language_data): Delete la_watch_location_expression
1422 initializer.
1423 (ada_language::watch_location_expression): New member function,
1424 implementation from ada_watch_location_expression.
1425 * breakpoint.c (watch_command_1): Update call to
1426 watch_location_expression.
1427 * c-lang.c (c_watch_location_expression): Rename to
1428 language_defn::watch_location_expression.
1429 (c_language_data): Delete la_watch_location_expression
1430 initializer.
1431 (cplus_language_data): Likewise.
1432 (asm_language_data): Likewise.
1433 (minimal_language_data): Likewise.
1434 * c-lang.h (c_watch_location_expression): Delete declaration.
1435 * d-lang.c (d_language_data): Delete la_watch_location_expression
1436 initializer.
1437 * f-lang.c (f_language_data): Likewise.
1438 * go-lang.c (go_language_data): Likewise.
1439 * language.c (language_defn::watch_location_expression): Member
1440 function implementation from c_watch_location_expression.
1441 (unknown_language_data): Delete la_watch_location_expression
1442 initializer.
1443 (auto_language_data): Likewise.
1444 * language.h (language_data): Delete la_watch_location_expression
1445 field.
1446 (language_defn::watch_location_expression): Declare new member
1447 function.
1448 * m2-lang.c (m2_language_data): Delete
1449 la_watch_location_expression initializer.
1450 * objc-lang.c (objc_language_data): Likewise.
1451 * opencl-lang.c (opencl_language_data): Likewise.
1452 * p-lang.c (pascal_language_data): Likewise.
1453 * rust-lang.c (rust_watch_location_expression): Rename to
1454 rust_language::watch_location_expression.
1455 (rust_language_data): Delete la_watch_location_expression
1456 initializer.
1457 (rust_language::watch_location_expression): New member function,
1458 implementation from rust_watch_location_expression.
1459
7e56227d
AB
14602020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1461
1462 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1463 ada_language::collect_symbol_completion_matches.
1464 (ada_language_data): Delete la_collect_symbol_completion_matches
1465 initializer.
1466 (ada_language::collect_symbol_completion_matches): New member
1467 function, implementation from
1468 ada_collect_symbol_completion_matches.
1469 * c-lang.c (c_language_data): Delete
1470 la_collect_symbol_completion_matches initializer.
1471 (cplus_language_data): Likewise.
1472 (asm_language_data): Likewise.
1473 (minimal_language_data): Likewise.
1474 * d-lang.c (d_language_data): Likewise.
1475 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1476 f_language::collect_symbol_completion_matches.
1477 (f_language_data): Delete la_collect_symbol_completion_matches
1478 initializer.
1479 (f_language::collect_symbol_completion_matches) New member
1480 function, implementation from f_collect_symbol_completion_matches.
1481 * go-lang.c (go_language_data): Delete
1482 la_collect_symbol_completion_matches initializer.
1483 * language.c (unknown_language_data): Likewise.
1484 (auto_language_data): Likewise.
1485 * language.h (language_data): Delete
1486 la_collect_symbol_completion_matches field.
1487 (language_defn::collect_symbol_completion_matches): New member
1488 function.
1489 * m2-lang.c (m2_language_data): Delete
1490 la_collect_symbol_completion_matches initializer.
1491 * objc-lang.c (objc_language_data): Likewise.
1492 * opencl-lang.c (opencl_language_data): Likewise.
1493 * p-lang.c (pascal_language_data): Likewise.
1494 * rust-lang.c (rust_language_data): Likewise.
1495 * symtab.c (default_collect_symbol_completion_matches): Delete.
1496 (collect_symbol_completion_matches): Update call to
1497 collect_symbol_completion_matches.
1498 (collect_symbol_completion_matches_type): Likewise.
1499 * symtab.h (default_collect_symbol_completion_matches): Delete
1500 declaration.
1501
53fc67f8
AB
15022020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1503
1504 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1505 (ada_language_data): Delete la_word_break_characters initializer.
1506 (ada_language::word_break_characters): New member function.
1507 * c-lang.c (c_language_data): Delete la_word_break_characters
1508 initializer.
1509 (cplus_language_data): Likewise.
1510 (asm_language_data): Likewise.
1511 (minimal_language_data): Likewise.
1512 * completer.c: Update global comment.
1513 (advance_to_expression_complete_word_point): Update call to
1514 word_break_characters.
1515 (complete_files_symbols): Likewise.
1516 (complete_line_internal_1): Likewise.
1517 (default_completer_handle_brkchars): Likewise.
1518 (skip_quoted_chars): Likewise.
1519 * d-lang.c (d_language_data): Delete la_word_break_characters
1520 initializer.
1521 * f-lang.c (f_word_break_characters): Delete.
1522 (f_language_data): Delete la_word_break_characters initializer.
1523 (f_language::word_break_characters): New member function.
1524 * go-lang.c (go_language_data): Delete la_word_break_characters
1525 initializer.
1526 * language.c (unknown_language_data): Likewise.
1527 (auto_language_data): Likewise.
1528 * language.h (default_word_break_characters): Move declaration to
1529 earlier in the file.
1530 (language_data): Delete la_word_break_characters field.
1531 (language_defn::word_break_characters): New member function.
1532 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1533 initializer.
1534 * objc-lang.c (objc_language_data): Likewise.
1535 * opencl-lang.c (opencl_language_data): Likewise.
1536 * p-lang.c (pascal_language_data): Likewise.
1537 * rust-lang.c (rust_language_data): Likewise.
1538
c9debfb9
AB
15392020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1540
1541 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1542 (ada_language_data): Delete la_get_symbol_name_matcher
1543 initializer.
1544 (language_defn::get_symbol_name_matcher_inner): New member
1545 function.
1546 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1547 initializer.
1548 (cplus_language_data): Likewise.
1549 (cplus_language::get_symbol_name_matcher_inner): New member
1550 function.
1551 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1552 (minimal_language_data): Likewise.
1553 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1554 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1555 initializer.
1556 * dictionary.c (iter_match_first_hashed): Update call to
1557 get_symbol_name_matcher.
1558 (iter_match_next_hashed): Likewise.
1559 (iter_match_next_linear): Likewise.
1560 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1561 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1562 initializer.
1563 (f_language::get_symbol_name_matcher_inner): New member function.
1564 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1565 initializer.
1566 * language.c (default_symbol_name_matcher): Update header comment,
1567 make static.
1568 (language_defn::get_symbol_name_matcher): New definition.
1569 (language_defn::get_symbol_name_matcher_inner): Likewise.
1570 (get_symbol_name_matcher): Delete.
1571 (unknown_language_data): Delete la_get_symbol_name_matcher
1572 initializer.
1573 (auto_language_data): Likewise.
1574 * language.h (language_data): Delete la_get_symbol_name_matcher
1575 field.
1576 (language_defn::get_symbol_name_matcher): New member function.
1577 (language_defn::get_symbol_name_matcher_inner): Likewise.
1578 (default_symbol_name_matcher): Delete declaration.
1579 * linespec.c (find_methods): Update call to
1580 get_symbol_name_matcher.
1581 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1582 initializer.
1583 * minsyms.c (lookup_minimal_symbol): Update call to
1584 get_symbol_name_matcher.
1585 (iterate_over_minimal_symbols): Likewise.
1586 * objc-lang.c (objc_language_data): Delete
1587 la_get_symbol_name_matcher initializer.
1588 * opencl-lang.c (opencl_language_data): Likewise.
1589 * p-lang.c (pascal_language_data): Likewise.
1590 * psymtab.c (psymbol_name_matches): Update call to
1591 get_symbol_name_matcher.
1592 * rust-lang.c (rust_language_data): Delete
1593 la_get_symbol_name_matcher initializer.
1594 * symtab.c (symbol_matches_search_name): Update call to
1595 get_symbol_name_matcher.
1596 (compare_symbol_name): Likewise.
1597
9a49ad8c
AB
15982020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1599
1600 * ada-lang.c (ada_language_data): Delete la_compute_program
1601 initializer.
1602 * c-lang.c (c_language_data): Likewise.
1603 (c_language::compute_program): New member function.
1604 (cplus_language_data): Delete la_compute_program initializer.
1605 (cplus_language::compute_program): New member function.
1606 (asm_language_data): Delete la_compute_program initializer.
1607 (minimal_language_data): Likewise.
1608 * c-lang.h (c_compute_program): Update comment.
1609 (cplus_compute_program): Likewise.
1610 * compile/compile-c-support.c (c_compute_program): Likewise.
1611 (cplus_compute_program): Likewise.
1612 * compile/compile.c (compile_to_object): Update call to
1613 la_compute_program.
1614 * d-lang.c (d_language_data): Delete la_compute_program
1615 initializer.
1616 * f-lang.c (f_language_data): Likewise.
1617 * go-lang.c (go_language_data): Likewise.
1618 * language.c (unknown_language_data): Likewise.
1619 (auto_language_data): Likewise.
1620 * language.h (language_data): Delete la_compute_program field.
1621 (language_defn::compute_program): New member function.
1622 * m2-lang.c (m2_language_data): Delete la_compute_program
1623 initializer.
1624 * objc-lang.c (objc_language_data): Likewise.
1625 * opencl-lang.c (opencl_language_data): Likewise.
1626 * p-lang.c (pascal_language_data): Likewise.
1627 * rust-lang.c (rust_language_data): Likewise.
1628
eff93b4d
AB
16292020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1630
1631 * ada-lang.c (ada_language_data) Delete
1632 la_class_name_from_physname initializer.
1633 * c-lang.c (c_language_data): Likewise.
1634 (cplus_language_data): Likewise.
1635 (cplus_language::class_name_from_physname): New member function.
1636 (asm_language_data): Delete la_class_name_from_physname
1637 initializer.
1638 (minimal_language_data): Likewise.
1639 * d-lang.c (d_language_data): Likewise.
1640 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1641 method on language_defn class.
1642 (guess_full_die_structure_name): Likewise.
1643 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1644 initializer.
1645 * go-lang.c (go_language_data): Likewise.
1646 * language.c (language_class_name_from_physname): Delete.
1647 (unk_lang_class_name): Delete.
1648 (unknown_language_data): Delete la_class_name_from_physname
1649 initializer.
1650 (auto_language_data): Likewise.
1651 * language.h (language_data): Delete la_class_name_from_physname
1652 field.
1653 (language_defn::class_name_from_physname): New function.
1654 (language_class_name_from_physname): Delete declaration.
1655 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1656 initializer.
1657 * objc-lang.c (objc_language_data): Likewise.
1658 * opencl-lang.c (opencl_language_data): Likewise.
1659 * p-lang.c (pascal_language_data): Likewise.
1660 * rust-lang.c (rust_language_data): Likewise.
1661
de543742
TT
16622020-06-16 Tom Tromey <tom@tromey.com>
1663
1664 * tui/tui-data.h (STATUS_NAME): New macro.
1665 * tui/tui-layout.c (tui_remove_some_windows)
1666 (initialize_known_windows, tui_register_window)
1667 (tui_layout_split::remove_windows, initialize_layouts)
1668 (tui_new_layout_command): Don't use hard-coded window names.
1669
a350efd4
TT
16702020-06-16 Tom Tromey <tom@tromey.com>
1671
1672 PR tui/25348:
1673 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1674 tui_initialize_readline. Only run once. Call rl_initialize.
1675 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1676 tui_initialize_readline.
1677 * tui/tui-io.c (tui_setup_io): Call
1678 tui_ensure_readline_initialized.
1679 * tui/tui-interp.c (tui_interp::init): Update.
1680
39ec0490
TT
16812020-06-16 Tom Tromey <tom@tromey.com>
1682
1683 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1684 Also preserve the status window.
1685
d2d1ea20
TT
16862020-06-16 Tom Tromey <tom@tromey.com>
1687
1688 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1689 where m_window==nullptr.
1690
66920317
TT
16912020-06-15 Tom Tromey <tromey@adacore.com>
1692
1693 * windows-nat.c (windows_nat::handle_output_debug_string):
1694 Update.
1695 (windows_nat::handle_ms_vc_exception): Update.
1696 * target.h (target_read_string): Change API.
1697 * target.c (target_read_string): Change API.
1698 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1699 Update.
1700 * solib-frv.c (frv_current_sos): Update.
1701 * solib-dsbt.c (dsbt_current_sos): Update.
1702 * solib-darwin.c (darwin_current_sos): Update.
1703 * linux-thread-db.c (inferior_has_bug): Update.
1704 * expprint.c (print_subexp_standard): Update.
1705 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1706 (ada_exception_message_1): Update.
1707
a5d871dd
TT
17082020-06-15 Tom Tromey <tromey@adacore.com>
1709
1710 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1711
670e35fa
TT
17122020-06-15 Tom Tromey <tromey@adacore.com>
1713
1714 * valprint.c (read_string): Update comment.
1715 * target.c (MIN): Remove.
1716 (target_read_string): Rewrite.
1717
f5272a3b
TT
17182020-06-15 Tom Tromey <tromey@adacore.com>
1719
1720 * corefile.c (read_memory_string): Remove.
1721 * ada-valprint.c (ada_value_print_ptr): Update.
1722 * ada-lang.h (ada_tag_name): Change return type.
1723 * ada-lang.c (type_from_tag): Update.
1724 (ada_tag_name_from_tsd): Change return type. Use
1725 target_read_string.
1726 (ada_tag_name): Likewise.
1727 * gdbcore.h (read_memory_string): Don't declare.
1728
2c074f49
HD
17292020-06-14 Hannes Domani <ssbssa@yahoo.de>
1730
1731 * symtab.c (rbreak_command): Ignore Windows drive colon.
1732
6a17d503
SM
17332020-06-12 Simon Marchi <simon.marchi@efficios.com>
1734
1735 * NEWS: Mention removed GDBserver host support.
1736
453c733f
NC
17372020-06-12 Nelson Chu <nelson.chu@sifive.com>
1738
1739 * features/riscv/rebuild-csr-xml.sh: Updated.
1740
2b4e6a3f
TT
17412020-06-11 Tom Tromey <tom@tromey.com>
1742
1743 PR gdb/18318:
1744 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1745
4412332f
JG
17462020-06-09 Jonny Grant <jg@jguk.org>
17472020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1748
1749 * main.c (captured_main_1): Don't print new line after help.
1750 (print_gdb_help): add mailing list and IRC channel information
1751 to --help. Add new lines between items in the footer. Remove
1752 quotes around bug url.
1753
2f33032a
KS
17542020-06-11 Keith Seitz <keiths@redhat.com>
1755
1756 PR gdb/21356
1757 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1758 Resolve typedefs for type length calculations.
1759
7ab96794
TV
17602020-06-10 Tom de Vries <tdevries@suse.de>
1761
1762 PR ada/24713
1763 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1764 (write_psymbols): Enable .gdb_index for ada.
1765 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1766 ada.
1767
e5f3ece2
TV
17682020-06-10 Tom de Vries <tdevries@suse.de>
1769
1770 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1771 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1772 namei" instead of "const char *name" argument.
1773 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1774 dw2_symtab_iter_init.
1775
940da03e
SM
17762020-06-08 Simon Marchi <simon.marchi@efficios.com>
1777
1778 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1779 to use type::field and field::type instead.
1780
b6cdac4b
SM
17812020-06-08 Simon Marchi <simon.marchi@efficios.com>
1782
1783 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1784 to use field::type instead.
1785
5d14b6e5
SM
17862020-06-08 Simon Marchi <simon.marchi@efficios.com>
1787
1788 * gdbtypes.h (struct field) <type, set_type>: New methods.
1789 Rename `type` field to...
1790 <m_type>: ... this. Change references throughout to use type or
1791 set_type methods.
1792 (FIELD_TYPE): Use field::type. Change call sites that modify
1793 the field's type to use field::set_type instead.
1794
3d967001
SM
17952020-06-08 Simon Marchi <simon.marchi@efficios.com>
1796
1797 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1798 to use type::index_type instead.
1799
262abc0d
SM
18002020-06-08 Simon Marchi <simon.marchi@efficios.com>
1801
1802 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1803 methods.
1804 (TYPE_INDEX_TYPE): Use type::index_type.
1805 * gdbtypes.c (create_array_type_with_stride): Likewise.
1806
82836c92
TT
18072020-06-07 Tom Tromey <tom@tromey.com>
1808
1809 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1810 parameter.
1811 (generic_value_print): Update.
1812
940dace9
AB
18132020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1814
1815 Revert commit 982a38f60b0.
1816 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1817
982a38f6
AB
18182020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1819
1820 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1821 avoid use after free.
1822
82f06518
TV
18232020-06-05 Tom de Vries <tdevries@suse.de>
1824
1825 * NEWS: Fix typos.
1826
f8c41851
SM
18272020-06-04 Simon Marchi <simon.marchi@efficios.com>
1828
1829 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1830 the per_bfd object.
1831 (dwarf2_read_debug_names): Likewise.
1832 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1833 object when re-using a per_bfd object with an index.
1834
f9b5d5ea
TV
18352020-06-03 Tom de Vries <tdevries@suse.de>
1836
1837 PR symtab/26046
1838 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1839 children for C++.
1840 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1841 DW_TAG_subprogram.
1842
f6eee2d0
AB
18432020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1844
1845 * ada-lang.c (ada_language_data): Delete skip_trampoline
1846 initializer.
1847 * c-lang.c (c_language_data): Likewise.
1848 (cplus_language_data): Likewise.
1849 (cplus_language::skip_trampoline): New member function.
1850 (asm_language_data): Delete skip_trampoline initializer.
1851 (minimal_language_data): Likewise.
1852 * d-lang.c (d_language_data): Likewise.
1853 * f-lang.c (f_language_data): Likewise.
1854 * go-lang.c (go_language_data): Likewise.
1855 * language.c (unk_lang_trampoline): Delete function.
1856 (skip_language_trampoline): Update.
1857 (unknown_language_data): Delete skip_trampoline initializer.
1858 (auto_language_data): Likewise.
1859 * language.h (language_data): Delete skip_trampoline field.
1860 (language_defn::skip_trampoline): New function.
1861 * m2-lang.c (m2_language_data): Delete skip_trampoline
1862 initializer.
1863 * objc-lang.c (objc_skip_trampoline): Delete function, move
1864 implementation to objc_language::skip_trampoline.
1865 (objc_language_data): Delete skip_trampoline initializer.
1866 (objc_language::skip_trampoline): New member function with
1867 implementation from objc_skip_trampoline.
1868 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1869 initializer.
1870 * p-lang.c (pascal_language_data): Likewise.
1871 * rust-lang.c (rust_language_data): Likewise.
1872
0a50df5d
AB
18732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1874
1875 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1876 (ada_language::demangle): New member function.
1877 * c-lang.c (c_language_data): Delete la_demangle initializer.
1878 (cplus_language_data): Delete la_demangle initializer.
1879 (cplus_language::demangle): New member function.
1880 (asm_language_data): Delete la_demangle initializer.
1881 (minimal_language_data): Delete la_demangle initializer.
1882 * d-lang.c (d_language_data): Delete la_demangle initializer.
1883 (d_language::demangle): New member function.
1884 * f-lang.c (f_language_data): Delete la_demangle initializer.
1885 (f_language::demangle): New member function.
1886 * go-lang.c (go_language_data): Delete la_demangle initializer.
1887 (go_language::demangle): New member function.
1888 * language.c (language_demangle): Update.
1889 (unk_lang_demangle): Delete.
1890 (unknown_language_data): Delete la_demangle initializer.
1891 (unknown_language::demangle): New member function.
1892 (auto_language_data): Delete la_demangle initializer.
1893 (auto_language::demangle): New member function.
1894 * language.h (language_data): Delete la_demangle field.
1895 (language_defn::demangle): New function.
1896 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1897 * objc-lang.c (objc_language_data): Delete la_demangle
1898 initializer.
1899 (objc_language::demangle): New member function.
1900 * opencl-lang.c (opencl_language_data): Delete la_demangle
1901 initializer.
1902 * p-lang.c (pascal_language_data): Likewise.
1903 * rust-lang.c (rust_language_data): Likewise.
1904 (rust_language::demangle): New member function.
1905
fbfb0a46
AB
19062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1907
1908 * ada-lang.c (ada_language_data): Delete la_print_type
1909 initializer.
1910 (ada_language::print_type): New member function.
1911 * c-lang.c (c_language_data): Delete la_print_type initializer.
1912 (c_language::print_type): New member function.
1913 (cplus_language_data): Delete la_print_type initializer.
1914 (cplus_language::print_type): New member function.
1915 (asm_language_data): Delete la_print_type initializer.
1916 (asm_language::print_type): New member function.
1917 (minimal_language_data): Delete la_print_type initializer.
1918 (minimal_language::print_type): New member function.
1919 * d-lang.c (d_language_data): Delete la_print_type initializer.
1920 (d_language::print_type): New member function.
1921 * f-lang.c (f_language_data): Delete la_print_type initializer.
1922 (f_language::print_type): New member function.
1923 * go-lang.c (go_language_data): Delete la_print_type initializer.
1924 (go_language::print_type): New member function.
1925 * language.c (unk_lang_print_type): Delete.
1926 (unknown_language_data): Delete la_print_type initializer.
1927 (unknown_language::print_type): New member function.
1928 (auto_language_data): Delete la_print_type initializer.
1929 (auto_language::print_type): New member function.
1930 * language.h (language_data): Delete la_print_type field.
1931 (language_defn::print_type): New function.
1932 (LA_PRINT_TYPE): Update.
1933 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1934 (m2_language::print_type): New member function.
1935 * objc-lang.c (objc_language_data): Delete la_print_type
1936 initializer.
1937 (objc_language::print_type): New member function.
1938 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1939 to opencl_language::print_type.
1940 (opencl_language_data): Delete la_print_type initializer.
1941 (opencl_language::print_type): New member function, implementation
1942 from opencl_print_type.
1943 * p-lang.c (pascal_language_data): Delete la_print_type
1944 initializer.
1945 (pascal_language::print_type): New member function.
1946 * rust-lang.c (rust_print_type): Delete, implementation moved to
1947 rust_language::print_type.
1948 (rust_language_data): Delete la_print_type initializer.
1949 (rust_language::print_type): New member function, implementation
1950 from rust_print_type.
1951
6f827019
AB
19522020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1953
1954 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1955 implementation moves to...
1956 (ada_language::sniff_from_mangled_name): ...here. Update return
1957 type.
1958 (ada_language_data): Delete la_sniff_from_mangled_name
1959 initializer.
1960 * c-lang.c (c_language_data): Likewise.
1961 (cplus_language_data): Likewise.
1962 (cplus_language::sniff_from_mangled_name): New member function,
1963 implementation taken from gdb_sniff_from_mangled_name.
1964 (asm_language_data): Delete la_sniff_from_mangled_name
1965 initializer.
1966 (minimal_language_data): Likewise.
1967 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1968 implementation moves to cplus_language::sniff_from_mangled_name.
1969 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1970 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1971 moves to...
1972 (d_language::sniff_from_mangled_name): ...here.
1973 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1974 * f-lang.c (f_language_data): Likewise.
1975 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1976 moves to...
1977 (go_language::sniff_from_mangled_name): ...here.
1978 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1979 * language.c (language_sniff_from_mangled_name): Delete.
1980 (unknown_language_data): Delete la_sniff_from_mangled_name
1981 initializer.
1982 (auto_language_data): Likewise.
1983 * language.h (language_data): Delete la_sniff_from_mangled_name
1984 field.
1985 (language_defn::sniff_from_mangled_name): New function.
1986 (language_sniff_from_mangled_name): Delete declaration.
1987 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1988 field.
1989 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1990 implementation moves to...
1991 (objc_language::sniff_from_mangled_name): ...here.
1992 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1993 * opencl-lang.c (opencl_language_data): Likewise.
1994 * p-lang.c (pascal_language_data): Likewise.
1995 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1996 implementation moves to...
1997 (rust_language::sniff_from_mangled_name): ...here.
1998 (rust_language_data): Delete la_sniff_from_mangled_name
1999 initializer.
2000 * symtab.c (symbol_find_demangled_name): Call
2001 sniff_from_mangled_name member function.
2002
fb8006fd
AB
20032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2004
2005 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2006 initializer.
2007 * c-lang.c (c_language_data): Likewise.
2008 (cplus_language_data): Likewise.
2009 (cplus_language::search_name_hash): New member function.
2010 (asm_language_data): Delete la_search_name_hash initializer.
2011 (minimal_language_data): Likewise.
2012 * d-lang.c (d_language_data): Likewise.
2013 * dictionary.c (default_search_name_hash): Rename to...
2014 (language_defn::search_name_hash): ...this.
2015 * f-lang.c (f_language_data): Likewise.
2016 (f_language::search_name_hash): New member function.
2017 * go-lang.c (go_language_data): Delete la_search_name_hash
2018 initializer.
2019 * language.c (unknown_language_data): Likewise.
2020 (auto_language_data): Likewise.
2021 * language.h (struct language_data): Delete la_search_name_hash
2022 field.
2023 (language_defn::search_name_hash): Declare new member function.
2024 (default_search_name_hash): Delete declaration.
2025 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2026 initializer.
2027 * objc-lang.c (objc_language_data): Likewise.
2028 * opencl-lang.c (opencl_language_data): Likewise.
2029 * p-lang.c (pascal_language_data): Likewise.
2030 * rust-lang.c (rust_language_data): Likewise.
2031 * symtab.c (search_name_hash): Update call.
2032
8e25bafe
AB
20332020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2034
2035 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2036 initializer.
2037 * c-lang.c (class compile_instance): Declare.
2038 (c_language_data): Delete la_get_compile_instance initializer.
2039 (c_language::get_compile_instance): New member function.
2040 (cplus_language_data): Delete la_get_compile_instance initializer.
2041 (cplus_language::get_compile_instance): New member function.
2042 (asm_language_data): Delete la_get_compile_instance initializer.
2043 (minimal_language_data): Likewise.
2044 * c-lang.h (c_get_compile_context): Update comment.
2045 (cplus_get_compile_context): Update comment.
2046 * compile/compile.c (compile_to_object): Update calls, don't rely
2047 on function pointer being NULL.
2048 * d-lang.c (d_language_data): Delete la_get_compile_instance
2049 initializer.
2050 * f-lang.c (f_language_data): Likewise.
2051 * go-lang.c (go_language_data): Likewise.
2052 * language.c (unknown_language_data): Likewise.
2053 (auto_language_data): Likewise.
2054 * language.h (language_data): Delete la_get_compile_instance field.
2055 (language_defn::get_compile_instance): New member function.
2056 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2057 initializer.
2058 * objc-lang.c (objc_language_data): Likewise.
2059 * opencl-lang.c (opencl_language_data): Likewise.
2060 * p-lang.c (pascal_language_data): Likewise.
2061 * rust-lang.c (rust_language_data): Likewise.
2062
4009ee92
AB
20632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2064
2065 * ada-lang.c (ada_add_all_symbols): Update comment.
2066 (ada_iterate_over_symbols): Delete, move implementation to...
2067 (ada_language::iterate_over_symbols): ...here, a new member
2068 function, rewrite to use range based for loop.
2069 (ada_language_data): Delete la_iterate_over_symbols initializer.
2070 * c-lang.c (c_language_data): Likewise.
2071 (cplus_language_data): Likewise.
2072 (asm_language_data): Likewise.
2073 (minimal_language_data): Likewise.
2074 * d-lang.c (d_language_data): Likewise.
2075 * f-lang.c (f_language_data): Likewise.
2076 * go-lang.c (go_language_data): Likewise.
2077 * language.c (unknown_language_data): Likewise.
2078 (auto_language_data): Likewise.
2079 * language.h (language_data): Delete la_iterate_over_symbols field.
2080 (language_defn::iterate_over_symbols): New member function.
2081 (LA_ITERATE_OVER_SYMBOLS): Update.
2082 * linespec.c (iterate_over_all_matching_symtabs): Update.
2083 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2084 initializer.
2085 * objc-lang.c (objc_language_data): Likewise.
2086 * opencl-lang.c (opencl_language_data): Likewise.
2087 * p-lang.c (pascal_language_data): Likewise.
2088 * rust-lang.c (rust_language_data): Likewise.
2089
54f4ca46
AB
20902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2091
2092 * ada-lang.c (ada_language_data): Delete
2093 la_lookup_transparent_type initializer.
2094 * c-lang.c (c_language_data): Likewise.
2095 (cplus_language_data): Likewise.
2096 (cplus_language::lookup_transparent_type): New member function.
2097 (asm_language_data): Delete la_lookup_transparent_type
2098 initializer.
2099 (minimal_language_data): Likewise.
2100 * d-lang.c (d_language_data): Likewise.
2101 * f-lang.c (f_language_data): Likewise.
2102 * go-lang.c (go_language_data): Likewise.
2103 * language.c (unknown_language_data): Likewise.
2104 (auto_language_data): Likewise.
2105 * language.h (struct language_data): Delete
2106 la_lookup_transparent_type field.
2107 (language_defn::lookup_transparent_type): New member function.
2108 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2109 initializer.
2110 * objc-lang.c (objc_language_data): Likewise.
2111 * opencl-lang.c (opencl_language_data): Likewise.
2112 * p-lang.c (pascal_language_data): Likewise.
2113 * rust-lang.c (rust_language_data): Likewise.
2114 * symtab.c (symbol_matches_domain): Update call.
2115
1fb314aa
AB
21162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2117
2118 * ada-lang.c (ada_language_arch_info): Delete function, move
2119 implementation to...
2120 (ada_language::language_arch_info): ...here, a new member
2121 function.
2122 (ada_language_data): Delete la_language_arch_info.
2123 * c-lang.c (c_language_data): Likewise.
2124 (c_language::language_arch_info): New member function.
2125 (cplus_language_arch_info): Delete function, move
2126 implementation to...
2127 (cplus_language::language_arch_info): ...here, a new member
2128 function.
2129 (cplus_language_data): Delete la_language_arch_info.
2130 (asm_language_data): Likewise.
2131 (asm_language::language_arch_info): New member function.
2132 (minimal_language_data): Delete la_language_arch_info.
2133 (minimal_language::language_arch_info): New member function.
2134 * d-lang.c (d_language_arch_info): Delete function, move
2135 implementation to...
2136 (d_language::language_arch_info): ...here, a new member
2137 function.
2138 (d_language_data): Delete la_language_arch_info.
2139 * f-lang.c (f_language_arch_info): Delete function, move
2140 implementation to...
2141 (f_language::language_arch_info): ...here, a new member
2142 function.
2143 (f_language_data): Delete la_language_arch_info.
2144 * go-lang.c (go_language_arch_info): Delete function, move
2145 implementation to...
2146 (go_language::language_arch_info): ...here, a new member
2147 function.
2148 (go_language_data): Delete la_language_arch_info.
2149 * language.c (unknown_language_data): Likewise.
2150 (unknown_language::language_arch_info): New member function.
2151 (auto_language_data): Delete la_language_arch_info.
2152 (auto_language::language_arch_info): New member function.
2153 (language_gdbarch_post_init): Update call to
2154 la_language_arch_info.
2155 * language.h (language_data): Delete la_language_arch_info
2156 function pointer.
2157 (language_defn::language_arch_info): New function.
2158 * m2-lang.c (m2_language_arch_info): Delete function, move
2159 implementation to...
2160 (m2_language::language_arch_info): ...here, a new member
2161 function.
2162 (m2_language_data): Delete la_language_arch_info.
2163 * objc-lang.c (objc_language_arch_info): Delete function, move
2164 implementation to...
2165 (objc_language::language_arch_info): ...here, a new member
2166 function.
2167 (objc_language_data): Delete la_language_arch_info.
2168 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2169 implementation to...
2170 (opencl_language::language_arch_info): ...here, a new member
2171 function.
2172 (opencl_language_data): Delete la_language_arch_info.
2173 * p-lang.c (pascal_language_arch_info): Delete function, move
2174 implementation to...
2175 (pascal_language::language_arch_info): ...here, a new member
2176 function.
2177 (pascal_language_data): Delete la_language_arch_info.
2178 * rust-lang.c (rust_language_arch_info): Delete function, move
2179 implementation to...
2180 (rust_language::language_arch_info): ...here, a new member
2181 function.
2182 (rust_language_data): Delete la_language_arch_info.
2183
48448202
AB
21842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2185
2186 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2187 initializer.
2188 * c-lang.c (c_language_data): Likewise.
2189 (cplus_language_data): Likewise.
2190 (cplus_language::pass_by_reference_info): New method.
2191 (asm_language_data): Delete la_pass_by_reference initializer.
2192 (minimal_language_data): Likewise.
2193 * cp-abi.c (cp_pass_by_reference): Remove use of
2194 default_pass_by_reference.
2195 * d-lang.c (d_language_data): Likewise.
2196 * f-lang.c (f_language_data): Likewise.
2197 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2198 default_pass_by_reference.
2199 * go-lang.c (go_language_data): Likewise.
2200 * language.c (language_pass_by_reference): Update.
2201 (default_pass_by_reference): Delete.
2202 (unknown_language_data): Delete la_pass_by_reference
2203 initializer.
2204 (auto_language_data): Likewise.
2205 * language.h (struct language_data): Delete la_pass_by_reference
2206 field.
2207 (language_defn::pass_by_reference_info): New member function.
2208 (default_pass_by_reference): Delete declaration.
2209 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2210 initializer.
2211 * objc-lang.c (objc_language_data): Likewise.
2212 * opencl-lang.c (opencl_language_data): Likewise.
2213 * p-lang.c (pascal_language_data): Likewise.
2214 * rust-lang.c (rust_language_data): Likewise.
2215
15e5fd35
AB
22162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2217
2218 * ada-lang.c (ada_read_var_value): Delete function, move
2219 implementation to...
2220 (ada_language::read_var_value): ...here.
2221 (ada_language_data): Delete la_read_var_value initializer.
2222 * c-lang.c (c_language_data): Likewise.
2223 (cplus_language_data): Likewise.
2224 (minimal_language_data): Likewise.
2225 * d-lang.c (d_language_data): Likewise.
2226 * f-lang.c (f_language_data): Likewise.
2227 * findvar.c (default_read_var_value): Rename to...
2228 (language_defn::read_var_value): ...this.
2229 * findvar.c (read_var_value): Update header comment, and change to
2230 call member function instead of function pointer.
2231 * go-lang.c (go_language_data): Likewise.
2232 * language.c (unknown_language_data): Delete la_read_var_value
2233 initializer.
2234 (auto_language_data): Likewise.
2235 * language.h (struct language_data): Delete la_read_var_value
2236 field.
2237 (language_defn::read_var_value): New member function.
2238 (default_read_var_value): Delete declaration.
2239 * m2-lang.c (m2_language_data): Delete la_read_var_value
2240 initializer.
2241 * objc-lang.c (objc_language_data): Likewise.
2242 * opencl-lang.c (opencl_language_data): Likewise.
2243 * p-lang.c (pascal_language_data): Likewise.
2244 * rust-lang.c (rust_language_data): Likewise.
2245 * value.h (default_read_var_value): Delete declaration.
2246
5bd40f2a
AB
22472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2248
2249 * ada-lang.c (ada_print_array_index): Delete function, move
2250 implementation to...
2251 (ada_language::print_array_index): ...here.
2252 (ada_language_data): Delete la_print_array_index initializer.
2253 * c-lang.c (c_language_data): Likewise.
2254 (cplus_language_data): Likewise.
2255 (minimal_language_data): Likewise.
2256 * d-lang.c (d_language_data): Likewise.
2257 * f-lang.c (f_language_data): Likewise.
2258 * go-lang.c (go_language_data): Likewise.
2259 * language.c (default_print_array_index): Delete function, move
2260 implementation to...
2261 (language_defn::print_array_index): ...here.
2262 (unknown_language_data): Delete la_print_array_index initializer.
2263 (auto_language_data): Likewise.
2264 * language.h (struct language_data): Delete la_print_array_index
2265 field.
2266 (language_defn::print_array_index): New member function.
2267 (LA_PRINT_ARRAY_INDEX): Update.
2268 (default_print_array_index): Delete declaration.
2269 * m2-lang.c (m2_language_data): Delete la_print_array_index
2270 initializer.
2271 * objc-lang.c (objc_language_data): Likewise.
2272 * opencl-lang.c (opencl_language_data): Likewise.
2273 * p-lang.c (pascal_language_data): Likewise.
2274 * rust-lang.c (rust_language_data): Likewise.
2275
0874fd07
AB
22762020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2277
2278 * gdb/ada-lang.c (ada_language_defn): Convert to...
2279 (ada_language_data): ...this.
2280 (class ada_language): New class.
2281 (ada_language_defn): New static global.
2282 * gdb/c-lang.c (c_language_defn): Convert to...
2283 (c_language_data): ...this.
2284 (class c_language): New class.
2285 (c_language_defn): New static global.
2286 (cplus_language_defn): Convert to...
2287 (cplus_language_data): ...this.
2288 (class cplus_language): New class.
2289 (cplus_language_defn): New static global.
2290 (asm_language_defn): Convert to...
2291 (asm_language_data): ...this.
2292 (class asm_language): New class.
2293 (asm_language_defn): New static global.
2294 (minimal_language_defn): Convert to...
2295 (minimal_language_data): ...this.
2296 (class minimal_language): New class.
2297 (minimal_language_defn): New static global.
2298 * gdb/d-lang.c (d_language_defn): Convert to...
2299 (d_language_data): ...this.
2300 (class d_language): New class.
2301 (d_language_defn): New static global.
2302 * gdb/f-lang.c (f_language_defn): Convert to...
2303 (f_language_data): ...this.
2304 (class f_language): New class.
2305 (f_language_defn): New static global.
2306 * gdb/go-lang.c (go_language_defn): Convert to...
2307 (go_language_data): ...this.
2308 (class go_language): New class.
2309 (go_language_defn): New static global.
2310 * gdb/language.c (unknown_language_defn): Remove declaration.
2311 (current_language): Initialize to nullptr, real initialization is
2312 moved to _initialize_language.
2313 (languages): Delete global.
2314 (language_defn::languages): Define.
2315 (set_language_command): Use language_defn::languages.
2316 (set_language): Likewise.
2317 (range_error): Likewise.
2318 (language_enum): Likewise.
2319 (language_def): Likewise.
2320 (add_set_language_command): Use language_def::languages for the
2321 language list, and language_def to lookup language pointers.
2322 (skip_language_trampoline): Use language_defn::languages.
2323 (unknown_language_defn): Convert to...
2324 (unknown_language_data): ...this.
2325 (class unknown_language): New class.
2326 (unknown_language_defn): New static global.
2327 (auto_language_defn): Convert to...
2328 (auto_language_data): ...this.
2329 (class auto_language): New class.
2330 (auto_language_defn): New static global.
2331 (language_gdbarch_post_init): Use language_defn::languages.
2332 (_initialize_language): Initialize current_language.
2333 * gdb/language.h (struct language_defn): Rename to...
2334 (struct language_data): ...this.
2335 (struct language_defn): New.
2336 (auto_language_defn): Delete.
2337 (unknown_language_defn): Delete.
2338 (minimal_language_defn): Delete.
2339 (ada_language_defn): Delete.
2340 (asm_language_defn): Delete.
2341 (c_language_defn): Delete.
2342 (cplus_language_defn): Delete.
2343 (d_language_defn): Delete.
2344 (f_language_defn): Delete.
2345 (go_language_defn): Delete.
2346 (m2_language_defn): Delete.
2347 (objc_language_defn): Delete.
2348 (opencl_language_defn): Delete.
2349 (pascal_language_defn): Delete.
2350 (rust_language_defn): Delete.
2351 * gdb/m2-lang.c (m2_language_defn): Convert to...
2352 (m2_language_data): ...this.
2353 (class m2_language): New class.
2354 (m2_language_defn): New static global.
2355 * gdb/objc-lang.c (objc_language_defn): Convert to...
2356 (objc_language_data): ...this.
2357 (class objc_language): New class.
2358 (objc_language_defn): New static global.
2359 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2360 (opencl_language_data): ...this.
2361 (class opencl_language): New class.
2362 (opencl_language_defn): New static global.
2363 * gdb/p-lang.c (pascal_language_defn): Convert to...
2364 (pascal_language_data): ...this.
2365 (class pascal_language): New class.
2366 (pascal_language_defn): New static global.
2367 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2368 language pointer, update comment format.
2369 * gdb/rust-lang.c (rust_language_defn): Convert to...
2370 (rust_language_data): ...this.
2371 (class rust_language): New class.
2372 (rust_language_defn): New static global.
2373
1313c56e
AB
23742020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2375
2376 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2377 member variable.
2378 <m_stmt_at_address>: New member variable.
2379 (lnp_state_machine::record_line): Don't record some lines, update
2380 tracking of is_stmt at the same address.
2381 (lnp_state_machine::lnp_state_machine): Initialise new member
2382 variables.
2383
b7ed9f3d
ST
23842020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2385
2386 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2387 "-include gnu-nat-mig.h".
2388 * gnu-nat-mig.h: New file.
2389 * gnu-nat.c: Include "gnu-nat-mig.h".
2390 (exc_server, msg_reply_server, notify_server,
2391 process_reply_server): Remove declarations.
2392
14a8ad62
ST
23932020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2394
2395 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2396 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2397 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2398 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2399 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2400 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2401 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2402 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2403 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2404 to gnu_nat_target class.
2405 * gnu-nat.c: Likewise.
2406 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2407 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2408 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2409 object.
2410 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2411 instead of `gnu_target'.
2412
0af5e106
ST
24132020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2414
2415 * i386-gnu-tdep.c: Include "gdbcore.h"
2416 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2417 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2418 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2419 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2420 i386_gnu_sigcontext_addr): New functions
2421 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2422 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2423 tdep.
2424
078f2fc9
ST
24252020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2426
2427 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2428 before fork_inferior call. Avoid calling it if target_is_pushed returns
2429 true.
2430
53dff92c
ST
24312020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2432
2433 * gnu-nat.h (gnu_target): New variable declaration.
2434 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2435 gnu_target.
2436 * gnu-nat.c (gnu_target): New variable.
2437 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2438 add_thread_silent, and add_thread calls.
2439 (gnu_nat_target::create_inferior): Pass gnu_target to
2440 add_thread_silent, thread_change_ptid call.
2441 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2442 call.
2443
5a8b8627
ST
24442020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2445
2446 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2447 (gnu_nat_target::find_memory_regions): Remove unused
2448 `old_address' variable.
2449
366f550a
ST
24502020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2451
2452 * gnu-nat.c: Include "gdbarch.h".
2453
f14871bf
ST
24542020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2455
2456 * reply_mig_hack.awk (Error return): Cast function through
2457 void *, to bypass compiler function call check.
2458
c6887cfb
ST
24592020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2460
2461 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2462 $(srcdir)/reply_mig_hack.awk.
2463
6930bffe
ST
24642020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2465
2466 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2467
112c22ed
JG
24682020-05-30 Jonny Grant <jg@jguk.org>
2469
2470 * configure.ac (ACX_BUGURL): change bug URL to https.
2471
f68f85b5
PA
24722020-05-30 Pedro Alves <palves@redhat.com>
2473
2474 * cp-support.c (replace_typedefs_template): New.
2475 (replace_typedefs_qualified_name): Handle
2476 DEMANGLE_COMPONENT_TEMPLATE.
2477
976ca316
SM
24782020-05-29 Simon Marchi <simon.marchi@efficios.com>
2479
2480 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2481 dwarf2/index-cache.h, dwarf2/index-write.c,
2482 dwarf2/index-write.h, dwarf2/line-header.c,
2483 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2484 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2485 variables and fields from `dwarf2_per_objfile` to just
2486 `per_objfile` throughout.
2487
989ade05
SM
24882020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2489
2490 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2491 <push_dwarf_reg_entry_value>: Add comment.
2492
c47bae85
KB
24932020-05-28 Kevin Buettner <kevinb@redhat.com>
2494 Keith Seitz <keiths@redhat.com>
2495
2496 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2497 instead of PyEval_ReleaseLock.
2498 (class gdbpy_gil): Move to earlier in file.
2499 (finalize_python): Set gdb_python_initialized.
2500 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2501 when not initialized.
2502
44486dcf
SM
25032020-05-28 Simon Marchi <simon.marchi@efficios.com>
2504
2505 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2506 <push_dwarf_reg_entry_value>: Remove assert. Override
2507 per_objfile with caller_per_objfile.
2508
f030440d
TV
25092020-05-28 Tom de Vries <tdevries@suse.de>
2510
2511 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2512 PR gold/15646 workaround to symbol kind "type".
2513
f0fbb768
TT
25142020-05-27 Tom Tromey <tromey@adacore.com>
2515
2516 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2517
af0b2a3e
TT
25182020-05-27 Tom Tromey <tromey@adacore.com>
2519
2520 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2521 Use htab_find_with_hash.
2522 <add_abbrev>: Remove "abbrev_number" parameter.
2523 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2524 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2525 (hash_abbrev): Add comment.
2526 (abbrev_table::lookup_abbrev): Move to header file.
2527 (abbrev_table::read): Update.
2528
7d00ffec
TT
25292020-05-27 Tom Tromey <tromey@adacore.com>
2530
2531 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2532 method.
2533 <canonical_name>: New member.
2534 <raw_name>: Rename from "name".
2535 (partial_die_info): Initialize canonical_name.
2536 (scan_partial_symbols): Check raw_name.
2537 (partial_die_parent_scope, partial_die_full_name)
2538 (add_partial_symbol, add_partial_subprogram)
2539 (add_partial_enumeration, load_partial_dies): Use "name" method.
2540 (partial_die_info::name): New method.
2541 (partial_die_info::read, guess_partial_die_structure_name)
2542 (partial_die_info::fixup): Update.
2543
697bba18
TT
25442020-05-27 Tom Tromey <tromey@adacore.com>
2545
2546 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2547 <get_ref_die_offset>: Inline.
2548 <get_ref_die_offset_complaint>: New method.
2549 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2550 (attribute::get_ref_die_offset_complaint): Rename from
2551 get_ref_die_offset. Just issue complaint.
2552
c17ace43
HD
25532020-05-27 Hannes Domani <ssbssa@yahoo.de>
2554
2555 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2556
96445f0b
HD
25572020-05-27 Hannes Domani <ssbssa@yahoo.de>
2558
2559 * exec.c (exec_file_attach): Use errno value of first openp failure.
2560
ac637ec3
HD
25612020-05-27 Hannes Domani <ssbssa@yahoo.de>
2562
2563 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2564 Don't close thread handle.
2565
17ee85fc
TT
25662020-05-27 Tom Tromey <tom@tromey.com>
2567 Simon Marchi <simon.marchi@efficios.com>
2568
2569 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2570 shared_ptr.
2571 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2572 member.
2573 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2574 dwarf2_per_bfd_objfile_data_key>: New globals.
2575 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2576 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2577 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2578 shared.
2579 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2580 short-circuit when sharing.
2581 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2582 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2583
39b16f87
SM
25842020-05-27 Simon Marchi <simon.marchi@efficios.com>
2585
2586 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2587 to...
2588 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2589 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2590
fcf23d5b
SM
25912020-05-27 Simon Marchi <simon.marchi@efficios.com>
2592
2593 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2594 build_name_components, find_name_components_bounds>:
2595 Add per_objfile parameter.
2596 (struct mapped_index) <symbol_name_at>: Likewise.
2597 (struct mapped_debug_names): Remove constructor.
2598 <dwarf2_per_objfile>: Remove field.
2599 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2600 (mapped_index_base::find_name_components_bounds,
2601 mapped_index_base::build_name_components,
2602 dw2_expand_symtabs_matching_symbol): Likewise.
2603 (class mock_mapped_index) <symbol_name_at>: Likewise.
2604 (check_match): Likewise.
2605 (check_find_bounds_finds): Likewise.
2606 (test_mapped_index_find_name_component_bounds): Update.
2607 (CHECK_MATCH): Update.
2608 (dw2_expand_symtabs_matching): Update.
2609 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2610 per_objfile parameter.
2611 <find_vec_in_debug_names>: Likewise.
2612 <m_per_objfile>: New field.
2613 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2614 parameter.
2615 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2616 (dw2_debug_names_iterator::next): Update.
2617 (dw2_debug_names_lookup_symbol): Update.
2618 (dw2_debug_names_expand_symtabs_for_function): Update.
2619 (dw2_debug_names_map_matching_symbols): Update.
2620 (dw2_debug_names_expand_symtabs_matching): Update.
2621 (dwarf2_read_debug_names): Update.
2622
7188ed02
SM
26232020-05-27 Simon Marchi <simon.marchi@efficios.com>
2624
2625 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2626 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2627 move to dwarf2_per_objfile.
2628 <read_in_chain>: Remove.
2629 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2630 remove_all_cus, age_comp_units>: New methods.
2631 <m_dwarf2_cus>: New member.
2632 (struct dwarf2_per_cu_data) <cu>: Remove.
2633 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2634 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2635 moved to methods of dwarf2_per_objfile.
2636 (dwarf2_clear_marks): Remove.
2637 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2638 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2639 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2640 (dwarf2_per_objfile::remove_all_cus): New.
2641 (class free_cached_comp_units) <~free_cached_comp_units>:
2642 Update.
2643 (load_cu): Update.
2644 (dw2_do_instantiate_symtab): Adjust.
2645 (fill_in_sig_entry_from_dwo_entry): Adjust.
2646 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2647 (cutu_reader::cutu_reader): Likewise.
2648 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2649 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2650 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2651 and dwarf2_per_objfile::age_comp_units.
2652 (load_partial_comp_unit): Update.
2653 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2654 (process_queue): Likewise.
2655 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2656 backlink.
2657 (dwarf2_read_addr_index): Likewise.
2658 (follow_die_offset): Likewise.
2659 (dwarf2_fetch_die_loc_sect_off): Likewise.
2660 (dwarf2_fetch_constant_bytes): Likewise.
2661 (dwarf2_fetch_die_type_sect_off): Likewise.
2662 (follow_die_sig_1): Likewise.
2663 (load_full_type_unit): Likewise.
2664 (read_signatured_type): Likewise.
2665 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2666 (dwarf2_cu::~dwarf2_cu): Remove.
2667 (dwarf2_per_objfile::get_cu): New.
2668 (dwarf2_per_objfile::set_cu): New.
2669 (age_cached_comp_units): Rename to...
2670 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2671 to std::unordered_map.
2672 (free_one_cached_comp_unit): Rename to...
2673 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2674 to std::unordered_map.
2675 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2676 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2677 a dwarf2_per_objfile in data.
2678 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2679 (dwarf2_clear_marks): Remove.
2680
2e671100
SM
26812020-05-27 Simon Marchi <simon.marchi@efficios.com>
2682
2683 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2684 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2685 (init_tu_and_read_dwo_dies): Likewise.
2686 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2687 (cutu_reader::cutu_reader): Likewise.
2688 (load_partial_comp_unit): Likewise.
2689 (process_psymtab_comp_unit): Update.
2690 (build_type_psymtabs_1): Update.
2691 (process_skeletonless_type_unit): Update.
2692 (load_full_comp_unit): Update.
2693 (find_partial_die): Update.
2694 (dwarf2_read_addr_index): Update.
2695 (read_signatured_type): Update.
2696
2e6a9f79
SM
26972020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2698
2699 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2700 m_header_read_in>: New fields.
2701 <get_header>: New method.
2702 * dwarf2/read.c (per_cu_header_read_in): Remove.
2703 (dwarf2_per_cu_data::get_header): New.
2704 (dwarf2_per_cu_data::addr_size): Update.
2705 (dwarf2_per_cu_data::offset_size): Update.
2706 (dwarf2_per_cu_data::ref_addr_size): Update.
2707
1b555f17
SM
27082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2709
2710 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2711 (dw2_do_instantiate_symtab): Update.
2712 (queue_and_load_all_dwo_tus): Change parameter from
2713 dwarf2_per_cu_data to dwarf2_cu.
2714 (dwarf2_fetch_die_loc_sect_off): Update.
2715 (dwarf2_fetch_constant_bytes): Update.
2716 (dwarf2_fetch_die_type_sect_off): Update.
2717
8fc0b21d
SM
27182020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2719
2720 * dwarf2/read.c (process_full_comp_unit,
2721 process_full_type_unit): Remove per_cu, per_objfile paramters.
2722 Add dwarf2_cu parameter.
2723 (process_queue): Update.
2724
168c9250
SM
27252020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2726
2727 * dwarf2/read.c (create_cu_from_index_list): Replace
2728 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2729 (create_cus_from_index_list): Likewise.
2730 (create_cus_from_index): Likewise.
2731 (create_signatured_type_table_from_index): Likewise.
2732 (create_cus_from_debug_names_list): Likewise.
2733 (create_cus_from_debug_names): Likewise.
2734 (dwarf2_read_gdb_index): Update.
2735 (dwarf2_read_debug_names): Update.
2736
e286671b
TT
27372020-05-27 Tom Tromey <tom@tromey.com>
2738 Simon Marchi <simon.marchi@efficios.com>
2739
2740 * dwarf2/read.h (struct dwarf2_per_objfile)
2741 <get_type_for_signatured_type, set_type_for_signatured_type>:
2742 New methods.
2743 <m_type_map>: New member.
2744 (struct signatured_type) <type>: Remove.
2745 * dwarf2/read.c
2746 (dwarf2_per_objfile::get_type_for_signatured_type,
2747 dwarf2_per_objfile::set_type_for_signatured_type): New.
2748 (get_signatured_type): Use new methods.
2749
8adb8487
TT
27502020-05-27 Tom Tromey <tom@tromey.com>
2751 Simon Marchi <simon.marchi@efficios.com>
2752
2753 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2754 (struct dwarf2_per_objfile) <type_units>: New member.
2755 <get_type_unit_group_unshareable>: New method.
2756 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2757 num_symtabs, symtabs>: Remove; move to
2758 type_unit_group_unshareable.
2759 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2760 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2761 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2762
127bbf4b
SM
27632020-05-27 Simon Marchi <simon.marchi@efficios.com>
2764
2765 * dwarf2/read.h (struct dwarf2_per_cu_data):
2766 <dwarf2_per_objfile>: Remove.
2767 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2768 dwarf2_per_objfile.
2769 (create_signatured_type_table_from_index): Likewise.
2770 (create_signatured_type_table_from_debug_names): Likewise.
2771 (create_debug_type_hash_table): Likewise.
2772 (fill_in_sig_entry_from_dwo_entry): Likewise.
2773 (create_type_unit_group): Likewise.
2774 (read_comp_units_from_section): Likewise.
2775 (create_cus_hash_table): Likewise.
2776
f6e649dd
SM
27772020-05-27 Simon Marchi <simon.marchi@efficios.com>
2778
2779 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2780 dwarf2_per_cu_data::dwarf2_per_objfile.
2781 (compute_compunit_symtab_includes): Likewise.
2782 (dwarf2_cu::start_symtab): Likewise.
2783
aa66c379
SM
27842020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2785
2786 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2787 parameter.
2788 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2789 (read_namespace_alias): Update.
2790 (lookup_die_type): Update.
2791 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2792 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2793 Update.
2794 (disassemble_dwarf_expression): Update.
2795
120ce1b5
SM
27962020-05-27 Simon Marchi <simon.marchi@efficios.com>
2797
2798 * dwarf2/read.h (struct dwarf2_queue_item): Add
2799 dwarf2_per_objfile parameter, assign new parameter.
2800 <per_objfile>: New field.
2801 * dwarf2/read.c (free_one_cached_comp_unit): Add
2802 dwarf2_per_objfile parameter.
2803 (queue_comp_unit): Likewise.
2804 (dw2_do_instantiate_symtab): Update.
2805 (process_psymtab_comp_unit): Update.
2806 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2807 (process_imported_unit_die): Update.
2808 (queue_and_load_dwo_tu): Update.
2809 (follow_die_offset): Update.
2810 (follow_die_sig_1): Update.
2811
9f47c707
SM
28122020-05-27 Simon Marchi <simon.marchi@efficios.com>
2813
2814 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2815 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2816 (read_call_site_scope): Assign per_objfile.
2817 (dwarf2_per_cu_data::objfile): Remove.
2818 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2819 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2820 dwarf2_per_objfile parameter.
2821 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2822 dwarf2_per_objfile parameter.
2823 (dwarf_expr_reg_to_entry_parameter): Add output
2824 dwarf2_per_objfile parameter.
2825 (locexpr_get_frame_base): Update.
2826 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2827 <push_dwarf_reg_entry_value>: Update.
2828 <call_site_to_target_addr>: Update.
2829 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2830 parameter.
2831 (value_of_dwarf_reg_entry): Update.
2832 (rw_pieced_value): Update.
2833 (indirect_synthetic_pointer): Update.
2834 (dwarf2_evaluate_property): Update.
2835 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2836 parameter.
2837 (locexpr_read_variable): Update.
2838 (locexpr_get_symbol_read_needs): Update.
2839 (loclist_read_variable): Update.
2840
14095eb3
SM
28412020-05-27 Simon Marchi <simon.marchi@efficios.com>
2842
2843 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2844 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2845 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2846 parameter.
2847 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2848 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2849 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2850 parameter.
2851 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2852 sect_variable_value): Add dwarf2_per_objfile parameter.
2853 (class dwarf_evaluate_loc_desc) <dwarf_call,
2854 dwarf_variable_value>: Update.
2855 (fetch_const_value_from_synthetic_pointer): Add
2856 dwarf2_per_objfile parameter.
2857 (fetch_const_value_from_synthetic_pointer): Update.
2858 (coerced_pieced_ref): Update.
2859 (class symbol_needs_eval_context) <dwarf_call,
2860 dwarf_variable_value>: Update.
2861 (dwarf2_compile_expr_to_ax): Update.
2862
3c3cd3d4
SM
28632020-05-27 Simon Marchi <simon.marchi@efficios.com>
2864
2865 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2866 parameter.
2867 (dwarf2_evaluate_loc_desc_full): Update.
2868
82ca3f51
SM
28692020-05-27 Simon Marchi <simon.marchi@efficios.com>
2870
2871 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2872 parameter.
2873 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2874 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2875 dwarf2_per_objfile parameter.
2876 (decode_debug_loc_dwo_addresses): Likewise.
2877 (dwarf2_find_location_expression): Update.
2878 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2879 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2880 parameter.
2881 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2882 parameter.
2883 (locexpr_describe_location_1): Likewise.
2884 (locexpr_describe_location): Update.
2885
4b167ea1
SM
28862020-05-27 Simon Marchi <simon.marchi@efficios.com>
2887
2888 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2889 Remove.
2890 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2891 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2892 (dwarf2_compile_property_to_c): Update.
2893 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2894 use text offset from objfile.
2895 (locexpr_tracepoint_var_ref): Update.
2896 (locexpr_generate_c_location): Update.
2897 (loclist_describe_location): Update.
2898 (loclist_tracepoint_var_ref): Update.
2899 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2900 dwarf2_per_objfile parameter.
2901 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2902 use text offset from objfile.
2903 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2904
89b07335
SM
29052020-05-27 Simon Marchi <simon.marchi@efficios.com>
2906
2907 * dwarf2/expr.h (struct dwarf_expr_context)
2908 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2909 <offset>: Remove.
2910 <per_objfile>: New member.
2911 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2912 dwarf2_per_objfile parameter. Don't set offset, set
2913 per_objfile.
2914 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2915 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2916 a dwarf2_per_objfile object instead of an offset.
2917 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2918 constructor.
2919 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2920 to dwarf2_expr_executor constructor. Don't set offset.
2921 (dwarf2_fetch_cfa_info): Update.
2922 (struct dwarf2_frame_cache) <text_offset>: Remove.
2923 <per_objfile>: New field.
2924 (dwarf2_frame_cache): Update.
2925 (dwarf2_frame_prev_register): Update.
2926 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2927 <dwarf_evaluate_loc_desc>: Add constructor.
2928 (dwarf2_evaluate_loc_desc_full): Update.
2929 (dwarf2_locexpr_baton_eval): Update.
2930 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2931 Add constructor.
2932 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2933
293e7e51
SM
29342020-05-27 Simon Marchi <simon.marchi@efficios.com>
2935
2936 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2937 addr_sized_int_type>: Move to dwarf2_cu.
2938 <int_type>: Move to dwarf2_per_objfile.
2939 (struct dwarf2_per_objfile) <int_type>: Move here.
2940 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2941 addr_sized_int_type>: Move here.
2942 (read_func_scope): Update.
2943 (read_array_type): Update.
2944 (read_tag_string_type): Update.
2945 (attr_to_dynamic_prop): Update.
2946 (dwarf2_per_cu_data::int_type): Rename to...
2947 (dwarf2_per_objfile::int_type): ... this.
2948 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2949 (dwarf2_cu::addr_sized_int_type): ... this.
2950 (read_subrange_type): Update.
2951 (dwarf2_per_cu_data::addr_type): Rename to...
2952 (dwarf2_cu::addr_type): ... this.
2953 (set_die_type): Update.
2954
64874a40
SM
29552020-05-27 Simon Marchi <simon.marchi@efficios.com>
2956
2957 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2958 data through per_cu->cu.
2959
4ab09049
SM
29602020-05-27 Simon Marchi <simon.marchi@efficios.com>
2961
2962 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2963 dwarf2_per_cu_data parameter fo dwarf2_cu.
2964 (lookup_dwo_type_unit): Likewise.
2965 (read_cutu_die_from_dwo): Likewise.
2966 (lookup_dwo_unit): Likewise.
2967 (open_and_init_dwo_file): Likewise.
2968 (lookup_dwo_cutu): Likewise.
2969 (lookup_dwo_comp_unit): Likewise.
2970 (lookup_dwo_type_unit): Likewise.
2971 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2972 (cutu_reader::cutu_reader): Update.
2973
47b14e86
SM
29742020-05-27 Simon Marchi <simon.marchi@efficios.com>
2975
2976 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2977 parameter.
2978 (process_full_type_unit): Likewise.
2979 (process_queue): Update.
2980
43182c09
SM
29812020-05-27 Simon Marchi <simon.marchi@efficios.com>
2982
2983 * dwarf2/read.c (recursively_compute_inclusions): Add
2984 dwarf2_per_objfile parameter.
2985 (compute_compunit_symtab_includes): Likewise.
2986 (process_cu_includes): Update.
2987
7aa104c4
SM
29882020-05-27 Simon Marchi <simon.marchi@efficios.com>
2989
2990 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2991 parameter.
2992 (create_type_unit_group): Update.
2993 (process_psymtab_comp_unit_reader): Update.
2994 (build_type_psymtabs_reader): Update.
2995
e3beb21d
SM
29962020-05-27 Simon Marchi <simon.marchi@efficios.com>
2997
2998 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2999 object through m_this_cu->cu.
3000
d460f660
SM
30012020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3002
3003 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3004 the info parameter.
3005 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3006
ab432490
SM
30072020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3008
3009 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3010 per_objfile parameter.
3011 (load_full_type_unit): Add per_objfile parameter.
3012 (read_signatured_type): Likewise.
3013 (load_full_comp_unit): Likewise.
3014 (load_cu): Likewise.
3015 (dw2_do_instantiate_symtab): Likewise.
3016 (dw2_get_file_names): Likewise.
3017 (dw2_map_symtabs_matching_filename): Update.
3018 (dw_expand_symtabs_matching_file_matcher): Update.
3019 (dw2_map_symbol_filenames): Update.
3020 (process_psymtab_comp_unit): Add per_objfile parameter.
3021 (build_type_psymtabs_1): Update.
3022 (process_skeletonless_type_unit): Update.
3023 (dwarf2_build_psymtabs_hard): Update.
3024 (load_partial_comp_unit): Add per_objfile parameter.
3025 (scan_partial_symbols): Update.
3026 (load_full_comp_unit): Add per_objfile parameter.
3027 (process_imported_unit_die): Update.
3028 (create_cus_hash_table): Update.
3029 (find_partial_die): Update.
3030 (dwarf2_read_addr_index): Update.
3031 (follow_die_offset): Update.
3032 (dwarf2_fetch_die_loc_sect_off): Update.
3033 (dwarf2_fetch_constant_bytes): Update.
3034 (dwarf2_fetch_die_type_sect_off): Update.
3035 (follow_die_sig_1): Update.
3036 (load_full_type_unit): Add per_objfile parameter.
3037 (read_signatured_type): Likewise.
3038
313bad1b
SM
30392020-05-27 Simon Marchi <simon.marchi@efficios.com>
3040
3041 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3042 of objfile_name.
3043
c3699833
SM
30442020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3045
3046 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3047 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3048 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3049 field.
3050 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3051 (create_cus_from_index): Update.
3052 (dwarf2_read_gdb_index): Update.
3053 (create_cus_from_debug_names): Update.
3054 (dwarf2_read_debug_names): Update.
3055 (get_abbrev_section_for_cu): Update.
3056 (create_all_comp_units): Update.
3057 (read_attribute_value): Update.
3058 (get_debug_line_section): Update.
3059 * dwarf2/index-cache.c (index_cache::store): Update.
3060 * dwarf2/index-write.c (save_gdb_index_command): Update.
3061 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3062
1859c670
SM
30632020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3064
3065 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3066 member.
3067 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3068 dwarf2_per_cu_data::per_bfd.
3069 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3070 (create_type_unit_group): Likewise.
3071 (queue_comp_unit): Remove reference to
3072 per_cu->dwarf2_per_objfile.
3073 (maybe_queue_comp_unit): Likewise.
3074 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3075 (create_cus_hash_table): Assign new field.
3076
5e22e966
SM
30772020-05-27 Simon Marchi <simon.marchi@efficios.com>
3078
3079 * dwarf2/read.c: Replace
3080 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3081 dwarf2_cu->per_objfile throughout.
3082
97a1449a
SM
30832020-05-27 Simon Marchi <simon.marchi@efficios.com>
3084
3085 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3086 parameter, don't use per_cu->dwarf2_per_objfile.
3087 (dw2_instantiate_symtab): Likewise.
3088 (dw2_find_last_source_symtab): Update.
3089 (dw2_map_expand_apply): Update.
3090 (dw2_lookup_symbol): Update.
3091 (dw2_expand_symtabs_for_function): Update.
3092 (dw2_expand_all_symtabs): Update.
3093 (dw2_expand_symtabs_with_fullname): Update.
3094 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3095 don't use per_cu->dwarf2_per_objfile.
3096 (dw2_expand_marked_cus): Update.
3097 (dw2_find_pc_sect_compunit_symtab): Update.
3098 (dw2_debug_names_lookup_symbol): Update.
3099 (dw2_debug_names_expand_symtabs_for_function): Update.
3100 (dw2_debug_names_map_matching_symbols): Update.
3101 (dwarf2_psymtab::expand_psymtab): Update.
3102
9e021579
SM
31032020-05-27 Simon Marchi <simon.marchi@efficios.com>
3104
3105 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3106 <per_objfile>: New member.
3107 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3108 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3109 call to dwarf2_cu.
3110 (cutu_reader::cutu_reader): Update.
3111 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3112
ae090bdb
SM
31132020-05-27 Simon Marchi <simon.marchi@efficios.com>
3114
3115 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3116 struct dwarf2_per_objfile.
3117 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3118 dwarf2_per_bfd.
3119 * dwarf2/read.c (set_die_type): Update.
3120 (get_die_type_at_offset): Update.
3121
af758d11
SM
31222020-05-27 Tom Tromey <tom@tromey.com>
3123 Simon Marchi <simon.marchi@efficios.com>
3124
3125 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3126 method.
3127 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3128 get_symtab, set_symtab>: New methods.
3129 <m_symtabs>: New field.
3130 (struct dwarf2_psymtab): Derive from partial_symtab.
3131 <readin_p, get_compunit_symtab>: Declare methods.
3132 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3133 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3134 New methods.
3135 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3136 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3137 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3138 (dw2_symtab_iter_next, dw2_print_stats)
3139 (dw2_expand_symtabs_with_fullname)
3140 (dw2_expand_symtabs_matching_one)
3141 (dw_expand_symtabs_matching_file_matcher)
3142 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3143 (dw2_debug_names_iterator::next)
3144 (dw2_debug_names_map_matching_symbols)
3145 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3146 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3147 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3148 New methods.
3149 (get_compunit_symtab, process_full_comp_unit)
3150 (process_full_type_unit): Update.
3151 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3152
5989a64e
SM
31532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3154
3155 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3156 then introduce a new dwarf2_per_objfile type.
3157 <read_line_string>: Move to the new dwarf2_per_objfile type.
3158 <objfile>: Likewise.
3159 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3160 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3161 dwarf2_per_objfile->per_bfd.
3162 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3163 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3164 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3165 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3166 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3167 (dwarf2_per_objfile::locate_sections): Rename to...
3168 (dwarf2_per_bfd::locate_sections): ... this.
3169 (dwarf2_per_objfile::get_cutu): Rename to...
3170 (dwarf2_per_bfd::get_cutu): ... this.
3171 (dwarf2_per_objfile::get_cu): Rename to...
3172 (dwarf2_per_bfd::get_cu): ... this.
3173 (dwarf2_per_objfile::get_tu): Rename to...
3174 (dwarf2_per_bfd::get_tu): ... this.
3175 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3176 (dwarf2_per_bfd::allocate_per_cu): ... this.
3177 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3178 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3179 (get_gdb_index_contents_ftype): Change parameter from
3180 dwarf2_per_objfile to dwarf2_per_bfd.
3181 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3182 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3183
a50264ba
TT
31842020-05-27 Tom Tromey <tom@tromey.com>
3185 Simon Marchi <simon.marchi@efficios.com>
3186
3187 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3188 (allocate_piece_closure): Set "per_objfile" member.
3189 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3190 (locexpr_describe_location, loclist_describe_location): Use new
3191 member.
3192 * dwarf2/read.c (read_call_site_scope)
3193 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3194 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3195 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3196 handle_data_member_location): Set per_objfile member.
3197 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3198 member.
3199 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3200
d3473f0c
TT
32012020-05-27 Tom Tromey <tom@tromey.com>
3202
3203 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3204 allocate_signatured_type>: Declare new methods.
3205 <m_num_psymtabs>: New member.
3206 (struct dwarf2_per_cu_data) <index>: New member.
3207 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3208 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3209 (create_cu_from_index_list): Use allocate_per_cu.
3210 (create_signatured_type_table_from_index)
3211 (create_signatured_type_table_from_debug_names)
3212 (create_debug_type_hash_table, add_type_unit)
3213 (read_comp_units_from_section): Use allocate_signatured_type.
3214
5717c425
TT
32152020-05-27 Tom Tromey <tom@tromey.com>
3216
3217 * psymtab.c (partial_map_expand_apply)
3218 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3219 (psym_lookup_global_symbol_language)
3220 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3221 (psym_print_stats, psym_expand_symtabs_for_function)
3222 (psym_map_symbol_filenames, psym_map_matching_symbols)
3223 (psym_expand_symtabs_matching)
3224 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3225 (maintenance_check_psymtabs): Update.
3226 * psympriv.h (struct partial_symtab) <readin_p,
3227 get_compunit_symtab>: Add objfile parameter.
3228 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3229 Likewise.
3230 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3231 get_compunit_symtab>: Likewise.
3232 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3233
45940949
TT
32342020-05-27 Tom Tromey <tom@tromey.com>
3235
3236 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3237 member.
3238 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3239 (create_cu_from_index_list)
3240 (create_signatured_type_table_from_index)
3241 (create_signatured_type_table_from_debug_names)
3242 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3243 (dwarf2_create_include_psymtab)
3244 (create_debug_type_hash_table, add_type_unit)
3245 (create_type_unit_group, read_comp_units_from_section)
3246 (dwarf2_compute_name, create_cus_hash_table)
3247 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3248 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3249 obstack.
3250 (dw2_get_real_path): Likewise. Change argument to
3251 dwarf2_per_objfile.
3252
f8c6d152
LM
32532020-05-27 Luis Machado <luis.machado@linaro.org>
3254
3255 PR tdep/26000
3256 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3257 for ldrd (immediate).
3258
e98d2e6d
PW
32592020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3260
3261 * command.h: Add comment giving the name of class_tui.
3262 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3263 create the fake command for the help for class_tui.
3264
53a47a3e
TT
32652020-05-26 Tom Tromey <tromey@adacore.com>
3266
3267 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3268 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3269 (val_atr): New function.
3270 (value_val_atr): Use it.
3271 * ada-valprint.c (print_optional_low_bound): Change low bound
3272 handling for enums.
3273 (val_print_packed_array_elements): Don't call discrete_position.
3274 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3275 discrete_position for enum types.
3276 * language.c (default_print_array_index): Change type.
3277 * language.h (struct language_defn) <la_print_array_index>: Add
3278 index_type parameter, change type of index_value.
3279 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3280 (default_print_array_index): Update.
3281 * valprint.c (maybe_print_array_index): Don't call
3282 value_from_longest. Update.
3283 (value_print_array_elements): Don't call discrete_position.
3284
0bc2354b
TT
32852020-05-26 Tom Tromey <tromey@adacore.com>
3286
3287 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3288 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3289
1218a4bf
CDA
32902020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3291
3292 PR gdb/13519
3293 * avr-tdep.c (avr_integer_to_address): Return data or code
3294 address accordingly to the second 'type' argument of the
3295 function.
3296
92651b1d
MW
32972020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3298
3299 * infcmd.c, inferior.h: (construct_inferior_arguments):
3300 Moved function from here to gdbsupport/common-inferior.{h,cc}
3301
0a4f5f8c
TT
33022020-05-23 Tom Tromey <tom@tromey.com>
3303
3304 Revert commit eca1f90c:
3305 * NEWS: Remove entry for completion styling.
3306 * completer.c (_rl_completion_prefix_display_length): Move
3307 declaration later.
3308 (gdb_fnprint): Revert.
3309 (gdb_display_match_list_1): Likewise.
3310 * cli/cli-style.c (completion_prefix_style)
3311 (completion_difference_style, completion_suffix_style): Remove.
3312 (_initialize_cli_style): Revert.
3313 * cli/cli-style.h (completion_prefix_style)
3314 (completion_difference_style, completion_suffix_style): Don't
3315 declare.
3316
e08bd6c5
PA
33172020-05-24 Pedro Alves <palves@redhat.com>
3318
3319 * symtab.c (completion_list_add_name): Return boolean indication
3320 of whether the symbol matched.
3321 (completion_list_add_symbol): Don't try to remove C++ aliases if
3322 the symbol didn't match in the first place.
3323 * symtab.h (completion_list_add_name): Return bool.
3324
ceacbf6e
SM
33252020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3326
3327 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3328 type::field.
3329
26f16254
JB
33302020-05-23 Joel Brobecker <brobecker@adacore.com>
3331
3332 GDB 9.2 released.
3333
eca1f90c
TT
33342020-05-23 Tom Tromey <tom@tromey.com>
3335
3336 * NEWS: Add entry for completion styling.
3337 * completer.c (_rl_completion_prefix_display_length): Move
3338 declaration earlier.
3339 (gdb_fnprint): Use completion_style.
3340 (gdb_display_match_list_1): Likewise.
3341 * cli/cli-style.c (completion_prefix_style)
3342 (completion_difference_style, completion_suffix_style): New
3343 globals.
3344 (_initialize_cli_style): Register new globals.
3345 * cli/cli-style.h (completion_prefix_style)
3346 (completion_difference_style, completion_suffix_style): Declare.
3347
51e2cfa2
PA
33482020-05-23 Pedro Alves <palves@redhat.com>
3349
3350 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3351 (parse_escape): Use ISDIGIT instead of isdigit.
3352 (puts_debug): Use gdb_isprint instead of isprint.
3353 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3354 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3355 ISSPACE instead of isspace.
3356 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3357 instead of isspace.
3358 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3359 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3360 instead of isxdigit and ISDIGIT instead of isdigit.
3361
80fc5e77
SM
33622020-05-22 Simon Marchi <simon.marchi@efficios.com>
3363
3364 * gdbtypes.h (struct type) <field>: New method.
3365 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3366 or type::field.
3367
3cabb6b0
SM
33682020-05-22 Simon Marchi <simon.marchi@efficios.com>
3369
3370 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3371 (TYPE_FIELDS): Use type::fields. Change all call sites that
3372 modify the propery to use type::set_fields instead.
3373
1f704f76
SM
33742020-05-22 Simon Marchi <simon.marchi@efficios.com>
3375
3376 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3377 type::num_fields instead.
3378
5e33d5f4
SM
33792020-05-22 Simon Marchi <simon.marchi@efficios.com>
3380
3381 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3382 methods.
3383 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3384 that modify the number of fields to use type::set_num_fields
3385 instead.
3386
9392ebb3
TT
33872020-05-22 Tom Tromey <tromey@adacore.com>
3388
3389 * compile/compile-object-load.h (munmap_list_free): Don't
3390 declare.
3391
7c13f4e8
AB
33922020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3393
3394 * annotate.c (annotate_source_line): Update return type, add call
3395 to update current symtab and line.
3396 * annotate.h (annotate_source_line): Update return type, and
3397 extend header comment.
3398 * source.c (info_line_command): Check annotation_level before
3399 calling annotate_source_line.
3400 * stack.c (print_frame_info): If calling annotate_source_line
3401 returns true, then don't print any other source line information.
3402
aa370940
SM
34032020-05-21 Simon Marchi <simon.marchi@efficios.com>
3404
3405 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3406
84d53fa9
SM
34072020-05-21 Simon Marchi <simon.marchi@efficios.com>
3408
3409 * coffread.c (patch_type): Remove NULL check before xfree.
3410 * corefile.c (set_gnutarget): Likewise.
3411 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3412 * exec.c (build_section_table): Likewise.
3413 * remote.c (remote_target::pass_signals): Likewise.
3414 * utils.c (n_spaces): Likewise.
3415 * cli/cli-script.c (document_command): Likewise.
3416 * i386-windows-tdep.c (core_process_module_section): Likewise.
3417 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3418
9d428aae
SM
34192020-05-20 Simon Marchi <simon.marchi@efficios.com>
3420
3421 * symfile.c (reread_symbols): Clear objfile's section_offsets
3422 vector and section indices, re-compute them by calling
3423 sym_offsets.
3424
250106a7
TT
34252020-05-20 Tom Tromey <tromey@adacore.com>
3426
3427 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3428 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3429
9a0bacfb
TV
34302020-05-20 Tom de Vries <tdevries@suse.de>
3431
3432 PR symtab/25833
3433 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3434
7b958a48
AM
34352020-05-20 Alan Modra <amodra@gmail.com>
3436
3437 PR 25993
3438 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3439 bfd_set_filename.
3440 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3441 passed to bfd_set_filename.
3442 * symfile-mem.c (add_vsyscall_page): Likewise for string
3443 passed to symbol_file_add_from_memory.
3444 (symbol_file_add_from_memory): Make name param a const char* and
3445 don't strdup.
3446
c7e97679
AM
34472020-05-20 Alan Modra <amodra@gmail.com>
3448
3449 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3450 rather than accessing bfd->filename directly.
3451 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3452 and use bfd_section_name.
3453 * dwarf2/frame.c (decode_frame_entry): Likewise.
3454 * exec.c (exec_set_section_address): Likewise.
3455 * solib-aix.c (solib_aix_bfd_open): Likewise.
3456 * stap-probe.c (get_stap_base_address): Likewise.
3457 * symfile.c (reread_symbols): Likewise.
3458
563c591b
TT
34592020-05-19 Tom Tromey <tromey@adacore.com>
3460
3461 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3462
f408d82c
SM
34632020-05-19 Simon Marchi <simon.marchi@efficios.com>
3464
3465 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3466
98c59b52
PA
34672020-05-19 Pedro Alves <palves@redhat.com>
3468
3469 * NEWS (set exec-file-mismatch): Adjust entry.
3470 * exec.c: Include "build-id.h".
3471 (validate_exec_file): Try to match build IDs instead of filenames.
3472 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3473 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3474 and pass down 'warn_if_slow'.
3475 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3476 gdb_bfd_open_closure to pass it down.
3477 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3478
4111f652
PA
34792020-05-19 Pedro Alves <palves@redhat.com>
3480
3481 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3482 * target.c (target_fileio_open_1): Rename to target_fileio_open
3483 and make extern. Use bool.
3484 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3485 (target_fileio_read_alloc_1): Adjust.
3486 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3487 (target_fileio_open_warn_if_slow): Delete declaration.
3488
ad80db5b
PA
34892020-05-19 Pedro Alves <palves@redhat.com>
3490
3491 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3492 Adjust all callers.
3493
1d6ce4d3
YS
34942020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3495
3496 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3497 whether disp is negative.
3498
9005fbbb
SM
34992020-05-19 Simon Marchi <simon.marchi@efficios.com>
3500
3501 * symfile.h (struct symfile_segment_data)
3502 <~symfile_segment_data>: Remove.
3503 <segment_info>: Change to std::vector.
3504 * symfile.c (default_symfile_segments): Update.
3505 * elfread.c (elf_symfile_segments): Update.
3506
68b888ff
SM
35072020-05-19 Simon Marchi <simon.marchi@efficios.com>
3508
3509 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3510 <segments>: New.
3511 <segment_bases, segment_sizes>: Remove.
3512 * symfile.c (default_symfile_segments): Update.
3513 * elfread.c (elf_symfile_segments): Update.
3514 * remote.c (remote_target::get_offsets): Update.
3515 * solib-target.c (solib_target_relocate_section_addresses):
3516 Update.
3517
62982abd
SM
35182020-05-19 Simon Marchi <simon.marchi@efficios.com>
3519
3520 * symfile.h (struct symfile_segment_data): Initialize fields.
3521 <~symfile_segment_data>: Add.
3522 (symfile_segment_data_up): New.
3523 (struct sym_fns) <sym_segments>: Return a
3524 symfile_segment_data_up.
3525 (default_symfile_segments): Return a symfile_segment_data_up.
3526 (free_symfile_segment_data): Remove.
3527 (get_symfile_segment_data): Return a symfile_segment_data_up.
3528 * symfile.c (default_symfile_segments): Likewise.
3529 (get_symfile_segment_data): Likewise.
3530 (free_symfile_segment_data): Remove.
3531 (symfile_find_segment_sections): Update.
3532 * elfread.c (elf_symfile_segments): Return a
3533 symfile_segment_data_up.
3534 * remote.c (remote_target::get_offsets): Update.
3535 * solib-target.c (solib_target_relocate_section_addresses):
3536 Update.
3537 * symfile-debug.c (debug_sym_segments): Return a
3538 symfile_segment_data_up.
3539
7f204339
RO
35402020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3541
e52a0f1b
RO
3542 PR build/25981
3543 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3544 Hardcode register numbers.
3545
7f204339
RO
3546 PR build/25981
3547 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3548 procfs_find_LDT_entry): Remove.
3549 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3550 procfs_find_LDT_entry): Remove.
3551 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3552 Remove.
3553
7f32a4d5
PA
35542020-05-17 Pedro Alves <palves@redhat.com>
3555 Andrew Burgess <andrew.burgess@embecosm.com>
3556 Keno Fischer <keno@juliacomputing.com>
3557
3558 PR gdb/25741
3559 * breakpoint.c (build_target_condition_list): Update comments.
3560 (build_target_command_list): Update comments and skip matching
3561 locations.
3562 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3563 a separate function. Simplify "set breakpoint auto-hw off"
3564 handling.
3565 (insert_breakpoints): Update comment.
3566 (tracepoint_locations_match): New parameter. For breakpoints,
3567 compare location types too, if the caller wants to.
3568 (handle_automatic_hardware_breakpoints): New functions.
3569 (bp_location_is_less_than): Also sort by location type and
3570 hardware breakpoint length.
3571 (update_global_location_list): Handle "set breakpoint auto-hw on"
3572 here.
3573 (update_breakpoint_locations): Ask breakpoint_locations_match to
3574 ignore location types.
3575
7d93a1e0
SM
35762020-05-16 Simon Marchi <simon.marchi@efficios.com>
3577
3578 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3579 type::name instead.
3580
d0e39ea2
SM
35812020-05-16 Simon Marchi <simon.marchi@efficios.com>
3582
3583 * gdbtypes.h (struct type) <name, set_name>: New methods.
3584 (TYPE_CODE): Use type::name. Change all call sites used to set
3585 the name to use type::set_name instead.
3586
2dab0c7b
TT
35872020-05-16 Tom Tromey <tom@tromey.com>
3588
3589 * top.c (quit_force): Update.
3590 * infrun.c (handle_no_resumed): Update.
3591 * top.h (all_uis): New function.
3592 (ALL_UIS): Remove.
3593
59f7bd8d
SM
35942020-05-16 Simon Marchi <simon.marchi@efficios.com>
3595
3596 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3597
9bf058f0
PA
35982020-05-16 Pedro Alves <palves@redhat.com>
3599
3600 * ia64-linux-nat.c
3601 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3602 Declare method.
3603 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3604
8f86ae1a
SM
36052020-05-15 Simon Marchi <simon.marchi@efficios.com>
3606
3607 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3608 (sparc64_adi_info): Likewise.
3609
d6bc0792
TT
36102020-05-15 Tom Tromey <tom@tromey.com>
3611
3612 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3613 block_objfile.
3614 (lookup_objfile_from_block): Remove.
3615 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3616 (lookup_global_symbol): Use block_objfile.
3617 * symtab.h (lookup_objfile_from_block): Don't declare.
3618 * printcmd.c (clear_dangling_display_expressions): Use
3619 block_objfile.
3620 * parse.c (operator_check_standard): Use block_objfile.
3621
8c14c3a3
TT
36222020-05-15 Tom Tromey <tom@tromey.com>
3623
3624 * language.c (language_alloc_type_symbol): Set
3625 SYMBOL_SECTION.
3626 * symtab.c (initialize_objfile_symbol): Remove.
3627 (allocate_symbol): Remove.
3628 (allocate_template_symbol): Remove.
3629 * dwarf2/read.c (fixup_go_packaging): Use "new".
3630 (new_symbol): Use "new".
3631 (read_variable): Don't call initialize_objfile_symbol. Use
3632 "new".
3633 (read_func_scope): Use "new".
3634 * xcoffread.c (process_xcoff_symbol): Don't call
3635 initialize_objfile_symbol.
3636 (SYMBOL_DUP): Remove.
3637 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3638 "new".
3639 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3640 (allocate_template_symbol): Don't declare.
3641 (struct symbol): Add copy constructor. Change defaults.
3642 * jit.c (finalize_symtab): Use "new".
3643 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3644 Use "new".
3645 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3646 (common_block_end): Use "new".
3647 * mdebugread.c (parse_symbol): Use "new".
3648 (new_symbol): Likewise.
3649
5b4a1a8d
PW
36502020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3651
3652 * NEWS: Mention changes to help and apropos.
3653
57b4f16e
PW
36542020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3655
3656 * command.h (enum command_class): Improve comments, document
3657 that class_alias is for user-defined aliases, give the class
3658 name for each class, remove unused class_xdb.
3659 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3660 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3661 by a precise class.
3662 * infcmd.c (_initialize_infcmd): Likewise.
3663 * reverse.c (_initialize_reverse): Likewise.
3664 * stack.c (_initialize_stack): Likewise.
3665 * symfile.c (_initialize_symfile): Likewise.
3666 * tracepoint.c (_initialize_tracepoint): Likewise.
3667
7c05caf7
PW
36682020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3669
3670 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3671 when their aliased command is traversed.
3672 (help_cmd): Add fput_command_names_styled call to
3673 output command name and aliases when command has an alias.
3674
3b3aaacb
PW
36752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3676
3677 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3678 * cli/cli-decode.c (help_cmd_list): Declare as static,
3679 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3680 a command together with the command.
3681 (fput_command_name_styled, fput_command_names_styled): New functions.
3682 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3683 fput_command_name_styled.
3684 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3685 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3686
7aa1b46f
PW
36872020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3688
3689 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3690 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3691 * command.h (cmd_show_list): Likewise.
3692 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3693 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3694
89bcba74
PW
36952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3696
3697 * unittests/command-def-selftests.c (traverse_command_structure):
3698 Verify all commands of a list have the same prefix command and
3699 that only the top cmdlist commands have a null prefix.
3700
3f4d92eb
PW
37012020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3702
3703 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3704 as prefix, not one of its aliases.
3705 (set_cmd_prefix): Remove.
3706 (do_add_cmd): Centralize the setting of the prefix of a command, when
3707 command is defined after its full chain of prefix commands.
3708 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3709 (add_setshow_cmd_full): Likewise.
3710 (update_prefix_field_of_prefixed_commands): New function.
3711 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3712 update_prefix_field_of_prefixed_commands.
3713 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3714 addresses of remote_set_cmdlist and remote_show_cmdlist given
3715 as argument, not the address of an argument.
3716 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3717 * gdb/remote.c (_initialize_remote): Likewise.
3718
0605465f
PW
37192020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3720
3721 * cli/cli-cmds.c (alias_command): Check for an existing alias
3722 using lookup_cmd_composition, as valid_command_p is too strict
3723 and forbids aliases that are the prefix of an existing alias
3724 or command.
3725 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3726 command is properly recognised as a valid command.
3727
58e6ac70
PW
37282020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3729
3730 * unittests/help-doc-selftests.c: Rename to
3731 unittests/command-def-selftests.c
3732 * unittests/command-def-selftests.c (help_doc_tests): Update some
3733 comments.
3734 (command_structure_tests, traverse_command_structure): New namespace
3735 and function.
3736 (command_structure_invariants_tests): New function.
3737 (_initialize_command_def_selftests) Renamed from
3738 _initialize_help_doc_selftests, register command_structure_invariants
3739 selftest.
3740
a7b9ceb8
PW
37412020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3742
3743 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3744 an alias of 'show'.
3745
b2188a06
JB
37462020-05-15 Joel Brobecker <brobecker@adacore.com>
3747
3748 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3749 ada_is_fixed_point_type. Update all callers.
3750 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3751 all callers.
3752 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3753 Update all callers.
3754 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3755 print_fixed_point_type. Update all callers.
3756 * ada-valprint.c (ada_value_print_num): Replace call to
3757 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3758
a51951c2
KB
37592020-05-14 Kevin Buettner <kevinb@redhat.com>
3760
3761 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3762 processors.
3763 (cpu_supports_bts): Add CV_AMD case.
3764
29d6859f
LM
37652020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3766 Simon Marchi <simon.marchi@efficios.com>
3767
3768 * infrun.c (stop_all_threads): Collect multiple wait events at
3769 each pass.
3770
78134374
SM
37712020-05-14 Simon Marchi <simon.marchi@efficios.com>
3772
3773 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3774 type::code instead.
3775
67607e24
SM
37762020-05-14 Simon Marchi <simon.marchi@efficios.com>
3777
3778 * gdbtypes.h (struct type) <code, set_code>: New methods.
3779 (TYPE_CODE): Use type::code. Change all call sites used to set
3780 the code to use type::set_code instead.
3781
a05575d3
TBA
37822020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3783 Tom de Vries <tdevries@suse.de>
3784 Pedro Alves <palves@redhat.com>
3785
3786 PR threads/25478
3787 * infrun.c (stop_all_threads): Do NOT ignore
3788 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3789 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3790 received.
3791 (handle_no_resumed): Remove code handling a live inferior with no
3792 threads.
3793 * remote.c (has_single_non_exited_thread): New.
3794 (remote_target::update_thread_list): Do not delete a thread if is
3795 the last thread of the process.
3796 * thread.c (thread_select): Call delete_exited_threads instead of
3797 prune_threads.
3798
6ad82919
TBA
37992020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3800
3801 * infrun.c (stop_all_threads): Enable/disable thread events of all
3802 targets. Move a debug message denoting the end of the function
3803 into the SCOPED_EXIT block.
3804
d890404b
TBA
38052020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3806
3807 * process-stratum-target.h: Include <set>.
3808 (all_non_exited_process_targets, switch_to_target_no_thread): New
3809 function declarations.
3810 * process-stratum-target.c (all_non_exited_process_targets)
3811 (switch_to_target_no_thread): New function implementations.
3812
293b3ebc
TBA
38132020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3814
3815 * infrun.c (handle_inferior_event): Extract out a piece of code
3816 into...
3817 (mark_non_executing_threads): ...this new function.
3818
7ca9b62a
TBA
38192020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3820
3821 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3822 use.
3823
fc75c28b
TBA
38242020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3825
3826 * regcache.c (regcache_read_pc_protected): New function
3827 implementation that returns 0 if the PC cannot read via
3828 'regcache_read_pc'.
3829 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3830 instead of 'regcache_read_pc'.
3831 (keep_going_pass_signal): Ditto.
3832
a89febbd
TT
38332020-05-13 Tom Tromey <tromey@adacore.com>
3834
3835 * ada-lang.c (align_value): Remove.
3836 (ada_template_to_fixed_record_type_1): Use align_up.
3837
f7e23710
TBA
38382020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3839
3840 * async-event.c: Update the copyright year.
3841 * async-event.h: Update the copyright year.
3842
02ff80c2
SM
38432020-05-12 Simon Marchi <simon.marchi@efficios.com>
3844
3845 * objfiles.h (is_addr_in_objfile,
3846 shared_objfile_contains_address_p): Return bool.
3847 * objfile.c (is_addr_in_objfile,
3848 shared_objfile_contains_address_p): Return bool.
3849
4fd6c7e8
TT
38502020-05-11 Tom Tromey <tromey@adacore.com>
3851
3852 * cli/cli-cmds.c (info_command): Restore.
3853 (_initialize_cli_cmds): Use add_prefix_command for "info".
3854 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3855
5eb68a39
TT
38562020-05-11 Tom Tromey <tromey@adacore.com>
3857
3858 * ada-lang.c (ada_value_primitive_field): Now public.
3859 * ada-lang.h (ada_value_primitive_field): Declare.
3860 * ada-valprint.c (print_field_values): Use
3861 ada_value_primitive_field for wrapper fields.
3862
7666722f
TV
38632020-05-11 Tom de Vries <tdevries@suse.de>
3864
3865 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3866 MODULE_DOMAIN.
3867
3ee6bb11
TV
38682020-05-11 Tom de Vries <tdevries@suse.de>
3869
3870 PR symtab/25941
3871 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3872 with length 0, if not gdb-produced.
3873 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3874
43434996
TV
38752020-05-09 Tom de Vries <tdevries@suse.de>
3876
3877 PR gdb/25955
3878 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3879 calculation.
3880
2f78cffc
TT
38812020-05-09 Tom Tromey <tom@tromey.com>
3882
3883 * top.c (server_command): Now bool.
3884 * top.h (server_command): Now bool.
3885
4f7bc5ed
TT
38862020-05-08 Tom Tromey <tromey@adacore.com>
3887
3888 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3889 already being processed.
3890
8be4b118
TT
38912020-05-08 Tom Tromey <tom@tromey.com>
3892
3893 * printcmd.c (struct display) <next>: Remove.
3894 <display>: New constructor.
3895 <exp_string>: Now a std::string.
3896 <enabled_p>: Now a bool.
3897 (display_number): Move definition earlier.
3898 (displays): Rename from display_chain. Now a std::vector.
3899 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3900 (display_command): Update.
3901 (do_one_display, disable_display)
3902 (enable_disable_display_command, do_enable_disable_display):
3903 Update.
3904 (free_display): Remove.
3905 (clear_displays): Rewrite.
3906 (delete_display): Update.
3907 (map_display_numbers): Use function_view. Remove "data"
3908 parameter. Update.
3909 (do_delete_display): Remove.
3910 (undisplay_command): Update.
3911 (do_one_display, do_displays, disable_display)
3912 (info_display_command): Update.
3913 (do_enable_disable_display): Remove.
3914 (enable_disable_display_command)
3915 (clear_dangling_display_expressions): Update.
3916
94c93c35
TT
39172020-05-08 Tom Tromey <tom@tromey.com>
3918
3919 * symtab.c (set_symbol_cache_size)
3920 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3921 (maintenance_print_symbol_cache_statistics): Update.
3922 * symmisc.c (print_symbol_bcache_statistics)
3923 (print_objfile_statistics, maintenance_print_objfiles)
3924 (maintenance_info_symtabs, maintenance_check_symtabs)
3925 (maintenance_expand_symtabs, maintenance_info_line_tables):
3926 Update.
3927 * symfile-debug.c (set_debug_symfile): Update.
3928 * source.c (forget_cached_source_info): Update.
3929 * python/python.c (gdbpy_progspaces): Update.
3930 * psymtab.c (maintenance_info_psymtabs): Update.
3931 * probe.c (parse_probes): Update.
3932 * linespec.c (iterate_over_all_matching_symtabs)
3933 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3934 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3935 * exec.c (exec_target::close): Update.
3936 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3937 * breakpoint.c (print_one_breakpoint_location)
3938 (create_longjmp_master_breakpoint)
3939 (create_std_terminate_master_breakpoint): Update.
3940 * progspace.c (program_spaces): Now a std::vector.
3941 (maybe_new_address_space): Update.
3942 (add_program_space): Remove.
3943 (program_space::program_space): Update.
3944 (remove_program_space): Update.
3945 (number_of_program_spaces): Remove.
3946 (print_program_space, update_address_spaces): Update.
3947 * progspace.h (program_spaces): Change type.
3948 (ALL_PSPACES): Remove.
3949 (number_of_program_spaces): Don't declare.
3950 (struct program_space) <next>: Remove.
3951
a1fd1ac9
TT
39522020-05-08 Tom Tromey <tom@tromey.com>
3953
3954 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3955 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3956 (enable_break): Update.
3957 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3958 (frv_fdpic_find_canonical_descriptor): Update.
3959 (frv_fetch_objfile_link_map): Update.
3960 * progspace.c (program_space::free_all_objfiles): Update.
3961 (program_space::solibs): New method.
3962 * progspace.h (struct program_space) <solibs>: New method.
3963 * solist.h (master_so_list): Don't declare.
3964 (ALL_SO_LIBS): Remove.
3965 * solib.h (so_list_head): Remove.
3966 (update_solib_list): Update comment.
3967 * solib.c (master_so_list): Remove.
3968 (solib_used, update_solib_list, solib_add)
3969 (info_sharedlibrary_command, clear_solib)
3970 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3971
38eae084
TT
39722020-05-08 Tom Tromey <tom@tromey.com>
3973
3974 * extension.c (extension_languages): Now a std::array.
3975 (ALL_EXTENSION_LANGUAGES): Remove.
3976 (get_ext_lang_defn, get_ext_lang_of_file)
3977 (eval_ext_lang_from_control_command): Update.
3978 (finish_ext_lang_initialization)
3979 (auto_load_ext_lang_scripts_for_objfile)
3980 (ext_lang_type_printers::ext_lang_type_printers)
3981 (apply_ext_lang_type_printers)
3982 (ext_lang_type_printers::~ext_lang_type_printers)
3983 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3984 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3985 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3986 (get_matching_xmethod_workers, ext_lang_colorize)
3987 (ext_lang_before_prompt): Update.
3988 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3989
596dc4ad
TT
39902020-05-08 Tom Tromey <tom@tromey.com>
3991
3992 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3993 overload.
3994 <swap_string, m_string>: Remove.
3995 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3996 Update.
3997 * stabsread.c (define_symbol, read_type): Update.
3998 * linespec.c (find_linespec_symbols): Update.
3999 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4000 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4001 * dbxread.c (read_dbx_symtab): Update.
4002 * cp-support.h (cp_canonicalize_string_full)
4003 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4004 Return unique_xmalloc_ptr.
4005 * cp-support.c (inspect_type): Update.
4006 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4007 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4008 Likewise.
4009 * c-typeprint.c (print_name_maybe_canonical): Update.
4010 * break-catch-throw.c (check_status_exception_catchpoint):
4011 Update.
4012
bf4cb9be
TV
40132020-05-08 Tom de Vries <tdevries@suse.de>
4014
4015 * infrun.c (follow_fork): Copy current_line and current_symtab to
4016 child thread.
4017
a1b68f28
SM
40182020-05-07 Simon Marchi <simon.marchi@efficios.com>
4019
4020 * async-event.c (struct async_signal_handler, struct
4021 async_event_handler): Reformat, remove typedef.
4022
98d48915
SM
40232020-05-07 Simon Marchi <simon.marchi@efficios.com>
4024
4025 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4026 access thistype->main_type->dyn_prop_list directly.
4027
7aa91313
SM
40282020-05-07 Simon Marchi <simon.marchi@efficios.com>
4029
4030 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4031 (remove_dyn_prop): Remove. Update all users to use
4032 type::remove_dyn_prop.
4033 * gdbtypes.c (remove_dyn_prop): Rename to...
4034 (type::remove_dyn_prop): ... this.
4035
5c54719c
SM
40362020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4037
4038 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4039 (add_dyn_prop): Remove. Update all users to use
4040 type::add_dyn_prop.
4041 * gdbtypes.c (add_dyn_prop): Rename to...
4042 (type::add_dyn_prop): ... this.
4043
24e99c6c
SM
40442020-05-07 Simon Marchi <simon.marchi@efficios.com>
4045
4046 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4047 (get_dyn_prop): Remove. Update all users to use
4048 type::dyn_prop.
4049 * gdbtypes.c (get_dyn_prop): Rename to...
4050 (type::dyn_prop): ... this.
4051
0d4bf016
SM
40522020-05-06 Simon Marchi <simon.marchi@efficios.com>
4053
4054 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4055
ac4a4f1c
SM
40562020-05-06 Simon Marchi <simon.marchi@efficios.com>
4057
4058 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4059 instruction, skip it if it's there.
4060
a3bbacc1
SM
40612020-05-05 Simon Marchi <simon.marchi@efficios.com>
4062
4063 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4064
c3236f84
SM
40652020-05-04 Simon Marchi <simon.marchi@efficios.com>
4066
4067 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4068 * gdbtypes.c (recursive_dump_type): Remove use of
4069 TYPE_INCOMPLETE.
4070
3b6acaee
TT
40712020-05-03 Tom Tromey <tom@tromey.com>
4072
4073 * breakpoint.c (catch_command, tcatch_command): Remove.
4074 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4075 add_show_prefix_cmd.
4076 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4077 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4078 Remove.
4079 (add_internal_problem_command): Use add_basic_prefix_cmd,
4080 add_show_prefix_cmd.
4081 * mips-tdep.c (set_mipsfpu_command): Remove.
4082 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4083 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4084 (_initialize_index_cache): Use add_basic_prefix_cmd.
4085 * memattr.c (dummy_cmd): Remove.
4086 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4087 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4088 (_initialize_tui_win): Use add_basic_prefix_cmd,
4089 add_show_prefix_cmd.
4090 * cli/cli-logging.c (set_logging_command): Remove.
4091 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4092 add_show_prefix_cmd.
4093 (show_logging_command): Remove.
4094 * target.c (target_command): Remove.
4095 (add_target): Use add_basic_prefix_cmd.
4096
a51119cd
HD
40972020-05-02 Hannes Domani <ssbssa@yahoo.de>
4098
4099 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4100
652fc23a 41012020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4102
652fc23a
PW
4103 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4104 info_command.
4105
117539e6
KR
41062020-04-30 Kamil Rytarowski <n54@gmx.com>
4107
4108 * nbsd-nat.c (nbsd_enable_proc_events)
4109 (nbsd_nat_target::post_startup_inferior): Add.
4110 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4111 (nbsd_nat_target::update_thread_list): Rewrite.
4112 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4113 "PTRACE_LWP_CREATE".
4114 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4115
102e38eb 41162020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4117
102e38eb
PW
4118 * stack.c (_initialize_stack): Remove duplicated creation
4119 of "frame" command and "f" alias.
4120
ee9d1e5f
HD
41212020-04-30 Hannes Domani <ssbssa@yahoo.de>
4122
4123 PR gdb/18706
4124 * gdbtypes.c (check_typedef): Calculate size of array of
4125 stubbed type.
4126
627c7fb8
HD
41272020-04-30 Hannes Domani <ssbssa@yahoo.de>
4128
4129 PR gdb/15559
4130 * i386-tdep.c (i386_push_dummy_call): Call
4131 i386_thiscall_push_dummy_call.
4132 (i386_thiscall_push_dummy_call): New function.
4133 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4134 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4135 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4136
ffc2844e
SM
41372020-04-29 Simon Marchi <simon.marchi@efficios.com>
4138
4139 * gdbarch.sh (do_read): Add shellcheck disable directive for
4140 warning SC2162.
4141
1207375d
SM
41422020-04-29 Simon Marchi <simon.marchi@efficios.com>
4143
4144 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4145 "referenced but not assigned" warning.
4146
9fdb2916
SM
41472020-04-29 Simon Marchi <simon.marchi@efficios.com>
4148
4149 * gdbarch.sh: Remove code that sets fallbackdefault.
4150
759cea5e
SM
41512020-04-29 Simon Marchi <simon.marchi@efficios.com>
4152
4153 * gdbarch.sh: Use shell operators && and || instead of
4154 -a and -o.
4155
cb02ab24
SM
41562020-04-29 Simon Marchi <simon.marchi@efficios.com>
4157
4158 * gdbarch.sh: Use $(...) instead of `...`.
4159
a6fc5ffc
SM
41602020-04-29 Simon Marchi <simon.marchi@efficios.com>
4161
4162 * gdbarch.sh: Use double quotes around variables.
4163
8d113d13
SM
41642020-04-29 Simon Marchi <simon.marchi@efficios.com>
4165
4166 * gdbarch.sh: Use %s with printf, instead of variables in the
4167 format string.
4168
ed6acedd
TT
41692020-04-29 Tom Tromey <tromey@adacore.com>
4170
4171 PR ada/25875:
4172 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4173 type fields here.
4174 (read_enumeration_type): Call
4175 update_enumeration_type_from_children later. Update comments.
4176 (process_enumeration_scope): Don't create type fields.
4177
b68b1b58
KR
41782020-04-29 Kamil Rytarowski <n54@gmx.com>
4179
4180 * nbsd-tdep.c: Include "xml-syscall.h".
4181 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4182
f94b2e03
KR
41832020-04-29 Kamil Rytarowski <n54@gmx.com>
4184
4185 * nbsd-nat.c: Include "sys/wait.h".
4186 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4187 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4188 (nbsd_nat_target::remove_exec_catchpoint)
4189 (nbsd_nat_target::set_syscall_catchpoint): Add.
4190 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4191 (nbsd_nat_target::insert_exec_catchpoint)
4192 (nbsd_nat_target::remove_exec_catchpoint)
4193 (nbsd_nat_target::set_syscall_catchpoint): Add.
4194 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4195 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4196 `nbsd_get_syscall_number'.
4197
fc49bc72
TT
41982020-04-29 Tom Tromey <tom@tromey.com>
4199
4200 * stack.c (print_block_frame_labels): Remove.
4201
d642b692
HD
42022020-04-29 Hannes Domani <ssbssa@yahoo.de>
4203
4204 PR gdb/17320
4205 * ada-valprint.c (val_print_packed_array_elements): Move array
4206 end bracket to new line.
4207 (ada_val_print_string): Remove extra spaces before first array
4208 element.
4209 * c-valprint.c (c_value_print_array): Likewise.
4210 * m2-valprint.c (m2_print_array_contents): Likewise.
4211 (m2_value_print_inner): Likewise.
4212 * p-valprint.c (pascal_value_print_inner): Likewise.
4213 * valprint.c (generic_val_print_array): Likewise.
4214 (value_print_array_elements): Move first array element and array
4215 end bracket to new line.
4216
ea90f227
TV
42172020-04-29 Tom de Vries <tdevries@suse.de>
4218
4219 PR symtab/25889
4220 * linespec.c (find_method): Fix ix calculation.
4221
4498ef4f
KR
42222020-04-28 Kamil Rytarowski <n54@gmx.com>
4223
4224 * syscalls/update-netbsd.sh: New file.
4225 * syscalls/netbsd.xml: Regenerate.
4226 * data-directory/Makefile.in: Register `netbsd.xml' in
4227 `SYSCALLS_FILES'.
4228
a55e30b5
SM
42292020-04-28 Simon Marchi <simon.marchi@efficios.com>
4230
4231 * syscalls/update-freebsd.sh: Add double quotes.
4232
2b2fbab8
TT
42332020-04-28 Tom Tromey <tom@tromey.com>
4234
4235 * NEWS: Update.
4236 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4237 (cmdpy_init): Allow class_tui.
4238
a65189c9
TV
42392020-04-28 Mark Williams <mark@myosotissp.com>
4240
4241 PR gdb/24480
4242 * dwarf2read.c: Add missing assingments to list_in_scope when
4243 start_symtab was already called.
4244
1b95cdb7
SM
42452020-04-28 Simon Marchi <simon.marchi@efficios.com>
4246
4247 PR gdb/25881
4248 * dwarf2/read.c (offset_map_type): Use
4249 gdb:hash_enum<sect_offset> as hash function.
4250
15cd93d0
TV
42512020-04-28 Tom de Vries <tdevries@suse.de>
4252
4253 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4254 with DW_AT_signature.
4255
1eb39914
SM
42562020-04-27 Simon Marchi <simon.marchi@efficios.com>
4257
4258 * configure.ac: Remove check for fs_base/gs_base in
4259 user_regs_struct.
4260 * configure: Re-generate.
4261 * config.in: Re-generate.
4262 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4263 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4264 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4265
991a3e2e
LM
42662020-04-27 Luis Machado <luis.machado@linaro.org>
4267
4268 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4269 problematic inline frame unwinding situation.
4270 * frame.c (frame_id_computed_p): New function.
4271 * frame.h (frame_id_computed_p): New prototype.
4272
361ba0e8
TT
42732020-04-26 Tom Tromey <tom@tromey.com>
4274
4275 * command.h (enum command_class) <class_pseudo>: Remove.
4276
bc3609fd
PW
42772020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4278
4279 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4280 and whitespace.
4281
b9771db7
KR
42822020-04-25 Kamil Rytarowski <n54@gmx.com>
4283
ec16513e
SM
4284 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4285 `PT_GET_PROCESS_STATE' block.
b9771db7 4286
7151c1af
TT
42872020-04-24 Tom Tromey <tom@tromey.com>
4288
4289 * symtab.h (symbol_get_demangled_name): Don't declare.
4290 * symtab.c (symbol_get_demangled_name): Remove.
4291 (general_symbol_info::natural_name)
4292 (general_symbol_info::demangled_name): Update.
4293
906bb4c5
TT
42942020-04-24 Tom Tromey <tom@tromey.com>
4295
4296 PR rust/25025:
4297 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4298
bcfe6157
TT
42992020-04-24 Tom Tromey <tom@tromey.com>
4300
4301 PR symtab/12707:
4302 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4303 exists.
4304 (new_symbol): Likewise.
4305 * compile/compile-object-load.c (get_out_value_type): Use
4306 symbol_matches_search_name.
4307
f049a313
TT
43082020-04-24 Tom Tromey <tom@tromey.com>
4309
4310 * dwarf2/read.c (add_partial_symbol): Do not call
4311 compute_and_set_names.
4312
76e288d1
TT
43132020-04-24 Tom Tromey <tom@tromey.com>
4314
4315 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4316 overload.
4317
2467f4f6
TT
43182020-04-24 Tom Tromey <tom@tromey.com>
4319
4320 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4321 (add_psymbol_to_list): New overload. Make old overload call new
4322 one.
4323 * psympriv.h (add_psymbol_to_list): New overload.
4324
e61108c9
TT
43252020-04-24 Tom Tromey <tom@tromey.com>
4326
4327 * dwarf2/read.c (partial_die_info::read) <case
4328 DW_AT_linkage_name>: Use value_as_string.
4329 (dwarf2_string_attr): Use value_as_string.
4330 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4331 method.
4332 * dwarf2/attribute.c (attribute::value_as_string): New method.
4333
8c87a452
TT
43342020-04-24 Tom Tromey <tom@tromey.com>
4335
4336 * symtab.c (general_symbol_info::natural_name)
4337 (general_symbol_info::demangled_name): Check for language_rust.
4338
787de330
TT
43392020-04-24 Tom Tromey <tom@tromey.com>
4340
4341 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4342 (dwarf2_physname): ... from here.
4343 (partial_die_info::read): Add Rust "{" hack.
4344
ff985671
TT
43452020-04-24 Tom Tromey <tom@tromey.com>
4346
4347 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4348 method.
4349 (symbol_set_demangled_name): Don't declare.
4350 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4351 symbol_set_demangled_name.
4352 (general_symbol_info::set_language)
4353 (general_symbol_info::compute_and_set_names): Update.
4354 * minsyms.c (minimal_symbol_reader::install): Update.
4355 * dwarf2/read.c (new_symbol): Update.
4356
1acda803
TT
43572020-04-24 Tom Tromey <tromey@adacore.com>
4358
4359 PR python/23662:
4360 * python/py-type.c (convert_field): Handle
4361 FIELD_LOC_KIND_DWARF_BLOCK.
4362 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4363 (typy_get_dynamic): Nw function.
4364 (type_object_getset): Add "dynamic".
4365 * NEWS: Add entry.
4366
d656f129
TT
43672020-04-24 Tom Tromey <tromey@adacore.com>
4368
4369 * ada-typeprint.c (print_choices, print_variant_part)
4370 (print_record_field_types_dynamic): New functions.
4371 (print_record_field_types): Use print_record_field_types_dynamic.
4372
7d79de9a
TT
43732020-04-24 Tom Tromey <tromey@adacore.com>
4374
4375 * dwarf2/read.c (handle_data_member_location): New overload.
4376 (dwarf2_add_field): Use it.
4377 (decode_locdesc): Add "computed" parameter. Update comment.
4378 * gdbtypes.c (is_dynamic_type_internal): Also look for
4379 FIELD_LOC_KIND_DWARF_BLOCK.
4380 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4381 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4382 virtual base classes.
4383 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4384 FIELD_LOC_KIND_DWARF_BLOCK.
4385
f8e89861
TT
43862020-04-24 Tom Tromey <tromey@adacore.com>
4387
4388 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4389 * gdbtypes.c (is_dynamic_type_internal): Check
4390 TYPE_HAS_DYNAMIC_LENGTH.
4391 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4392 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4393 New macros.
4394 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4395 constant.
4396
9c6a1327
TT
43972020-04-24 Tom Tromey <tromey@adacore.com>
4398
4399 * dwarf2/read.c (struct variant_field): Rewrite.
4400 (struct variant_part_builder): New.
4401 (struct nextfield): Remove "variant" field. Add "offset".
4402 (struct field_info): Add "current_variant_part" and
4403 "variant_parts".
4404 (alloc_discriminant_info): Remove.
4405 (alloc_rust_variant): New function.
4406 (quirk_rust_enum): Update.
4407 (dwarf2_add_field): Set "offset" member. Don't handle
4408 DW_TAG_variant_part.
4409 (offset_map_type): New typedef.
4410 (convert_variant_range, create_one_variant)
4411 (create_one_variant_part, create_variant_parts)
4412 (add_variant_property): New functions.
4413 (dwarf2_attach_fields_to_type): Call add_variant_property.
4414 (read_structure_type): Don't handle DW_TAG_variant_part.
4415 (handle_variant_part, handle_variant): New functions.
4416 (handle_struct_member_die): Use them.
4417 (process_structure_scope): Don't handle variant parts.
4418 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4419 (struct discriminant_info): Remove.
4420 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4421 (struct main_type) <flag_discriminated_union>: Remove.
4422 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4423 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4424 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4425 Update.
4426 * valops.c (value_union_variant): Remove.
4427 * value.h (value_union_variant): Don't declare.
4428
b249d2c2
TT
44292020-04-24 Tom Tromey <tromey@adacore.com>
4430
4431 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4432 (ada_value_primitive_packed_val): Update.
4433 * ada-valprint.c (ada_value_print_1): Update.
4434 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4435 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4436 just an address. Use evaluate_for_locexpr_baton.
4437 (dwarf2_evaluate_property): Update.
4438 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4439 array_view.
4440 * findvar.c (default_read_var_value): Update.
4441 * gdbtypes.c (compute_variant_fields_inner)
4442 (resolve_dynamic_type_internal): Update.
4443 (resolve_dynamic_type): Change type of valaddr parameter.
4444 * gdbtypes.h (resolve_dynamic_type): Update.
4445 * valarith.c (value_subscripted_rvalue): Update.
4446 * value.c (value_from_contents_and_address): Update.
4447
61122aa9
TT
44482020-04-24 Tom Tromey <tromey@adacore.com>
4449
4450 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4451 "push_initial_value" parameter.
4452 (dwarf2_evaluate_property): Likewise.
4453 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4454
ef83a141
TT
44552020-04-24 Tom Tromey <tromey@adacore.com>
4456
4457 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4458 (variant::matches, compute_variant_fields_recurse)
4459 (compute_variant_fields_inner, compute_variant_fields): New
4460 functions.
4461 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4462 Use resolved_type after type is made.
4463 (operator==): Add new cases.
4464 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4465 (struct discriminant_range, struct variant, struct variant_part):
4466 New.
4467 (union dynamic_prop_data) <variant_parts, original_type>: New
4468 members.
4469 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4470 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4471 constants.
4472 * value.c (unpack_bits_as_long): Now public.
4473 * value.h (unpack_bits_as_long): Declare.
4474
675127ec
TT
44752020-04-24 Tom Tromey <tromey@adacore.com>
4476
4477 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4478 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4479
9852ceef
HD
44802020-04-24 Hannes Domani <ssbssa@yahoo.de>
4481
4482 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4483
7632c6ce
KR
44842020-04-24 Kamil Rytarowski <n54@gmx.com>
4485
4486 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4487 (remove_fork_catchpoint, post_startup_inferior)
4488 (post_attach): Move...
4489 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4490 (remove_fork_catchpoint, post_startup_inferior)
4491 (post_attach): ...here.
4492 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4493 (remove_fork_catchpoint, post_startup_inferior)
4494 (post_attach): Move...
4495 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4496 (remove_fork_catchpoint, post_startup_inferior)
4497 (post_attach): ...here.
4498
7be2bb4f
TT
44992020-04-24 Tom Tromey <tromey@adacore.com>
4500
4501 * nat/windows-nat.h (struct windows_thread_info)
4502 <pc_adjusted>: New member.
4503 * windows-nat.c (windows_fetch_one_register): Check
4504 pc_adjusted.
4505 (windows_nat_target::get_windows_debug_event)
4506 (windows_nat_target::wait): Set pc_adjusted.
4507
f80cb3b4
TV
45082020-04-24 Tom de Vries <tdevries@suse.de>
4509
4510 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4511 Run gdb-add-index inside temp dir.
4512
29514b87
TT
45132020-04-23 Tom Tromey <tromey@adacore.com>
4514
4515 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4516 in loop.
4517
5939967b
LM
45182020-04-23 Luis Machado <luis.machado@linaro.org>
4519
4520 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4521 get_frame_register instead of gdbarch_unwind_pc.
4522
70bc38f5
TV
45232020-04-23 Tom de Vries <tdevries@suse.de>
4524
4525 * symtab.c (lookup_global_symbol): Prefer def over decl.
4526
de82891c
TV
45272020-04-23 Tom de Vries <tdevries@suse.de>
4528
4529 PR symtab/25807
4530 * block.c (best_symbol, better_symbol): Promote to external.
4531 * block.h (best_symbol, better_symbol): Declare.
4532 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4533 decl.
4534
ecc6c606
TT
45352020-04-23 Tom Tromey <tromey@adacore.com>
4536
4537 PR ada/25837:
4538 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4539 "const char *", not a "const std::string &".
4540 <name_and_matcher::operator==>: Update.
4541 * unittests/lookup_name_info-selftests.c: Change type of
4542 "result".
4543
740480b8
TT
45442020-04-23 Tom Tromey <tom@tromey.com>
4545
4546 * inferior.h (iterate_over_inferiors): Don't declare.
4547 * inferior.c (iterate_over_inferiors): Remove.
4548 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4549 Remove.
4550 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4551 use iterate_over_inferiors.
4552 (darwin_resume_inferior_it)
4553 (struct resume_inferior_threads_param)
4554 (darwin_resume_inferior_threads_it): Remove.
4555 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4556
ae3ab1f0
TV
45572020-04-23 Tom de Vries <tdevries@suse.de>
4558
4559 * blockframe.c (find_pc_partial_function): Use
4560 find_pc_sect_compunit_symtab rather than
4561 objfile->sf->qf->find_pc_sect_compunit_symtab.
4562
317d2668
TV
45632020-04-22 Tom de Vries <tdevries@suse.de>
4564
4565 PR symtab/25764
4566 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4567 in psymtabs.
4568
eea9e357
TV
45692020-04-22 Tom de Vries <tdevries@suse.de>
4570
4571 PR symtab/25801
4572 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4573 symtabs.
4574
3d5afab3
TV
45752020-04-22 Tom de Vries <tdevries@suse.de>
4576
4577 PR symtab/25700
4578 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4579 CU if already created.
4580
d43b7a2d
TBA
45812020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4582
4583 * infrun.c (displaced_step_fixup): Switch to the event_thread
4584 before calling displaced_step_restore, not after.
4585
d89edf9b
MM
45862020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4587
4588 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4589 its inferior is not recorded by us.
4590 (record_btrace_target_open): Replace call to
4591 all_non_exited_threads () with call to current_inferior
4592 ()->non_exited_threads ().
4593 (record_btrace_target::stop_recording): Likewise.
4594 (record_btrace_target::close): Likewise.
4595 (record_btrace_target::wait): Likewise.
4596 (record_btrace_target::record_stop_replaying): Likewise.
4597
5897fd49
MM
45982020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4599
4600 * btrace.c (btrace_enable): Throw an error on double enables and
4601 when enabling recording fails.
4602 (btrace_disable): Throw an error if the thread is not recorded.
4603
1a476b6d
MM
46042020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4605
4606 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4607 request if we do not have a thread_info.
4608
4778a5f8
TV
46092020-04-21 Tom de Vries <tdevries@suse.de>
4610
4611 PR gdb/25471
4612 * thread.c
4613 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4614 exception in get_frame_id.
4615
0fa7617d
TT
46162020-04-20 Tom Tromey <tromey@adacore.com>
4617
4618 * python/python.c (struct gdbpy_event): Mark move constructor as
4619 noexcept.
4620 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4621 constructor as noexcept.
4622 * completer.h (struct completion_result): Mark move constructor as
4623 noexcept.
4624 * completer.c (completion_result::completion_result): Use
4625 initialization style. Don't call reset_match_list.
4626
ad23bda0
MS
46272020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4628
4629 * MAINTAINERS (Write After Approval): Add myself.
4630
45e1f031
TT
46312020-04-18 Tom Tromey <tom@tromey.com>
4632
4633 * windows-tdep.c (init_w32_command_list)
4634 (w32_prefix_command_valid): Restore.
4635 (_initialize_windows_tdep): Call init_w32_command_list.
4636
08feed99
TT
46372020-04-18 Tom Tromey <tom@tromey.com>
4638
4639 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4640 * value.c (value_fn_field): Update.
4641 * valops.c (find_function_in_inferior)
4642 (value_allocate_space_in_inferior): Update.
4643 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4644 Update.
4645 * tui/tui-source.c (tui_source_window::set_contents): Update.
4646 * symtab.c (lookup_global_or_static_symbol)
4647 (find_function_start_sal_1, skip_prologue_sal)
4648 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4649 * symmisc.c (dump_msymbols, dump_symtab_1)
4650 (maintenance_print_one_line_table): Update.
4651 * symfile.c (init_entry_point_info, section_is_mapped)
4652 (list_overlays_command, simple_read_overlay_table)
4653 (simple_overlay_update_1): Update.
4654 * stap-probe.c (handle_stap_probe): Update.
4655 * stabsread.c (dbx_init_float_type, define_symbol)
4656 (read_one_struct_field, read_enum_type, read_range_type): Update.
4657 * source.c (info_line_command): Update.
4658 * python/python.c (gdbpy_source_objfile_script)
4659 (gdbpy_execute_objfile_script): Update.
4660 * python/py-type.c (save_objfile_types): Update.
4661 * python/py-objfile.c (py_free_objfile): Update.
4662 * python/py-inferior.c (python_new_objfile): Update.
4663 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4664 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4665 (maintenance_check_psymtabs): Update.
4666 * printcmd.c (info_address_command): Update.
4667 * objfiles.h (struct objfile) <arch>: New method, from
4668 get_objfile_arch.
4669 (get_objfile_arch): Don't declare.
4670 * objfiles.c (get_objfile_arch): Remove.
4671 (filter_overlapping_sections): Update.
4672 * minsyms.c (msymbol_is_function): Update.
4673 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4674 (output_nondebug_symbol): Update.
4675 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4676 (mdebug_expand_psymtab): Update.
4677 * machoread.c (macho_add_oso_symfile): Update.
4678 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4679 Update.
4680 * linux-fork.c (checkpoint_command): Update.
4681 * linespec.c (convert_linespec_to_sals): Update.
4682 * jit.c (finalize_symtab): Update.
4683 * infrun.c (insert_exception_resume_from_probe): Update.
4684 * ia64-tdep.c (ia64_find_unwind_table): Update.
4685 * hppa-tdep.c (internalize_unwinds): Update.
4686 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4687 Update.
4688 * gcore.c (call_target_sbrk): Update.
4689 * elfread.c (record_minimal_symbol, elf_symtab_read)
4690 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4691 (elf_gnu_ifunc_resolve_by_got): Update.
4692 * dwarf2/read.c (create_addrmap_from_index)
4693 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4694 (read_debug_names_from_section)
4695 (process_psymtab_comp_unit_reader, add_partial_symbol)
4696 (add_partial_subprogram, process_full_comp_unit)
4697 (read_file_scope, read_func_scope, read_lexical_block_scope)
4698 (read_call_site_scope, dwarf2_ranges_read)
4699 (dwarf2_record_block_ranges, dwarf2_add_field)
4700 (mark_common_block_symbol_computed, read_tag_pointer_type)
4701 (read_tag_string_type, dwarf2_init_float_type)
4702 (dwarf2_init_complex_target_type, read_base_type)
4703 (partial_die_info::read, partial_die_info::read)
4704 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4705 (dwarf2_fetch_die_loc_sect_off): Update.
4706 * dwarf2/loc.c (dwarf2_find_location_expression)
4707 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4708 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4709 (dwarf2_loc_desc_get_symbol_read_needs)
4710 (locexpr_describe_location_piece, locexpr_describe_location_1)
4711 (loclist_describe_location): Update.
4712 * dwarf2/index-write.c (write_debug_names): Update.
4713 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4714 * dtrace-probe.c (dtrace_process_dof): Update.
4715 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4716 (process_one_symbol): Update.
4717 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4718 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4719 (coff_read_enum_type): Update.
4720 * cli/cli-cmds.c (edit_command, list_command): Update.
4721 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4722 * breakpoint.c (create_overlay_event_breakpoint)
4723 (create_longjmp_master_breakpoint)
4724 (create_std_terminate_master_breakpoint)
4725 (create_exception_master_breakpoint, get_sal_arch): Update.
4726 * block.c (block_gdbarch): Update.
4727 * annotate.c (annotate_source_line): Update.
4728
0743fc83
TT
47292020-04-17 Tom Tromey <tromey@adacore.com>
4730
4731 * auto-load.c (show_auto_load_cmd): Remove.
4732 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4733 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4734 (maintenance_print_arc_command): Remove.
4735 * tui/tui-win.c (tui_command): Remove.
4736 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4737 * tui/tui-layout.c (tui_layout_command): Remove.
4738 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4739 * python/python.c (user_set_python, user_show_python): Remove.
4740 (_initialize_python): Use add_basic_prefix_cmd,
4741 add_show_prefix_cmd.
4742 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4743 (install_gdb_commands): Use add_basic_prefix_cmd,
4744 add_show_prefix_cmd.
4745 (info_guile_command): Remove.
4746 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4747 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4748 add_show_prefix_cmd.
4749 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4750 Remove do_set and do_show parameters.
4751 * cli/cli-style.c (set_style, show_style): Remove.
4752 (_initialize_cli_style): Use add_basic_prefix_cmd,
4753 add_show_prefix_cmd.
4754 (cli_style_option::add_setshow_commands): Remove do_set and
4755 do_show parameters.
4756 (cli_style_option::add_setshow_commands): Use
4757 add_basic_prefix_cmd, add_show_prefix_cmd.
4758 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4759 (set_style_name): Remove.
4760 * cli/cli-dump.c (dump_command, append_command): Remove.
4761 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4762 (tekhex_dump_command, binary_dump_command)
4763 (binary_append_command): Remove.
4764 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4765 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4766 (init_w32_command_list): Remove; move into ...
4767 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4768 * valprint.c (set_print, show_print, set_print_raw)
4769 (show_print_raw): Remove.
4770 (_initialize_valprint): Use add_basic_prefix_cmd,
4771 add_show_prefix_cmd.
4772 * typeprint.c (set_print_type, show_print_type): Remove.
4773 (_initialize_typeprint): Use add_basic_prefix_cmd,
4774 add_show_prefix_cmd.
4775 * record.c (set_record_command, show_record_command): Remove.
4776 (_initialize_record): Use add_basic_prefix_cmd,
4777 add_show_prefix_cmd.
4778 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4779 add_show_prefix_cmd.
4780 (info_command, show_command, set_debug, show_debug): Remove.
4781 * top.h (set_history, show_history): Don't declare.
4782 * top.c (set_history, show_history): Remove.
4783 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4784 (unset_tdesc_cmd): Remove.
4785 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4786 add_show_prefix_cmd.
4787 * symtab.c (info_module_command): Remove.
4788 (_initialize_symtab): Use add_basic_prefix_cmd.
4789 * symfile.c (overlay_command): Remove.
4790 (_initialize_symfile): Use add_basic_prefix_cmd.
4791 * sparc64-tdep.c (info_adi_command): Remove.
4792 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4793 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4794 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4795 add_show_prefix_cmd.
4796 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4797 (_initialize_serial): Use add_basic_prefix_cmd,
4798 add_show_prefix_cmd.
4799 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4800 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4801 add_show_prefix_cmd.
4802 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4803 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4804 add_show_prefix_cmd.
4805 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4806 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4807 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4808 add_show_prefix_cmd.
4809 * remote.c (remote_command, set_remote_cmd): Remove.
4810 (_initialize_remote): Use add_basic_prefix_cmd.
4811 * record-full.c (set_record_full_command)
4812 (show_record_full_command): Remove.
4813 (_initialize_record_full): Use add_basic_prefix_cmd,
4814 add_show_prefix_cmd.
4815 * record-btrace.c (cmd_set_record_btrace)
4816 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4817 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4818 (cmd_show_record_btrace_pt): Remove.
4819 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4820 add_show_prefix_cmd.
4821 * ravenscar-thread.c (set_ravenscar_command)
4822 (show_ravenscar_command): Remove.
4823 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4824 add_show_prefix_cmd.
4825 * mips-tdep.c (show_mips_command, set_mips_command)
4826 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4827 add_show_prefix_cmd.
4828 * maint.c (maintenance_command, maintenance_info_command)
4829 (maintenance_check_command, maintenance_print_command)
4830 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4831 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4832 add_show_prefix_cmd.
4833 (show_per_command_cmd): Remove.
4834 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4835 Remove.
4836 (maintenance_show_test_settings_cmd): Remove.
4837 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4838 add_show_prefix_cmd.
4839 * maint-test-options.c (maintenance_test_options_command):
4840 Remove.
4841 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4842 * macrocmd.c (macro_command): Remove
4843 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4844 * language.c (set_check, show_check): Remove.
4845 (_initialize_language): Use add_basic_prefix_cmd,
4846 add_show_prefix_cmd.
4847 * infcmd.c (unset_command): Remove.
4848 (_initialize_infcmd): Use add_basic_prefix_cmd.
4849 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4850 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4851 add_show_prefix_cmd.
4852 * go32-nat.c (go32_info_dos_command): Remove.
4853 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4854 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4855 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4856 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4857 (_initialize_frame): Use add_basic_prefix_cmd,
4858 add_show_prefix_cmd.
4859 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4860 (_initialize_dcache): Use add_basic_prefix_cmd,
4861 add_show_prefix_cmd.
4862 * cp-support.c (maint_cplus_command): Remove.
4863 (_initialize_cp_support): Use add_basic_prefix_cmd.
4864 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4865 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4866 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4867 add_basic_prefix_cmd, add_show_prefix_cmd.
4868 * breakpoint.c (save_command): Remove.
4869 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4870 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4871 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4872 add_show_prefix_cmd.
4873 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4874 (set_ada_command, show_ada_command): Remove.
4875 (_initialize_ada_language): Use add_basic_prefix_cmd,
4876 add_show_prefix_cmd.
4877 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4878
3557f442
KR
48792020-04-16 Kamil Rytarowski <n54@gmx.com>
4880
4881 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4882 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4883
16197208
SM
48842020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4885
4886 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4887 warning messages.
4888
00ac85d3
SM
48892020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4890
4891 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4892 import table is not at beginning of .idata section.
4893
381ce63f
PA
48942020-04-16 Pedro Alves <palves@redhat.com>
4895
4896 * inferior.c (delete_inferior): Use delete operator directly
4897 instead of delete_program_space.
4898 * progspace.c (add_program_space): New, factored out from
4899 program_space::program_space.
4900 (remove_program_space): New, factored out from
4901 delete_program_space.
4902 (program_space::program_space): Remove intro comment. Rewrite.
4903 (program_space::~program_space): Remove intro comment. Call
4904 remove_program_space.
4905 (delete_program_space): Delete.
4906 * progspace.h (program_space::program_space): Make explicit. Move
4907 intro comment here, adjusted.
4908 (program_space::~program_space): Move intro comment here,
4909 adjusted.
4910 (delete_program_space): Remove.
4911
a010605f
TT
49122020-04-16 Tom Tromey <tromey@adacore.com>
4913
4914 * windows-nat.c (windows_nat::handle_access_violation): New
4915 function.
4916 * nat/windows-nat.h (handle_access_violation): Declare.
4917 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4918 windows-nat.c. Call handle_access_violation.
4919
efba5c23
TV
49202020-04-16 Tom de Vries <tdevries@suse.de>
4921
4922 PR symtab/25791
4923 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4924 CUs without psymtab.
4925
97ed802d
KB
49262020-04-16 Kevin Buettner <kevinb@redhat.com>
4927
4928 * python/python.c (do_start_initialization): Don't call
4929 PyEval_InitThreads for Python 3.9 and beyond.
4930
c7d64809
KR
49312020-04-15 Kamil Rytarowski <n54@gmx.com>
4932
4933 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4934 thread functions.
4935 (obsd_nat_target::wait): Likewise.
4936
ce127a96
TT
49372020-04-15 Tom Tromey <tromey@adacore.com>
4938
4939 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4940 (DEBUG_EXCEPT): Use debug_printf.
4941
99f1bc6a
AB
49422020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4943
4944 * completer.c (class completion_tracker::completion_hash_entry)
4945 <hash_name>: New member function.
4946 (completion_tracker::discard_completions): New callback to hash a
4947 completion_hash_entry, pass this to htab_create_alloc.
4948
a0e9b532
JT
49492016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4950
4951 * windows-nat.c (windows_make_so): Warn rather than stopping with
4952 an error if realpath() fails.
4953
06ca5dd4
KR
49542020-04-14 Kamil Rytarowski <n54@gmx.com>
4955
4956 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4957 (nbsd_nat_target::info_proc): Add do_status.
4958
194d088f
TV
49592020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4960 Tom de Vries <tdevries@suse.de>
4961
4962 PR symtab/25718
4963 * psympriv.h (struct partial_symtab::read_symtab)
4964 (struct partial_symtab::expand_psymtab)
4965 (struct partial_symtab::read_dependencies): Update comments.
4966 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4967 read_symtab for includer.
4968 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4969 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4970 (struct dwarf2_include_psymtab::m_readin): Remove.
4971 (struct dwarf2_include_psymtab::includer): New member function.
4972 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4973
c1a66c06
TV
49742020-04-14 Tom de Vries <tdevries@suse.de>
4975
4976 PR symtab/25720
4977 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4978 with NULL symbol_matcher and lookup_name.
4979 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4980 and lookup_name.
4981 * dwarf2/read.c (dw2_expand_symtabs_matching)
4982 (dw2_debug_names_expand_symtabs_matching): Same.
4983 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4984 Make lookup_name a pointer. Update comment.
4985 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4986 lookup_name being a pointer.
4987 * symfile.c (expand_symtabs_matching): Same.
4988 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4989 * linespec.c (iterate_over_all_matching_symtabs): Same.
4990
400b5eca
TT
49912020-04-13 Tom Tromey <tom@tromey.com>
4992
4993 * run-on-main-thread.c: Update include.
4994 * unittests/main-thread-selftests.c: Update include.
4995 * tui/tui-win.c: Update include.
4996 * tui/tui-io.c: Update include.
4997 * tui/tui-interp.c: Update include.
4998 * tui/tui-hooks.c: Update include.
4999 * top.h: Update include.
5000 * top.c: Update include.
5001 * ser-base.c: Update include.
5002 * remote.c: Update include.
5003 * remote-notif.c: Update include.
5004 * remote-fileio.c: Update include.
5005 * record-full.c: Update include.
5006 * record-btrace.c: Update include.
5007 * python/python.c: Update include.
5008 * posix-hdep.c: Update include.
5009 * mingw-hdep.c: Update include.
5010 * mi/mi-main.c: Update include.
5011 * mi/mi-interp.c: Update include.
5012 * main.c: Update include.
5013 * linux-nat.c: Update include.
5014 * interps.c: Update include.
5015 * infrun.c: Update include.
5016 * inf-loop.c: Update include.
5017 * event-top.c: Update include.
5018 * event-loop.c: Move to ../gdbsupport/.
5019 * event-loop.h: Move to ../gdbsupport/.
5020 * async-event.h: Update include.
5021 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5022
93b54c8e
TT
50232020-04-13 Tom Tromey <tom@tromey.com>
5024
5025 * tui/tui-win.c: Include async-event.h.
5026 * remote.c: Include async-event.h.
5027 * remote-notif.c: Include async-event.h.
5028 * record-full.c: Include async-event.h.
5029 * record-btrace.c: Include async-event.h.
5030 * infrun.c: Include async-event.h.
5031 * event-top.c: Include async-event.h.
5032 * event-loop.h: Move some declarations to async-event.h.
5033 * event-loop.c: Don't include ser-event.h or top.h. Move some
5034 code to async-event.c.
5035 * async-event.h: New file.
5036 * async-event.c: New file.
5037 * Makefile.in (COMMON_SFILES): Add async-event.c.
5038 (HFILES_NO_SRCDIR): Add async-event.h.
5039
c1cd3163
TT
50402020-04-13 Tom Tromey <tom@tromey.com>
5041
5042 * utils.c (flush_streams): New function.
5043 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5044
29f2bf4f
TT
50452020-04-13 Tom Tromey <tom@tromey.com>
5046
5047 * event-loop.c (handle_file_event): Use warning, not
5048 printf_unfiltered.
5049
98029d02
TT
50502020-04-13 Tom Tromey <tom@tromey.com>
5051
5052 * event-loop.c: Include <chrono>.
5053
06cc9596
TT
50542020-04-13 Tom Tromey <tom@tromey.com>
5055
5056 * gdb_select.h: Move to ../gdbsupport/.
5057 * event-loop.c: Update include path.
5058 * top.c: Update include path.
5059 * ser-base.c: Update include path.
5060 * ui-file.c: Update include path.
5061 * ser-tcp.c: Update include path.
5062 * guile/scm-ports.c: Update include path.
5063 * posix-hdep.c: Update include path.
5064 * ser-unix.c: Update include path.
5065 * gdb_usleep.c: Update include path.
5066 * mingw-hdep.c: Update include path.
5067 * inflow.c: Update include path.
5068 * infrun.c: Update include path.
5069 * event-top.c: Update include path.
5070
8ae8e197
TT
50712020-04-13 Tom Tromey <tom@tromey.com>
5072
5073 * configure: Rebuild.
5074 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5075
58cf28e8
TT
50762020-04-13 Tom Tromey <tom@tromey.com>
5077
5078 * event-loop.h (start_event_loop): Don't declare.
5079 * event-loop.c (start_event_loop): Move...
5080 * main.c (start_event_loop): ...here. Now static.
5081
b7f999ae
SDJ
50822020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5083
5084 * MAINTAINERS: Update my email address.
5085
1085dfd4
KR
50862020-04-12 Kamil Rytarowski <n54@gmx.com>
5087
5088 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5089 IP_ALL.
5090
49d1d1f5
KR
50912020-04-12 Kamil Rytarowski <n54@gmx.com>
5092
5093 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5094 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5095
b4848d2a
KR
50962020-04-12 Kamil Rytarowski <n54@gmx.com>
5097
5098 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5099 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5100
51c133d5
KR
51012020-04-12 Kamil Rytarowski <n54@gmx.com>
5102
5103 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5104
54b8cbd0
KR
51052020-04-11 Kamil Rytarowski <n54@gmx.com>
5106
5107 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5108 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5109 (nbsd_nat_target::info_proc): New functions.
5110 * nbsd-nat.c (kinfo_get_vmmap): New function.
5111 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5112 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5113 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5114 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5115 functions.
5116 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5117 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5118 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5119 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5120 (KINFO_VME_FLAG_GROWS_DOWN): New.
5121
cf83625d
AS
51222020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5123
5124 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5125 bit shift.
5126
0c4311ab
TT
51272020-04-10 Tom Tromey <tromey@adacore.com>
5128
5129 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5130
3e65b3e9
TT
51312020-04-10 Tom Tromey <tromey@adacore.com>
5132
5133 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5134 separate debug files.
5135
13302e95
HD
51362020-04-10 Hannes Domani <ssbssa@yahoo.de>
5137
5138 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5139 Move to...
5140 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5141 ... here.
5142 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5143 Check for STATUS_WX86_BREAKPOINT.
5144 (windows_nat_target::wait): Same.
5145
bdfc1e8a
TV
51462020-04-10 Tom de Vries <tdevries@suse.de>
5147
5148 PR cli/25808
5149 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5150
f4460aec
SM
51512020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5152
5153 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5154 (Write After Approval): Remove Tom de Vries.
5155
a25198bb
BE
51562020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5157
5158 revert partially:
5159 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5160
aac66a4c
SM
5161 * buildsym.c (record_line): Fix undefined behavior and preserve
5162 lines at eof.
a25198bb 5163
206c98a6
KR
51642020-04-09 Kamil Rytarowski <n54@gmx.com>
5165
5166 * auxv.h (svr4_auxv_parse): New.
5167 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5168 and generic_auxv_parse.
5169 (svr4_auxv_parse): Add.
5170 * obsd-tdep.c: Include "auxv.h".
5171 (obsd_auxv_parse): Remove.
5172 (obsd_init_abi): Remove comment.
5173 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5174 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5175 * nbsd-tdep.c: Include "auxv.h".
5176 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5177
71fbdbaf
TT
51782020-04-08 Tom Tromey <tromey@adacore.com>
5179
5180 * nat/windows-nat.h (last_wait_event): Don't declare.
5181 (wait_for_debug_event): Update comment.
5182 * nat/windows-nat.c (last_wait_event): Now static.
5183
2c1d95e8
TT
51842020-04-08 Tom Tromey <tromey@adacore.com>
5185
5186 * windows-nat.c (wait_for_debug_event): Move to
5187 nat/windows-nat.c.
5188 * nat/windows-nat.h (wait_for_debug_event): Declare.
5189 * nat/windows-nat.c (wait_for_debug_event): Move from
5190 windows-nat.c. No longer static.
5191
d2977bc4
TT
51922020-04-08 Tom Tromey <tromey@adacore.com>
5193
5194 * windows-nat.c (get_windows_debug_event): Use
5195 fetch_pending_stop.
5196 * nat/windows-nat.h (fetch_pending_stop): Declare.
5197 * nat/windows-nat.c (fetch_pending_stop): New function.
5198
e758e19c
TT
51992020-04-08 Tom Tromey <tromey@adacore.com>
5200
5201 * windows-nat.c (windows_continue): Use matching_pending_stop and
5202 continue_last_debug_event.
5203 * nat/windows-nat.h (matching_pending_stop)
5204 (continue_last_debug_event): Declare.
5205 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5206 (matching_pending_stop, continue_last_debug_event): New
5207 functions.
5208
8d30e395
TT
52092020-04-08 Tom Tromey <tromey@adacore.com>
5210
5211 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5212 (handle_exception_result): Move to nat/windows-nat.h.
5213 (DEBUG_EXCEPTION_SIMPLE): Remove.
5214 (windows_nat::handle_ms_vc_exception): New function.
5215 (handle_exception): Move to nat/windows-nat.c.
5216 (get_windows_debug_event): Update.
5217 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5218 nat/windows-nat.c.
5219 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5220 (handle_exception_result): Move from windows-nat.c.
5221 (handle_exception): Declare.
5222 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5223 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5224 windows-nat.c.
5225
29de418d
TT
52262020-04-08 Tom Tromey <tromey@adacore.com>
5227
5228 * windows-nat.c (exception_count, event_count): Remove.
5229 (handle_exception, get_windows_debug_event)
5230 (do_initial_windows_stuff): Update.
5231
a816ba18
TT
52322020-04-08 Tom Tromey <tromey@adacore.com>
5233
5234 * windows-nat.c (windows_nat::handle_load_dll)
5235 (windows_nat::handle_unload_dll): Rename. No longer static.
5236 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5237 Declare.
5238
a00caa12
TT
52392020-04-08 Tom Tromey <tromey@adacore.com>
5240
5241 * complaints.h (stop_whining): Declare at top-level.
5242 (complaint): Don't declare stop_whining.
5243
d41b524f
TT
52442020-04-08 Tom Tromey <tromey@adacore.com>
5245
5246 * windows-nat.c (windows_nat::handle_output_debug_string):
5247 Rename. No longer static.
5248 * nat/windows-nat.h (handle_output_debug_string): Declare.
5249
3c76026d
TT
52502020-04-08 Tom Tromey <tromey@adacore.com>
5251
5252 * windows-nat.c (current_process_handle, current_process_id)
5253 (main_thread_id, last_sig, current_event, last_wait_event)
5254 (current_windows_thread, desired_stop_thread_id, pending_stops)
5255 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5256 (display_selectors, fake_create_process)
5257 (get_windows_debug_event): Update.
5258 * nat/windows-nat.h (current_process_handle, current_process_id)
5259 (main_thread_id, last_sig, current_event, last_wait_event)
5260 (current_windows_thread, desired_stop_thread_id, pending_stops)
5261 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5262 * nat/windows-nat.c (current_process_handle, current_process_id)
5263 (main_thread_id, last_sig, current_event, last_wait_event)
5264 (current_windows_thread, desired_stop_thread_id, pending_stops)
5265 (siginfo_er): New globals. Move from windows-nat.c.
5266
9d8679cc
TT
52672020-04-08 Tom Tromey <tromey@adacore.com>
5268
5269 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5270 (handle_load_dll): Update.
5271 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5272
28688adf
TT
52732020-04-08 Tom Tromey <tromey@adacore.com>
5274
5275 * windows-nat.c (enum thread_disposition_type): Move to
5276 nat/windows-nat.h.
5277 (windows_nat::thread_rec): Rename from thread_rec. No longer
5278 static.
5279 (windows_add_thread, windows_nat_target::fetch_registers)
5280 (windows_nat_target::store_registers, handle_exception)
5281 (windows_nat_target::resume, get_windows_debug_event)
5282 (windows_nat_target::get_tib_address)
5283 (windows_nat_target::thread_name)
5284 (windows_nat_target::thread_alive): Update.
5285 * nat/windows-nat.h (enum thread_disposition_type): Move from
5286 windows-nat.c.
5287 (thread_rec): Declare.
5288
4834dad0
TT
52892020-04-08 Tom Tromey <tromey@adacore.com>
5290
5291 * windows-nat.c: Add "using namespace".
5292 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5293 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5294
65bafd5b
TT
52952020-04-08 Tom Tromey <tromey@adacore.com>
5296
5297 * nat/windows-nat.h (struct windows_thread_info): Declare
5298 destructor.
5299 * nat/windows-nat.c (~windows_thread_info): New.
5300
0a4afda3
TT
53012020-04-08 Tom Tromey <tromey@adacore.com>
5302
5303 PR gdb/22992
5304 * windows-nat.c (current_event): Update comment.
5305 (last_wait_event, desired_stop_thread_id): New globals.
5306 (struct pending_stop): New.
5307 (pending_stops): New global.
5308 (windows_nat_target) <stopped_by_sw_breakpoint>
5309 <supports_stopped_by_sw_breakpoint>: New methods.
5310 (windows_fetch_one_register): Add assertions. Adjust PC.
5311 (windows_continue): Handle pending stops. Suspend other threads
5312 when stepping. Use last_wait_event
5313 (wait_for_debug_event): New function.
5314 (get_windows_debug_event): Use wait_for_debug_event. Handle
5315 pending stops. Queue spurious stops.
5316 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5317 (windows_nat_target::kill): Use wait_for_debug_event.
5318 * nat/windows-nat.h (struct windows_thread_info)
5319 <stopped_at_software_breakpoint>: New field.
5320 * nat/windows-nat.c (windows_thread_info::resume): Clear
5321 stopped_at_software_breakpoint.
5322
8e61ebec
TT
53232020-04-08 Tom Tromey <tromey@adacore.com>
5324
5325 * windows-nat.c (enum thread_disposition_type): New.
5326 (thread_rec): Replace "get_context" parameter with "disposition";
5327 change type.
5328 (windows_add_thread, windows_nat_target::fetch_registers)
5329 (windows_nat_target::store_registers, handle_exception)
5330 (windows_nat_target::resume, get_windows_debug_event)
5331 (windows_nat_target::get_tib_address)
5332 (windows_nat_target::thread_name)
5333 (windows_nat_target::thread_alive): Update.
5334
98a03287
TT
53352020-04-08 Tom Tromey <tromey@adacore.com>
5336
5337 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5338 (windows_continue): Use windows_continue::resume.
5339 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5340 resume>: Declare new methods.
5341 * nat/windows-nat.c: New file.
5342 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5343
7c7411bc
TT
53442020-04-08 Tom Tromey <tromey@adacore.com>
5345
5346 * windows-nat.c (windows_add_thread, windows_delete_thread)
5347 (windows_nat_target::fetch_registers)
5348 (windows_nat_target::store_registers, fake_create_process)
5349 (windows_nat_target::resume, windows_nat_target::resume)
5350 (get_windows_debug_event, windows_nat_target::wait)
5351 (windows_nat_target::pid_to_str)
5352 (windows_nat_target::get_tib_address)
5353 (windows_nat_target::get_ada_task_ptid)
5354 (windows_nat_target::thread_name)
5355 (windows_nat_target::thread_alive): Use lwp, not tid.
5356
2950fdf7
TT
53572020-04-08 Tom Tromey <tromey@adacore.com>
5358
5359 * windows-nat.c (handle_exception)
5360 (windows_nat_target::thread_name): Update.
5361 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5362 <name>: Now unique_xmalloc_ptr.
5363
62fe396b
TT
53642020-04-08 Tom Tromey <tromey@adacore.com>
5365
5366 * windows-nat.c (thread_rec)
5367 (windows_nat_target::fetch_registers): Update.
5368 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5369 Update comment.
5370 <debug_registers_changed, reload_context>: Now bool.
5371
e9534bd2
TT
53722020-04-08 Tom Tromey <tromey@adacore.com>
5373
5374 * windows-nat.c (windows_add_thread): Use new.
5375 (windows_init_thread_list, windows_delete_thread): Use delete.
5376 (get_windows_debug_event): Update.
5377 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5378 destructor, and initializers.
5379
ae1f8880
TT
53802020-04-08 Tom Tromey <tromey@adacore.com>
5381
5382 * windows-nat.c (struct windows_thread_info): Remove.
5383 * nat/windows-nat.h: New file.
5384
55a1e039
TT
53852020-04-08 Tom Tromey <tromey@adacore.com>
5386
5387 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5388 (thread_rec, windows_add_thread, windows_delete_thread)
5389 (windows_continue): Update.
5390
93366324
TT
53912020-04-08 Tom Tromey <tromey@adacore.com>
5392
5393 * windows-nat.c (struct windows_thread_info): Remove typedef.
5394 (thread_head): Remove.
5395 (thread_list): New global.
5396 (thread_rec, windows_add_thread, windows_init_thread_list)
5397 (windows_delete_thread, windows_continue): Update.
5398
0f2265e2
SM
53992020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5400
5401 * windows-tdep.h (windows_init_abi): Add comment.
5402 (cygwin_init_abi): New declaration.
5403 * windows-tdep.c: Split signal enumeration in two, one for
5404 Windows and one for Cygwin.
5405 (windows_gdb_signal_to_target): Only deal with signal of the
5406 Windows OS ABI.
5407 (cygwin_gdb_signal_to_target): New function.
5408 (windows_init_abi): Rename to windows_init_abi_common, don't set
5409 gdb_signal_to_target gdbarch method. Add new new function with
5410 this name.
5411 (cygwin_init_abi): New function.
5412 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5413 comment. Don't call windows_init_abi.
5414 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5415 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5416 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5417 i386_windows_init_abi_common, don't call windows_init_abi. Add
5418 a new function of this name.
5419 (i386_cygwin_init_abi): New function.
5420 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5421 OS ABI Cygwin.
5422
3810f182
SM
54232020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5424
5425 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5426 parameter.c.
5427 (dwarf2_read_gdb_index): Update.
5428
063f8e80
KR
54292020-04-07 Kamil Rytarowski <n54@gmx.com>
5430
5431 * nbsd-tdep.c: Include "objfiles.h".
5432 (nbsd_skip_solib_resolver): New.
5433 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5434
85a9510c 54352020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5436
5437 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5438 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5439 with DW_LLE_base_addressx are being emitted in DWARFv5.
5440 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5441 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5442 unsigned integer.
5443
9fc3eaae 54442020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5445
5446 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5447 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5448 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5449 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5450 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5451 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5452 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5453
5454
41144253 54552020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5456
5457 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5458 (read_loclist_index): New function definition.
5459 (lookup_loclist_base): New function definition.
5460 (read_loclist_header): New function definition.
5461 (dwarf2_cu): Add loclist_base and loclist_header field.
5462 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5463 (read_full_die_1): Read the value of DW_AT_loclists_base.
5464 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5465 (read_attribute_value): Handle DW_FORM_loclistx.
5466 (skip_one_die): Handle DW_FORM_loclistx.
5467 (loclist_header): New structure declaration.
5468 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5469
9f4e76a4
SM
54702020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5471
5472 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5473 constructor. Remove `addr` parameter from other constructor and
5474 add `per_cu` parameter.
5475 * dwarf2/read.c (create_partial_symtab): Update.
5476
25c11aca
TV
54772020-04-07 Tom de Vries <tdevries@suse.de>
5478
5479 PR symtab/25796
5480 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5481 (partial_die_info::fixup): Inherit has_const_value.
5482
5707e24b
TV
54832020-04-07 Tom de Vries <tdevries@suse.de>
5484
5485 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5486 symbols without address.
5487
05f00e22
KR
54882020-04-06 Kamil Rytarowski <n54@gmx.com>
5489
5490 * nbsd-nat.h (struct thread_info): Add forward declaration.
5491 (nbsd_nat_target::thread_alive): Add.
5492 (nbsd_nat_target::thread_name): Likewise.
5493 (nbsd_nat_target::update_thread_list): Likewise.
5494 (update_thread_list::post_attach): Likewise.
5495 (post_attach::pid_to_str): Likewise.
5496 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5497 (nbsd_thread_lister): Add.
5498 (nbsd_nat_target::thread_alive): Likewise.
5499 (nbsd_nat_target::thread_name): Likewise.
5500 (nbsd_add_threads): Likewise.
5501 (update_thread_list::post_attach): Likewise.
5502 (nbsd_nat_target::update_thread_list): Likewise.
5503 (post_attach::pid_to_str): Likewise.
5504
6ee448cc
TT
55052020-04-06 Tom Tromey <tromey@adacore.com>
5506
5507 * ada-valprint.c (print_variant_part): Extract the variant field.
5508 (print_field_values): Use the field as the outer value when
5509 recursing.
5510
dea34e8c
TT
55112020-04-06 Tom Tromey <tromey@adacore.com>
5512
5513 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5514 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5515 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5516 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5517 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5518
93689ce9
TT
55192020-04-06 Tom Tromey <tromey@adacore.com>
5520
5521 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5522 TYPE_CODE_ERROR.
5523
79743962
KR
55242020-04-06 Kamil Rytarowski <n54@gmx.com>
5525
5526 * nbsd-tdep.c: Include "gdbarch.h".
5527 Define enum with NetBSD signal numbers.
5528 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5529 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5530 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5531 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5532 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5533 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5534 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5535 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5536 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5537 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5538 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5539 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5540
9e7c9a03
HD
55412020-04-03 Hannes Domani <ssbssa@yahoo.de>
5542
5543 PR gdb/25325
5544 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5545
d9e49b61
TT
55462020-04-03 Tom Tromey <tromey@adacore.com>
5547
5548 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5549 Read constant block.
5550
e0fc5c3f
SM
55512020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5552
5553 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5554 (gdb_bfd_get_full_section_contents): New declaration.
5555 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5556 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5557 gdb_bfd_get_full_section_contents.
5558
e2ff18a0
SM
55592020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5560
5561 * exec.c (build_section_table): Replace internal_error with
5562 gdb_assert.
5563 (section_table_xfer_memory_partial): Likewise.
5564 * mdebugread.c (parse_partial_symbols): Likewise.
5565 * psymtab.c (lookup_partial_symbol): Likewise.
5566 * utils.c (wrap_here): Likewise.
5567
0830d301
TT
55682020-04-02 Tom Tromey <tromey@adacore.com>
5569
5570 * f-lang.c (build_fortran_types): Use arch_type to initialize
5571 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5572
e7da7f8f
TT
55732020-04-02 Tom Tromey <tromey@adacore.com>
5574
5575 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5576 of attributes.
5577
c90d28ac
AB
55782020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5579 Bernd Edlinger <bernd.edlinger@hotmail.de>
5580 Tom Tromey <tromey@adacore.com>
5581
5582 * buildsym.c (buildsym_compunit::record_line): Remove
5583 deduplication code.
5584
1aa98955
TV
55852020-04-02 Tom de Vries <tdevries@suse.de>
5586
5587 PR ada/24671
5588 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5589
d3214198
TV
55902020-04-02 Tom de Vries <tdevries@suse.de>
5591
5592 * dwarf2/read.c (dwarf2_gdb_index_functions,
5593 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5594 NULL.
5595 * psymtab.c (psym_lookup_global_symbol_language): New function.
5596 (psym_functions): Init psym_lookup_global_symbol_language with
5597 psym_lookup_global_symbol_language.
5598 * symfile-debug.c (debug_sym_quick_functions): Init
5599 lookup_global_symbol_language with NULL.
5600 * symfile.c (set_initial_language): Remove fixme comment.
5601 * symfile.h (struct quick_symbol_functions): Add
5602 lookup_global_symbol_language.
5603 * symtab.c (find_quick_global_symbol_language): New function.
5604 (find_main_name): Use find_quick_global_symbol_language.
5605
2836752f
SM
56062020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5607
5608 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5609
64dc2d4b
BE
56102020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5611
5612 * buildsym.c (record_line): Fix undefined behavior and preserve
5613 lines at eof.
5614
bbe3dc41
BE
56152020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5616
5617 * buildsym.c (record_line): Fix the resizing condition.
5618
6b4a335b
TT
56192020-04-01 Tom Tromey <tom@tromey.com>
5620
5621 * value.h (value_literal_complex): Add comment.
5622 * valops.c (value_literal_complex): Refer to value.h.
5623
3638a098
TT
56242020-04-01 Tom Tromey <tom@tromey.com>
5625
5626 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5627 (scalar_type): New rule, from typebase.
5628 (typebase): Use scalar_type. Recognize complex types.
5629 (field_name): Handle FLOAT_KEYWORD.
5630 (ident_tokens): Add _Complex and __complex__.
5631
c34e8714
TT
56322020-04-01 Tom Tromey <tom@tromey.com>
5633
5634 PR exp/25299:
5635 * valarith.c (promotion_type, complex_binop): New functions.
5636 (scalar_binop): Handle complex numbers. Use promotion_type.
5637 (value_pos, value_neg, value_complement): Handle complex numbers.
5638
fa649bb7
TT
56392020-04-01 Tom Tromey <tom@tromey.com>
5640
5641 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5642 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5643 (parse_number): Handle complex numbers.
5644
981c08ce
TT
56452020-04-01 Tom Tromey <tom@tromey.com>
5646
5647 * c-valprint.c (c_decorations): Change complex suffix to "i".
5648
4c99290d
TT
56492020-04-01 Tom Tromey <tom@tromey.com>
5650
5651 * valprint.c (generic_value_print_complex): Use accessors.
5652 * value.h (value_real_part, value_imaginary_part): Declare.
5653 * valops.c (value_real_part, value_imaginary_part): New
5654 functions.
5655 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5656
5b930b45
TT
56572020-04-01 Tom Tromey <tom@tromey.com>
5658
5659 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5660 (read_range_type): Update.
5661 * mdebugread.c (basic_type): Update.
5662 * go-lang.c (build_go_types): Use init_complex_type.
5663 * gdbtypes.h (struct main_type) <complex_type>: New member.
5664 (init_complex_type): Update.
5665 (arch_complex_type): Don't declare.
5666 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5667 Make name if none given. Use alloc_type_copy. Look for cached
5668 complex type.
5669 (arch_complex_type): Remove.
5670 (gdbtypes_post_init): Use init_complex_type.
5671 * f-lang.c (build_fortran_types): Use init_complex_type.
5672 * dwarf2/read.c (read_base_type): Update.
5673 * d-lang.c (build_d_types): Use init_complex_type.
5674 * ctfread.c (read_base_type): Update.
5675
53cccef1
TBA
56762020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5677
5678 * infrun.c (stop_all_threads): Update assertion, plus when
5679 stopping threads, take into account that we might be trying
5680 to stop an all-stop target.
5681 (stop_waiting): Call 'stop_all_threads' if there exists a
5682 non-stop target.
5683
a0714d30
TBA
56842020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5685
5686 * target.h (exists_non_stop_target): New function declaration.
5687 * target.c (exists_non_stop_target): New function.
5688
60e22c1e
HD
56892020-04-01 Hannes Domani <ssbssa@yahoo.de>
5690
5691 PR gdb/24789
5692 * eval.c (is_integral_or_integral_reference): New function.
5693 (evaluate_subexp_standard): Allow integer references in
5694 pointer arithmetic.
5695
e139a727
TBA
56962020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5697
5698 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5699 check for no ptid in the stop reply when the target is non-stop.
5700
e0802d59
TT
57012020-04-01 Tom Tromey <tromey@adacore.com>
5702
5703 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5704 "name" parameter to rvalue reference. Initialize m_name_holder.
5705 <lookup_name_info>: New overloads.
5706 <name>: Return gdb::string_view.
5707 <c_str>: New method.
5708 <make_ignore_params>: Update.
5709 <search_name_hash>: Update.
5710 <language_lookup_name>: Return const char *.
5711 <m_name>: Change type.
5712 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5713 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5714 (lookup_name_info::match_any): Update.
5715 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5716 Update.
5717 * minsyms.c (linkage_name_str): Update.
5718 * language.c (default_symbol_name_matcher): Update.
5719 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5720 Update.
5721 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5722 (ada_lookup_name_info::ada_lookup_name_info): Update.
5723 (literal_symbol_name_matcher): Update.
5724
8c072cb6
TT
57252020-04-01 Tom Tromey <tromey@adacore.com>
5726
5727 * psymtab.c (psymtab_search_name): Remove function.
5728 (psym_lookup_symbol): Create search name and lookup name here.
5729 (lookup_partial_symbol): Remove "name" parameter; add
5730 lookup_name.
5731 (psym_expand_symtabs_for_function): Update.
5732
6f29a534
TT
57332020-03-31 Joel Jones <joelkevinjones@gmail.com>
5734
5735 PR tui/25597:
5736 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5737
af62665e
TT
57382020-03-31 Tom Tromey <tromey@adacore.com>
5739
5740 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5741 memcpy.
5742
d1a89da5
NC
57432020-03-30 Nelson Chu <nelson.chu@sifive.com>
5744
5745 * features/riscv/32bit-csr.xml: Regenerated.
5746 * features/riscv/64bit-csr.xml: Regenerated.
5747
d8af9068
TT
57482020-03-30 Tom Tromey <tromey@adacore.com>
5749
5750 * ada-valprint.c (print_variant_part): Update.
5751 * ada-lang.h (ada_which_variant_applies): Update.
5752 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5753 outer_valaddr parameters; replace with "outer" value parameter.
5754 (to_fixed_variant_branch_type): Update.
5755
227c0bf4
PFC
57562020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5757
5758 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5759 <list>. Remove inclusion of observable.h.
5760 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5761 (struct arch_lwp_info): New struct.
5762 (class ppc_linux_dreg_interface): New class.
5763 (struct ppc_linux_process_info): New struct.
5764 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5765 <low_new_clone, low_forget_process, low_prepare_to_resume>
5766 <copy_thread_dreg_state, mark_thread_stale>
5767 <mark_debug_registers_changed, register_hw_breakpoint>
5768 <clear_hw_breakpoint, register_wp, clear_wp>
5769 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5770 <num_memory_accesses, get_trigger_type>
5771 <create_watchpoint_request, hwdebug_point_cmp>
5772 <init_arch_lwp_info, get_arch_lwp_info>
5773 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5774 methods.
5775 <struct ptid_hash>: New inner struct.
5776 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5777 members.
5778 (saved_dabr_value, hwdebug_info, max_slots_number)
5779 (struct hw_break_tuple, struct thread_points, ppc_threads)
5780 (have_ptrace_hwdebug_interface)
5781 (hwdebug_find_thread_points_by_tid)
5782 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5783 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5784 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5785 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5786 use m_dreg_interface.
5787 (hwdebug_point_cmp): Change to...
5788 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5789 reference arguments instead of pointers.
5790 (ppc_linux_nat_target::ranged_break_num_registers): Use
5791 m_dreg_interface.
5792 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5793 m_dreg_interface. Call register_hw_breakpoint.
5794 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5795 m_dreg_interface. Call clear_hw_breakpoint.
5796 (get_trigger_type): Change to...
5797 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5798 comment.
5799 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5800 use m_dreg_interface. Call register_hw_breakpoint.
5801 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5802 use m_dreg_interface. Call clear_hw_breakpoint.
5803 (can_use_watchpoint_cond_accel): Change to...
5804 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5805 method. Update comment, use m_dreg_interface and
5806 m_process_info.
5807 (calculate_dvc): Change to...
5808 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5809 m_dreg_interface.
5810 (num_memory_accesses): Change to...
5811 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5812 (check_condition): Change to...
5813 (ppc_linux_nat_target::check_condition): ...this method.
5814 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5815 comment, use m_dreg_interface.
5816 (create_watchpoint_request): Change to...
5817 (ppc_linux_nat_target::create_watchpoint_request): ...this
5818 method. Use m_dreg_interface.
5819 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5820 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5821 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5822 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5823 (ppc_linux_nat_target::low_forget_process)
5824 (ppc_linux_nat_target::low_new_fork)
5825 (ppc_linux_nat_target::low_new_clone)
5826 (ppc_linux_nat_target::low_delete_thread)
5827 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5828 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5829 only call mark_thread_stale.
5830 (ppc_linux_thread_exit): Remove.
5831 (ppc_linux_nat_target::stopped_data_address): Change to...
5832 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5833 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5834 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5835 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5836 comment. Call low_stopped_data_address.
5837 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5838 m_dreg_interface.
5839 (ppc_linux_nat_target::masked_watch_num_registers): Use
5840 m_dreg_interface.
5841 (ppc_linux_nat_target::copy_thread_dreg_state)
5842 (ppc_linux_nat_target::mark_thread_stale)
5843 (ppc_linux_nat_target::mark_debug_registers_changed)
5844 (ppc_linux_nat_target::register_hw_breakpoint)
5845 (ppc_linux_nat_target::clear_hw_breakpoint)
5846 (ppc_linux_nat_target::register_wp)
5847 (ppc_linux_nat_target::clear_wp)
5848 (ppc_linux_nat_target::init_arch_lwp_info)
5849 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5850 (_initialize_ppc_linux_nat): Remove observer callback.
5851
4db10d8f
PFC
58522020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5853
5854 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5855 (ppc_linux_nat_target::auxv_parse)
5856 (ppc_linux_nat_target::read_description)
5857 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5858 Move up.
5859
1310c1b0
PFC
58602020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5861
5862 * linux-nat.h (low_new_clone): New method.
5863 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5864
69b037c3
SM
58652020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5866
5867 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5868 (dbx_expand_psymtab): ... this.
5869 (start_psymtab): Update.
5870 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5871 (mdebug_expand_psymtab): ... this.
5872 (parse_partial_symbols): Update.
5873 (new_psymtab): Update.
5874 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5875 (xcoff_expand_psymtab): ... this.
5876 (xcoff_start_psymtab): Update.
5877
48993951
SM
58782020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5879
5880 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5881 <expand_dependencies>: ... this.
5882 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5883 (partial_symtab::expand_dependencies): ... this.
5884 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5885 Update.
5886 (dwarf2_psymtab::expand_psymtab): Update.
5887 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5888 * mdebugread.c (psymtab_to_symtab_1): Update.
5889 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5890
3ad83046
SM
58912020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5892
5893 * psympriv.h (discard_psymtab): Remove.
5894 * dbxread.c (dbx_end_psymtab): Update.
5895 * xcoffread.c (xcoff_end_psymtab): Update.
5896
4d1b9ab6
TT
58972020-03-28 Tom Tromey <tom@tromey.com>
5898
5899 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5900 comment.
5901
f1749218
TT
59022020-03-28 Tom Tromey <tom@tromey.com>
5903
5904 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5905
ebea7626
HD
59062020-03-27 Hannes Domani <ssbssa@yahoo.de>
5907
5908 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5909
a879b4d5
JB
59102020-03-26 John Baldwin <jhb@FreeBSD.org>
5911
5912 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5913
0826b30a
TT
59142020-03-26 Tom Tromey <tom@tromey.com>
5915
5916 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5917 (mark_common_block_symbol_computed, read_tag_string_type)
5918 (attr_to_dynamic_prop, read_subrange_type): Update.
5919 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5920 to be methods on struct attribute.
5921 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5922 (read_call_site_scope, partial_die_info::read)
5923 (partial_die_info::read, lookup_die_type, follow_die_ref):
5924 Update.
5925 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5926 from dwarf2_get_ref_die_offset.
5927 (attribute::constant_value): New method, from
5928 dwarf2_get_attr_constant_value.
5929 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5930 Declare method.
5931 <constant_value>: New method.
5932
2b2558bf
TT
59332020-03-26 Tom Tromey <tom@tromey.com>
5934
5935 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5936 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5937 (dwarf_type_encoding_name): Move to stringify.c.
5938 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5939 * dwarf2/stringify.c: New file.
5940 * dwarf2/stringify.h: New file.
5941
eeb64781
TT
59422020-03-26 Tom Tromey <tom@tromey.com>
5943
5944 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5945 Rewrite.
5946
a39fdb41
TT
59472020-03-26 Tom Tromey <tom@tromey.com>
5948
5949 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5950 methods.
5951 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5952 (lookup_ranges_base): Likewise.
5953 (read_cutu_die_from_dwo, read_full_die_1): Update.
5954
436c571c
TT
59552020-03-26 Tom Tromey <tom@tromey.com>
5956
5957 * dwarf2/read.c (read_import_statement, read_file_scope)
5958 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5959 (read_lexical_block_scope, read_call_site_scope)
5960 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5961 (handle_struct_member_die, process_structure_scope)
5962 (update_enumeration_type_from_children)
5963 (process_enumeration_scope, read_array_type, read_common_block)
5964 (read_namespace, read_module, read_subroutine_type): Update.
5965 (sibling_die): Remove.
5966
052c8bb8
TT
59672020-03-26 Tom Tromey <tom@tromey.com>
5968
5969 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5970 (build_type_psymtabs_reader, read_structure_type)
5971 (read_enumeration_type, read_full_die_1): Update.
5972 (dwarf2_attr_no_follow): Move to die.h.
5973 * dwarf2/die.h (struct die_info) <attr>: New method.
5974
2b24b6e4
TT
59752020-03-26 Tom Tromey <tom@tromey.com>
5976
5977 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5978 <base_address>: Now an optional.
5979 (dwarf2_find_base_address, dwarf2_rnglists_process)
5980 (dwarf2_ranges_process, fill_in_loclist_baton)
5981 (dwarf2_symbol_mark_computed): Update.
5982
c2d50fd0
TT
59832020-03-26 Tom Tromey <tom@tromey.com>
5984
5985 * dwarf2/read.c (struct die_info): Move to die.h.
5986 * dwarf2/die.h: New file.
5987
0df7ad3a
TT
59882020-03-26 Tom Tromey <tom@tromey.com>
5989
5990 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5991 * dwarf2/read.c
5992 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5993 Move to line-header.c.
5994 (read_checked_initial_length_and_offset, read_formatted_entries):
5995 Likewise.
5996 (dwarf_decode_line_header): Split into two.
5997 * dwarf2/line-header.c
5998 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5999 Move from read.c.
6000 (read_checked_initial_length_and_offset, read_formatted_entries):
6001 Likewise.
6002 (dwarf_decode_line_header): New function, split from read.c.
6003
86c0bb4c
TT
60042020-03-26 Tom Tromey <tom@tromey.com>
6005
6006 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6007 Declare method.
6008 * dwarf2/read.c (read_attribute_value): Update.
6009 (dwarf2_per_objfile::read_line_string): Rename from
6010 read_indirect_line_string.
6011 (read_formatted_entries): Update.
6012
2ef46c2f
TT
60132020-03-26 Tom Tromey <tom@tromey.com>
6014
6015 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6016 variable.
6017
4f9c1eda
TT
60182020-03-26 Tom Tromey <tom@tromey.com>
6019
6020 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6021 const.
6022 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6023 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6024 parameter const.
6025
5a0e026f
TT
60262020-03-26 Tom Tromey <tom@tromey.com>
6027
6028 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6029 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6030 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6031 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6032
8844c11b
TT
60332020-03-26 Tom Tromey <tom@tromey.com>
6034
6035 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6036 file_names_size, file_full_name, file_file_name>: Use const.
6037 <file_name_at, file_names>: Add const overload.
6038 * dwarf2/line-header.c (line_header::file_file_name)
6039 (line_header::file_full_name): Update.
6040
c90ec28a
TT
60412020-03-26 Tom Tromey <tom@tromey.com>
6042
6043 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6044 (macro_start_file, consume_improper_spaces)
6045 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6046 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6047 (dwarf_decode_macros): Move to macro.c.
6048 * dwarf2/macro.c: New file.
6049 * dwarf2/macro.h: New file.
6050 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6051
4f44ae6c
TT
60522020-03-26 Tom Tromey <tom@tromey.com>
6053
6054 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6055 method.
6056 * dwarf2/section.c: New method. From
6057 read_indirect_string_at_offset_from.
6058 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6059 (read_indirect_string_at_offset_from): Move to section.c.
6060 (read_indirect_string_at_offset): Rewrite.
6061 (read_indirect_line_string_at_offset): Remove.
6062 (read_indirect_string, read_indirect_line_string)
6063 (dwarf_decode_macro_bytes): Update.
6064
a0194fa8
TT
60652020-03-26 Tom Tromey <tom@tromey.com>
6066
6067 * dwarf2/section.h (struct dwarf2_section_info)
6068 <overload_complaint>: Declare.
6069 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6070 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6071 Rename from dwarf2_section_buffer_overflow_complaint.
6072 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6073 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6074
3d27bbdb
TT
60752020-03-26 Tom Tromey <tom@tromey.com>
6076
6077 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6078 Declare.
6079 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6080 Move from read.c.
6081 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6082 to section.c.
6083
9eac9650
TT
60842020-03-26 Tom Tromey <tom@tromey.com>
6085
6086 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6087
bf80d710
TT
60882020-03-26 Tom Tromey <tom@tromey.com>
6089
6090 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6091 "builder".
6092 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6093 parameter.
6094 (dwarf_decode_macros): Update.
6095
0314b390
TT
60962020-03-26 Tom Tromey <tom@tromey.com>
6097
6098 * dwarf2/read.c (read_attribute_value): Update.
6099 (read_indirect_string_from_dwz): Move to dwz.c; change into
6100 method.
6101 (dwarf_decode_macro_bytes): Update.
6102 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6103 * dwarf2/dwz.c: New file.
6104 * Makefile.in (COMMON_SFILES): Add dwz.c.
6105
9fda78b6
TT
61062020-03-26 Tom Tromey <tom@tromey.com>
6107
6108 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6109 * dwarf2/read.c: Add include.
6110 * dwarf2/index-write.c: Add include.
6111 * dwarf2/index-cache.c: Add include.
6112 * dwarf2/dwz.h: New file.
6113
33aa3c10
TT
61142020-03-25 Tom Tromey <tom@tromey.com>
6115
6116 * compile/compile-object-load.c (get_out_value_type): Mention
6117 correct symbol name in error message.
6118
d503b685
HD
61192020-03-25 Hannes Domani <ssbssa@yahoo.de>
6120
6121 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6122
7b1eff95
TV
61232020-03-25 Tom de Vries <tdevries@suse.de>
6124
6125 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6126 * symmisc.c (dump_symtab_1): Print user and includes fields.
6127 (maintenance_info_symtabs): Same.
6128
dd895392
AB
61292020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6130
6131 PR gdb/25534
6132 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6133 (riscv_regcache_cooked_write): New function.
6134 (riscv_push_dummy_call): Use new function.
6135 (riscv_return_value): Likewise.
6136
5ab2fbf1
SM
61372020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6138
6139 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6140 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6141 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6142 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6143 * infrun.c (follow_fork): Likewise.
6144 (follow_fork_inferior): Likewise.
6145 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6146 * linux-nat.h (class linux_nat_target): Likewise.
6147 * remote.c (class remote_target) <follow_fork>: Likewise.
6148 (remote_target::follow_fork): Likewise.
6149 * target-delegates.c: Re-generate.
6150 * target.c (default_follow_fork): Likewise.
6151 (target_follow_fork): Likewise.
6152 * target.h (struct target_ops) <follow_fork>: Likewise.
6153 (target_follow_fork): Likewise.
6154
a64fafb5
TV
61552020-03-24 Tom de Vries <tdevries@suse.de>
6156
6157 * psymtab.c (maintenance_info_psymtabs): Print user field.
6158
fe26d3a3
TT
61592020-03-20 Tom Tromey <tromey@adacore.com>
6160
6161 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6162 const.
6163 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6164 const.
6165
c884cc46
SM
61662020-03-20 Simon Marchi <simon.marchi@efficios.com>
6167
6168 * ptrace.m4: Don't check for ptrace declaration.
6169 * config.in: Re-generate.
6170 * configure: Re-generate.
6171 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6172 not defined.
6173
1ff700c2
KR
61742020-03-20 Kamil Rytarowski <n54@gmx.com>
6175
6176 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6177 `PTRACE_TYPE_RET'.
6178 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6179 * sparc-nat.c (gdb_ptrace): Likewise.
6180 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6181
f7d4f0b1
TT
61822020-03-20 Tom Tromey <tromey@adacore.com>
6183
6184 * c-exp.y (lex_one_token): Fix assert.
6185
f67210ff
TT
61862020-03-20 Tom Tromey <tromey@adacore.com>
6187
6188 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6189 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6190 strncpy call.
6191
1773be9e
TT
61922020-03-20 Tom Tromey <tromey@adacore.com>
6193
6194 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6195
70304be9
TT
61962020-03-20 Tom Tromey <tromey@adacore.com>
6197
6198 * ada-valprint.c (print_variant_part): Remove parameters; switch
6199 to value-based API.
6200 (print_field_values): Likewise.
6201 (ada_val_print_struct_union): Likewise.
6202 (ada_value_print_1): Update.
6203
9faa006d
KR
62042020-03-20 Kamil Rytarowski <n54@gmx.com>
6205
6206 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6207 nbsd_nat_target instead of inf_ptrace_target.
6208 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6209 nbsd_nat_target.
6210
4a90f062
KR
62112020-03-20 Kamil Rytarowski <n54@gmx.com>
6212
6213 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6214 it to the ptrace call.
6215 * (store_registers): Likewise.
6216
62172020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6218
6219 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6220 it to the ptrace call.
6221 * (store_registers): Likewise.
6222
2d07da27
LM
62232020-03-19 Luis Machado <luis.machado@linaro.org>
6224
6225 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6226 valid, fetch vg value from ptrace.
6227
f09db380
KR
62282020-03-19 Kamil Rytarowski <n54@gmx.com>
6229 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6230 * inf-ptrace.c: Likewise.
6231 * (gdb_ptrace): Add.
6232 * (inf_ptrace_target::resume): Update.
6233 * (inf_ptrace_target::xfer_partial): Likewise.
6234 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6235 * (inf_ptrace_peek_poke): Update.
6236
fcc7376e
KR
62372020-03-19 Kamil Rytarowski <n54@gmx.com>
6238
6239 * x86-bsd-nat.c (gdb_ptrace): New.
6240 * (x86bsd_dr_set): Add new argument `ptid'.
6241 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6242 x86bsd_dr_set_addr): Update.
6243
cada5fc9
AB
62442020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6245
6246 * remote.c (remote_target::process_stop_reply): Handle events for
6247 all threads differently.
6248
19a2740f
AB
62492020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6250
6251 * completer.c (completion_tracker::remove_completion): Define new
6252 function.
6253 * completer.h (completion_tracker::remove_completion): Declare new
6254 function.
6255 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6256 when adding a C++ function symbol.
6257
724fd9ba
AB
62582020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6259
6260 * completer.c (completion_tracker::completion_hash_entry): Define
6261 new class.
6262 (advance_to_filename_complete_word_point): Call
6263 recompute_lowest_common_denominator.
6264 (completion_tracker::completion_tracker): Call discard_completions
6265 to setup the hash table.
6266 (completion_tracker::discard_completions): Allow for being called
6267 from the constructor, pass new equal function, and element deleter
6268 when constructing the hash table. Initialise new class member
6269 variables.
6270 (completion_tracker::maybe_add_completion): Remove use of
6271 m_entries_vec, and store more information into m_entries_hash.
6272 (completion_tracker::recompute_lcd_visitor): New function, most
6273 content taken from...
6274 (completion_tracker::recompute_lowest_common_denominator):
6275 ...here, this now just visits each item in the hash calling the
6276 above visitor.
6277 (completion_tracker::build_completion_result): Remove use of
6278 m_entries_vec, call recompute_lowest_common_denominator.
6279 * completer.h (completion_tracker::have_completions): Remove use
6280 of m_entries_vec.
6281 (completion_tracker::completion_hash_entry): Declare new class.
6282 (completion_tracker::recompute_lowest_common_denominator): Change
6283 function signature.
6284 (completion_tracker::recompute_lcd_visitor): Declare new function.
6285 (completion_tracker::m_entries_vec): Delete.
6286 (completion_tracker::m_entries_hash): Initialize to NULL.
6287 (completion_tracker::m_lowest_common_denominator_valid): New
6288 member variable.
6289 (completion_tracker::m_lowest_common_denominator_max_length): New
6290 member variable.
6291
5a82b8a1
KR
62922020-03-17 Kamil Rytarowski <n54@gmx.com>
6293
6294 * regformats/regdef.h: Put reg in gdb namespace.
6295
fb516a69
KR
62962020-03-17 Kamil Rytarowski <n54@gmx.com>
6297
6298 * i386-bsd-nat.c (gdb_ptrace): New.
6299 * (i386bsd_fetch_inferior_registers,
6300 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6301 * (i386bsd_fetch_inferior_registers,
6302 i386bsd_store_inferior_registers) Use gdb_ptrace.
6303
1c0aa1fb
KR
63042020-03-17 Kamil Rytarowski <n54@gmx.com>
6305
6306 * amd64-bsd-nat.c (gdb_ptrace): New.
6307 * (amd64bsd_fetch_inferior_registers,
6308 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6309 * (amd64bsd_fetch_inferior_registers,
6310 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6311
5ccd2fb7
KR
63122020-03-17 Kamil Rytarowski <n54@gmx.com>
6313
6314 * user-regs.c (user_reg::read): Rename to...
6315 (user_reg::xread): ...this.
6316 * (append_user_reg): Rename argument `read' to `xread'.
6317 * (user_reg_add_builtin): Likewise.
6318 * (user_reg_add): Likewise.
6319 * (value_of_user_reg): Likewise.
6320
2108a63a
KR
63212020-03-17 Kamil Rytarowski <n54@gmx.com>
6322
6323 * sparc-nat.c (gdb_ptrace): New.
6324 * sparc-nat.c (sparc_fetch_inferior_registers)
6325 (sparc_store_inferior_registers) Remove obsolete comment.
6326 * sparc-nat.c (sparc_fetch_inferior_registers)
6327 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6328 * sparc-nat.c (sparc_fetch_inferior_registers)
6329 (sparc_store_inferior_registers) Use gdb_ptrace.
6330
a225c9a8
KR
63312020-03-17 Kamil Rytarowski <n54@gmx.com>
6332
6333 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6334 it to the ptrace call.
6335 * sh-nbsd-nat.c (store_registers): Likewise.
6336
98097623
KR
63372020-03-17 Kamil Rytarowski <n54@gmx.com>
6338
6339 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6340 nbsd_nat_target instead of inf_ptrace_target.
6341 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6342 nbsd_nat_target.
6343
9e38d619
KR
63442020-03-17 Kamil Rytarowski <n54@gmx.com>
6345
6346 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6347
a2ecbe9f
KR
63482020-03-17 Kamil Rytarowski <n54@gmx.com>
6349
6350 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6351 <sys/sysctl.h>.
6352 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6353
58990295
TV
63542020-03-17 Tom de Vries <tdevries@suse.de>
6355
6356 PR gdb/23710
6357 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6358 fields.
6359 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6360 fields.
6361 (process_imported_unit_die): Skip import of c++ CUs.
6362
771dd3a8
TT
63632020-03-16 Tom Tromey <tom@tromey.com>
6364
6365 * p-valprint.c (pascal_object_print_value): Initialize
6366 base_value.
6367
817a7585
AK
63682020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6369 Shahab Vahedi <shahab@synopsys.com>
6370
6371 * Makefile.in: Add arch/arc.o
6372 * configure.tgt: Likewise.
6373 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6374 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6375 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6376 * arc-tdep.h (arc_read_description): Add proto type.
6377 * arch/arc.c: New file.
6378 * arch/arc.h: Likewise.
6379 * features/Makefile: Replace old target descriptions with new.
6380 * features/arc-arcompact.c: Remove.
6381 * features/arc-arcompact.xml: Likewise.
6382 * features/arc-v2.c: Likewise
6383 * features/arc-v2.xml: Likewise
6384 * features/arc/aux-arcompact.xml: New file.
6385 * features/arc/aux-v2.xml: Likewise.
6386 * features/arc/core-arcompact.xml: Likewise.
6387 * features/arc/core-v2.xml: Likewise.
6388 * features/arc/aux-arcompact.c: Generate.
6389 * features/arc/aux-v2.c: Likewise.
6390 * features/arc/core-arcompact.c: Likewise.
6391 * features/arc/core-v2.c: Likewise.
6392 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6393
67430cd0
TT
63942020-03-16 Tom Tromey <tromey@adacore.com>
6395
6396 PR gdb/25663:
6397 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6398 putting value into bcache.
6399
30efb6c7
SM
64002020-03-16 Simon Marchi <simon.marchi@efficios.com>
6401
6402 PR gdb/21500
6403 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6404 to...
6405 (amd64_windows_init_abi_common): ... this. Don't set size of
6406 long type.
6407 (amd64_windows_init_abi): New function.
6408 (amd64_cygwin_init_abi): New function.
6409 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6410 the Cygwin OS ABI.
6411 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6412 comment.
6413
8db52437
SM
64142020-03-16 Simon Marchi <simon.marchi@efficios.com>
6415
6416 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6417 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6418 (pe_import_directory_entry): New struct type.
6419 (is_linked_with_cygwin_dll): New function.
6420 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6421 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6422 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6423
5982a56a
SM
64242020-03-16 Simon Marchi <simon.marchi@efficios.com>
6425
6426 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6427 i386_cygwin_core_osabi_sniffer.
6428
7a1998df
SM
64292020-03-16 Simon Marchi <simon.marchi@efficios.com>
6430
6431 * i386-cygwin-tdep.c: Rename to...
6432 * i386-windows-tdep.c: ... this.
6433 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6434 i386-windows-tdep.c.
6435 * configure.tgt: Likewise.
6436
053205cc
SM
64372020-03-16 Simon Marchi <simon.marchi@efficios.com>
6438
6439 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6440 * osabi.c (gdb_osabi_names): Add "Windows".
6441 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6442 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6443 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6444 i386_cygwin_osabi_sniffer.
6445 (_initialize_i386_cygwin_tdep): Register OS ABI
6446 GDB_OSABI_WINDOWS for i386.
6447 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6448 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6449 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6450 for x86-64.
6451 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6452 when the target matches '*-*-mingw*'.
6453
fe4b2ee6
SM
64542020-03-16 Simon Marchi <simon.marchi@efficios.com>
6455
6456 * defs.h (enum gdb_osabi): Move to...
6457 * osabi.h (enum gdb_osabi): ... here.
6458 * gdbarch.sh: Include osabi.h in gdbarch.h.
6459 * gdbarch.h: Re-generate.
6460
cb9b645d
SM
64612020-03-16 Simon Marchi <simon.marchi@efficios.com>
6462
6463 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6464 function.
6465 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6466
3293bbaf
TT
64672020-03-14 Tom Tromey <tom@tromey.com>
6468
6469 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6470 for C++.
6471 (c_type_print_modifier): Likewise. Add "language" parameter.
6472 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6473 (c_type_print_base_1): Update.
6474 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6475 constants.
6476 * type-stack.c (type_stack::insert): Handle tp_atomic and
6477 tp_restrict.
6478 (type_stack::follow_type_instance_flags): Likewise.
6479 (type_stack::follow_types): Likewise. Merge type-following code.
6480 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6481 (space_identifier, cv_with_space_id)
6482 (const_or_volatile_or_space_identifier_noopt)
6483 (const_or_volatile_or_space_identifier): Remove.
6484 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6485 rules.
6486 (ptr_operator, typebase): Update.
6487 (enum token_flag) <FLAG_C>: New constant.
6488 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6489 "_Atomic".
6490 (lex_one_token): Handle FLAG_C.
6491
154151a6
KR
64922020-03-14 Kamil Rytarowski <n54@gmx.com>
6493
6494 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6495 it to the ptrace call.
6496 * m68k-bsd-nat.c (store_registers): Likewise.
6497
bc107784
KR
64982020-03-14 Kamil Rytarowski <n54@gmx.com>
6499
6500 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6501 gdb_byte *.
6502 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6503 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6504 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6505
01a80117
KR
65062020-03-14 Kamil Rytarowski <n54@gmx.com>
6507
6508 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6509 nbsd_nat_target instead of inf_ptrace_target.
6510 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6511 nbsd_nat_target.
6512
f90280ca
KR
65132020-03-14 Kamil Rytarowski <n54@gmx.com>
6514
6515 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6516 register_t.
6517
6def66f1
KR
65182020-03-14 Kamil Rytarowski <n54@gmx.com>
6519
6520 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6521 it to the ptrace call.
6522 * alpha-bsd-nat.c (store_registers): Likewise.
6523
66eaca97
KR
65242020-03-14 Kamil Rytarowski <n54@gmx.com>
6525
6526 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6527 includes.
6528 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6529 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6530 fill_fpregset): Likewise.
6531
4fed520b
KR
65322020-03-14 Kamil Rytarowski <n54@gmx.com>
6533
6534 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6535 nbsd_nat_target instead of inf_ptrace_target.
6536 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6537 nbsd_nat_target.
6538
2190cf06
KR
65392020-03-14 Kamil Rytarowski <n54@gmx.com>
6540
6541 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6542 register_t.
6543
75c56d3d
KR
65442020-03-14 Kamil Rytarowski <n54@gmx.com>
6545
6546 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6547 it to the ptrace call.
6548 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6549 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6550 * arm-nbsd-nat.c (store_register): Likewise.
6551 * arm-nbsd-nat.c (store_regs): Likewise.
6552 * arm-nbsd-nat.c (store_fp_register): Likewise.
6553 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6554
6018d381
KR
65552020-03-14 Kamil Rytarowski <n54@gmx.com>
6556
6557 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6558 nbsd_nat_target instead of inf_ptrace_target.
6559 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6560 nbsd_nat_target.
6561
013f99f0
KR
65622020-03-14 Kamil Rytarowski <n54@gmx.com>
6563
6564 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6565 it to the ptrace call.
6566 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6567
12753073
KR
65682020-03-14 Kamil Rytarowski <n54@gmx.com>
6569
6227b330
KR
6570 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6571 it to the ptrace call.
6572 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6573
65742020-03-14 Kamil Rytarowski <n54@gmx.com>
6575
6576 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6577 gdb_byte *.
12753073
KR
6578 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6579
d5be5fa4
KR
65802020-03-14 Kamil Rytarowski <n54@gmx.com>
6581
6582 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6583 instead of inf_ptrace_target.
6584 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6585 nbsd_nat_target.
6586
8110f842
KR
65872020-03-14 Kamil Rytarowski <n54@gmx.com>
6588
6589 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6590 register_t.
6591
52feded7
KR
65922020-03-14 Kamil Rytarowski <n54@gmx.com>
6593
6594 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6595 register_t.
6596
25567eee
KR
65972020-03-14 Kamil Rytarowski <n54@gmx.com>
6598
6599 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6600 register_t.
6601
426a9c18
TT
66022020-03-13 Tom Tromey <tom@tromey.com>
6603
6604 * value.h (val_print): Don't declare.
6605 * valprint.h (val_print_array_elements)
6606 (val_print_scalar_formatted, generic_val_print): Don't declare.
6607 * valprint.c (generic_val_print_array): Take a struct value.
6608 (generic_val_print_ptr, generic_val_print_memberptr)
6609 (generic_val_print_bool, generic_val_print_int)
6610 (generic_val_print_char, generic_val_print_complex)
6611 (generic_val_print): Remove.
6612 (generic_value_print): Update.
6613 (do_val_print): Remove unused parameters. Don't call
6614 la_val_print.
6615 (val_print): Remove.
6616 (common_val_print): Update. Don't call value_check_printable.
6617 (val_print_scalar_formatted, val_print_array_elements): Remove.
6618 * rust-lang.c (rust_val_print): Remove.
6619 (rust_language_defn): Update.
6620 * p-valprint.c (pascal_val_print): Remove.
6621 (pascal_value_print_inner): Update.
6622 (pascal_object_print_val_fields, pascal_object_print_val):
6623 Remove.
6624 (pascal_object_print_static_field): Update.
6625 * p-lang.h (pascal_val_print): Don't declare.
6626 * p-lang.c (pascal_language_defn): Update.
6627 * opencl-lang.c (opencl_language_defn): Update.
6628 * objc-lang.c (objc_language_defn): Update.
6629 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6630 * m2-lang.h (m2_val_print): Don't declare.
6631 * m2-lang.c (m2_language_defn): Update.
6632 * language.h (struct language_defn) <la_val_print>: Remove.
6633 * language.c (unk_lang_value_print_inner): Rename. Change
6634 argument types.
6635 (unknown_language_defn, auto_language_defn): Update.
6636 * go-valprint.c (go_val_print): Remove.
6637 * go-lang.h (go_val_print): Don't declare.
6638 * go-lang.c (go_language_defn): Update.
6639 * f-valprint.c (f_val_print): Remove.
6640 * f-lang.h (f_value_print): Don't declare.
6641 * f-lang.c (f_language_defn): Update.
6642 * d-valprint.c (d_val_print): Remove.
6643 * d-lang.h (d_value_print): Don't declare.
6644 * d-lang.c (d_language_defn): Update.
6645 * cp-valprint.c (cp_print_value_fields)
6646 (cp_print_value_fields_rtti, cp_print_value): Remove.
6647 (cp_print_static_field): Update.
6648 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6649 (c_val_print_struct, c_val_print_union, c_val_print_int)
6650 (c_val_print_memberptr, c_val_print): Remove.
6651 * c-lang.h (c_val_print_array, cp_print_value_fields)
6652 (cp_print_value_fields_rtti): Don't declare.
6653 * c-lang.c (c_language_defn, cplus_language_defn)
6654 (asm_language_defn, minimal_language_defn): Update.
6655 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6656 (ada_val_print_enum): Take a struct value.
6657 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6658 (ada_val_print): Remove.
6659 (ada_value_print_1): Update.
6660 (printable_val_type): Remove.
6661 * ada-lang.h (ada_val_print): Don't declare.
6662 * ada-lang.c (ada_language_defn): Update.
6663
42331a1e
TT
66642020-03-13 Tom Tromey <tom@tromey.com>
6665
6666 * valprint.c (do_val_print): Update.
6667 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6668 a struct value.
6669 (value_to_value_object_no_release): Declare.
6670 * python/py-value.c (value_to_value_object_no_release): New
6671 function.
6672 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6673 struct value.
6674 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6675 function.
6676 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6677 a struct value.
6678 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6679 Declare.
6680 (gdbscm_apply_val_pretty_printer): Take a struct value.
6681 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6682 value.
6683 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6684 value.
6685 * extension-priv.h (struct extension_language_ops)
6686 <apply_val_pretty_printer>: Take a struct value.
6687 * cp-valprint.c (cp_print_value): Create a struct value.
6688 (cp_print_value): Update.
6689
3a916a97
TT
66902020-03-13 Tom Tromey <tom@tromey.com>
6691
6692 * ada-valprint.c (print_field_values): Call common_val_print.
6693
b59eac37
TT
66942020-03-13 Tom Tromey <tom@tromey.com>
6695
6696 * ada-valprint.c (val_print_packed_array_elements): Remove
6697 bitoffset and val parameters. Call common_val_print.
6698 (ada_val_print_string): Remove offset, address, and original_value
6699 parameters.
6700 (ada_val_print_array): Update.
6701 (ada_value_print_array): New function.
6702 (ada_value_print_1): Call it.
6703
03371129
TT
67042020-03-13 Tom Tromey <tom@tromey.com>
6705
6706 * ada-valprint.c (ada_value_print): Use common_val_print.
6707
2e088f8b
TT
67082020-03-13 Tom Tromey <tom@tromey.com>
6709
6710 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6711
39ef85a8
TT
67122020-03-13 Tom Tromey <tom@tromey.com>
6713
6714 * ada-valprint.c (ada_value_print_num): New function.
6715 (ada_value_print_1): Use it.
6716
b9fa6e07
TT
67172020-03-13 Tom Tromey <tom@tromey.com>
6718
6719 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6720
416595d6
TT
67212020-03-13 Tom Tromey <tom@tromey.com>
6722
6723 * ada-valprint.c (ada_value_print_ptr): New function.
6724 (ada_value_print_1): Use it.
6725
5b5e15ec
TT
67262020-03-13 Tom Tromey <tom@tromey.com>
6727
6728 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6729 call common_val_print.
6730 (ada_val_print_1): Update.
6731 (ada_value_print_1): New function.
6732 (ada_value_print_inner): Rewrite.
6733
fbf54e75
TT
67342020-03-13 Tom Tromey <tom@tromey.com>
6735
6736 * cp-valprint.c (cp_print_value_fields): Update.
6737 (cp_print_value): New function.
6738
64b653ca
TT
67392020-03-13 Tom Tromey <tom@tromey.com>
6740
6741 * m2-valprint.c (m2_value_print_inner): Use
6742 cp_print_value_fields.
6743 * cp-valprint.c (cp_print_value_fields): New function.
6744 * c-valprint.c (c_value_print_struct): New function.
6745 (c_value_print_inner): Use c_value_print_struct.
6746 * c-lang.h (cp_print_value_fields): Declare.
6747
6999f067
TT
67482020-03-13 Tom Tromey <tom@tromey.com>
6749
6750 * c-valprint.c (c_value_print_array): New function.
6751 (c_value_print_inner): Use it.
6752
ce80b8bd
TT
67532020-03-13 Tom Tromey <tom@tromey.com>
6754
6755 * c-valprint.c (c_value_print_memberptr): New function.
6756 (c_value_print_inner): Use it.
6757
2faac269
TT
67582020-03-13 Tom Tromey <tom@tromey.com>
6759
6760 * c-valprint.c (c_value_print_int): New function.
6761 (c_value_print_inner): Use it.
6762
da3e2c29
TT
67632020-03-13 Tom Tromey <tom@tromey.com>
6764
6765 * c-valprint.c (c_value_print_ptr): New function.
6766 (c_value_print_inner): Use it.
6767
50836231
TT
67682020-03-13 Tom Tromey <tom@tromey.com>
6769
6770 * c-valprint.c (c_value_print_inner): Rewrite.
6771
4f412b6e
TT
67722020-03-13 Tom Tromey <tom@tromey.com>
6773
6774 * valprint.c (generic_value_print_complex): New function.
6775 (generic_value_print): Use it.
6776
f5354008
TT
67772020-03-13 Tom Tromey <tom@tromey.com>
6778
6779 * valprint.c (generic_val_print_float): Don't call
6780 val_print_scalar_formatted.
6781 (generic_val_print, generic_value_print): Update.
6782
3eec3b05
TT
67832020-03-13 Tom Tromey <tom@tromey.com>
6784
6785 * valprint.c (generic_value_print_char): New function
6786 (generic_value_print): Use it.
6787
fdddfccb
TT
67882020-03-13 Tom Tromey <tom@tromey.com>
6789
6790 * valprint.c (generic_value_print_int): New function.
6791 (generic_value_print): Use it.
6792
6dde7521
TT
67932020-03-13 Tom Tromey <tom@tromey.com>
6794
6795 * valprint.c (generic_value_print_bool): New function.
6796 (generic_value_print): Use it.
6797
4112d2e6
TT
67982020-03-13 Tom Tromey <tom@tromey.com>
6799
6800 * valprint.c (generic_val_print_func): Simplify.
6801 (generic_val_print, generic_value_print): Update.
6802
65786af6
TT
68032020-03-13 Tom Tromey <tom@tromey.com>
6804
6805 * valprint.c (generic_val_print_flags): Remove.
6806 (generic_val_print, generic_value_print): Update.
6807 (val_print_type_code_flags): Add original_value parameter.
6808
40f3ce18
TT
68092020-03-13 Tom Tromey <tom@tromey.com>
6810
6811 * valprint.c (generic_val_print): Update.
6812 (generic_value_print): Update.
6813 * valprint.c (generic_val_print_enum): Don't call
6814 val_print_scalar_formatted.
6815
2a5b130b
TT
68162020-03-13 Tom Tromey <tom@tromey.com>
6817
6818 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6819 * valprint.c (generic_value_print_ptr): New function.
6820
abc66ce9
TT
68212020-03-13 Tom Tromey <tom@tromey.com>
6822
6823 * valprint.c (generic_value_print): Rewrite.
6824
07a32858
TT
68252020-03-13 Tom Tromey <tom@tromey.com>
6826
6827 * p-valprint.c (pascal_object_print_value_fields)
6828 (pascal_object_print_value): New functions.
6829
64d64d3a
TT
68302020-03-13 Tom Tromey <tom@tromey.com>
6831
6832 * p-valprint.c (pascal_value_print_inner): Rewrite.
6833
6a95a1f5
TT
68342020-03-13 Tom Tromey <tom@tromey.com>
6835
6836 * f-valprint.c (f_value_print_innner): Rewrite.
6837
59fcdac6
TT
68382020-03-13 Tom Tromey <tom@tromey.com>
6839
6840 * m2-valprint.c (m2_print_unbounded_array): New overload.
6841 (m2_print_unbounded_array): Update.
6842 (m2_print_array_contents): Take a struct value.
6843 (m2_value_print_inner): Rewrite.
6844
d133c3e1
TT
68452020-03-13 Tom Tromey <tom@tromey.com>
6846
6847 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6848 (d_value_print_inner): New function.
6849 * d-lang.h (d_value_print_inner): Declare.
6850 * d-lang.c (d_language_defn): Use d_value_print_inner.
6851
23b0f06b
TT
68522020-03-13 Tom Tromey <tom@tromey.com>
6853
6854 * go-valprint.c (go_value_print_inner): New function.
6855 * go-lang.h (go_value_print_inner): Declare.
6856 * go-lang.c (go_language_defn): Use go_value_print_inner.
6857
5f56f7cb
TT
68582020-03-13 Tom Tromey <tom@tromey.com>
6859
6860 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6861 API.
6862 (rust_val_print): Rewrite.
6863 (rust_value_print_inner): New function, from rust_val_print.
6864 (rust_language_defn): Use rust_value_print_inner.
6865
26792ee0
TT
68662020-03-13 Tom Tromey <tom@tromey.com>
6867
6868 * ada-valprint.c (ada_value_print_inner): New function.
6869 * ada-lang.h (ada_value_print_inner): Declare.
6870 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6871
24051bbe
TT
68722020-03-13 Tom Tromey <tom@tromey.com>
6873
6874 * f-valprint.c (f_value_print_innner): New function.
6875 * f-lang.h (f_value_print_innner): Declare.
6876 * f-lang.c (f_language_defn): Use f_value_print_innner.
6877
c0941be6
TT
68782020-03-13 Tom Tromey <tom@tromey.com>
6879
6880 * p-valprint.c (pascal_value_print_inner): New function.
6881 * p-lang.h (pascal_value_print_inner): Declare.
6882 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6883
62c4663d
TT
68842020-03-13 Tom Tromey <tom@tromey.com>
6885
6886 * m2-valprint.c (m2_value_print_inner): New function.
6887 * m2-lang.h (m2_value_print_inner): Declare.
6888 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6889
62182190
TT
68902020-03-13 Tom Tromey <tom@tromey.com>
6891
6892 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6893 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6894 * c-valprint.c (c_value_print_inner): New function.
6895 * c-lang.h (c_value_print_inner): Declare.
6896 * c-lang.c (c_language_defn, cplus_language_defn)
6897 (asm_language_defn, minimal_language_defn): Use
6898 c_value_print_inner.
6899
1e592a8a
TT
69002020-03-13 Tom Tromey <tom@tromey.com>
6901
6902 * p-valprint.c (pascal_object_print_value_fields): Now static.
6903 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6904
7fe471e9
TT
69052020-03-13 Tom Tromey <tom@tromey.com>
6906
6907 * c-valprint.c (c_val_print_array): Simplify.
6908
d121c6ce
TT
69092020-03-13 Tom Tromey <tom@tromey.com>
6910
6911 * valprint.c (value_print_array_elements): New function.
6912 * valprint.h (value_print_array_elements): Declare.
6913
4dba70ee
TT
69142020-03-13 Tom Tromey <tom@tromey.com>
6915
6916 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6917 * mips-tdep.c (mips_print_register): Use
6918 value_print_scalar_formatted.
6919
4f9ae810
TT
69202020-03-13 Tom Tromey <tom@tromey.com>
6921
6922 * valprint.h (value_print_scalar_formatted): Declare.
6923 * valprint.c (value_print_scalar_formatted): New function.
6924
156bfec9
TT
69252020-03-13 Tom Tromey <tom@tromey.com>
6926
6927 * valprint.h (generic_value_print): Declare.
6928 * valprint.c (generic_value_print): New function.
6929
2b4e573d
TT
69302020-03-13 Tom Tromey <tom@tromey.com>
6931
6932 * valprint.c (do_val_print): Call la_value_print_inner, if
6933 available.
6934 * rust-lang.c (rust_language_defn): Update.
6935 * p-lang.c (pascal_language_defn): Update.
6936 * opencl-lang.c (opencl_language_defn): Update.
6937 * objc-lang.c (objc_language_defn): Update.
6938 * m2-lang.c (m2_language_defn): Update.
6939 * language.h (struct language_defn) <la_value_print_inner>: New
6940 member.
6941 * language.c (unknown_language_defn, auto_language_defn): Update.
6942 * go-lang.c (go_language_defn): Update.
6943 * f-lang.c (f_language_defn): Update.
6944 * d-lang.c (d_language_defn): Update.
6945 * c-lang.c (c_language_defn, cplus_language_defn)
6946 (asm_language_defn, minimal_language_defn): Update.
6947 * ada-lang.c (ada_language_defn): Update.
6948
a1f6a07c
TT
69492020-03-13 Tom Tromey <tom@tromey.com>
6950
6951 * c-valprint.c (c_value_print): Use common_val_print.
6952
410cf315
TT
69532020-03-13 Tom Tromey <tom@tromey.com>
6954
6955 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6956
72a45c93
TT
69572020-03-13 Tom Tromey <tom@tromey.com>
6958
6959 * f-valprint.c (f77_print_array_1, f_val_print): Use
6960 common_val_print.
6961
040f66bd
TT
69622020-03-13 Tom Tromey <tom@tromey.com>
6963
6964 * riscv-tdep.c (riscv_print_one_register_info): Use
6965 common_val_print.
6966
a6e05a6c
TT
69672020-03-13 Tom Tromey <tom@tromey.com>
6968
6969 * mi/mi-main.c (output_register): Use common_val_print.
6970
3444c526
TT
69712020-03-13 Tom Tromey <tom@tromey.com>
6972
6973 * infcmd.c (default_print_one_register_info): Use
6974 common_val_print.
6975
c2a44efe
TT
69762020-03-13 Tom Tromey <tom@tromey.com>
6977
6978 * valprint.h (common_val_print_checked): Declare.
6979 * valprint.c (common_val_print_checked): New function.
6980 * stack.c (print_frame_arg): Use common_val_print_checked.
6981
b0c26e99
TT
69822020-03-13 Tom Tromey <tom@tromey.com>
6983
6984 * valprint.c (do_val_print): New function, from val_print.
6985 (val_print): Use do_val_print.
6986 (common_val_print): Use do_val_print.
6987
ce3acbe9
TT
69882020-03-13 Tom Tromey <tom@tromey.com>
6989
6990 * valprint.c (value_print): Use scoped_value_mark.
6991
96c7f873
TV
69922020-03-13 Tom de Vries <tdevries@suse.de>
6993
6994 PR symtab/25646
6995 * psymtab.c (partial_symtab::partial_symtab): Don't set
6996 globals_offset and statics_offset. Push element onto
6997 current_global_psymbols and current_static_psymbols stacks.
6998 (concat): New function.
6999 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7000 element from current_global_psymbols and current_static_psymbols
7001 stacks. Concat popped elements to global_psymbols and
7002 static_symbols.
7003 (add_psymbol_to_list): Use current_global_psymbols and
7004 current_static_psymbols stacks.
7005 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7006 current_static_psymbols fields.
7007
6ba0a321
CB
70082020-03-12 Christian Biesinger <cbiesinger@google.com>
7009
7010 * corelow.c (sniff_core_bfd): Remove.
7011 (class core_target) <m_core_vec>: Remove.
7012 (core_target::core_target): Update.
7013 (core_file_fns): Remove.
7014 (deprecated_add_core_fns): Remove.
7015 (default_core_sniffer): Remove.
7016 (sniff_core_bfd): Remove.
7017 (default_check_format): Remove.
7018 (gdb_check_format): Remove.
7019 (core_target_open): Update.
7020 (core_target::get_core_register_section): Update.
7021 (get_core_registers_cb): Update.
7022 (core_target::fetch_registers): Update.
7023 * gdbcore.h (struct core_fns): Remove.
7024 (deprecated_add_core_fns): Remove.
7025 (default_core_sniffer): Remove.
7026 (default_check_format): Remove.
7027
227031b2
TT
70282020-03-12 Tom Tromey <tom@tromey.com>
7029
7030 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7031 CORE_ADDR.
7032 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7033
53807e9f
TT
70342020-03-12 Tom Tromey <tom@tromey.com>
7035
7036 * remote.c (remote_target::download_tracepoint)
7037 (remote_target::enable_tracepoint)
7038 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7039 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7040 sprintf_vma.
7041
64f25102
TT
70422020-03-12 Tom Tromey <tom@tromey.com>
7043
7044 * symfile-mem.c: Update CORE_ADDR size assert.
7045
272cd5a3
SM
70462020-03-12 Simon Marchi <simon.marchi@efficios.com>
7047
7048 * selftest.m4: Move to gdbsupport/.
7049 * acinclude.m4: Update path to selftest.m4.
7050
74cd3f9d
SM
70512020-03-12 Simon Marchi <simon.marchi@efficios.com>
7052
7053 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7054 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7055 gdbarch-selfselftests.c and selftest-arch.c.
7056 (SUBDIR_UNITTESTS_OBS): Rename to...
7057 (SELFTESTS_OBS): ... this.
7058 (COMMON_SFILES): Remove disasm-selftests.c and
7059 gdbarch-selftests.c.
7060 * configure.ac: Don't add selftest-arch.{c,o} to
7061 CONFIG_{SRCS,OBS}.
7062 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7063 preprocessor conditions.
7064
db6878ac
SM
70652020-03-12 Simon Marchi <simon.marchi@efficios.com>
7066
7067 * configure.ac: Don't source bfd/development.sh.
7068 * selftest.m4: Modify comment.
7069 * configure: Re-generate.
7070
4d696a5c
SM
70712020-03-12 Simon Marchi <simon.marchi@efficios.com>
7072
7073 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7074 not "true" or "false".
7075 * configure: Re-generate.
7076
8dd8e1c7
CB
70772020-03-12 Christian Biesinger <cbiesinger@google.com>
7078
7079 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7080 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7081 renamed to arm_nbsd_supply_gregset.
7082 (fetch_register): Update to call arm_nbsd_supply_gregset.
7083 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7084 (arm_netbsd_nat_target::fetch_registers): Update.
7085 (fetch_elfcore_registers): Removed.
7086 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7087 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7088 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7089 not require NetBSD system headers.
7090 (arm_nbsd_regset): New struct.
7091 (arm_nbsd_iterate_over_regset_sections): New function.
7092 (arm_netbsd_init_abi_common): Updated to call
7093 set_gdbarch_iterate_over_regset_sections.
7094 * arm-nbsd-tdep.h: New file.
7095
dd69bf7a
KB
70962020-03-11 Kevin Buettner <kevinb@redhat.com>
7097
7098 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7099 recursion.
7100
a0761e34
SM
71012020-03-11 Simon Marchi <simon.marchi@efficios.com>
7102
7103 * configure: Re-generate.
7104
e7a82140
TT
71052020-03-11 Tom Tromey <tromey@adacore.com>
7106
7107 * ada-typeprint.c (print_choices): Fix comment.
7108
dcc050c8
AB
71092020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7110
7111 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7112 previous item in the list, when the list has no items.
7113
1c33af77
TV
71142020-03-11 Tom de Vries <tdevries@suse.de>
7115
7116 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7117 PROP_LOCLIST handling code.
7118
8c95582d
AB
71192020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7120
7121 * buildsym-legacy.c (record_line): Pass extra parameter to
7122 record_line.
7123 * buildsym.c (buildsym_compunit::record_line): Take an extra
7124 parameter, reduce duplication in the line table, and record the
7125 is_stmt flag in the line table.
7126 * buildsym.h (buildsym_compunit::record_line): Add extra
7127 parameter.
7128 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7129 non-statement lines.
7130 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7131 this to the symtab builder.
7132 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7133 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7134 through to dwarf_record_line_1.
7135 * infrun.c (process_event_stop_test): When stepping, don't stop at
7136 a non-statement instruction, and only refresh the step info when
7137 we land in the middle of a line's range. Also add an extra
7138 comment.
7139 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7140 field.
7141 * record-btrace.c (btrace_find_line_range): Only record lines
7142 marked as is-statement.
7143 * stack.c (frame_show_address): Show the frame address if we are
7144 in a non-statement sal.
7145 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7146 (maintenance_print_one_line_table): Print a header for the is_stmt
7147 column, and include is_stmt information in the output.
7148 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7149 preference to non-statements.
7150 (find_pcs_for_symtab_line): Prefer is-statement entries.
7151 (find_line_common): Likewise.
7152 * symtab.h (struct linetable_entry): Add is_stmt field.
7153 (struct symtab_and_line): Likewise.
7154 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7155 arranging the line table.
7156
e4003a34
TV
71572020-03-07 Tom de Vries <tdevries@suse.de>
7158
7159 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7160 DIE.
7161
e8932576
TT
71622020-03-07 Tom Tromey <tom@tromey.com>
7163
7164 * valops.c (value_literal_complex): Remove obsolete comment.
7165 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7166 comment.
7167
29734269
SM
71682020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7169
7170 * infrun.h: Forward-declare thread_info.
7171 (set_step_info): Add thread_info parameter, add doc.
7172 * infrun.c (set_step_info): Add thread_info parameter, move doc
7173 to header.
7174 * infrun.c (process_event_stop_test): Pass thread to
7175 set_step_info call.
7176 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7177 set_step_info.
7178 (prepare_one_step): Add thread_info parameter, pass it to
7179 set_step_frame and prepare_one_step (recursive) call.
7180 (step_1): Pass thread to prepare_one_step call.
7181 (step_command_fsm::should_stop): Pass thread to
7182 prepare_one_step.
7183 (until_next_fsm): Pass thread to set_step_frame call.
7184 (finish_command): Pass thread to set_step_info call.
7185
b7d64b29
HD
71862020-03-06 Hannes Domani <ssbssa@yahoo.de>
7187
7188 * windows-tdep.c (windows_solib_create_inferior_hook):
7189 Check if inferior is running.
7190
09f2921c
TV
71912020-03-06 Tom de Vries <tdevries@suse.de>
7192
7193 * NEWS: Fix "the the".
7194 * ctfread.c: Same.
7195
fd760e79
TV
71962020-03-06 Tom de Vries <tdevries@suse.de>
7197
7198 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7199
20ea4a60
AB
72002020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7201
7202 * .dir-locals.el: Add a comment referencing the other copies of
7203 this file.
7204
0afbabf0
JB
72052020-03-05 John Baldwin <jhb@FreeBSD.org>
7206
7207 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7208 psargs.
7209
842806cb
TBA
72102020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7211
7212 * .gitattributes: New file.
7213
be1e3d3e
TT
72142020-03-04 Tom Tromey <tom@tromey.com>
7215
7216 * symmisc.c (print_symbol_bcache_statistics)
7217 (print_objfile_statistics): Update.
7218 * symfile.c (allocate_symtab): Use intern.
7219 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7220 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7221 macro_cache>: Remove.
7222 <string_cache>: New member.
7223 (struct objfile) <intern>: New methods.
7224 * elfread.c (elf_symtab_read): Use intern.
7225 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7226 (dwarf2_compute_name, dwarf2_physname)
7227 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7228 names.
7229 (guess_partial_die_structure_name): Update.
7230 (partial_die_info::fixup): Intern name.
7231 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7232 name.
7233 (dwarf2_name): Intern name. Update.
7234 * buildsym.c (buildsym_compunit::get_macro_table): Use
7235 string_cache.
7236
4e7625fd
TT
72372020-03-04 Tom Tromey <tom@tromey.com>
7238
7239 * jit.c (bfd_open_from_target_memory): Make "target" const.
7240 * corefile.c (gnutarget): Now const.
7241 * gdbcore.h (gnutarget): Now const.
7242
46f9f931
HD
72432020-03-04 Hannes Domani <ssbssa@yahoo.de>
7244
7245 * NEWS: Mention support for WOW64 processes.
7246 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7247 (amd64_windows_segment_register_p): Remove static.
7248 (_initialize_amd64_windows_nat): Update.
7249 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7250 * i386-windows-nat.c (context_offset): Update.
7251 (i386_mappings): Rename and remove static.
7252 (i386_windows_segment_register_p): Remove static.
7253 (_initialize_i386_windows_nat): Update.
7254 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7255 (STATUS_WX86_SINGLE_STEP): New macro.
7256 (EnumProcessModulesEx): New macro.
7257 (Wow64SuspendThread): New macro.
7258 (Wow64GetThreadContext): New macro.
7259 (Wow64SetThreadContext): New macro.
7260 (Wow64GetThreadSelectorEntry): New macro.
7261 (windows_set_context_register_offsets): Add static.
7262 (windows_set_segment_register_p): Likewise.
7263 (windows_add_thread): Adapt for WOW64 processes.
7264 (windows_fetch_one_register): Likewise.
7265 (windows_nat_target::fetch_registers): Likewise.
7266 (windows_store_one_register): Likewise.
7267 (display_selector): Likewise.
7268 (display_selectors): Likewise.
7269 (handle_exception): Likewise.
7270 (windows_continue): Likewise.
7271 (windows_nat_target::resume): Likewise.
7272 (windows_add_all_dlls): Likewise.
7273 (do_initial_windows_stuff): Likewise.
7274 (windows_nat_target::attach): Likewise.
7275 (windows_get_exec_module_filename): Likewise.
7276 (windows_nat_target::create_inferior): Likewise.
7277 (windows_xfer_siginfo): Likewise.
7278 (_initialize_loadable): Initialize Wow64SuspendThread,
7279 Wow64GetThreadContext, Wow64SetThreadContext,
7280 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7281 * windows-nat.h (windows_set_context_register_offsets):
7282 Remove declaration.
7283 (windows_set_segment_register_p): Likewise.
7284 (i386_windows_segment_register_p): Add declaration.
7285 (amd64_windows_segment_register_p): Likewise.
7286
440cf44e
LM
72872020-03-04 Luis Machado <luis.machado@linaro.org>
7288
7289 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7290 in "info registers" for AArch64/ARM.
7291
7292 The change caused "info registers" to not print GPR's.
7293
7294 gdb/ChangeLog:
7295
7296 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7297
7298 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7299 when reg->group is empty and reggroup is not.
7300
1009d92f
TT
73012020-03-03 Tom Tromey <tromey@adacore.com>
7302
7303 * dwarf2/frame.c (struct dwarf2_frame_cache)
7304 <checked_tailcall_bottom, entry_cfa_sp_offset,
7305 entry_cfa_sp_offset_p>: Remove members.
7306 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7307 (dwarf2_frame_prev_register): Don't call
7308 dwarf2_tailcall_sniffer_first.
7309 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7310 * frame-unwind.c (add_unwinder): New fuction.
7311 (frame_unwind_init): Use it. Add tailcall unwinder.
7312
5e5d66b6
AB
73132020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7314 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7315
7316 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7317 value should be printed as true.
7318
584cf46d
HD
73192020-03-03 Hannes Domani <ssbssa@yahoo.de>
7320
7321 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7322 (windows_init_abi): Set and use windows_so_ops.
7323
7b973adc
SDJ
73242020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7325
7326 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7327 when verifying if dealing with a convenience variable.
7328
bb7b70ab
LM
73292020-03-03 Luis Machado <luis.machado@linaro.org>
7330
7331 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7332
9822cb57
SM
73332020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7334
7335 * infrun.c (gdbarch_supports_displaced_stepping): New.
7336 (use_displaced_stepping): Break up conditions in smaller pieces.
7337 Use gdbarch_supports_displaced_stepping.
7338 (displaced_step_prepare_throw): Use
7339 gdbarch_supports_displaced_stepping.
7340
63e163f2
AB
73412020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7342
7343 * NEWS: Mention new behaviour of the history filename.
7344 * top.c (write_history_p): Add comment.
7345 (show_write_history_p): Add header comment, give a different
7346 message when history writing is on, but the history filename is
7347 empty.
7348 (history_filename): Add comment.
7349 (history_filename_empty): New function.
7350 (show_history_filename): Add header comment, give a different
7351 message when the filename is empty.
7352 (init_history): Compare history_filename against nullptr, and only
7353 read history if the filename is not empty.
7354 (set_history_filename): Add header comment, and only make
7355 non-empty filenames absolute.
7356 (init_main): Make the filename argument to 'set history filename'
7357 optional.
7358
81b86b97
CB
73592020-03-02 Christian Biesinger <cbiesinger@google.com>
7360
7361 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7362 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7363 (fetch_fp_register): Update.
7364 (fetch_fp_regs): Update.
7365 (store_fp_register): Update.
7366 (store_fp_regs): Update.
7367 (arm_netbsd_nat_target::read_description): New function.
7368 (fetch_elfcore_registers): Update.
7369
24ed6739
AB
73702020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7371
7372 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7373 general_thread if the stop reply is missing a thread-id.
7374 (remote_target::process_stop_reply): Use the first non-exited
7375 thread if the target didn't pass a thread-id.
7376 * infrun.c (do_target_wait): Move call to
7377 switch_to_inferior_no_thread to ....
7378 (do_target_wait_1): ... here.
7379
a84bb2a0
JT
73802020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7381
7382 * debuginfod-support.c: Include defs.h first.
7383
658dadf0
TV
73842020-02-28 Tom de Vries <tdevries@suse.de>
7385
7386 * symfile.c (set_initial_language): Use default language for lookup.
7387
4ebe4877
SM
73882020-02-28 Simon Marchi <simon.marchi@efficios.com>
7389
7390 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7391 reader variable, pass `this` to read_cutu_die_from_dwo.
7392
e5da1139
AM
73932020-02-27 Aaron Merey <amerey@redhat.com>
7394
7395 * source.c (open_source_file): Check for nullptr when computing
7396 srcpath.
7397
317f7127
TT
73982020-02-27 Tom Tromey <tromey@adacore.com>
7399
7400 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7401 member.
7402 (dwarf2_add_field): Don't update nfields.
7403 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7404
3104d9ee
AB
74052020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7406
7407 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7408 abs.
7409
b83470bf
TT
74102020-02-26 Tom Tromey <tom@tromey.com>
7411
7412 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7413 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7414 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7415 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7416 per_cu_data.
7417
edfe0a0c
TT
74182020-02-26 Tom Tromey <tom@tromey.com>
7419
7420 * dwarf2/index-write.c (psym_index_map): Change type.
7421 (add_address_entry_worker, write_one_signatured_type)
7422 (recursively_count_psymbols, recursively_write_psymbols)
7423 (class debug_names, psyms_seen_size, write_gdbindex)
7424 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7425
0d79cdc4
AM
74262020-02-26 Aaron Merey <amerey@redhat.com>
7427
7428 * Makefile.in: Handle optional debuginfod support.
7429 * NEWS: Update.
7430 * README: Add --with-debuginfod summary.
7431 * config.in: Regenerate.
7432 * configure: Regenerate.
7433 * configure.ac: Handle optional debuginfod support.
7434 * debuginfod-support.c: debuginfod helper functions.
7435 * debuginfod-support.h: Ditto.
7436 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7437 summary.
7438 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7439 when a dwz file cannot be found.
7440 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7441 debuginfo file cannot be found.
7442 * source.c (open_source_file): Query debuginfod servers when a
7443 source file cannot be found.
7444 * top.c (print_gdb_configuration): Include
7445 --{with,without}-debuginfod in the output.
7446
b65ce565
JG
74472020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7448
7449 * thread.c (thr_try_catch_cmd): Print thread name.
7450
d4c9a4f8
SM
74512020-02-26 Simon Marchi <simon.marchi@efficios.com>
7452
7453 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7454 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7455 dwarf2_fetch_die_type_sect_off): Move to...
7456 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7457 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7458 dwarf2_fetch_die_type_sect_off): ... here.
7459 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7460 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7461 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7462
0dce4280
TV
74632020-02-26 Tom de Vries <tdevries@suse.de>
7464
7465 PR gdb/25603
7466 * symfile.c (set_initial_language): Exit-early if
7467 language_mode == language_mode_manual.
7468
450a1bfc
SM
74692020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7470
7471 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7472 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7473 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7474
9e80cfa1
AB
74752020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7476
7477 * gdbtypes.c (create_array_type_with_stride): Handle negative
7478 array strides.
7479 * valarith.c (value_subscripted_rvalue): Likewise.
7480
09624f1f
LM
74812020-02-25 Luis Machado <luis.machado@linaro.org>
7482
7483 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7484
8cb5117c
SM
74852020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7486
7487 * loc.h (dwarf2_get_die_type): Move to...
7488 * read.h (dwarf2_get_die_type): ... here.
7489 * read.c (dwarf2_get_die_type): Move doc to header.
7490
c325c44e
JB
74912020-02-25 Joel Brobecker <brobecker@adacore.com>
7492
7493 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7494 'gnulib/Makefile.in' to the list.
7495
4ac93832
TT
74962020-02-24 Tom Tromey <tom@tromey.com>
7497
7498 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7499 Remove.
7500 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7501 XOBNEWVEC.
7502
197400e8
TT
75032020-02-24 Tom Tromey <tom@tromey.com>
7504
7505 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7506 New method.
7507 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7508 (dw2_do_instantiate_symtab, dw2_get_file_names)
7509 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7510
76935768
TT
75112020-02-24 Tom Tromey <tom@tromey.com>
7512
7513 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7514 make_scoped_restore.
7515 (dwarf2_psymtab::read_symtab): Don't clear
7516 reading_partial_symbols.
7517
a88ef40d
TV
75182020-02-24 Tom de Vries <tdevries@suse.de>
7519
7520 PR gdb/25592
7521 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7522
c9af6521
TV
75232020-02-24 Tom de Vries <tdevries@suse.de>
7524
7525 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7526 commands layout next/prev/regs.
7527
5707a07a
TT
75282020-02-22 Tom Tromey <tom@tromey.com>
7529
7530 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7531 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7532
3b0fb49e
TT
75332020-02-22 Tom Tromey <tom@tromey.com>
7534
7535 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7536
283be8bf
TT
75372020-02-22 Tom Tromey <tom@tromey.com>
7538
7539 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7540 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7541 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7542 * tui/tui.c (_initialize_tui): Add usage text.
7543
ca793b96
TT
75442020-02-22 Tom Tromey <tom@tromey.com>
7545
7546 * tui/tui-win.c (tui_set_focus_command)
7547 (tui_set_win_height_command): Use error_no_arg.
7548 (_initialize_tui_win): Update help text.
7549 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7550
432b5c40
TT
75512020-02-22 Tom Tromey <tom@tromey.com>
7552
7553 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7554 * tui/tui-disasm.h (struct tui_disasm_window)
7555 <display_start_addr>: Declare.
7556 * tui/tui-source.h (struct tui_source_window)
7557 <display_start_addr>: Declare.
7558 * tui/tui-winsource.h (struct tui_source_window_base)
7559 <show_source_line, display_start_addr>: New methods.
7560 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7561 Rename and move to protected section.
7562 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7563 (tui_source_window_base::do_erase_source_content): Update.
7564 (tui_source_window_base::show_source_line): Now a method.
7565 (tui_source_window_base::show_source_content)
7566 (tui_source_window_base::tui_source_window_base)
7567 (tui_source_window_base::rerender)
7568 (tui_source_window_base::refill)
7569 (tui_source_window_base::do_scroll_horizontal)
7570 (tui_source_window_base::set_is_exec_point_at)
7571 (tui_source_window_base::update_breakpoint_info)
7572 (tui_source_window_base::update_exec_info): Update.
7573 * tui/tui-source.c (tui_source_window::set_contents)
7574 (tui_source_window::showing_source_p)
7575 (tui_source_window::do_scroll_vertical)
7576 (tui_source_window::location_matches_p)
7577 (tui_source_window::line_is_displayed): Update.
7578 (tui_source_window::display_start_addr): New method.
7579 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7580 (tui_disasm_window::do_scroll_vertical)
7581 (tui_disasm_window::location_matches_p): Update.
7582 (tui_disasm_window::display_start_addr): New method.
7583
01b1af32
TT
75842020-02-22 Tom Tromey <tom@tromey.com>
7585
7586 * NEWS: Add entry for gdb.register_window_type.
7587 * tui/tui-layout.h (window_factory): New typedef.
7588 (tui_register_window): Declare.
7589 * tui/tui-layout.c (saved_tui_windows): New global.
7590 (tui_apply_current_layout): Use it.
7591 (tui_register_window): New function.
7592 * python/python.c (do_start_initialization): Call
7593 gdbpy_initialize_tui.
7594 (python_GdbMethods): Add "register_window_type" function.
7595 * python/python-internal.h (gdbpy_register_tui_window)
7596 (gdbpy_initialize_tui): Declare.
7597 * python/py-tui.c: New file.
7598 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7599
fc96d20b
TT
76002020-02-22 Tom Tromey <tom@tromey.com>
7601
7602 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7603
935c78c0
TT
76042020-02-22 Tom Tromey <tom@tromey.com>
7605
7606 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7607 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7608 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7609 (tui_set_win_focus_to): Move from tui-win.c.
7610
0240c8f1
TT
76112020-02-22 Tom Tromey <tom@tromey.com>
7612
7613 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7614 functions.
7615 (known_window_types): New global.
7616 (tui_get_window_by_name): Reimplement.
7617 (initialize_known_windows): New function.
7618 (validate_window_name): Rewrite.
7619 (_initialize_tui_layout): Call initialize_known_windows.
7620
fdb01f0c
TT
76212020-02-22 Tom Tromey <tom@tromey.com>
7622
7623 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7624 Remove constants.
7625 * tui/tui-winsource.h (struct tui_source_window_base)
7626 <tui_source_window_base>: Remove parameter.
7627 * tui/tui-winsource.c
7628 (tui_source_window_base::tui_source_window_base): Remove
7629 parameter.
7630 (tui_source_window_base::refill): Update.
7631 * tui/tui-stack.h (struct tui_locator_window)
7632 <tui_locator_window>: Update.
7633 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7634 Default the constructor.
7635 * tui/tui-regs.h (struct tui_data_item_window)
7636 <tui_data_item_window>: Default the constructor.
7637 (struct tui_data_window) <tui_data_window>: Likewise.
7638 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7639 Default the constructor.
7640 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7641 Default the constructor.
7642 <type>: Remove.
7643 (struct tui_win_info) <tui_win_info>: Default the constructor.
7644 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7645 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7646 Default the constructor.
7647
865a5aec
TT
76482020-02-22 Tom Tromey <tom@tromey.com>
7649
7650 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7651 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7652 * tui/tui-win.c (tui_resize_all): Don't call
7653 tui_delete_invisible_windows.
7654 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7655 done.
7656 (tui_set_layout): Update.
7657 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7658 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7659 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7660
e098d18c
TT
76612020-02-22 Tom Tromey <tom@tromey.com>
7662
7663 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7664 correctly.
7665
eb9c8874
TT
76662020-02-22 Tom Tromey <tom@tromey.com>
7667
7668 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7669
7eed1a8e
TT
76702020-02-22 Tom Tromey <tom@tromey.com>
7671
7672 * tui/tui-winsource.h (struct tui_source_window_iterator)
7673 <inner_iterator>: New etytypedef.
7674 <tui_source_window_iterator>: Take "end" parameter.
7675 <tui_source_window_iterator>: Take iterator.
7676 <operator*, advance>: Update.
7677 <m_iter>: Change type.
7678 <m_end>: New field.
7679 (struct tui_source_windows) <begin, end>: Update.
7680 * tui/tui-layout.c (tui_windows): New global.
7681 (tui_apply_current_layout): Clear tui_windows.
7682 (tui_layout_window::apply): Update tui_windows.
7683 * tui/tui-data.h (tui_windows): Declare.
7684 (all_tui_windows): Now inline function.
7685 (class tui_window_iterator, struct all_tui_windows): Remove.
7686
7c043ba6
TT
76872020-02-22 Tom Tromey <tom@tromey.com>
7688
7689 PR tui/17850:
7690 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7691 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7692 "height" argument.
7693 (class tui_layout_window) <get_sizes>: Likewise.
7694 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7695 argument.
7696 <get_sizes>: Add "height" argument.
7697 <m_vertical>: New field.
7698 * tui/tui-layout.c (tui_layout_split::clone): Update.
7699 (tui_layout_split::get_sizes): Add "height" argument.
7700 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7701 (tui_new_layout_command): Parse "-horizontal".
7702 (_initialize_tui_layout): Update help string.
7703 (tui_layout_split::specification): Add "-horizontal" when needed.
7704 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7705 argument.
7706 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7707 New methods.
7708
6bc56648
TT
77092020-02-22 Tom Tromey <tom@tromey.com>
7710
7711 * tui/tui-layout.h (enum tui_adjust_result): New.
7712 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7713 (class tui_layout_window) <adjust_size>: Return
7714 tui_adjust_result. Rewrite.
7715 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7716 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7717
c22fef7e
TT
77182020-02-22 Tom Tromey <tom@tromey.com>
7719
7720 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7721 parameter and return types.
7722 (class tui_layout_base) <specification>: Add "depth".
7723 (class tui_layout_window) <specification>: Add "depth".
7724 (class tui_layout_split) <specification>: Add "depth".
7725 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7726 and return types.
7727 (tui_new_layout_command): Parse sub-layouts.
7728 (_initialize_tui_layout): Update help string.
7729 (tui_layout_window::specification): Add "depth".
7730 (add_layout_command): Update.
7731
ee325b61
TT
77322020-02-22 Tom Tromey <tom@tromey.com>
7733
7734 * NEWS: Add "tui new-layout" item.
7735 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7736 Add new-layout command to help text.
7737 (validate_window_name): New function.
7738 (tui_new_layout_command): New function.
7739 (_initialize_tui_layout): Register "new-layout".
7740 (tui_layout_window::specification): New method.
7741 (tui_layout_window::specification): New method.
7742 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7743 method.
7744 (class tui_layout_window) <specification>: New method.
7745 (class tui_layout_split) <specification>: New method.
7746
416eb92d
TT
77472020-02-22 Tom Tromey <tom@tromey.com>
7748
7749 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7750 * tui/tui-win.c (window_name_completer): Update comment.
7751 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7752 Declare method.
7753 (class tui_layout_window) <replace_window>: Likewise.
7754 (class tui_layout_split) <replace_window>: Likewise.
7755 (tui_set_layout): Don't declare.
7756 (tui_set_initial_layout): Declare function.
7757 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7758 (asm_regs_layout): New globals.
7759 (tui_current_layout, show_layout): Remove.
7760 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7761 (find_layout, tui_apply_layout): New function.
7762 (layout_completer): Remove.
7763 (tui_next_layout): Reimplement.
7764 (tui_next_layout_command): New function.
7765 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7766 (tui_regs_layout): Reimplement.
7767 (tui_regs_layout_command): New function.
7768 (extract_display_start_addr): Rewrite.
7769 (next_layout, prev_layout): Remove.
7770 (tui_layout_window::replace_window): New method.
7771 (tui_layout_split::replace_window): New method.
7772 (destroy_layout): New function.
7773 (layout_list): New global.
7774 (add_layout_command): New function.
7775 (initialize_layouts): Update.
7776 (tui_layout_command): New function.
7777 (_initialize_tui_layout): Install "layout" commands.
7778 * tui/tui-data.h (enum tui_layout_type): Remove.
7779 (tui_current_layout): Don't declare.
7780
0dbc2fc7
TT
77812020-02-22 Tom Tromey <tom@tromey.com>
7782
7783 * tui/tui-regs.c (tui_reg_layout): Remove.
7784 (tui_reg_command): Use tui_regs_layout.
7785 * tui/tui-layout.h (tui_reg_command): Declare.
7786 * tui/tui-layout.c (tui_reg_command): New function.
7787
5afe342e
TT
77882020-02-22 Tom Tromey <tom@tromey.com>
7789
7790 * tui/tui.c (tui_rl_delete_other_windows): Call
7791 tui_remove_some_windows.
7792 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7793 Declare method.
7794 (class tui_layout_window) <remove_windows>: New method.
7795 (class tui_layout_split) <remove_windows>: Declare.
7796 (tui_remove_some_windows): Declare.
7797 * tui/tui-layout.c (tui_remove_some_windows): New function.
7798 (tui_layout_split::remove_windows): New method.
7799
427326a8
TT
78002020-02-22 Tom Tromey <tom@tromey.com>
7801
7802 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7803 * tui/tui-layout.h (tui_next_layout): Declare.
7804 * tui/tui-layout.c (tui_next_layout): New function.
7805
3fe12b6d
TT
78062020-02-22 Tom Tromey <tom@tromey.com>
7807
7808 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7809 correct coordinates.
7810
59b8b5d2
TT
78112020-02-22 Tom Tromey <tom@tromey.com>
7812
7813 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7814 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7815 DATA_WIN case.
7816
2a3d458b
TT
78172020-02-22 Tom Tromey <tom@tromey.com>
7818
7819 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7820 TUI_DISASM_WIN, not tui_win_list.
7821
3f0cbb04
TT
78222020-02-22 Tom Tromey <tom@tromey.com>
7823
7824 * valprint.c (generic_val_print_enum_1)
7825 (val_print_type_code_flags): Style member names.
7826 * rust-lang.c (val_print_struct, rust_print_enum)
7827 (rust_print_struct_def, rust_internal_print_type): Style member
7828 names.
7829 * p-valprint.c (pascal_object_print_value_fields): Style member
7830 names. Only call fprintf_symbol_filtered for static members.
7831 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7832 * f-valprint.c (f_val_print): Style member names.
7833 * f-typeprint.c (f_type_print_base): Style member names.
7834 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7835 call fprintf_symbol_filtered for static members.
7836 (cp_print_class_member): Style member names.
7837 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7838 member names.
7839 * ada-valprint.c (ada_print_scalar): Style enum names.
7840 (ada_val_print_enum): Likewise.
7841 * ada-typeprint.c (print_enum_type): Style enum names.
7842
d4d947ae
TT
78432020-02-21 Tom Tromey <tom@tromey.com>
7844
7845 * psympriv.h (struct partial_symtab): Update comment.
7846
e94e944b
TT
78472020-02-21 Tom Tromey <tromey@adacore.com>
7848
7849 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7850 type is CORE_ADDR.
7851
1eb73179
TV
78522020-02-21 Tom de Vries <tdevries@suse.de>
7853
7854 PR gdb/25534
7855 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7856 if dependencies[i]->user != NULL.
7857
4f180d53
AT
78582020-02-21 Ali Tamur <tamur@google.com>
7859
7860 * dwarf2/read.c (dwarf2_name): Add null check.
7861
22b6cd70
TT
78622020-02-20 Tom Tromey <tom@tromey.com>
7863
7864 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7865 ">=", in binary search.
7866 (dwarf2_find_containing_comp_unit): New overload.
7867 (run_test): New self-test.
7868 (_initialize_dwarf2_read): Register new test.
7869
bd0cf5a6
NC
78702020-02-20 Nelson Chu <nelson.chu@sifive.com>
7871
7872 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7873 * riscv-tdep.h: Likewise.
7874 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7875 rv32-only CSR.
7876 * features/riscv/64bit-csr.xml: Regenerated.
7877
3f702acd
SDJ
78782020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7879 Tom Tromey <tom@tromey.com>
7880
7881 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7882 of 'fputc_unfiltered'.
7883 (putchar_unfiltered): Call 'fputc_unfiltered'.
7884 (fputc_unfiltered): Call 'fputs_unfiltered'.
7885
d13c7322
AB
78862020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7887
7888 * config.in: Regenerate.
7889 * configure: Regenerate.
7890 * configure.ac: Add --with-python-libdir option.
7891 * main.c: Use WITH_PYTHON_LIBDIR.
7892
869d8950
TT
78932020-02-19 Tom Tromey <tom@tromey.com>
7894
7895 * symtab.c (general_symbol_info::compute_and_set_names): Use
7896 obstack_strndup. Simplify call to symbol_set_demangled_name.
7897
298e9637
SM
78982020-02-19 Simon Marchi <simon.marchi@efficios.com>
7899
7900 * dwarf2/read.c (allocate_signatured_type_table,
7901 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7902 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7903 Remove objfile parameter, update all callers.
7904
08410482
DE
79052020-02-19 Doug Evans <dje@google.com>
7906
7907 PR rust/25535
7908 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7909 rust_enum_variant calculation.
7910
dfdeeca1
TT
79112020-02-19 Tom Tromey <tromey@adacore.com>
7912
7913 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7914
2ef5453b
TT
79152020-02-19 Tom Tromey <tromey@adacore.com>
7916
7917 * ada-lang.c (cache_symbol): Use obstack_strdup.
7918
9f1528a1
AB
79192020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7920
7921 * configure: Regenerate.
7922
d3c22fa8
TT
79232020-02-19 Tom Tromey <tromey@adacore.com>
7924
7925 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7926 NULL check.
7927
bf84f706
MR
79282020-02-19 Maciej W. Rozycki <macro@wdc.com>
7929
7930 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7931
d1c9b20f
AB
79322020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7933
7934 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7935 if GDBSERVER is not defined.
7936 (riscv_tdesc_cache): Likewise, also store const target_desc.
7937 (STATIC_IN_GDB): Define.
7938 (riscv_create_target_description): Update declaration with
7939 STATIC_IN_GDB.
7940 (riscv_lookup_target_description): New function, only define if
7941 GDBSERVER is not defined.
7942 * arch/riscv.h (riscv_create_target_description): Declare only
7943 when GDBSERVER is defined.
7944 (riscv_lookup_target_description): New declaration when GDBSERVER
7945 is not defined.
7946 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7947 (riscv_linux_read_features): ...this, and return
7948 riscv_gdbarch_features instead of target_desc.
7949 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7950 (riscv_linux_read_description): Rename to...
7951 (riscv_linux_read_features): ...this.
7952 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7953 Update to use riscv_gdbarch_features and
7954 riscv_lookup_target_description.
7955 * riscv-tdep.c (riscv_find_default_target_description): Use
7956 riscv_lookup_target_description instead of
7957 riscv_create_target_description.
7958
373d7ac0
SM
79592020-02-18 Simon Marchi <simon.marchi@efficios.com>
7960
7961 * valprint.c (generic_val_print_enum_1): When printing a flag
7962 enum with value 0 and there is no enumerator with value 0, print
7963 just "0" instead of "(unknown: 0x0)".
7964
b29a2df0
SM
79652020-02-18 Simon Marchi <simon.marchi@efficios.com>
7966
7967 * valprint.c (generic_val_print_enum_1): Print unknown part of
7968 flag enum in hex.
7969
6740f0cc
SM
79702020-02-18 Simon Marchi <simon.marchi@efficios.com>
7971
7972 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7973 flag enums to contain duplicate enumerators.
7974 * valprint.c (generic_val_print_enum_1): Update comment.
7975
edd45eb0
SM
79762020-02-18 Simon Marchi <simon.marchi@efficios.com>
7977
7978 * dwarf2/read.c: Include "count-one-bits.h".
7979 (update_enumeration_type_from_children): If an enumerator has
7980 multiple bits set, don't treat the enumeration as a "flag enum".
7981 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7982 of flag enums have 0 or 1 bit set.
7983
6d0cf446
BE
79842020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7985
7986 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7987 conversion.
7988 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7989 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7990 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7991 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7992 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7993
7001c1b7
SM
79942020-02-18 Simon Marchi <simon.marchi@efficios.com>
7995
7996 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7997
fdb61c6c
SM
79982020-02-14 Simon Marchi <simon.marchi@efficios.com>
7999
8000 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8001 displaced_step_closure_up.
8002 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8003 (struct displaced_step_closure_up):
8004 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8005 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8006 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8007 Likewise.
8008 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8009 * gdbarch.c, gdbarch.h: Re-generate.
8010 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8011 displaced_step_closure_up.
8012 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8013 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8014 * infrun.h (displaced_step_closure_up): New type alias.
8015 (struct displaced_step_inferior_state) <step_closure>: Change
8016 type to displaced_step_closure_up.
8017 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8018 displaced_step_closure_up.
8019 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8020
a4a38eb4
TT
80212020-02-14 Tom Tromey <tom@tromey.com>
8022
8023 * minidebug.c (gnu_debug_key): New global.
8024 (find_separate_debug_file_in_section): Use it.
8025
e8217e61
SM
80262020-02-14 Simon Marchi <simon.marchi@efficios.com>
8027
8028 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8029 std::unique_ptr.
8030 * gdbarch.c: Re-generate.
8031 * gdbarch.h: Re-generate.
8032 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8033 change.
8034 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8035 type to std::unique_ptr.
8036 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8037 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8038 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8039 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8040 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8041 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8042 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8043 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8044 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8045
d8d83535
SM
80462020-02-14 Simon Marchi <simon.marchi@efficios.com>
8047
8048 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8049 std::unique_ptr.
8050 (displaced_step_clear): Rename to...
8051 (displaced_step_reset): ... this. Just call displaced->reset ().
8052 (displaced_step_clear_cleanup): Rename to...
8053 (displaced_step_reset_cleanup): ... this.
8054 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8055 (displaced_step_fixup): Likewise.
8056 (resume_1): Likewise.
8057 (handle_inferior_event): Restore child's memory before calling
8058 displaced_step_fixup on the parent.
8059 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8060 to std::unique_ptr.
8061 <step_closure>: Change type to std::unique_ptr.
8062
5f661e03
SM
80632020-02-14 Simon Marchi <simon.marchi@efficios.com>
8064
8065 * arm-tdep.c: Include count-one-bits.h.
8066 (cleanup_block_store_pc): Use count_one_bits.
8067 (cleanup_block_load_pc): Use count_one_bits.
8068 (arm_copy_block_xfer): Use count_one_bits.
8069 (thumb2_copy_block_xfer): Use count_one_bits.
8070 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8071 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8072 (thumb_get_next_pcs_raw): Use count_one_bits.
8073 (arm_get_next_pcs_raw): Use count_one_bits_l.
8074 * arch/arm.c (bitcount): Remove.
8075 * arch/arm.h (bitcount): Remove.
8076
8084e579
TT
80772020-02-14 Tom Tromey <tromey@adacore.com>
8078
8079 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8080 Update.
8081 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8082 * dwarf2/loc.c (call_site_find_chain_1): Return
8083 unique_xmalloc_ptr.
8084 (call_site_find_chain): Likewise.
8085
258bf0ee
RB
80862020-02-14 Richard Biener <rguenther@suse.de>
8087
8088 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8089 on expression with division operators.
8090
f98a8458
AKS
80912020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8092
8093 * MAINTAINERS (Write After Approval): Adding myself.
8094
d1437c0e
TT
80952020-02-12 Tom Tromey <tom@tromey.com>
8096
8097 * event-loop.c (event_data, gdb_event, event_handler_func):
8098 Remove.
8099
3d4560f7
TT
81002020-02-12 Tom Tromey <tom@tromey.com>
8101
8102 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8103 (dwarf2_frame_objfile_data): Add comment.
8104 (find_comp_unit, set_comp_unit): New functions.
8105 (dwarf2_frame_find_fde): Use find_comp_unit.
8106 (dwarf2_build_frame_info): Use set_comp_unit.
8107
21982304
TT
81082020-02-12 Tom Tromey <tom@tromey.com>
8109
8110 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8111 (comp_unit): Don't initialize objfile.
8112 (execute_cfa_program): Add text_offset parameter.
8113 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8114 (dwarf2_frame_cache): Update.
8115 (dwarf2_build_frame_info): Don't set "objfile" member.
8116
4debb237
TT
81172020-02-12 Tom Tromey <tom@tromey.com>
8118
8119 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8120 (decode_frame_entry): Likewise.
8121 (dwarf2_build_frame_info): Update.
8122
0d404d44
TT
81232020-02-12 Tom Tromey <tom@tromey.com>
8124
8125 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8126 (decode_frame_entry_1): Use the comp_unit obstack.
8127
a7a3ae5c
TT
81282020-02-12 Tom Tromey <tom@tromey.com>
8129
8130 * dwarf2/frame.c (struct comp_unit): Add initializers and
8131 constructor.
8132 (dwarf2_frame_objfile_data): Store a comp_unit.
8133 (dwarf2_frame_find_fde): Update.
8134 (dwarf2_build_frame_info): Use "new".
8135
a9d65418
TT
81362020-02-12 Tom Tromey <tom@tromey.com>
8137
8138 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8139 (dwarf2_fde_table): Typedef for std::vector.
8140 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8141 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8142 (decode_frame_entry): Update.
8143 (dwarf2_build_frame_info): Use "new".
8144
7559c217
CB
81452020-02-12 Christian Biesinger <cbiesinger@google.com>
8146
8147 * arm-tdep.c (arm_gdbarch_init): Update.
8148 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8149 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8150 have_neon, is_m>: Change to bool.
8151
aeefc73c
CB
81522020-02-12 Christian Biesinger <cbiesinger@google.com>
8153
8154 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8155
d27b8e5f
TT
81562020-02-12 Tom Tromey <tom@tromey.com>
8157
8158 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8159
cd5900f3
HD
81602020-02-12 Hannes Domani <ssbssa@yahoo.de>
8161
8162 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8163 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8164
f056b22b
TT
81652020-02-11 Tom Tromey <tom@tromey.com>
8166
8167 * psymtab.h: Update comment.
8168
f92ff6b5
TT
81692020-02-11 Tom Tromey <tom@tromey.com>
8170
8171 * gdb_obstack.h (struct auto_obstack): Use
8172 DISABLE_COPY_AND_ASSIGN.
8173
3fd6912b
TT
81742020-02-11 Tom Tromey <tom@tromey.com>
8175
8176 * dwarf2/frame.h (struct objfile): Don't forward declare.
8177
69ed9b74
CB
81782020-02-11 Christian Biesinger <cbiesinger@google.com>
8179
8180 * cris-tdep.c (cris_supply_gregset): Change signature to match
8181 what struct regset expects.
8182 (cris_regset): New struct.
8183 (fetch_core_registers): Remove.
8184 (cris_iterate_over_regset_sections): New function.
8185 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8186 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8187
bda874f6
CB
81882020-02-11 Christian Biesinger <cbiesinger@google.com>
8189
8190 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8191 registers.
8192
754e1564
CB
81932020-02-11 Christian Biesinger <cbiesinger@google.com>
8194
8195 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8196
8ddd8e0e
SM
81972020-02-11 Simon Marchi <simon.marchi@efficios.com>
8198
8199 * configure: Re-generate.
8200
898e7f60
SM
82012020-02-11 Simon Marchi <simon.marchi@efficios.com>
8202
8203 * configure: Re-generate.
8204
58df732b
SM
82052020-02-11 Simon Marchi <simon.marchi@efficios.com>
8206
8207 * acinclude: Update warning.m4 path.
8208 * warning.m4: Move to gdbsupport.
8209
da5bd37e
TT
82102020-02-11 Tom Tromey <tromey@adacore.com>
8211
8212 * remote.c (remote_console_output): Update.
8213 * printcmd.c (printf_command): Update.
8214 * event-loop.c (gdb_wait_for_event): Update.
8215 * linux-nat.c (sigchld_handler): Update.
8216 * remote-sim.c (gdb_os_write_stdout): Update.
8217 (gdb_os_flush_stdout): Update.
8218 (gdb_os_flush_stderr): Update.
8219 (gdb_os_write_stderr): Update.
8220 * exceptions.c (print_exception): Update.
8221 * remote-fileio.c (remote_fileio_func_read): Update.
8222 (remote_fileio_func_write): Update.
8223 * tui/tui.c (tui_enable): Update.
8224 * tui/tui-interp.c (tui_interp::init): Update.
8225 * utils.c (init_page_info): Update.
8226 (putchar_unfiltered, fputc_unfiltered): Update.
8227 (gdb_flush): Update.
8228 (emit_style_escape): Update.
8229 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8230 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8231 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8232 (stderr_file::write): Update.
8233 (stderr_file::puts): Update.
8234 * ui-file.h (ui_file_isatty, ui_file_write)
8235 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8236 (ui_file_puts): Don't declare.
8237
85f0dd3c
TV
82382020-02-10 Tom de Vries <tdevries@suse.de>
8239
8240 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8241 sentinel to char *.
8242
2e927613
TV
82432020-02-09 Tom de Vries <tdevries@suse.de>
8244
8245 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8246 filename if it matches "<artificial>".
8247
6bafc845
HD
82482020-02-09 Hannes Domani <ssbssa@yahoo.de>
8249
8250 * windows-tdep.c (struct enum_value_name): New struct.
8251 (create_enum): New function.
8252 (windows_get_siginfo_type): Create and use enum types.
8253
7928d571
HD
82542020-02-09 Hannes Domani <ssbssa@yahoo.de>
8255
8256 * NEWS: Mention $_siginfo support for Windows.
8257 * windows-nat.c (handle_exception): Set siginfo_er.
8258 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8259 (windows_xfer_siginfo): New function.
8260 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8261 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8262 (init_windows_gdbarch_data): New function.
8263 (get_windows_gdbarch_data): New function.
8264 (windows_get_siginfo_type): New function.
8265 (windows_init_abi): Register windows_get_siginfo_type.
8266 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8267
6751ebae
TT
82682020-02-08 Tom Tromey <tom@tromey.com>
8269
8270 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8271 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8272 <keep>: Declare method.
8273 <m_keep>: Remove member.
8274 <~cutu_reader>: Remove.
8275 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8276 (cutu_reader::cutu_reader): Update.
8277 (cutu_reader::keep): Rename from ~cutu_reader.
8278 (process_psymtab_comp_unit, build_type_psymtabs_1)
8279 (process_skeletonless_type_unit, load_partial_comp_unit)
8280 (load_full_comp_unit, dwarf2_read_addr_index)
8281 (read_signatured_type): Update.
8282
135f5437
TT
82832020-02-08 Tom Tromey <tom@tromey.com>
8284
8285 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8286 "want_partial_unit" parameter.
8287 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8288 Inline check for DW_TAG_partial_unit.
8289 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8290
9f66ff1c
TT
82912020-02-08 Tom Tromey <tom@tromey.com>
8292
8293 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8294 read.c.
8295 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8296 read.c.
8297
c8a7a66f
TT
82982020-02-08 Tom Tromey <tom@tromey.com>
8299
8300 * dwarf2/read.c (read_address): Move to comp-unit.c.
8301 (dwarf2_rnglists_process, dwarf2_ranges_process)
8302 (read_attribute_value, dwarf_decode_lines_1)
8303 (var_decode_location, decode_locdesc): Update.
8304 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8305 read.c. Remove "cu" parameter.
8306 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8307 method.
8308
8266302d
TT
83092020-02-08 Tom Tromey <tom@tromey.com>
8310
8311 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8312 (read_indirect_line_string): Update.
8313 * dwarf2/comp-unit.c (read_offset): Remove.
8314 (read_comp_unit_head): Update.
8315 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8316 method.
8317 (read_offset): Don't declare.
8318
4057dfde
TT
83192020-02-08 Tom Tromey <tom@tromey.com>
8320
8321 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8322 * dwarf2/read.c (struct comp_unit_head): Move to
8323 dwarf2/comp-unit.h.
8324 (enum class rcuh_kind): Move to comp-unit.h.
8325 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8326 (read_comp_unit_head, error_check_comp_unit_head)
8327 (read_and_check_comp_unit_head): Move to comp-unit.c.
8328 (read_offset, dwarf_unit_type_name): Likewise.
8329 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8330 (cutu_reader::cutu_reader, read_call_site_scope)
8331 (find_partial_die, follow_die_offset): Update.
8332 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8333
24aa364d
TT
83342020-02-08 Tom Tromey <tom@tromey.com>
8335
8336 * dwarf2/read.c (read_offset_1): Move to leb.c.
8337 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8338 (dwarf_decode_macro_bytes): Update.
8339 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8340 * dwarf2/leb.h (read_offset): Declare.
8341
2c7d5afc
TT
83422020-02-08 Tom Tromey <tom@tromey.com>
8343
8344 * dwarf2/read.c (dwarf2_section_size): Remove.
8345 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8346 Update.
8347 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8348
4075cb26
TT
83492020-02-08 Tom Tromey <tom@tromey.com>
8350
8351 * dwarf2/read.c (read_initial_length): Move to leb.c.
8352 * dwarf2/leb.h (read_initial_length): Declare.
8353 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8354 handle_nonstd parameter.
8355 * dwarf2/frame.c (read_initial_length): Remove.
8356 (decode_frame_entry_1): Update.
8357
09ba997f
TT
83582020-02-08 Tom Tromey <tom@tromey.com>
8359
8360 * dwarf2/loc.c (dwarf2_find_location_expression)
8361 (dwarf_evaluate_loc_desc::get_tls_address)
8362 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8363 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8364 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8365 (dwarf2_compile_property_to_c)
8366 (dwarf2_loc_desc_get_symbol_read_needs)
8367 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8368 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8369 (loclist_describe_location, loclist_tracepoint_var_ref)
8370 (loclist_generate_c_location): Update.
8371 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8372 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8373 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8374 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8375 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8376 (dwarf2_per_cu_data::addr_size)
8377 (dwarf2_per_cu_data::ref_addr_size)
8378 (dwarf2_per_cu_data::text_offset)
8379 (dwarf2_per_cu_data::addr_type): Now methods.
8380 (per_cu_header_read_in): Make per_cu "const".
8381 (dwarf2_version): Remove.
8382 (dwarf2_per_cu_data::int_type): Now a method.
8383 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8384 (set_die_type, read_array_type, read_subrange_index_type)
8385 (read_tag_string_type, read_subrange_type): Update.
8386 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8387 offset_size, ref_addr_size, text_offset, addr_type, version,
8388 objfile, int_type, addr_sized_int_type>: Declare methods.
8389
96c738c0
TT
83902020-02-08 Tom Tromey <tom@tromey.com>
8391
8392 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8393 Move earlier.
8394
8fdd972c
TT
83952020-02-08 Tom Tromey <tom@tromey.com>
8396
8397 * dwarf2/read.h (dwarf_line_debug): Declare.
8398 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8399 * dwarf2/read.c: Move line_header code to new files.
8400 (dwarf_line_debug): No longer static.
8401 * dwarf2/line-header.c: New file.
8402 * dwarf2/line-header.h: New file.
8403
03075812
TT
84042020-02-08 Tom Tromey <tom@tromey.com>
8405
8406 * dwarf2/read.c (struct line_header) <file_full_name,
8407 file_file_name>: Return unique_xmalloc_ptr.
8408 (line_header::file_file_name): Update.
8409 (line_header::file_full_name): Update.
8410 (dw2_get_file_names_reader): Update.
8411 (macro_start_file): Update.
8412
bb822404
TT
84132020-02-08 Tom Tromey <tom@tromey.com>
8414
8415 * dwarf2/read.c (struct line_header) <file_full_name,
8416 file_file_name>: Declare methods.
8417 (dw2_get_file_names_reader): Update.
8418 (file_file_name): Now a method.
8419 (file_full_name): Likewise.
8420 (macro_start_file): Update.
8421
009b64fc
TT
84222020-02-08 Tom Tromey <tom@tromey.com>
8423
8424 * dwarf2/read.c (dwarf_always_disassemble)
8425 (show_dwarf_always_disassemble): Move to loc.c.
8426 (_initialize_dwarf2_read): Move "always-disassemble" registration
8427 to loc.c.
8428 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8429 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8430 static.
8431 (show_dwarf_always_disassemble): Move from read.c.
8432 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8433
5895093f
TT
84342020-02-08 Tom Tromey <tom@tromey.com>
8435
8436 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8437 (create_quick_file_names_table): Return htab_up.
8438 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8439 Update.
8440 * dwarf2/read.h (struct dwarf2_per_objfile)
8441 <quick_file_names_table>: Now htab_up.
8442
b3b32279
TT
84432020-02-08 Tom Tromey <tom@tromey.com>
8444
8445 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8446
1d33d811
TT
84472020-02-08 Tom Tromey <tom@tromey.com>
8448
8449 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8450 Rewrite.
8451 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8452 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8453 (abbrev_table::abbrev_table): No longer inline.
8454 (ABBREV_HASH_SIZE): Remove.
8455 (abbrev_table::m_abbrevs): Now an htab_up.
8456
86de1d91
TT
84572020-02-08 Tom Tromey <tom@tromey.com>
8458
8459 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8460 (cutu_reader): Update.
8461 (build_type_psymtabs_1): Update.
8462 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8463 (abbrev_table::alloc_abbrev): Update.
8464 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8465 (abbrev_table::read): New static method, renamed from
8466 abbrev_table_read_table.
8467 (abbrev_table::alloc_abbrev)
8468 (abbrev_table::add_abbrev): Now private.
8469 (abbrev_table::abbrev_table): Now private.
8470 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8471
0335378b
TT
84722020-02-08 Tom Tromey <tom@tromey.com>
8473
8474 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8475 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8476 htab_up.
8477
48b490f2
TT
84782020-02-08 Tom Tromey <tom@tromey.com>
8479
8480 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8481 htab_up.
8482 (lookup_dwo_unit_in_dwp): Update.
8483 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8484 on obstack.
8485
bc68fb19
TT
84862020-02-08 Tom Tromey <tom@tromey.com>
8487
8488 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8489 obstack.
8490
d15acc42
TT
84912020-02-08 Tom Tromey <tom@tromey.com>
8492
8493 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8494 line_header_hash.
8495 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8496 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8497 Change type to htab_up.
8498
eaa5fa8b
TT
84992020-02-08 Tom Tromey <tom@tromey.com>
8500
8501 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8502 htab_up. Don't allocate on obstack.
8503 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8504 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8505 Change type to htab_up.
8506
b0b6a987
TT
85072020-02-08 Tom Tromey <tom@tromey.com>
8508
8509 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8510 Change type to htab_up.
8511 * dwarf2/read.c (create_signatured_type_table_from_index)
8512 (create_signatured_type_table_from_debug_names)
8513 (create_all_type_units, add_type_unit)
8514 (lookup_dwo_signatured_type, lookup_signatured_type)
8515 (process_skeletonless_type_unit): Update.
8516 (create_debug_type_hash_table, create_debug_types_hash_table):
8517 Change type of types_htab.
8518 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8519 htab_up. Don't allocate on obstack.
8520 (create_cus_hash_table): Change type of cus_htab parameter.
8521 (struct dwo_file) <cus, tus>: Now htab_up.
8522 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8523 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8524 (queue_and_load_all_dwo_tus): Update.
8525 * dwarf2/index-write.c (write_gdbindex): Update.
8526 (write_debug_names): Update.
8527
39856def
TT
85282020-02-08 Tom Tromey <tom@tromey.com>
8529
8530 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8531 dwarf2/read.c. Remove "next" member. Add constructor ntad
8532 destructor.
8533 (struct dwarf2_per_objfile) <queue>: New member.
8534 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8535 dwarf2/read.h.
8536 (dwarf2_queue, dwarf2_queue_tail): Remove.
8537 (class dwarf2_queue_guard): Add parameter to constructor. Use
8538 DISABLE_COPY_AND_ASSIGN.
8539 <m_per_objfile>: New member.
8540 <~dwarf2_queue_guard>: Rewrite.
8541 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8542 Update.
8543 (~dwarf2_queue_item): New.
8544
3e225074
TT
85452020-02-08 Tom Tromey <tom@tromey.com>
8546
8547 * dwarf2/read.c (struct die_info) <has_children>: New member.
8548 (dw2_get_file_names_reader): Remove has_children.
8549 (dw2_get_file_names): Update.
8550 (read_cutu_die_from_dwo): Remove has_children.
8551 (cutu_reader::init_tu_and_read_dwo_dies)
8552 (cutu_reader::cutu_reader): Update.
8553 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8554 Remove has_children.
8555 (build_type_psymtabs_1, process_skeletonless_type_unit)
8556 (load_partial_comp_unit, load_full_comp_unit): Update.
8557 (create_dwo_cu_reader): Remove has_children.
8558 (create_cus_hash_table, read_die_and_children): Update.
8559 (read_full_die_1,read_full_die): Remove has_children.
8560 (read_signatured_type): Update.
8561 (class cutu_reader) <has_children>: Remove.
8562
82ca8957
TT
85632020-02-08 Tom Tromey <tom@tromey.com>
8564
8565 * dwarf2/expr.c: Rename from dwarf2expr.c.
8566 * dwarf2/expr.h: Rename from dwarf2expr.h.
8567 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8568 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8569 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8570 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8571 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8572 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8573 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8574 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8575 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8576 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8577 * dwarf2/loc.c: Rename from dwarf2loc.c.
8578 * dwarf2/loc.h: Rename from dwarf2loc.h.
8579 * dwarf2/read.c: Rename from dwarf2read.c.
8580 * dwarf2/read.h: Rename from dwarf2read.h.
8581 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8582 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8583 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8584 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8585 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8586 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8587 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8588 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8589 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8590 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8591 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8592 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8593 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8594 Update.
8595 * Makefile.in (COMMON_SFILES): Update.
8596 (HFILES_NO_SRCDIR): Update.
8597
9e35d499
TT
85982020-02-08 Tom Tromey <tom@tromey.com>
8599
8600 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8601 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8602
1eba2311
TT
86032020-02-08 Tom Tromey <tom@tromey.com>
8604
8605 * dwarf2read.h (struct die_info): Don't declare.
8606
e41c2da2
TT
86072020-02-08 Tom Tromey <tom@tromey.com>
8608
8609 * dwarf2read.h (die_info_ptr): Remove typedef.
8610
4fc6c0d5
TT
86112020-02-08 Tom Tromey <tom@tromey.com>
8612
8613 * dwarf2read.c (read_call_site_scope)
8614 (handle_data_member_location, dwarf2_add_member_fn)
8615 (mark_common_block_symbol_computed, read_common_block)
8616 (attr_to_dynamic_prop, partial_die_info::read)
8617 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8618 (dwarf2_symbol_mark_computed, set_die_type): Update.
8619 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8620 method.
8621 (attr_form_is_block): Don't declare.
8622 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8623
cd6c91b4
TT
86242020-02-08 Tom Tromey <tom@tromey.com>
8625
8626 * dwarf2read.c (dwarf2_find_base_address, )
8627 (read_call_site_scope, rust_containing_type)
8628 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8629 (handle_data_member_location, dwarf2_add_member_fn)
8630 (get_alignment, read_structure_type, process_structure_scope)
8631 (mark_common_block_symbol_computed, read_common_block)
8632 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8633 (partial_die_info::read, read_attribute_value, new_symbol)
8634 (lookup_die_type, dwarf2_get_ref_die_offset)
8635 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8636 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8637 (dwarf2_symbol_mark_computed): Update.
8638 * dwarf2/attribute.h (struct attribute) <value_as_address,
8639 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8640 methods.
8641 (value_as_address, attr_form_is_section_offset)
8642 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8643 * dwarf2/attribute.c (attribute::value_as_address)
8644 (attribute::form_is_section_offset, attribute::form_is_constant)
8645 (attribute::form_is_ref): Now methods.
8646
162dce55
TT
86472020-02-08 Tom Tromey <tom@tromey.com>
8648
8649 * dwarf2read.c (struct attribute, DW_STRING)
8650 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8651 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8652 (attr_form_is_block, attr_form_is_section_offset)
8653 (attr_form_is_constant, attr_form_is_ref): Move.
8654 * dwarf2/attribute.h: New file.
8655 * dwarf2/attribute.c: New file, from dwarf2read.c.
8656 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8657
3054dd54
TT
86582020-02-08 Tom Tromey <tom@tromey.com>
8659
8660 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8661 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8662 Move.
8663 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8664 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8665 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8666 abbrev.c.
8667 * dwarf2/abbrev.h: New file.
8668 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8669 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8670
96b79293
TT
86712020-02-08 Tom Tromey <tom@tromey.com>
8672
8673 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8674 (dwarf2_section_size, dwarf2_get_section_info)
8675 (create_signatured_type_table_from_debug_names)
8676 (create_addrmap_from_aranges, read_debug_names_from_section)
8677 (get_gdb_index_contents_from_section, read_comp_unit_head)
8678 (error_check_comp_unit_head, read_abbrev_offset)
8679 (create_debug_type_hash_table, init_cu_die_reader)
8680 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8681 (read_comp_units_from_section, create_cus_hash_table)
8682 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8683 (create_dwp_v2_section, dwarf2_rnglists_process)
8684 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8685 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8686 (read_indirect_string_from_dwz, read_addr_index_1)
8687 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8688 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8689 (fill_in_loclist_baton): Update.
8690 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8691 get_containing_section, get_bfd_owner, get_bfd_section,
8692 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8693 (dwarf2_read_section, get_section_name, get_section_file_name)
8694 (get_containing_section, get_section_bfd_owner)
8695 (get_section_bfd_section, get_section_name, get_section_file_name)
8696 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8697 declare.
8698 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8699 (dwarf2_section_info::get_bfd_owner)
8700 (dwarf2_section_info::get_bfd_section)
8701 (dwarf2_section_info::get_name)
8702 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8703 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8704 (dwarf2_section_info::read): Now methods.
8705 * dwarf-index-write.c (class debug_names): Update.
8706
2c86cff9
TT
87072020-02-08 Tom Tromey <tom@tromey.com>
8708
8709 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8710 Move to dwarf2/section.h.
8711 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8712 (get_section_bfd_section, get_section_name)
8713 (get_section_file_name, get_section_id, get_section_flags)
8714 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8715 dwarf2/section.c.
8716 * dwarf2/section.h: New file.
8717 * dwarf2/section.c: New file, from dwarf2read.c.
8718 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8719
f4382c45
TT
87202020-02-08 Tom Tromey <tom@tromey.com>
8721
8722 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8723 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8724 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8725 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8726 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8727 * dwarf2/leb.h: New file, from dwarf2read.c.
8728 * dwarf2/leb.c: New file, from dwarf2read.c.
8729 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8730 Remove.
8731 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8732 (COMMON_SFILES): Add dwarf2/leb.c.
8733
01840b7a
JB
87342020-02-08 Joel Brobecker <brobecker@adacore.com>
8735
8736 GDB 9.1 released.
8737
dfcb27e4
IB
87382020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8739
8740 PR gdb/25190:
aac66a4c
SM
8741 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8742 * gdb/remote.c (remote_console_output): Update.
8743 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8744 (ui_file_puts): ...this.
8745 * gdb/ui-file.h (ui_file_puts): Add declaration.
8746 * gdb/utils.c (emit_style_escape): Update.
8747 (flush_wrap_buffer): Update.
8748 (fputs_maybe_filtered): Update.
8749 (fputs_unfiltered): Add function.
dfcb27e4 8750
faa17681
IB
87512020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8752
aac66a4c
SM
8753 * gdb/event-loop.c (gdb_wait_for_event): Update.
8754 * gdb/printcmd.c (printf_command): Update.
8755 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8756 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8757 (gdb_os_flush_stderr): Update.
8758 * gdb/remote.c (remote_console_output): Update.
8759 * gdb/ui-file.c (gdb_flush): Rename to...
8760 (ui_file_flush): ...this.
8761 (stderr_file::write): Update.
8762 (stderr_file::puts): Update.
8763 * gdb/ui-file.h (gdb_flush): Rename to...
8764 (ui_file_flush): ...this.
8765 * gdb/utils.c (gdb_flush): Add function.
8766 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8767
5abbbe1d
TT
87682020-02-07 Tom Tromey <tromey@adacore.com>
8769
8770 PR breakpoints/24915:
8771 * source.c (find_and_open_source): Do not check basenames_may_differ.
8772
919adfe8
TT
87732020-02-07 Tom Tromey <tom@tromey.com>
8774
8775 * README: Update gdbserver documentation.
8776 * gdbserver: Move to top level.
8777 * configure.tgt (build_gdbserver): Remove.
8778 * configure.ac: Remove --enable-gdbserver.
8779 * configure: Rebuild.
8780 * Makefile.in (distclean): Don't mention gdbserver.
8781
1d5d29e7
SV
87822020-02-06 Shahab Vahedi <shahab@synopsys.com>
8783
8784 * source-cache.c (source_cache::ensure): Surround
8785 get_plain_source_lines with a try/catch.
8786 (source_cache::get_line_charpos): Get rid of try/catch
8787 and only check for the return value of "ensure".
8788 * tui/tui-source.c (tui_source_window::set_contents):
8789 Simplify "nlines" calculation.
8790
6eb1129c
SV
87912020-02-06 Shahab Vahedi <shahab@synopsys.com>
8792
8793 * MAINTAINERS (Write After Approval): Add myself.
8794
c6a42d11
CB
87952020-02-05 Christian Biesinger <cbiesinger@google.com>
8796
8797 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8798 function call.
8799
c8ecdda6
CB
88002020-02-05 Christian Biesinger <cbiesinger@google.com>
8801
8802 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8803
f6480e70
MR
88042020-02-05 Maciej W. Rozycki <macro@wdc.com>
8805
8806 * nat/riscv-linux-tdesc.h: New file.
8807 * nat/riscv-linux-tdesc.c: New file, taking code from...
8808 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8809 ... here.
8810 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8811 NATDEPFILES.
8812
dcc9fbc6
AB
88132020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8814
8815 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8816 we don't set the fake simulator ptid to the null_ptid.
8817
719546c4
SM
88182020-02-03 Simon Marchi <simon.marchi@efficios.com>
8819
8820 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8821 * gdbthread.h (class thread_info) <resumed>: Likewise.
8822 * infrun.c (resume_1): Likewise.
8823 (proceed): Likewise.
8824 (infrun_thread_stop_requested): Likewise.
8825 (stop_all_threads): Likewise.
8826 (handle_inferior_event): Likewise.
8827 (restart_threads): Likewise.
8828 (finish_step_over): Likewise.
8829 (keep_going_stepped_thread): Likewise.
8830 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8831 (linux_handle_extended_wait): Likewise.
8832 * record-btrace.c (get_thread_current_frame_id): Likewise.
8833 * record-full.c (record_full_wait_1): Likewise.
8834 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8835 * target.c (target_resume): Likewise.
8836 * thread.c (set_running_thread): Likewise.
8837
e409c542
AKS
88382020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8839
8840 * f-valprint.c (f77_print_array_1): Changed datatype of index
8841 variable to LONGEST from int to enable it to contain bound
8842 values correctly.
8843
ee98c0da
MR
88442020-02-03 Maciej W. Rozycki <macro@wdc.com>
8845
8846 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8847 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8848 offsets according to FLEN determined.
8849 (riscv_linux_nat_target::read_description): Determine FLEN
8850 dynamically.
8851 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8852 according to FLEN determined.
8853 (riscv_linux_nat_target::store_registers): Likewise.
8854
aa66aac4
SV
88552020-02-01 Shahab Vahedi <shahab@synopsys.com>
8856
8857 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8858 when reg->group is empty and reggroup is not.
8859
fd9faca8
TT
88602020-01-31 Tom Tromey <tromey@adacore.com>
8861
8862 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8863 Call beneath target's mourn_inferior after unpushing.
8864
42330a68
AB
88652020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8866
8867 PR tui/9765
8868 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8869 have enough lines to fill the screen, still return the lowest
8870 address we found.
8871
7a27a45b
AB
88722020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8873
8874 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8875 '-', '<', and '>' commands.
8876
c47f70e2
PA
88772020-01-29 Pedro Alves <palves@redhat.com>
8878 Sergio Durigan Junior <sergiodj@redhat.com>
8879
8880 * infcmd.c (construct_inferior_arguments): Assert that
8881 'argc' is greater than 0.
8882
5133a315
LM
88832020-01-29 Luis Machado <luis.machado@linaro.org>
8884
8885 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8886 (BRK_INSN_MASK): Define to 0xd4200000.
8887 (aarch64_program_breakpoint_here_p): New function.
8888 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8889 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8890 breakpoint.c.
8891 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8892 breakpoint.h
8893 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8894 call gdbarch_program_breakpoint_here_p.
8895 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8896 default_program_breakpoint_here_p, changed return type to bool and
8897 simplified.
8898 * breakpoint.h (program_breakpoint_here): Moved prototype to
8899 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8900 return type to bool.
8901 * gdbarch.c: Regenerate.
8902 * gdbarch.h: Regenerate.
8903 * gdbarch.sh (program_breakpoint_here_p): New method.
8904 * infrun.c (handle_signal_stop): Call
8905 gdbarch_program_breakpoint_here_p.
8906
168f8c6b
TT
89072020-01-26 Tom Tromey <tom@tromey.com>
8908
8909 * ctfread.c (struct ctf_fp_info): Reindent.
8910 (_initialize_ctfread): Remove.
8911
128a391f
TT
89122020-01-26 Tom Tromey <tom@tromey.com>
8913
8914 * psymtab.c (partial_map_expand_apply)
8915 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8916 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8917 (psym_print_stats, psym_expand_symtabs_for_function)
8918 (psym_map_symbol_filenames, psym_map_matching_symbols)
8919 (psym_expand_symtabs_matching)
8920 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8921 (maintenance_check_psymtabs): Use new methods.
8922 * psympriv.h (struct partial_symtab) <readin_p,
8923 get_compunit_symtab>: New methods.
8924 <readin, compunit_symtab>: Remove members.
8925 (struct standard_psymtab): New.
8926 (struct legacy_psymtab): Derive from standard_psymtab.
8927 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8928 standard_psymtab.
8929 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8930
0494dbec
TT
89312020-01-26 Tom Tromey <tom@tromey.com>
8932
8933 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8934 read_dependencies. Add assert.
8935 * psymtab.c (partial_symtab::read_dependencies): New method.
8936 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8937 method.
8938 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8939 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8940 read_dependencies.
8941 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8942 Add assert.
8943
8566b89b
TT
89442020-01-26 Tom Tromey <tom@tromey.com>
8945
8946 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8947 Call expand_psymtab.
8948 (xcoff_read_symtab): Call expand_psymtab.
8949 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8950 legacy_expand_psymtab.
8951 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8952 method.
8953 (struct legacy_psymtab) <expand_psymtab>: Implement.
8954 <legacy_expand_psymtab>: New member.
8955 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8956 (parse_partial_symbols): Set legacy_expand_psymtab.
8957 (psymtab_to_symtab_1): Change argument order. Call
8958 expand_psymtab.
8959 (new_psymtab): Set legacy_expand_psymtab.
8960 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8961 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8962 expand_psymtab.
8963 (dwarf2_psymtab::expand_psymtab): Rename from
8964 psymtab_to_symtab_1. Call expand_psymtab.
8965 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8966 (dbx_end_psymtab): Likewise.
8967 (dbx_psymtab_to_symtab_1): Change argument order. Call
8968 expand_psymtab.
8969 (dbx_read_symtab): Call expand_psymtab.
8970 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8971 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8972 (ctf_psymtab::read_symtab): Call expand_psymtab.
8973
077cbab2
TT
89742020-01-26 Tom Tromey <tom@tromey.com>
8975
8976 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8977 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8978 messages.
8979 * mdebugread.c (mdebug_read_symtab): Remove prints.
8980 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8981 assert.
8982 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8983
891813be
TT
89842020-01-26 Tom Tromey <tom@tromey.com>
8985
8986 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8987 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8988 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8989 legacy_symtab.
8990 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8991 * psymtab.c (psymtab_to_symtab): Call method.
8992 (dump_psymtab): Update.
8993 * psympriv.h (struct partial_symtab): Add virtual destructor.
8994 <read_symtab>: New method.
8995 (struct legacy_symtab): New.
8996 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8997 (struct pst_map) <pst>: Now a legacy_psymtab.
8998 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8999 (new_psymtab): Use legacy_psymtab.
9000 * dwarf2read.h (struct dwarf2_psymtab): New.
9001 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9002 * dwarf2read.c (dwarf2_create_include_psymtab)
9003 (dwarf2_build_include_psymtabs, create_type_unit_group)
9004 (create_partial_symtab, process_psymtab_comp_unit_reader)
9005 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9006 (set_partial_user): Use dwarf2_psymtab.
9007 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9008 (psymtab_to_symtab_1, process_full_comp_unit)
9009 (process_full_type_unit, dwarf2_ranges_read)
9010 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9011 (dwarf_decode_lines): Use dwarf2_psymtab.
9012 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9013 (add_address_entry_worker, write_one_signatured_type)
9014 (recursively_count_psymbols, recursively_write_psymbols)
9015 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9016 (write_debug_names): Likewise.
9017 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9018 <pst>: Now a legacy_psymtab.
9019 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9020 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9021 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9022 * ctfread.c (struct ctf_psymtab): New.
9023 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9024 ctf_psymtab.
9025 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9026 (create_partial_symtab): Return a ctf_psymtab.
9027 (scan_partial_symbols): Update.
9028
c3693a1d
TT
90292020-01-26 Tom Tromey <tom@tromey.com>
9030
9031 * xcoffread.c (xcoff_start_psymtab): Use new.
9032 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9033 renamed from start_psymtab_common.
9034 * psympriv.h (struct partial_symtab): Add new constructor.
9035 (start_psymtab_common): Don't declare.
9036 * mdebugread.c (parse_partial_symbols): Use new.
9037 * dwarf2read.c (create_partial_symtab): Use new.
9038 * dbxread.c (start_psymtab): Use new.
9039 * ctfread.c (create_partial_symtab): Use new.
9040
32caafd0
TT
90412020-01-26 Tom Tromey <tom@tromey.com>
9042
9043 * xcoffread.c (xcoff_end_psymtab): Use new.
9044 * psymtab.c (start_psymtab_common): Use new.
9045 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9046 Update.
9047 * psympriv.h (struct partial_symtab): Add parameters to
9048 constructor. Don't inline.
9049 (allocate_psymtab): Don't declare.
9050 * mdebugread.c (new_psymtab): Use new.
9051 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9052 * dbxread.c (dbx_end_psymtab): Use new.
9053
abaa2f23
TT
90542020-01-26 Tom Tromey <tom@tromey.com>
9055
9056 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9057 allocate_psymtab. Update documentation.
9058 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9059 allocate_psymtab. Do not use new.
9060 (allocate_psymtab): Use new. Update.
9061
6d94535f
TT
90622020-01-26 Tom Tromey <tom@tromey.com>
9063
9064 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9065 * psymtab.c (psym_print_stats): Update.
9066 * psympriv.h (struct partial_symtab) <readin,
9067 psymtabs_addrmap_supported, anonymous>: Now bool.
9068 * mdebugread.c (psymtab_to_symtab_1): Update.
9069 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9070 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9071 (process_full_comp_unit, process_full_type_unit): Update.
9072 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9073 * ctfread.c (psymtab_to_symtab): Update.
9074
6f17252b
TT
90752020-01-26 Tom Tromey <tom@tromey.com>
9076
9077 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9078 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9079 * psymtab.c (psymtab_storage): Delete psymtabs.
9080 (psymtab_storage::allocate_psymtab): Use new.
9081 (psymtab_storage::discard_psymtab): Use delete.
9082 * psympriv.h (struct partial_symtab): Add constructor and
9083 initializers.
9084
f6f1cebc
TT
90852020-01-26 Tom Tromey <tom@tromey.com>
9086
9087 * machoread.c: Do not include psympriv.h.
9088
e47e48f6
PW
90892020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9090
9091 * NEWS: Mention the new option and the set/show commands.
9092
a2fedca9
PW
90932020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9094
9095 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9096 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9097 (validate_exec_file): New variables, enums, functions.
9098 (exec_file_locate_attach, print_section_info): Style the filenames.
9099 (_initialize_exec): Install show_exec_file_mismatch_command and
9100 set_exec_file_mismatch_command.
9101 * gdbcore.h (validate_exec_file): Declare.
9102 * infcmd.c (attach_command): Call validate_exec_file.
9103 * remote.c ( remote_target::remote_add_inferior): Likewise.
9104
7ffa82e1
AB
91052020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9106
9107 * frame.c (find_frame_sal): Move call to get_next_frame into more
9108 inner scope.
9109 * inline-frame.c (inilne_state) <inline_state>: Update argument
9110 types.
9111 (inilne_state) <skipped_symbol>: Rename to...
9112 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9113 (skip_inline_frames): Build vector of skipped symbols and use this
9114 to reate the inline_state.
9115 (inline_skipped_symbol): Add a comment and some assertions, fetch
9116 skipped symbol from the list.
9117
3d92a3e3
AB
91182020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9119
9120 * buildsym.c (lte_is_less_than): Delete.
9121 (buildsym_compunit::end_symtab_with_blockvector): Create local
9122 lambda function to sort line table entries, and use
9123 std::stable_sort instead of std::sort.
9124 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9125 markers when looking for a previous line.
9126
94a72be7
AB
91272020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9128
9129 * dwarf2read.c (lnp_state_machine::record_line): Include
9130 end_sequence parameter in debug print out. Record the line if we
9131 are at an end_sequence marker even if it's not the start of a
9132 statement.
9133 * symmisc.c (maintenance_print_one_line_table): Print end of
9134 sequence markers with 'END' not '0'.
9135
53af73bf
PA
91362020-01-24 Pedro Alves <palves@redhat.com>
9137
9138 PR gdb/25410
9139 * thread.c (scoped_restore_current_thread::restore): Use
9140 switch_to_inferior_no_thread.
9141 * exec.c: Include "progspace-and-thread.h".
9142 (add_target_sections, remove_target_sections):
9143 scoped_restore_current_pspace_and_thread instead of
9144 scoped_restore_current_thread.
9145 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9146 and aspace to the inferior before calling clone_program_space.
9147 Remove stale comment.
9148
3050c6f4
CB
91492020-01-24 Christian Biesinger <cbiesinger@google.com>
9150
9151 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9152 (arm_netbsd_nat_target::fetch_registers): ...this.
9153 (arm_nbsd_nat_target::store_registers): Rename to...
9154 (arm_netbsd_nat_target::store_registers): ...this.
9155
73685c7e
CB
91562020-01-24 Christian Biesinger <cbiesinger@google.com>
9157
9158 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9159 register_t.
9160
89203d40
CB
91612020-01-24 Christian Biesinger <cbiesinger@google.com>
9162
9163 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9164 Update comment.
9165 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9166 Likewise.
9167 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9168 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9169 the correct replacement (iterate_over_regset_sections).
9170 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9171 Update comment.
9172
1ba1ac88
AB
91732020-01-24 Graham Markall <graham.markall@embecosm.com>
9174
9175 PR gdb/23718
9176 * gdb/python/python.c (execute_gdb_command): Call
9177 async_enable_stdin in catch block.
9178
f3364a6d
AB
91792020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9180
9181 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9182 SWITCH_THRU_ALL_UIS.
9183
733d0a67
AB
91842020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9185
9186 PR tui/9765
9187 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9188 comment, add extra parameter, and update to store previous symbol
9189 when appropriate.
9190 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9191 add extra parameter.
9192 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9193 remove unneeded parameter, add try/catch around gdb_print_insn,
9194 rewrite to add items to asm_lines vector.
9195 (tui_find_backward_disassembly_start_address): New function.
9196 (tui_find_disassembly_address): Updated throughout.
9197 (tui_disasm_window::set_contents): Update for changes to
9198 tui_disassemble.
9199 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9200 number of lines to scroll.
9201
b3b3bada
SM
92022020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9203
9204 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9205 (SECT_OFF_DATA): Likewise.
9206 (SECT_OFF_RODATA): Likewise.
9207 (SECT_OFF_TEXT): Likewise.
9208 (SECT_OFF_BSS): Likewise.
9209 (struct objfile) <text_section_offset, data_section_offset>: New
9210 methods.
9211 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9212 objfile::text_section_offset.
9213 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9214 * coffread.c (coff_symtab_read): Likewise.
9215 (enter_linenos): Likewise.
9216 (process_coff_symbol): Likewise.
9217 * ctfread.c (get_objfile_text_range): Likewise.
9218 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9219 Use objfile::data_section_offset.
9220 * dwarf2-frame.c (execute_cfa_program): Use
9221 objfile::text_section_offset.
9222 (dwarf2_frame_find_fde): Likewise.
9223 * dwarf2read.c (create_addrmap_from_index): Likewise.
9224 (create_addrmap_from_aranges): Likewise.
9225 (dw2_find_pc_sect_compunit_symtab): Likewise.
9226 (process_psymtab_comp_unit_reader): Likewise.
9227 (add_partial_symbol): Likewise.
9228 (add_partial_subprogram): Likewise.
9229 (process_full_comp_unit): Likewise.
9230 (read_file_scope): Likewise.
9231 (read_func_scope): Likewise.
9232 (read_lexical_block_scope): Likewise.
9233 (read_call_site_scope): Likewise.
9234 (dwarf2_rnglists_process): Likewise.
9235 (dwarf2_ranges_process): Likewise.
9236 (dwarf2_ranges_read): Likewise.
9237 (dwarf_decode_lines_1): Likewise.
9238 (new_symbol): Likewise.
9239 (dwarf2_fetch_die_loc_sect_off): Likewise.
9240 (dwarf2_per_cu_text_offset): Likewise.
9241 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9242 * hppa-tdep.c (read_unwind_info): Likewise.
9243 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9244 * psympriv.h (struct partial_symtab): Likewise.
9245 * psymtab.c (find_pc_sect_psymtab): Likewise.
9246 * solib-svr4.c (enable_break): Likewise.
9247 * stap-probe.c (relocate_address): Use
9248 objfile::data_section_offset.
9249 * xcoffread.c (enter_line_range): Use
9250 objfile::text_section_offset.
9251 (read_xcoff_symtab): Likewise.
9252
ab53f382
SM
92532020-01-23 Simon Marchi <simon.marchi@efficios.com>
9254
9255 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9256 declaration to narrower scopes.
9257
e7eee665
SM
92582020-01-23 Simon Marchi <simon.marchi@efficios.com>
9259
9260 * darwin-nat.h (struct darwin_exception_msg, enum
9261 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9262 Move up.
9263 (class darwin_nat_target) <wait_1, check_new_threads,
9264 decode_exception_message, decode_message, stop_inferior,
9265 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9266 * darwin-nat.c (darwin_check_new_threads): Rename to...
9267 (darwin_nat_target::check_new_threads): ... this.
9268 (darwin_suspend_inferior_it): Remove.
9269 (darwin_decode_exception_message): Rename to...
9270 (darwin_nat_target::decode_exception_message): ... this.
9271 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9272 (darwin_decode_message): Rename to...
9273 (darwin_nat_target::decode_message): ... this.
9274 (cancel_breakpoint): Rename to...
9275 (darwin_nat_target::cancel_breakpoint): ... this.
9276 (darwin_wait): Rename to...
9277 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9278 instead of iterate_over_inferiors.
9279 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9280 (darwin_stop_inferior): Rename to...
9281 (darwin_nat_target::stop_inferior): ... this.
9282 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9283 (darwin_init_thread_list): Rename to...
9284 (darwin_nat_target::init_thread_list): ... this.
9285 (darwin_ptrace_him): Rename to...
9286 (darwin_nat_target::ptrace_him): ... this.
9287 (darwin_nat_target::create_inferior): Pass lambda function to
9288 fork_inferior.
9289 (darwin_nat_target::detach): Call stop_inferior instead of
9290 darwin_stop_inferior.
9291 * fork-inferior.h (fork_inferior): Change init_trace_fun
9292 parameter to gdb::function_view.
9293 * fork-inferior.c (fork_inferior): Likewise.
9294
c162ed3e
HD
92952020-01-23 Hannes Domani <ssbssa@yahoo.de>
9296
9297 * i386-cygwin-tdep.c (core_process_module_section): Update.
9298 * windows-nat.c (struct lm_info_windows): Add text_offset.
9299 (windows_xfer_shared_libraries): Update.
9300 * windows-tdep.c (windows_xfer_shared_library):
9301 Add text_offset_cached argument.
9302 * windows-tdep.h (windows_xfer_shared_library): Update.
9303
a1237872
SM
93042020-01-21 Simon Marchi <simon.marchi@efficios.com>
9305
9306 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9307
b3ee6dd9
SM
93082020-01-21 Simon Marchi <simon.marchi@efficios.com>
9309
9310 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9311 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9312 replace with range-based for.
9313 (gdbsim_interrupt_inferior): Remove.
9314 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9315 with a range-based for. Inline code from
9316 gdbsim_interrupt_inferior.
9317
f9fac3c8
SM
93182020-01-21 Simon Marchi <simon.marchi@efficios.com>
9319
9320 * infrun.c (proceed): Fix indentation.
9321
f6474de9
TT
93222020-01-21 Tom Tromey <tromey@adacore.com>
9323
9324 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9325 * python/python.c (python_extension_ops): Update.
9326 (gdbpy_colorize): New function.
9327 * python/lib/gdb/__init__.py (colorize): New function.
9328 * extension.h (ext_lang_colorize): Declare.
9329 * extension.c (ext_lang_colorize): New function.
9330 * extension-priv.h (struct extension_language_ops) <colorize>: New
9331 member.
9332 * cli/cli-style.c (_initialize_cli_style): Update help text.
9333
f0c702d4
LM
93342020-01-21 Luis Machado <luis.machado@linaro.org>
9335
9336 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9337 <cond>: Change type to bool.
9338 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9339 (aarch64_displaced_step_cb): Likewise.
9340 (aarch64_displaced_step_tb): Likewise.
9341
1ab139e5
LM
93422020-01-21 Luis Machado <luis.machado@linaro.org>
9343
9344 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9345 output.
9346
0c271889
LM
93472020-01-21 Luis Machado <luis.machado@linaro.org>
9348
9349 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9350 <pc_adjust>: Adjust the documentation.
9351 (aarch64_displaced_step_fixup): Check if PC really moved before
9352 adjusting it.
9353
4d89c1c7
TT
93542020-01-19 Tom Tromey <tom@tromey.com>
9355
9356 * disasm.c (~gdb_disassembler): New destructor.
9357 (gdb_buffered_insn_length): Call disassemble_free_target.
9358 * disasm.h (class gdb_disassembler): Declare destructor. Use
9359 DISABLE_COPY_AND_ASSIGN.
9360
c0ab21c2
TT
93612020-01-19 Tom Tromey <tom@tromey.com>
9362
9363 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9364 (die_reader_func_ftype): Remove.
9365 (cutu_reader): New class.
9366 (dw2_get_file_names_reader): Remove "data" parameter.
9367 (dw2_get_file_names): Use cutu_reader.
9368 (create_debug_type_hash_table): Update.
9369 (read_cutu_die_from_dwo): Update comment.
9370 (lookup_dwo_unit): Add dwo_name parameter.
9371 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9372 die_reader_func_ftype and data parameters.
9373 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9374 Remove die_reader_func_ftype and data parameters.
9375 (~cutu_reader): New; from init_cutu_and_read_dies.
9376 (cutu_reader::cutu_reader): Rename from
9377 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9378 and data parameters.
9379 (init_cutu_and_read_dies_simple): Remove.
9380 (struct process_psymtab_comp_unit_data): Remove.
9381 (process_psymtab_comp_unit_reader): Remove data parameter; add
9382 want_partial_unit and pretend_language parameters.
9383 (process_psymtab_comp_unit): Use cutu_reader.
9384 (build_type_psymtabs_reader): Remove data parameter.
9385 (build_type_psymtabs_1): Use cutu_reader.
9386 (process_skeletonless_type_unit): Likewise.
9387 (load_partial_comp_unit_reader): Remove.
9388 (load_partial_comp_unit): Use cutu_reader.
9389 (load_full_comp_unit_reader): Remove.
9390 (load_full_comp_unit): Use cutu_reader.
9391 (struct create_dwo_cu_data): Remove.
9392 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9393 dwo_unit parameters.
9394 (create_cus_hash_table): Use cutu_reader.
9395 (struct dwarf2_read_addr_index_data): Remove.
9396 (dwarf2_read_addr_index_reader): Remove.
9397 (dwarf2_read_addr_index): Use cutu_reader.
9398 (read_signatured_type_reader): Remove.
9399 (read_signatured_type): Use cutu_reader.
9400
45bbae5c
TT
94012020-01-19 Tom Tromey <tom@tromey.com>
9402
9403 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9404 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9405 (tui_wrefresh): Declare.
9406 * tui/tui-wingeneral.c (suppress_output): New global.
9407 (tui_suppress_output, ~tui_suppress_output): New constructor and
9408 destructor.
9409 (tui_wrefresh): New function.
9410 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9411 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9412 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9413 method.
9414 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9415 tui_wrefresh.
9416 (tui_data_window::no_refresh): New method.
9417 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9418 (tui_reg_command): Use tui_suppress_output
9419 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9420 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9421 method.
9422 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9423
4f13c1c0
TT
94242020-01-19 Tom Tromey <tom@tromey.com>
9425
9426 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9427 Handle case where symtab is null.
9428
fa47e446
SM
94292020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9430
9431 * linux-fork.c (one_fork_p): Simplify.
9432
26f42329
SM
94332020-01-17 Simon Marchi <simon.marchi@efficios.com>
9434
9435 * top.c (struct qt_args): Remove.
9436 (kill_or_detach): Change return type to void, replace `void *`
9437 parameter with a proper one.
9438 (print_inferior_quit_action): Likewise.
9439 (quit_confirm): Use range-based for loop to iterate over inferiors.
9440 (quit_force): Likewise.
9441
a9ac81b1
SM
94422020-01-17 Simon Marchi <simon.marchi@efficios.com>
9443
9444 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9445 `void *` parameter with proper parameters.
9446 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9447 (print_one_inferior): Change return type to void, replace `void *`
9448 parameter with proper parameters.
9449 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9450 inferiors.
9451 (get_other_inferior): Remove.
9452 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9453 inferiors.
9454
788eca49
SM
94552020-01-17 Simon Marchi <simon.marchi@efficios.com>
9456
9457 * mi/mi-interp.c (report_initial_inferior): Remove.
9458 (mi_interp::init): Use range-based for to iterate over inferiors.
9459
d9bc85b6
SM
94602020-01-17 Simon Marchi <simon.marchi@efficios.com>
9461
9462 * python/py-inferior.c (build_inferior_list): Remove.
9463 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9464
40c94099
CB
94652020-01-16 Christian Biesinger <cbiesinger@google.com>
9466
9467 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9468 (btrace_stitch_trace): Likewise.
9469 * charset.c (intermediate_encoding): Likewise (vaild).
9470 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9471 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9472 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9473
e0cdfe3c
HD
94742020-01-16 Hannes Domani <ssbssa@yahoo.de>
9475
9476 * windows-tdep.c (windows_get_tlb_type):
9477 Add rtl_user_process_parameters type.
9478
790f1718 94792020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9480 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9481
9482 PR build/24805
9483 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9484 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9485 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9486 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9487 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9488 (ps_plog): Redeclare exported functions with default visibility.
9489
3112ed97
NA
94902020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9491
9492 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9493 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9494
8dc3273e
SM
94952020-01-15 Simon Marchi <simon.marchi@efficios.com>
9496
9497 * infcmd.c (post_create_inferior): Use get_thread_regcache
9498 instead of get_current_regcache.
9499
ff47f4f0
TT
95002020-01-14 Tom Tromey <tom@tromey.com>
9501
9502 PR symtab/12535:
9503 * python/python.c (gdbpy_decode_line): Treat empty string the same
9504 as no argument.
9505
975f45b7
TT
95062020-01-14 Tom Tromey <tom@tromey.com>
9507
9508 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9509
25e57356
TT
95102020-01-14 Tom Tromey <tom@tromey.com>
9511
9512 * nat/linux-btrace.c: Don't include <config.h>.
9513 * nat/linux-ptrace.c: Don't include <config.h>.
9514 * nat/x86-linux-dregs.c: Don't include <config.h>.
9515
05ea2a05
TT
95162020-01-14 Tom Tromey <tom@tromey.com>
9517
9518 * configure: Rebuild.
9519 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9520
01027315
TT
95212020-01-14 Tom Tromey <tom@tromey.com>
9522
9523 * nat/x86-linux-dregs.c: Include configh.h.
9524 * nat/linux-ptrace.c: Include configh.h.
9525 * nat/linux-btrace.c: Include configh.h.
9526 * defs.h: Include config.h, bfd.h.
9527 * configure.ac: Don't source common.host.
9528 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9529 * configure: Rebuild.
9530 * acinclude.m4: Update path.
9531 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9532 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9533 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9534 (CLIBS): Add LIBSUPPORT.
9535 (CDEPS): Likewise.
9536 (COMMON_SFILES): Remove gdbsupport files.
9537 (HFILES_NO_SRCDIR): Likewise.
9538 (stamp-version): Update path to create-version.sh.
9539 (ALLDEPFILES): Remove gdbsupport files.
9540
b2ceabe8
TT
95412020-01-14 Tom Tromey <tom@tromey.com>
9542
9543 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9544 USE_WIN32API when needed.
9545 * configure.ac (USE_WIN32API): Don't define.
9546 (WIN32LIBS): Use WIN32APILIBS.
9547 * configure: Rebuild.
9548
25c51f71
TT
95492020-01-14 Tom Tromey <tom@tromey.com>
9550
9551 * configure: Rebuild.
9552 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9553
717c684d
BE
95542020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9555
9556 * skip.c (skip_function_command): Make skip w/o arguments use the
9557 name of the inlined function if pc is inside any inlined function.
9558
7da6a5b9
LM
95592020-01-14 Luis Machado <luis.machado@linaro.org>
9560
9561 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9562 * infrun.c (resume_1): Likewise.
9563 (handle_inferior_event): Remove stale comment.
9564 * linux-nat.c (linux_nat_target::resume): Update comments.
9565 (save_stop_reason): Likewise.
9566 (linux_nat_filter_event): Likewise.
9567 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9568
44e4c775
AB
95692020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9570
9571 * elfread.c (record_minimal_symbol): Set section index to 0 for
9572 non-allocatable sections.
9573
18a8505e
AT
9574
95752020-01-13 Ali Tamur <tamur@google.com>
9576
9577 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9578 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9579 to gdb::optional. Update comments.
9580 (dwo_file): Update comments.
9581 (read_attribute): Update API to take an additional out parameter,
9582 need_reprocess. This is used to mark attributes that need other
9583 attributes (e.g. str_offsets_base) for correct computation which may not
9584 have been read yet.
9585 (read_attribute_reprocess): New function declaration.
9586 (read_addr_index): Likewise.
9587 (read_dwo_str_index): Likewise.
9588 (read_stub_str_index): Likewise.
9589 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9590 (lookup_addr_base): New function definition.
9591 (lookup_ranges_base): Likewise.
9592 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9593 lookup_ranges_base.
9594 (init_cutu_and_read_dies): Update comments.
9595 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9596 unit. This is used to inherit parent's str_offsets_base and addr_base.
9597 Update comments.
9598 (init_cutu_and_read_dies_simple): Reflect API changes.
9599 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9600 (create_cus_hash_table): Change API to take parent compile unit.
9601 Reflect API changes.
9602 (open_and_init_dwo_file): Reflect API changes.
9603 (dwarf2_get_pc_bounds): Update comments.
9604 (dwarf2_record_block_ranges): Likewise.
9605 (read_full_die_1): Change implementation to reprocess attributes that
9606 need str_offsets_base and addr_base.
9607 (partial_die_info::read): Likewise.
9608 (read_attribute_reprocess): New function definition.
9609 (read_attribute_value): Change API to take an additional out parameter,
9610 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9611 when a non-dwo compile unit has index based attributes.
9612 (read_attribute): Reflect API changes.
9613 (read_addr_index_1): Reflect API changes. Update comments.
9614 (dwarf2_read_addr_index_data): Reflect API changes.
9615 (dwarf2_read_addr_index): Likewise.
9616 (read_str_index): Change API and implementation. This becomes a helper
9617 to be used by the new string index related methods. Update error
9618 message and comments.
9619 (read_dwo_str_index): New function definition.
9620 (read_stub_str_index): Likewise.
9621 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9622 * symfile.h (dwarf2_debug_sections): Likewise.
9623 * xcoffread.c (dwarf2_debug_sections): Likewise.
9624
0cac9354
SM
96252020-01-13 Simon Marchi <simon.marchi@efficios.com>
9626
9627 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9628 core_reg_sect type to gdb_byte *.
9629 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9630 * cris-tdep.c (fetch_core_registers): Likewise.
9631 * corelow.c (core_target::get_core_register_section): Change
9632 type of `contents` to gdb::byte_vector.
9633
9a6d629c
AB
96342020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9635
9636 * tui/tui-wingeneral.c (box_win): Position the title in the center
9637 of the border.
9638
d8b2f9e3
SM
96392020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9640
9641 * corelow.c (core_target::get_core_register_section): Use
9642 std::vector instead of alloca.
9643
bb564c58
SM
96442020-01-13 Simon Marchi <simon.marchi@efficios.com>
9645
9646 * warning.m4: Add -Wmissing-declarations to build_warnings.
9647 * configure: Re-generate.
9648
6b366111
SM
96492020-01-13 Simon Marchi <simon.marchi@efficios.com>
9650
9651 * python/python.c (init__gdb_module): Add declaration.
9652
6c265988
SM
96532020-01-13 Simon Marchi <simon.marchi@efficios.com>
9654
9655 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9656 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9657 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9658 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9659 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9660 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9661 * ada-exp.y (_initialize_ada_exp): Add declaration.
9662 * ada-lang.c (_initialize_ada_language): Add declaration.
9663 * ada-tasks.c (_initialize_tasks): Add declaration.
9664 * agent.c (_initialize_agent): Add declaration.
9665 * aix-thread.c (_initialize_aix_thread): Add declaration.
9666 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9667 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9668 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9669 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9670 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9671 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9672 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9673 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9674 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9675 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9676 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9677 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9678 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9679 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9680 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9681 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9682 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9683 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9684 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9685 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9686 * annotate.c (_initialize_annotate): Add declaration.
9687 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9688 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9689 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9690 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9691 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9692 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9693 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9694 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9695 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9696 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9697 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9698 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9699 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9700 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9701 * auto-load.c (_initialize_auto_load): Add declaration.
9702 * auxv.c (_initialize_auxv): Add declaration.
9703 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9704 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9705 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9706 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9707 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9708 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9709 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9710 * breakpoint.c (_initialize_breakpoint): Add declaration.
9711 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9712 * btrace.c (_initialize_btrace): Add declaration.
9713 * charset.c (_initialize_charset): Add declaration.
9714 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9715 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9716 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9717 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9718 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9719 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9720 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9721 * coffread.c (_initialize_coffread): Add declaration.
9722 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9723 * compile/compile.c (_initialize_compile): Add declaration.
9724 * complaints.c (_initialize_complaints): Add declaration.
9725 * completer.c (_initialize_completer): Add declaration.
9726 * copying.c (_initialize_copying): Add declaration.
9727 * corefile.c (_initialize_core): Add declaration.
9728 * corelow.c (_initialize_corelow): Add declaration.
9729 * cp-abi.c (_initialize_cp_abi): Add declaration.
9730 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9731 * cp-support.c (_initialize_cp_support): Add declaration.
9732 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9733 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9734 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9735 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9736 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9737 * ctfread.c (_initialize_ctfread): Add declaration.
9738 * d-lang.c (_initialize_d_language): Add declaration.
9739 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9740 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9741 * dbxread.c (_initialize_dbxread): Add declaration.
9742 * dcache.c (_initialize_dcache): Add declaration.
9743 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9744 * disasm.c (_initialize_disasm): Add declaration.
9745 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9746 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9747 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9748 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9749 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9750 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9751 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9752 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9753 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9754 * elfread.c (_initialize_elfread): Add declaration.
9755 * exec.c (_initialize_exec): Add declaration.
9756 * extension.c (_initialize_extension): Add declaration.
9757 * f-lang.c (_initialize_f_language): Add declaration.
9758 * f-valprint.c (_initialize_f_valprint): Add declaration.
9759 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9760 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9761 * filesystem.c (_initialize_filesystem): Add declaration.
9762 * findcmd.c (_initialize_mem_search): Add declaration.
9763 * findvar.c (_initialize_findvar): Add declaration.
9764 * fork-child.c (_initialize_fork_child): Add declaration.
9765 * frame-base.c (_initialize_frame_base): Add declaration.
9766 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9767 * frame.c (_initialize_frame): Add declaration.
9768 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9769 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9770 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9771 * gcore.c (_initialize_gcore): Add declaration.
9772 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9773 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9774 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9775 * gdbarch.c (_initialize_gdbarch): Add declaration.
9776 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9777 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9778 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9779 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9780 * go-lang.c (_initialize_go_language): Add declaration.
9781 * go32-nat.c (_initialize_go32_nat): Add declaration.
9782 * guile/guile.c (_initialize_guile): Add declaration.
9783 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9784 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9785 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9786 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9787 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9788 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9789 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9790 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9791 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9792 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9793 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9794 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9795 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9796 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9797 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9798 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9799 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9800 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9801 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9802 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9803 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9804 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9805 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9806 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9807 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9808 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9809 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9810 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9811 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9812 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9813 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9814 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9815 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9816 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9817 * infcall.c (_initialize_infcall): Add declaration.
9818 * infcmd.c (_initialize_infcmd): Add declaration.
9819 * inflow.c (_initialize_inflow): Add declaration.
9820 * infrun.c (_initialize_infrun): Add declaration.
9821 * interps.c (_initialize_interpreter): Add declaration.
9822 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9823 * jit.c (_initialize_jit): Add declaration.
9824 * language.c (_initialize_language): Add declaration.
9825 * linux-fork.c (_initialize_linux_fork): Add declaration.
9826 * linux-nat.c (_initialize_linux_nat): Add declaration.
9827 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9828 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9829 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9830 * m2-lang.c (_initialize_m2_language): Add declaration.
9831 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9832 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9833 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9834 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9835 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9836 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9837 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9838 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9839 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9840 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9841 * machoread.c (_initialize_machoread): Add declaration.
9842 * macrocmd.c (_initialize_macrocmd): Add declaration.
9843 * macroscope.c (_initialize_macroscope): Add declaration.
9844 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9845 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9846 * maint.c (_initialize_maint_cmds): Add declaration.
9847 * mdebugread.c (_initialize_mdebugread): Add declaration.
9848 * memattr.c (_initialize_mem): Add declaration.
9849 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9850 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9851 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9852 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9853 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9854 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9855 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9856 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9857 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9858 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9859 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9860 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9861 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9862 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9863 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9864 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9865 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9866 * mipsread.c (_initialize_mipsread): Add declaration.
9867 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9868 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9869 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9870 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9871 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9872 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9873 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9874 * nto-procfs.c (_initialize_procfs): Add declaration.
9875 * objc-lang.c (_initialize_objc_language): Add declaration.
9876 * observable.c (_initialize_observer): Add declaration.
9877 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9878 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9879 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9880 * osabi.c (_initialize_gdb_osabi): Add declaration.
9881 * osdata.c (_initialize_osdata): Add declaration.
9882 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9883 * parse.c (_initialize_parse): Add declaration.
9884 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9885 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9886 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9887 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9888 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9889 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9890 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9891 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9892 * printcmd.c (_initialize_printcmd): Add declaration.
9893 * probe.c (_initialize_probe): Add declaration.
9894 * proc-api.c (_initialize_proc_api): Add declaration.
9895 * proc-events.c (_initialize_proc_events): Add declaration.
9896 * proc-service.c (_initialize_proc_service): Add declaration.
9897 * procfs.c (_initialize_procfs): Add declaration.
9898 * producer.c (_initialize_producer): Add declaration.
9899 * psymtab.c (_initialize_psymtab): Add declaration.
9900 * python/python.c (_initialize_python): Add declaration.
9901 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9902 * record-btrace.c (_initialize_record_btrace): Add declaration.
9903 * record-full.c (_initialize_record_full): Add declaration.
9904 * record.c (_initialize_record): Add declaration.
9905 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9906 * regcache.c (_initialize_regcache): Add declaration.
9907 * reggroups.c (_initialize_reggroup): Add declaration.
9908 * remote-notif.c (_initialize_notif): Add declaration.
9909 * remote-sim.c (_initialize_remote_sim): Add declaration.
9910 * remote.c (_initialize_remote): Add declaration.
9911 * reverse.c (_initialize_reverse): Add declaration.
9912 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9913 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9914 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9915 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9916 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9917 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9918 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9919 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9920 Add declaration.
9921 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9922 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9923 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9924 * rust-exp.y (_initialize_rust_exp): Add declaration.
9925 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9926 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9927 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9928 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9929 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9930 * score-tdep.c (_initialize_score_tdep): Add declaration.
9931 * ser-go32.c (_initialize_ser_dos): Add declaration.
9932 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9933 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9934 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9935 * ser-uds.c (_initialize_ser_socket): Add declaration.
9936 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9937 * serial.c (_initialize_serial): Add declaration.
9938 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9939 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9940 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9941 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9942 * skip.c (_initialize_step_skip): Add declaration.
9943 * sol-thread.c (_initialize_sol_thread): Add declaration.
9944 * solib-aix.c (_initialize_solib_aix): Add declaration.
9945 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9946 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9947 * solib-frv.c (_initialize_frv_solib): Add declaration.
9948 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9949 * solib-target.c (_initialize_solib_target): Add declaration.
9950 * solib.c (_initialize_solib): Add declaration.
9951 * source-cache.c (_initialize_source_cache): Add declaration.
9952 * source.c (_initialize_source): Add declaration.
9953 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9954 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9955 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9956 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9957 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9958 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9959 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9960 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9961 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9962 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9963 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9964 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9965 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9966 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9967 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9968 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9969 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9970 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9971 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9972 * stabsread.c (_initialize_stabsread): Add declaration.
9973 * stack.c (_initialize_stack): Add declaration.
9974 * stap-probe.c (_initialize_stap_probe): Add declaration.
9975 * std-regs.c (_initialize_frame_reg): Add declaration.
9976 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9977 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9978 * symfile.c (_initialize_symfile): Add declaration.
9979 * symmisc.c (_initialize_symmisc): Add declaration.
9980 * symtab.c (_initialize_symtab): Add declaration.
9981 * target.c (_initialize_target): Add declaration.
9982 * target-connection.c (_initialize_target_connection): Add
9983 declaration.
9984 * target-dcache.c (_initialize_target_dcache): Add declaration.
9985 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9986 * thread.c (_initialize_thread): Add declaration.
9987 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9988 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9989 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9990 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9991 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9992 * tracectf.c (_initialize_ctf): Add declaration.
9993 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9994 * tracefile.c (_initialize_tracefile): Add declaration.
9995 * tracepoint.c (_initialize_tracepoint): Add declaration.
9996 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9997 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9998 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9999 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10000 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10001 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10002 * tui/tui.c (_initialize_tui): Add declaration.
10003 * typeprint.c (_initialize_typeprint): Add declaration.
10004 * ui-style.c (_initialize_ui_style): Add declaration.
10005 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10006 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10007 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10008 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10009 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10010 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10011 * unittests/filtered_iterator-selftests.c
10012 (_initialize_filtered_iterator_selftests): Add declaration.
10013 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10014 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10015 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10016 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10017 * unittests/main-thread-selftests.c
10018 (_initialize_main_thread_selftests): Add declaration.
10019 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10020 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10021 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10022 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10023 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10024 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10025 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10026 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10027 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10028 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10029 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10030 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10031 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10032 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10033 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10034 declaration.
10035 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10036 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10037 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10038 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10039 * user-regs.c (_initialize_user_regs): Add declaration.
10040 * utils.c (_initialize_utils): Add declaration.
10041 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10042 * valops.c (_initialize_valops): Add declaration.
10043 * valprint.c (_initialize_valprint): Add declaration.
10044 * value.c (_initialize_values): Add declaration.
10045 * varobj.c (_initialize_varobj): Add declaration.
10046 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10047 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10048 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10049 * windows-nat.c (_initialize_windows_nat): Add declaration.
10050 (_initialize_check_for_gdb_ini): Add declaration.
10051 (_initialize_loadable): Add declaration.
10052 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10053 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10054 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10055 * xcoffread.c (_initialize_xcoffread): Add declaration.
10056 * xml-support.c (_initialize_xml_support): Add declaration.
10057 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10058 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10059 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10060 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10061
e2de1eec
SM
100622020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10063
10064 * regformats/regdat.sh: Generate declaration for init function.
10065
e0037b4c
SM
100662020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10067
10068 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10069 up.
10070 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10071 close_one_inferior>: New methods.
10072 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10073 pass down target to find_inferior_pid.
10074 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10075 Pass down target to find_inferior_ptid.
10076 (gdbsim_target::create_inferior): Pass down target to
10077 add_thread_silent.
10078 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10079 target down to find_inferior_ptid and switch_to_thread.
10080 (gdbsim_target::close): Update to call close_one_inferior.
10081 (struct resume_data): Remove.
10082 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10083 directly, rather than through a void pointer.
10084 (gdbsim_target::resume): Update to call resume_one_inferior.
10085
58920b5b
SM
100862020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10087
10088 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10089
4ec89149
PA
100902020-01-12 Pedro Alves <palves@redhat.com>
10091
10092 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10093 directly for the current inferior instead of
10094 discard_all_inferiors.
10095 (discard_all_inferiors): Delete.
10096
7c392d1d
TT
100972020-01-11 Tom Tromey <tom@tromey.com>
10098
10099 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10100 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10101 deprecated_safe_get_selected_frame.
10102
d9ebdab7
TBA
101032020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10104
10105 * inferior.c (print_inferior): Switch inferior before printing it.
10106
f3c469b9
PA
101072020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10108 Pedro Alves <palves@redhat.com>
10109
10110 * progspace-and-thread.c (switch_to_program_space_and_thread):
10111 Assert there's an inferior for PSPACE. Use
10112 switch_to_inferior_no_thread to switch the inferior too.
10113 * progspace.c (program_space::~program_space): Call
10114 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10115 (program_space::free_all_objfiles): Don't call clear_symtab_users
10116 here.
10117 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10118
65c574f6
PA
101192020-01-10 Pedro Alves <palves@redhat.com>
10120
10121 * NEWS: Mention multi-target debugging, "info connections", and
10122 "add-inferior -no-connection".
10123
2f4fcf00
PA
101242020-01-10 Pedro Alves <palves@redhat.com>
10125
10126 * infrun.c: Include "target-connection.h".
10127 (check_multi_target_resumption): New.
10128 (proceed): Call it.
10129 * target-connection.c (make_target_connection_string): Make
10130 extern.
10131 * target-connection.h (make_target_connection_string): Declare.
10132
121b3efd
PA
101332020-01-10 Pedro Alves <palves@redhat.com>
10134
10135 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10136 * inferior.c (uiout_field_connection): New function.
10137 (print_inferior): Add new "connection-id" column.
10138 (add_inferior_command): Show connection number/string of added
10139 inferior.
10140 * process-stratum-target.h
10141 (process_stratum_target::connection_string): New virtual method.
10142 (process_stratum_target::connection_number): New field.
10143 * remote.c (remote_target::connection_string): New override.
10144 * target-connection.c: New file.
10145 * target-connection.h: New file.
10146 * target.c (decref_target): Remove process_stratum targets from
10147 the connection list.
10148 (target_stack::push): Add process_stratum targets to the
10149 connection list.
10150
4f837581
PA
101512020-01-10 Pedro Alves <palves@redhat.com>
10152
10153 Revert:
10154 2016-04-12 Pedro Alves <palves@redhat.com>
10155 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10156 Remove references to name.
10157 * serial.h (struct serial) <name>: Delete.
10158
f4ec508e
PA
101592020-01-10 Pedro Alves <palves@redhat.com>
10160
10161 * gdbarch-selftests.c (register_to_value_test): Remove "target
10162 already pushed" check.
10163
5b6d1e4f
PA
101642020-01-10 Pedro Alves <palves@redhat.com>
10165 John Baldwin <jhb@FreeBSD.org>
10166
10167 * aarch64-linux-nat.c
10168 (aarch64_linux_nat_target::thread_architecture): Adjust.
10169 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10170 (task_command_1): Likewise.
10171 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10172 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10173 (aix_thread_target::store_registers)
10174 (aix_thread_target::thread_alive): Adjust.
10175 * amd64-fbsd-tdep.c: Include "inferior.h".
10176 (amd64fbsd_get_thread_local_address): Pass down target.
10177 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10178 thread's gdbarch instead of target_gdbarch.
10179 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10180 get_last_target_status.
10181 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10182 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10183 inferiors.
10184 (update_inserted_breakpoint_locations): Skip if inferiors with no
10185 execution.
10186 (update_global_location_list): When handling moribund locations,
10187 find representative inferior for location's pspace, and use thread
10188 count of its process_stratum target.
10189 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10190 * bsd-uthread.c (bsd_uthread_target::wait): Use
10191 as_process_stratum_target and adjust thread_change_ptid and
10192 add_thread calls.
10193 (bsd_uthread_target::update_thread_list): Use
10194 as_process_stratum_target and adjust find_thread_ptid,
10195 thread_change_ptid and add_thread calls.
10196 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10197 find_thread_ptid call.
10198 * corelow.c (add_to_thread_list): Adjust add_thread call.
10199 (core_target_open): Adjust add_thread_silent and thread_count
10200 calls.
10201 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10202 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10203 * event-top.c (async_disconnect): Pop targets from all inferiors.
10204 * exec.c (add_target_sections): Push exec target on all inferiors
10205 sharing the program space.
10206 (remove_target_sections): Remove the exec target from all
10207 inferiors sharing the program space.
10208 (exec_on_vfork): New.
10209 * exec.h (exec_on_vfork): Declare.
10210 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10211 Pass it down.
10212 (fbsd_nat_target::update_thread_list): Adjust.
10213 (fbsd_nat_target::resume): Adjust.
10214 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10215 down.
10216 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10217 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10218 get_thread_arch_regcache call.
10219 * fork-child.c (gdb_startup_inferior): Pass target down to
10220 startup_inferior and set_executing.
10221 * gdbthread.h (struct process_stratum_target): Forward declare.
10222 (add_thread, add_thread_silent, add_thread_with_info)
10223 (in_thread_list): Add process_stratum_target parameter.
10224 (find_thread_ptid(inferior*, ptid_t)): New overload.
10225 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10226 parameter.
10227 (all_threads()): Delete overload.
10228 (all_threads, all_non_exited_threads): Add process_stratum_target
10229 parameter.
10230 (all_threads_safe): Use brace initialization.
10231 (thread_count): Add process_stratum_target parameter.
10232 (set_resumed, set_running, set_stop_requested, set_executing)
10233 (threads_are_executing, finish_thread_state): Add
10234 process_stratum_target parameter.
10235 (switch_to_thread): Use is_current_thread.
10236 * i386-fbsd-tdep.c: Include "inferior.h".
10237 (i386fbsd_get_thread_local_address): Pass down target.
10238 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10239 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10240 have_inferiors check.
10241 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10242 (inf_ptrace_target::attach): Adjust.
10243 * infcall.c (run_inferior_call): Adjust.
10244 * infcmd.c (run_command_1): Pass target to
10245 scoped_finish_thread_state.
10246 (proceed_thread_callback): Skip inferiors with no execution.
10247 (continue_command): Rename 'all_threads' local to avoid hiding
10248 'all_threads' function. Adjust get_last_target_status call.
10249 (prepare_one_step): Adjust set_running call.
10250 (signal_command): Use user_visible_resume_target. Compare thread
10251 pointers instead of inferior_ptid.
10252 (info_program_command): Adjust to pass down target.
10253 (attach_command): Mark target's 'thread_executing' flag.
10254 (stop_current_target_threads_ns): New, factored out from ...
10255 (interrupt_target_1): ... this. Switch inferior before making
10256 target calls.
10257 * inferior-iter.h
10258 (struct all_inferiors_iterator, struct all_inferiors_range)
10259 (struct all_inferiors_safe_range)
10260 (struct all_non_exited_inferiors_range): Filter on
10261 process_stratum_target too. Remove explicit.
10262 * inferior.c (inferior::inferior): Push dummy target on target
10263 stack.
10264 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10265 Add process_stratum_target parameter, and pass it down.
10266 (have_live_inferiors): Adjust.
10267 (switch_to_inferior_and_push_target): New.
10268 (add_inferior_command, clone_inferior_command): Handle
10269 "-no-connection" parameter. Use
10270 switch_to_inferior_and_push_target.
10271 (_initialize_inferior): Mention "-no-connection" option in
10272 the help of "add-inferior" and "clone-inferior" commands.
10273 * inferior.h: Include "process-stratum-target.h".
10274 (interrupt_target_1): Use bool.
10275 (struct inferior) <push_target, unpush_target, target_is_pushed,
10276 find_target_beneath, top_target, process_target, target_at,
10277 m_stack>: New.
10278 (discard_all_inferiors): Delete.
10279 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10280 (all_inferiors, all_non_exited_inferiors): Add
10281 process_stratum_target parameter.
10282 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10283 (target_last_proc_target): New global.
10284 (follow_fork_inferior): Push target on new inferior. Pass target
10285 to add_thread_silent. Call exec_on_vfork. Handle target's
10286 reference count.
10287 (follow_fork): Adjust get_last_target_status call. Also consider
10288 target.
10289 (follow_exec): Push target on new inferior.
10290 (struct execution_control_state) <target>: New field.
10291 (user_visible_resume_target): New.
10292 (do_target_resume): Call target_async.
10293 (resume_1): Set target's threads_executing flag. Consider resume
10294 target.
10295 (commit_resume_all_targets): New.
10296 (proceed): Also consider resume target. Skip threads of inferiors
10297 with no execution. Commit resumtion in all targets.
10298 (start_remote): Pass current inferior to wait_for_inferior.
10299 (infrun_thread_stop_requested): Consider target as well. Pass
10300 thread_info pointer to clear_inline_frame_state instead of ptid.
10301 (infrun_thread_thread_exit): Consider target as well.
10302 (random_pending_event_thread): New inferior parameter. Use it.
10303 (do_target_wait): Rename to ...
10304 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10305 down.
10306 (threads_are_resumed_pending_p, do_target_wait): New.
10307 (prepare_for_detach): Adjust calls.
10308 (wait_for_inferior): New inferior parameter. Handle it. Use
10309 do_target_wait_1 instead of do_target_wait.
10310 (fetch_inferior_event): Adjust. Switch to representative
10311 inferior. Pass target down.
10312 (set_last_target_status): Add process_stratum_target parameter.
10313 Save target in global.
10314 (get_last_target_status): Add process_stratum_target parameter and
10315 handle it.
10316 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10317 (context_switch): Check inferior_ptid == null_ptid before calling
10318 inferior_thread().
10319 (get_inferior_stop_soon): Pass down target.
10320 (wait_one): Rename to ...
10321 (poll_one_curr_target): ... this.
10322 (struct wait_one_event): New.
10323 (wait_one): New.
10324 (stop_all_threads): Adjust.
10325 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10326 event's target.
10327 (switch_back_to_stepped_thread): Also consider target.
10328 (print_stop_event): Update.
10329 (normal_stop): Update. Also consider the resume target.
10330 * infrun.h (wait_for_inferior): Remove declaration.
10331 (user_visible_resume_target): New declaration.
10332 (get_last_target_status, set_last_target_status): New
10333 process_stratum_target parameter.
10334 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10335 process_stratum_target parameter, and use it.
10336 (clear_inline_frame_state (thread_info*)): New.
10337 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10338 process_stratum_target parameter.
10339 (clear_inline_frame_state (thread_info*)): Declare.
10340 * linux-fork.c (delete_checkpoint_command): Pass target down to
10341 find_thread_ptid.
10342 (checkpoint_command): Adjust.
10343 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10344 instead of just tweaking inferior_ptid.
10345 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10346 (exit_lwp): Pass target down to find_thread_ptid.
10347 (attach_proc_task_lwp_callback): Pass target down to
10348 add_thread/set_running/set_executing.
10349 (linux_nat_target::attach): Pass target down to
10350 thread_change_ptid.
10351 (get_detach_signal): Pass target down to find_thread_ptid.
10352 Consider last target status's target.
10353 (linux_resume_one_lwp_throw, resume_lwp)
10354 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10355 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10356 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10357 (linux_nat_target::async_wait_fd): New.
10358 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10359 target down.
10360 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10361 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10362 * linux-thread-db.c (struct thread_db_info::process_target): New
10363 field.
10364 (add_thread_db_info): Save target.
10365 (get_thread_db_info): New process_stratum_target parameter. Also
10366 match target.
10367 (delete_thread_db_info): New process_stratum_target parameter.
10368 Also match target.
10369 (thread_from_lwp): Adjust to pass down target.
10370 (thread_db_notice_clone): Pass down target.
10371 (check_thread_db_callback): Pass down target.
10372 (try_thread_db_load_1): Always push the thread_db target.
10373 (try_thread_db_load, record_thread): Pass target down.
10374 (thread_db_target::detach): Pass target down. Always unpush the
10375 thread_db target.
10376 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10377 target down. Always unpush the thread_db target.
10378 (find_new_threads_callback, thread_db_find_new_threads_2)
10379 (thread_db_target::update_thread_list): Pass target down.
10380 (thread_db_target::pid_to_str): Pass current inferior down.
10381 (thread_db_target::get_thread_local_address): Pass target down.
10382 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10383 target down.
10384 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10385 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10386 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10387 (procfs_init_inferior): Rename to ...
10388 (procfs_target::procfs_init_inferior): ... this and adjust.
10389 (procfs_target::create_inferior, procfs_notice_thread)
10390 (procfs_do_thread_registers): Adjust.
10391 * ppc-fbsd-tdep.c: Include "inferior.h".
10392 (ppcfbsd_get_thread_local_address): Pass down target.
10393 * proc-service.c (ps_xfer_memory): Switch current inferior and
10394 program space as well.
10395 (get_ps_regcache): Pass target down.
10396 * process-stratum-target.c
10397 (process_stratum_target::thread_address_space)
10398 (process_stratum_target::thread_architecture): Pass target down.
10399 * process-stratum-target.h
10400 (process_stratum_target::threads_executing): New field.
10401 (as_process_stratum_target): New.
10402 * ravenscar-thread.c
10403 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10404 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10405 down.
10406 * record-btrace.c (record_btrace_target::info_record): Adjust.
10407 (record_btrace_target::record_method)
10408 (record_btrace_target::record_is_replaying)
10409 (record_btrace_target::fetch_registers)
10410 (get_thread_current_frame_id, record_btrace_target::resume)
10411 (record_btrace_target::wait, record_btrace_target::stop): Pass
10412 target down.
10413 * record-full.c (record_full_wait_1): Switch to event thread.
10414 Pass target down.
10415 * regcache.c (regcache::regcache)
10416 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10417 process_stratum_target parameter and handle it.
10418 (current_thread_target): New global.
10419 (get_thread_regcache): Add process_stratum_target parameter and
10420 handle it. Switch inferior before calling target method.
10421 (get_thread_regcache): Pass target down.
10422 (get_thread_regcache_for_ptid): Pass target down.
10423 (registers_changed_ptid): Add process_stratum_target parameter and
10424 handle it.
10425 (registers_changed_thread, registers_changed): Pass target down.
10426 (test_get_thread_arch_aspace_regcache): New.
10427 (current_regcache_test): Define a couple local test_target_ops
10428 instances and use them for testing.
10429 (readwrite_regcache): Pass process_stratum_target parameter.
10430 (cooked_read_test, cooked_write_test): Pass mock_target down.
10431 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10432 (get_thread_arch_aspace_regcache): Add process_stratum_target
10433 parameter.
10434 (regcache::target): New method.
10435 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10436 (regcache::registers_changed_ptid): Add process_stratum_target
10437 parameter.
10438 (regcache::m_target): New field.
10439 (registers_changed_ptid): Add process_stratum_target parameter.
10440 * remote.c (remote_state::supports_vCont_probed): New field.
10441 (remote_target::async_wait_fd): New method.
10442 (remote_unpush_and_throw): Add remote_target parameter.
10443 (get_current_remote_target): Adjust.
10444 (remote_target::remote_add_inferior): Push target.
10445 (remote_target::remote_add_thread)
10446 (remote_target::remote_notice_new_inferior)
10447 (get_remote_thread_info): Pass target down.
10448 (remote_target::update_thread_list): Skip threads of inferiors
10449 bound to other targets. (remote_target::close): Don't discard
10450 inferiors. (remote_target::add_current_inferior_and_thread)
10451 (remote_target::process_initial_stop_replies)
10452 (remote_target::start_remote)
10453 (remote_target::remote_serial_quit_handler): Pass down target.
10454 (remote_target::remote_unpush_target): New remote_target
10455 parameter. Unpush the target from all inferiors.
10456 (remote_target::remote_unpush_and_throw): New remote_target
10457 parameter. Pass it down.
10458 (remote_target::open_1): Check whether the current inferior has
10459 execution instead of checking whether any inferior is live. Pass
10460 target down.
10461 (remote_target::remote_detach_1): Pass down target. Use
10462 remote_unpush_target.
10463 (extended_remote_target::attach): Pass down target.
10464 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10465 (remote_target::append_resumption): Pass down target.
10466 (remote_target::append_pending_thread_resumptions)
10467 (remote_target::remote_resume_with_hc, remote_target::resume)
10468 (remote_target::commit_resume): Pass down target.
10469 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10470 (remote_target::interrupt_query)
10471 (remote_target::remove_new_fork_children)
10472 (remote_target::check_pending_events_prevent_wildcard_vcont)
10473 (remote_target::remote_parse_stop_reply)
10474 (remote_target::process_stop_reply): Pass down target.
10475 (first_remote_resumed_thread): New remote_target parameter. Pass
10476 it down.
10477 (remote_target::wait_as): Pass down target.
10478 (unpush_and_perror): New remote_target parameter. Pass it down.
10479 (remote_target::readchar, remote_target::remote_serial_write)
10480 (remote_target::getpkt_or_notif_sane_1)
10481 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10482 down target.
10483 (remote_target::mourn_inferior): Pass down target. Use
10484 remote_unpush_target.
10485 (remote_target::core_of_thread)
10486 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10487 (remote_target::pid_to_exec_file)
10488 (remote_target::thread_handle_to_thread_info): Pass down target.
10489 (remote_target::async_wait_fd): New.
10490 * riscv-fbsd-tdep.c: Include "inferior.h".
10491 (riscv_fbsd_get_thread_local_address): Pass down target.
10492 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10493 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10494 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10495 Adjust.
10496 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10497 * solib-svr4.c (enable_break): Pass down target.
10498 * spu-multiarch.c (parse_spufs_run): Pass down target.
10499 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10500 * target-delegates.c: Regenerate.
10501 * target.c (g_target_stack): Delete.
10502 (current_top_target): Return the current inferior's top target.
10503 (target_has_execution_1): Refer to the passed-in inferior's top
10504 target.
10505 (target_supports_terminal_ours): Check whether the initial
10506 inferior was already created.
10507 (decref_target): New.
10508 (target_stack::push): Incref/decref the target.
10509 (push_target, push_target, unpush_target): Adjust.
10510 (target_stack::unpush): Defref target.
10511 (target_is_pushed): Return bool. Adjust to refer to the current
10512 inferior's target stack.
10513 (dispose_inferior): Delete, and inline parts ...
10514 (target_preopen): ... here. Only dispose of the current inferior.
10515 (target_detach): Hold strong target reference while detaching.
10516 Pass target down.
10517 (target_thread_name): Add assertion.
10518 (target_resume): Pass down target.
10519 (target_ops::beneath, find_target_at): Adjust to refer to the
10520 current inferior's target stack.
10521 (get_dummy_target): New.
10522 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10523 has a thread running.
10524 (initialize_targets): Rename to ...
10525 (_initialize_target): ... this.
10526 * target.h: Include "gdbsupport/refcounted-object.h".
10527 (struct target_ops): Inherit refcounted_object.
10528 (target_ops::shortname, target_ops::longname): Make const.
10529 (target_ops::async_wait_fd): New method.
10530 (decref_target): Declare.
10531 (struct target_ops_ref_policy): New.
10532 (target_ops_ref): New typedef.
10533 (get_dummy_target): Declare function.
10534 (target_is_pushed): Return bool.
10535 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10536 (all_matching_threads_iterator::all_matching_threads_iterator):
10537 Handle filter target.
10538 * thread-iter.h (struct all_matching_threads_iterator, struct
10539 all_matching_threads_range, class all_non_exited_threads_range):
10540 Filter by target too. Remove explicit.
10541 * thread.c (threads_executing): Delete.
10542 (inferior_thread): Pass down current inferior.
10543 (clear_thread_inferior_resources): Pass down thread pointer
10544 instead of ptid_t.
10545 (add_thread_silent, add_thread_with_info, add_thread): Add
10546 process_stratum_target parameter. Use it for thread and inferior
10547 searches.
10548 (is_current_thread): New.
10549 (thread_info::deletable): Use it.
10550 (find_thread_ptid, thread_count, in_thread_list)
10551 (thread_change_ptid, set_resumed, set_running): New
10552 process_stratum_target parameter. Pass it down.
10553 (set_executing): New process_stratum_target parameter. Pass it
10554 down. Adjust reference to 'threads_executing'.
10555 (threads_are_executing): New process_stratum_target parameter.
10556 Adjust reference to 'threads_executing'.
10557 (set_stop_requested, finish_thread_state): New
10558 process_stratum_target parameter. Pass it down.
10559 (switch_to_thread): Also match inferior.
10560 (switch_to_thread): New process_stratum_target parameter. Pass it
10561 down.
10562 (update_threads_executing): Reimplement.
10563 * top.c (quit_force): Pop targets from all inferior.
10564 (gdb_init): Don't call initialize_targets.
10565 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10566 Declare.
10567 (windows_add_thread, windows_delete_thread): Adjust.
10568 (get_windows_debug_event): Rename to ...
10569 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10570 * tracefile-tfile.c (tfile_target_open): Pass down target.
10571 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10572 Forward declare.
10573 (switch_to_thread): Add process_stratum_target parameter.
10574 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10575 parameter. Use it.
10576 (mi_on_resume): Pass target down.
10577 * nat/fork-inferior.c (startup_inferior): Add
10578 process_stratum_target parameter. Pass it down.
10579 * nat/fork-inferior.h (startup_inferior): Add
10580 process_stratum_target parameter.
10581 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10582
75c6c844
PA
105832020-01-10 Pedro Alves <palves@redhat.com>
10584
10585 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10586 directly. Instead find the first thread in the thread list and
10587 use switch_to_thread.
10588
78f2c40a
PA
105892020-01-10 Pedro Alves <palves@redhat.com>
10590
10591 * remote.c (remote_target::remote_add_inferior): Don't bind a
10592 process to the current inferior if the current inferior is already
10593 bound to a process.
10594
e7af6c70
TBA
105952020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10596 Pedro Alves <palves@redhat.com>
10597
10598 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10599 If no process is specified, return null_ptid instead of
10600 inferior_ptid.
10601 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10602 TARGET_WAITKIND_SIGNALLED with no pid.
10603
31ba933e
PA
106042020-01-10 Pedro Alves <palves@redhat.com>
10605
10606 * remote.c (first_remote_resumed_thread): New.
10607 (remote_target::wait_as): Use it as default event_ptid instead of
10608 inferior_ptid.
10609
735fc2ca
PA
106102020-01-10 Pedro Alves <palves@redhat.com>
10611
10612 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10613
c17e02e1
PA
106142020-01-10 Pedro Alves <palves@redhat.com>
10615
10616 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10617 not -1.
10618
ab1ddbcf
PA
106192020-01-10 Pedro Alves <palves@redhat.com>
10620
10621 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10622 ptid to get_last_target_status.
10623 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10624 ptid to get_last_target_status.
10625 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10626 get_last_target_status.
10627 (info_program_command): Don't pass a target_waitstatus to
10628 get_last_target_status.
10629 * infrun.c (init_wait_for_inferior): Use
10630 nullify_last_target_wait_ptid.
10631 (get_last_target_status): Handle nullptr arguments.
10632 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10633 (print_stop_event): Don't pass a ptid to get_last_target_status.
10634 (normal_stop): Don't pass a ptid to get_last_target_status.
10635 * infrun.h (get_last_target_status, set_last_target_status): Move
10636 comments here and update.
10637 (nullify_last_target_wait_ptid): Declare.
10638 * linux-fork.c (fork_load_infrun_state): Remove local extern
10639 declaration of nullify_last_target_wait_ptid.
10640 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10641 to get_last_target_status.
10642
f3f8ece4
PA
106432020-01-10 Pedro Alves <palves@redhat.com>
10644
10645 * gdbthread.h (scoped_restore_current_thread)
10646 <dont_restore, restore, m_dont_restore>: Declare.
10647 * thread.c (thread_alive): Add assertion. Return bool.
10648 (switch_to_thread_if_alive): New.
10649 (prune_threads): Switch inferior/thread.
10650 (print_thread_info_1): Switch thread before calling target methods.
10651 (scoped_restore_current_thread::restore): New, factored out from
10652 ...
10653 (scoped_restore_current_thread::~scoped_restore_current_thread):
10654 ... this.
10655 (scoped_restore_current_thread::scoped_restore_current_thread):
10656 Add assertion.
10657 (thread_apply_all_command, thread_select): Use
10658 switch_to_thread_if_alive.
10659 * infrun.c (proceed, restart_threads, handle_signal_stop)
10660 (switch_back_to_stepped_thread): Switch current thread before
10661 calling target methods.
10662
db2d40f7
PA
106632020-01-10 Pedro Alves <palves@redhat.com>
10664
10665 * inferior.c (switch_to_inferior_no_thread): New function,
10666 factored out from ...
10667 (inferior_command): ... here.
10668 * inferior.h (switch_to_inferior_no_thread): Declare.
10669 * mi/mi-main.c (run_one_inferior): Use
10670 switch_to_inferior_no_thread.
10671
bd420a2d
PA
106722020-01-10 Pedro Alves <palves@redhat.com>
10673
10674 * infcmd.c (kill_command): Remove dead code.
10675
ddf5db90
PA
106762020-01-10 Pedro Alves <palves@redhat.com>
10677
10678 * remote.c (remote_target::mourn_inferior): No longer check
10679 whether the target is running.
10680
5018ce90
PA
106812020-01-10 Pedro Alves <palves@redhat.com>
10682
10683 * corelow.c (core_target::has_execution): Change parameter type to
10684 inferior pointer.
10685 * inferior.c (number_of_live_inferiors): Use
10686 inferior::has_execution instead of target_has_execution_1.
10687 * inferior.h (inferior::has_execution): New.
10688 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10689 inferior::has_execution instead of target_has_execution_1.
10690 * process-stratum-target.c
10691 (process_stratum_target::has_execution): Change parameter type to
10692 inferior pointer. Check the inferior's PID instead of
10693 inferior_ptid.
10694 * process-stratum-target.h
10695 (process_stratum_target::has_execution): Change parameter type to
10696 inferior pointer.
10697 * record-full.c (record_full_core_target::has_execution): Change
10698 parameter type to inferior pointer.
10699 * target.c (target_has_execution_1): Change parameter type to
10700 inferior pointer.
10701 (target_has_execution_current): Adjust.
10702 * target.h (target_ops::has_execution): Change parameter type to
10703 inferior pointer.
10704 (target_has_execution_1): Change parameter type to inferior
10705 pointer. Change return type to bool.
10706 * tracefile.h (tracefile_target::has_execution): Change parameter
10707 type to inferior pointer.
10708
74375d18
PA
107092020-01-10 Pedro Alves <palves@redhat.com>
10710
10711 * exceptions.c (print_flush): Remove current_top_target() check.
10712
acdf84a6
PA
107132020-01-10 Pedro Alves <palves@redhat.com>
10714
10715 * remote.c (show_remote_exec_file): Show the current inferior's
10716 exec-file instead of the command variable's value.
10717
ec506636
PA
107182020-01-10 Pedro Alves <palves@redhat.com>
10719
10720 * record-full.c (record_full_resume_ptid): New global.
10721 (record_full_target::resume): Set it.
10722 (record_full_wait_1): Use record_full_resume_ptid instead of
10723 inferior_ptid.
10724
873657b9
PA
107252020-01-10 Pedro Alves <palves@redhat.com>
10726
10727 * gdbthread.h (scoped_restore_current_thread)
10728 <dont_restore, restore, m_dont_restore>: Declare.
10729 * thread.c (thread_alive): Add assertion. Return bool.
10730 (switch_to_thread_if_alive): New.
10731 (prune_threads): Switch inferior/thread.
10732 (print_thread_info_1): Switch thread before calling target methods.
10733 (scoped_restore_current_thread::restore): New, factored out from
10734 ...
10735 (scoped_restore_current_thread::~scoped_restore_current_thread):
10736 ... this.
10737 (scoped_restore_current_thread::scoped_restore_current_thread):
10738 Add assertion.
10739 (thread_apply_all_command, thread_select): Use
10740 switch_to_thread_if_alive.
10741
7f0ae84c
GB
107422020-01-10 George Barrett <bob@bob131.so>
10743
10744 * stap-probe.c (stap_modify_semaphore): Don't check for null
10745 semaphores.
10746 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10747 for null semaphores.
10748
f5a7c406
AB
107492020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10750
10751 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10752 all source windows, and maintain horizontal scroll status while
10753 doing so.
10754
9ae6bf64
TT
107552020-01-09 Tom Tromey <tom@tromey.com>
10756
10757 PR tui/18932:
10758 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10759 update_source_window, not print_source_lines.
10760
b2efe70c
AB
107612020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10762
10763 * tui/tui.c (tui_enable): Register tui hooks after calling
10764 tui_display_main.
10765
5f23a082
CB
107662020-01-09 Christian Biesinger <cbiesinger@google.com>
10767
10768 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10769
3061113b
SM
107702020-01-08 Simon Marchi <simon.marchi@efficios.com>
10771
10772 * thread.c (print_thread_info_1): Fix indentation.
10773
57d75002
CB
107742020-01-09 Christian Biesinger <cbiesinger@google.com>
10775
10776 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10777 unique_xmalloc_ptr outside the if to always free the demangled name.
10778
6a053cb1
TT
107792020-01-08 Tom Tromey <tromey@adacore.com>
10780
10781 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10782 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10783 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10784 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10785 Remove.
10786 (section_offsets): New typedef.
10787 * symtab.c (fixup_section, get_msymbol_address): Update.
10788 * symmisc.c (dump_msymbols): Update.
10789 * symfile.h (relative_addr_info_to_section_offsets)
10790 (symfile_map_offsets_to_segments): Update.
10791 * symfile.c (build_section_addr_info_from_objfile)
10792 (init_objfile_sect_indices): Update.
10793 (struct place_section_arg): Change type of "offsets".
10794 (place_section): Update.
10795 (relative_addr_info_to_section_offsets): Change type of
10796 "section_offsets". Remove "num_sections" parameter.
10797 (default_symfile_offsets, syms_from_objfile_1)
10798 (set_objfile_default_section_offset): Update.
10799 (reread_symbols): No need to preserve section offsets by hand.
10800 (symfile_map_offsets_to_segments): Change type of "offsets".
10801 * stap-probe.c (relocate_address): Update.
10802 * stabsread.h (process_one_symbol): Update.
10803 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10804 (solib_target_relocate_section_addresses): Update.
10805 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10806 Update.
10807 * solib-frv.c (frv_relocate_main_executable): Update.
10808 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10809 * solib-aix.c (solib_aix_get_section_offsets): Change return
10810 type.
10811 (solib_aix_solib_create_inferior_hook): Update.
10812 * remote.c (remote_target::get_offsets): Update.
10813 * psymtab.c (find_pc_sect_psymtab): Update.
10814 * psympriv.h (struct partial_symbol) <address, text_low,
10815 text_high>: Update.
10816 * objfiles.h (obj_section_offset): Update.
10817 (struct objfile) <section_offsets>: Change type.
10818 <num_sections>: Remove.
10819 (objfile_relocate): Update.
10820 * objfiles.c (entry_point_address_query): Update
10821 (relocate_one_symbol): Change type of "section_offsets".
10822 (objfile_relocate1, objfile_relocate1): Change type of
10823 "new_offsets".
10824 (objfile_rebase1): Update.
10825 * mipsread.c (mipscoff_symfile_read): Update.
10826 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10827 parameter.
10828 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10829 (parse_external, psymtab_to_symtab_1): Update.
10830 * machoread.c (macho_symfile_offsets): Update.
10831 * ia64-tdep.c (ia64_find_unwind_table): Update.
10832 * hppa-tdep.c (read_unwind_info): Update.
10833 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10834 * dwarf2read.c (create_addrmap_from_index)
10835 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10836 (process_psymtab_comp_unit_reader, add_partial_symbol)
10837 (add_partial_subprogram, process_full_comp_unit)
10838 (read_file_scope, read_func_scope, read_lexical_block_scope)
10839 (read_call_site_scope, dwarf2_rnglists_process)
10840 (dwarf2_ranges_process, dwarf2_ranges_read)
10841 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10842 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10843 Update.
10844 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10845 Update.
10846 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10847 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10848 (process_one_symbol): Change type of "section_offsets".
10849 * ctfread.c (get_objfile_text_range): Update.
10850 * coffread.c (coff_symtab_read, enter_linenos)
10851 (process_coff_symbol): Update.
10852 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10853 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10854
456e800a
TT
108552020-01-08 Tom Tromey <tromey@adacore.com>
10856
10857 * dwarf2read.c (parse_macro_definition): Use std::string.
10858 (parse_macro_definition): Likewise.
10859
6dfa2fc2
TT
108602020-01-08 Tom Tromey <tromey@adacore.com>
10861
10862 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10863 (ATTR_ALLOC_CHUNK): Remove.
10864
421d1616
TT
108652020-01-08 Tom Tromey <tromey@adacore.com>
10866
10867 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10868
43816ebc
TT
108692020-01-08 Tom Tromey <tromey@adacore.com>
10870
10871 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10872 (dwarf2_compute_name, open_dwo_file): Likewise.
10873 (process_enumeration_scope): Use std::vector.
10874 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10875 (partial_die_info::fixup, dwarf2_start_subfile)
10876 (guess_full_die_structure_name, dwarf2_name): Likewise.
10877 (determine_prefix): Update.
10878 (guess_full_die_structure_name): Make return type const.
10879 (partial_die_full_name): Return unique_xmalloc_ptr.
10880 (DW_FIELD_ALLOC_CHUNK): Remove.
10881
4212d509
TT
108822020-01-07 Tom Tromey <tromey@adacore.com>
10883
10884 PR build/24937:
10885 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10886
06a6207a
JT
108872020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10888
10889 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10890
153d79c4
AB
108912020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10892
10893 * stack.c (print_frame_info): Move disassemble_next_line code
10894 inside source_print block.
10895
66182876
EZ
108962020-01-06 Eli Zaretskii <eliz@gnu.org>
10897
10898 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10899 gdb/signals.h, as we are now using native signal symbols.
10900
cbfa8581
SV
109012020-01-06 Shahab Vahedi <shahab@synopsys.com>
10902
10903 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10904 overflow by an early check of content vs threshold.
aac66a4c 10905 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10906 Likewise.
10907
3f602821
EZ
109082020-01-06 Eli Zaretskii <eliz@gnu.org>
10909
10910 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10911
a08c904d
JT
109122020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10913
10914 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10915 export table if no section contains it's RVA.
10916
89a65580
EZ
109172020-01-06 Eli Zaretskii <eliz@gnu.org>
10918
10919 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10920
8b7fcda2
HD
109212020-01-06 Hannes Domani <ssbssa@yahoo.de>
10922
10923 * source.c (print_source_lines_base): Set last_line_listed.
10924
a61b4f69
SV
109252020-01-06 Shahab Vahedi <shahab@synopsys.com>
10926
10927 * tui/tui-disasm.c: Remove trailing spaces.
10928
559e7e50
EZ
109292020-01-06 Eli Zaretskii <eliz@gnu.org>
10930 Pedro Alves <palves@redhat.com>
10931
10932 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10933 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10934 (windows_gdb_signal_to_target): New function, uses the above
10935 enumeration to convert GDB internal signal codes to equivalent
10936 Windows codes.
10937 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10938 * windows-nat.c: Include "gdb_wait.h".
10939 (get_windows_debug_event): Extract the fatal exception from the
10940 exit status and convert to the equivalent Posix signal number.
10941 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10942 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10943 * gdbsupport/gdb_wait.c: New file, implements
10944 windows_status_to_termsig.
10945 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10946 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10947
f2302a34
AB
109482020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10949
10950 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10951 show_layout.
10952
6a5206eb
LM
109532020-01-05 Luis Machado <luis.machado@linaro.org>
10954
10955 * aarch64-linux-nat.c
10956 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10957 and bfd_mach_aarch64.
10958
6ec1d75e
PW
109592020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10960
10961 * ui-file.c (stdio_file::can_emit_style_escape)
10962 (tee_file::can_emit_style_escape): Ensure style is used also on
10963 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10964 to gdb_stdout.
10965 * main.c (set_gdb_data_directory): Use file style to output the
10966 warning that the given pathname is not a directory.
10967 * top.c (show_history_filename, gdb_safe_append_history)
10968 (show_gdb_datadir): Use file style.
10969
44f81a76
HD
109702020-01-03 Hannes Domani <ssbssa@yahoo.de>
10971
10972 * solib-target.c (struct lm_info_target):
10973 Change offsets to be a unique_xmalloc_ptr.
10974 (solib_target_relocate_section_addresses): Update.
10975
25057eb0
HD
109762020-01-03 Hannes Domani <ssbssa@yahoo.de>
10977
10978 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10979
6e2118f5
BE
109802020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10981
10982 * MAINTAINERS (Write After Approval): Add myself.
10983
8133c7dc
LM
109842020-01-02 Luis Machado <luis.machado@linaro.org>
10985
10986 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10987 Cell BE architecture.
10988 * target.h (struct target_ops) <thread_architecture>: Likewise.
10989
48189bec
HD
109902020-01-01 Hannes Domani <ssbssa@yahoo.de>
10991
10992 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10993
ead1063b
HD
109942020-01-01 Hannes Domani <ssbssa@yahoo.de>
10995
10996 * MAINTAINERS (Write After Approval): Add myself.
10997
e5d78223
JB
109982020-01-01 Joel Brobecker <brobecker@adacore.com>
10999
11000 * gdbarch.sh: Update copyright year range of generated files.
11001
b811d2c2
JB
110022020-01-01 Joel Brobecker <brobecker@adacore.com>
11003
11004 Update copyright year range in all GDB files.
11005
5f4def5c
JB
110062020-01-01 Joel Brobecker <brobecker@adacore.com>
11007
11008 * copyright.py: Convert to Python 3.
11009
51fd4002
JB
110102020-01-01 Joel Brobecker <brobecker@adacore.com>
11011
11012 * copyright.py: Adapt after move of gnulib directory from gdb
11013 directory to toplevel directory.
11014
5fb651f2
JB
110152020-01-01 Joel Brobecker <brobecker@adacore.com>
11016
11017 * copyright.py (main): Exit if run from the wrong directory.
11018
5dd8bf88
JB
110192020-01-01 Joel Brobecker <brobecker@adacore.com>
11020
11021 * top.c (print_gdb_version): Change copyright year to 2020.
11022
9f71dacb 110232020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11024
9f71dacb 11025 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11026
9f71dacb 11027For older changes see ChangeLog-2019.
c906108c
SS
11028\f
11029Local Variables:
11030mode: change-log
11031left-margin: 8
11032fill-column: 74
11033version-control: never
57da7796 11034coding: utf-8
c906108c 11035End:
This page took 3.158369 seconds and 4 git commands to generate.