]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: add accessors to struct dynamic_prop
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8c2e4e06
SM
12020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4 const_val, set_const_val, baton, set_locexpr, set_loclist,
5 set_addr_offset, variant_parts, set_variant_parts,
6 original_type, set_original_type>: New methods.
7 <kind>: Rename to...
8 <m_kind>: ... this. Update all users to use the new methods
9 instead.
10 <data>: Rename to...
11 <m_data>: ... this. Update all users to use the new methods
12 instead.
13
7c6f2712
SM
142020-07-12 Simon Marchi <simon.marchi@efficios.com>
15
16 * gdbtypes.c (get_discrete_bounds): Return failure if
17 the range type's bounds are not both defined and constant
18 values.
19 (get_array_bounds): Update comment. Remove undefined bound check.
20
599088e3
SM
212020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
22
23 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
24 the type::bounds method directly.
25
c4dfcb36
SM
262020-07-12 Simon Marchi <simon.marchi@efficios.com>
27
28 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
29 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
30 are used to set the range type's bounds to use set_bounds.
31
0a278aa7
PW
322020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
33
34 * exec.c (_initialize_exec): Update exec-file-mismatch help.
35
cce20f10
PA
362020-07-10 Pedro Alves <pedro@palves.net>
37
38 * gdbthread.h (inferior_ref): Define.
39 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
40 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
41 * thread.c
42 (scoped_restore_current_thread::restore):
43 Adjust to gdb::ref_ptr.
44 (scoped_restore_current_thread::~scoped_restore_current_thread):
45 Remove manual decref handling.
46 (scoped_restore_current_thread::scoped_restore_current_thread):
47 Adjust to use
48 inferior_ref::new_reference/thread_info_ref::new_reference.
49 Incref the thread before calling get_frame_id instead of after.
50 Let TARGET_CLOSE_ERROR propagate.
51
6d7aa592
PA
522020-07-10 Pedro Alves <pedro@palves.net>
53
54 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
55 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
56 NOT_AVAILABLE_ERROR.
57 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
58 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
59
b3e3a4c1
SM
602020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
61 Pedro Alves <pedro@palves.net>
62
63 PR gdb/26199
64 * infrun.c (threads_are_resumed_pending_p): Delete.
65 (do_target_wait): Remove threads_are_executing and
66 threads_are_resumed_pending_p checks from the inferior_matches
67 lambda. Update comments.
68
d6cc5d98
PA
692020-07-10 Pedro Alves <pedro@palves.net>
70
71 PR gdb/26199
72 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
73 executing threads.
74
7d3badc6
PA
752020-07-10 Pedro Alves <pedro@palves.net>
76
77 PR gdb/26199
78 * infrun.c (handle_no_resumed): Handle multiple targets.
79
42bd97a6
PA
802020-07-10 Pedro Alves <pedro@palves.net>
81
82 PR gdb/26199
83 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
84 target_is_async_p.
85
43667cc6
PA
862020-07-10 Pedro Alves <pedro@palves.net>
87
88 PR gdb/26199
89 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
90 threads, not all threads.
91
96118d11
PA
922020-07-10 Pedro Alves <pedro@palves.net>
93
94 PR gdb/26199
95 * remote.c (remote_target::open_1): Pass remote target pointer as
96 data to create_async_event_handler.
97 (remote_async_inferior_event_handler): Mark async event handler
98 before returning if the remote target still has either pending
99 events or unacknowledged notifications.
100
54904d81
JB
1012020-07-10 John Baldwin <jhb@FreeBSD.org>
102
103 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
104 declaration.
105 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
106 function.
107
f37e5866
JB
1082020-07-09 John Baldwin <jhb@FreeBSD.org>
109
110 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
111 inferior_ptid.
112
fc238d4a
JB
1132020-07-09 John Baldwin <jhb@FreeBSD.org>
114
115 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
116 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
117 AT_FREEBSD_PS_STRINGS.
118
6e2469ff
HD
1192020-07-08 Hannes Domani <ssbssa@yahoo.de>
120
121 * auto-load.c (auto_load_objfile_script_1): Convert drive part
122 of debugfile path on Windows.
123
d1076c41
JB
1242020-07-08 John Baldwin <jhb@FreeBSD.org>
125
126 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
127 argument to 'data'.
128
15f3b077
TT
1292020-07-08 Tom Tromey <tromey@adacore.com>
130
131 * ada-lang.c (ada_exception_message_1): Use read_memory.
132
9fc501fd
AB
1332020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
134
135 PR python/22748
136 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
137 special handling for inline frames.
138 * findvar.c (value_of_register_lazy): Skip inline frames when
139 creating lazy register values.
140 * frame.c (frame_id_computed_p): Delete definition.
141 * frame.h (frame_id_computed_p): Delete declaration.
142
64cb3757
AB
1432020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
144
145 * NEWS: Mention additions to Python API.
146 * python/py-arch.c (archpy_register_groups): New function.
147 (arch_object_methods): Add 'register_groups' method.
148 * python/py-registers.c (reggroup_iterator_object): New struct.
149 (reggroup_object): New struct.
150 (gdbpy_new_reggroup): New function.
151 (gdbpy_reggroup_to_string): New function.
152 (gdbpy_reggroup_name): New function.
153 (gdbpy_reggroup_iter): New function.
154 (gdbpy_reggroup_iter_next): New function.
155 (gdbpy_new_reggroup_iterator): New function
156 (gdbpy_initialize_registers): Register new types.
157 (reggroup_iterator_object_type): Define new Python type.
158 (gdbpy_reggroup_getset): New static global.
159 (reggroup_object_type): Define new Python type.
160 * python/python-internal.h
161
0f767f94
AB
1622020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
163
164 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
165 * python/py-arch.c (archpy_registers): New function.
166 (arch_object_methods): Add 'registers' method.
167 * python/py-registers.c: New file.
168 * python/python-internal.h
169 (gdbpy_new_register_descriptor_iterator): Declare.
170 (gdbpy_initialize_registers): Declare.
171 * python/python.c (do_start_initialization): Call
172 gdbpy_initialize_registers.
173 * NEWS: Mention additions to the Python API.
174
87dbc774
AB
1752020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
176
177 * NEWS: Mention new Python API method.
178 * python/py-unwind.c (pending_framepy_architecture): New function.
179 (pending_frame_object_methods): Add architecture method.
180
3bc98c0c
AB
1812020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
182
183 * gdbarch.c: Regenerate.
184 * gdbarch.h: Regenerate.
185 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
186 (gdbarch_data): Use internal_error for the case where
187 deprecated_set_gdbarch_data was originally needed.
188 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
189 and use passed in obstack.
190 (libunwind_frame_set_descr): Should no longer get back NULL from
191 gdbarch_data.
192 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
193 type.
194 * user-regs.c (user_regs_init): Update parameters, and use passed
195 in obstack.
196 (user_reg_add): Should no longer get back NULL from gdbarch_data.
197 (_initialize_user_regs): Register as a pre-init gdbarch data type.
198
d8cc8af6
TV
1992020-07-06 Tom de Vries <tdevries@suse.de>
200
201 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
202 End-Of-Sequence in lte_is_less_than.
203 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
204 "gdb: Don't reorder line table entries too much when sorting".
205
947f7597
TV
2062020-07-06 Tom de Vries <tdevries@suse.de>
207
208 PR tui/26205
209 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
210
1e7c1b22
TV
2112020-07-05 Tom de Vries <tdevries@suse.de>
212
213 PR build/26187
214 * inferior.h (struct infcall_suspend_state_deleter): If available, use
215 std::uncaught_exceptions instead of deprecated
216 std::uncaught_exception.
217
a36158ec
SM
2182020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
219
220 * macroexp.h (macro_stringify): Return
221 gdb::unique_xmalloc_ptr<char>.
222 * macroexp.c (macro_stringify): Likewise.
223 * macrotab.c (fixup_definition): Update.
224
14d960c8
SM
2252020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
226
227 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
228 (lex_one_token): Update.
229 * macroexp.c (struct macro_buffer) <release>: Return
230 gdb::unique_xmalloc_ptr<char>.
231 (macro_stringify): Update.
232 (macro_expand): Update.
233 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
234 * macroexp.h (macro_expand_next): Likewise.
235
211d5b1c
SM
2362020-07-02 Simon Marchi <simon.marchi@efficios.com>
237
238 * macroexp.h (macro_lookup_ftype): Remove.
239 (macro_expand, macro_expand_once, macro_expand_next): Remove
240 lookup function parameters, add scope parameter.
241 * macroexp.c (scan, substitute_args, expand, maybe_expand,
242 macro_expand, macro_expand_once, macro_expand_next): Likewise.
243 * macroscope.h (standard_macro_lookup): Change parameter type
244 to macro_scope.
245 * macroscope.c (standard_macro_lookup): Likewise.
246 * c-exp.y (lex_one_token): Update.
247 * macrocmd.c (macro_expand_command): Likewise.
248 (macro_expand_once_command): Likewise.
249
b1a35af2
SM
2502020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
251
252 * inf-loop.c (inferior_event_handler): Remove client_data param.
253 * inf-loop.h (inferior_event_handler): Likewise.
254 * infcmd.c (step_1): Adjust.
255 * infrun.c (proceed): Adjust.
256 (fetch_inferior_event): Remove client_data param.
257 (infrun_async_inferior_event_handler): Adjust.
258 * infrun.h (fetch_inferior_event): Remove `void *` param.
259 * linux-nat.c (handle_target_event): Adjust.
260 * record-btrace.c (record_btrace_handle_async_inferior_event):
261 Adjust.
262 * record-full.c (record_full_async_inferior_event_handler):
263 Adjust.
264 * remote.c (remote_async_inferior_event_handler): Adjust.
265
1cdf9e33
TT
2662020-07-01 Tom Tromey <tom@tromey.com>
267
268 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
269 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
270
32c1e210
TT
2712020-07-01 Tom Tromey <tom@tromey.com>
272
273 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
274 tui_gen_win_info.
275 (tui_win_info::make_window): Merge with
276 tui_gen_win_info::make_window.
277 (tui_win_info::make_visible): Move from tui_gen_win_info.
278 * tui/tui-win.c (tui_win_info::max_width): Move from
279 tui_gen_win_info.
280 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
281 type.
282 <window_factory>: Likewise.
283 * tui/tui-layout.c (tui_win_info::resize): Move from
284 tui_gen_win_info.
285 (make_standard_window): Change return type.
286 (get_locator_window, tui_get_window_by_name): Likewise.
287 (tui_layout_window::apply): Remove a cast.
288 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
289 (struct tui_win_info): Merge with tui_gen_win_info.
290 (struct tui_gen_win_info): Remove.
291
a30cb6da
TT
2922020-07-01 Tom Tromey <tom@tromey.com>
293
294 * tui/tui-stack.h (struct tui_locator_window): Derive from
295 tui_win_info.
296 <do_scroll_horizontal, do_scroll_vertical>: New methods.
297 <can_box>: New method.
298
1eb2161f
TT
2992020-07-01 Tom Tromey <tom@tromey.com>
300
301 * tui/tui-stack.h (struct tui_locator_window): Remove body.
302
7134f2eb
TT
3032020-07-01 Tom Tromey <tom@tromey.com>
304
305 * tui/tui-regs.c (tui_data_window::display_registers_from)
306 (tui_data_window::display_registers_from)
307 (tui_data_window::first_data_item_displayed)
308 (tui_data_window::delete_data_content_windows): Update.
309 (tui_data_window::refresh_window, tui_data_window::no_refresh):
310 Remove.
311 (tui_data_window::check_register_values): Update.
312 (tui_data_item_window::rerender): Add parameters. Update.
313 (tui_data_item_window::refresh_window): Remove.
314 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
315 virtual.
316 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
317 tui_gen_win_info.
318 <refresh_window, max_height, min_height>: Remove.
319 <rerender>: Add parameters.
320 <x, y, visible>: New members.
321 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
322 <m_item_width>: New member.
323
22b7b041
TT
3242020-07-01 Tom Tromey <tom@tromey.com>
325
326 * tui/tui-regs.c (tui_data_window::show_register_group)
327 (tui_data_window::check_register_values): Update.
328 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
329 from item_no.
330
c9753adb
TT
3312020-07-01 Tom Tromey <tom@tromey.com>
332
333 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
334 useless "if".
335
9ab26b4a
TT
3362020-07-01 Tom Tromey <tom@tromey.com>
337
338 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
339 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
340
e555083f
TT
3412020-07-01 Tom Tromey <tom@tromey.com>
342
343 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
344 * tui/tui-winsource.h (enum tui_line_or_address_kind)
345 (struct tui_line_or_address): Move from tui-data.h.
346 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
347 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
348 (tui_cmd_window, tui_source_window_base, tui_source_window)
349 (tui_disasm_window): Don't declare.
350 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
351 to tui-winsource.h.
352 (SINGLE_KEY): Move to tui-stack.c.
353
7a02bab7
TT
3542020-07-01 Tom Tromey <tom@tromey.com>
355
356 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
357 std::string.
358 * tui/tui-regs.c (class tab_expansion_file): New.
359 (tab_expansion_file::write): New method.
360 (tui_register_format): Change return type. Use
361 tab_expansion_file.
362 (tui_get_register, tui_data_window::display_registers_from)
363 (tui_data_item_window::rerender): Update.
364 * tui/tui-io.h (tui_expand_tabs): Don't declare.
365 * tui/tui-io.c (tui_expand_tabs): Remove.
366
ea68593b
TT
3672020-07-01 Tom Tromey <tom@tromey.com>
368
369 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
370
a8caed5d
FS
3712020-07-01 Fangrui Song <maskray@google.com>
372
373 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
374
9cdf9820
AKS
3752020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
376
377 * dwarf2/read.c (set_die_type): Removed conditions to restrict
378 forms for DW_AT_associated and DW_AT_allocated attributes,
379 which is already checked in function attr_to_dynamic_prop.
380
a1520ad8
TT
3812020-06-30 Tom Tromey <tromey@adacore.com>
382
383 * dwarf2/read.c (quirk_rust_enum): Correctly call
384 alloc_rust_variant for default-less enum.
385
5ac58899
TT
3862020-06-30 Tom Tromey <tromey@adacore.com>
387
388 PR build/26183:
389 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
390 gdb::to_string.
391
19b187a9
SM
3922020-06-29 Simon Marchi <simon.marchi@efficios.com>
393
394 * gdbarch.sh (displaced_step_copy_insn): Update doc.
395 * gdbarch.h: Re-generate.
396
cd4c4c07
TT
3972020-06-28 Tom Tromey <tom@tromey.com>
398
399 * command.h (cmd_types): Remove.
400 (cmd_type): Don't declare.
401 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
402 typedef.
403 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
404 * cli/cli-decode.c (cmd_type): Remove.
405
05779d57
PA
4062020-06-27 Pedro Alves <palves@redhat.com>
407
408 * fork-child.c (prefork_hook): Adjust.
409 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
410 Delete.
411 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
412 * inferior.c (inferior::set_tty, inferior::tty): New methods.
413 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
414 Remove declarations.
415 (struct inferior) <set_tty, tty>: New methods.
416 (struct inferior) <terminal>: Rename to ...
417 (struct inferior) <m_terminal>: ... this and make private.
418 * main.c (captured_main_1): Adjust.
419 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
420 (mi_cmd_inferior_tty_show): Adjust.
421 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
422 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
423
1776e3e5
NA
4242020-06-26 Nick Alcock <nick.alcock@oracle.com>
425
426 * configure.ac: Add --enable-libctf: handle --disable-static
427 properly.
428 * acinclude.m4: sinclude ../config/enable.m4.
429 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
430 (LIBCTF): Substitute in.
431 (CTF_DEPS): New, likewise.
432 (CLIBS): libctf needs symbols from libbfd: move earlier.
433 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
434 flags.
435 * ctfread.c: Surround in ENABLE_LIBCTF.
436 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
437 * configure: Regenerate.
438 * config.in: Likewise.
439
58373b80
SM
4402020-06-25 Simon Marchi <simon.marchi@efficios.com>
441
442 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
443
277474ee
SM
4442020-06-25 Simon Marchi <simon.marchi@efficios.com>
445
446 * inferior.h (struct inferior) <terminal>: Change type to
447 gdb::unique_xmalloc_ptr<char>.
448 * inferior.c (inferior::~inferior): Don't free inf->terminal.
449 * infcmd.c (set_inferior_io_terminal): Don't free terminal
450 field, adjust to unique pointer.
451 (get_inferior_io_terminal): Adjust to unique pointer.
452
6d74da72
AB
4532020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
454
455 * riscv-tdep.c (riscv_print_registers_info): Loop over all
456 registers, not just the known core set of registers.
457
2e52d038
AB
4582020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
459
460 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
461 fflags, frm, and fcsr registers.
462 (riscv_register_reggroup_p): Remove unknown CSRs from save and
463 restore groups.
464 (riscv_tdesc_unknown_reg): New function.
465 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
466 tdesc_use_registers.
467 * riscv-tdep.h (struct gdbarch_tdep): Add
468 unknown_csrs_first_regnum, unknown_csrs_count,
469 duplicate_fflags_regnum, duplicate_frm_regnum, and
470 duplicate_fcsr_regnum fields.
471
be64fd07
AB
4722020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
473
474 * target-descriptions.c (tdesc_use_registers): Add new parameter a
475 callback, use the callback (when not null) to help number unknown
476 registers.
477 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
478 (tdesc_use_registers): Add extra parameter to declaration.
479
3b9fce96
AB
4802020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
481
482 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
483 in the file.
484 (class riscv_pending_register_alias): Likewise.
485 (riscv_register_feature::register_info): Change 'required_p' field
486 to 'required', and change its type. Add 'check' member function.
487 (riscv_register_feature::register_info::check): Define new member
488 function.
489 (riscv_xreg_feature): Change initialisation of 'required' field.
490 (riscv_freg_feature): Likewise.
491 (riscv_virtual_feature): Likewise.
492 (riscv_csr_feature): Likewise.
493 (riscv_check_tdesc_feature): Take extra parameter, the csr
494 tdesc_feature, rewrite the function to use the new
495 riscv_register_feature::register_info::check function.
496 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
497
865bad26
AB
4982020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
499
500 * features/Makefile: Remove all references to the deleted files
501 below.
502 * features/riscv/32bit-csr.c: Deleted.
503 * features/riscv/32bit-csr.xml: Deleted.
504 * features/riscv/64bit-csr.c: Deleted.
505 * features/riscv/64bit-csr.xml: Deleted.
506 * features/riscv/rebuild-csr-xml.sh: Deleted.
507
ed69cbc8
AB
5082020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
509
510 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
511 whitespace error for declaration of names member variable.
512 (struct riscv_register_feature): Add new prefer_first_name member
513 variable, and fix whitespace error in declaration of registers.
514 (riscv_xreg_feature): Initialize prefer_first_name field.
515 (riscv_freg_feature): Likewise.
516 (riscv_virtual_feature): Likewise.
517 (riscv_csr_feature): Likewise.
518 (riscv_register_name): Expand on comments. Remove register name
519 modifications for CSR and virtual registers.
520
4445e8f5
AB
5212020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
522
523 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
524 errors.
525
767a879e
AB
5262020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
527
528 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
529 riscv-opc.h.
530 (class riscv_pending_register_alias): New class.
531 (riscv_check_tdesc_feature): Take vector of pending aliases and
532 populate it as appropriate.
533 (riscv_setup_register_aliases): Delete.
534 (riscv_gdbarch_init): Create vector of pending aliases and pass it
535 to riscv_check_tdesc_feature in all cases. Use the vector to
536 create the register aliases.
537
bb6e55f3
RO
5382020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
539
540 * sol2-tdep.c (sol2_static_transform_name): Remove.
541 (sol2_init_abi): Don't register it.
542 * gdbarch.sh (static_transform_name): Remove.
543 * gdbarch.c, gdbarch.h: Regenerate.
544
545 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
546 gdbarch_static_transform_name.
547 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
548 * stabsread.c (define_symbol) <'X'>: Remove.
549 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
550 handling.
551 <'V'>: Likewise.
552 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
553 <'S'>: Remove call to gdbarch_static_transform_name.
554
c6d36836
RO
5552020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
556
557 * procfs.c (procfs_pre_trace): New function.
558 (procfs_target::create_inferior): Pass it to fork_inferior.
559
a7e6196b
RO
5602020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
561
562 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
563 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
564 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
565 sol2-tdep.o, sparc-sol2-tdep.o.
566 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
567 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
568 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
569 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
570
d412e696
RO
5712020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
572
573 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
574 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
575 Call sol2_init_abi.
576 Remove calls to set_gdbarch_skip_solib_resolver,
577 set_gdbarch_core_pid_to_str.
578 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
579 (i386_sol2_static_transform_name): Remove.
580 (i386_sol2_init_abi): Call sol2_init_abi.
581 Remove calls to set_gdbarch_sofun_address_maybe_missing,
582 set_gdbarch_static_transform_name,
583 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
584 Use sol2_sigtramp_p.
585 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
586 (sol2_sigtramp_p): New function.
587 (sol2_static_transform_name): New function.
588 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
589 (sol2_init_abi): New function.
590 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
591 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
592 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
593 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
594 (sparc_sol2_static_transform_name): Remove.
595 (sparc32_sol2_init_abi): Call sol2_init_abi.
596 Remove calls to set_gdbarch_sofun_address_maybe_missing,
597 set_gdbarch_static_transform_name,
598 set_gdbarch_skip_solib_resolver,
599 set_gdbarch_core_pid_to_str.
600 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
601 (sparc_sol2_static_transform_name): Remove
602 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
603 call sol2_sigtramp_p.
604 (sparc64_sol2_init_abi): Call sol2_init_abi.
605 Remove calls to set_gdbarch_sofun_address_maybe_missing,
606 set_gdbarch_static_transform_name,
607 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
608
a8654e7d
PW
6092020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
610
611 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
612 * exec.c (validate_exec_file): If from_tty, set both
613 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
614 * symfile.c (symbol_file_add_with_addrs): if always_confirm
615 and from_tty, unconditionally ask a confirmation.
616
caa7fd04
AB
6172020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
618
619 * target-descriptions.c (tdesc_architecture_name): Protect against
620 NULL pointer dereference.
621 (maint_print_xml_tdesc_cmd): New function.
622 (_initialize_target_descriptions): Register new 'maint print
623 xml-tdesc' command and give it the filename completer.
624 * NEWS: Mention new 'maint print xml-tdesc' command.
625
fbf42f4e
AB
6262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
627
628 * target-descriptions.c (class tdesc_compatible_info): New class.
629 (struct target_desc): Change type of compatible vector.
630 (tdesc_compatible_p): Update for change in type of
631 target_desc::compatible.
632 (tdesc_compatible_info_list): New function.
633 (tdesc_compatible_info_arch_name): New function.
634 (tdesc_add_compatible): Update for change in type of
635 target_desc::compatible.
636 (print_c_tdesc::visit_pre): Likewise.
637
20821f4e
AB
6382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
639
640 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
641 whitespace to underscore.
642 (maint_print_c_tdesc_cmd): Use fake filename for target
643 descriptions that came from the target.
644 (_initialize_target_descriptions): Add filename command completion
645 for 'maint print c-tdesc'.
646
1fb5ee62
SM
6472020-06-23 Simon Marchi <simon.marchi@efficios.com>
648
649 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
650 lines.
651
fc3ecb3e
SM
6522020-06-23 Simon Marchi <simon.marchi@efficios.com>
653
654 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
655 lines.
656 (dwarf2_find_location_expression): Likewise.
657 (call_site_parameter_matches): Likewise.
658 (dwarf2_compile_expr_to_ax): Likewise.
659 (disassemble_dwarf_expression): Likewise.
660 (loclist_describe_location): Likewise.
661
236ef034
PA
6622020-06-23 Pedro Alves <palves@redhat.com>
663
664 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
665 progspace-and-thread.h. Include scoped-mock-context.h instead.
666 (register_to_value_test): Use scoped_mock_context.
667 * regcache.c: Include "scoped-mock-context.h".
668 (cooked_read_test): Don't error out if a target is already pushed.
669 Use scoped_mock_context. Adjust.
670 * scoped-mock-context.h: New file.
671
39e7ecca
AB
6722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
673
674 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
675 initializer.
676 (ada_language::is_string_type_p): New member function.
677 * c-lang.c (c_language_data): Delete la_is_string_type_p
678 initializer.
679 (cplus_language_data): Likewise.
680 (asm_language_data): Likewise.
681 (minimal_language_data): Likewise.
682 * d-lang.c (d_language_data): Likewise.
683 * f-lang.c (f_is_string_type_p): Delete function, implementation
684 moved to f_language::is_string_type_p.
685 (f_language_data): Delete la_is_string_type_p initializer.
686 (f_language::is_string_type_p): New member function,
687 implementation from f_is_string_type_p.
688 * go-lang.c (go_is_string_type_p): Delete function, implementation
689 moved to go_language::is_string_type_p.
690 (go_language_data): Delete la_is_string_type_p initializer.
691 (go_language::is_string_type_p): New member function,
692 implementation from go_is_string_type_p.
693 * language.c (language_defn::is_string_type_p): Define new member
694 function.
695 (default_is_string_type_p): Make static, add comment copied from
696 header file.
697 (unknown_language_data): Delete la_is_string_type_p initializer.
698 (unknown_language::is_string_type_p): New member function.
699 (auto_language_data): Delete la_is_string_type_p initializer.
700 (auto_language::is_string_type_p): New member function.
701 * language.h (language_data): Delete la_is_string_type_p field.
702 (language_defn::is_string_type_p): Declare new function.
703 (default_is_string_type_p): Delete desclaration, move comment to
704 definition.
705 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
706 moved to m2_language::is_string_type_p.
707 (m2_language_data): Delete la_is_string_type_p initializer.
708 (m2_language::is_string_type_p): New member function,
709 implementation from m2_is_string_type_p.
710 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
711 initializer.
712 * opencl-lang.c (opencl_language_data): Likewise.
713 * p-lang.c (pascal_is_string_type_p): Delete function,
714 implementation moved to pascal_language::is_string_type_p.
715 (pascal_language_data): Delete la_is_string_type_p initializer.
716 (pascal_language::is_string_type_p): New member function,
717 implementation from pascal_is_string_type_p.
718 * rust-lang.c (rust_is_string_type_p): Delete function,
719 implementation moved to rust_language::is_string_type_p.
720 (rust_language_data): Delete la_is_string_type_p initializer.
721 (rust_language::is_string_type_p): New member function,
722 implementation from rust_is_string_type_p.
723 * valprint.c (val_print_scalar_or_string_type_p): Update call to
724 is_string_type_p.
725
4ffc13fb
AB
7262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
727
728 * ada-lang.c (ada_language_data): Delete la_print_typedef
729 initializer.
730 (ada_language::print_typedef): New member function.
731 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
732 (cplus_language_data): Likewise.
733 (asm_language_data): Likewise.
734 (minimal_language_data): Likewise.
735 * d-lang.c (d_language_data): Likewise.
736 * f-lang.c (f_language_data): Likewise.
737 (f_language::print_typedef): New member function.
738 * go-lang.c (go_language_data): Delete la_print_typedef
739 initializer.
740 * language.c (language_defn::print_typedef): Define member
741 function.
742 (unknown_language_data): Delete la_print_typedef initializer.
743 (unknown_language::print_typedef): New member function.
744 (auto_language_data): Delete la_print_typedef initializer.
745 (auto_language::print_typedef): New member function.
746 * language.h (language_data): Delete la_print_typedef field.
747 (language_defn::print_typedef): Declare new member function.
748 (LA_PRINT_TYPEDEF): Update call to print_typedef.
749 (default_print_typedef): Delete declaration.
750 * m2-lang.c (m2_language_data): Delete la_print_typedef
751 initializer.
752 (m2_language::print_typedef): New member function.
753 * objc-lang.c (objc_language_data): Delete la_print_typedef
754 initializer.
755 * opencl-lang.c (opencl_language_data): Likewise.
756 * p-lang.c (pascal_language_data): Likewise.
757 (pascal_language::print_typedef): New member function.
758 * rust-lang.c (rust_print_typedef): Delete function,
759 implementation moved to rust_language::print_typedef.
760 (rust_language): Delete la_print_typedef initializer.
761 (rust_language::print_typedef): New member function,
762 implementation from rust_print_typedef.
763 * typeprint.c (default_print_typedef): Delete.
764
d711ee67
AB
7652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
766
767 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
768 (ada_language::printstr): New member function.
769 * c-lang.c (c_language_data): Delete la_printstr initializer.
770 (cplus_language_data): Likewise.
771 (asm_language_data): Likewise.
772 (minimal_language_data): Likewise.
773 * d-lang.c (d_language_data): Likewise.
774 * f-lang.c (f_printstr): Rename to f_language::printstr.
775 (f_language_data): Delete la_printstr initializer.
776 (f_language::printstr): New member function, implementation from
777 f_printstr.
778 * go-lang.c (go_language_data): Delete la_printstr initializer.
779 * language.c (language_defn::printstr): Define new member
780 function.
781 (unk_lang_printstr): Delete.
782 (unknown_language_data): Delete la_printstr initializer.
783 (unknown_language::printstr): New member function.
784 (auto_language_data): Delete la_printstr initializer.
785 (auto_language::printstr): New member function.
786 * language.h (language_data): Delete la_printstr field.
787 (language_defn::printstr): Declare new member function.
788 (LA_PRINT_STRING): Update call to printstr.
789 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
790 (m2_language_data): Delete la_printstr initializer.
791 (m2_language::printstr): New member function, implementation from
792 m2_printstr.
793 * objc-lang.c (objc_language_data): Delete la_printstr
794 initializer.
795 * opencl-lang.c (opencl_language_data): Likewise.
796 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
797 (pascal_language_data): Delete la_printstr initializer.
798 (pascal_language::printstr): New member function, implementation
799 from pascal_printstr.
800 * p-lang.h (pascal_printstr): Delete declaration.
801 * rust-lang.c (rust_printstr): Update header comment.
802 (rust_language_data): Delete la_printstr initializer.
803 (rust_language::printstr): New member function.
804
52b50f2c
AB
8052020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
806
807 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
808 (ada_language::printchar): New member function.
809 * c-lang.c (c_language_data): Delete la_printchar initializer.
810 (cplus_language_data): Likewise.
811 (asm_language_data): Likewise.
812 (minimal_language_data): Likewise.
813 * d-lang.c (d_language_data): Likewise.
814 * f-lang.c (f_printchar): Rename to f_language::printchar.
815 (f_language_data): Delete la_printchar initializer.
816 (f_language::printchar): New member function, implementation from
817 f_printchar.
818 * go-lang.c (go_language_data): Delete la_printchar initializer.
819 * language.c (unk_lang_printchar): Delete.
820 (language_defn::printchar): Define new member function.
821 (unknown_language_data): Delete la_printchar initializer.
822 (unknown_language::printchar): New member function.
823 (auto_language_data): Delete la_printchar initializer.
824 (auto_language::printchar): New member function.
825 * language.h (language_data): Delete la_printchar field.
826 (language_defn::printchar): Declare new member function.
827 (LA_PRINT_CHAR): Update call to printchar.
828 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
829 (m2_language::printchar): New member function.
830 * objc-lang.c (objc_language_data): Delete la_printchar
831 initializer.
832 * opencl-lang.c (opencl_language_data): Likewise.
833 * p-lang.c (pascal_language_data): Delete la_printchar
834 initializer.
835 (pascal_language::printchar): New member function.
836 * rust-lang.c (rust_printchar): Rename to
837 rust_language::printchar.
838 (rust_language_data): Delete la_printchar initializer.
839 (rust_language::printchar): New member function, implementation
840 from rust_printchar.
841
ec8cec5b
AB
8422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
843
844 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
845 (ada_language_data): Delete la_emitchar initializer.
846 (ada_language::emitchar): New member function, implementation from
847 emit_char.
848 * c-lang.c (c_language_data): Delete la_emitchar initializer.
849 (cplus_language_data): Likewise.
850 (asm_language_data): Likewise.
851 (minimal_language_data): Likewise.
852 * d-lang.c (d_language_data): Likewise.
853 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
854 (f_language_data): Delete la_emitchar initializer.
855 (f_language::emitchar): New member function, implementation from
856 f_emit_char.
857 * go-lang.c (go_language_data): Delete la_emitchar initializer.
858 * language.c (unk_lang_emit_char): Delete.
859 (language_defn::emitchar): New member function definition.
860 (unknown_language_data): Delete la_emitchar initializer.
861 (unknown_language::emitchar): New member function.
862 (auto_language_data): Delete la_emitchar initializer.
863 (auto_language::emitchar): New member function.
864 * language.h (language_data): Delete la_emitchar field.
865 (language_defn::emitchar): New member field declaration.
866 (LA_EMIT_CHAR): Update call to emitchar.
867 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
868 (m2_language_data): Delete la_emitchar initializer.
869 (m2_language::emitchar): New member function, implementation from
870 m2_emit_char.
871 * objc-lang.c (objc_language_data): Delete la_emitchar
872 initializer.
873 * opencl-lang.c (opencl_language_data): Likewise.
874 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
875 (pascal_language_data): Delete la_emitchar initializer.
876 (pascal_language::emitchar): New member function, implementation
877 from pascal_emit_char.
878 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
879 (rust_language_data): Delete la_emitchar initializer.
880 (rust_language::emitchar): New member function, implementation
881 from rust_emitchar.
882
1bf9c363
AB
8832020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
884
885 * ada-lang.c (resolve): Rename to ada_language::post_parser.
886 (ada_language_data): Delete la_post_parser initializer.
887 (ada_language::post_parser): New member function.
888 * c-lang.c (c_language_data): Delete la_post_parser initializer.
889 (cplus_language_data): Likewise.
890 (asm_language_data): Likewise.
891 (minimal_language_data): Likewise.
892 * d-lang.c (d_language_data): Likewise.
893 * f-lang.c (f_language_data): Likewise.
894 * go-lang.c (go_language_data): Likewise.
895 * language.c (unknown_language_data): Likewise.
896 (auto_language_data): Likewise.
897 * language.h (language_data): Delete la_post_parser field.
898 (language_defn::post_parser): New member function.
899 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
900 * objc-lang.c (objc_language_data): Likewise.
901 * opencl-lang.c (opencl_language_data): Likewise.
902 * p-lang.c (pascal_language_data): Likewise.
903 * parse.c (parse_exp_in_context): Update call to post_parser.
904 (null_post_parser): Delete definition.
905 * parser-defs.h (null_post_parser): Delete declaration.
906 * rust-lang.c (rust_language_data): Delete la_post_parser
907 initializer.
908
87afa652
AB
9092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
910
911 * ada-lang.c (parse): Rename to ada_language::parser.
912 (ada_language_data): Delete la_parser initializer.
913 (ada_language::parser): New member function, implementation from
914 parse.
915 * c-lang.c (c_language_data): Delete la_parser initializer.
916 (cplus_language_data): Likewise.
917 (asm_language_data): Likewise.
918 (minimal_language_data): Likewise.
919 * d-lang.c (d_language_data): Likewise.
920 (d_language::parser): New member function.
921 * f-lang.c (f_language_data): Delete la_parser initializer.
922 (f_language::parser): New member function.
923 * go-lang.c (go_language_data): Delete la_parser initializer.
924 (go_language::parser): New member function.
925 * language.c (unk_lang_parser): Delete.
926 (language_defn::parser): Define new member function.
927 (unknown_language_data): Delete la_parser initializer.
928 (unknown_language::parser): New member function.
929 (auto_language_data): Delete la_parser initializer.
930 (auto_language::parser): New member function.
931 * language.h (language_data): Delete la_parser field.
932 (language_defn::parser): Declare new member function.
933 * m2-lang.c (m2_language_data): Delete la_parser initializer.
934 (m2_language::parser): New member function.
935 * objc-lang.c (objc_language_data): Delete la_parser initializer.
936 * opencl-lang.c (opencl_language_data): Likewise.
937 * p-lang.c (pascal_language_data): Likewise.
938 (pascal_language::parser): New member function.
939 * parse.c (parse_exp_in_context): Update call to parser.
940 * rust-lang.c (rust_language_data): Delete la_parser initializer.
941 (rust_language::parser): New member function.
942
37825800
AB
9432020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
944
945 * top.c (print_gdb_configuration): Print --with-python-libdir
946 configuration value.
947
5b860c93
PW
9482020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
949
950 * NEWS: Mention change to the alias command.
951
cf00cd6f
PW
9522020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
953
954 * cli/cli-cmds.c (lookup_cmd_for_default_args)
955 (alias_command_completer)
956 (make_alias_options_def_group): New functions.
957 (alias_opts, alias_option_defs): New struct and array.
958 (alias_usage_error): Update usage.
959 (alias_command): Handles optional DEFAULT-ARGS... arguments.
960 Use option framework.
961 (_initialize_cli_cmds): Update alias command help.
962 Update aliases command help.
963 (show_user):
964 Add NULL for new default_args lookup_cmd argument.
965 (valid_command_p): Rename to validate_aliased_command.
966 Add NULL for new default_args lookup_cmd argument. Verify that the
967 aliased_command has no default args.
968 * cli/cli-decode.c (help_cmd): Show aliases definitions.
969 (lookup_cmd_1, lookup_cmd): New argument default_args.
970 (add_alias_cmd):
971 Add NULL for new default_args lookup_cmd argument.
972 (print_help_for_command): Show default args under the layout
973 alias some_alias = some_aliased_cmd some_alias_default_arg.
974 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
975 xfree default_args in destructor.
976 * cli/cli-script.c (process_next_line, do_define_command):
977 Add NULL for new default_args lookup_cmd argument.
978 * command.h: Declare new default_args argument in lookup_cmd
979 and lookup_cmd_1.
980 * completer.c (complete_line_internal_1):
981 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
982 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
983 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
984 Likewise.
985 * infcmd.c (_initialize_infcmd): Likewise.
986 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
987 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
988 * python/py-param.c (add_setshow_generic): Likewise.
989 * remote.c (_initialize_remote): Likewise.
990 * top.c (execute_command): Prepend default_args if command has some.
991 (set_verbose):
992 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
993 * tracepoint.c (validate_actionline, encode_actions_1):
994 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
995
bd920864
TBA
9962020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
997
998 * jit.c (jit_read_descriptor): Use bool as the return type.
999 (jit_breakpoint_re_set_internal): Use bool as the return type.
1000 Invert the return value logic; return true if the jit breakpoint
1001 has been successfully initialized.
1002 (jit_inferior_init): Update the call to
1003 jit_breakpoint_re_set_internal.
1004
f8098322
PA
10052020-06-22 Pedro Alves <palves@redhat.com>
1006
1007 PR gdb/25939
1008 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1009 Use the current inferior instead. Don't return
1010 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1011 wait again.
1012 * sol-thread.c (sol_thread_target::wait): Don't reference
1013 inferior_ptid.
1014 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1015 (sol_update_thread_list_callback): Use the current inferior's pid
1016 instead of inferior_ptid.
1017
196535a6
RO
10182020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1019
1020 * procfs.c: Cleanup many comments.
1021
1022 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1023 (AFTER_WATCHFLAG): Replace by value.
1024
1025 (MAIN_PROC_NAME_FORMAT): Inline ...
1026 (create_procinfo): ... here.
1027
1028 (procfs_debug_inferior): Remove SYS_exec handling.
1029 (syscall_is_exec): Likewise.
1030 (procfs_set_exec_trap): Likewise.
1031
1032 (syscall_is_lwp_exit): Inline in callers.
1033 (syscall_is_exit): Likewise.
1034 (syscall_is_exec): Likewise.
1035 (syscall_is_lwp_create): Likewise.
1036
1037 (invalidate_cache): Remove #if 0 code.
1038
1039 (make_signal_thread_runnable): Remove.
1040 (procfs_target::resume): Remove #if 0 code.
1041
cf6f3e86
RO
10422020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1043
1044 PR gdb/25939
1045 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1046 call ...
1047 (procfs_target::create_inferior): ... here.
1048
48e9cc84
PW
10492020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1050
1051 * exec.c (validate_exec_file): Ensure the build-id is up to
1052 date by calling reopen_exec_file (that checks file timestamp
1053 to decide to re-read the file).
1054
3922b302
PA
10552020-06-18 Pedro Alves <palves@redhat.com>
1056
1057 PR gdb/25412
1058 * gdbthread.h (delete_thread, delete_thread_silent)
1059 (find_thread_ptid): Update comments.
1060 * thread.c (current_thread_): New global.
1061 (is_current_thread): Move higher, and reimplement.
1062 (inferior_thread): Reimplement.
1063 (set_thread_exited): Use bool. Add assertions.
1064 (add_thread_silent): Simplify thread-reuse handling by always
1065 calling delete_thread.
1066 (delete_thread): Remove intro comment.
1067 (find_thread_ptid): Skip exited threads.
1068 (switch_to_thread_no_regs): Write to current_thread_.
1069 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1070 INFERIOR_PTID. Clear current_thread_.
1071
6dbdab44
PA
10722020-06-18 Pedro Alves <palves@redhat.com>
1073
1074 * aix-thread.c (pd_update): Use switch_to_thread.
1075
2da4b788
PA
10762020-06-18 Pedro Alves <palves@redhat.com>
1077
1078 * ravenscar-thread.c (ravenscar_thread_target): Update.
1079 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1080 (ravenscar_thread_target::add_active_thread): ... this. Don't
1081 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1082 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1083
50838d1b
PA
10842020-06-18 Pedro Alves <palves@redhat.com>
1085
1086 * nat/windows-nat.c (current_windows_thread): Remove.
1087 * nat/windows-nat.h (current_windows_thread): Remove.
1088 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1089 Adjust.
1090 (display_selectors): Adjust to fetch the current
1091 windows_thread_info based on inferior_ptid.
1092 (fake_create_process): No longer write to current_windows_thread.
1093 (windows_nat_target::get_windows_debug_event):
1094 Don't set inferior_ptid or current_windows_thread.
1095 (windows_nat_target::wait): Adjust to not rely on
1096 current_windows_thread.
1097 (do_initial_windows_stuff): Now a method of windows_nat_target.
1098 Switch to the last_ptid thread.
1099 (windows_nat_target::attach): Adjust.
1100 (windows_nat_target::detach): Use switch_to_no_thread instead of
1101 writing to inferior_ptid directly.
1102 (windows_nat_target::create_inferior): Adjust.
1103
31ce04e9
PA
11042020-06-18 Pedro Alves <palves@redhat.com>
1105
1106 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1107
1ee1a363
PA
11082020-06-18 Pedro Alves <palves@redhat.com>
1109
1110 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1111 after creating it, instead of writing to inferior_ptid. Don't
1112 write to inferior_ptid.
1113
6d350754
PA
11142020-06-18 Pedro Alves <palves@redhat.com>
1115
1116 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1117
5d971d48
PA
11182020-06-18 Pedro Alves <palves@redhat.com>
1119
1120 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1121 it, instead of writing to inferior_ptid.
1122
86e57d1b
PA
11232020-06-18 Pedro Alves <palves@redhat.com>
1124
1125 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1126 to inferior_ptid.
1127
f2e1c129
PA
11282020-06-18 Pedro Alves <palves@redhat.com>
1129
1130 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1131 instead of writing to inferior_ptid directly.
1132
60db1b85
PA
11332020-06-18 Pedro Alves <palves@redhat.com>
1134
1135 * corelow.c (core_target::close): Use switch_to_no_thread instead
1136 of writing to inferior_ptid directly.
1137 (add_to_thread_list, core_target_open): Use switch_to_thread
1138 instead of writing to inferior_ptid directly.
1139
fe7d6a8d
PA
11402020-06-18 Pedro Alves <palves@redhat.com>
1141
1142 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1143 inferior_ptid.
1144 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1145 inferior_ptid.
1146 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1147 inferior_ptid directly.
1148 (darwin_nat_target::init_thread_list): Switch to thread, instead
1149 of writing to inferior_ptid.
1150 (darwin_nat_target::attach): Don't write to inferior_ptid.
1151 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1152
975f8708
PA
11532020-06-18 Pedro Alves <palves@redhat.com>
1154
1155 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1156 thread.
1157 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1158 Instead use switch_to_thread.
1159 (gnu_nat_target::detach): Use switch_to_no_thread
1160 instead of writing to inferior_ptid directly. Used passed-in
1161 inferior instead of looking up the inferior by pid.
1162
1a204730
PA
11632020-06-18 Pedro Alves <palves@redhat.com>
1164
1165 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1166 inferior_ptid.
1167
ebe84f23
PA
11682020-06-18 Pedro Alves <palves@redhat.com>
1169
1170 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1171 inferior_ptid.
1172 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1173 thread.
1174 (nto_procfs_target::detach): Avoid referencing
1175 inferior_ptid. Use switch_to_no_thread instead of writing to
1176 inferior_ptid directly.
1177 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1178 instead of writing to inferior_ptid directly.
1179 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1180 to thread.
1181
191f02e5
PA
11822020-06-18 Pedro Alves <palves@redhat.com>
1183
1184 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1185 after creating it, instead of writing to inferior_ptid.
1186 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1187 to inferior_ptid directly.
1188 (gdbsim_target::wait): Don't write to inferior_ptid.
1189
0ac55310
PA
11902020-06-18 Pedro Alves <palves@redhat.com>
1191
1192 * remote.c (remote_target::remote_notice_new_inferior): Use
1193 switch_to_thread instead of writing to inferior_ptid directly.
1194 (remote_target::add_current_inferior_and_thread): Use
1195 switch_to_no_thread instead of writing to inferior_ptid directly.
1196 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1197 and switch_to_thread instead of using set_current_inferior or
1198 writing to inferior_ptid directly.
1199
5233f39b
PA
12002020-06-18 Pedro Alves <palves@redhat.com>
1201
1202 * tracectf.c (ctf_target_open): Switch to added thread instead of
1203 writing to inferior_ptid directly.
1204 (ctf_target::close): Use switch_to_no_thread instead of writing to
1205 inferior_ptid directly.
1206
087e161b
PA
12072020-06-18 Pedro Alves <palves@redhat.com>
1208
1209 * tracefile-tfile.c (tfile_target_open): Don't write to
1210 inferior_ptid directly, instead switch to added thread.
1211 (tfile_target::close): Use switch_to_no_thread instead of writing
1212 to inferior_ptid directly.
1213
7fb43e53
PA
12142020-06-18 Pedro Alves <palves@redhat.com>
1215
1216 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1217 (procfs_target::detach): Use switch_to_no_thread
1218 instead of writing to inferior_ptid directly.
1219 (do_attach): Change return type to void. Switch to the added
1220 thread.
1221 (procfs_target::create_inferior): Switch to the added thread.
1222 (procfs_do_thread_registers): Don't write to inferior_ptid.
1223
18493a00
PA
12242020-06-18 Pedro Alves <palves@redhat.com>
1225
1226 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1227 of writing to inferior_ptid.
1228 (scoped_restore_exited_inferior): Delete.
1229 (handle_vfork_child_exec_or_exit): Simplify using
1230 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1231 instead of writing to inferior_ptid.
1232 (THREAD_STOPPED_BY): Delete.
1233 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1234 (thread_stopped_by_hw_breakpoint): Delete.
1235 (save_waitstatus): Use
1236 scoped_restore_current_thread+switch_to_thread, and call
1237 target_stopped_by_watchpoint instead of
1238 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1239 instead of thread_stopped_by_sw_breakpoint, and
1240 target_stopped_by_hw_breakpoint instead of
1241 thread_stopped_by_hw_breakpoint.
1242 (handle_inferior_event)
1243 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1244 inferior_ptid directly, nor
1245 set_current_inferior/set_current_program_space. Use
1246 switch_to_thread / switch_to_inferior_no_thread instead.
1247
a0776b13
PA
12482020-06-18 Pedro Alves <palves@redhat.com>
1249
1250 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1251 instead of writing to inferior_ptid.
1252
6155c136
PA
12532020-06-18 Pedro Alves <palves@redhat.com>
1254
1255 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1256 added thread.
1257 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1258 to the added thread.
1259 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1260 instead of writing to inferior_ptid.
1261
c5316fc6
PA
12622020-06-18 Pedro Alves <palves@redhat.com>
1263
1264 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1265 (register_to_value_test): Mock a program_space too. Heap-allocate
1266 the address space. Don't write to inferior_ptid. Use
1267 switch_to_thread instead.
1268
8df01799
PA
12692020-06-18 Pedro Alves <palves@redhat.com>
1270
1271 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1272 Delete.
1273 (find_signalled_thread()): New, factored out from
1274 linux_make_corefile_notes and adjusted to handle exited threads.
1275 (linux_make_corefile_notes): Adjust to use the new
1276 find_signalled_thread.
1277
41792d68
PA
12782020-06-18 Pedro Alves <palves@redhat.com>
1279
1280 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1281 of saving/restoring inferior_ptid.
1282
612f258a
TT
12832020-06-17 Tom Tromey <tom@tromey.com>
1284
1285 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1286 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1287 declare.
1288 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1289
efb763a5
SM
12902020-06-15 Simon Marchi <simon.marchi@efficios.com>
1291
1292 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1293 of partial symtabs.
1294
2951f6c0
SM
12952020-06-17 Simon Marchi <simon.marchi@efficios.com>
1296
1297 * regformats/reg-arm.dat: Remove.
1298 * regformats/reg-bfin.dat: Remove.
1299 * regformats/reg-cris.dat: Remove.
1300 * regformats/reg-crisv32.dat: Remove.
1301 * regformats/reg-m32r.dat: Remove.
1302 * regformats/reg-tilegx.dat: Remove.
1303 * regformats/reg-tilegx32.dat: Remove.
1304
7d458ea5
SM
13052020-06-17 Simon Marchi <simon.marchi@efficios.com>
1306
1307 * features/Makefile (WHICH): Remove arm files.
1308 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1309 * regformats/arm/arm-with-neon.dat: Remove.
1310 * regformats/arm/arm-with-vfpv2.dat: Remove.
1311 * regformats/arm/arm-with-vfpv3.dat: Remove.
1312
3af96c0d
SM
13132020-06-17 Simon Marchi <simon.marchi@efficios.com>
1314
1315 * features/Makefile (XMLTOC): Remove rx.xml.
1316
b25e22fd
PA
13172020-06-17 Pedro Alves <palves@redhat.com>
1318
1319 * gdbthread.h (thread_control_state) <trap_expected> Update
1320 comments.
1321
a78a19b1
AB
13222020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1323
1324 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1325 ada_language::lookup_symbol_nonlocal.
1326 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1327 (ada_language::lookup_symbol_nonlocal): New member function,
1328 implementation from ada_lookup_symbol_nonlocal.
1329 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1330 initializer.
1331 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1332 initializer.
1333 (cplus_language::lookup_symbol_nonlocal): New member function.
1334 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1335 (minimal_language_data) Likewise.
1336 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1337 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1338 initializer.
1339 (d_language::lookup_symbol_nonlocal): New member function.
1340 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1341 initializer.
1342 (f_language::lookup_symbol_nonlocal): New member function.
1343 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1344 initializer.
1345 * language.c (unknown_language_data): Likewise.
1346 (auto_language_data): Likewise.
1347 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1348 field.
1349 (language_defn::lookup_symbol_nonlocal): New member function.
1350 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1351 initializer.
1352 * objc-lang.c (objc_language_data): Likewise.
1353 * opencl-lang.c (opencl_language_data): Likewise.
1354 * p-lang.c (pascal_language_data): Likewise.
1355 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1356 rust_language::lookup_symbol_nonlocal.
1357 (rust_language_data): Delete la_lookup_symbol_nonlocal
1358 initializer.
1359 (rust_language::lookup_symbol_nonlocal): New member function,
1360 implementation from rust_lookup_symbol_nonlocal.
1361 * symtab.c (lookup_symbol_aux): Update call to
1362 lookup_symbol_nonlocal.
1363 (basic_lookup_symbol_nonlocal): Rename to...
1364 (language_defn::lookup_symbol_nonlocal): ...this, and update
1365 header comment. Remove language_defn parameter, and replace with
1366 uses of `this'.
1367 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1368
ebe2334e
AB
13692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1370
1371 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1372 initializer.
1373 (ada_language::value_print_inner): New member function.
1374 * c-lang.c (c_language_data): Delete la_value_print_inner
1375 initializer.
1376 (cplus_language_data): Likewise.
1377 (asm_language_data): Likewise.
1378 (minimal_language_data): Likewise.
1379 * d-lang.c (d_language_data): Likewise.
1380 (d_language::value_print_inner): New member function.
1381 * f-lang.c (f_language_data): Delete la_value_print_inner
1382 initializer.
1383 (f_language::value_print_inner): New member function.
1384 * f-lang.h (f_value_print_innner): Rename to...
1385 (f_value_print_inner): ...this (note spelling of 'inner').
1386 * f-valprint.c (f_value_print_innner): Rename to...
1387 (f_value_print_inner): ...this (note spelling of 'inner').
1388 * go-lang.c (go_language_data): Delete la_value_print_inner
1389 initializer.
1390 (go_language::value_print_inner): New member function.
1391 * language.c (language_defn::value_print_inner): Define new member
1392 function.
1393 (unk_lang_value_print_inner): Delete.
1394 (unknown_language_data): Delete la_value_print_inner initializer.
1395 (unknown_language::value_print_inner): New member function.
1396 (auto_language_data): Delete la_value_print_inner initializer.
1397 (auto_language::value_print_inner): New member function.
1398 * language.h (language_data): Delete la_value_print_inner field.
1399 (language_defn::value_print_inner): Delcare new member function.
1400 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1401 initializer.
1402 (m2_language::value_print_inner): New member function.
1403 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1404 initializer.
1405 * opencl-lang.c (opencl_language_data): Likewise.
1406 * p-lang.c (pascal_language_data): Likewise.
1407 (pascal_language::value_print_inner): New member function.
1408 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1409 initializer.
1410 (rust_language::value_print_inner): New member function.
1411 * valprint.c (do_val_print): Update call to value_print_inner.
1412
a1d1fa3e
AB
14132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1414
1415 * ada-lang.c (ada_language_data): Delete la_value_print
1416 initializer.
1417 (ada_language::value_print): New member function.
1418 * c-lang.c (c_language_data): Delete la_value_print initializer.
1419 (cplus_language_data): Likewise.
1420 (asm_language_data): Likewise.
1421 (minimal_language_data): Likewise.
1422 * d-lang.c (d_language_data): Likewise.
1423 * f-lang.c (f_language_data): Likewise.
1424 * go-lang.c (go_language_data): Likewise.
1425 * language.c (unk_lang_value_print): Delete.
1426 (language_defn::value_print): Define new member function.
1427 (unknown_language_data): Delete la_value_print initializer.
1428 (unknown_language::value_print): New member function.
1429 (auto_language_data): Delete la_value_print initializer.
1430 (auto_language::value_print): New member function.
1431 * language.h (language_data): Delete la_value_print field.
1432 (language_defn::value_print): Declare new member function.
1433 (LA_VALUE_PRINT): Update call to value_print.
1434 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1435 * objc-lang.c (objc_language_data): Likewise.
1436 * opencl-lang.c (opencl_language_data): Likewise.
1437 * p-lang.c (pascal_language_data): Likewise.
1438 (pascal_language::value_print): New member function.
1439 * rust-lang.c (rust_language_data): Delete la_value_print
1440 initializer.
1441
f16a9f57
AB
14422020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1443
1444 * ada-lang.c (ada_watch_location_expression): Rename to
1445 ada_language::watch_location_expression.
1446 (ada_language_data): Delete la_watch_location_expression
1447 initializer.
1448 (ada_language::watch_location_expression): New member function,
1449 implementation from ada_watch_location_expression.
1450 * breakpoint.c (watch_command_1): Update call to
1451 watch_location_expression.
1452 * c-lang.c (c_watch_location_expression): Rename to
1453 language_defn::watch_location_expression.
1454 (c_language_data): Delete la_watch_location_expression
1455 initializer.
1456 (cplus_language_data): Likewise.
1457 (asm_language_data): Likewise.
1458 (minimal_language_data): Likewise.
1459 * c-lang.h (c_watch_location_expression): Delete declaration.
1460 * d-lang.c (d_language_data): Delete la_watch_location_expression
1461 initializer.
1462 * f-lang.c (f_language_data): Likewise.
1463 * go-lang.c (go_language_data): Likewise.
1464 * language.c (language_defn::watch_location_expression): Member
1465 function implementation from c_watch_location_expression.
1466 (unknown_language_data): Delete la_watch_location_expression
1467 initializer.
1468 (auto_language_data): Likewise.
1469 * language.h (language_data): Delete la_watch_location_expression
1470 field.
1471 (language_defn::watch_location_expression): Declare new member
1472 function.
1473 * m2-lang.c (m2_language_data): Delete
1474 la_watch_location_expression initializer.
1475 * objc-lang.c (objc_language_data): Likewise.
1476 * opencl-lang.c (opencl_language_data): Likewise.
1477 * p-lang.c (pascal_language_data): Likewise.
1478 * rust-lang.c (rust_watch_location_expression): Rename to
1479 rust_language::watch_location_expression.
1480 (rust_language_data): Delete la_watch_location_expression
1481 initializer.
1482 (rust_language::watch_location_expression): New member function,
1483 implementation from rust_watch_location_expression.
1484
7e56227d
AB
14852020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1486
1487 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1488 ada_language::collect_symbol_completion_matches.
1489 (ada_language_data): Delete la_collect_symbol_completion_matches
1490 initializer.
1491 (ada_language::collect_symbol_completion_matches): New member
1492 function, implementation from
1493 ada_collect_symbol_completion_matches.
1494 * c-lang.c (c_language_data): Delete
1495 la_collect_symbol_completion_matches initializer.
1496 (cplus_language_data): Likewise.
1497 (asm_language_data): Likewise.
1498 (minimal_language_data): Likewise.
1499 * d-lang.c (d_language_data): Likewise.
1500 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1501 f_language::collect_symbol_completion_matches.
1502 (f_language_data): Delete la_collect_symbol_completion_matches
1503 initializer.
1504 (f_language::collect_symbol_completion_matches) New member
1505 function, implementation from f_collect_symbol_completion_matches.
1506 * go-lang.c (go_language_data): Delete
1507 la_collect_symbol_completion_matches initializer.
1508 * language.c (unknown_language_data): Likewise.
1509 (auto_language_data): Likewise.
1510 * language.h (language_data): Delete
1511 la_collect_symbol_completion_matches field.
1512 (language_defn::collect_symbol_completion_matches): New member
1513 function.
1514 * m2-lang.c (m2_language_data): Delete
1515 la_collect_symbol_completion_matches initializer.
1516 * objc-lang.c (objc_language_data): Likewise.
1517 * opencl-lang.c (opencl_language_data): Likewise.
1518 * p-lang.c (pascal_language_data): Likewise.
1519 * rust-lang.c (rust_language_data): Likewise.
1520 * symtab.c (default_collect_symbol_completion_matches): Delete.
1521 (collect_symbol_completion_matches): Update call to
1522 collect_symbol_completion_matches.
1523 (collect_symbol_completion_matches_type): Likewise.
1524 * symtab.h (default_collect_symbol_completion_matches): Delete
1525 declaration.
1526
53fc67f8
AB
15272020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1528
1529 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1530 (ada_language_data): Delete la_word_break_characters initializer.
1531 (ada_language::word_break_characters): New member function.
1532 * c-lang.c (c_language_data): Delete la_word_break_characters
1533 initializer.
1534 (cplus_language_data): Likewise.
1535 (asm_language_data): Likewise.
1536 (minimal_language_data): Likewise.
1537 * completer.c: Update global comment.
1538 (advance_to_expression_complete_word_point): Update call to
1539 word_break_characters.
1540 (complete_files_symbols): Likewise.
1541 (complete_line_internal_1): Likewise.
1542 (default_completer_handle_brkchars): Likewise.
1543 (skip_quoted_chars): Likewise.
1544 * d-lang.c (d_language_data): Delete la_word_break_characters
1545 initializer.
1546 * f-lang.c (f_word_break_characters): Delete.
1547 (f_language_data): Delete la_word_break_characters initializer.
1548 (f_language::word_break_characters): New member function.
1549 * go-lang.c (go_language_data): Delete la_word_break_characters
1550 initializer.
1551 * language.c (unknown_language_data): Likewise.
1552 (auto_language_data): Likewise.
1553 * language.h (default_word_break_characters): Move declaration to
1554 earlier in the file.
1555 (language_data): Delete la_word_break_characters field.
1556 (language_defn::word_break_characters): New member function.
1557 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1558 initializer.
1559 * objc-lang.c (objc_language_data): Likewise.
1560 * opencl-lang.c (opencl_language_data): Likewise.
1561 * p-lang.c (pascal_language_data): Likewise.
1562 * rust-lang.c (rust_language_data): Likewise.
1563
c9debfb9
AB
15642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1565
1566 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1567 (ada_language_data): Delete la_get_symbol_name_matcher
1568 initializer.
1569 (language_defn::get_symbol_name_matcher_inner): New member
1570 function.
1571 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1572 initializer.
1573 (cplus_language_data): Likewise.
1574 (cplus_language::get_symbol_name_matcher_inner): New member
1575 function.
1576 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1577 (minimal_language_data): Likewise.
1578 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1579 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1580 initializer.
1581 * dictionary.c (iter_match_first_hashed): Update call to
1582 get_symbol_name_matcher.
1583 (iter_match_next_hashed): Likewise.
1584 (iter_match_next_linear): Likewise.
1585 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1586 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1587 initializer.
1588 (f_language::get_symbol_name_matcher_inner): New member function.
1589 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1590 initializer.
1591 * language.c (default_symbol_name_matcher): Update header comment,
1592 make static.
1593 (language_defn::get_symbol_name_matcher): New definition.
1594 (language_defn::get_symbol_name_matcher_inner): Likewise.
1595 (get_symbol_name_matcher): Delete.
1596 (unknown_language_data): Delete la_get_symbol_name_matcher
1597 initializer.
1598 (auto_language_data): Likewise.
1599 * language.h (language_data): Delete la_get_symbol_name_matcher
1600 field.
1601 (language_defn::get_symbol_name_matcher): New member function.
1602 (language_defn::get_symbol_name_matcher_inner): Likewise.
1603 (default_symbol_name_matcher): Delete declaration.
1604 * linespec.c (find_methods): Update call to
1605 get_symbol_name_matcher.
1606 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1607 initializer.
1608 * minsyms.c (lookup_minimal_symbol): Update call to
1609 get_symbol_name_matcher.
1610 (iterate_over_minimal_symbols): Likewise.
1611 * objc-lang.c (objc_language_data): Delete
1612 la_get_symbol_name_matcher initializer.
1613 * opencl-lang.c (opencl_language_data): Likewise.
1614 * p-lang.c (pascal_language_data): Likewise.
1615 * psymtab.c (psymbol_name_matches): Update call to
1616 get_symbol_name_matcher.
1617 * rust-lang.c (rust_language_data): Delete
1618 la_get_symbol_name_matcher initializer.
1619 * symtab.c (symbol_matches_search_name): Update call to
1620 get_symbol_name_matcher.
1621 (compare_symbol_name): Likewise.
1622
9a49ad8c
AB
16232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1624
1625 * ada-lang.c (ada_language_data): Delete la_compute_program
1626 initializer.
1627 * c-lang.c (c_language_data): Likewise.
1628 (c_language::compute_program): New member function.
1629 (cplus_language_data): Delete la_compute_program initializer.
1630 (cplus_language::compute_program): New member function.
1631 (asm_language_data): Delete la_compute_program initializer.
1632 (minimal_language_data): Likewise.
1633 * c-lang.h (c_compute_program): Update comment.
1634 (cplus_compute_program): Likewise.
1635 * compile/compile-c-support.c (c_compute_program): Likewise.
1636 (cplus_compute_program): Likewise.
1637 * compile/compile.c (compile_to_object): Update call to
1638 la_compute_program.
1639 * d-lang.c (d_language_data): Delete la_compute_program
1640 initializer.
1641 * f-lang.c (f_language_data): Likewise.
1642 * go-lang.c (go_language_data): Likewise.
1643 * language.c (unknown_language_data): Likewise.
1644 (auto_language_data): Likewise.
1645 * language.h (language_data): Delete la_compute_program field.
1646 (language_defn::compute_program): New member function.
1647 * m2-lang.c (m2_language_data): Delete la_compute_program
1648 initializer.
1649 * objc-lang.c (objc_language_data): Likewise.
1650 * opencl-lang.c (opencl_language_data): Likewise.
1651 * p-lang.c (pascal_language_data): Likewise.
1652 * rust-lang.c (rust_language_data): Likewise.
1653
eff93b4d
AB
16542020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1655
1656 * ada-lang.c (ada_language_data) Delete
1657 la_class_name_from_physname initializer.
1658 * c-lang.c (c_language_data): Likewise.
1659 (cplus_language_data): Likewise.
1660 (cplus_language::class_name_from_physname): New member function.
1661 (asm_language_data): Delete la_class_name_from_physname
1662 initializer.
1663 (minimal_language_data): Likewise.
1664 * d-lang.c (d_language_data): Likewise.
1665 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1666 method on language_defn class.
1667 (guess_full_die_structure_name): Likewise.
1668 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1669 initializer.
1670 * go-lang.c (go_language_data): Likewise.
1671 * language.c (language_class_name_from_physname): Delete.
1672 (unk_lang_class_name): Delete.
1673 (unknown_language_data): Delete la_class_name_from_physname
1674 initializer.
1675 (auto_language_data): Likewise.
1676 * language.h (language_data): Delete la_class_name_from_physname
1677 field.
1678 (language_defn::class_name_from_physname): New function.
1679 (language_class_name_from_physname): Delete declaration.
1680 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1681 initializer.
1682 * objc-lang.c (objc_language_data): Likewise.
1683 * opencl-lang.c (opencl_language_data): Likewise.
1684 * p-lang.c (pascal_language_data): Likewise.
1685 * rust-lang.c (rust_language_data): Likewise.
1686
de543742
TT
16872020-06-16 Tom Tromey <tom@tromey.com>
1688
1689 * tui/tui-data.h (STATUS_NAME): New macro.
1690 * tui/tui-layout.c (tui_remove_some_windows)
1691 (initialize_known_windows, tui_register_window)
1692 (tui_layout_split::remove_windows, initialize_layouts)
1693 (tui_new_layout_command): Don't use hard-coded window names.
1694
a350efd4
TT
16952020-06-16 Tom Tromey <tom@tromey.com>
1696
1697 PR tui/25348:
1698 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1699 tui_initialize_readline. Only run once. Call rl_initialize.
1700 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1701 tui_initialize_readline.
1702 * tui/tui-io.c (tui_setup_io): Call
1703 tui_ensure_readline_initialized.
1704 * tui/tui-interp.c (tui_interp::init): Update.
1705
39ec0490
TT
17062020-06-16 Tom Tromey <tom@tromey.com>
1707
1708 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1709 Also preserve the status window.
1710
d2d1ea20
TT
17112020-06-16 Tom Tromey <tom@tromey.com>
1712
1713 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1714 where m_window==nullptr.
1715
66920317
TT
17162020-06-15 Tom Tromey <tromey@adacore.com>
1717
1718 * windows-nat.c (windows_nat::handle_output_debug_string):
1719 Update.
1720 (windows_nat::handle_ms_vc_exception): Update.
1721 * target.h (target_read_string): Change API.
1722 * target.c (target_read_string): Change API.
1723 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1724 Update.
1725 * solib-frv.c (frv_current_sos): Update.
1726 * solib-dsbt.c (dsbt_current_sos): Update.
1727 * solib-darwin.c (darwin_current_sos): Update.
1728 * linux-thread-db.c (inferior_has_bug): Update.
1729 * expprint.c (print_subexp_standard): Update.
1730 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1731 (ada_exception_message_1): Update.
1732
a5d871dd
TT
17332020-06-15 Tom Tromey <tromey@adacore.com>
1734
1735 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1736
670e35fa
TT
17372020-06-15 Tom Tromey <tromey@adacore.com>
1738
1739 * valprint.c (read_string): Update comment.
1740 * target.c (MIN): Remove.
1741 (target_read_string): Rewrite.
1742
f5272a3b
TT
17432020-06-15 Tom Tromey <tromey@adacore.com>
1744
1745 * corefile.c (read_memory_string): Remove.
1746 * ada-valprint.c (ada_value_print_ptr): Update.
1747 * ada-lang.h (ada_tag_name): Change return type.
1748 * ada-lang.c (type_from_tag): Update.
1749 (ada_tag_name_from_tsd): Change return type. Use
1750 target_read_string.
1751 (ada_tag_name): Likewise.
1752 * gdbcore.h (read_memory_string): Don't declare.
1753
2c074f49
HD
17542020-06-14 Hannes Domani <ssbssa@yahoo.de>
1755
1756 * symtab.c (rbreak_command): Ignore Windows drive colon.
1757
6a17d503
SM
17582020-06-12 Simon Marchi <simon.marchi@efficios.com>
1759
1760 * NEWS: Mention removed GDBserver host support.
1761
453c733f
NC
17622020-06-12 Nelson Chu <nelson.chu@sifive.com>
1763
1764 * features/riscv/rebuild-csr-xml.sh: Updated.
1765
2b4e6a3f
TT
17662020-06-11 Tom Tromey <tom@tromey.com>
1767
1768 PR gdb/18318:
1769 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1770
4412332f
JG
17712020-06-09 Jonny Grant <jg@jguk.org>
17722020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1773
1774 * main.c (captured_main_1): Don't print new line after help.
1775 (print_gdb_help): add mailing list and IRC channel information
1776 to --help. Add new lines between items in the footer. Remove
1777 quotes around bug url.
1778
2f33032a
KS
17792020-06-11 Keith Seitz <keiths@redhat.com>
1780
1781 PR gdb/21356
1782 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1783 Resolve typedefs for type length calculations.
1784
7ab96794
TV
17852020-06-10 Tom de Vries <tdevries@suse.de>
1786
1787 PR ada/24713
1788 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1789 (write_psymbols): Enable .gdb_index for ada.
1790 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1791 ada.
1792
e5f3ece2
TV
17932020-06-10 Tom de Vries <tdevries@suse.de>
1794
1795 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1796 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1797 namei" instead of "const char *name" argument.
1798 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1799 dw2_symtab_iter_init.
1800
940da03e
SM
18012020-06-08 Simon Marchi <simon.marchi@efficios.com>
1802
1803 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1804 to use type::field and field::type instead.
1805
b6cdac4b
SM
18062020-06-08 Simon Marchi <simon.marchi@efficios.com>
1807
1808 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1809 to use field::type instead.
1810
5d14b6e5
SM
18112020-06-08 Simon Marchi <simon.marchi@efficios.com>
1812
1813 * gdbtypes.h (struct field) <type, set_type>: New methods.
1814 Rename `type` field to...
1815 <m_type>: ... this. Change references throughout to use type or
1816 set_type methods.
1817 (FIELD_TYPE): Use field::type. Change call sites that modify
1818 the field's type to use field::set_type instead.
1819
3d967001
SM
18202020-06-08 Simon Marchi <simon.marchi@efficios.com>
1821
1822 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1823 to use type::index_type instead.
1824
262abc0d
SM
18252020-06-08 Simon Marchi <simon.marchi@efficios.com>
1826
1827 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1828 methods.
1829 (TYPE_INDEX_TYPE): Use type::index_type.
1830 * gdbtypes.c (create_array_type_with_stride): Likewise.
1831
82836c92
TT
18322020-06-07 Tom Tromey <tom@tromey.com>
1833
1834 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1835 parameter.
1836 (generic_value_print): Update.
1837
940dace9
AB
18382020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1839
1840 Revert commit 982a38f60b0.
1841 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1842
982a38f6
AB
18432020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1844
1845 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1846 avoid use after free.
1847
82f06518
TV
18482020-06-05 Tom de Vries <tdevries@suse.de>
1849
1850 * NEWS: Fix typos.
1851
f8c41851
SM
18522020-06-04 Simon Marchi <simon.marchi@efficios.com>
1853
1854 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1855 the per_bfd object.
1856 (dwarf2_read_debug_names): Likewise.
1857 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1858 object when re-using a per_bfd object with an index.
1859
f9b5d5ea
TV
18602020-06-03 Tom de Vries <tdevries@suse.de>
1861
1862 PR symtab/26046
1863 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1864 children for C++.
1865 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1866 DW_TAG_subprogram.
1867
f6eee2d0
AB
18682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1869
1870 * ada-lang.c (ada_language_data): Delete skip_trampoline
1871 initializer.
1872 * c-lang.c (c_language_data): Likewise.
1873 (cplus_language_data): Likewise.
1874 (cplus_language::skip_trampoline): New member function.
1875 (asm_language_data): Delete skip_trampoline initializer.
1876 (minimal_language_data): Likewise.
1877 * d-lang.c (d_language_data): Likewise.
1878 * f-lang.c (f_language_data): Likewise.
1879 * go-lang.c (go_language_data): Likewise.
1880 * language.c (unk_lang_trampoline): Delete function.
1881 (skip_language_trampoline): Update.
1882 (unknown_language_data): Delete skip_trampoline initializer.
1883 (auto_language_data): Likewise.
1884 * language.h (language_data): Delete skip_trampoline field.
1885 (language_defn::skip_trampoline): New function.
1886 * m2-lang.c (m2_language_data): Delete skip_trampoline
1887 initializer.
1888 * objc-lang.c (objc_skip_trampoline): Delete function, move
1889 implementation to objc_language::skip_trampoline.
1890 (objc_language_data): Delete skip_trampoline initializer.
1891 (objc_language::skip_trampoline): New member function with
1892 implementation from objc_skip_trampoline.
1893 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1894 initializer.
1895 * p-lang.c (pascal_language_data): Likewise.
1896 * rust-lang.c (rust_language_data): Likewise.
1897
0a50df5d
AB
18982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1899
1900 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1901 (ada_language::demangle): New member function.
1902 * c-lang.c (c_language_data): Delete la_demangle initializer.
1903 (cplus_language_data): Delete la_demangle initializer.
1904 (cplus_language::demangle): New member function.
1905 (asm_language_data): Delete la_demangle initializer.
1906 (minimal_language_data): Delete la_demangle initializer.
1907 * d-lang.c (d_language_data): Delete la_demangle initializer.
1908 (d_language::demangle): New member function.
1909 * f-lang.c (f_language_data): Delete la_demangle initializer.
1910 (f_language::demangle): New member function.
1911 * go-lang.c (go_language_data): Delete la_demangle initializer.
1912 (go_language::demangle): New member function.
1913 * language.c (language_demangle): Update.
1914 (unk_lang_demangle): Delete.
1915 (unknown_language_data): Delete la_demangle initializer.
1916 (unknown_language::demangle): New member function.
1917 (auto_language_data): Delete la_demangle initializer.
1918 (auto_language::demangle): New member function.
1919 * language.h (language_data): Delete la_demangle field.
1920 (language_defn::demangle): New function.
1921 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1922 * objc-lang.c (objc_language_data): Delete la_demangle
1923 initializer.
1924 (objc_language::demangle): New member function.
1925 * opencl-lang.c (opencl_language_data): Delete la_demangle
1926 initializer.
1927 * p-lang.c (pascal_language_data): Likewise.
1928 * rust-lang.c (rust_language_data): Likewise.
1929 (rust_language::demangle): New member function.
1930
fbfb0a46
AB
19312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1932
1933 * ada-lang.c (ada_language_data): Delete la_print_type
1934 initializer.
1935 (ada_language::print_type): New member function.
1936 * c-lang.c (c_language_data): Delete la_print_type initializer.
1937 (c_language::print_type): New member function.
1938 (cplus_language_data): Delete la_print_type initializer.
1939 (cplus_language::print_type): New member function.
1940 (asm_language_data): Delete la_print_type initializer.
1941 (asm_language::print_type): New member function.
1942 (minimal_language_data): Delete la_print_type initializer.
1943 (minimal_language::print_type): New member function.
1944 * d-lang.c (d_language_data): Delete la_print_type initializer.
1945 (d_language::print_type): New member function.
1946 * f-lang.c (f_language_data): Delete la_print_type initializer.
1947 (f_language::print_type): New member function.
1948 * go-lang.c (go_language_data): Delete la_print_type initializer.
1949 (go_language::print_type): New member function.
1950 * language.c (unk_lang_print_type): Delete.
1951 (unknown_language_data): Delete la_print_type initializer.
1952 (unknown_language::print_type): New member function.
1953 (auto_language_data): Delete la_print_type initializer.
1954 (auto_language::print_type): New member function.
1955 * language.h (language_data): Delete la_print_type field.
1956 (language_defn::print_type): New function.
1957 (LA_PRINT_TYPE): Update.
1958 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1959 (m2_language::print_type): New member function.
1960 * objc-lang.c (objc_language_data): Delete la_print_type
1961 initializer.
1962 (objc_language::print_type): New member function.
1963 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1964 to opencl_language::print_type.
1965 (opencl_language_data): Delete la_print_type initializer.
1966 (opencl_language::print_type): New member function, implementation
1967 from opencl_print_type.
1968 * p-lang.c (pascal_language_data): Delete la_print_type
1969 initializer.
1970 (pascal_language::print_type): New member function.
1971 * rust-lang.c (rust_print_type): Delete, implementation moved to
1972 rust_language::print_type.
1973 (rust_language_data): Delete la_print_type initializer.
1974 (rust_language::print_type): New member function, implementation
1975 from rust_print_type.
1976
6f827019
AB
19772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1978
1979 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1980 implementation moves to...
1981 (ada_language::sniff_from_mangled_name): ...here. Update return
1982 type.
1983 (ada_language_data): Delete la_sniff_from_mangled_name
1984 initializer.
1985 * c-lang.c (c_language_data): Likewise.
1986 (cplus_language_data): Likewise.
1987 (cplus_language::sniff_from_mangled_name): New member function,
1988 implementation taken from gdb_sniff_from_mangled_name.
1989 (asm_language_data): Delete la_sniff_from_mangled_name
1990 initializer.
1991 (minimal_language_data): Likewise.
1992 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1993 implementation moves to cplus_language::sniff_from_mangled_name.
1994 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1995 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1996 moves to...
1997 (d_language::sniff_from_mangled_name): ...here.
1998 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1999 * f-lang.c (f_language_data): Likewise.
2000 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2001 moves to...
2002 (go_language::sniff_from_mangled_name): ...here.
2003 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2004 * language.c (language_sniff_from_mangled_name): Delete.
2005 (unknown_language_data): Delete la_sniff_from_mangled_name
2006 initializer.
2007 (auto_language_data): Likewise.
2008 * language.h (language_data): Delete la_sniff_from_mangled_name
2009 field.
2010 (language_defn::sniff_from_mangled_name): New function.
2011 (language_sniff_from_mangled_name): Delete declaration.
2012 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2013 field.
2014 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2015 implementation moves to...
2016 (objc_language::sniff_from_mangled_name): ...here.
2017 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2018 * opencl-lang.c (opencl_language_data): Likewise.
2019 * p-lang.c (pascal_language_data): Likewise.
2020 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2021 implementation moves to...
2022 (rust_language::sniff_from_mangled_name): ...here.
2023 (rust_language_data): Delete la_sniff_from_mangled_name
2024 initializer.
2025 * symtab.c (symbol_find_demangled_name): Call
2026 sniff_from_mangled_name member function.
2027
fb8006fd
AB
20282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2029
2030 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2031 initializer.
2032 * c-lang.c (c_language_data): Likewise.
2033 (cplus_language_data): Likewise.
2034 (cplus_language::search_name_hash): New member function.
2035 (asm_language_data): Delete la_search_name_hash initializer.
2036 (minimal_language_data): Likewise.
2037 * d-lang.c (d_language_data): Likewise.
2038 * dictionary.c (default_search_name_hash): Rename to...
2039 (language_defn::search_name_hash): ...this.
2040 * f-lang.c (f_language_data): Likewise.
2041 (f_language::search_name_hash): New member function.
2042 * go-lang.c (go_language_data): Delete la_search_name_hash
2043 initializer.
2044 * language.c (unknown_language_data): Likewise.
2045 (auto_language_data): Likewise.
2046 * language.h (struct language_data): Delete la_search_name_hash
2047 field.
2048 (language_defn::search_name_hash): Declare new member function.
2049 (default_search_name_hash): Delete declaration.
2050 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2051 initializer.
2052 * objc-lang.c (objc_language_data): Likewise.
2053 * opencl-lang.c (opencl_language_data): Likewise.
2054 * p-lang.c (pascal_language_data): Likewise.
2055 * rust-lang.c (rust_language_data): Likewise.
2056 * symtab.c (search_name_hash): Update call.
2057
8e25bafe
AB
20582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2059
2060 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2061 initializer.
2062 * c-lang.c (class compile_instance): Declare.
2063 (c_language_data): Delete la_get_compile_instance initializer.
2064 (c_language::get_compile_instance): New member function.
2065 (cplus_language_data): Delete la_get_compile_instance initializer.
2066 (cplus_language::get_compile_instance): New member function.
2067 (asm_language_data): Delete la_get_compile_instance initializer.
2068 (minimal_language_data): Likewise.
2069 * c-lang.h (c_get_compile_context): Update comment.
2070 (cplus_get_compile_context): Update comment.
2071 * compile/compile.c (compile_to_object): Update calls, don't rely
2072 on function pointer being NULL.
2073 * d-lang.c (d_language_data): Delete la_get_compile_instance
2074 initializer.
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_get_compile_instance field.
2080 (language_defn::get_compile_instance): New member function.
2081 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2082 initializer.
2083 * objc-lang.c (objc_language_data): Likewise.
2084 * opencl-lang.c (opencl_language_data): Likewise.
2085 * p-lang.c (pascal_language_data): Likewise.
2086 * rust-lang.c (rust_language_data): Likewise.
2087
4009ee92
AB
20882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2089
2090 * ada-lang.c (ada_add_all_symbols): Update comment.
2091 (ada_iterate_over_symbols): Delete, move implementation to...
2092 (ada_language::iterate_over_symbols): ...here, a new member
2093 function, rewrite to use range based for loop.
2094 (ada_language_data): Delete la_iterate_over_symbols initializer.
2095 * c-lang.c (c_language_data): Likewise.
2096 (cplus_language_data): Likewise.
2097 (asm_language_data): Likewise.
2098 (minimal_language_data): Likewise.
2099 * d-lang.c (d_language_data): Likewise.
2100 * f-lang.c (f_language_data): Likewise.
2101 * go-lang.c (go_language_data): Likewise.
2102 * language.c (unknown_language_data): Likewise.
2103 (auto_language_data): Likewise.
2104 * language.h (language_data): Delete la_iterate_over_symbols field.
2105 (language_defn::iterate_over_symbols): New member function.
2106 (LA_ITERATE_OVER_SYMBOLS): Update.
2107 * linespec.c (iterate_over_all_matching_symtabs): Update.
2108 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
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
54f4ca46
AB
21152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2116
2117 * ada-lang.c (ada_language_data): Delete
2118 la_lookup_transparent_type initializer.
2119 * c-lang.c (c_language_data): Likewise.
2120 (cplus_language_data): Likewise.
2121 (cplus_language::lookup_transparent_type): New member function.
2122 (asm_language_data): Delete la_lookup_transparent_type
2123 initializer.
2124 (minimal_language_data): Likewise.
2125 * d-lang.c (d_language_data): Likewise.
2126 * f-lang.c (f_language_data): Likewise.
2127 * go-lang.c (go_language_data): Likewise.
2128 * language.c (unknown_language_data): Likewise.
2129 (auto_language_data): Likewise.
2130 * language.h (struct language_data): Delete
2131 la_lookup_transparent_type field.
2132 (language_defn::lookup_transparent_type): New member function.
2133 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2134 initializer.
2135 * objc-lang.c (objc_language_data): Likewise.
2136 * opencl-lang.c (opencl_language_data): Likewise.
2137 * p-lang.c (pascal_language_data): Likewise.
2138 * rust-lang.c (rust_language_data): Likewise.
2139 * symtab.c (symbol_matches_domain): Update call.
2140
1fb314aa
AB
21412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2142
2143 * ada-lang.c (ada_language_arch_info): Delete function, move
2144 implementation to...
2145 (ada_language::language_arch_info): ...here, a new member
2146 function.
2147 (ada_language_data): Delete la_language_arch_info.
2148 * c-lang.c (c_language_data): Likewise.
2149 (c_language::language_arch_info): New member function.
2150 (cplus_language_arch_info): Delete function, move
2151 implementation to...
2152 (cplus_language::language_arch_info): ...here, a new member
2153 function.
2154 (cplus_language_data): Delete la_language_arch_info.
2155 (asm_language_data): Likewise.
2156 (asm_language::language_arch_info): New member function.
2157 (minimal_language_data): Delete la_language_arch_info.
2158 (minimal_language::language_arch_info): New member function.
2159 * d-lang.c (d_language_arch_info): Delete function, move
2160 implementation to...
2161 (d_language::language_arch_info): ...here, a new member
2162 function.
2163 (d_language_data): Delete la_language_arch_info.
2164 * f-lang.c (f_language_arch_info): Delete function, move
2165 implementation to...
2166 (f_language::language_arch_info): ...here, a new member
2167 function.
2168 (f_language_data): Delete la_language_arch_info.
2169 * go-lang.c (go_language_arch_info): Delete function, move
2170 implementation to...
2171 (go_language::language_arch_info): ...here, a new member
2172 function.
2173 (go_language_data): Delete la_language_arch_info.
2174 * language.c (unknown_language_data): Likewise.
2175 (unknown_language::language_arch_info): New member function.
2176 (auto_language_data): Delete la_language_arch_info.
2177 (auto_language::language_arch_info): New member function.
2178 (language_gdbarch_post_init): Update call to
2179 la_language_arch_info.
2180 * language.h (language_data): Delete la_language_arch_info
2181 function pointer.
2182 (language_defn::language_arch_info): New function.
2183 * m2-lang.c (m2_language_arch_info): Delete function, move
2184 implementation to...
2185 (m2_language::language_arch_info): ...here, a new member
2186 function.
2187 (m2_language_data): Delete la_language_arch_info.
2188 * objc-lang.c (objc_language_arch_info): Delete function, move
2189 implementation to...
2190 (objc_language::language_arch_info): ...here, a new member
2191 function.
2192 (objc_language_data): Delete la_language_arch_info.
2193 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2194 implementation to...
2195 (opencl_language::language_arch_info): ...here, a new member
2196 function.
2197 (opencl_language_data): Delete la_language_arch_info.
2198 * p-lang.c (pascal_language_arch_info): Delete function, move
2199 implementation to...
2200 (pascal_language::language_arch_info): ...here, a new member
2201 function.
2202 (pascal_language_data): Delete la_language_arch_info.
2203 * rust-lang.c (rust_language_arch_info): Delete function, move
2204 implementation to...
2205 (rust_language::language_arch_info): ...here, a new member
2206 function.
2207 (rust_language_data): Delete la_language_arch_info.
2208
48448202
AB
22092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2210
2211 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2212 initializer.
2213 * c-lang.c (c_language_data): Likewise.
2214 (cplus_language_data): Likewise.
2215 (cplus_language::pass_by_reference_info): New method.
2216 (asm_language_data): Delete la_pass_by_reference initializer.
2217 (minimal_language_data): Likewise.
2218 * cp-abi.c (cp_pass_by_reference): Remove use of
2219 default_pass_by_reference.
2220 * d-lang.c (d_language_data): Likewise.
2221 * f-lang.c (f_language_data): Likewise.
2222 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2223 default_pass_by_reference.
2224 * go-lang.c (go_language_data): Likewise.
2225 * language.c (language_pass_by_reference): Update.
2226 (default_pass_by_reference): Delete.
2227 (unknown_language_data): Delete la_pass_by_reference
2228 initializer.
2229 (auto_language_data): Likewise.
2230 * language.h (struct language_data): Delete la_pass_by_reference
2231 field.
2232 (language_defn::pass_by_reference_info): New member function.
2233 (default_pass_by_reference): Delete declaration.
2234 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2235 initializer.
2236 * objc-lang.c (objc_language_data): Likewise.
2237 * opencl-lang.c (opencl_language_data): Likewise.
2238 * p-lang.c (pascal_language_data): Likewise.
2239 * rust-lang.c (rust_language_data): Likewise.
2240
15e5fd35
AB
22412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2242
2243 * ada-lang.c (ada_read_var_value): Delete function, move
2244 implementation to...
2245 (ada_language::read_var_value): ...here.
2246 (ada_language_data): Delete la_read_var_value initializer.
2247 * c-lang.c (c_language_data): Likewise.
2248 (cplus_language_data): Likewise.
2249 (minimal_language_data): Likewise.
2250 * d-lang.c (d_language_data): Likewise.
2251 * f-lang.c (f_language_data): Likewise.
2252 * findvar.c (default_read_var_value): Rename to...
2253 (language_defn::read_var_value): ...this.
2254 * findvar.c (read_var_value): Update header comment, and change to
2255 call member function instead of function pointer.
2256 * go-lang.c (go_language_data): Likewise.
2257 * language.c (unknown_language_data): Delete la_read_var_value
2258 initializer.
2259 (auto_language_data): Likewise.
2260 * language.h (struct language_data): Delete la_read_var_value
2261 field.
2262 (language_defn::read_var_value): New member function.
2263 (default_read_var_value): Delete declaration.
2264 * m2-lang.c (m2_language_data): Delete la_read_var_value
2265 initializer.
2266 * objc-lang.c (objc_language_data): Likewise.
2267 * opencl-lang.c (opencl_language_data): Likewise.
2268 * p-lang.c (pascal_language_data): Likewise.
2269 * rust-lang.c (rust_language_data): Likewise.
2270 * value.h (default_read_var_value): Delete declaration.
2271
5bd40f2a
AB
22722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2273
2274 * ada-lang.c (ada_print_array_index): Delete function, move
2275 implementation to...
2276 (ada_language::print_array_index): ...here.
2277 (ada_language_data): Delete la_print_array_index initializer.
2278 * c-lang.c (c_language_data): Likewise.
2279 (cplus_language_data): Likewise.
2280 (minimal_language_data): Likewise.
2281 * d-lang.c (d_language_data): Likewise.
2282 * f-lang.c (f_language_data): Likewise.
2283 * go-lang.c (go_language_data): Likewise.
2284 * language.c (default_print_array_index): Delete function, move
2285 implementation to...
2286 (language_defn::print_array_index): ...here.
2287 (unknown_language_data): Delete la_print_array_index initializer.
2288 (auto_language_data): Likewise.
2289 * language.h (struct language_data): Delete la_print_array_index
2290 field.
2291 (language_defn::print_array_index): New member function.
2292 (LA_PRINT_ARRAY_INDEX): Update.
2293 (default_print_array_index): Delete declaration.
2294 * m2-lang.c (m2_language_data): Delete la_print_array_index
2295 initializer.
2296 * objc-lang.c (objc_language_data): Likewise.
2297 * opencl-lang.c (opencl_language_data): Likewise.
2298 * p-lang.c (pascal_language_data): Likewise.
2299 * rust-lang.c (rust_language_data): Likewise.
2300
0874fd07
AB
23012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2302
2303 * gdb/ada-lang.c (ada_language_defn): Convert to...
2304 (ada_language_data): ...this.
2305 (class ada_language): New class.
2306 (ada_language_defn): New static global.
2307 * gdb/c-lang.c (c_language_defn): Convert to...
2308 (c_language_data): ...this.
2309 (class c_language): New class.
2310 (c_language_defn): New static global.
2311 (cplus_language_defn): Convert to...
2312 (cplus_language_data): ...this.
2313 (class cplus_language): New class.
2314 (cplus_language_defn): New static global.
2315 (asm_language_defn): Convert to...
2316 (asm_language_data): ...this.
2317 (class asm_language): New class.
2318 (asm_language_defn): New static global.
2319 (minimal_language_defn): Convert to...
2320 (minimal_language_data): ...this.
2321 (class minimal_language): New class.
2322 (minimal_language_defn): New static global.
2323 * gdb/d-lang.c (d_language_defn): Convert to...
2324 (d_language_data): ...this.
2325 (class d_language): New class.
2326 (d_language_defn): New static global.
2327 * gdb/f-lang.c (f_language_defn): Convert to...
2328 (f_language_data): ...this.
2329 (class f_language): New class.
2330 (f_language_defn): New static global.
2331 * gdb/go-lang.c (go_language_defn): Convert to...
2332 (go_language_data): ...this.
2333 (class go_language): New class.
2334 (go_language_defn): New static global.
2335 * gdb/language.c (unknown_language_defn): Remove declaration.
2336 (current_language): Initialize to nullptr, real initialization is
2337 moved to _initialize_language.
2338 (languages): Delete global.
2339 (language_defn::languages): Define.
2340 (set_language_command): Use language_defn::languages.
2341 (set_language): Likewise.
2342 (range_error): Likewise.
2343 (language_enum): Likewise.
2344 (language_def): Likewise.
2345 (add_set_language_command): Use language_def::languages for the
2346 language list, and language_def to lookup language pointers.
2347 (skip_language_trampoline): Use language_defn::languages.
2348 (unknown_language_defn): Convert to...
2349 (unknown_language_data): ...this.
2350 (class unknown_language): New class.
2351 (unknown_language_defn): New static global.
2352 (auto_language_defn): Convert to...
2353 (auto_language_data): ...this.
2354 (class auto_language): New class.
2355 (auto_language_defn): New static global.
2356 (language_gdbarch_post_init): Use language_defn::languages.
2357 (_initialize_language): Initialize current_language.
2358 * gdb/language.h (struct language_defn): Rename to...
2359 (struct language_data): ...this.
2360 (struct language_defn): New.
2361 (auto_language_defn): Delete.
2362 (unknown_language_defn): Delete.
2363 (minimal_language_defn): Delete.
2364 (ada_language_defn): Delete.
2365 (asm_language_defn): Delete.
2366 (c_language_defn): Delete.
2367 (cplus_language_defn): Delete.
2368 (d_language_defn): Delete.
2369 (f_language_defn): Delete.
2370 (go_language_defn): Delete.
2371 (m2_language_defn): Delete.
2372 (objc_language_defn): Delete.
2373 (opencl_language_defn): Delete.
2374 (pascal_language_defn): Delete.
2375 (rust_language_defn): Delete.
2376 * gdb/m2-lang.c (m2_language_defn): Convert to...
2377 (m2_language_data): ...this.
2378 (class m2_language): New class.
2379 (m2_language_defn): New static global.
2380 * gdb/objc-lang.c (objc_language_defn): Convert to...
2381 (objc_language_data): ...this.
2382 (class objc_language): New class.
2383 (objc_language_defn): New static global.
2384 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2385 (opencl_language_data): ...this.
2386 (class opencl_language): New class.
2387 (opencl_language_defn): New static global.
2388 * gdb/p-lang.c (pascal_language_defn): Convert to...
2389 (pascal_language_data): ...this.
2390 (class pascal_language): New class.
2391 (pascal_language_defn): New static global.
2392 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2393 language pointer, update comment format.
2394 * gdb/rust-lang.c (rust_language_defn): Convert to...
2395 (rust_language_data): ...this.
2396 (class rust_language): New class.
2397 (rust_language_defn): New static global.
2398
1313c56e
AB
23992020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2400
2401 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2402 member variable.
2403 <m_stmt_at_address>: New member variable.
2404 (lnp_state_machine::record_line): Don't record some lines, update
2405 tracking of is_stmt at the same address.
2406 (lnp_state_machine::lnp_state_machine): Initialise new member
2407 variables.
2408
b7ed9f3d
ST
24092020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2410
2411 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2412 "-include gnu-nat-mig.h".
2413 * gnu-nat-mig.h: New file.
2414 * gnu-nat.c: Include "gnu-nat-mig.h".
2415 (exc_server, msg_reply_server, notify_server,
2416 process_reply_server): Remove declarations.
2417
14a8ad62
ST
24182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2419
2420 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2421 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2422 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2423 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2424 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2425 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2426 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2427 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2428 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2429 to gnu_nat_target class.
2430 * gnu-nat.c: Likewise.
2431 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2432 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2433 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2434 object.
2435 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2436 instead of `gnu_target'.
2437
0af5e106
ST
24382020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2439
2440 * i386-gnu-tdep.c: Include "gdbcore.h"
2441 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2442 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2443 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2444 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2445 i386_gnu_sigcontext_addr): New functions
2446 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2447 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2448 tdep.
2449
078f2fc9
ST
24502020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2451
2452 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2453 before fork_inferior call. Avoid calling it if target_is_pushed returns
2454 true.
2455
53dff92c
ST
24562020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2457
2458 * gnu-nat.h (gnu_target): New variable declaration.
2459 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2460 gnu_target.
2461 * gnu-nat.c (gnu_target): New variable.
2462 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2463 add_thread_silent, and add_thread calls.
2464 (gnu_nat_target::create_inferior): Pass gnu_target to
2465 add_thread_silent, thread_change_ptid call.
2466 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2467 call.
2468
5a8b8627
ST
24692020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2470
2471 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2472 (gnu_nat_target::find_memory_regions): Remove unused
2473 `old_address' variable.
2474
366f550a
ST
24752020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2476
2477 * gnu-nat.c: Include "gdbarch.h".
2478
f14871bf
ST
24792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2480
2481 * reply_mig_hack.awk (Error return): Cast function through
2482 void *, to bypass compiler function call check.
2483
c6887cfb
ST
24842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2485
2486 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2487 $(srcdir)/reply_mig_hack.awk.
2488
6930bffe
ST
24892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2490
2491 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2492
112c22ed
JG
24932020-05-30 Jonny Grant <jg@jguk.org>
2494
2495 * configure.ac (ACX_BUGURL): change bug URL to https.
2496
f68f85b5
PA
24972020-05-30 Pedro Alves <palves@redhat.com>
2498
2499 * cp-support.c (replace_typedefs_template): New.
2500 (replace_typedefs_qualified_name): Handle
2501 DEMANGLE_COMPONENT_TEMPLATE.
2502
976ca316
SM
25032020-05-29 Simon Marchi <simon.marchi@efficios.com>
2504
2505 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2506 dwarf2/index-cache.h, dwarf2/index-write.c,
2507 dwarf2/index-write.h, dwarf2/line-header.c,
2508 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2509 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2510 variables and fields from `dwarf2_per_objfile` to just
2511 `per_objfile` throughout.
2512
989ade05
SM
25132020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2514
2515 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2516 <push_dwarf_reg_entry_value>: Add comment.
2517
c47bae85
KB
25182020-05-28 Kevin Buettner <kevinb@redhat.com>
2519 Keith Seitz <keiths@redhat.com>
2520
2521 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2522 instead of PyEval_ReleaseLock.
2523 (class gdbpy_gil): Move to earlier in file.
2524 (finalize_python): Set gdb_python_initialized.
2525 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2526 when not initialized.
2527
44486dcf
SM
25282020-05-28 Simon Marchi <simon.marchi@efficios.com>
2529
2530 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2531 <push_dwarf_reg_entry_value>: Remove assert. Override
2532 per_objfile with caller_per_objfile.
2533
f030440d
TV
25342020-05-28 Tom de Vries <tdevries@suse.de>
2535
2536 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2537 PR gold/15646 workaround to symbol kind "type".
2538
f0fbb768
TT
25392020-05-27 Tom Tromey <tromey@adacore.com>
2540
2541 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2542
af0b2a3e
TT
25432020-05-27 Tom Tromey <tromey@adacore.com>
2544
2545 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2546 Use htab_find_with_hash.
2547 <add_abbrev>: Remove "abbrev_number" parameter.
2548 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2549 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2550 (hash_abbrev): Add comment.
2551 (abbrev_table::lookup_abbrev): Move to header file.
2552 (abbrev_table::read): Update.
2553
7d00ffec
TT
25542020-05-27 Tom Tromey <tromey@adacore.com>
2555
2556 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2557 method.
2558 <canonical_name>: New member.
2559 <raw_name>: Rename from "name".
2560 (partial_die_info): Initialize canonical_name.
2561 (scan_partial_symbols): Check raw_name.
2562 (partial_die_parent_scope, partial_die_full_name)
2563 (add_partial_symbol, add_partial_subprogram)
2564 (add_partial_enumeration, load_partial_dies): Use "name" method.
2565 (partial_die_info::name): New method.
2566 (partial_die_info::read, guess_partial_die_structure_name)
2567 (partial_die_info::fixup): Update.
2568
697bba18
TT
25692020-05-27 Tom Tromey <tromey@adacore.com>
2570
2571 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2572 <get_ref_die_offset>: Inline.
2573 <get_ref_die_offset_complaint>: New method.
2574 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2575 (attribute::get_ref_die_offset_complaint): Rename from
2576 get_ref_die_offset. Just issue complaint.
2577
c17ace43
HD
25782020-05-27 Hannes Domani <ssbssa@yahoo.de>
2579
2580 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2581
96445f0b
HD
25822020-05-27 Hannes Domani <ssbssa@yahoo.de>
2583
2584 * exec.c (exec_file_attach): Use errno value of first openp failure.
2585
ac637ec3
HD
25862020-05-27 Hannes Domani <ssbssa@yahoo.de>
2587
2588 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2589 Don't close thread handle.
2590
17ee85fc
TT
25912020-05-27 Tom Tromey <tom@tromey.com>
2592 Simon Marchi <simon.marchi@efficios.com>
2593
2594 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2595 shared_ptr.
2596 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2597 member.
2598 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2599 dwarf2_per_bfd_objfile_data_key>: New globals.
2600 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2601 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2602 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2603 shared.
2604 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2605 short-circuit when sharing.
2606 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2607 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2608
39b16f87
SM
26092020-05-27 Simon Marchi <simon.marchi@efficios.com>
2610
2611 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2612 to...
2613 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2614 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2615
fcf23d5b
SM
26162020-05-27 Simon Marchi <simon.marchi@efficios.com>
2617
2618 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2619 build_name_components, find_name_components_bounds>:
2620 Add per_objfile parameter.
2621 (struct mapped_index) <symbol_name_at>: Likewise.
2622 (struct mapped_debug_names): Remove constructor.
2623 <dwarf2_per_objfile>: Remove field.
2624 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2625 (mapped_index_base::find_name_components_bounds,
2626 mapped_index_base::build_name_components,
2627 dw2_expand_symtabs_matching_symbol): Likewise.
2628 (class mock_mapped_index) <symbol_name_at>: Likewise.
2629 (check_match): Likewise.
2630 (check_find_bounds_finds): Likewise.
2631 (test_mapped_index_find_name_component_bounds): Update.
2632 (CHECK_MATCH): Update.
2633 (dw2_expand_symtabs_matching): Update.
2634 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2635 per_objfile parameter.
2636 <find_vec_in_debug_names>: Likewise.
2637 <m_per_objfile>: New field.
2638 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2639 parameter.
2640 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2641 (dw2_debug_names_iterator::next): Update.
2642 (dw2_debug_names_lookup_symbol): Update.
2643 (dw2_debug_names_expand_symtabs_for_function): Update.
2644 (dw2_debug_names_map_matching_symbols): Update.
2645 (dw2_debug_names_expand_symtabs_matching): Update.
2646 (dwarf2_read_debug_names): Update.
2647
7188ed02
SM
26482020-05-27 Simon Marchi <simon.marchi@efficios.com>
2649
2650 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2651 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2652 move to dwarf2_per_objfile.
2653 <read_in_chain>: Remove.
2654 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2655 remove_all_cus, age_comp_units>: New methods.
2656 <m_dwarf2_cus>: New member.
2657 (struct dwarf2_per_cu_data) <cu>: Remove.
2658 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2659 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2660 moved to methods of dwarf2_per_objfile.
2661 (dwarf2_clear_marks): Remove.
2662 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2663 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2664 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2665 (dwarf2_per_objfile::remove_all_cus): New.
2666 (class free_cached_comp_units) <~free_cached_comp_units>:
2667 Update.
2668 (load_cu): Update.
2669 (dw2_do_instantiate_symtab): Adjust.
2670 (fill_in_sig_entry_from_dwo_entry): Adjust.
2671 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2672 (cutu_reader::cutu_reader): Likewise.
2673 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2674 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2675 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2676 and dwarf2_per_objfile::age_comp_units.
2677 (load_partial_comp_unit): Update.
2678 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2679 (process_queue): Likewise.
2680 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2681 backlink.
2682 (dwarf2_read_addr_index): Likewise.
2683 (follow_die_offset): Likewise.
2684 (dwarf2_fetch_die_loc_sect_off): Likewise.
2685 (dwarf2_fetch_constant_bytes): Likewise.
2686 (dwarf2_fetch_die_type_sect_off): Likewise.
2687 (follow_die_sig_1): Likewise.
2688 (load_full_type_unit): Likewise.
2689 (read_signatured_type): Likewise.
2690 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2691 (dwarf2_cu::~dwarf2_cu): Remove.
2692 (dwarf2_per_objfile::get_cu): New.
2693 (dwarf2_per_objfile::set_cu): New.
2694 (age_cached_comp_units): Rename to...
2695 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2696 to std::unordered_map.
2697 (free_one_cached_comp_unit): Rename to...
2698 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2699 to std::unordered_map.
2700 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2701 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2702 a dwarf2_per_objfile in data.
2703 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2704 (dwarf2_clear_marks): Remove.
2705
2e671100
SM
27062020-05-27 Simon Marchi <simon.marchi@efficios.com>
2707
2708 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2709 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2710 (init_tu_and_read_dwo_dies): Likewise.
2711 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2712 (cutu_reader::cutu_reader): Likewise.
2713 (load_partial_comp_unit): Likewise.
2714 (process_psymtab_comp_unit): Update.
2715 (build_type_psymtabs_1): Update.
2716 (process_skeletonless_type_unit): Update.
2717 (load_full_comp_unit): Update.
2718 (find_partial_die): Update.
2719 (dwarf2_read_addr_index): Update.
2720 (read_signatured_type): Update.
2721
2e6a9f79
SM
27222020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2723
2724 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2725 m_header_read_in>: New fields.
2726 <get_header>: New method.
2727 * dwarf2/read.c (per_cu_header_read_in): Remove.
2728 (dwarf2_per_cu_data::get_header): New.
2729 (dwarf2_per_cu_data::addr_size): Update.
2730 (dwarf2_per_cu_data::offset_size): Update.
2731 (dwarf2_per_cu_data::ref_addr_size): Update.
2732
1b555f17
SM
27332020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2734
2735 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2736 (dw2_do_instantiate_symtab): Update.
2737 (queue_and_load_all_dwo_tus): Change parameter from
2738 dwarf2_per_cu_data to dwarf2_cu.
2739 (dwarf2_fetch_die_loc_sect_off): Update.
2740 (dwarf2_fetch_constant_bytes): Update.
2741 (dwarf2_fetch_die_type_sect_off): Update.
2742
8fc0b21d
SM
27432020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2744
2745 * dwarf2/read.c (process_full_comp_unit,
2746 process_full_type_unit): Remove per_cu, per_objfile paramters.
2747 Add dwarf2_cu parameter.
2748 (process_queue): Update.
2749
168c9250
SM
27502020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2751
2752 * dwarf2/read.c (create_cu_from_index_list): Replace
2753 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2754 (create_cus_from_index_list): Likewise.
2755 (create_cus_from_index): Likewise.
2756 (create_signatured_type_table_from_index): Likewise.
2757 (create_cus_from_debug_names_list): Likewise.
2758 (create_cus_from_debug_names): Likewise.
2759 (dwarf2_read_gdb_index): Update.
2760 (dwarf2_read_debug_names): Update.
2761
e286671b
TT
27622020-05-27 Tom Tromey <tom@tromey.com>
2763 Simon Marchi <simon.marchi@efficios.com>
2764
2765 * dwarf2/read.h (struct dwarf2_per_objfile)
2766 <get_type_for_signatured_type, set_type_for_signatured_type>:
2767 New methods.
2768 <m_type_map>: New member.
2769 (struct signatured_type) <type>: Remove.
2770 * dwarf2/read.c
2771 (dwarf2_per_objfile::get_type_for_signatured_type,
2772 dwarf2_per_objfile::set_type_for_signatured_type): New.
2773 (get_signatured_type): Use new methods.
2774
8adb8487
TT
27752020-05-27 Tom Tromey <tom@tromey.com>
2776 Simon Marchi <simon.marchi@efficios.com>
2777
2778 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2779 (struct dwarf2_per_objfile) <type_units>: New member.
2780 <get_type_unit_group_unshareable>: New method.
2781 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2782 num_symtabs, symtabs>: Remove; move to
2783 type_unit_group_unshareable.
2784 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2785 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2786 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2787
127bbf4b
SM
27882020-05-27 Simon Marchi <simon.marchi@efficios.com>
2789
2790 * dwarf2/read.h (struct dwarf2_per_cu_data):
2791 <dwarf2_per_objfile>: Remove.
2792 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2793 dwarf2_per_objfile.
2794 (create_signatured_type_table_from_index): Likewise.
2795 (create_signatured_type_table_from_debug_names): Likewise.
2796 (create_debug_type_hash_table): Likewise.
2797 (fill_in_sig_entry_from_dwo_entry): Likewise.
2798 (create_type_unit_group): Likewise.
2799 (read_comp_units_from_section): Likewise.
2800 (create_cus_hash_table): Likewise.
2801
f6e649dd
SM
28022020-05-27 Simon Marchi <simon.marchi@efficios.com>
2803
2804 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2805 dwarf2_per_cu_data::dwarf2_per_objfile.
2806 (compute_compunit_symtab_includes): Likewise.
2807 (dwarf2_cu::start_symtab): Likewise.
2808
aa66c379
SM
28092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2810
2811 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2812 parameter.
2813 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2814 (read_namespace_alias): Update.
2815 (lookup_die_type): Update.
2816 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2817 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2818 Update.
2819 (disassemble_dwarf_expression): Update.
2820
120ce1b5
SM
28212020-05-27 Simon Marchi <simon.marchi@efficios.com>
2822
2823 * dwarf2/read.h (struct dwarf2_queue_item): Add
2824 dwarf2_per_objfile parameter, assign new parameter.
2825 <per_objfile>: New field.
2826 * dwarf2/read.c (free_one_cached_comp_unit): Add
2827 dwarf2_per_objfile parameter.
2828 (queue_comp_unit): Likewise.
2829 (dw2_do_instantiate_symtab): Update.
2830 (process_psymtab_comp_unit): Update.
2831 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2832 (process_imported_unit_die): Update.
2833 (queue_and_load_dwo_tu): Update.
2834 (follow_die_offset): Update.
2835 (follow_die_sig_1): Update.
2836
9f47c707
SM
28372020-05-27 Simon Marchi <simon.marchi@efficios.com>
2838
2839 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2840 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2841 (read_call_site_scope): Assign per_objfile.
2842 (dwarf2_per_cu_data::objfile): Remove.
2843 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2844 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2845 dwarf2_per_objfile parameter.
2846 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2847 dwarf2_per_objfile parameter.
2848 (dwarf_expr_reg_to_entry_parameter): Add output
2849 dwarf2_per_objfile parameter.
2850 (locexpr_get_frame_base): Update.
2851 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2852 <push_dwarf_reg_entry_value>: Update.
2853 <call_site_to_target_addr>: Update.
2854 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2855 parameter.
2856 (value_of_dwarf_reg_entry): Update.
2857 (rw_pieced_value): Update.
2858 (indirect_synthetic_pointer): Update.
2859 (dwarf2_evaluate_property): Update.
2860 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2861 parameter.
2862 (locexpr_read_variable): Update.
2863 (locexpr_get_symbol_read_needs): Update.
2864 (loclist_read_variable): Update.
2865
14095eb3
SM
28662020-05-27 Simon Marchi <simon.marchi@efficios.com>
2867
2868 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2869 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2870 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2871 parameter.
2872 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2873 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2874 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2875 parameter.
2876 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2877 sect_variable_value): Add dwarf2_per_objfile parameter.
2878 (class dwarf_evaluate_loc_desc) <dwarf_call,
2879 dwarf_variable_value>: Update.
2880 (fetch_const_value_from_synthetic_pointer): Add
2881 dwarf2_per_objfile parameter.
2882 (fetch_const_value_from_synthetic_pointer): Update.
2883 (coerced_pieced_ref): Update.
2884 (class symbol_needs_eval_context) <dwarf_call,
2885 dwarf_variable_value>: Update.
2886 (dwarf2_compile_expr_to_ax): Update.
2887
3c3cd3d4
SM
28882020-05-27 Simon Marchi <simon.marchi@efficios.com>
2889
2890 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2891 parameter.
2892 (dwarf2_evaluate_loc_desc_full): Update.
2893
82ca3f51
SM
28942020-05-27 Simon Marchi <simon.marchi@efficios.com>
2895
2896 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2897 parameter.
2898 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2899 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2900 dwarf2_per_objfile parameter.
2901 (decode_debug_loc_dwo_addresses): Likewise.
2902 (dwarf2_find_location_expression): Update.
2903 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2904 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2905 parameter.
2906 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2907 parameter.
2908 (locexpr_describe_location_1): Likewise.
2909 (locexpr_describe_location): Update.
2910
4b167ea1
SM
29112020-05-27 Simon Marchi <simon.marchi@efficios.com>
2912
2913 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2914 Remove.
2915 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2916 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2917 (dwarf2_compile_property_to_c): Update.
2918 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2919 use text offset from objfile.
2920 (locexpr_tracepoint_var_ref): Update.
2921 (locexpr_generate_c_location): Update.
2922 (loclist_describe_location): Update.
2923 (loclist_tracepoint_var_ref): Update.
2924 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2925 dwarf2_per_objfile parameter.
2926 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2927 use text offset from objfile.
2928 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2929
89b07335
SM
29302020-05-27 Simon Marchi <simon.marchi@efficios.com>
2931
2932 * dwarf2/expr.h (struct dwarf_expr_context)
2933 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2934 <offset>: Remove.
2935 <per_objfile>: New member.
2936 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2937 dwarf2_per_objfile parameter. Don't set offset, set
2938 per_objfile.
2939 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2940 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2941 a dwarf2_per_objfile object instead of an offset.
2942 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2943 constructor.
2944 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2945 to dwarf2_expr_executor constructor. Don't set offset.
2946 (dwarf2_fetch_cfa_info): Update.
2947 (struct dwarf2_frame_cache) <text_offset>: Remove.
2948 <per_objfile>: New field.
2949 (dwarf2_frame_cache): Update.
2950 (dwarf2_frame_prev_register): Update.
2951 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2952 <dwarf_evaluate_loc_desc>: Add constructor.
2953 (dwarf2_evaluate_loc_desc_full): Update.
2954 (dwarf2_locexpr_baton_eval): Update.
2955 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2956 Add constructor.
2957 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2958
293e7e51
SM
29592020-05-27 Simon Marchi <simon.marchi@efficios.com>
2960
2961 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2962 addr_sized_int_type>: Move to dwarf2_cu.
2963 <int_type>: Move to dwarf2_per_objfile.
2964 (struct dwarf2_per_objfile) <int_type>: Move here.
2965 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2966 addr_sized_int_type>: Move here.
2967 (read_func_scope): Update.
2968 (read_array_type): Update.
2969 (read_tag_string_type): Update.
2970 (attr_to_dynamic_prop): Update.
2971 (dwarf2_per_cu_data::int_type): Rename to...
2972 (dwarf2_per_objfile::int_type): ... this.
2973 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2974 (dwarf2_cu::addr_sized_int_type): ... this.
2975 (read_subrange_type): Update.
2976 (dwarf2_per_cu_data::addr_type): Rename to...
2977 (dwarf2_cu::addr_type): ... this.
2978 (set_die_type): Update.
2979
64874a40
SM
29802020-05-27 Simon Marchi <simon.marchi@efficios.com>
2981
2982 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2983 data through per_cu->cu.
2984
4ab09049
SM
29852020-05-27 Simon Marchi <simon.marchi@efficios.com>
2986
2987 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2988 dwarf2_per_cu_data parameter fo dwarf2_cu.
2989 (lookup_dwo_type_unit): Likewise.
2990 (read_cutu_die_from_dwo): Likewise.
2991 (lookup_dwo_unit): Likewise.
2992 (open_and_init_dwo_file): Likewise.
2993 (lookup_dwo_cutu): Likewise.
2994 (lookup_dwo_comp_unit): Likewise.
2995 (lookup_dwo_type_unit): Likewise.
2996 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2997 (cutu_reader::cutu_reader): Update.
2998
47b14e86
SM
29992020-05-27 Simon Marchi <simon.marchi@efficios.com>
3000
3001 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3002 parameter.
3003 (process_full_type_unit): Likewise.
3004 (process_queue): Update.
3005
43182c09
SM
30062020-05-27 Simon Marchi <simon.marchi@efficios.com>
3007
3008 * dwarf2/read.c (recursively_compute_inclusions): Add
3009 dwarf2_per_objfile parameter.
3010 (compute_compunit_symtab_includes): Likewise.
3011 (process_cu_includes): Update.
3012
7aa104c4
SM
30132020-05-27 Simon Marchi <simon.marchi@efficios.com>
3014
3015 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3016 parameter.
3017 (create_type_unit_group): Update.
3018 (process_psymtab_comp_unit_reader): Update.
3019 (build_type_psymtabs_reader): Update.
3020
e3beb21d
SM
30212020-05-27 Simon Marchi <simon.marchi@efficios.com>
3022
3023 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3024 object through m_this_cu->cu.
3025
d460f660
SM
30262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3027
3028 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3029 the info parameter.
3030 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3031
ab432490
SM
30322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3033
3034 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3035 per_objfile parameter.
3036 (load_full_type_unit): Add per_objfile parameter.
3037 (read_signatured_type): Likewise.
3038 (load_full_comp_unit): Likewise.
3039 (load_cu): Likewise.
3040 (dw2_do_instantiate_symtab): Likewise.
3041 (dw2_get_file_names): Likewise.
3042 (dw2_map_symtabs_matching_filename): Update.
3043 (dw_expand_symtabs_matching_file_matcher): Update.
3044 (dw2_map_symbol_filenames): Update.
3045 (process_psymtab_comp_unit): Add per_objfile parameter.
3046 (build_type_psymtabs_1): Update.
3047 (process_skeletonless_type_unit): Update.
3048 (dwarf2_build_psymtabs_hard): Update.
3049 (load_partial_comp_unit): Add per_objfile parameter.
3050 (scan_partial_symbols): Update.
3051 (load_full_comp_unit): Add per_objfile parameter.
3052 (process_imported_unit_die): Update.
3053 (create_cus_hash_table): Update.
3054 (find_partial_die): Update.
3055 (dwarf2_read_addr_index): Update.
3056 (follow_die_offset): Update.
3057 (dwarf2_fetch_die_loc_sect_off): Update.
3058 (dwarf2_fetch_constant_bytes): Update.
3059 (dwarf2_fetch_die_type_sect_off): Update.
3060 (follow_die_sig_1): Update.
3061 (load_full_type_unit): Add per_objfile parameter.
3062 (read_signatured_type): Likewise.
3063
313bad1b
SM
30642020-05-27 Simon Marchi <simon.marchi@efficios.com>
3065
3066 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3067 of objfile_name.
3068
c3699833
SM
30692020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3070
3071 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3072 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3073 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3074 field.
3075 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3076 (create_cus_from_index): Update.
3077 (dwarf2_read_gdb_index): Update.
3078 (create_cus_from_debug_names): Update.
3079 (dwarf2_read_debug_names): Update.
3080 (get_abbrev_section_for_cu): Update.
3081 (create_all_comp_units): Update.
3082 (read_attribute_value): Update.
3083 (get_debug_line_section): Update.
3084 * dwarf2/index-cache.c (index_cache::store): Update.
3085 * dwarf2/index-write.c (save_gdb_index_command): Update.
3086 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3087
1859c670
SM
30882020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3089
3090 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3091 member.
3092 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3093 dwarf2_per_cu_data::per_bfd.
3094 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3095 (create_type_unit_group): Likewise.
3096 (queue_comp_unit): Remove reference to
3097 per_cu->dwarf2_per_objfile.
3098 (maybe_queue_comp_unit): Likewise.
3099 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3100 (create_cus_hash_table): Assign new field.
3101
5e22e966
SM
31022020-05-27 Simon Marchi <simon.marchi@efficios.com>
3103
3104 * dwarf2/read.c: Replace
3105 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3106 dwarf2_cu->per_objfile throughout.
3107
97a1449a
SM
31082020-05-27 Simon Marchi <simon.marchi@efficios.com>
3109
3110 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3111 parameter, don't use per_cu->dwarf2_per_objfile.
3112 (dw2_instantiate_symtab): Likewise.
3113 (dw2_find_last_source_symtab): Update.
3114 (dw2_map_expand_apply): Update.
3115 (dw2_lookup_symbol): Update.
3116 (dw2_expand_symtabs_for_function): Update.
3117 (dw2_expand_all_symtabs): Update.
3118 (dw2_expand_symtabs_with_fullname): Update.
3119 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3120 don't use per_cu->dwarf2_per_objfile.
3121 (dw2_expand_marked_cus): Update.
3122 (dw2_find_pc_sect_compunit_symtab): Update.
3123 (dw2_debug_names_lookup_symbol): Update.
3124 (dw2_debug_names_expand_symtabs_for_function): Update.
3125 (dw2_debug_names_map_matching_symbols): Update.
3126 (dwarf2_psymtab::expand_psymtab): Update.
3127
9e021579
SM
31282020-05-27 Simon Marchi <simon.marchi@efficios.com>
3129
3130 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3131 <per_objfile>: New member.
3132 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3133 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3134 call to dwarf2_cu.
3135 (cutu_reader::cutu_reader): Update.
3136 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3137
ae090bdb
SM
31382020-05-27 Simon Marchi <simon.marchi@efficios.com>
3139
3140 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3141 struct dwarf2_per_objfile.
3142 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3143 dwarf2_per_bfd.
3144 * dwarf2/read.c (set_die_type): Update.
3145 (get_die_type_at_offset): Update.
3146
af758d11
SM
31472020-05-27 Tom Tromey <tom@tromey.com>
3148 Simon Marchi <simon.marchi@efficios.com>
3149
3150 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3151 method.
3152 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3153 get_symtab, set_symtab>: New methods.
3154 <m_symtabs>: New field.
3155 (struct dwarf2_psymtab): Derive from partial_symtab.
3156 <readin_p, get_compunit_symtab>: Declare methods.
3157 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3158 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3159 New methods.
3160 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3161 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3162 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3163 (dw2_symtab_iter_next, dw2_print_stats)
3164 (dw2_expand_symtabs_with_fullname)
3165 (dw2_expand_symtabs_matching_one)
3166 (dw_expand_symtabs_matching_file_matcher)
3167 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3168 (dw2_debug_names_iterator::next)
3169 (dw2_debug_names_map_matching_symbols)
3170 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3171 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3172 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3173 New methods.
3174 (get_compunit_symtab, process_full_comp_unit)
3175 (process_full_type_unit): Update.
3176 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3177
5989a64e
SM
31782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3179
3180 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3181 then introduce a new dwarf2_per_objfile type.
3182 <read_line_string>: Move to the new dwarf2_per_objfile type.
3183 <objfile>: Likewise.
3184 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3185 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3186 dwarf2_per_objfile->per_bfd.
3187 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3188 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3189 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3190 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3191 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3192 (dwarf2_per_objfile::locate_sections): Rename to...
3193 (dwarf2_per_bfd::locate_sections): ... this.
3194 (dwarf2_per_objfile::get_cutu): Rename to...
3195 (dwarf2_per_bfd::get_cutu): ... this.
3196 (dwarf2_per_objfile::get_cu): Rename to...
3197 (dwarf2_per_bfd::get_cu): ... this.
3198 (dwarf2_per_objfile::get_tu): Rename to...
3199 (dwarf2_per_bfd::get_tu): ... this.
3200 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3201 (dwarf2_per_bfd::allocate_per_cu): ... this.
3202 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3203 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3204 (get_gdb_index_contents_ftype): Change parameter from
3205 dwarf2_per_objfile to dwarf2_per_bfd.
3206 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3207 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3208
a50264ba
TT
32092020-05-27 Tom Tromey <tom@tromey.com>
3210 Simon Marchi <simon.marchi@efficios.com>
3211
3212 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3213 (allocate_piece_closure): Set "per_objfile" member.
3214 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3215 (locexpr_describe_location, loclist_describe_location): Use new
3216 member.
3217 * dwarf2/read.c (read_call_site_scope)
3218 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3219 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3220 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3221 handle_data_member_location): Set per_objfile member.
3222 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3223 member.
3224 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3225
d3473f0c
TT
32262020-05-27 Tom Tromey <tom@tromey.com>
3227
3228 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3229 allocate_signatured_type>: Declare new methods.
3230 <m_num_psymtabs>: New member.
3231 (struct dwarf2_per_cu_data) <index>: New member.
3232 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3233 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3234 (create_cu_from_index_list): Use allocate_per_cu.
3235 (create_signatured_type_table_from_index)
3236 (create_signatured_type_table_from_debug_names)
3237 (create_debug_type_hash_table, add_type_unit)
3238 (read_comp_units_from_section): Use allocate_signatured_type.
3239
5717c425
TT
32402020-05-27 Tom Tromey <tom@tromey.com>
3241
3242 * psymtab.c (partial_map_expand_apply)
3243 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3244 (psym_lookup_global_symbol_language)
3245 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3246 (psym_print_stats, psym_expand_symtabs_for_function)
3247 (psym_map_symbol_filenames, psym_map_matching_symbols)
3248 (psym_expand_symtabs_matching)
3249 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3250 (maintenance_check_psymtabs): Update.
3251 * psympriv.h (struct partial_symtab) <readin_p,
3252 get_compunit_symtab>: Add objfile parameter.
3253 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3254 Likewise.
3255 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3256 get_compunit_symtab>: Likewise.
3257 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3258
45940949
TT
32592020-05-27 Tom Tromey <tom@tromey.com>
3260
3261 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3262 member.
3263 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3264 (create_cu_from_index_list)
3265 (create_signatured_type_table_from_index)
3266 (create_signatured_type_table_from_debug_names)
3267 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3268 (dwarf2_create_include_psymtab)
3269 (create_debug_type_hash_table, add_type_unit)
3270 (create_type_unit_group, read_comp_units_from_section)
3271 (dwarf2_compute_name, create_cus_hash_table)
3272 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3273 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3274 obstack.
3275 (dw2_get_real_path): Likewise. Change argument to
3276 dwarf2_per_objfile.
3277
f8c6d152
LM
32782020-05-27 Luis Machado <luis.machado@linaro.org>
3279
3280 PR tdep/26000
3281 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3282 for ldrd (immediate).
3283
e98d2e6d
PW
32842020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3285
3286 * command.h: Add comment giving the name of class_tui.
3287 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3288 create the fake command for the help for class_tui.
3289
53a47a3e
TT
32902020-05-26 Tom Tromey <tromey@adacore.com>
3291
3292 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3293 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3294 (val_atr): New function.
3295 (value_val_atr): Use it.
3296 * ada-valprint.c (print_optional_low_bound): Change low bound
3297 handling for enums.
3298 (val_print_packed_array_elements): Don't call discrete_position.
3299 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3300 discrete_position for enum types.
3301 * language.c (default_print_array_index): Change type.
3302 * language.h (struct language_defn) <la_print_array_index>: Add
3303 index_type parameter, change type of index_value.
3304 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3305 (default_print_array_index): Update.
3306 * valprint.c (maybe_print_array_index): Don't call
3307 value_from_longest. Update.
3308 (value_print_array_elements): Don't call discrete_position.
3309
0bc2354b
TT
33102020-05-26 Tom Tromey <tromey@adacore.com>
3311
3312 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3313 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3314
1218a4bf
CDA
33152020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3316
3317 PR gdb/13519
3318 * avr-tdep.c (avr_integer_to_address): Return data or code
3319 address accordingly to the second 'type' argument of the
3320 function.
3321
92651b1d
MW
33222020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3323
3324 * infcmd.c, inferior.h: (construct_inferior_arguments):
3325 Moved function from here to gdbsupport/common-inferior.{h,cc}
3326
0a4f5f8c
TT
33272020-05-23 Tom Tromey <tom@tromey.com>
3328
3329 Revert commit eca1f90c:
3330 * NEWS: Remove entry for completion styling.
3331 * completer.c (_rl_completion_prefix_display_length): Move
3332 declaration later.
3333 (gdb_fnprint): Revert.
3334 (gdb_display_match_list_1): Likewise.
3335 * cli/cli-style.c (completion_prefix_style)
3336 (completion_difference_style, completion_suffix_style): Remove.
3337 (_initialize_cli_style): Revert.
3338 * cli/cli-style.h (completion_prefix_style)
3339 (completion_difference_style, completion_suffix_style): Don't
3340 declare.
3341
e08bd6c5
PA
33422020-05-24 Pedro Alves <palves@redhat.com>
3343
3344 * symtab.c (completion_list_add_name): Return boolean indication
3345 of whether the symbol matched.
3346 (completion_list_add_symbol): Don't try to remove C++ aliases if
3347 the symbol didn't match in the first place.
3348 * symtab.h (completion_list_add_name): Return bool.
3349
ceacbf6e
SM
33502020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3351
3352 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3353 type::field.
3354
26f16254
JB
33552020-05-23 Joel Brobecker <brobecker@adacore.com>
3356
3357 GDB 9.2 released.
3358
eca1f90c
TT
33592020-05-23 Tom Tromey <tom@tromey.com>
3360
3361 * NEWS: Add entry for completion styling.
3362 * completer.c (_rl_completion_prefix_display_length): Move
3363 declaration earlier.
3364 (gdb_fnprint): Use completion_style.
3365 (gdb_display_match_list_1): Likewise.
3366 * cli/cli-style.c (completion_prefix_style)
3367 (completion_difference_style, completion_suffix_style): New
3368 globals.
3369 (_initialize_cli_style): Register new globals.
3370 * cli/cli-style.h (completion_prefix_style)
3371 (completion_difference_style, completion_suffix_style): Declare.
3372
51e2cfa2
PA
33732020-05-23 Pedro Alves <palves@redhat.com>
3374
3375 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3376 (parse_escape): Use ISDIGIT instead of isdigit.
3377 (puts_debug): Use gdb_isprint instead of isprint.
3378 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3379 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3380 ISSPACE instead of isspace.
3381 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3382 instead of isspace.
3383 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3384 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3385 instead of isxdigit and ISDIGIT instead of isdigit.
3386
80fc5e77
SM
33872020-05-22 Simon Marchi <simon.marchi@efficios.com>
3388
3389 * gdbtypes.h (struct type) <field>: New method.
3390 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3391 or type::field.
3392
3cabb6b0
SM
33932020-05-22 Simon Marchi <simon.marchi@efficios.com>
3394
3395 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3396 (TYPE_FIELDS): Use type::fields. Change all call sites that
3397 modify the propery to use type::set_fields instead.
3398
1f704f76
SM
33992020-05-22 Simon Marchi <simon.marchi@efficios.com>
3400
3401 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3402 type::num_fields instead.
3403
5e33d5f4
SM
34042020-05-22 Simon Marchi <simon.marchi@efficios.com>
3405
3406 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3407 methods.
3408 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3409 that modify the number of fields to use type::set_num_fields
3410 instead.
3411
9392ebb3
TT
34122020-05-22 Tom Tromey <tromey@adacore.com>
3413
3414 * compile/compile-object-load.h (munmap_list_free): Don't
3415 declare.
3416
7c13f4e8
AB
34172020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3418
3419 * annotate.c (annotate_source_line): Update return type, add call
3420 to update current symtab and line.
3421 * annotate.h (annotate_source_line): Update return type, and
3422 extend header comment.
3423 * source.c (info_line_command): Check annotation_level before
3424 calling annotate_source_line.
3425 * stack.c (print_frame_info): If calling annotate_source_line
3426 returns true, then don't print any other source line information.
3427
aa370940
SM
34282020-05-21 Simon Marchi <simon.marchi@efficios.com>
3429
3430 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3431
84d53fa9
SM
34322020-05-21 Simon Marchi <simon.marchi@efficios.com>
3433
3434 * coffread.c (patch_type): Remove NULL check before xfree.
3435 * corefile.c (set_gnutarget): Likewise.
3436 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3437 * exec.c (build_section_table): Likewise.
3438 * remote.c (remote_target::pass_signals): Likewise.
3439 * utils.c (n_spaces): Likewise.
3440 * cli/cli-script.c (document_command): Likewise.
3441 * i386-windows-tdep.c (core_process_module_section): Likewise.
3442 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3443
9d428aae
SM
34442020-05-20 Simon Marchi <simon.marchi@efficios.com>
3445
3446 * symfile.c (reread_symbols): Clear objfile's section_offsets
3447 vector and section indices, re-compute them by calling
3448 sym_offsets.
3449
250106a7
TT
34502020-05-20 Tom Tromey <tromey@adacore.com>
3451
3452 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3453 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3454
9a0bacfb
TV
34552020-05-20 Tom de Vries <tdevries@suse.de>
3456
3457 PR symtab/25833
3458 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3459
7b958a48
AM
34602020-05-20 Alan Modra <amodra@gmail.com>
3461
3462 PR 25993
3463 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3464 bfd_set_filename.
3465 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3466 passed to bfd_set_filename.
3467 * symfile-mem.c (add_vsyscall_page): Likewise for string
3468 passed to symbol_file_add_from_memory.
3469 (symbol_file_add_from_memory): Make name param a const char* and
3470 don't strdup.
3471
c7e97679
AM
34722020-05-20 Alan Modra <amodra@gmail.com>
3473
3474 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3475 rather than accessing bfd->filename directly.
3476 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3477 and use bfd_section_name.
3478 * dwarf2/frame.c (decode_frame_entry): Likewise.
3479 * exec.c (exec_set_section_address): Likewise.
3480 * solib-aix.c (solib_aix_bfd_open): Likewise.
3481 * stap-probe.c (get_stap_base_address): Likewise.
3482 * symfile.c (reread_symbols): Likewise.
3483
563c591b
TT
34842020-05-19 Tom Tromey <tromey@adacore.com>
3485
3486 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3487
f408d82c
SM
34882020-05-19 Simon Marchi <simon.marchi@efficios.com>
3489
3490 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3491
98c59b52
PA
34922020-05-19 Pedro Alves <palves@redhat.com>
3493
3494 * NEWS (set exec-file-mismatch): Adjust entry.
3495 * exec.c: Include "build-id.h".
3496 (validate_exec_file): Try to match build IDs instead of filenames.
3497 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3498 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3499 and pass down 'warn_if_slow'.
3500 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3501 gdb_bfd_open_closure to pass it down.
3502 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3503
4111f652
PA
35042020-05-19 Pedro Alves <palves@redhat.com>
3505
3506 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3507 * target.c (target_fileio_open_1): Rename to target_fileio_open
3508 and make extern. Use bool.
3509 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3510 (target_fileio_read_alloc_1): Adjust.
3511 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3512 (target_fileio_open_warn_if_slow): Delete declaration.
3513
ad80db5b
PA
35142020-05-19 Pedro Alves <palves@redhat.com>
3515
3516 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3517 Adjust all callers.
3518
1d6ce4d3
YS
35192020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3520
3521 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3522 whether disp is negative.
3523
9005fbbb
SM
35242020-05-19 Simon Marchi <simon.marchi@efficios.com>
3525
3526 * symfile.h (struct symfile_segment_data)
3527 <~symfile_segment_data>: Remove.
3528 <segment_info>: Change to std::vector.
3529 * symfile.c (default_symfile_segments): Update.
3530 * elfread.c (elf_symfile_segments): Update.
3531
68b888ff
SM
35322020-05-19 Simon Marchi <simon.marchi@efficios.com>
3533
3534 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3535 <segments>: New.
3536 <segment_bases, segment_sizes>: Remove.
3537 * symfile.c (default_symfile_segments): Update.
3538 * elfread.c (elf_symfile_segments): Update.
3539 * remote.c (remote_target::get_offsets): Update.
3540 * solib-target.c (solib_target_relocate_section_addresses):
3541 Update.
3542
62982abd
SM
35432020-05-19 Simon Marchi <simon.marchi@efficios.com>
3544
3545 * symfile.h (struct symfile_segment_data): Initialize fields.
3546 <~symfile_segment_data>: Add.
3547 (symfile_segment_data_up): New.
3548 (struct sym_fns) <sym_segments>: Return a
3549 symfile_segment_data_up.
3550 (default_symfile_segments): Return a symfile_segment_data_up.
3551 (free_symfile_segment_data): Remove.
3552 (get_symfile_segment_data): Return a symfile_segment_data_up.
3553 * symfile.c (default_symfile_segments): Likewise.
3554 (get_symfile_segment_data): Likewise.
3555 (free_symfile_segment_data): Remove.
3556 (symfile_find_segment_sections): Update.
3557 * elfread.c (elf_symfile_segments): Return a
3558 symfile_segment_data_up.
3559 * remote.c (remote_target::get_offsets): Update.
3560 * solib-target.c (solib_target_relocate_section_addresses):
3561 Update.
3562 * symfile-debug.c (debug_sym_segments): Return a
3563 symfile_segment_data_up.
3564
7f204339
RO
35652020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3566
e52a0f1b
RO
3567 PR build/25981
3568 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3569 Hardcode register numbers.
3570
7f204339
RO
3571 PR build/25981
3572 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3573 procfs_find_LDT_entry): Remove.
3574 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3575 procfs_find_LDT_entry): Remove.
3576 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3577 Remove.
3578
7f32a4d5
PA
35792020-05-17 Pedro Alves <palves@redhat.com>
3580 Andrew Burgess <andrew.burgess@embecosm.com>
3581 Keno Fischer <keno@juliacomputing.com>
3582
3583 PR gdb/25741
3584 * breakpoint.c (build_target_condition_list): Update comments.
3585 (build_target_command_list): Update comments and skip matching
3586 locations.
3587 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3588 a separate function. Simplify "set breakpoint auto-hw off"
3589 handling.
3590 (insert_breakpoints): Update comment.
3591 (tracepoint_locations_match): New parameter. For breakpoints,
3592 compare location types too, if the caller wants to.
3593 (handle_automatic_hardware_breakpoints): New functions.
3594 (bp_location_is_less_than): Also sort by location type and
3595 hardware breakpoint length.
3596 (update_global_location_list): Handle "set breakpoint auto-hw on"
3597 here.
3598 (update_breakpoint_locations): Ask breakpoint_locations_match to
3599 ignore location types.
3600
7d93a1e0
SM
36012020-05-16 Simon Marchi <simon.marchi@efficios.com>
3602
3603 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3604 type::name instead.
3605
d0e39ea2
SM
36062020-05-16 Simon Marchi <simon.marchi@efficios.com>
3607
3608 * gdbtypes.h (struct type) <name, set_name>: New methods.
3609 (TYPE_CODE): Use type::name. Change all call sites used to set
3610 the name to use type::set_name instead.
3611
2dab0c7b
TT
36122020-05-16 Tom Tromey <tom@tromey.com>
3613
3614 * top.c (quit_force): Update.
3615 * infrun.c (handle_no_resumed): Update.
3616 * top.h (all_uis): New function.
3617 (ALL_UIS): Remove.
3618
59f7bd8d
SM
36192020-05-16 Simon Marchi <simon.marchi@efficios.com>
3620
3621 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3622
9bf058f0
PA
36232020-05-16 Pedro Alves <palves@redhat.com>
3624
3625 * ia64-linux-nat.c
3626 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3627 Declare method.
3628 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3629
8f86ae1a
SM
36302020-05-15 Simon Marchi <simon.marchi@efficios.com>
3631
3632 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3633 (sparc64_adi_info): Likewise.
3634
d6bc0792
TT
36352020-05-15 Tom Tromey <tom@tromey.com>
3636
3637 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3638 block_objfile.
3639 (lookup_objfile_from_block): Remove.
3640 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3641 (lookup_global_symbol): Use block_objfile.
3642 * symtab.h (lookup_objfile_from_block): Don't declare.
3643 * printcmd.c (clear_dangling_display_expressions): Use
3644 block_objfile.
3645 * parse.c (operator_check_standard): Use block_objfile.
3646
8c14c3a3
TT
36472020-05-15 Tom Tromey <tom@tromey.com>
3648
3649 * language.c (language_alloc_type_symbol): Set
3650 SYMBOL_SECTION.
3651 * symtab.c (initialize_objfile_symbol): Remove.
3652 (allocate_symbol): Remove.
3653 (allocate_template_symbol): Remove.
3654 * dwarf2/read.c (fixup_go_packaging): Use "new".
3655 (new_symbol): Use "new".
3656 (read_variable): Don't call initialize_objfile_symbol. Use
3657 "new".
3658 (read_func_scope): Use "new".
3659 * xcoffread.c (process_xcoff_symbol): Don't call
3660 initialize_objfile_symbol.
3661 (SYMBOL_DUP): Remove.
3662 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3663 "new".
3664 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3665 (allocate_template_symbol): Don't declare.
3666 (struct symbol): Add copy constructor. Change defaults.
3667 * jit.c (finalize_symtab): Use "new".
3668 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3669 Use "new".
3670 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3671 (common_block_end): Use "new".
3672 * mdebugread.c (parse_symbol): Use "new".
3673 (new_symbol): Likewise.
3674
5b4a1a8d
PW
36752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3676
3677 * NEWS: Mention changes to help and apropos.
3678
57b4f16e
PW
36792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3680
3681 * command.h (enum command_class): Improve comments, document
3682 that class_alias is for user-defined aliases, give the class
3683 name for each class, remove unused class_xdb.
3684 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3685 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3686 by a precise class.
3687 * infcmd.c (_initialize_infcmd): Likewise.
3688 * reverse.c (_initialize_reverse): Likewise.
3689 * stack.c (_initialize_stack): Likewise.
3690 * symfile.c (_initialize_symfile): Likewise.
3691 * tracepoint.c (_initialize_tracepoint): Likewise.
3692
7c05caf7
PW
36932020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3694
3695 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3696 when their aliased command is traversed.
3697 (help_cmd): Add fput_command_names_styled call to
3698 output command name and aliases when command has an alias.
3699
3b3aaacb
PW
37002020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3701
3702 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3703 * cli/cli-decode.c (help_cmd_list): Declare as static,
3704 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3705 a command together with the command.
3706 (fput_command_name_styled, fput_command_names_styled): New functions.
3707 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3708 fput_command_name_styled.
3709 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3710 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3711
7aa1b46f
PW
37122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3713
3714 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3715 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3716 * command.h (cmd_show_list): Likewise.
3717 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3718 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3719
89bcba74
PW
37202020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3721
3722 * unittests/command-def-selftests.c (traverse_command_structure):
3723 Verify all commands of a list have the same prefix command and
3724 that only the top cmdlist commands have a null prefix.
3725
3f4d92eb
PW
37262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3727
3728 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3729 as prefix, not one of its aliases.
3730 (set_cmd_prefix): Remove.
3731 (do_add_cmd): Centralize the setting of the prefix of a command, when
3732 command is defined after its full chain of prefix commands.
3733 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3734 (add_setshow_cmd_full): Likewise.
3735 (update_prefix_field_of_prefixed_commands): New function.
3736 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3737 update_prefix_field_of_prefixed_commands.
3738 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3739 addresses of remote_set_cmdlist and remote_show_cmdlist given
3740 as argument, not the address of an argument.
3741 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3742 * gdb/remote.c (_initialize_remote): Likewise.
3743
0605465f
PW
37442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3745
3746 * cli/cli-cmds.c (alias_command): Check for an existing alias
3747 using lookup_cmd_composition, as valid_command_p is too strict
3748 and forbids aliases that are the prefix of an existing alias
3749 or command.
3750 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3751 command is properly recognised as a valid command.
3752
58e6ac70
PW
37532020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3754
3755 * unittests/help-doc-selftests.c: Rename to
3756 unittests/command-def-selftests.c
3757 * unittests/command-def-selftests.c (help_doc_tests): Update some
3758 comments.
3759 (command_structure_tests, traverse_command_structure): New namespace
3760 and function.
3761 (command_structure_invariants_tests): New function.
3762 (_initialize_command_def_selftests) Renamed from
3763 _initialize_help_doc_selftests, register command_structure_invariants
3764 selftest.
3765
a7b9ceb8
PW
37662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3767
3768 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3769 an alias of 'show'.
3770
b2188a06
JB
37712020-05-15 Joel Brobecker <brobecker@adacore.com>
3772
3773 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3774 ada_is_fixed_point_type. Update all callers.
3775 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3776 all callers.
3777 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3778 Update all callers.
3779 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3780 print_fixed_point_type. Update all callers.
3781 * ada-valprint.c (ada_value_print_num): Replace call to
3782 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3783
a51951c2
KB
37842020-05-14 Kevin Buettner <kevinb@redhat.com>
3785
3786 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3787 processors.
3788 (cpu_supports_bts): Add CV_AMD case.
3789
29d6859f
LM
37902020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3791 Simon Marchi <simon.marchi@efficios.com>
3792
3793 * infrun.c (stop_all_threads): Collect multiple wait events at
3794 each pass.
3795
78134374
SM
37962020-05-14 Simon Marchi <simon.marchi@efficios.com>
3797
3798 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3799 type::code instead.
3800
67607e24
SM
38012020-05-14 Simon Marchi <simon.marchi@efficios.com>
3802
3803 * gdbtypes.h (struct type) <code, set_code>: New methods.
3804 (TYPE_CODE): Use type::code. Change all call sites used to set
3805 the code to use type::set_code instead.
3806
a05575d3
TBA
38072020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3808 Tom de Vries <tdevries@suse.de>
3809 Pedro Alves <palves@redhat.com>
3810
3811 PR threads/25478
3812 * infrun.c (stop_all_threads): Do NOT ignore
3813 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3814 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3815 received.
3816 (handle_no_resumed): Remove code handling a live inferior with no
3817 threads.
3818 * remote.c (has_single_non_exited_thread): New.
3819 (remote_target::update_thread_list): Do not delete a thread if is
3820 the last thread of the process.
3821 * thread.c (thread_select): Call delete_exited_threads instead of
3822 prune_threads.
3823
6ad82919
TBA
38242020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3825
3826 * infrun.c (stop_all_threads): Enable/disable thread events of all
3827 targets. Move a debug message denoting the end of the function
3828 into the SCOPED_EXIT block.
3829
d890404b
TBA
38302020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3831
3832 * process-stratum-target.h: Include <set>.
3833 (all_non_exited_process_targets, switch_to_target_no_thread): New
3834 function declarations.
3835 * process-stratum-target.c (all_non_exited_process_targets)
3836 (switch_to_target_no_thread): New function implementations.
3837
293b3ebc
TBA
38382020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3839
3840 * infrun.c (handle_inferior_event): Extract out a piece of code
3841 into...
3842 (mark_non_executing_threads): ...this new function.
3843
7ca9b62a
TBA
38442020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3845
3846 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3847 use.
3848
fc75c28b
TBA
38492020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3850
3851 * regcache.c (regcache_read_pc_protected): New function
3852 implementation that returns 0 if the PC cannot read via
3853 'regcache_read_pc'.
3854 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3855 instead of 'regcache_read_pc'.
3856 (keep_going_pass_signal): Ditto.
3857
a89febbd
TT
38582020-05-13 Tom Tromey <tromey@adacore.com>
3859
3860 * ada-lang.c (align_value): Remove.
3861 (ada_template_to_fixed_record_type_1): Use align_up.
3862
f7e23710
TBA
38632020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3864
3865 * async-event.c: Update the copyright year.
3866 * async-event.h: Update the copyright year.
3867
02ff80c2
SM
38682020-05-12 Simon Marchi <simon.marchi@efficios.com>
3869
3870 * objfiles.h (is_addr_in_objfile,
3871 shared_objfile_contains_address_p): Return bool.
3872 * objfile.c (is_addr_in_objfile,
3873 shared_objfile_contains_address_p): Return bool.
3874
4fd6c7e8
TT
38752020-05-11 Tom Tromey <tromey@adacore.com>
3876
3877 * cli/cli-cmds.c (info_command): Restore.
3878 (_initialize_cli_cmds): Use add_prefix_command for "info".
3879 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3880
5eb68a39
TT
38812020-05-11 Tom Tromey <tromey@adacore.com>
3882
3883 * ada-lang.c (ada_value_primitive_field): Now public.
3884 * ada-lang.h (ada_value_primitive_field): Declare.
3885 * ada-valprint.c (print_field_values): Use
3886 ada_value_primitive_field for wrapper fields.
3887
7666722f
TV
38882020-05-11 Tom de Vries <tdevries@suse.de>
3889
3890 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3891 MODULE_DOMAIN.
3892
3ee6bb11
TV
38932020-05-11 Tom de Vries <tdevries@suse.de>
3894
3895 PR symtab/25941
3896 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3897 with length 0, if not gdb-produced.
3898 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3899
43434996
TV
39002020-05-09 Tom de Vries <tdevries@suse.de>
3901
3902 PR gdb/25955
3903 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3904 calculation.
3905
2f78cffc
TT
39062020-05-09 Tom Tromey <tom@tromey.com>
3907
3908 * top.c (server_command): Now bool.
3909 * top.h (server_command): Now bool.
3910
4f7bc5ed
TT
39112020-05-08 Tom Tromey <tromey@adacore.com>
3912
3913 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3914 already being processed.
3915
8be4b118
TT
39162020-05-08 Tom Tromey <tom@tromey.com>
3917
3918 * printcmd.c (struct display) <next>: Remove.
3919 <display>: New constructor.
3920 <exp_string>: Now a std::string.
3921 <enabled_p>: Now a bool.
3922 (display_number): Move definition earlier.
3923 (displays): Rename from display_chain. Now a std::vector.
3924 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3925 (display_command): Update.
3926 (do_one_display, disable_display)
3927 (enable_disable_display_command, do_enable_disable_display):
3928 Update.
3929 (free_display): Remove.
3930 (clear_displays): Rewrite.
3931 (delete_display): Update.
3932 (map_display_numbers): Use function_view. Remove "data"
3933 parameter. Update.
3934 (do_delete_display): Remove.
3935 (undisplay_command): Update.
3936 (do_one_display, do_displays, disable_display)
3937 (info_display_command): Update.
3938 (do_enable_disable_display): Remove.
3939 (enable_disable_display_command)
3940 (clear_dangling_display_expressions): Update.
3941
94c93c35
TT
39422020-05-08 Tom Tromey <tom@tromey.com>
3943
3944 * symtab.c (set_symbol_cache_size)
3945 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3946 (maintenance_print_symbol_cache_statistics): Update.
3947 * symmisc.c (print_symbol_bcache_statistics)
3948 (print_objfile_statistics, maintenance_print_objfiles)
3949 (maintenance_info_symtabs, maintenance_check_symtabs)
3950 (maintenance_expand_symtabs, maintenance_info_line_tables):
3951 Update.
3952 * symfile-debug.c (set_debug_symfile): Update.
3953 * source.c (forget_cached_source_info): Update.
3954 * python/python.c (gdbpy_progspaces): Update.
3955 * psymtab.c (maintenance_info_psymtabs): Update.
3956 * probe.c (parse_probes): Update.
3957 * linespec.c (iterate_over_all_matching_symtabs)
3958 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3959 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3960 * exec.c (exec_target::close): Update.
3961 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3962 * breakpoint.c (print_one_breakpoint_location)
3963 (create_longjmp_master_breakpoint)
3964 (create_std_terminate_master_breakpoint): Update.
3965 * progspace.c (program_spaces): Now a std::vector.
3966 (maybe_new_address_space): Update.
3967 (add_program_space): Remove.
3968 (program_space::program_space): Update.
3969 (remove_program_space): Update.
3970 (number_of_program_spaces): Remove.
3971 (print_program_space, update_address_spaces): Update.
3972 * progspace.h (program_spaces): Change type.
3973 (ALL_PSPACES): Remove.
3974 (number_of_program_spaces): Don't declare.
3975 (struct program_space) <next>: Remove.
3976
a1fd1ac9
TT
39772020-05-08 Tom Tromey <tom@tromey.com>
3978
3979 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3980 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3981 (enable_break): Update.
3982 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3983 (frv_fdpic_find_canonical_descriptor): Update.
3984 (frv_fetch_objfile_link_map): Update.
3985 * progspace.c (program_space::free_all_objfiles): Update.
3986 (program_space::solibs): New method.
3987 * progspace.h (struct program_space) <solibs>: New method.
3988 * solist.h (master_so_list): Don't declare.
3989 (ALL_SO_LIBS): Remove.
3990 * solib.h (so_list_head): Remove.
3991 (update_solib_list): Update comment.
3992 * solib.c (master_so_list): Remove.
3993 (solib_used, update_solib_list, solib_add)
3994 (info_sharedlibrary_command, clear_solib)
3995 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3996
38eae084
TT
39972020-05-08 Tom Tromey <tom@tromey.com>
3998
3999 * extension.c (extension_languages): Now a std::array.
4000 (ALL_EXTENSION_LANGUAGES): Remove.
4001 (get_ext_lang_defn, get_ext_lang_of_file)
4002 (eval_ext_lang_from_control_command): Update.
4003 (finish_ext_lang_initialization)
4004 (auto_load_ext_lang_scripts_for_objfile)
4005 (ext_lang_type_printers::ext_lang_type_printers)
4006 (apply_ext_lang_type_printers)
4007 (ext_lang_type_printers::~ext_lang_type_printers)
4008 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4009 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4010 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4011 (get_matching_xmethod_workers, ext_lang_colorize)
4012 (ext_lang_before_prompt): Update.
4013 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4014
596dc4ad
TT
40152020-05-08 Tom Tromey <tom@tromey.com>
4016
4017 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4018 overload.
4019 <swap_string, m_string>: Remove.
4020 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4021 Update.
4022 * stabsread.c (define_symbol, read_type): Update.
4023 * linespec.c (find_linespec_symbols): Update.
4024 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4025 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4026 * dbxread.c (read_dbx_symtab): Update.
4027 * cp-support.h (cp_canonicalize_string_full)
4028 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4029 Return unique_xmalloc_ptr.
4030 * cp-support.c (inspect_type): Update.
4031 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4032 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4033 Likewise.
4034 * c-typeprint.c (print_name_maybe_canonical): Update.
4035 * break-catch-throw.c (check_status_exception_catchpoint):
4036 Update.
4037
bf4cb9be
TV
40382020-05-08 Tom de Vries <tdevries@suse.de>
4039
4040 * infrun.c (follow_fork): Copy current_line and current_symtab to
4041 child thread.
4042
a1b68f28
SM
40432020-05-07 Simon Marchi <simon.marchi@efficios.com>
4044
4045 * async-event.c (struct async_signal_handler, struct
4046 async_event_handler): Reformat, remove typedef.
4047
98d48915
SM
40482020-05-07 Simon Marchi <simon.marchi@efficios.com>
4049
4050 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4051 access thistype->main_type->dyn_prop_list directly.
4052
7aa91313
SM
40532020-05-07 Simon Marchi <simon.marchi@efficios.com>
4054
4055 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4056 (remove_dyn_prop): Remove. Update all users to use
4057 type::remove_dyn_prop.
4058 * gdbtypes.c (remove_dyn_prop): Rename to...
4059 (type::remove_dyn_prop): ... this.
4060
5c54719c
SM
40612020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4062
4063 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4064 (add_dyn_prop): Remove. Update all users to use
4065 type::add_dyn_prop.
4066 * gdbtypes.c (add_dyn_prop): Rename to...
4067 (type::add_dyn_prop): ... this.
4068
24e99c6c
SM
40692020-05-07 Simon Marchi <simon.marchi@efficios.com>
4070
4071 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4072 (get_dyn_prop): Remove. Update all users to use
4073 type::dyn_prop.
4074 * gdbtypes.c (get_dyn_prop): Rename to...
4075 (type::dyn_prop): ... this.
4076
0d4bf016
SM
40772020-05-06 Simon Marchi <simon.marchi@efficios.com>
4078
4079 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4080
ac4a4f1c
SM
40812020-05-06 Simon Marchi <simon.marchi@efficios.com>
4082
4083 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4084 instruction, skip it if it's there.
4085
a3bbacc1
SM
40862020-05-05 Simon Marchi <simon.marchi@efficios.com>
4087
4088 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4089
c3236f84
SM
40902020-05-04 Simon Marchi <simon.marchi@efficios.com>
4091
4092 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4093 * gdbtypes.c (recursive_dump_type): Remove use of
4094 TYPE_INCOMPLETE.
4095
3b6acaee
TT
40962020-05-03 Tom Tromey <tom@tromey.com>
4097
4098 * breakpoint.c (catch_command, tcatch_command): Remove.
4099 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4100 add_show_prefix_cmd.
4101 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4102 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4103 Remove.
4104 (add_internal_problem_command): Use add_basic_prefix_cmd,
4105 add_show_prefix_cmd.
4106 * mips-tdep.c (set_mipsfpu_command): Remove.
4107 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4108 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4109 (_initialize_index_cache): Use add_basic_prefix_cmd.
4110 * memattr.c (dummy_cmd): Remove.
4111 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4112 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4113 (_initialize_tui_win): Use add_basic_prefix_cmd,
4114 add_show_prefix_cmd.
4115 * cli/cli-logging.c (set_logging_command): Remove.
4116 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4117 add_show_prefix_cmd.
4118 (show_logging_command): Remove.
4119 * target.c (target_command): Remove.
4120 (add_target): Use add_basic_prefix_cmd.
4121
a51119cd
HD
41222020-05-02 Hannes Domani <ssbssa@yahoo.de>
4123
4124 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4125
652fc23a 41262020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4127
652fc23a
PW
4128 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4129 info_command.
4130
117539e6
KR
41312020-04-30 Kamil Rytarowski <n54@gmx.com>
4132
4133 * nbsd-nat.c (nbsd_enable_proc_events)
4134 (nbsd_nat_target::post_startup_inferior): Add.
4135 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4136 (nbsd_nat_target::update_thread_list): Rewrite.
4137 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4138 "PTRACE_LWP_CREATE".
4139 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4140
102e38eb 41412020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4142
102e38eb
PW
4143 * stack.c (_initialize_stack): Remove duplicated creation
4144 of "frame" command and "f" alias.
4145
ee9d1e5f
HD
41462020-04-30 Hannes Domani <ssbssa@yahoo.de>
4147
4148 PR gdb/18706
4149 * gdbtypes.c (check_typedef): Calculate size of array of
4150 stubbed type.
4151
627c7fb8
HD
41522020-04-30 Hannes Domani <ssbssa@yahoo.de>
4153
4154 PR gdb/15559
4155 * i386-tdep.c (i386_push_dummy_call): Call
4156 i386_thiscall_push_dummy_call.
4157 (i386_thiscall_push_dummy_call): New function.
4158 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4159 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4160 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4161
ffc2844e
SM
41622020-04-29 Simon Marchi <simon.marchi@efficios.com>
4163
4164 * gdbarch.sh (do_read): Add shellcheck disable directive for
4165 warning SC2162.
4166
1207375d
SM
41672020-04-29 Simon Marchi <simon.marchi@efficios.com>
4168
4169 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4170 "referenced but not assigned" warning.
4171
9fdb2916
SM
41722020-04-29 Simon Marchi <simon.marchi@efficios.com>
4173
4174 * gdbarch.sh: Remove code that sets fallbackdefault.
4175
759cea5e
SM
41762020-04-29 Simon Marchi <simon.marchi@efficios.com>
4177
4178 * gdbarch.sh: Use shell operators && and || instead of
4179 -a and -o.
4180
cb02ab24
SM
41812020-04-29 Simon Marchi <simon.marchi@efficios.com>
4182
4183 * gdbarch.sh: Use $(...) instead of `...`.
4184
a6fc5ffc
SM
41852020-04-29 Simon Marchi <simon.marchi@efficios.com>
4186
4187 * gdbarch.sh: Use double quotes around variables.
4188
8d113d13
SM
41892020-04-29 Simon Marchi <simon.marchi@efficios.com>
4190
4191 * gdbarch.sh: Use %s with printf, instead of variables in the
4192 format string.
4193
ed6acedd
TT
41942020-04-29 Tom Tromey <tromey@adacore.com>
4195
4196 PR ada/25875:
4197 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4198 type fields here.
4199 (read_enumeration_type): Call
4200 update_enumeration_type_from_children later. Update comments.
4201 (process_enumeration_scope): Don't create type fields.
4202
b68b1b58
KR
42032020-04-29 Kamil Rytarowski <n54@gmx.com>
4204
4205 * nbsd-tdep.c: Include "xml-syscall.h".
4206 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4207
f94b2e03
KR
42082020-04-29 Kamil Rytarowski <n54@gmx.com>
4209
4210 * nbsd-nat.c: Include "sys/wait.h".
4211 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4212 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4213 (nbsd_nat_target::remove_exec_catchpoint)
4214 (nbsd_nat_target::set_syscall_catchpoint): Add.
4215 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4216 (nbsd_nat_target::insert_exec_catchpoint)
4217 (nbsd_nat_target::remove_exec_catchpoint)
4218 (nbsd_nat_target::set_syscall_catchpoint): Add.
4219 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4220 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4221 `nbsd_get_syscall_number'.
4222
fc49bc72
TT
42232020-04-29 Tom Tromey <tom@tromey.com>
4224
4225 * stack.c (print_block_frame_labels): Remove.
4226
d642b692
HD
42272020-04-29 Hannes Domani <ssbssa@yahoo.de>
4228
4229 PR gdb/17320
4230 * ada-valprint.c (val_print_packed_array_elements): Move array
4231 end bracket to new line.
4232 (ada_val_print_string): Remove extra spaces before first array
4233 element.
4234 * c-valprint.c (c_value_print_array): Likewise.
4235 * m2-valprint.c (m2_print_array_contents): Likewise.
4236 (m2_value_print_inner): Likewise.
4237 * p-valprint.c (pascal_value_print_inner): Likewise.
4238 * valprint.c (generic_val_print_array): Likewise.
4239 (value_print_array_elements): Move first array element and array
4240 end bracket to new line.
4241
ea90f227
TV
42422020-04-29 Tom de Vries <tdevries@suse.de>
4243
4244 PR symtab/25889
4245 * linespec.c (find_method): Fix ix calculation.
4246
4498ef4f
KR
42472020-04-28 Kamil Rytarowski <n54@gmx.com>
4248
4249 * syscalls/update-netbsd.sh: New file.
4250 * syscalls/netbsd.xml: Regenerate.
4251 * data-directory/Makefile.in: Register `netbsd.xml' in
4252 `SYSCALLS_FILES'.
4253
a55e30b5
SM
42542020-04-28 Simon Marchi <simon.marchi@efficios.com>
4255
4256 * syscalls/update-freebsd.sh: Add double quotes.
4257
2b2fbab8
TT
42582020-04-28 Tom Tromey <tom@tromey.com>
4259
4260 * NEWS: Update.
4261 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4262 (cmdpy_init): Allow class_tui.
4263
a65189c9
TV
42642020-04-28 Mark Williams <mark@myosotissp.com>
4265
4266 PR gdb/24480
4267 * dwarf2read.c: Add missing assingments to list_in_scope when
4268 start_symtab was already called.
4269
1b95cdb7
SM
42702020-04-28 Simon Marchi <simon.marchi@efficios.com>
4271
4272 PR gdb/25881
4273 * dwarf2/read.c (offset_map_type): Use
4274 gdb:hash_enum<sect_offset> as hash function.
4275
15cd93d0
TV
42762020-04-28 Tom de Vries <tdevries@suse.de>
4277
4278 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4279 with DW_AT_signature.
4280
1eb39914
SM
42812020-04-27 Simon Marchi <simon.marchi@efficios.com>
4282
4283 * configure.ac: Remove check for fs_base/gs_base in
4284 user_regs_struct.
4285 * configure: Re-generate.
4286 * config.in: Re-generate.
4287 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4288 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4289 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4290
991a3e2e
LM
42912020-04-27 Luis Machado <luis.machado@linaro.org>
4292
4293 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4294 problematic inline frame unwinding situation.
4295 * frame.c (frame_id_computed_p): New function.
4296 * frame.h (frame_id_computed_p): New prototype.
4297
361ba0e8
TT
42982020-04-26 Tom Tromey <tom@tromey.com>
4299
4300 * command.h (enum command_class) <class_pseudo>: Remove.
4301
bc3609fd
PW
43022020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4303
4304 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4305 and whitespace.
4306
b9771db7
KR
43072020-04-25 Kamil Rytarowski <n54@gmx.com>
4308
ec16513e
SM
4309 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4310 `PT_GET_PROCESS_STATE' block.
b9771db7 4311
7151c1af
TT
43122020-04-24 Tom Tromey <tom@tromey.com>
4313
4314 * symtab.h (symbol_get_demangled_name): Don't declare.
4315 * symtab.c (symbol_get_demangled_name): Remove.
4316 (general_symbol_info::natural_name)
4317 (general_symbol_info::demangled_name): Update.
4318
906bb4c5
TT
43192020-04-24 Tom Tromey <tom@tromey.com>
4320
4321 PR rust/25025:
4322 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4323
bcfe6157
TT
43242020-04-24 Tom Tromey <tom@tromey.com>
4325
4326 PR symtab/12707:
4327 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4328 exists.
4329 (new_symbol): Likewise.
4330 * compile/compile-object-load.c (get_out_value_type): Use
4331 symbol_matches_search_name.
4332
f049a313
TT
43332020-04-24 Tom Tromey <tom@tromey.com>
4334
4335 * dwarf2/read.c (add_partial_symbol): Do not call
4336 compute_and_set_names.
4337
76e288d1
TT
43382020-04-24 Tom Tromey <tom@tromey.com>
4339
4340 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4341 overload.
4342
2467f4f6
TT
43432020-04-24 Tom Tromey <tom@tromey.com>
4344
4345 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4346 (add_psymbol_to_list): New overload. Make old overload call new
4347 one.
4348 * psympriv.h (add_psymbol_to_list): New overload.
4349
e61108c9
TT
43502020-04-24 Tom Tromey <tom@tromey.com>
4351
4352 * dwarf2/read.c (partial_die_info::read) <case
4353 DW_AT_linkage_name>: Use value_as_string.
4354 (dwarf2_string_attr): Use value_as_string.
4355 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4356 method.
4357 * dwarf2/attribute.c (attribute::value_as_string): New method.
4358
8c87a452
TT
43592020-04-24 Tom Tromey <tom@tromey.com>
4360
4361 * symtab.c (general_symbol_info::natural_name)
4362 (general_symbol_info::demangled_name): Check for language_rust.
4363
787de330
TT
43642020-04-24 Tom Tromey <tom@tromey.com>
4365
4366 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4367 (dwarf2_physname): ... from here.
4368 (partial_die_info::read): Add Rust "{" hack.
4369
ff985671
TT
43702020-04-24 Tom Tromey <tom@tromey.com>
4371
4372 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4373 method.
4374 (symbol_set_demangled_name): Don't declare.
4375 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4376 symbol_set_demangled_name.
4377 (general_symbol_info::set_language)
4378 (general_symbol_info::compute_and_set_names): Update.
4379 * minsyms.c (minimal_symbol_reader::install): Update.
4380 * dwarf2/read.c (new_symbol): Update.
4381
1acda803
TT
43822020-04-24 Tom Tromey <tromey@adacore.com>
4383
4384 PR python/23662:
4385 * python/py-type.c (convert_field): Handle
4386 FIELD_LOC_KIND_DWARF_BLOCK.
4387 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4388 (typy_get_dynamic): Nw function.
4389 (type_object_getset): Add "dynamic".
4390 * NEWS: Add entry.
4391
d656f129
TT
43922020-04-24 Tom Tromey <tromey@adacore.com>
4393
4394 * ada-typeprint.c (print_choices, print_variant_part)
4395 (print_record_field_types_dynamic): New functions.
4396 (print_record_field_types): Use print_record_field_types_dynamic.
4397
7d79de9a
TT
43982020-04-24 Tom Tromey <tromey@adacore.com>
4399
4400 * dwarf2/read.c (handle_data_member_location): New overload.
4401 (dwarf2_add_field): Use it.
4402 (decode_locdesc): Add "computed" parameter. Update comment.
4403 * gdbtypes.c (is_dynamic_type_internal): Also look for
4404 FIELD_LOC_KIND_DWARF_BLOCK.
4405 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4406 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4407 virtual base classes.
4408 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4409 FIELD_LOC_KIND_DWARF_BLOCK.
4410
f8e89861
TT
44112020-04-24 Tom Tromey <tromey@adacore.com>
4412
4413 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4414 * gdbtypes.c (is_dynamic_type_internal): Check
4415 TYPE_HAS_DYNAMIC_LENGTH.
4416 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4417 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4418 New macros.
4419 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4420 constant.
4421
9c6a1327
TT
44222020-04-24 Tom Tromey <tromey@adacore.com>
4423
4424 * dwarf2/read.c (struct variant_field): Rewrite.
4425 (struct variant_part_builder): New.
4426 (struct nextfield): Remove "variant" field. Add "offset".
4427 (struct field_info): Add "current_variant_part" and
4428 "variant_parts".
4429 (alloc_discriminant_info): Remove.
4430 (alloc_rust_variant): New function.
4431 (quirk_rust_enum): Update.
4432 (dwarf2_add_field): Set "offset" member. Don't handle
4433 DW_TAG_variant_part.
4434 (offset_map_type): New typedef.
4435 (convert_variant_range, create_one_variant)
4436 (create_one_variant_part, create_variant_parts)
4437 (add_variant_property): New functions.
4438 (dwarf2_attach_fields_to_type): Call add_variant_property.
4439 (read_structure_type): Don't handle DW_TAG_variant_part.
4440 (handle_variant_part, handle_variant): New functions.
4441 (handle_struct_member_die): Use them.
4442 (process_structure_scope): Don't handle variant parts.
4443 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4444 (struct discriminant_info): Remove.
4445 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4446 (struct main_type) <flag_discriminated_union>: Remove.
4447 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4448 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4449 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4450 Update.
4451 * valops.c (value_union_variant): Remove.
4452 * value.h (value_union_variant): Don't declare.
4453
b249d2c2
TT
44542020-04-24 Tom Tromey <tromey@adacore.com>
4455
4456 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4457 (ada_value_primitive_packed_val): Update.
4458 * ada-valprint.c (ada_value_print_1): Update.
4459 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4460 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4461 just an address. Use evaluate_for_locexpr_baton.
4462 (dwarf2_evaluate_property): Update.
4463 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4464 array_view.
4465 * findvar.c (default_read_var_value): Update.
4466 * gdbtypes.c (compute_variant_fields_inner)
4467 (resolve_dynamic_type_internal): Update.
4468 (resolve_dynamic_type): Change type of valaddr parameter.
4469 * gdbtypes.h (resolve_dynamic_type): Update.
4470 * valarith.c (value_subscripted_rvalue): Update.
4471 * value.c (value_from_contents_and_address): Update.
4472
61122aa9
TT
44732020-04-24 Tom Tromey <tromey@adacore.com>
4474
4475 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4476 "push_initial_value" parameter.
4477 (dwarf2_evaluate_property): Likewise.
4478 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4479
ef83a141
TT
44802020-04-24 Tom Tromey <tromey@adacore.com>
4481
4482 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4483 (variant::matches, compute_variant_fields_recurse)
4484 (compute_variant_fields_inner, compute_variant_fields): New
4485 functions.
4486 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4487 Use resolved_type after type is made.
4488 (operator==): Add new cases.
4489 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4490 (struct discriminant_range, struct variant, struct variant_part):
4491 New.
4492 (union dynamic_prop_data) <variant_parts, original_type>: New
4493 members.
4494 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4495 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4496 constants.
4497 * value.c (unpack_bits_as_long): Now public.
4498 * value.h (unpack_bits_as_long): Declare.
4499
675127ec
TT
45002020-04-24 Tom Tromey <tromey@adacore.com>
4501
4502 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4503 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4504
9852ceef
HD
45052020-04-24 Hannes Domani <ssbssa@yahoo.de>
4506
4507 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4508
7632c6ce
KR
45092020-04-24 Kamil Rytarowski <n54@gmx.com>
4510
4511 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4512 (remove_fork_catchpoint, post_startup_inferior)
4513 (post_attach): Move...
4514 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4515 (remove_fork_catchpoint, post_startup_inferior)
4516 (post_attach): ...here.
4517 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4518 (remove_fork_catchpoint, post_startup_inferior)
4519 (post_attach): Move...
4520 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4521 (remove_fork_catchpoint, post_startup_inferior)
4522 (post_attach): ...here.
4523
7be2bb4f
TT
45242020-04-24 Tom Tromey <tromey@adacore.com>
4525
4526 * nat/windows-nat.h (struct windows_thread_info)
4527 <pc_adjusted>: New member.
4528 * windows-nat.c (windows_fetch_one_register): Check
4529 pc_adjusted.
4530 (windows_nat_target::get_windows_debug_event)
4531 (windows_nat_target::wait): Set pc_adjusted.
4532
f80cb3b4
TV
45332020-04-24 Tom de Vries <tdevries@suse.de>
4534
4535 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4536 Run gdb-add-index inside temp dir.
4537
29514b87
TT
45382020-04-23 Tom Tromey <tromey@adacore.com>
4539
4540 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4541 in loop.
4542
5939967b
LM
45432020-04-23 Luis Machado <luis.machado@linaro.org>
4544
4545 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4546 get_frame_register instead of gdbarch_unwind_pc.
4547
70bc38f5
TV
45482020-04-23 Tom de Vries <tdevries@suse.de>
4549
4550 * symtab.c (lookup_global_symbol): Prefer def over decl.
4551
de82891c
TV
45522020-04-23 Tom de Vries <tdevries@suse.de>
4553
4554 PR symtab/25807
4555 * block.c (best_symbol, better_symbol): Promote to external.
4556 * block.h (best_symbol, better_symbol): Declare.
4557 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4558 decl.
4559
ecc6c606
TT
45602020-04-23 Tom Tromey <tromey@adacore.com>
4561
4562 PR ada/25837:
4563 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4564 "const char *", not a "const std::string &".
4565 <name_and_matcher::operator==>: Update.
4566 * unittests/lookup_name_info-selftests.c: Change type of
4567 "result".
4568
740480b8
TT
45692020-04-23 Tom Tromey <tom@tromey.com>
4570
4571 * inferior.h (iterate_over_inferiors): Don't declare.
4572 * inferior.c (iterate_over_inferiors): Remove.
4573 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4574 Remove.
4575 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4576 use iterate_over_inferiors.
4577 (darwin_resume_inferior_it)
4578 (struct resume_inferior_threads_param)
4579 (darwin_resume_inferior_threads_it): Remove.
4580 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4581
ae3ab1f0
TV
45822020-04-23 Tom de Vries <tdevries@suse.de>
4583
4584 * blockframe.c (find_pc_partial_function): Use
4585 find_pc_sect_compunit_symtab rather than
4586 objfile->sf->qf->find_pc_sect_compunit_symtab.
4587
317d2668
TV
45882020-04-22 Tom de Vries <tdevries@suse.de>
4589
4590 PR symtab/25764
4591 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4592 in psymtabs.
4593
eea9e357
TV
45942020-04-22 Tom de Vries <tdevries@suse.de>
4595
4596 PR symtab/25801
4597 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4598 symtabs.
4599
3d5afab3
TV
46002020-04-22 Tom de Vries <tdevries@suse.de>
4601
4602 PR symtab/25700
4603 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4604 CU if already created.
4605
d43b7a2d
TBA
46062020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4607
4608 * infrun.c (displaced_step_fixup): Switch to the event_thread
4609 before calling displaced_step_restore, not after.
4610
d89edf9b
MM
46112020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4612
4613 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4614 its inferior is not recorded by us.
4615 (record_btrace_target_open): Replace call to
4616 all_non_exited_threads () with call to current_inferior
4617 ()->non_exited_threads ().
4618 (record_btrace_target::stop_recording): Likewise.
4619 (record_btrace_target::close): Likewise.
4620 (record_btrace_target::wait): Likewise.
4621 (record_btrace_target::record_stop_replaying): Likewise.
4622
5897fd49
MM
46232020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4624
4625 * btrace.c (btrace_enable): Throw an error on double enables and
4626 when enabling recording fails.
4627 (btrace_disable): Throw an error if the thread is not recorded.
4628
1a476b6d
MM
46292020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4630
4631 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4632 request if we do not have a thread_info.
4633
4778a5f8
TV
46342020-04-21 Tom de Vries <tdevries@suse.de>
4635
4636 PR gdb/25471
4637 * thread.c
4638 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4639 exception in get_frame_id.
4640
0fa7617d
TT
46412020-04-20 Tom Tromey <tromey@adacore.com>
4642
4643 * python/python.c (struct gdbpy_event): Mark move constructor as
4644 noexcept.
4645 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4646 constructor as noexcept.
4647 * completer.h (struct completion_result): Mark move constructor as
4648 noexcept.
4649 * completer.c (completion_result::completion_result): Use
4650 initialization style. Don't call reset_match_list.
4651
ad23bda0
MS
46522020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4653
4654 * MAINTAINERS (Write After Approval): Add myself.
4655
45e1f031
TT
46562020-04-18 Tom Tromey <tom@tromey.com>
4657
4658 * windows-tdep.c (init_w32_command_list)
4659 (w32_prefix_command_valid): Restore.
4660 (_initialize_windows_tdep): Call init_w32_command_list.
4661
08feed99
TT
46622020-04-18 Tom Tromey <tom@tromey.com>
4663
4664 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4665 * value.c (value_fn_field): Update.
4666 * valops.c (find_function_in_inferior)
4667 (value_allocate_space_in_inferior): Update.
4668 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4669 Update.
4670 * tui/tui-source.c (tui_source_window::set_contents): Update.
4671 * symtab.c (lookup_global_or_static_symbol)
4672 (find_function_start_sal_1, skip_prologue_sal)
4673 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4674 * symmisc.c (dump_msymbols, dump_symtab_1)
4675 (maintenance_print_one_line_table): Update.
4676 * symfile.c (init_entry_point_info, section_is_mapped)
4677 (list_overlays_command, simple_read_overlay_table)
4678 (simple_overlay_update_1): Update.
4679 * stap-probe.c (handle_stap_probe): Update.
4680 * stabsread.c (dbx_init_float_type, define_symbol)
4681 (read_one_struct_field, read_enum_type, read_range_type): Update.
4682 * source.c (info_line_command): Update.
4683 * python/python.c (gdbpy_source_objfile_script)
4684 (gdbpy_execute_objfile_script): Update.
4685 * python/py-type.c (save_objfile_types): Update.
4686 * python/py-objfile.c (py_free_objfile): Update.
4687 * python/py-inferior.c (python_new_objfile): Update.
4688 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4689 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4690 (maintenance_check_psymtabs): Update.
4691 * printcmd.c (info_address_command): Update.
4692 * objfiles.h (struct objfile) <arch>: New method, from
4693 get_objfile_arch.
4694 (get_objfile_arch): Don't declare.
4695 * objfiles.c (get_objfile_arch): Remove.
4696 (filter_overlapping_sections): Update.
4697 * minsyms.c (msymbol_is_function): Update.
4698 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4699 (output_nondebug_symbol): Update.
4700 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4701 (mdebug_expand_psymtab): Update.
4702 * machoread.c (macho_add_oso_symfile): Update.
4703 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4704 Update.
4705 * linux-fork.c (checkpoint_command): Update.
4706 * linespec.c (convert_linespec_to_sals): Update.
4707 * jit.c (finalize_symtab): Update.
4708 * infrun.c (insert_exception_resume_from_probe): Update.
4709 * ia64-tdep.c (ia64_find_unwind_table): Update.
4710 * hppa-tdep.c (internalize_unwinds): Update.
4711 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4712 Update.
4713 * gcore.c (call_target_sbrk): Update.
4714 * elfread.c (record_minimal_symbol, elf_symtab_read)
4715 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4716 (elf_gnu_ifunc_resolve_by_got): Update.
4717 * dwarf2/read.c (create_addrmap_from_index)
4718 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4719 (read_debug_names_from_section)
4720 (process_psymtab_comp_unit_reader, add_partial_symbol)
4721 (add_partial_subprogram, process_full_comp_unit)
4722 (read_file_scope, read_func_scope, read_lexical_block_scope)
4723 (read_call_site_scope, dwarf2_ranges_read)
4724 (dwarf2_record_block_ranges, dwarf2_add_field)
4725 (mark_common_block_symbol_computed, read_tag_pointer_type)
4726 (read_tag_string_type, dwarf2_init_float_type)
4727 (dwarf2_init_complex_target_type, read_base_type)
4728 (partial_die_info::read, partial_die_info::read)
4729 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4730 (dwarf2_fetch_die_loc_sect_off): Update.
4731 * dwarf2/loc.c (dwarf2_find_location_expression)
4732 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4733 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4734 (dwarf2_loc_desc_get_symbol_read_needs)
4735 (locexpr_describe_location_piece, locexpr_describe_location_1)
4736 (loclist_describe_location): Update.
4737 * dwarf2/index-write.c (write_debug_names): Update.
4738 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4739 * dtrace-probe.c (dtrace_process_dof): Update.
4740 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4741 (process_one_symbol): Update.
4742 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4743 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4744 (coff_read_enum_type): Update.
4745 * cli/cli-cmds.c (edit_command, list_command): Update.
4746 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4747 * breakpoint.c (create_overlay_event_breakpoint)
4748 (create_longjmp_master_breakpoint)
4749 (create_std_terminate_master_breakpoint)
4750 (create_exception_master_breakpoint, get_sal_arch): Update.
4751 * block.c (block_gdbarch): Update.
4752 * annotate.c (annotate_source_line): Update.
4753
0743fc83
TT
47542020-04-17 Tom Tromey <tromey@adacore.com>
4755
4756 * auto-load.c (show_auto_load_cmd): Remove.
4757 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4758 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4759 (maintenance_print_arc_command): Remove.
4760 * tui/tui-win.c (tui_command): Remove.
4761 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4762 * tui/tui-layout.c (tui_layout_command): Remove.
4763 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4764 * python/python.c (user_set_python, user_show_python): Remove.
4765 (_initialize_python): Use add_basic_prefix_cmd,
4766 add_show_prefix_cmd.
4767 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4768 (install_gdb_commands): Use add_basic_prefix_cmd,
4769 add_show_prefix_cmd.
4770 (info_guile_command): Remove.
4771 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4772 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4773 add_show_prefix_cmd.
4774 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4775 Remove do_set and do_show parameters.
4776 * cli/cli-style.c (set_style, show_style): Remove.
4777 (_initialize_cli_style): Use add_basic_prefix_cmd,
4778 add_show_prefix_cmd.
4779 (cli_style_option::add_setshow_commands): Remove do_set and
4780 do_show parameters.
4781 (cli_style_option::add_setshow_commands): Use
4782 add_basic_prefix_cmd, add_show_prefix_cmd.
4783 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4784 (set_style_name): Remove.
4785 * cli/cli-dump.c (dump_command, append_command): Remove.
4786 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4787 (tekhex_dump_command, binary_dump_command)
4788 (binary_append_command): Remove.
4789 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4790 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4791 (init_w32_command_list): Remove; move into ...
4792 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4793 * valprint.c (set_print, show_print, set_print_raw)
4794 (show_print_raw): Remove.
4795 (_initialize_valprint): Use add_basic_prefix_cmd,
4796 add_show_prefix_cmd.
4797 * typeprint.c (set_print_type, show_print_type): Remove.
4798 (_initialize_typeprint): Use add_basic_prefix_cmd,
4799 add_show_prefix_cmd.
4800 * record.c (set_record_command, show_record_command): Remove.
4801 (_initialize_record): Use add_basic_prefix_cmd,
4802 add_show_prefix_cmd.
4803 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4804 add_show_prefix_cmd.
4805 (info_command, show_command, set_debug, show_debug): Remove.
4806 * top.h (set_history, show_history): Don't declare.
4807 * top.c (set_history, show_history): Remove.
4808 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4809 (unset_tdesc_cmd): Remove.
4810 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4811 add_show_prefix_cmd.
4812 * symtab.c (info_module_command): Remove.
4813 (_initialize_symtab): Use add_basic_prefix_cmd.
4814 * symfile.c (overlay_command): Remove.
4815 (_initialize_symfile): Use add_basic_prefix_cmd.
4816 * sparc64-tdep.c (info_adi_command): Remove.
4817 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4818 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4819 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4820 add_show_prefix_cmd.
4821 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4822 (_initialize_serial): Use add_basic_prefix_cmd,
4823 add_show_prefix_cmd.
4824 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4825 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4826 add_show_prefix_cmd.
4827 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4828 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4829 add_show_prefix_cmd.
4830 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4831 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4832 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4833 add_show_prefix_cmd.
4834 * remote.c (remote_command, set_remote_cmd): Remove.
4835 (_initialize_remote): Use add_basic_prefix_cmd.
4836 * record-full.c (set_record_full_command)
4837 (show_record_full_command): Remove.
4838 (_initialize_record_full): Use add_basic_prefix_cmd,
4839 add_show_prefix_cmd.
4840 * record-btrace.c (cmd_set_record_btrace)
4841 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4842 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4843 (cmd_show_record_btrace_pt): Remove.
4844 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4845 add_show_prefix_cmd.
4846 * ravenscar-thread.c (set_ravenscar_command)
4847 (show_ravenscar_command): Remove.
4848 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4849 add_show_prefix_cmd.
4850 * mips-tdep.c (show_mips_command, set_mips_command)
4851 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4852 add_show_prefix_cmd.
4853 * maint.c (maintenance_command, maintenance_info_command)
4854 (maintenance_check_command, maintenance_print_command)
4855 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4856 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4857 add_show_prefix_cmd.
4858 (show_per_command_cmd): Remove.
4859 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4860 Remove.
4861 (maintenance_show_test_settings_cmd): Remove.
4862 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4863 add_show_prefix_cmd.
4864 * maint-test-options.c (maintenance_test_options_command):
4865 Remove.
4866 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4867 * macrocmd.c (macro_command): Remove
4868 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4869 * language.c (set_check, show_check): Remove.
4870 (_initialize_language): Use add_basic_prefix_cmd,
4871 add_show_prefix_cmd.
4872 * infcmd.c (unset_command): Remove.
4873 (_initialize_infcmd): Use add_basic_prefix_cmd.
4874 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4875 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4876 add_show_prefix_cmd.
4877 * go32-nat.c (go32_info_dos_command): Remove.
4878 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4879 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4880 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4881 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4882 (_initialize_frame): Use add_basic_prefix_cmd,
4883 add_show_prefix_cmd.
4884 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4885 (_initialize_dcache): Use add_basic_prefix_cmd,
4886 add_show_prefix_cmd.
4887 * cp-support.c (maint_cplus_command): Remove.
4888 (_initialize_cp_support): Use add_basic_prefix_cmd.
4889 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4890 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4891 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4892 add_basic_prefix_cmd, add_show_prefix_cmd.
4893 * breakpoint.c (save_command): Remove.
4894 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4895 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4896 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4897 add_show_prefix_cmd.
4898 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4899 (set_ada_command, show_ada_command): Remove.
4900 (_initialize_ada_language): Use add_basic_prefix_cmd,
4901 add_show_prefix_cmd.
4902 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4903
3557f442
KR
49042020-04-16 Kamil Rytarowski <n54@gmx.com>
4905
4906 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4907 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4908
16197208
SM
49092020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4910
4911 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4912 warning messages.
4913
00ac85d3
SM
49142020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4915
4916 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4917 import table is not at beginning of .idata section.
4918
381ce63f
PA
49192020-04-16 Pedro Alves <palves@redhat.com>
4920
4921 * inferior.c (delete_inferior): Use delete operator directly
4922 instead of delete_program_space.
4923 * progspace.c (add_program_space): New, factored out from
4924 program_space::program_space.
4925 (remove_program_space): New, factored out from
4926 delete_program_space.
4927 (program_space::program_space): Remove intro comment. Rewrite.
4928 (program_space::~program_space): Remove intro comment. Call
4929 remove_program_space.
4930 (delete_program_space): Delete.
4931 * progspace.h (program_space::program_space): Make explicit. Move
4932 intro comment here, adjusted.
4933 (program_space::~program_space): Move intro comment here,
4934 adjusted.
4935 (delete_program_space): Remove.
4936
a010605f
TT
49372020-04-16 Tom Tromey <tromey@adacore.com>
4938
4939 * windows-nat.c (windows_nat::handle_access_violation): New
4940 function.
4941 * nat/windows-nat.h (handle_access_violation): Declare.
4942 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4943 windows-nat.c. Call handle_access_violation.
4944
efba5c23
TV
49452020-04-16 Tom de Vries <tdevries@suse.de>
4946
4947 PR symtab/25791
4948 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4949 CUs without psymtab.
4950
97ed802d
KB
49512020-04-16 Kevin Buettner <kevinb@redhat.com>
4952
4953 * python/python.c (do_start_initialization): Don't call
4954 PyEval_InitThreads for Python 3.9 and beyond.
4955
c7d64809
KR
49562020-04-15 Kamil Rytarowski <n54@gmx.com>
4957
4958 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4959 thread functions.
4960 (obsd_nat_target::wait): Likewise.
4961
ce127a96
TT
49622020-04-15 Tom Tromey <tromey@adacore.com>
4963
4964 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4965 (DEBUG_EXCEPT): Use debug_printf.
4966
99f1bc6a
AB
49672020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4968
4969 * completer.c (class completion_tracker::completion_hash_entry)
4970 <hash_name>: New member function.
4971 (completion_tracker::discard_completions): New callback to hash a
4972 completion_hash_entry, pass this to htab_create_alloc.
4973
a0e9b532
JT
49742016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4975
4976 * windows-nat.c (windows_make_so): Warn rather than stopping with
4977 an error if realpath() fails.
4978
06ca5dd4
KR
49792020-04-14 Kamil Rytarowski <n54@gmx.com>
4980
4981 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4982 (nbsd_nat_target::info_proc): Add do_status.
4983
194d088f
TV
49842020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4985 Tom de Vries <tdevries@suse.de>
4986
4987 PR symtab/25718
4988 * psympriv.h (struct partial_symtab::read_symtab)
4989 (struct partial_symtab::expand_psymtab)
4990 (struct partial_symtab::read_dependencies): Update comments.
4991 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4992 read_symtab for includer.
4993 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4994 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4995 (struct dwarf2_include_psymtab::m_readin): Remove.
4996 (struct dwarf2_include_psymtab::includer): New member function.
4997 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4998
c1a66c06
TV
49992020-04-14 Tom de Vries <tdevries@suse.de>
5000
5001 PR symtab/25720
5002 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5003 with NULL symbol_matcher and lookup_name.
5004 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5005 and lookup_name.
5006 * dwarf2/read.c (dw2_expand_symtabs_matching)
5007 (dw2_debug_names_expand_symtabs_matching): Same.
5008 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5009 Make lookup_name a pointer. Update comment.
5010 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5011 lookup_name being a pointer.
5012 * symfile.c (expand_symtabs_matching): Same.
5013 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5014 * linespec.c (iterate_over_all_matching_symtabs): Same.
5015
400b5eca
TT
50162020-04-13 Tom Tromey <tom@tromey.com>
5017
5018 * run-on-main-thread.c: Update include.
5019 * unittests/main-thread-selftests.c: Update include.
5020 * tui/tui-win.c: Update include.
5021 * tui/tui-io.c: Update include.
5022 * tui/tui-interp.c: Update include.
5023 * tui/tui-hooks.c: Update include.
5024 * top.h: Update include.
5025 * top.c: Update include.
5026 * ser-base.c: Update include.
5027 * remote.c: Update include.
5028 * remote-notif.c: Update include.
5029 * remote-fileio.c: Update include.
5030 * record-full.c: Update include.
5031 * record-btrace.c: Update include.
5032 * python/python.c: Update include.
5033 * posix-hdep.c: Update include.
5034 * mingw-hdep.c: Update include.
5035 * mi/mi-main.c: Update include.
5036 * mi/mi-interp.c: Update include.
5037 * main.c: Update include.
5038 * linux-nat.c: Update include.
5039 * interps.c: Update include.
5040 * infrun.c: Update include.
5041 * inf-loop.c: Update include.
5042 * event-top.c: Update include.
5043 * event-loop.c: Move to ../gdbsupport/.
5044 * event-loop.h: Move to ../gdbsupport/.
5045 * async-event.h: Update include.
5046 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5047
93b54c8e
TT
50482020-04-13 Tom Tromey <tom@tromey.com>
5049
5050 * tui/tui-win.c: Include async-event.h.
5051 * remote.c: Include async-event.h.
5052 * remote-notif.c: Include async-event.h.
5053 * record-full.c: Include async-event.h.
5054 * record-btrace.c: Include async-event.h.
5055 * infrun.c: Include async-event.h.
5056 * event-top.c: Include async-event.h.
5057 * event-loop.h: Move some declarations to async-event.h.
5058 * event-loop.c: Don't include ser-event.h or top.h. Move some
5059 code to async-event.c.
5060 * async-event.h: New file.
5061 * async-event.c: New file.
5062 * Makefile.in (COMMON_SFILES): Add async-event.c.
5063 (HFILES_NO_SRCDIR): Add async-event.h.
5064
c1cd3163
TT
50652020-04-13 Tom Tromey <tom@tromey.com>
5066
5067 * utils.c (flush_streams): New function.
5068 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5069
29f2bf4f
TT
50702020-04-13 Tom Tromey <tom@tromey.com>
5071
5072 * event-loop.c (handle_file_event): Use warning, not
5073 printf_unfiltered.
5074
98029d02
TT
50752020-04-13 Tom Tromey <tom@tromey.com>
5076
5077 * event-loop.c: Include <chrono>.
5078
06cc9596
TT
50792020-04-13 Tom Tromey <tom@tromey.com>
5080
5081 * gdb_select.h: Move to ../gdbsupport/.
5082 * event-loop.c: Update include path.
5083 * top.c: Update include path.
5084 * ser-base.c: Update include path.
5085 * ui-file.c: Update include path.
5086 * ser-tcp.c: Update include path.
5087 * guile/scm-ports.c: Update include path.
5088 * posix-hdep.c: Update include path.
5089 * ser-unix.c: Update include path.
5090 * gdb_usleep.c: Update include path.
5091 * mingw-hdep.c: Update include path.
5092 * inflow.c: Update include path.
5093 * infrun.c: Update include path.
5094 * event-top.c: Update include path.
5095
8ae8e197
TT
50962020-04-13 Tom Tromey <tom@tromey.com>
5097
5098 * configure: Rebuild.
5099 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5100
58cf28e8
TT
51012020-04-13 Tom Tromey <tom@tromey.com>
5102
5103 * event-loop.h (start_event_loop): Don't declare.
5104 * event-loop.c (start_event_loop): Move...
5105 * main.c (start_event_loop): ...here. Now static.
5106
b7f999ae
SDJ
51072020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5108
5109 * MAINTAINERS: Update my email address.
5110
1085dfd4
KR
51112020-04-12 Kamil Rytarowski <n54@gmx.com>
5112
5113 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5114 IP_ALL.
5115
49d1d1f5
KR
51162020-04-12 Kamil Rytarowski <n54@gmx.com>
5117
5118 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5119 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5120
b4848d2a
KR
51212020-04-12 Kamil Rytarowski <n54@gmx.com>
5122
5123 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5124 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5125
51c133d5
KR
51262020-04-12 Kamil Rytarowski <n54@gmx.com>
5127
5128 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5129
54b8cbd0
KR
51302020-04-11 Kamil Rytarowski <n54@gmx.com>
5131
5132 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5133 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5134 (nbsd_nat_target::info_proc): New functions.
5135 * nbsd-nat.c (kinfo_get_vmmap): New function.
5136 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5137 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5138 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5139 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5140 functions.
5141 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5142 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5143 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5144 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5145 (KINFO_VME_FLAG_GROWS_DOWN): New.
5146
cf83625d
AS
51472020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5148
5149 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5150 bit shift.
5151
0c4311ab
TT
51522020-04-10 Tom Tromey <tromey@adacore.com>
5153
5154 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5155
3e65b3e9
TT
51562020-04-10 Tom Tromey <tromey@adacore.com>
5157
5158 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5159 separate debug files.
5160
13302e95
HD
51612020-04-10 Hannes Domani <ssbssa@yahoo.de>
5162
5163 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5164 Move to...
5165 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5166 ... here.
5167 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5168 Check for STATUS_WX86_BREAKPOINT.
5169 (windows_nat_target::wait): Same.
5170
bdfc1e8a
TV
51712020-04-10 Tom de Vries <tdevries@suse.de>
5172
5173 PR cli/25808
5174 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5175
f4460aec
SM
51762020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5177
5178 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5179 (Write After Approval): Remove Tom de Vries.
5180
a25198bb
BE
51812020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5182
5183 revert partially:
5184 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5185
aac66a4c
SM
5186 * buildsym.c (record_line): Fix undefined behavior and preserve
5187 lines at eof.
a25198bb 5188
206c98a6
KR
51892020-04-09 Kamil Rytarowski <n54@gmx.com>
5190
5191 * auxv.h (svr4_auxv_parse): New.
5192 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5193 and generic_auxv_parse.
5194 (svr4_auxv_parse): Add.
5195 * obsd-tdep.c: Include "auxv.h".
5196 (obsd_auxv_parse): Remove.
5197 (obsd_init_abi): Remove comment.
5198 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5199 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5200 * nbsd-tdep.c: Include "auxv.h".
5201 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5202
71fbdbaf
TT
52032020-04-08 Tom Tromey <tromey@adacore.com>
5204
5205 * nat/windows-nat.h (last_wait_event): Don't declare.
5206 (wait_for_debug_event): Update comment.
5207 * nat/windows-nat.c (last_wait_event): Now static.
5208
2c1d95e8
TT
52092020-04-08 Tom Tromey <tromey@adacore.com>
5210
5211 * windows-nat.c (wait_for_debug_event): Move to
5212 nat/windows-nat.c.
5213 * nat/windows-nat.h (wait_for_debug_event): Declare.
5214 * nat/windows-nat.c (wait_for_debug_event): Move from
5215 windows-nat.c. No longer static.
5216
d2977bc4
TT
52172020-04-08 Tom Tromey <tromey@adacore.com>
5218
5219 * windows-nat.c (get_windows_debug_event): Use
5220 fetch_pending_stop.
5221 * nat/windows-nat.h (fetch_pending_stop): Declare.
5222 * nat/windows-nat.c (fetch_pending_stop): New function.
5223
e758e19c
TT
52242020-04-08 Tom Tromey <tromey@adacore.com>
5225
5226 * windows-nat.c (windows_continue): Use matching_pending_stop and
5227 continue_last_debug_event.
5228 * nat/windows-nat.h (matching_pending_stop)
5229 (continue_last_debug_event): Declare.
5230 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5231 (matching_pending_stop, continue_last_debug_event): New
5232 functions.
5233
8d30e395
TT
52342020-04-08 Tom Tromey <tromey@adacore.com>
5235
5236 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5237 (handle_exception_result): Move to nat/windows-nat.h.
5238 (DEBUG_EXCEPTION_SIMPLE): Remove.
5239 (windows_nat::handle_ms_vc_exception): New function.
5240 (handle_exception): Move to nat/windows-nat.c.
5241 (get_windows_debug_event): Update.
5242 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5243 nat/windows-nat.c.
5244 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5245 (handle_exception_result): Move from windows-nat.c.
5246 (handle_exception): Declare.
5247 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5248 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5249 windows-nat.c.
5250
29de418d
TT
52512020-04-08 Tom Tromey <tromey@adacore.com>
5252
5253 * windows-nat.c (exception_count, event_count): Remove.
5254 (handle_exception, get_windows_debug_event)
5255 (do_initial_windows_stuff): Update.
5256
a816ba18
TT
52572020-04-08 Tom Tromey <tromey@adacore.com>
5258
5259 * windows-nat.c (windows_nat::handle_load_dll)
5260 (windows_nat::handle_unload_dll): Rename. No longer static.
5261 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5262 Declare.
5263
a00caa12
TT
52642020-04-08 Tom Tromey <tromey@adacore.com>
5265
5266 * complaints.h (stop_whining): Declare at top-level.
5267 (complaint): Don't declare stop_whining.
5268
d41b524f
TT
52692020-04-08 Tom Tromey <tromey@adacore.com>
5270
5271 * windows-nat.c (windows_nat::handle_output_debug_string):
5272 Rename. No longer static.
5273 * nat/windows-nat.h (handle_output_debug_string): Declare.
5274
3c76026d
TT
52752020-04-08 Tom Tromey <tromey@adacore.com>
5276
5277 * windows-nat.c (current_process_handle, current_process_id)
5278 (main_thread_id, last_sig, current_event, last_wait_event)
5279 (current_windows_thread, desired_stop_thread_id, pending_stops)
5280 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5281 (display_selectors, fake_create_process)
5282 (get_windows_debug_event): Update.
5283 * nat/windows-nat.h (current_process_handle, current_process_id)
5284 (main_thread_id, last_sig, current_event, last_wait_event)
5285 (current_windows_thread, desired_stop_thread_id, pending_stops)
5286 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5287 * nat/windows-nat.c (current_process_handle, current_process_id)
5288 (main_thread_id, last_sig, current_event, last_wait_event)
5289 (current_windows_thread, desired_stop_thread_id, pending_stops)
5290 (siginfo_er): New globals. Move from windows-nat.c.
5291
9d8679cc
TT
52922020-04-08 Tom Tromey <tromey@adacore.com>
5293
5294 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5295 (handle_load_dll): Update.
5296 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5297
28688adf
TT
52982020-04-08 Tom Tromey <tromey@adacore.com>
5299
5300 * windows-nat.c (enum thread_disposition_type): Move to
5301 nat/windows-nat.h.
5302 (windows_nat::thread_rec): Rename from thread_rec. No longer
5303 static.
5304 (windows_add_thread, windows_nat_target::fetch_registers)
5305 (windows_nat_target::store_registers, handle_exception)
5306 (windows_nat_target::resume, get_windows_debug_event)
5307 (windows_nat_target::get_tib_address)
5308 (windows_nat_target::thread_name)
5309 (windows_nat_target::thread_alive): Update.
5310 * nat/windows-nat.h (enum thread_disposition_type): Move from
5311 windows-nat.c.
5312 (thread_rec): Declare.
5313
4834dad0
TT
53142020-04-08 Tom Tromey <tromey@adacore.com>
5315
5316 * windows-nat.c: Add "using namespace".
5317 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5318 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5319
65bafd5b
TT
53202020-04-08 Tom Tromey <tromey@adacore.com>
5321
5322 * nat/windows-nat.h (struct windows_thread_info): Declare
5323 destructor.
5324 * nat/windows-nat.c (~windows_thread_info): New.
5325
0a4afda3
TT
53262020-04-08 Tom Tromey <tromey@adacore.com>
5327
5328 PR gdb/22992
5329 * windows-nat.c (current_event): Update comment.
5330 (last_wait_event, desired_stop_thread_id): New globals.
5331 (struct pending_stop): New.
5332 (pending_stops): New global.
5333 (windows_nat_target) <stopped_by_sw_breakpoint>
5334 <supports_stopped_by_sw_breakpoint>: New methods.
5335 (windows_fetch_one_register): Add assertions. Adjust PC.
5336 (windows_continue): Handle pending stops. Suspend other threads
5337 when stepping. Use last_wait_event
5338 (wait_for_debug_event): New function.
5339 (get_windows_debug_event): Use wait_for_debug_event. Handle
5340 pending stops. Queue spurious stops.
5341 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5342 (windows_nat_target::kill): Use wait_for_debug_event.
5343 * nat/windows-nat.h (struct windows_thread_info)
5344 <stopped_at_software_breakpoint>: New field.
5345 * nat/windows-nat.c (windows_thread_info::resume): Clear
5346 stopped_at_software_breakpoint.
5347
8e61ebec
TT
53482020-04-08 Tom Tromey <tromey@adacore.com>
5349
5350 * windows-nat.c (enum thread_disposition_type): New.
5351 (thread_rec): Replace "get_context" parameter with "disposition";
5352 change type.
5353 (windows_add_thread, windows_nat_target::fetch_registers)
5354 (windows_nat_target::store_registers, handle_exception)
5355 (windows_nat_target::resume, get_windows_debug_event)
5356 (windows_nat_target::get_tib_address)
5357 (windows_nat_target::thread_name)
5358 (windows_nat_target::thread_alive): Update.
5359
98a03287
TT
53602020-04-08 Tom Tromey <tromey@adacore.com>
5361
5362 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5363 (windows_continue): Use windows_continue::resume.
5364 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5365 resume>: Declare new methods.
5366 * nat/windows-nat.c: New file.
5367 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5368
7c7411bc
TT
53692020-04-08 Tom Tromey <tromey@adacore.com>
5370
5371 * windows-nat.c (windows_add_thread, windows_delete_thread)
5372 (windows_nat_target::fetch_registers)
5373 (windows_nat_target::store_registers, fake_create_process)
5374 (windows_nat_target::resume, windows_nat_target::resume)
5375 (get_windows_debug_event, windows_nat_target::wait)
5376 (windows_nat_target::pid_to_str)
5377 (windows_nat_target::get_tib_address)
5378 (windows_nat_target::get_ada_task_ptid)
5379 (windows_nat_target::thread_name)
5380 (windows_nat_target::thread_alive): Use lwp, not tid.
5381
2950fdf7
TT
53822020-04-08 Tom Tromey <tromey@adacore.com>
5383
5384 * windows-nat.c (handle_exception)
5385 (windows_nat_target::thread_name): Update.
5386 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5387 <name>: Now unique_xmalloc_ptr.
5388
62fe396b
TT
53892020-04-08 Tom Tromey <tromey@adacore.com>
5390
5391 * windows-nat.c (thread_rec)
5392 (windows_nat_target::fetch_registers): Update.
5393 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5394 Update comment.
5395 <debug_registers_changed, reload_context>: Now bool.
5396
e9534bd2
TT
53972020-04-08 Tom Tromey <tromey@adacore.com>
5398
5399 * windows-nat.c (windows_add_thread): Use new.
5400 (windows_init_thread_list, windows_delete_thread): Use delete.
5401 (get_windows_debug_event): Update.
5402 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5403 destructor, and initializers.
5404
ae1f8880
TT
54052020-04-08 Tom Tromey <tromey@adacore.com>
5406
5407 * windows-nat.c (struct windows_thread_info): Remove.
5408 * nat/windows-nat.h: New file.
5409
55a1e039
TT
54102020-04-08 Tom Tromey <tromey@adacore.com>
5411
5412 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5413 (thread_rec, windows_add_thread, windows_delete_thread)
5414 (windows_continue): Update.
5415
93366324
TT
54162020-04-08 Tom Tromey <tromey@adacore.com>
5417
5418 * windows-nat.c (struct windows_thread_info): Remove typedef.
5419 (thread_head): Remove.
5420 (thread_list): New global.
5421 (thread_rec, windows_add_thread, windows_init_thread_list)
5422 (windows_delete_thread, windows_continue): Update.
5423
0f2265e2
SM
54242020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5425
5426 * windows-tdep.h (windows_init_abi): Add comment.
5427 (cygwin_init_abi): New declaration.
5428 * windows-tdep.c: Split signal enumeration in two, one for
5429 Windows and one for Cygwin.
5430 (windows_gdb_signal_to_target): Only deal with signal of the
5431 Windows OS ABI.
5432 (cygwin_gdb_signal_to_target): New function.
5433 (windows_init_abi): Rename to windows_init_abi_common, don't set
5434 gdb_signal_to_target gdbarch method. Add new new function with
5435 this name.
5436 (cygwin_init_abi): New function.
5437 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5438 comment. Don't call windows_init_abi.
5439 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5440 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5441 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5442 i386_windows_init_abi_common, don't call windows_init_abi. Add
5443 a new function of this name.
5444 (i386_cygwin_init_abi): New function.
5445 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5446 OS ABI Cygwin.
5447
3810f182
SM
54482020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5449
5450 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5451 parameter.c.
5452 (dwarf2_read_gdb_index): Update.
5453
063f8e80
KR
54542020-04-07 Kamil Rytarowski <n54@gmx.com>
5455
5456 * nbsd-tdep.c: Include "objfiles.h".
5457 (nbsd_skip_solib_resolver): New.
5458 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5459
85a9510c 54602020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5461
5462 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5463 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5464 with DW_LLE_base_addressx are being emitted in DWARFv5.
5465 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5466 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5467 unsigned integer.
5468
9fc3eaae 54692020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5470
5471 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5472 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5473 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5474 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5475 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5476 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5477 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5478
5479
41144253 54802020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5481
5482 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5483 (read_loclist_index): New function definition.
5484 (lookup_loclist_base): New function definition.
5485 (read_loclist_header): New function definition.
5486 (dwarf2_cu): Add loclist_base and loclist_header field.
5487 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5488 (read_full_die_1): Read the value of DW_AT_loclists_base.
5489 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5490 (read_attribute_value): Handle DW_FORM_loclistx.
5491 (skip_one_die): Handle DW_FORM_loclistx.
5492 (loclist_header): New structure declaration.
5493 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5494
9f4e76a4
SM
54952020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5496
5497 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5498 constructor. Remove `addr` parameter from other constructor and
5499 add `per_cu` parameter.
5500 * dwarf2/read.c (create_partial_symtab): Update.
5501
25c11aca
TV
55022020-04-07 Tom de Vries <tdevries@suse.de>
5503
5504 PR symtab/25796
5505 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5506 (partial_die_info::fixup): Inherit has_const_value.
5507
5707e24b
TV
55082020-04-07 Tom de Vries <tdevries@suse.de>
5509
5510 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5511 symbols without address.
5512
05f00e22
KR
55132020-04-06 Kamil Rytarowski <n54@gmx.com>
5514
5515 * nbsd-nat.h (struct thread_info): Add forward declaration.
5516 (nbsd_nat_target::thread_alive): Add.
5517 (nbsd_nat_target::thread_name): Likewise.
5518 (nbsd_nat_target::update_thread_list): Likewise.
5519 (update_thread_list::post_attach): Likewise.
5520 (post_attach::pid_to_str): Likewise.
5521 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5522 (nbsd_thread_lister): Add.
5523 (nbsd_nat_target::thread_alive): Likewise.
5524 (nbsd_nat_target::thread_name): Likewise.
5525 (nbsd_add_threads): Likewise.
5526 (update_thread_list::post_attach): Likewise.
5527 (nbsd_nat_target::update_thread_list): Likewise.
5528 (post_attach::pid_to_str): Likewise.
5529
6ee448cc
TT
55302020-04-06 Tom Tromey <tromey@adacore.com>
5531
5532 * ada-valprint.c (print_variant_part): Extract the variant field.
5533 (print_field_values): Use the field as the outer value when
5534 recursing.
5535
dea34e8c
TT
55362020-04-06 Tom Tromey <tromey@adacore.com>
5537
5538 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5539 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5540 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5541 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5542 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5543
93689ce9
TT
55442020-04-06 Tom Tromey <tromey@adacore.com>
5545
5546 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5547 TYPE_CODE_ERROR.
5548
79743962
KR
55492020-04-06 Kamil Rytarowski <n54@gmx.com>
5550
5551 * nbsd-tdep.c: Include "gdbarch.h".
5552 Define enum with NetBSD signal numbers.
5553 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5554 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5555 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5556 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5557 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5558 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5559 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5560 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5561 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5562 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5563 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5564 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5565
9e7c9a03
HD
55662020-04-03 Hannes Domani <ssbssa@yahoo.de>
5567
5568 PR gdb/25325
5569 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5570
d9e49b61
TT
55712020-04-03 Tom Tromey <tromey@adacore.com>
5572
5573 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5574 Read constant block.
5575
e0fc5c3f
SM
55762020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5577
5578 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5579 (gdb_bfd_get_full_section_contents): New declaration.
5580 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5581 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5582 gdb_bfd_get_full_section_contents.
5583
e2ff18a0
SM
55842020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5585
5586 * exec.c (build_section_table): Replace internal_error with
5587 gdb_assert.
5588 (section_table_xfer_memory_partial): Likewise.
5589 * mdebugread.c (parse_partial_symbols): Likewise.
5590 * psymtab.c (lookup_partial_symbol): Likewise.
5591 * utils.c (wrap_here): Likewise.
5592
0830d301
TT
55932020-04-02 Tom Tromey <tromey@adacore.com>
5594
5595 * f-lang.c (build_fortran_types): Use arch_type to initialize
5596 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5597
e7da7f8f
TT
55982020-04-02 Tom Tromey <tromey@adacore.com>
5599
5600 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5601 of attributes.
5602
c90d28ac
AB
56032020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5604 Bernd Edlinger <bernd.edlinger@hotmail.de>
5605 Tom Tromey <tromey@adacore.com>
5606
5607 * buildsym.c (buildsym_compunit::record_line): Remove
5608 deduplication code.
5609
1aa98955
TV
56102020-04-02 Tom de Vries <tdevries@suse.de>
5611
5612 PR ada/24671
5613 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5614
d3214198
TV
56152020-04-02 Tom de Vries <tdevries@suse.de>
5616
5617 * dwarf2/read.c (dwarf2_gdb_index_functions,
5618 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5619 NULL.
5620 * psymtab.c (psym_lookup_global_symbol_language): New function.
5621 (psym_functions): Init psym_lookup_global_symbol_language with
5622 psym_lookup_global_symbol_language.
5623 * symfile-debug.c (debug_sym_quick_functions): Init
5624 lookup_global_symbol_language with NULL.
5625 * symfile.c (set_initial_language): Remove fixme comment.
5626 * symfile.h (struct quick_symbol_functions): Add
5627 lookup_global_symbol_language.
5628 * symtab.c (find_quick_global_symbol_language): New function.
5629 (find_main_name): Use find_quick_global_symbol_language.
5630
2836752f
SM
56312020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5632
5633 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5634
64dc2d4b
BE
56352020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5636
5637 * buildsym.c (record_line): Fix undefined behavior and preserve
5638 lines at eof.
5639
bbe3dc41
BE
56402020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5641
5642 * buildsym.c (record_line): Fix the resizing condition.
5643
6b4a335b
TT
56442020-04-01 Tom Tromey <tom@tromey.com>
5645
5646 * value.h (value_literal_complex): Add comment.
5647 * valops.c (value_literal_complex): Refer to value.h.
5648
3638a098
TT
56492020-04-01 Tom Tromey <tom@tromey.com>
5650
5651 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5652 (scalar_type): New rule, from typebase.
5653 (typebase): Use scalar_type. Recognize complex types.
5654 (field_name): Handle FLOAT_KEYWORD.
5655 (ident_tokens): Add _Complex and __complex__.
5656
c34e8714
TT
56572020-04-01 Tom Tromey <tom@tromey.com>
5658
5659 PR exp/25299:
5660 * valarith.c (promotion_type, complex_binop): New functions.
5661 (scalar_binop): Handle complex numbers. Use promotion_type.
5662 (value_pos, value_neg, value_complement): Handle complex numbers.
5663
fa649bb7
TT
56642020-04-01 Tom Tromey <tom@tromey.com>
5665
5666 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5667 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5668 (parse_number): Handle complex numbers.
5669
981c08ce
TT
56702020-04-01 Tom Tromey <tom@tromey.com>
5671
5672 * c-valprint.c (c_decorations): Change complex suffix to "i".
5673
4c99290d
TT
56742020-04-01 Tom Tromey <tom@tromey.com>
5675
5676 * valprint.c (generic_value_print_complex): Use accessors.
5677 * value.h (value_real_part, value_imaginary_part): Declare.
5678 * valops.c (value_real_part, value_imaginary_part): New
5679 functions.
5680 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5681
5b930b45
TT
56822020-04-01 Tom Tromey <tom@tromey.com>
5683
5684 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5685 (read_range_type): Update.
5686 * mdebugread.c (basic_type): Update.
5687 * go-lang.c (build_go_types): Use init_complex_type.
5688 * gdbtypes.h (struct main_type) <complex_type>: New member.
5689 (init_complex_type): Update.
5690 (arch_complex_type): Don't declare.
5691 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5692 Make name if none given. Use alloc_type_copy. Look for cached
5693 complex type.
5694 (arch_complex_type): Remove.
5695 (gdbtypes_post_init): Use init_complex_type.
5696 * f-lang.c (build_fortran_types): Use init_complex_type.
5697 * dwarf2/read.c (read_base_type): Update.
5698 * d-lang.c (build_d_types): Use init_complex_type.
5699 * ctfread.c (read_base_type): Update.
5700
53cccef1
TBA
57012020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5702
5703 * infrun.c (stop_all_threads): Update assertion, plus when
5704 stopping threads, take into account that we might be trying
5705 to stop an all-stop target.
5706 (stop_waiting): Call 'stop_all_threads' if there exists a
5707 non-stop target.
5708
a0714d30
TBA
57092020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5710
5711 * target.h (exists_non_stop_target): New function declaration.
5712 * target.c (exists_non_stop_target): New function.
5713
60e22c1e
HD
57142020-04-01 Hannes Domani <ssbssa@yahoo.de>
5715
5716 PR gdb/24789
5717 * eval.c (is_integral_or_integral_reference): New function.
5718 (evaluate_subexp_standard): Allow integer references in
5719 pointer arithmetic.
5720
e139a727
TBA
57212020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5722
5723 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5724 check for no ptid in the stop reply when the target is non-stop.
5725
e0802d59
TT
57262020-04-01 Tom Tromey <tromey@adacore.com>
5727
5728 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5729 "name" parameter to rvalue reference. Initialize m_name_holder.
5730 <lookup_name_info>: New overloads.
5731 <name>: Return gdb::string_view.
5732 <c_str>: New method.
5733 <make_ignore_params>: Update.
5734 <search_name_hash>: Update.
5735 <language_lookup_name>: Return const char *.
5736 <m_name>: Change type.
5737 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5738 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5739 (lookup_name_info::match_any): Update.
5740 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5741 Update.
5742 * minsyms.c (linkage_name_str): Update.
5743 * language.c (default_symbol_name_matcher): Update.
5744 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5745 Update.
5746 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5747 (ada_lookup_name_info::ada_lookup_name_info): Update.
5748 (literal_symbol_name_matcher): Update.
5749
8c072cb6
TT
57502020-04-01 Tom Tromey <tromey@adacore.com>
5751
5752 * psymtab.c (psymtab_search_name): Remove function.
5753 (psym_lookup_symbol): Create search name and lookup name here.
5754 (lookup_partial_symbol): Remove "name" parameter; add
5755 lookup_name.
5756 (psym_expand_symtabs_for_function): Update.
5757
6f29a534
TT
57582020-03-31 Joel Jones <joelkevinjones@gmail.com>
5759
5760 PR tui/25597:
5761 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5762
af62665e
TT
57632020-03-31 Tom Tromey <tromey@adacore.com>
5764
5765 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5766 memcpy.
5767
d1a89da5
NC
57682020-03-30 Nelson Chu <nelson.chu@sifive.com>
5769
5770 * features/riscv/32bit-csr.xml: Regenerated.
5771 * features/riscv/64bit-csr.xml: Regenerated.
5772
d8af9068
TT
57732020-03-30 Tom Tromey <tromey@adacore.com>
5774
5775 * ada-valprint.c (print_variant_part): Update.
5776 * ada-lang.h (ada_which_variant_applies): Update.
5777 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5778 outer_valaddr parameters; replace with "outer" value parameter.
5779 (to_fixed_variant_branch_type): Update.
5780
227c0bf4
PFC
57812020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5782
5783 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5784 <list>. Remove inclusion of observable.h.
5785 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5786 (struct arch_lwp_info): New struct.
5787 (class ppc_linux_dreg_interface): New class.
5788 (struct ppc_linux_process_info): New struct.
5789 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5790 <low_new_clone, low_forget_process, low_prepare_to_resume>
5791 <copy_thread_dreg_state, mark_thread_stale>
5792 <mark_debug_registers_changed, register_hw_breakpoint>
5793 <clear_hw_breakpoint, register_wp, clear_wp>
5794 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5795 <num_memory_accesses, get_trigger_type>
5796 <create_watchpoint_request, hwdebug_point_cmp>
5797 <init_arch_lwp_info, get_arch_lwp_info>
5798 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5799 methods.
5800 <struct ptid_hash>: New inner struct.
5801 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5802 members.
5803 (saved_dabr_value, hwdebug_info, max_slots_number)
5804 (struct hw_break_tuple, struct thread_points, ppc_threads)
5805 (have_ptrace_hwdebug_interface)
5806 (hwdebug_find_thread_points_by_tid)
5807 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5808 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5809 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5810 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5811 use m_dreg_interface.
5812 (hwdebug_point_cmp): Change to...
5813 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5814 reference arguments instead of pointers.
5815 (ppc_linux_nat_target::ranged_break_num_registers): Use
5816 m_dreg_interface.
5817 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5818 m_dreg_interface. Call register_hw_breakpoint.
5819 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5820 m_dreg_interface. Call clear_hw_breakpoint.
5821 (get_trigger_type): Change to...
5822 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5823 comment.
5824 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5825 use m_dreg_interface. Call register_hw_breakpoint.
5826 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5827 use m_dreg_interface. Call clear_hw_breakpoint.
5828 (can_use_watchpoint_cond_accel): Change to...
5829 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5830 method. Update comment, use m_dreg_interface and
5831 m_process_info.
5832 (calculate_dvc): Change to...
5833 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5834 m_dreg_interface.
5835 (num_memory_accesses): Change to...
5836 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5837 (check_condition): Change to...
5838 (ppc_linux_nat_target::check_condition): ...this method.
5839 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5840 comment, use m_dreg_interface.
5841 (create_watchpoint_request): Change to...
5842 (ppc_linux_nat_target::create_watchpoint_request): ...this
5843 method. Use m_dreg_interface.
5844 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5845 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5846 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5847 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5848 (ppc_linux_nat_target::low_forget_process)
5849 (ppc_linux_nat_target::low_new_fork)
5850 (ppc_linux_nat_target::low_new_clone)
5851 (ppc_linux_nat_target::low_delete_thread)
5852 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5853 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5854 only call mark_thread_stale.
5855 (ppc_linux_thread_exit): Remove.
5856 (ppc_linux_nat_target::stopped_data_address): Change to...
5857 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5858 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5859 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5860 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5861 comment. Call low_stopped_data_address.
5862 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5863 m_dreg_interface.
5864 (ppc_linux_nat_target::masked_watch_num_registers): Use
5865 m_dreg_interface.
5866 (ppc_linux_nat_target::copy_thread_dreg_state)
5867 (ppc_linux_nat_target::mark_thread_stale)
5868 (ppc_linux_nat_target::mark_debug_registers_changed)
5869 (ppc_linux_nat_target::register_hw_breakpoint)
5870 (ppc_linux_nat_target::clear_hw_breakpoint)
5871 (ppc_linux_nat_target::register_wp)
5872 (ppc_linux_nat_target::clear_wp)
5873 (ppc_linux_nat_target::init_arch_lwp_info)
5874 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5875 (_initialize_ppc_linux_nat): Remove observer callback.
5876
4db10d8f
PFC
58772020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5878
5879 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5880 (ppc_linux_nat_target::auxv_parse)
5881 (ppc_linux_nat_target::read_description)
5882 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5883 Move up.
5884
1310c1b0
PFC
58852020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5886
5887 * linux-nat.h (low_new_clone): New method.
5888 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5889
69b037c3
SM
58902020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5891
5892 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5893 (dbx_expand_psymtab): ... this.
5894 (start_psymtab): Update.
5895 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5896 (mdebug_expand_psymtab): ... this.
5897 (parse_partial_symbols): Update.
5898 (new_psymtab): Update.
5899 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5900 (xcoff_expand_psymtab): ... this.
5901 (xcoff_start_psymtab): Update.
5902
48993951
SM
59032020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5904
5905 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5906 <expand_dependencies>: ... this.
5907 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5908 (partial_symtab::expand_dependencies): ... this.
5909 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5910 Update.
5911 (dwarf2_psymtab::expand_psymtab): Update.
5912 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5913 * mdebugread.c (psymtab_to_symtab_1): Update.
5914 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5915
3ad83046
SM
59162020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5917
5918 * psympriv.h (discard_psymtab): Remove.
5919 * dbxread.c (dbx_end_psymtab): Update.
5920 * xcoffread.c (xcoff_end_psymtab): Update.
5921
4d1b9ab6
TT
59222020-03-28 Tom Tromey <tom@tromey.com>
5923
5924 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5925 comment.
5926
f1749218
TT
59272020-03-28 Tom Tromey <tom@tromey.com>
5928
5929 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5930
ebea7626
HD
59312020-03-27 Hannes Domani <ssbssa@yahoo.de>
5932
5933 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5934
a879b4d5
JB
59352020-03-26 John Baldwin <jhb@FreeBSD.org>
5936
5937 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5938
0826b30a
TT
59392020-03-26 Tom Tromey <tom@tromey.com>
5940
5941 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5942 (mark_common_block_symbol_computed, read_tag_string_type)
5943 (attr_to_dynamic_prop, read_subrange_type): Update.
5944 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5945 to be methods on struct attribute.
5946 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5947 (read_call_site_scope, partial_die_info::read)
5948 (partial_die_info::read, lookup_die_type, follow_die_ref):
5949 Update.
5950 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5951 from dwarf2_get_ref_die_offset.
5952 (attribute::constant_value): New method, from
5953 dwarf2_get_attr_constant_value.
5954 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5955 Declare method.
5956 <constant_value>: New method.
5957
2b2558bf
TT
59582020-03-26 Tom Tromey <tom@tromey.com>
5959
5960 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5961 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5962 (dwarf_type_encoding_name): Move to stringify.c.
5963 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5964 * dwarf2/stringify.c: New file.
5965 * dwarf2/stringify.h: New file.
5966
eeb64781
TT
59672020-03-26 Tom Tromey <tom@tromey.com>
5968
5969 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5970 Rewrite.
5971
a39fdb41
TT
59722020-03-26 Tom Tromey <tom@tromey.com>
5973
5974 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5975 methods.
5976 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5977 (lookup_ranges_base): Likewise.
5978 (read_cutu_die_from_dwo, read_full_die_1): Update.
5979
436c571c
TT
59802020-03-26 Tom Tromey <tom@tromey.com>
5981
5982 * dwarf2/read.c (read_import_statement, read_file_scope)
5983 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5984 (read_lexical_block_scope, read_call_site_scope)
5985 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5986 (handle_struct_member_die, process_structure_scope)
5987 (update_enumeration_type_from_children)
5988 (process_enumeration_scope, read_array_type, read_common_block)
5989 (read_namespace, read_module, read_subroutine_type): Update.
5990 (sibling_die): Remove.
5991
052c8bb8
TT
59922020-03-26 Tom Tromey <tom@tromey.com>
5993
5994 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5995 (build_type_psymtabs_reader, read_structure_type)
5996 (read_enumeration_type, read_full_die_1): Update.
5997 (dwarf2_attr_no_follow): Move to die.h.
5998 * dwarf2/die.h (struct die_info) <attr>: New method.
5999
2b24b6e4
TT
60002020-03-26 Tom Tromey <tom@tromey.com>
6001
6002 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6003 <base_address>: Now an optional.
6004 (dwarf2_find_base_address, dwarf2_rnglists_process)
6005 (dwarf2_ranges_process, fill_in_loclist_baton)
6006 (dwarf2_symbol_mark_computed): Update.
6007
c2d50fd0
TT
60082020-03-26 Tom Tromey <tom@tromey.com>
6009
6010 * dwarf2/read.c (struct die_info): Move to die.h.
6011 * dwarf2/die.h: New file.
6012
0df7ad3a
TT
60132020-03-26 Tom Tromey <tom@tromey.com>
6014
6015 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6016 * dwarf2/read.c
6017 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6018 Move to line-header.c.
6019 (read_checked_initial_length_and_offset, read_formatted_entries):
6020 Likewise.
6021 (dwarf_decode_line_header): Split into two.
6022 * dwarf2/line-header.c
6023 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6024 Move from read.c.
6025 (read_checked_initial_length_and_offset, read_formatted_entries):
6026 Likewise.
6027 (dwarf_decode_line_header): New function, split from read.c.
6028
86c0bb4c
TT
60292020-03-26 Tom Tromey <tom@tromey.com>
6030
6031 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6032 Declare method.
6033 * dwarf2/read.c (read_attribute_value): Update.
6034 (dwarf2_per_objfile::read_line_string): Rename from
6035 read_indirect_line_string.
6036 (read_formatted_entries): Update.
6037
2ef46c2f
TT
60382020-03-26 Tom Tromey <tom@tromey.com>
6039
6040 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6041 variable.
6042
4f9c1eda
TT
60432020-03-26 Tom Tromey <tom@tromey.com>
6044
6045 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6046 const.
6047 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6048 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6049 parameter const.
6050
5a0e026f
TT
60512020-03-26 Tom Tromey <tom@tromey.com>
6052
6053 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6054 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6055 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6056 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6057
8844c11b
TT
60582020-03-26 Tom Tromey <tom@tromey.com>
6059
6060 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6061 file_names_size, file_full_name, file_file_name>: Use const.
6062 <file_name_at, file_names>: Add const overload.
6063 * dwarf2/line-header.c (line_header::file_file_name)
6064 (line_header::file_full_name): Update.
6065
c90ec28a
TT
60662020-03-26 Tom Tromey <tom@tromey.com>
6067
6068 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6069 (macro_start_file, consume_improper_spaces)
6070 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6071 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6072 (dwarf_decode_macros): Move to macro.c.
6073 * dwarf2/macro.c: New file.
6074 * dwarf2/macro.h: New file.
6075 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6076
4f44ae6c
TT
60772020-03-26 Tom Tromey <tom@tromey.com>
6078
6079 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6080 method.
6081 * dwarf2/section.c: New method. From
6082 read_indirect_string_at_offset_from.
6083 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6084 (read_indirect_string_at_offset_from): Move to section.c.
6085 (read_indirect_string_at_offset): Rewrite.
6086 (read_indirect_line_string_at_offset): Remove.
6087 (read_indirect_string, read_indirect_line_string)
6088 (dwarf_decode_macro_bytes): Update.
6089
a0194fa8
TT
60902020-03-26 Tom Tromey <tom@tromey.com>
6091
6092 * dwarf2/section.h (struct dwarf2_section_info)
6093 <overload_complaint>: Declare.
6094 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6095 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6096 Rename from dwarf2_section_buffer_overflow_complaint.
6097 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6098 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6099
3d27bbdb
TT
61002020-03-26 Tom Tromey <tom@tromey.com>
6101
6102 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6103 Declare.
6104 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6105 Move from read.c.
6106 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6107 to section.c.
6108
9eac9650
TT
61092020-03-26 Tom Tromey <tom@tromey.com>
6110
6111 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6112
bf80d710
TT
61132020-03-26 Tom Tromey <tom@tromey.com>
6114
6115 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6116 "builder".
6117 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6118 parameter.
6119 (dwarf_decode_macros): Update.
6120
0314b390
TT
61212020-03-26 Tom Tromey <tom@tromey.com>
6122
6123 * dwarf2/read.c (read_attribute_value): Update.
6124 (read_indirect_string_from_dwz): Move to dwz.c; change into
6125 method.
6126 (dwarf_decode_macro_bytes): Update.
6127 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6128 * dwarf2/dwz.c: New file.
6129 * Makefile.in (COMMON_SFILES): Add dwz.c.
6130
9fda78b6
TT
61312020-03-26 Tom Tromey <tom@tromey.com>
6132
6133 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6134 * dwarf2/read.c: Add include.
6135 * dwarf2/index-write.c: Add include.
6136 * dwarf2/index-cache.c: Add include.
6137 * dwarf2/dwz.h: New file.
6138
33aa3c10
TT
61392020-03-25 Tom Tromey <tom@tromey.com>
6140
6141 * compile/compile-object-load.c (get_out_value_type): Mention
6142 correct symbol name in error message.
6143
d503b685
HD
61442020-03-25 Hannes Domani <ssbssa@yahoo.de>
6145
6146 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6147
7b1eff95
TV
61482020-03-25 Tom de Vries <tdevries@suse.de>
6149
6150 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6151 * symmisc.c (dump_symtab_1): Print user and includes fields.
6152 (maintenance_info_symtabs): Same.
6153
dd895392
AB
61542020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6155
6156 PR gdb/25534
6157 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6158 (riscv_regcache_cooked_write): New function.
6159 (riscv_push_dummy_call): Use new function.
6160 (riscv_return_value): Likewise.
6161
5ab2fbf1
SM
61622020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6163
6164 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6165 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6166 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6167 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6168 * infrun.c (follow_fork): Likewise.
6169 (follow_fork_inferior): Likewise.
6170 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6171 * linux-nat.h (class linux_nat_target): Likewise.
6172 * remote.c (class remote_target) <follow_fork>: Likewise.
6173 (remote_target::follow_fork): Likewise.
6174 * target-delegates.c: Re-generate.
6175 * target.c (default_follow_fork): Likewise.
6176 (target_follow_fork): Likewise.
6177 * target.h (struct target_ops) <follow_fork>: Likewise.
6178 (target_follow_fork): Likewise.
6179
a64fafb5
TV
61802020-03-24 Tom de Vries <tdevries@suse.de>
6181
6182 * psymtab.c (maintenance_info_psymtabs): Print user field.
6183
fe26d3a3
TT
61842020-03-20 Tom Tromey <tromey@adacore.com>
6185
6186 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6187 const.
6188 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6189 const.
6190
c884cc46
SM
61912020-03-20 Simon Marchi <simon.marchi@efficios.com>
6192
6193 * ptrace.m4: Don't check for ptrace declaration.
6194 * config.in: Re-generate.
6195 * configure: Re-generate.
6196 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6197 not defined.
6198
1ff700c2
KR
61992020-03-20 Kamil Rytarowski <n54@gmx.com>
6200
6201 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6202 `PTRACE_TYPE_RET'.
6203 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6204 * sparc-nat.c (gdb_ptrace): Likewise.
6205 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6206
f7d4f0b1
TT
62072020-03-20 Tom Tromey <tromey@adacore.com>
6208
6209 * c-exp.y (lex_one_token): Fix assert.
6210
f67210ff
TT
62112020-03-20 Tom Tromey <tromey@adacore.com>
6212
6213 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6214 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6215 strncpy call.
6216
1773be9e
TT
62172020-03-20 Tom Tromey <tromey@adacore.com>
6218
6219 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6220
70304be9
TT
62212020-03-20 Tom Tromey <tromey@adacore.com>
6222
6223 * ada-valprint.c (print_variant_part): Remove parameters; switch
6224 to value-based API.
6225 (print_field_values): Likewise.
6226 (ada_val_print_struct_union): Likewise.
6227 (ada_value_print_1): Update.
6228
9faa006d
KR
62292020-03-20 Kamil Rytarowski <n54@gmx.com>
6230
6231 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6232 nbsd_nat_target instead of inf_ptrace_target.
6233 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6234 nbsd_nat_target.
6235
4a90f062
KR
62362020-03-20 Kamil Rytarowski <n54@gmx.com>
6237
6238 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6239 it to the ptrace call.
6240 * (store_registers): Likewise.
6241
62422020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6243
6244 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6245 it to the ptrace call.
6246 * (store_registers): Likewise.
6247
2d07da27
LM
62482020-03-19 Luis Machado <luis.machado@linaro.org>
6249
6250 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6251 valid, fetch vg value from ptrace.
6252
f09db380
KR
62532020-03-19 Kamil Rytarowski <n54@gmx.com>
6254 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6255 * inf-ptrace.c: Likewise.
6256 * (gdb_ptrace): Add.
6257 * (inf_ptrace_target::resume): Update.
6258 * (inf_ptrace_target::xfer_partial): Likewise.
6259 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6260 * (inf_ptrace_peek_poke): Update.
6261
fcc7376e
KR
62622020-03-19 Kamil Rytarowski <n54@gmx.com>
6263
6264 * x86-bsd-nat.c (gdb_ptrace): New.
6265 * (x86bsd_dr_set): Add new argument `ptid'.
6266 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6267 x86bsd_dr_set_addr): Update.
6268
cada5fc9
AB
62692020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6270
6271 * remote.c (remote_target::process_stop_reply): Handle events for
6272 all threads differently.
6273
19a2740f
AB
62742020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6275
6276 * completer.c (completion_tracker::remove_completion): Define new
6277 function.
6278 * completer.h (completion_tracker::remove_completion): Declare new
6279 function.
6280 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6281 when adding a C++ function symbol.
6282
724fd9ba
AB
62832020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6284
6285 * completer.c (completion_tracker::completion_hash_entry): Define
6286 new class.
6287 (advance_to_filename_complete_word_point): Call
6288 recompute_lowest_common_denominator.
6289 (completion_tracker::completion_tracker): Call discard_completions
6290 to setup the hash table.
6291 (completion_tracker::discard_completions): Allow for being called
6292 from the constructor, pass new equal function, and element deleter
6293 when constructing the hash table. Initialise new class member
6294 variables.
6295 (completion_tracker::maybe_add_completion): Remove use of
6296 m_entries_vec, and store more information into m_entries_hash.
6297 (completion_tracker::recompute_lcd_visitor): New function, most
6298 content taken from...
6299 (completion_tracker::recompute_lowest_common_denominator):
6300 ...here, this now just visits each item in the hash calling the
6301 above visitor.
6302 (completion_tracker::build_completion_result): Remove use of
6303 m_entries_vec, call recompute_lowest_common_denominator.
6304 * completer.h (completion_tracker::have_completions): Remove use
6305 of m_entries_vec.
6306 (completion_tracker::completion_hash_entry): Declare new class.
6307 (completion_tracker::recompute_lowest_common_denominator): Change
6308 function signature.
6309 (completion_tracker::recompute_lcd_visitor): Declare new function.
6310 (completion_tracker::m_entries_vec): Delete.
6311 (completion_tracker::m_entries_hash): Initialize to NULL.
6312 (completion_tracker::m_lowest_common_denominator_valid): New
6313 member variable.
6314 (completion_tracker::m_lowest_common_denominator_max_length): New
6315 member variable.
6316
5a82b8a1
KR
63172020-03-17 Kamil Rytarowski <n54@gmx.com>
6318
6319 * regformats/regdef.h: Put reg in gdb namespace.
6320
fb516a69
KR
63212020-03-17 Kamil Rytarowski <n54@gmx.com>
6322
6323 * i386-bsd-nat.c (gdb_ptrace): New.
6324 * (i386bsd_fetch_inferior_registers,
6325 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6326 * (i386bsd_fetch_inferior_registers,
6327 i386bsd_store_inferior_registers) Use gdb_ptrace.
6328
1c0aa1fb
KR
63292020-03-17 Kamil Rytarowski <n54@gmx.com>
6330
6331 * amd64-bsd-nat.c (gdb_ptrace): New.
6332 * (amd64bsd_fetch_inferior_registers,
6333 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6334 * (amd64bsd_fetch_inferior_registers,
6335 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6336
5ccd2fb7
KR
63372020-03-17 Kamil Rytarowski <n54@gmx.com>
6338
6339 * user-regs.c (user_reg::read): Rename to...
6340 (user_reg::xread): ...this.
6341 * (append_user_reg): Rename argument `read' to `xread'.
6342 * (user_reg_add_builtin): Likewise.
6343 * (user_reg_add): Likewise.
6344 * (value_of_user_reg): Likewise.
6345
2108a63a
KR
63462020-03-17 Kamil Rytarowski <n54@gmx.com>
6347
6348 * sparc-nat.c (gdb_ptrace): New.
6349 * sparc-nat.c (sparc_fetch_inferior_registers)
6350 (sparc_store_inferior_registers) Remove obsolete comment.
6351 * sparc-nat.c (sparc_fetch_inferior_registers)
6352 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6353 * sparc-nat.c (sparc_fetch_inferior_registers)
6354 (sparc_store_inferior_registers) Use gdb_ptrace.
6355
a225c9a8
KR
63562020-03-17 Kamil Rytarowski <n54@gmx.com>
6357
6358 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6359 it to the ptrace call.
6360 * sh-nbsd-nat.c (store_registers): Likewise.
6361
98097623
KR
63622020-03-17 Kamil Rytarowski <n54@gmx.com>
6363
6364 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6365 nbsd_nat_target instead of inf_ptrace_target.
6366 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6367 nbsd_nat_target.
6368
9e38d619
KR
63692020-03-17 Kamil Rytarowski <n54@gmx.com>
6370
6371 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6372
a2ecbe9f
KR
63732020-03-17 Kamil Rytarowski <n54@gmx.com>
6374
6375 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6376 <sys/sysctl.h>.
6377 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6378
58990295
TV
63792020-03-17 Tom de Vries <tdevries@suse.de>
6380
6381 PR gdb/23710
6382 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6383 fields.
6384 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6385 fields.
6386 (process_imported_unit_die): Skip import of c++ CUs.
6387
771dd3a8
TT
63882020-03-16 Tom Tromey <tom@tromey.com>
6389
6390 * p-valprint.c (pascal_object_print_value): Initialize
6391 base_value.
6392
817a7585
AK
63932020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6394 Shahab Vahedi <shahab@synopsys.com>
6395
6396 * Makefile.in: Add arch/arc.o
6397 * configure.tgt: Likewise.
6398 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6399 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6400 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6401 * arc-tdep.h (arc_read_description): Add proto type.
6402 * arch/arc.c: New file.
6403 * arch/arc.h: Likewise.
6404 * features/Makefile: Replace old target descriptions with new.
6405 * features/arc-arcompact.c: Remove.
6406 * features/arc-arcompact.xml: Likewise.
6407 * features/arc-v2.c: Likewise
6408 * features/arc-v2.xml: Likewise
6409 * features/arc/aux-arcompact.xml: New file.
6410 * features/arc/aux-v2.xml: Likewise.
6411 * features/arc/core-arcompact.xml: Likewise.
6412 * features/arc/core-v2.xml: Likewise.
6413 * features/arc/aux-arcompact.c: Generate.
6414 * features/arc/aux-v2.c: Likewise.
6415 * features/arc/core-arcompact.c: Likewise.
6416 * features/arc/core-v2.c: Likewise.
6417 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6418
67430cd0
TT
64192020-03-16 Tom Tromey <tromey@adacore.com>
6420
6421 PR gdb/25663:
6422 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6423 putting value into bcache.
6424
30efb6c7
SM
64252020-03-16 Simon Marchi <simon.marchi@efficios.com>
6426
6427 PR gdb/21500
6428 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6429 to...
6430 (amd64_windows_init_abi_common): ... this. Don't set size of
6431 long type.
6432 (amd64_windows_init_abi): New function.
6433 (amd64_cygwin_init_abi): New function.
6434 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6435 the Cygwin OS ABI.
6436 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6437 comment.
6438
8db52437
SM
64392020-03-16 Simon Marchi <simon.marchi@efficios.com>
6440
6441 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6442 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6443 (pe_import_directory_entry): New struct type.
6444 (is_linked_with_cygwin_dll): New function.
6445 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6446 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6447 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6448
5982a56a
SM
64492020-03-16 Simon Marchi <simon.marchi@efficios.com>
6450
6451 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6452 i386_cygwin_core_osabi_sniffer.
6453
7a1998df
SM
64542020-03-16 Simon Marchi <simon.marchi@efficios.com>
6455
6456 * i386-cygwin-tdep.c: Rename to...
6457 * i386-windows-tdep.c: ... this.
6458 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6459 i386-windows-tdep.c.
6460 * configure.tgt: Likewise.
6461
053205cc
SM
64622020-03-16 Simon Marchi <simon.marchi@efficios.com>
6463
6464 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6465 * osabi.c (gdb_osabi_names): Add "Windows".
6466 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6467 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6468 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6469 i386_cygwin_osabi_sniffer.
6470 (_initialize_i386_cygwin_tdep): Register OS ABI
6471 GDB_OSABI_WINDOWS for i386.
6472 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6473 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6474 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6475 for x86-64.
6476 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6477 when the target matches '*-*-mingw*'.
6478
fe4b2ee6
SM
64792020-03-16 Simon Marchi <simon.marchi@efficios.com>
6480
6481 * defs.h (enum gdb_osabi): Move to...
6482 * osabi.h (enum gdb_osabi): ... here.
6483 * gdbarch.sh: Include osabi.h in gdbarch.h.
6484 * gdbarch.h: Re-generate.
6485
cb9b645d
SM
64862020-03-16 Simon Marchi <simon.marchi@efficios.com>
6487
6488 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6489 function.
6490 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6491
3293bbaf
TT
64922020-03-14 Tom Tromey <tom@tromey.com>
6493
6494 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6495 for C++.
6496 (c_type_print_modifier): Likewise. Add "language" parameter.
6497 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6498 (c_type_print_base_1): Update.
6499 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6500 constants.
6501 * type-stack.c (type_stack::insert): Handle tp_atomic and
6502 tp_restrict.
6503 (type_stack::follow_type_instance_flags): Likewise.
6504 (type_stack::follow_types): Likewise. Merge type-following code.
6505 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6506 (space_identifier, cv_with_space_id)
6507 (const_or_volatile_or_space_identifier_noopt)
6508 (const_or_volatile_or_space_identifier): Remove.
6509 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6510 rules.
6511 (ptr_operator, typebase): Update.
6512 (enum token_flag) <FLAG_C>: New constant.
6513 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6514 "_Atomic".
6515 (lex_one_token): Handle FLAG_C.
6516
154151a6
KR
65172020-03-14 Kamil Rytarowski <n54@gmx.com>
6518
6519 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6520 it to the ptrace call.
6521 * m68k-bsd-nat.c (store_registers): Likewise.
6522
bc107784
KR
65232020-03-14 Kamil Rytarowski <n54@gmx.com>
6524
6525 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6526 gdb_byte *.
6527 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6528 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6529 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6530
01a80117
KR
65312020-03-14 Kamil Rytarowski <n54@gmx.com>
6532
6533 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6534 nbsd_nat_target instead of inf_ptrace_target.
6535 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6536 nbsd_nat_target.
6537
f90280ca
KR
65382020-03-14 Kamil Rytarowski <n54@gmx.com>
6539
6540 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6541 register_t.
6542
6def66f1
KR
65432020-03-14 Kamil Rytarowski <n54@gmx.com>
6544
6545 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6546 it to the ptrace call.
6547 * alpha-bsd-nat.c (store_registers): Likewise.
6548
66eaca97
KR
65492020-03-14 Kamil Rytarowski <n54@gmx.com>
6550
6551 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6552 includes.
6553 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6554 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6555 fill_fpregset): Likewise.
6556
4fed520b
KR
65572020-03-14 Kamil Rytarowski <n54@gmx.com>
6558
6559 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6560 nbsd_nat_target instead of inf_ptrace_target.
6561 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6562 nbsd_nat_target.
6563
2190cf06
KR
65642020-03-14 Kamil Rytarowski <n54@gmx.com>
6565
6566 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6567 register_t.
6568
75c56d3d
KR
65692020-03-14 Kamil Rytarowski <n54@gmx.com>
6570
6571 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6572 it to the ptrace call.
6573 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6574 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6575 * arm-nbsd-nat.c (store_register): Likewise.
6576 * arm-nbsd-nat.c (store_regs): Likewise.
6577 * arm-nbsd-nat.c (store_fp_register): Likewise.
6578 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6579
6018d381
KR
65802020-03-14 Kamil Rytarowski <n54@gmx.com>
6581
6582 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6583 nbsd_nat_target instead of inf_ptrace_target.
6584 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6585 nbsd_nat_target.
6586
013f99f0
KR
65872020-03-14 Kamil Rytarowski <n54@gmx.com>
6588
6589 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6590 it to the ptrace call.
6591 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6592
12753073
KR
65932020-03-14 Kamil Rytarowski <n54@gmx.com>
6594
6227b330
KR
6595 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6596 it to the ptrace call.
6597 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6598
65992020-03-14 Kamil Rytarowski <n54@gmx.com>
6600
6601 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6602 gdb_byte *.
12753073
KR
6603 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6604
d5be5fa4
KR
66052020-03-14 Kamil Rytarowski <n54@gmx.com>
6606
6607 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6608 instead of inf_ptrace_target.
6609 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6610 nbsd_nat_target.
6611
8110f842
KR
66122020-03-14 Kamil Rytarowski <n54@gmx.com>
6613
6614 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6615 register_t.
6616
52feded7
KR
66172020-03-14 Kamil Rytarowski <n54@gmx.com>
6618
6619 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6620 register_t.
6621
25567eee
KR
66222020-03-14 Kamil Rytarowski <n54@gmx.com>
6623
6624 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6625 register_t.
6626
426a9c18
TT
66272020-03-13 Tom Tromey <tom@tromey.com>
6628
6629 * value.h (val_print): Don't declare.
6630 * valprint.h (val_print_array_elements)
6631 (val_print_scalar_formatted, generic_val_print): Don't declare.
6632 * valprint.c (generic_val_print_array): Take a struct value.
6633 (generic_val_print_ptr, generic_val_print_memberptr)
6634 (generic_val_print_bool, generic_val_print_int)
6635 (generic_val_print_char, generic_val_print_complex)
6636 (generic_val_print): Remove.
6637 (generic_value_print): Update.
6638 (do_val_print): Remove unused parameters. Don't call
6639 la_val_print.
6640 (val_print): Remove.
6641 (common_val_print): Update. Don't call value_check_printable.
6642 (val_print_scalar_formatted, val_print_array_elements): Remove.
6643 * rust-lang.c (rust_val_print): Remove.
6644 (rust_language_defn): Update.
6645 * p-valprint.c (pascal_val_print): Remove.
6646 (pascal_value_print_inner): Update.
6647 (pascal_object_print_val_fields, pascal_object_print_val):
6648 Remove.
6649 (pascal_object_print_static_field): Update.
6650 * p-lang.h (pascal_val_print): Don't declare.
6651 * p-lang.c (pascal_language_defn): Update.
6652 * opencl-lang.c (opencl_language_defn): Update.
6653 * objc-lang.c (objc_language_defn): Update.
6654 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6655 * m2-lang.h (m2_val_print): Don't declare.
6656 * m2-lang.c (m2_language_defn): Update.
6657 * language.h (struct language_defn) <la_val_print>: Remove.
6658 * language.c (unk_lang_value_print_inner): Rename. Change
6659 argument types.
6660 (unknown_language_defn, auto_language_defn): Update.
6661 * go-valprint.c (go_val_print): Remove.
6662 * go-lang.h (go_val_print): Don't declare.
6663 * go-lang.c (go_language_defn): Update.
6664 * f-valprint.c (f_val_print): Remove.
6665 * f-lang.h (f_value_print): Don't declare.
6666 * f-lang.c (f_language_defn): Update.
6667 * d-valprint.c (d_val_print): Remove.
6668 * d-lang.h (d_value_print): Don't declare.
6669 * d-lang.c (d_language_defn): Update.
6670 * cp-valprint.c (cp_print_value_fields)
6671 (cp_print_value_fields_rtti, cp_print_value): Remove.
6672 (cp_print_static_field): Update.
6673 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6674 (c_val_print_struct, c_val_print_union, c_val_print_int)
6675 (c_val_print_memberptr, c_val_print): Remove.
6676 * c-lang.h (c_val_print_array, cp_print_value_fields)
6677 (cp_print_value_fields_rtti): Don't declare.
6678 * c-lang.c (c_language_defn, cplus_language_defn)
6679 (asm_language_defn, minimal_language_defn): Update.
6680 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6681 (ada_val_print_enum): Take a struct value.
6682 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6683 (ada_val_print): Remove.
6684 (ada_value_print_1): Update.
6685 (printable_val_type): Remove.
6686 * ada-lang.h (ada_val_print): Don't declare.
6687 * ada-lang.c (ada_language_defn): Update.
6688
42331a1e
TT
66892020-03-13 Tom Tromey <tom@tromey.com>
6690
6691 * valprint.c (do_val_print): Update.
6692 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6693 a struct value.
6694 (value_to_value_object_no_release): Declare.
6695 * python/py-value.c (value_to_value_object_no_release): New
6696 function.
6697 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6698 struct value.
6699 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6700 function.
6701 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6702 a struct value.
6703 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6704 Declare.
6705 (gdbscm_apply_val_pretty_printer): Take a struct value.
6706 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6707 value.
6708 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6709 value.
6710 * extension-priv.h (struct extension_language_ops)
6711 <apply_val_pretty_printer>: Take a struct value.
6712 * cp-valprint.c (cp_print_value): Create a struct value.
6713 (cp_print_value): Update.
6714
3a916a97
TT
67152020-03-13 Tom Tromey <tom@tromey.com>
6716
6717 * ada-valprint.c (print_field_values): Call common_val_print.
6718
b59eac37
TT
67192020-03-13 Tom Tromey <tom@tromey.com>
6720
6721 * ada-valprint.c (val_print_packed_array_elements): Remove
6722 bitoffset and val parameters. Call common_val_print.
6723 (ada_val_print_string): Remove offset, address, and original_value
6724 parameters.
6725 (ada_val_print_array): Update.
6726 (ada_value_print_array): New function.
6727 (ada_value_print_1): Call it.
6728
03371129
TT
67292020-03-13 Tom Tromey <tom@tromey.com>
6730
6731 * ada-valprint.c (ada_value_print): Use common_val_print.
6732
2e088f8b
TT
67332020-03-13 Tom Tromey <tom@tromey.com>
6734
6735 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6736
39ef85a8
TT
67372020-03-13 Tom Tromey <tom@tromey.com>
6738
6739 * ada-valprint.c (ada_value_print_num): New function.
6740 (ada_value_print_1): Use it.
6741
b9fa6e07
TT
67422020-03-13 Tom Tromey <tom@tromey.com>
6743
6744 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6745
416595d6
TT
67462020-03-13 Tom Tromey <tom@tromey.com>
6747
6748 * ada-valprint.c (ada_value_print_ptr): New function.
6749 (ada_value_print_1): Use it.
6750
5b5e15ec
TT
67512020-03-13 Tom Tromey <tom@tromey.com>
6752
6753 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6754 call common_val_print.
6755 (ada_val_print_1): Update.
6756 (ada_value_print_1): New function.
6757 (ada_value_print_inner): Rewrite.
6758
fbf54e75
TT
67592020-03-13 Tom Tromey <tom@tromey.com>
6760
6761 * cp-valprint.c (cp_print_value_fields): Update.
6762 (cp_print_value): New function.
6763
64b653ca
TT
67642020-03-13 Tom Tromey <tom@tromey.com>
6765
6766 * m2-valprint.c (m2_value_print_inner): Use
6767 cp_print_value_fields.
6768 * cp-valprint.c (cp_print_value_fields): New function.
6769 * c-valprint.c (c_value_print_struct): New function.
6770 (c_value_print_inner): Use c_value_print_struct.
6771 * c-lang.h (cp_print_value_fields): Declare.
6772
6999f067
TT
67732020-03-13 Tom Tromey <tom@tromey.com>
6774
6775 * c-valprint.c (c_value_print_array): New function.
6776 (c_value_print_inner): Use it.
6777
ce80b8bd
TT
67782020-03-13 Tom Tromey <tom@tromey.com>
6779
6780 * c-valprint.c (c_value_print_memberptr): New function.
6781 (c_value_print_inner): Use it.
6782
2faac269
TT
67832020-03-13 Tom Tromey <tom@tromey.com>
6784
6785 * c-valprint.c (c_value_print_int): New function.
6786 (c_value_print_inner): Use it.
6787
da3e2c29
TT
67882020-03-13 Tom Tromey <tom@tromey.com>
6789
6790 * c-valprint.c (c_value_print_ptr): New function.
6791 (c_value_print_inner): Use it.
6792
50836231
TT
67932020-03-13 Tom Tromey <tom@tromey.com>
6794
6795 * c-valprint.c (c_value_print_inner): Rewrite.
6796
4f412b6e
TT
67972020-03-13 Tom Tromey <tom@tromey.com>
6798
6799 * valprint.c (generic_value_print_complex): New function.
6800 (generic_value_print): Use it.
6801
f5354008
TT
68022020-03-13 Tom Tromey <tom@tromey.com>
6803
6804 * valprint.c (generic_val_print_float): Don't call
6805 val_print_scalar_formatted.
6806 (generic_val_print, generic_value_print): Update.
6807
3eec3b05
TT
68082020-03-13 Tom Tromey <tom@tromey.com>
6809
6810 * valprint.c (generic_value_print_char): New function
6811 (generic_value_print): Use it.
6812
fdddfccb
TT
68132020-03-13 Tom Tromey <tom@tromey.com>
6814
6815 * valprint.c (generic_value_print_int): New function.
6816 (generic_value_print): Use it.
6817
6dde7521
TT
68182020-03-13 Tom Tromey <tom@tromey.com>
6819
6820 * valprint.c (generic_value_print_bool): New function.
6821 (generic_value_print): Use it.
6822
4112d2e6
TT
68232020-03-13 Tom Tromey <tom@tromey.com>
6824
6825 * valprint.c (generic_val_print_func): Simplify.
6826 (generic_val_print, generic_value_print): Update.
6827
65786af6
TT
68282020-03-13 Tom Tromey <tom@tromey.com>
6829
6830 * valprint.c (generic_val_print_flags): Remove.
6831 (generic_val_print, generic_value_print): Update.
6832 (val_print_type_code_flags): Add original_value parameter.
6833
40f3ce18
TT
68342020-03-13 Tom Tromey <tom@tromey.com>
6835
6836 * valprint.c (generic_val_print): Update.
6837 (generic_value_print): Update.
6838 * valprint.c (generic_val_print_enum): Don't call
6839 val_print_scalar_formatted.
6840
2a5b130b
TT
68412020-03-13 Tom Tromey <tom@tromey.com>
6842
6843 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6844 * valprint.c (generic_value_print_ptr): New function.
6845
abc66ce9
TT
68462020-03-13 Tom Tromey <tom@tromey.com>
6847
6848 * valprint.c (generic_value_print): Rewrite.
6849
07a32858
TT
68502020-03-13 Tom Tromey <tom@tromey.com>
6851
6852 * p-valprint.c (pascal_object_print_value_fields)
6853 (pascal_object_print_value): New functions.
6854
64d64d3a
TT
68552020-03-13 Tom Tromey <tom@tromey.com>
6856
6857 * p-valprint.c (pascal_value_print_inner): Rewrite.
6858
6a95a1f5
TT
68592020-03-13 Tom Tromey <tom@tromey.com>
6860
6861 * f-valprint.c (f_value_print_innner): Rewrite.
6862
59fcdac6
TT
68632020-03-13 Tom Tromey <tom@tromey.com>
6864
6865 * m2-valprint.c (m2_print_unbounded_array): New overload.
6866 (m2_print_unbounded_array): Update.
6867 (m2_print_array_contents): Take a struct value.
6868 (m2_value_print_inner): Rewrite.
6869
d133c3e1
TT
68702020-03-13 Tom Tromey <tom@tromey.com>
6871
6872 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6873 (d_value_print_inner): New function.
6874 * d-lang.h (d_value_print_inner): Declare.
6875 * d-lang.c (d_language_defn): Use d_value_print_inner.
6876
23b0f06b
TT
68772020-03-13 Tom Tromey <tom@tromey.com>
6878
6879 * go-valprint.c (go_value_print_inner): New function.
6880 * go-lang.h (go_value_print_inner): Declare.
6881 * go-lang.c (go_language_defn): Use go_value_print_inner.
6882
5f56f7cb
TT
68832020-03-13 Tom Tromey <tom@tromey.com>
6884
6885 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6886 API.
6887 (rust_val_print): Rewrite.
6888 (rust_value_print_inner): New function, from rust_val_print.
6889 (rust_language_defn): Use rust_value_print_inner.
6890
26792ee0
TT
68912020-03-13 Tom Tromey <tom@tromey.com>
6892
6893 * ada-valprint.c (ada_value_print_inner): New function.
6894 * ada-lang.h (ada_value_print_inner): Declare.
6895 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6896
24051bbe
TT
68972020-03-13 Tom Tromey <tom@tromey.com>
6898
6899 * f-valprint.c (f_value_print_innner): New function.
6900 * f-lang.h (f_value_print_innner): Declare.
6901 * f-lang.c (f_language_defn): Use f_value_print_innner.
6902
c0941be6
TT
69032020-03-13 Tom Tromey <tom@tromey.com>
6904
6905 * p-valprint.c (pascal_value_print_inner): New function.
6906 * p-lang.h (pascal_value_print_inner): Declare.
6907 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6908
62c4663d
TT
69092020-03-13 Tom Tromey <tom@tromey.com>
6910
6911 * m2-valprint.c (m2_value_print_inner): New function.
6912 * m2-lang.h (m2_value_print_inner): Declare.
6913 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6914
62182190
TT
69152020-03-13 Tom Tromey <tom@tromey.com>
6916
6917 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6918 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6919 * c-valprint.c (c_value_print_inner): New function.
6920 * c-lang.h (c_value_print_inner): Declare.
6921 * c-lang.c (c_language_defn, cplus_language_defn)
6922 (asm_language_defn, minimal_language_defn): Use
6923 c_value_print_inner.
6924
1e592a8a
TT
69252020-03-13 Tom Tromey <tom@tromey.com>
6926
6927 * p-valprint.c (pascal_object_print_value_fields): Now static.
6928 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6929
7fe471e9
TT
69302020-03-13 Tom Tromey <tom@tromey.com>
6931
6932 * c-valprint.c (c_val_print_array): Simplify.
6933
d121c6ce
TT
69342020-03-13 Tom Tromey <tom@tromey.com>
6935
6936 * valprint.c (value_print_array_elements): New function.
6937 * valprint.h (value_print_array_elements): Declare.
6938
4dba70ee
TT
69392020-03-13 Tom Tromey <tom@tromey.com>
6940
6941 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6942 * mips-tdep.c (mips_print_register): Use
6943 value_print_scalar_formatted.
6944
4f9ae810
TT
69452020-03-13 Tom Tromey <tom@tromey.com>
6946
6947 * valprint.h (value_print_scalar_formatted): Declare.
6948 * valprint.c (value_print_scalar_formatted): New function.
6949
156bfec9
TT
69502020-03-13 Tom Tromey <tom@tromey.com>
6951
6952 * valprint.h (generic_value_print): Declare.
6953 * valprint.c (generic_value_print): New function.
6954
2b4e573d
TT
69552020-03-13 Tom Tromey <tom@tromey.com>
6956
6957 * valprint.c (do_val_print): Call la_value_print_inner, if
6958 available.
6959 * rust-lang.c (rust_language_defn): Update.
6960 * p-lang.c (pascal_language_defn): Update.
6961 * opencl-lang.c (opencl_language_defn): Update.
6962 * objc-lang.c (objc_language_defn): Update.
6963 * m2-lang.c (m2_language_defn): Update.
6964 * language.h (struct language_defn) <la_value_print_inner>: New
6965 member.
6966 * language.c (unknown_language_defn, auto_language_defn): Update.
6967 * go-lang.c (go_language_defn): Update.
6968 * f-lang.c (f_language_defn): Update.
6969 * d-lang.c (d_language_defn): Update.
6970 * c-lang.c (c_language_defn, cplus_language_defn)
6971 (asm_language_defn, minimal_language_defn): Update.
6972 * ada-lang.c (ada_language_defn): Update.
6973
a1f6a07c
TT
69742020-03-13 Tom Tromey <tom@tromey.com>
6975
6976 * c-valprint.c (c_value_print): Use common_val_print.
6977
410cf315
TT
69782020-03-13 Tom Tromey <tom@tromey.com>
6979
6980 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6981
72a45c93
TT
69822020-03-13 Tom Tromey <tom@tromey.com>
6983
6984 * f-valprint.c (f77_print_array_1, f_val_print): Use
6985 common_val_print.
6986
040f66bd
TT
69872020-03-13 Tom Tromey <tom@tromey.com>
6988
6989 * riscv-tdep.c (riscv_print_one_register_info): Use
6990 common_val_print.
6991
a6e05a6c
TT
69922020-03-13 Tom Tromey <tom@tromey.com>
6993
6994 * mi/mi-main.c (output_register): Use common_val_print.
6995
3444c526
TT
69962020-03-13 Tom Tromey <tom@tromey.com>
6997
6998 * infcmd.c (default_print_one_register_info): Use
6999 common_val_print.
7000
c2a44efe
TT
70012020-03-13 Tom Tromey <tom@tromey.com>
7002
7003 * valprint.h (common_val_print_checked): Declare.
7004 * valprint.c (common_val_print_checked): New function.
7005 * stack.c (print_frame_arg): Use common_val_print_checked.
7006
b0c26e99
TT
70072020-03-13 Tom Tromey <tom@tromey.com>
7008
7009 * valprint.c (do_val_print): New function, from val_print.
7010 (val_print): Use do_val_print.
7011 (common_val_print): Use do_val_print.
7012
ce3acbe9
TT
70132020-03-13 Tom Tromey <tom@tromey.com>
7014
7015 * valprint.c (value_print): Use scoped_value_mark.
7016
96c7f873
TV
70172020-03-13 Tom de Vries <tdevries@suse.de>
7018
7019 PR symtab/25646
7020 * psymtab.c (partial_symtab::partial_symtab): Don't set
7021 globals_offset and statics_offset. Push element onto
7022 current_global_psymbols and current_static_psymbols stacks.
7023 (concat): New function.
7024 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7025 element from current_global_psymbols and current_static_psymbols
7026 stacks. Concat popped elements to global_psymbols and
7027 static_symbols.
7028 (add_psymbol_to_list): Use current_global_psymbols and
7029 current_static_psymbols stacks.
7030 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7031 current_static_psymbols fields.
7032
6ba0a321
CB
70332020-03-12 Christian Biesinger <cbiesinger@google.com>
7034
7035 * corelow.c (sniff_core_bfd): Remove.
7036 (class core_target) <m_core_vec>: Remove.
7037 (core_target::core_target): Update.
7038 (core_file_fns): Remove.
7039 (deprecated_add_core_fns): Remove.
7040 (default_core_sniffer): Remove.
7041 (sniff_core_bfd): Remove.
7042 (default_check_format): Remove.
7043 (gdb_check_format): Remove.
7044 (core_target_open): Update.
7045 (core_target::get_core_register_section): Update.
7046 (get_core_registers_cb): Update.
7047 (core_target::fetch_registers): Update.
7048 * gdbcore.h (struct core_fns): Remove.
7049 (deprecated_add_core_fns): Remove.
7050 (default_core_sniffer): Remove.
7051 (default_check_format): Remove.
7052
227031b2
TT
70532020-03-12 Tom Tromey <tom@tromey.com>
7054
7055 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7056 CORE_ADDR.
7057 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7058
53807e9f
TT
70592020-03-12 Tom Tromey <tom@tromey.com>
7060
7061 * remote.c (remote_target::download_tracepoint)
7062 (remote_target::enable_tracepoint)
7063 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7064 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7065 sprintf_vma.
7066
64f25102
TT
70672020-03-12 Tom Tromey <tom@tromey.com>
7068
7069 * symfile-mem.c: Update CORE_ADDR size assert.
7070
272cd5a3
SM
70712020-03-12 Simon Marchi <simon.marchi@efficios.com>
7072
7073 * selftest.m4: Move to gdbsupport/.
7074 * acinclude.m4: Update path to selftest.m4.
7075
74cd3f9d
SM
70762020-03-12 Simon Marchi <simon.marchi@efficios.com>
7077
7078 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7079 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7080 gdbarch-selfselftests.c and selftest-arch.c.
7081 (SUBDIR_UNITTESTS_OBS): Rename to...
7082 (SELFTESTS_OBS): ... this.
7083 (COMMON_SFILES): Remove disasm-selftests.c and
7084 gdbarch-selftests.c.
7085 * configure.ac: Don't add selftest-arch.{c,o} to
7086 CONFIG_{SRCS,OBS}.
7087 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7088 preprocessor conditions.
7089
db6878ac
SM
70902020-03-12 Simon Marchi <simon.marchi@efficios.com>
7091
7092 * configure.ac: Don't source bfd/development.sh.
7093 * selftest.m4: Modify comment.
7094 * configure: Re-generate.
7095
4d696a5c
SM
70962020-03-12 Simon Marchi <simon.marchi@efficios.com>
7097
7098 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7099 not "true" or "false".
7100 * configure: Re-generate.
7101
8dd8e1c7
CB
71022020-03-12 Christian Biesinger <cbiesinger@google.com>
7103
7104 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7105 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7106 renamed to arm_nbsd_supply_gregset.
7107 (fetch_register): Update to call arm_nbsd_supply_gregset.
7108 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7109 (arm_netbsd_nat_target::fetch_registers): Update.
7110 (fetch_elfcore_registers): Removed.
7111 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7112 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7113 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7114 not require NetBSD system headers.
7115 (arm_nbsd_regset): New struct.
7116 (arm_nbsd_iterate_over_regset_sections): New function.
7117 (arm_netbsd_init_abi_common): Updated to call
7118 set_gdbarch_iterate_over_regset_sections.
7119 * arm-nbsd-tdep.h: New file.
7120
dd69bf7a
KB
71212020-03-11 Kevin Buettner <kevinb@redhat.com>
7122
7123 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7124 recursion.
7125
a0761e34
SM
71262020-03-11 Simon Marchi <simon.marchi@efficios.com>
7127
7128 * configure: Re-generate.
7129
e7a82140
TT
71302020-03-11 Tom Tromey <tromey@adacore.com>
7131
7132 * ada-typeprint.c (print_choices): Fix comment.
7133
dcc050c8
AB
71342020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7135
7136 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7137 previous item in the list, when the list has no items.
7138
1c33af77
TV
71392020-03-11 Tom de Vries <tdevries@suse.de>
7140
7141 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7142 PROP_LOCLIST handling code.
7143
8c95582d
AB
71442020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7145
7146 * buildsym-legacy.c (record_line): Pass extra parameter to
7147 record_line.
7148 * buildsym.c (buildsym_compunit::record_line): Take an extra
7149 parameter, reduce duplication in the line table, and record the
7150 is_stmt flag in the line table.
7151 * buildsym.h (buildsym_compunit::record_line): Add extra
7152 parameter.
7153 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7154 non-statement lines.
7155 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7156 this to the symtab builder.
7157 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7158 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7159 through to dwarf_record_line_1.
7160 * infrun.c (process_event_stop_test): When stepping, don't stop at
7161 a non-statement instruction, and only refresh the step info when
7162 we land in the middle of a line's range. Also add an extra
7163 comment.
7164 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7165 field.
7166 * record-btrace.c (btrace_find_line_range): Only record lines
7167 marked as is-statement.
7168 * stack.c (frame_show_address): Show the frame address if we are
7169 in a non-statement sal.
7170 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7171 (maintenance_print_one_line_table): Print a header for the is_stmt
7172 column, and include is_stmt information in the output.
7173 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7174 preference to non-statements.
7175 (find_pcs_for_symtab_line): Prefer is-statement entries.
7176 (find_line_common): Likewise.
7177 * symtab.h (struct linetable_entry): Add is_stmt field.
7178 (struct symtab_and_line): Likewise.
7179 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7180 arranging the line table.
7181
e4003a34
TV
71822020-03-07 Tom de Vries <tdevries@suse.de>
7183
7184 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7185 DIE.
7186
e8932576
TT
71872020-03-07 Tom Tromey <tom@tromey.com>
7188
7189 * valops.c (value_literal_complex): Remove obsolete comment.
7190 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7191 comment.
7192
29734269
SM
71932020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7194
7195 * infrun.h: Forward-declare thread_info.
7196 (set_step_info): Add thread_info parameter, add doc.
7197 * infrun.c (set_step_info): Add thread_info parameter, move doc
7198 to header.
7199 * infrun.c (process_event_stop_test): Pass thread to
7200 set_step_info call.
7201 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7202 set_step_info.
7203 (prepare_one_step): Add thread_info parameter, pass it to
7204 set_step_frame and prepare_one_step (recursive) call.
7205 (step_1): Pass thread to prepare_one_step call.
7206 (step_command_fsm::should_stop): Pass thread to
7207 prepare_one_step.
7208 (until_next_fsm): Pass thread to set_step_frame call.
7209 (finish_command): Pass thread to set_step_info call.
7210
b7d64b29
HD
72112020-03-06 Hannes Domani <ssbssa@yahoo.de>
7212
7213 * windows-tdep.c (windows_solib_create_inferior_hook):
7214 Check if inferior is running.
7215
09f2921c
TV
72162020-03-06 Tom de Vries <tdevries@suse.de>
7217
7218 * NEWS: Fix "the the".
7219 * ctfread.c: Same.
7220
fd760e79
TV
72212020-03-06 Tom de Vries <tdevries@suse.de>
7222
7223 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7224
20ea4a60
AB
72252020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7226
7227 * .dir-locals.el: Add a comment referencing the other copies of
7228 this file.
7229
0afbabf0
JB
72302020-03-05 John Baldwin <jhb@FreeBSD.org>
7231
7232 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7233 psargs.
7234
842806cb
TBA
72352020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7236
7237 * .gitattributes: New file.
7238
be1e3d3e
TT
72392020-03-04 Tom Tromey <tom@tromey.com>
7240
7241 * symmisc.c (print_symbol_bcache_statistics)
7242 (print_objfile_statistics): Update.
7243 * symfile.c (allocate_symtab): Use intern.
7244 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7245 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7246 macro_cache>: Remove.
7247 <string_cache>: New member.
7248 (struct objfile) <intern>: New methods.
7249 * elfread.c (elf_symtab_read): Use intern.
7250 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7251 (dwarf2_compute_name, dwarf2_physname)
7252 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7253 names.
7254 (guess_partial_die_structure_name): Update.
7255 (partial_die_info::fixup): Intern name.
7256 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7257 name.
7258 (dwarf2_name): Intern name. Update.
7259 * buildsym.c (buildsym_compunit::get_macro_table): Use
7260 string_cache.
7261
4e7625fd
TT
72622020-03-04 Tom Tromey <tom@tromey.com>
7263
7264 * jit.c (bfd_open_from_target_memory): Make "target" const.
7265 * corefile.c (gnutarget): Now const.
7266 * gdbcore.h (gnutarget): Now const.
7267
46f9f931
HD
72682020-03-04 Hannes Domani <ssbssa@yahoo.de>
7269
7270 * NEWS: Mention support for WOW64 processes.
7271 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7272 (amd64_windows_segment_register_p): Remove static.
7273 (_initialize_amd64_windows_nat): Update.
7274 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7275 * i386-windows-nat.c (context_offset): Update.
7276 (i386_mappings): Rename and remove static.
7277 (i386_windows_segment_register_p): Remove static.
7278 (_initialize_i386_windows_nat): Update.
7279 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7280 (STATUS_WX86_SINGLE_STEP): New macro.
7281 (EnumProcessModulesEx): New macro.
7282 (Wow64SuspendThread): New macro.
7283 (Wow64GetThreadContext): New macro.
7284 (Wow64SetThreadContext): New macro.
7285 (Wow64GetThreadSelectorEntry): New macro.
7286 (windows_set_context_register_offsets): Add static.
7287 (windows_set_segment_register_p): Likewise.
7288 (windows_add_thread): Adapt for WOW64 processes.
7289 (windows_fetch_one_register): Likewise.
7290 (windows_nat_target::fetch_registers): Likewise.
7291 (windows_store_one_register): Likewise.
7292 (display_selector): Likewise.
7293 (display_selectors): Likewise.
7294 (handle_exception): Likewise.
7295 (windows_continue): Likewise.
7296 (windows_nat_target::resume): Likewise.
7297 (windows_add_all_dlls): Likewise.
7298 (do_initial_windows_stuff): Likewise.
7299 (windows_nat_target::attach): Likewise.
7300 (windows_get_exec_module_filename): Likewise.
7301 (windows_nat_target::create_inferior): Likewise.
7302 (windows_xfer_siginfo): Likewise.
7303 (_initialize_loadable): Initialize Wow64SuspendThread,
7304 Wow64GetThreadContext, Wow64SetThreadContext,
7305 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7306 * windows-nat.h (windows_set_context_register_offsets):
7307 Remove declaration.
7308 (windows_set_segment_register_p): Likewise.
7309 (i386_windows_segment_register_p): Add declaration.
7310 (amd64_windows_segment_register_p): Likewise.
7311
440cf44e
LM
73122020-03-04 Luis Machado <luis.machado@linaro.org>
7313
7314 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7315 in "info registers" for AArch64/ARM.
7316
7317 The change caused "info registers" to not print GPR's.
7318
7319 gdb/ChangeLog:
7320
7321 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7322
7323 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7324 when reg->group is empty and reggroup is not.
7325
1009d92f
TT
73262020-03-03 Tom Tromey <tromey@adacore.com>
7327
7328 * dwarf2/frame.c (struct dwarf2_frame_cache)
7329 <checked_tailcall_bottom, entry_cfa_sp_offset,
7330 entry_cfa_sp_offset_p>: Remove members.
7331 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7332 (dwarf2_frame_prev_register): Don't call
7333 dwarf2_tailcall_sniffer_first.
7334 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7335 * frame-unwind.c (add_unwinder): New fuction.
7336 (frame_unwind_init): Use it. Add tailcall unwinder.
7337
5e5d66b6
AB
73382020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7339 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7340
7341 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7342 value should be printed as true.
7343
584cf46d
HD
73442020-03-03 Hannes Domani <ssbssa@yahoo.de>
7345
7346 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7347 (windows_init_abi): Set and use windows_so_ops.
7348
7b973adc
SDJ
73492020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7350
7351 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7352 when verifying if dealing with a convenience variable.
7353
bb7b70ab
LM
73542020-03-03 Luis Machado <luis.machado@linaro.org>
7355
7356 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7357
9822cb57
SM
73582020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7359
7360 * infrun.c (gdbarch_supports_displaced_stepping): New.
7361 (use_displaced_stepping): Break up conditions in smaller pieces.
7362 Use gdbarch_supports_displaced_stepping.
7363 (displaced_step_prepare_throw): Use
7364 gdbarch_supports_displaced_stepping.
7365
63e163f2
AB
73662020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7367
7368 * NEWS: Mention new behaviour of the history filename.
7369 * top.c (write_history_p): Add comment.
7370 (show_write_history_p): Add header comment, give a different
7371 message when history writing is on, but the history filename is
7372 empty.
7373 (history_filename): Add comment.
7374 (history_filename_empty): New function.
7375 (show_history_filename): Add header comment, give a different
7376 message when the filename is empty.
7377 (init_history): Compare history_filename against nullptr, and only
7378 read history if the filename is not empty.
7379 (set_history_filename): Add header comment, and only make
7380 non-empty filenames absolute.
7381 (init_main): Make the filename argument to 'set history filename'
7382 optional.
7383
81b86b97
CB
73842020-03-02 Christian Biesinger <cbiesinger@google.com>
7385
7386 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7387 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7388 (fetch_fp_register): Update.
7389 (fetch_fp_regs): Update.
7390 (store_fp_register): Update.
7391 (store_fp_regs): Update.
7392 (arm_netbsd_nat_target::read_description): New function.
7393 (fetch_elfcore_registers): Update.
7394
24ed6739
AB
73952020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7396
7397 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7398 general_thread if the stop reply is missing a thread-id.
7399 (remote_target::process_stop_reply): Use the first non-exited
7400 thread if the target didn't pass a thread-id.
7401 * infrun.c (do_target_wait): Move call to
7402 switch_to_inferior_no_thread to ....
7403 (do_target_wait_1): ... here.
7404
a84bb2a0
JT
74052020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7406
7407 * debuginfod-support.c: Include defs.h first.
7408
658dadf0
TV
74092020-02-28 Tom de Vries <tdevries@suse.de>
7410
7411 * symfile.c (set_initial_language): Use default language for lookup.
7412
4ebe4877
SM
74132020-02-28 Simon Marchi <simon.marchi@efficios.com>
7414
7415 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7416 reader variable, pass `this` to read_cutu_die_from_dwo.
7417
e5da1139
AM
74182020-02-27 Aaron Merey <amerey@redhat.com>
7419
7420 * source.c (open_source_file): Check for nullptr when computing
7421 srcpath.
7422
317f7127
TT
74232020-02-27 Tom Tromey <tromey@adacore.com>
7424
7425 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7426 member.
7427 (dwarf2_add_field): Don't update nfields.
7428 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7429
3104d9ee
AB
74302020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7431
7432 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7433 abs.
7434
b83470bf
TT
74352020-02-26 Tom Tromey <tom@tromey.com>
7436
7437 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7438 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7439 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7440 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7441 per_cu_data.
7442
edfe0a0c
TT
74432020-02-26 Tom Tromey <tom@tromey.com>
7444
7445 * dwarf2/index-write.c (psym_index_map): Change type.
7446 (add_address_entry_worker, write_one_signatured_type)
7447 (recursively_count_psymbols, recursively_write_psymbols)
7448 (class debug_names, psyms_seen_size, write_gdbindex)
7449 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7450
0d79cdc4
AM
74512020-02-26 Aaron Merey <amerey@redhat.com>
7452
7453 * Makefile.in: Handle optional debuginfod support.
7454 * NEWS: Update.
7455 * README: Add --with-debuginfod summary.
7456 * config.in: Regenerate.
7457 * configure: Regenerate.
7458 * configure.ac: Handle optional debuginfod support.
7459 * debuginfod-support.c: debuginfod helper functions.
7460 * debuginfod-support.h: Ditto.
7461 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7462 summary.
7463 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7464 when a dwz file cannot be found.
7465 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7466 debuginfo file cannot be found.
7467 * source.c (open_source_file): Query debuginfod servers when a
7468 source file cannot be found.
7469 * top.c (print_gdb_configuration): Include
7470 --{with,without}-debuginfod in the output.
7471
b65ce565
JG
74722020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7473
7474 * thread.c (thr_try_catch_cmd): Print thread name.
7475
d4c9a4f8
SM
74762020-02-26 Simon Marchi <simon.marchi@efficios.com>
7477
7478 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7479 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7480 dwarf2_fetch_die_type_sect_off): Move to...
7481 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7482 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7483 dwarf2_fetch_die_type_sect_off): ... here.
7484 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7485 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7486 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7487
0dce4280
TV
74882020-02-26 Tom de Vries <tdevries@suse.de>
7489
7490 PR gdb/25603
7491 * symfile.c (set_initial_language): Exit-early if
7492 language_mode == language_mode_manual.
7493
450a1bfc
SM
74942020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7495
7496 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7497 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7498 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7499
9e80cfa1
AB
75002020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7501
7502 * gdbtypes.c (create_array_type_with_stride): Handle negative
7503 array strides.
7504 * valarith.c (value_subscripted_rvalue): Likewise.
7505
09624f1f
LM
75062020-02-25 Luis Machado <luis.machado@linaro.org>
7507
7508 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7509
8cb5117c
SM
75102020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7511
7512 * loc.h (dwarf2_get_die_type): Move to...
7513 * read.h (dwarf2_get_die_type): ... here.
7514 * read.c (dwarf2_get_die_type): Move doc to header.
7515
c325c44e
JB
75162020-02-25 Joel Brobecker <brobecker@adacore.com>
7517
7518 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7519 'gnulib/Makefile.in' to the list.
7520
4ac93832
TT
75212020-02-24 Tom Tromey <tom@tromey.com>
7522
7523 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7524 Remove.
7525 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7526 XOBNEWVEC.
7527
197400e8
TT
75282020-02-24 Tom Tromey <tom@tromey.com>
7529
7530 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7531 New method.
7532 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7533 (dw2_do_instantiate_symtab, dw2_get_file_names)
7534 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7535
76935768
TT
75362020-02-24 Tom Tromey <tom@tromey.com>
7537
7538 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7539 make_scoped_restore.
7540 (dwarf2_psymtab::read_symtab): Don't clear
7541 reading_partial_symbols.
7542
a88ef40d
TV
75432020-02-24 Tom de Vries <tdevries@suse.de>
7544
7545 PR gdb/25592
7546 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7547
c9af6521
TV
75482020-02-24 Tom de Vries <tdevries@suse.de>
7549
7550 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7551 commands layout next/prev/regs.
7552
5707a07a
TT
75532020-02-22 Tom Tromey <tom@tromey.com>
7554
7555 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7556 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7557
3b0fb49e
TT
75582020-02-22 Tom Tromey <tom@tromey.com>
7559
7560 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7561
283be8bf
TT
75622020-02-22 Tom Tromey <tom@tromey.com>
7563
7564 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7565 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7566 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7567 * tui/tui.c (_initialize_tui): Add usage text.
7568
ca793b96
TT
75692020-02-22 Tom Tromey <tom@tromey.com>
7570
7571 * tui/tui-win.c (tui_set_focus_command)
7572 (tui_set_win_height_command): Use error_no_arg.
7573 (_initialize_tui_win): Update help text.
7574 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7575
432b5c40
TT
75762020-02-22 Tom Tromey <tom@tromey.com>
7577
7578 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7579 * tui/tui-disasm.h (struct tui_disasm_window)
7580 <display_start_addr>: Declare.
7581 * tui/tui-source.h (struct tui_source_window)
7582 <display_start_addr>: Declare.
7583 * tui/tui-winsource.h (struct tui_source_window_base)
7584 <show_source_line, display_start_addr>: New methods.
7585 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7586 Rename and move to protected section.
7587 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7588 (tui_source_window_base::do_erase_source_content): Update.
7589 (tui_source_window_base::show_source_line): Now a method.
7590 (tui_source_window_base::show_source_content)
7591 (tui_source_window_base::tui_source_window_base)
7592 (tui_source_window_base::rerender)
7593 (tui_source_window_base::refill)
7594 (tui_source_window_base::do_scroll_horizontal)
7595 (tui_source_window_base::set_is_exec_point_at)
7596 (tui_source_window_base::update_breakpoint_info)
7597 (tui_source_window_base::update_exec_info): Update.
7598 * tui/tui-source.c (tui_source_window::set_contents)
7599 (tui_source_window::showing_source_p)
7600 (tui_source_window::do_scroll_vertical)
7601 (tui_source_window::location_matches_p)
7602 (tui_source_window::line_is_displayed): Update.
7603 (tui_source_window::display_start_addr): New method.
7604 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7605 (tui_disasm_window::do_scroll_vertical)
7606 (tui_disasm_window::location_matches_p): Update.
7607 (tui_disasm_window::display_start_addr): New method.
7608
01b1af32
TT
76092020-02-22 Tom Tromey <tom@tromey.com>
7610
7611 * NEWS: Add entry for gdb.register_window_type.
7612 * tui/tui-layout.h (window_factory): New typedef.
7613 (tui_register_window): Declare.
7614 * tui/tui-layout.c (saved_tui_windows): New global.
7615 (tui_apply_current_layout): Use it.
7616 (tui_register_window): New function.
7617 * python/python.c (do_start_initialization): Call
7618 gdbpy_initialize_tui.
7619 (python_GdbMethods): Add "register_window_type" function.
7620 * python/python-internal.h (gdbpy_register_tui_window)
7621 (gdbpy_initialize_tui): Declare.
7622 * python/py-tui.c: New file.
7623 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7624
fc96d20b
TT
76252020-02-22 Tom Tromey <tom@tromey.com>
7626
7627 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7628
935c78c0
TT
76292020-02-22 Tom Tromey <tom@tromey.com>
7630
7631 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7632 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7633 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7634 (tui_set_win_focus_to): Move from tui-win.c.
7635
0240c8f1
TT
76362020-02-22 Tom Tromey <tom@tromey.com>
7637
7638 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7639 functions.
7640 (known_window_types): New global.
7641 (tui_get_window_by_name): Reimplement.
7642 (initialize_known_windows): New function.
7643 (validate_window_name): Rewrite.
7644 (_initialize_tui_layout): Call initialize_known_windows.
7645
fdb01f0c
TT
76462020-02-22 Tom Tromey <tom@tromey.com>
7647
7648 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7649 Remove constants.
7650 * tui/tui-winsource.h (struct tui_source_window_base)
7651 <tui_source_window_base>: Remove parameter.
7652 * tui/tui-winsource.c
7653 (tui_source_window_base::tui_source_window_base): Remove
7654 parameter.
7655 (tui_source_window_base::refill): Update.
7656 * tui/tui-stack.h (struct tui_locator_window)
7657 <tui_locator_window>: Update.
7658 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7659 Default the constructor.
7660 * tui/tui-regs.h (struct tui_data_item_window)
7661 <tui_data_item_window>: Default the constructor.
7662 (struct tui_data_window) <tui_data_window>: Likewise.
7663 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7664 Default the constructor.
7665 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7666 Default the constructor.
7667 <type>: Remove.
7668 (struct tui_win_info) <tui_win_info>: Default the constructor.
7669 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7670 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7671 Default the constructor.
7672
865a5aec
TT
76732020-02-22 Tom Tromey <tom@tromey.com>
7674
7675 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7676 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7677 * tui/tui-win.c (tui_resize_all): Don't call
7678 tui_delete_invisible_windows.
7679 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7680 done.
7681 (tui_set_layout): Update.
7682 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7683 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7684 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7685
e098d18c
TT
76862020-02-22 Tom Tromey <tom@tromey.com>
7687
7688 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7689 correctly.
7690
eb9c8874
TT
76912020-02-22 Tom Tromey <tom@tromey.com>
7692
7693 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7694
7eed1a8e
TT
76952020-02-22 Tom Tromey <tom@tromey.com>
7696
7697 * tui/tui-winsource.h (struct tui_source_window_iterator)
7698 <inner_iterator>: New etytypedef.
7699 <tui_source_window_iterator>: Take "end" parameter.
7700 <tui_source_window_iterator>: Take iterator.
7701 <operator*, advance>: Update.
7702 <m_iter>: Change type.
7703 <m_end>: New field.
7704 (struct tui_source_windows) <begin, end>: Update.
7705 * tui/tui-layout.c (tui_windows): New global.
7706 (tui_apply_current_layout): Clear tui_windows.
7707 (tui_layout_window::apply): Update tui_windows.
7708 * tui/tui-data.h (tui_windows): Declare.
7709 (all_tui_windows): Now inline function.
7710 (class tui_window_iterator, struct all_tui_windows): Remove.
7711
7c043ba6
TT
77122020-02-22 Tom Tromey <tom@tromey.com>
7713
7714 PR tui/17850:
7715 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7716 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7717 "height" argument.
7718 (class tui_layout_window) <get_sizes>: Likewise.
7719 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7720 argument.
7721 <get_sizes>: Add "height" argument.
7722 <m_vertical>: New field.
7723 * tui/tui-layout.c (tui_layout_split::clone): Update.
7724 (tui_layout_split::get_sizes): Add "height" argument.
7725 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7726 (tui_new_layout_command): Parse "-horizontal".
7727 (_initialize_tui_layout): Update help string.
7728 (tui_layout_split::specification): Add "-horizontal" when needed.
7729 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7730 argument.
7731 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7732 New methods.
7733
6bc56648
TT
77342020-02-22 Tom Tromey <tom@tromey.com>
7735
7736 * tui/tui-layout.h (enum tui_adjust_result): New.
7737 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7738 (class tui_layout_window) <adjust_size>: Return
7739 tui_adjust_result. Rewrite.
7740 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7741 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7742
c22fef7e
TT
77432020-02-22 Tom Tromey <tom@tromey.com>
7744
7745 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7746 parameter and return types.
7747 (class tui_layout_base) <specification>: Add "depth".
7748 (class tui_layout_window) <specification>: Add "depth".
7749 (class tui_layout_split) <specification>: Add "depth".
7750 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7751 and return types.
7752 (tui_new_layout_command): Parse sub-layouts.
7753 (_initialize_tui_layout): Update help string.
7754 (tui_layout_window::specification): Add "depth".
7755 (add_layout_command): Update.
7756
ee325b61
TT
77572020-02-22 Tom Tromey <tom@tromey.com>
7758
7759 * NEWS: Add "tui new-layout" item.
7760 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7761 Add new-layout command to help text.
7762 (validate_window_name): New function.
7763 (tui_new_layout_command): New function.
7764 (_initialize_tui_layout): Register "new-layout".
7765 (tui_layout_window::specification): New method.
7766 (tui_layout_window::specification): New method.
7767 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7768 method.
7769 (class tui_layout_window) <specification>: New method.
7770 (class tui_layout_split) <specification>: New method.
7771
416eb92d
TT
77722020-02-22 Tom Tromey <tom@tromey.com>
7773
7774 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7775 * tui/tui-win.c (window_name_completer): Update comment.
7776 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7777 Declare method.
7778 (class tui_layout_window) <replace_window>: Likewise.
7779 (class tui_layout_split) <replace_window>: Likewise.
7780 (tui_set_layout): Don't declare.
7781 (tui_set_initial_layout): Declare function.
7782 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7783 (asm_regs_layout): New globals.
7784 (tui_current_layout, show_layout): Remove.
7785 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7786 (find_layout, tui_apply_layout): New function.
7787 (layout_completer): Remove.
7788 (tui_next_layout): Reimplement.
7789 (tui_next_layout_command): New function.
7790 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7791 (tui_regs_layout): Reimplement.
7792 (tui_regs_layout_command): New function.
7793 (extract_display_start_addr): Rewrite.
7794 (next_layout, prev_layout): Remove.
7795 (tui_layout_window::replace_window): New method.
7796 (tui_layout_split::replace_window): New method.
7797 (destroy_layout): New function.
7798 (layout_list): New global.
7799 (add_layout_command): New function.
7800 (initialize_layouts): Update.
7801 (tui_layout_command): New function.
7802 (_initialize_tui_layout): Install "layout" commands.
7803 * tui/tui-data.h (enum tui_layout_type): Remove.
7804 (tui_current_layout): Don't declare.
7805
0dbc2fc7
TT
78062020-02-22 Tom Tromey <tom@tromey.com>
7807
7808 * tui/tui-regs.c (tui_reg_layout): Remove.
7809 (tui_reg_command): Use tui_regs_layout.
7810 * tui/tui-layout.h (tui_reg_command): Declare.
7811 * tui/tui-layout.c (tui_reg_command): New function.
7812
5afe342e
TT
78132020-02-22 Tom Tromey <tom@tromey.com>
7814
7815 * tui/tui.c (tui_rl_delete_other_windows): Call
7816 tui_remove_some_windows.
7817 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7818 Declare method.
7819 (class tui_layout_window) <remove_windows>: New method.
7820 (class tui_layout_split) <remove_windows>: Declare.
7821 (tui_remove_some_windows): Declare.
7822 * tui/tui-layout.c (tui_remove_some_windows): New function.
7823 (tui_layout_split::remove_windows): New method.
7824
427326a8
TT
78252020-02-22 Tom Tromey <tom@tromey.com>
7826
7827 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7828 * tui/tui-layout.h (tui_next_layout): Declare.
7829 * tui/tui-layout.c (tui_next_layout): New function.
7830
3fe12b6d
TT
78312020-02-22 Tom Tromey <tom@tromey.com>
7832
7833 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7834 correct coordinates.
7835
59b8b5d2
TT
78362020-02-22 Tom Tromey <tom@tromey.com>
7837
7838 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7839 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7840 DATA_WIN case.
7841
2a3d458b
TT
78422020-02-22 Tom Tromey <tom@tromey.com>
7843
7844 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7845 TUI_DISASM_WIN, not tui_win_list.
7846
3f0cbb04
TT
78472020-02-22 Tom Tromey <tom@tromey.com>
7848
7849 * valprint.c (generic_val_print_enum_1)
7850 (val_print_type_code_flags): Style member names.
7851 * rust-lang.c (val_print_struct, rust_print_enum)
7852 (rust_print_struct_def, rust_internal_print_type): Style member
7853 names.
7854 * p-valprint.c (pascal_object_print_value_fields): Style member
7855 names. Only call fprintf_symbol_filtered for static members.
7856 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7857 * f-valprint.c (f_val_print): Style member names.
7858 * f-typeprint.c (f_type_print_base): Style member names.
7859 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7860 call fprintf_symbol_filtered for static members.
7861 (cp_print_class_member): Style member names.
7862 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7863 member names.
7864 * ada-valprint.c (ada_print_scalar): Style enum names.
7865 (ada_val_print_enum): Likewise.
7866 * ada-typeprint.c (print_enum_type): Style enum names.
7867
d4d947ae
TT
78682020-02-21 Tom Tromey <tom@tromey.com>
7869
7870 * psympriv.h (struct partial_symtab): Update comment.
7871
e94e944b
TT
78722020-02-21 Tom Tromey <tromey@adacore.com>
7873
7874 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7875 type is CORE_ADDR.
7876
1eb73179
TV
78772020-02-21 Tom de Vries <tdevries@suse.de>
7878
7879 PR gdb/25534
7880 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7881 if dependencies[i]->user != NULL.
7882
4f180d53
AT
78832020-02-21 Ali Tamur <tamur@google.com>
7884
7885 * dwarf2/read.c (dwarf2_name): Add null check.
7886
22b6cd70
TT
78872020-02-20 Tom Tromey <tom@tromey.com>
7888
7889 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7890 ">=", in binary search.
7891 (dwarf2_find_containing_comp_unit): New overload.
7892 (run_test): New self-test.
7893 (_initialize_dwarf2_read): Register new test.
7894
bd0cf5a6
NC
78952020-02-20 Nelson Chu <nelson.chu@sifive.com>
7896
7897 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7898 * riscv-tdep.h: Likewise.
7899 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7900 rv32-only CSR.
7901 * features/riscv/64bit-csr.xml: Regenerated.
7902
3f702acd
SDJ
79032020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7904 Tom Tromey <tom@tromey.com>
7905
7906 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7907 of 'fputc_unfiltered'.
7908 (putchar_unfiltered): Call 'fputc_unfiltered'.
7909 (fputc_unfiltered): Call 'fputs_unfiltered'.
7910
d13c7322
AB
79112020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7912
7913 * config.in: Regenerate.
7914 * configure: Regenerate.
7915 * configure.ac: Add --with-python-libdir option.
7916 * main.c: Use WITH_PYTHON_LIBDIR.
7917
869d8950
TT
79182020-02-19 Tom Tromey <tom@tromey.com>
7919
7920 * symtab.c (general_symbol_info::compute_and_set_names): Use
7921 obstack_strndup. Simplify call to symbol_set_demangled_name.
7922
298e9637
SM
79232020-02-19 Simon Marchi <simon.marchi@efficios.com>
7924
7925 * dwarf2/read.c (allocate_signatured_type_table,
7926 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7927 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7928 Remove objfile parameter, update all callers.
7929
08410482
DE
79302020-02-19 Doug Evans <dje@google.com>
7931
7932 PR rust/25535
7933 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7934 rust_enum_variant calculation.
7935
dfdeeca1
TT
79362020-02-19 Tom Tromey <tromey@adacore.com>
7937
7938 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7939
2ef5453b
TT
79402020-02-19 Tom Tromey <tromey@adacore.com>
7941
7942 * ada-lang.c (cache_symbol): Use obstack_strdup.
7943
9f1528a1
AB
79442020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7945
7946 * configure: Regenerate.
7947
d3c22fa8
TT
79482020-02-19 Tom Tromey <tromey@adacore.com>
7949
7950 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7951 NULL check.
7952
bf84f706
MR
79532020-02-19 Maciej W. Rozycki <macro@wdc.com>
7954
7955 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7956
d1c9b20f
AB
79572020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7958
7959 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7960 if GDBSERVER is not defined.
7961 (riscv_tdesc_cache): Likewise, also store const target_desc.
7962 (STATIC_IN_GDB): Define.
7963 (riscv_create_target_description): Update declaration with
7964 STATIC_IN_GDB.
7965 (riscv_lookup_target_description): New function, only define if
7966 GDBSERVER is not defined.
7967 * arch/riscv.h (riscv_create_target_description): Declare only
7968 when GDBSERVER is defined.
7969 (riscv_lookup_target_description): New declaration when GDBSERVER
7970 is not defined.
7971 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7972 (riscv_linux_read_features): ...this, and return
7973 riscv_gdbarch_features instead of target_desc.
7974 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7975 (riscv_linux_read_description): Rename to...
7976 (riscv_linux_read_features): ...this.
7977 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7978 Update to use riscv_gdbarch_features and
7979 riscv_lookup_target_description.
7980 * riscv-tdep.c (riscv_find_default_target_description): Use
7981 riscv_lookup_target_description instead of
7982 riscv_create_target_description.
7983
373d7ac0
SM
79842020-02-18 Simon Marchi <simon.marchi@efficios.com>
7985
7986 * valprint.c (generic_val_print_enum_1): When printing a flag
7987 enum with value 0 and there is no enumerator with value 0, print
7988 just "0" instead of "(unknown: 0x0)".
7989
b29a2df0
SM
79902020-02-18 Simon Marchi <simon.marchi@efficios.com>
7991
7992 * valprint.c (generic_val_print_enum_1): Print unknown part of
7993 flag enum in hex.
7994
6740f0cc
SM
79952020-02-18 Simon Marchi <simon.marchi@efficios.com>
7996
7997 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7998 flag enums to contain duplicate enumerators.
7999 * valprint.c (generic_val_print_enum_1): Update comment.
8000
edd45eb0
SM
80012020-02-18 Simon Marchi <simon.marchi@efficios.com>
8002
8003 * dwarf2/read.c: Include "count-one-bits.h".
8004 (update_enumeration_type_from_children): If an enumerator has
8005 multiple bits set, don't treat the enumeration as a "flag enum".
8006 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8007 of flag enums have 0 or 1 bit set.
8008
6d0cf446
BE
80092020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8010
8011 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8012 conversion.
8013 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8014 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8015 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8016 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8017 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8018
7001c1b7
SM
80192020-02-18 Simon Marchi <simon.marchi@efficios.com>
8020
8021 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8022
fdb61c6c
SM
80232020-02-14 Simon Marchi <simon.marchi@efficios.com>
8024
8025 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8026 displaced_step_closure_up.
8027 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8028 (struct displaced_step_closure_up):
8029 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8030 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8031 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8032 Likewise.
8033 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8034 * gdbarch.c, gdbarch.h: Re-generate.
8035 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8036 displaced_step_closure_up.
8037 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8038 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8039 * infrun.h (displaced_step_closure_up): New type alias.
8040 (struct displaced_step_inferior_state) <step_closure>: Change
8041 type to displaced_step_closure_up.
8042 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8043 displaced_step_closure_up.
8044 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8045
a4a38eb4
TT
80462020-02-14 Tom Tromey <tom@tromey.com>
8047
8048 * minidebug.c (gnu_debug_key): New global.
8049 (find_separate_debug_file_in_section): Use it.
8050
e8217e61
SM
80512020-02-14 Simon Marchi <simon.marchi@efficios.com>
8052
8053 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8054 std::unique_ptr.
8055 * gdbarch.c: Re-generate.
8056 * gdbarch.h: Re-generate.
8057 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8058 change.
8059 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8060 type to std::unique_ptr.
8061 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8062 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8063 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8064 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8065 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8066 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8067 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8068 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8069 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8070
d8d83535
SM
80712020-02-14 Simon Marchi <simon.marchi@efficios.com>
8072
8073 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8074 std::unique_ptr.
8075 (displaced_step_clear): Rename to...
8076 (displaced_step_reset): ... this. Just call displaced->reset ().
8077 (displaced_step_clear_cleanup): Rename to...
8078 (displaced_step_reset_cleanup): ... this.
8079 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8080 (displaced_step_fixup): Likewise.
8081 (resume_1): Likewise.
8082 (handle_inferior_event): Restore child's memory before calling
8083 displaced_step_fixup on the parent.
8084 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8085 to std::unique_ptr.
8086 <step_closure>: Change type to std::unique_ptr.
8087
5f661e03
SM
80882020-02-14 Simon Marchi <simon.marchi@efficios.com>
8089
8090 * arm-tdep.c: Include count-one-bits.h.
8091 (cleanup_block_store_pc): Use count_one_bits.
8092 (cleanup_block_load_pc): Use count_one_bits.
8093 (arm_copy_block_xfer): Use count_one_bits.
8094 (thumb2_copy_block_xfer): Use count_one_bits.
8095 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8096 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8097 (thumb_get_next_pcs_raw): Use count_one_bits.
8098 (arm_get_next_pcs_raw): Use count_one_bits_l.
8099 * arch/arm.c (bitcount): Remove.
8100 * arch/arm.h (bitcount): Remove.
8101
8084e579
TT
81022020-02-14 Tom Tromey <tromey@adacore.com>
8103
8104 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8105 Update.
8106 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8107 * dwarf2/loc.c (call_site_find_chain_1): Return
8108 unique_xmalloc_ptr.
8109 (call_site_find_chain): Likewise.
8110
258bf0ee
RB
81112020-02-14 Richard Biener <rguenther@suse.de>
8112
8113 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8114 on expression with division operators.
8115
f98a8458
AKS
81162020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8117
8118 * MAINTAINERS (Write After Approval): Adding myself.
8119
d1437c0e
TT
81202020-02-12 Tom Tromey <tom@tromey.com>
8121
8122 * event-loop.c (event_data, gdb_event, event_handler_func):
8123 Remove.
8124
3d4560f7
TT
81252020-02-12 Tom Tromey <tom@tromey.com>
8126
8127 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8128 (dwarf2_frame_objfile_data): Add comment.
8129 (find_comp_unit, set_comp_unit): New functions.
8130 (dwarf2_frame_find_fde): Use find_comp_unit.
8131 (dwarf2_build_frame_info): Use set_comp_unit.
8132
21982304
TT
81332020-02-12 Tom Tromey <tom@tromey.com>
8134
8135 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8136 (comp_unit): Don't initialize objfile.
8137 (execute_cfa_program): Add text_offset parameter.
8138 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8139 (dwarf2_frame_cache): Update.
8140 (dwarf2_build_frame_info): Don't set "objfile" member.
8141
4debb237
TT
81422020-02-12 Tom Tromey <tom@tromey.com>
8143
8144 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8145 (decode_frame_entry): Likewise.
8146 (dwarf2_build_frame_info): Update.
8147
0d404d44
TT
81482020-02-12 Tom Tromey <tom@tromey.com>
8149
8150 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8151 (decode_frame_entry_1): Use the comp_unit obstack.
8152
a7a3ae5c
TT
81532020-02-12 Tom Tromey <tom@tromey.com>
8154
8155 * dwarf2/frame.c (struct comp_unit): Add initializers and
8156 constructor.
8157 (dwarf2_frame_objfile_data): Store a comp_unit.
8158 (dwarf2_frame_find_fde): Update.
8159 (dwarf2_build_frame_info): Use "new".
8160
a9d65418
TT
81612020-02-12 Tom Tromey <tom@tromey.com>
8162
8163 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8164 (dwarf2_fde_table): Typedef for std::vector.
8165 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8166 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8167 (decode_frame_entry): Update.
8168 (dwarf2_build_frame_info): Use "new".
8169
7559c217
CB
81702020-02-12 Christian Biesinger <cbiesinger@google.com>
8171
8172 * arm-tdep.c (arm_gdbarch_init): Update.
8173 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8174 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8175 have_neon, is_m>: Change to bool.
8176
aeefc73c
CB
81772020-02-12 Christian Biesinger <cbiesinger@google.com>
8178
8179 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8180
d27b8e5f
TT
81812020-02-12 Tom Tromey <tom@tromey.com>
8182
8183 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8184
cd5900f3
HD
81852020-02-12 Hannes Domani <ssbssa@yahoo.de>
8186
8187 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8188 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8189
f056b22b
TT
81902020-02-11 Tom Tromey <tom@tromey.com>
8191
8192 * psymtab.h: Update comment.
8193
f92ff6b5
TT
81942020-02-11 Tom Tromey <tom@tromey.com>
8195
8196 * gdb_obstack.h (struct auto_obstack): Use
8197 DISABLE_COPY_AND_ASSIGN.
8198
3fd6912b
TT
81992020-02-11 Tom Tromey <tom@tromey.com>
8200
8201 * dwarf2/frame.h (struct objfile): Don't forward declare.
8202
69ed9b74
CB
82032020-02-11 Christian Biesinger <cbiesinger@google.com>
8204
8205 * cris-tdep.c (cris_supply_gregset): Change signature to match
8206 what struct regset expects.
8207 (cris_regset): New struct.
8208 (fetch_core_registers): Remove.
8209 (cris_iterate_over_regset_sections): New function.
8210 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8211 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8212
bda874f6
CB
82132020-02-11 Christian Biesinger <cbiesinger@google.com>
8214
8215 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8216 registers.
8217
754e1564
CB
82182020-02-11 Christian Biesinger <cbiesinger@google.com>
8219
8220 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8221
8ddd8e0e
SM
82222020-02-11 Simon Marchi <simon.marchi@efficios.com>
8223
8224 * configure: Re-generate.
8225
898e7f60
SM
82262020-02-11 Simon Marchi <simon.marchi@efficios.com>
8227
8228 * configure: Re-generate.
8229
58df732b
SM
82302020-02-11 Simon Marchi <simon.marchi@efficios.com>
8231
8232 * acinclude: Update warning.m4 path.
8233 * warning.m4: Move to gdbsupport.
8234
da5bd37e
TT
82352020-02-11 Tom Tromey <tromey@adacore.com>
8236
8237 * remote.c (remote_console_output): Update.
8238 * printcmd.c (printf_command): Update.
8239 * event-loop.c (gdb_wait_for_event): Update.
8240 * linux-nat.c (sigchld_handler): Update.
8241 * remote-sim.c (gdb_os_write_stdout): Update.
8242 (gdb_os_flush_stdout): Update.
8243 (gdb_os_flush_stderr): Update.
8244 (gdb_os_write_stderr): Update.
8245 * exceptions.c (print_exception): Update.
8246 * remote-fileio.c (remote_fileio_func_read): Update.
8247 (remote_fileio_func_write): Update.
8248 * tui/tui.c (tui_enable): Update.
8249 * tui/tui-interp.c (tui_interp::init): Update.
8250 * utils.c (init_page_info): Update.
8251 (putchar_unfiltered, fputc_unfiltered): Update.
8252 (gdb_flush): Update.
8253 (emit_style_escape): Update.
8254 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8255 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8256 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8257 (stderr_file::write): Update.
8258 (stderr_file::puts): Update.
8259 * ui-file.h (ui_file_isatty, ui_file_write)
8260 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8261 (ui_file_puts): Don't declare.
8262
85f0dd3c
TV
82632020-02-10 Tom de Vries <tdevries@suse.de>
8264
8265 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8266 sentinel to char *.
8267
2e927613
TV
82682020-02-09 Tom de Vries <tdevries@suse.de>
8269
8270 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8271 filename if it matches "<artificial>".
8272
6bafc845
HD
82732020-02-09 Hannes Domani <ssbssa@yahoo.de>
8274
8275 * windows-tdep.c (struct enum_value_name): New struct.
8276 (create_enum): New function.
8277 (windows_get_siginfo_type): Create and use enum types.
8278
7928d571
HD
82792020-02-09 Hannes Domani <ssbssa@yahoo.de>
8280
8281 * NEWS: Mention $_siginfo support for Windows.
8282 * windows-nat.c (handle_exception): Set siginfo_er.
8283 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8284 (windows_xfer_siginfo): New function.
8285 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8286 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8287 (init_windows_gdbarch_data): New function.
8288 (get_windows_gdbarch_data): New function.
8289 (windows_get_siginfo_type): New function.
8290 (windows_init_abi): Register windows_get_siginfo_type.
8291 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8292
6751ebae
TT
82932020-02-08 Tom Tromey <tom@tromey.com>
8294
8295 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8296 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8297 <keep>: Declare method.
8298 <m_keep>: Remove member.
8299 <~cutu_reader>: Remove.
8300 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8301 (cutu_reader::cutu_reader): Update.
8302 (cutu_reader::keep): Rename from ~cutu_reader.
8303 (process_psymtab_comp_unit, build_type_psymtabs_1)
8304 (process_skeletonless_type_unit, load_partial_comp_unit)
8305 (load_full_comp_unit, dwarf2_read_addr_index)
8306 (read_signatured_type): Update.
8307
135f5437
TT
83082020-02-08 Tom Tromey <tom@tromey.com>
8309
8310 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8311 "want_partial_unit" parameter.
8312 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8313 Inline check for DW_TAG_partial_unit.
8314 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8315
9f66ff1c
TT
83162020-02-08 Tom Tromey <tom@tromey.com>
8317
8318 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8319 read.c.
8320 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8321 read.c.
8322
c8a7a66f
TT
83232020-02-08 Tom Tromey <tom@tromey.com>
8324
8325 * dwarf2/read.c (read_address): Move to comp-unit.c.
8326 (dwarf2_rnglists_process, dwarf2_ranges_process)
8327 (read_attribute_value, dwarf_decode_lines_1)
8328 (var_decode_location, decode_locdesc): Update.
8329 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8330 read.c. Remove "cu" parameter.
8331 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8332 method.
8333
8266302d
TT
83342020-02-08 Tom Tromey <tom@tromey.com>
8335
8336 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8337 (read_indirect_line_string): Update.
8338 * dwarf2/comp-unit.c (read_offset): Remove.
8339 (read_comp_unit_head): Update.
8340 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8341 method.
8342 (read_offset): Don't declare.
8343
4057dfde
TT
83442020-02-08 Tom Tromey <tom@tromey.com>
8345
8346 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8347 * dwarf2/read.c (struct comp_unit_head): Move to
8348 dwarf2/comp-unit.h.
8349 (enum class rcuh_kind): Move to comp-unit.h.
8350 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8351 (read_comp_unit_head, error_check_comp_unit_head)
8352 (read_and_check_comp_unit_head): Move to comp-unit.c.
8353 (read_offset, dwarf_unit_type_name): Likewise.
8354 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8355 (cutu_reader::cutu_reader, read_call_site_scope)
8356 (find_partial_die, follow_die_offset): Update.
8357 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8358
24aa364d
TT
83592020-02-08 Tom Tromey <tom@tromey.com>
8360
8361 * dwarf2/read.c (read_offset_1): Move to leb.c.
8362 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8363 (dwarf_decode_macro_bytes): Update.
8364 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8365 * dwarf2/leb.h (read_offset): Declare.
8366
2c7d5afc
TT
83672020-02-08 Tom Tromey <tom@tromey.com>
8368
8369 * dwarf2/read.c (dwarf2_section_size): Remove.
8370 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8371 Update.
8372 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8373
4075cb26
TT
83742020-02-08 Tom Tromey <tom@tromey.com>
8375
8376 * dwarf2/read.c (read_initial_length): Move to leb.c.
8377 * dwarf2/leb.h (read_initial_length): Declare.
8378 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8379 handle_nonstd parameter.
8380 * dwarf2/frame.c (read_initial_length): Remove.
8381 (decode_frame_entry_1): Update.
8382
09ba997f
TT
83832020-02-08 Tom Tromey <tom@tromey.com>
8384
8385 * dwarf2/loc.c (dwarf2_find_location_expression)
8386 (dwarf_evaluate_loc_desc::get_tls_address)
8387 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8388 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8389 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8390 (dwarf2_compile_property_to_c)
8391 (dwarf2_loc_desc_get_symbol_read_needs)
8392 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8393 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8394 (loclist_describe_location, loclist_tracepoint_var_ref)
8395 (loclist_generate_c_location): Update.
8396 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8397 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8398 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8399 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8400 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8401 (dwarf2_per_cu_data::addr_size)
8402 (dwarf2_per_cu_data::ref_addr_size)
8403 (dwarf2_per_cu_data::text_offset)
8404 (dwarf2_per_cu_data::addr_type): Now methods.
8405 (per_cu_header_read_in): Make per_cu "const".
8406 (dwarf2_version): Remove.
8407 (dwarf2_per_cu_data::int_type): Now a method.
8408 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8409 (set_die_type, read_array_type, read_subrange_index_type)
8410 (read_tag_string_type, read_subrange_type): Update.
8411 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8412 offset_size, ref_addr_size, text_offset, addr_type, version,
8413 objfile, int_type, addr_sized_int_type>: Declare methods.
8414
96c738c0
TT
84152020-02-08 Tom Tromey <tom@tromey.com>
8416
8417 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8418 Move earlier.
8419
8fdd972c
TT
84202020-02-08 Tom Tromey <tom@tromey.com>
8421
8422 * dwarf2/read.h (dwarf_line_debug): Declare.
8423 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8424 * dwarf2/read.c: Move line_header code to new files.
8425 (dwarf_line_debug): No longer static.
8426 * dwarf2/line-header.c: New file.
8427 * dwarf2/line-header.h: New file.
8428
03075812
TT
84292020-02-08 Tom Tromey <tom@tromey.com>
8430
8431 * dwarf2/read.c (struct line_header) <file_full_name,
8432 file_file_name>: Return unique_xmalloc_ptr.
8433 (line_header::file_file_name): Update.
8434 (line_header::file_full_name): Update.
8435 (dw2_get_file_names_reader): Update.
8436 (macro_start_file): Update.
8437
bb822404
TT
84382020-02-08 Tom Tromey <tom@tromey.com>
8439
8440 * dwarf2/read.c (struct line_header) <file_full_name,
8441 file_file_name>: Declare methods.
8442 (dw2_get_file_names_reader): Update.
8443 (file_file_name): Now a method.
8444 (file_full_name): Likewise.
8445 (macro_start_file): Update.
8446
009b64fc
TT
84472020-02-08 Tom Tromey <tom@tromey.com>
8448
8449 * dwarf2/read.c (dwarf_always_disassemble)
8450 (show_dwarf_always_disassemble): Move to loc.c.
8451 (_initialize_dwarf2_read): Move "always-disassemble" registration
8452 to loc.c.
8453 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8454 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8455 static.
8456 (show_dwarf_always_disassemble): Move from read.c.
8457 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8458
5895093f
TT
84592020-02-08 Tom Tromey <tom@tromey.com>
8460
8461 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8462 (create_quick_file_names_table): Return htab_up.
8463 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8464 Update.
8465 * dwarf2/read.h (struct dwarf2_per_objfile)
8466 <quick_file_names_table>: Now htab_up.
8467
b3b32279
TT
84682020-02-08 Tom Tromey <tom@tromey.com>
8469
8470 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8471
1d33d811
TT
84722020-02-08 Tom Tromey <tom@tromey.com>
8473
8474 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8475 Rewrite.
8476 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8477 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8478 (abbrev_table::abbrev_table): No longer inline.
8479 (ABBREV_HASH_SIZE): Remove.
8480 (abbrev_table::m_abbrevs): Now an htab_up.
8481
86de1d91
TT
84822020-02-08 Tom Tromey <tom@tromey.com>
8483
8484 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8485 (cutu_reader): Update.
8486 (build_type_psymtabs_1): Update.
8487 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8488 (abbrev_table::alloc_abbrev): Update.
8489 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8490 (abbrev_table::read): New static method, renamed from
8491 abbrev_table_read_table.
8492 (abbrev_table::alloc_abbrev)
8493 (abbrev_table::add_abbrev): Now private.
8494 (abbrev_table::abbrev_table): Now private.
8495 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8496
0335378b
TT
84972020-02-08 Tom Tromey <tom@tromey.com>
8498
8499 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8500 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8501 htab_up.
8502
48b490f2
TT
85032020-02-08 Tom Tromey <tom@tromey.com>
8504
8505 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8506 htab_up.
8507 (lookup_dwo_unit_in_dwp): Update.
8508 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8509 on obstack.
8510
bc68fb19
TT
85112020-02-08 Tom Tromey <tom@tromey.com>
8512
8513 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8514 obstack.
8515
d15acc42
TT
85162020-02-08 Tom Tromey <tom@tromey.com>
8517
8518 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8519 line_header_hash.
8520 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8521 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8522 Change type to htab_up.
8523
eaa5fa8b
TT
85242020-02-08 Tom Tromey <tom@tromey.com>
8525
8526 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8527 htab_up. Don't allocate on obstack.
8528 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8529 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8530 Change type to htab_up.
8531
b0b6a987
TT
85322020-02-08 Tom Tromey <tom@tromey.com>
8533
8534 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8535 Change type to htab_up.
8536 * dwarf2/read.c (create_signatured_type_table_from_index)
8537 (create_signatured_type_table_from_debug_names)
8538 (create_all_type_units, add_type_unit)
8539 (lookup_dwo_signatured_type, lookup_signatured_type)
8540 (process_skeletonless_type_unit): Update.
8541 (create_debug_type_hash_table, create_debug_types_hash_table):
8542 Change type of types_htab.
8543 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8544 htab_up. Don't allocate on obstack.
8545 (create_cus_hash_table): Change type of cus_htab parameter.
8546 (struct dwo_file) <cus, tus>: Now htab_up.
8547 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8548 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8549 (queue_and_load_all_dwo_tus): Update.
8550 * dwarf2/index-write.c (write_gdbindex): Update.
8551 (write_debug_names): Update.
8552
39856def
TT
85532020-02-08 Tom Tromey <tom@tromey.com>
8554
8555 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8556 dwarf2/read.c. Remove "next" member. Add constructor ntad
8557 destructor.
8558 (struct dwarf2_per_objfile) <queue>: New member.
8559 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8560 dwarf2/read.h.
8561 (dwarf2_queue, dwarf2_queue_tail): Remove.
8562 (class dwarf2_queue_guard): Add parameter to constructor. Use
8563 DISABLE_COPY_AND_ASSIGN.
8564 <m_per_objfile>: New member.
8565 <~dwarf2_queue_guard>: Rewrite.
8566 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8567 Update.
8568 (~dwarf2_queue_item): New.
8569
3e225074
TT
85702020-02-08 Tom Tromey <tom@tromey.com>
8571
8572 * dwarf2/read.c (struct die_info) <has_children>: New member.
8573 (dw2_get_file_names_reader): Remove has_children.
8574 (dw2_get_file_names): Update.
8575 (read_cutu_die_from_dwo): Remove has_children.
8576 (cutu_reader::init_tu_and_read_dwo_dies)
8577 (cutu_reader::cutu_reader): Update.
8578 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8579 Remove has_children.
8580 (build_type_psymtabs_1, process_skeletonless_type_unit)
8581 (load_partial_comp_unit, load_full_comp_unit): Update.
8582 (create_dwo_cu_reader): Remove has_children.
8583 (create_cus_hash_table, read_die_and_children): Update.
8584 (read_full_die_1,read_full_die): Remove has_children.
8585 (read_signatured_type): Update.
8586 (class cutu_reader) <has_children>: Remove.
8587
82ca8957
TT
85882020-02-08 Tom Tromey <tom@tromey.com>
8589
8590 * dwarf2/expr.c: Rename from dwarf2expr.c.
8591 * dwarf2/expr.h: Rename from dwarf2expr.h.
8592 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8593 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8594 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8595 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8596 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8597 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8598 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8599 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8600 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8601 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8602 * dwarf2/loc.c: Rename from dwarf2loc.c.
8603 * dwarf2/loc.h: Rename from dwarf2loc.h.
8604 * dwarf2/read.c: Rename from dwarf2read.c.
8605 * dwarf2/read.h: Rename from dwarf2read.h.
8606 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8607 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8608 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8609 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8610 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8611 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8612 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8613 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8614 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8615 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8616 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8617 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8618 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8619 Update.
8620 * Makefile.in (COMMON_SFILES): Update.
8621 (HFILES_NO_SRCDIR): Update.
8622
9e35d499
TT
86232020-02-08 Tom Tromey <tom@tromey.com>
8624
8625 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8626 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8627
1eba2311
TT
86282020-02-08 Tom Tromey <tom@tromey.com>
8629
8630 * dwarf2read.h (struct die_info): Don't declare.
8631
e41c2da2
TT
86322020-02-08 Tom Tromey <tom@tromey.com>
8633
8634 * dwarf2read.h (die_info_ptr): Remove typedef.
8635
4fc6c0d5
TT
86362020-02-08 Tom Tromey <tom@tromey.com>
8637
8638 * dwarf2read.c (read_call_site_scope)
8639 (handle_data_member_location, dwarf2_add_member_fn)
8640 (mark_common_block_symbol_computed, read_common_block)
8641 (attr_to_dynamic_prop, partial_die_info::read)
8642 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8643 (dwarf2_symbol_mark_computed, set_die_type): Update.
8644 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8645 method.
8646 (attr_form_is_block): Don't declare.
8647 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8648
cd6c91b4
TT
86492020-02-08 Tom Tromey <tom@tromey.com>
8650
8651 * dwarf2read.c (dwarf2_find_base_address, )
8652 (read_call_site_scope, rust_containing_type)
8653 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8654 (handle_data_member_location, dwarf2_add_member_fn)
8655 (get_alignment, read_structure_type, process_structure_scope)
8656 (mark_common_block_symbol_computed, read_common_block)
8657 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8658 (partial_die_info::read, read_attribute_value, new_symbol)
8659 (lookup_die_type, dwarf2_get_ref_die_offset)
8660 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8661 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8662 (dwarf2_symbol_mark_computed): Update.
8663 * dwarf2/attribute.h (struct attribute) <value_as_address,
8664 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8665 methods.
8666 (value_as_address, attr_form_is_section_offset)
8667 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8668 * dwarf2/attribute.c (attribute::value_as_address)
8669 (attribute::form_is_section_offset, attribute::form_is_constant)
8670 (attribute::form_is_ref): Now methods.
8671
162dce55
TT
86722020-02-08 Tom Tromey <tom@tromey.com>
8673
8674 * dwarf2read.c (struct attribute, DW_STRING)
8675 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8676 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8677 (attr_form_is_block, attr_form_is_section_offset)
8678 (attr_form_is_constant, attr_form_is_ref): Move.
8679 * dwarf2/attribute.h: New file.
8680 * dwarf2/attribute.c: New file, from dwarf2read.c.
8681 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8682
3054dd54
TT
86832020-02-08 Tom Tromey <tom@tromey.com>
8684
8685 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8686 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8687 Move.
8688 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8689 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8690 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8691 abbrev.c.
8692 * dwarf2/abbrev.h: New file.
8693 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8694 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8695
96b79293
TT
86962020-02-08 Tom Tromey <tom@tromey.com>
8697
8698 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8699 (dwarf2_section_size, dwarf2_get_section_info)
8700 (create_signatured_type_table_from_debug_names)
8701 (create_addrmap_from_aranges, read_debug_names_from_section)
8702 (get_gdb_index_contents_from_section, read_comp_unit_head)
8703 (error_check_comp_unit_head, read_abbrev_offset)
8704 (create_debug_type_hash_table, init_cu_die_reader)
8705 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8706 (read_comp_units_from_section, create_cus_hash_table)
8707 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8708 (create_dwp_v2_section, dwarf2_rnglists_process)
8709 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8710 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8711 (read_indirect_string_from_dwz, read_addr_index_1)
8712 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8713 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8714 (fill_in_loclist_baton): Update.
8715 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8716 get_containing_section, get_bfd_owner, get_bfd_section,
8717 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8718 (dwarf2_read_section, get_section_name, get_section_file_name)
8719 (get_containing_section, get_section_bfd_owner)
8720 (get_section_bfd_section, get_section_name, get_section_file_name)
8721 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8722 declare.
8723 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8724 (dwarf2_section_info::get_bfd_owner)
8725 (dwarf2_section_info::get_bfd_section)
8726 (dwarf2_section_info::get_name)
8727 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8728 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8729 (dwarf2_section_info::read): Now methods.
8730 * dwarf-index-write.c (class debug_names): Update.
8731
2c86cff9
TT
87322020-02-08 Tom Tromey <tom@tromey.com>
8733
8734 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8735 Move to dwarf2/section.h.
8736 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8737 (get_section_bfd_section, get_section_name)
8738 (get_section_file_name, get_section_id, get_section_flags)
8739 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8740 dwarf2/section.c.
8741 * dwarf2/section.h: New file.
8742 * dwarf2/section.c: New file, from dwarf2read.c.
8743 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8744
f4382c45
TT
87452020-02-08 Tom Tromey <tom@tromey.com>
8746
8747 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8748 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8749 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8750 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8751 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8752 * dwarf2/leb.h: New file, from dwarf2read.c.
8753 * dwarf2/leb.c: New file, from dwarf2read.c.
8754 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8755 Remove.
8756 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8757 (COMMON_SFILES): Add dwarf2/leb.c.
8758
01840b7a
JB
87592020-02-08 Joel Brobecker <brobecker@adacore.com>
8760
8761 GDB 9.1 released.
8762
dfcb27e4
IB
87632020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8764
8765 PR gdb/25190:
aac66a4c
SM
8766 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8767 * gdb/remote.c (remote_console_output): Update.
8768 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8769 (ui_file_puts): ...this.
8770 * gdb/ui-file.h (ui_file_puts): Add declaration.
8771 * gdb/utils.c (emit_style_escape): Update.
8772 (flush_wrap_buffer): Update.
8773 (fputs_maybe_filtered): Update.
8774 (fputs_unfiltered): Add function.
dfcb27e4 8775
faa17681
IB
87762020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8777
aac66a4c
SM
8778 * gdb/event-loop.c (gdb_wait_for_event): Update.
8779 * gdb/printcmd.c (printf_command): Update.
8780 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8781 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8782 (gdb_os_flush_stderr): Update.
8783 * gdb/remote.c (remote_console_output): Update.
8784 * gdb/ui-file.c (gdb_flush): Rename to...
8785 (ui_file_flush): ...this.
8786 (stderr_file::write): Update.
8787 (stderr_file::puts): Update.
8788 * gdb/ui-file.h (gdb_flush): Rename to...
8789 (ui_file_flush): ...this.
8790 * gdb/utils.c (gdb_flush): Add function.
8791 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8792
5abbbe1d
TT
87932020-02-07 Tom Tromey <tromey@adacore.com>
8794
8795 PR breakpoints/24915:
8796 * source.c (find_and_open_source): Do not check basenames_may_differ.
8797
919adfe8
TT
87982020-02-07 Tom Tromey <tom@tromey.com>
8799
8800 * README: Update gdbserver documentation.
8801 * gdbserver: Move to top level.
8802 * configure.tgt (build_gdbserver): Remove.
8803 * configure.ac: Remove --enable-gdbserver.
8804 * configure: Rebuild.
8805 * Makefile.in (distclean): Don't mention gdbserver.
8806
1d5d29e7
SV
88072020-02-06 Shahab Vahedi <shahab@synopsys.com>
8808
8809 * source-cache.c (source_cache::ensure): Surround
8810 get_plain_source_lines with a try/catch.
8811 (source_cache::get_line_charpos): Get rid of try/catch
8812 and only check for the return value of "ensure".
8813 * tui/tui-source.c (tui_source_window::set_contents):
8814 Simplify "nlines" calculation.
8815
6eb1129c
SV
88162020-02-06 Shahab Vahedi <shahab@synopsys.com>
8817
8818 * MAINTAINERS (Write After Approval): Add myself.
8819
c6a42d11
CB
88202020-02-05 Christian Biesinger <cbiesinger@google.com>
8821
8822 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8823 function call.
8824
c8ecdda6
CB
88252020-02-05 Christian Biesinger <cbiesinger@google.com>
8826
8827 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8828
f6480e70
MR
88292020-02-05 Maciej W. Rozycki <macro@wdc.com>
8830
8831 * nat/riscv-linux-tdesc.h: New file.
8832 * nat/riscv-linux-tdesc.c: New file, taking code from...
8833 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8834 ... here.
8835 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8836 NATDEPFILES.
8837
dcc9fbc6
AB
88382020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8839
8840 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8841 we don't set the fake simulator ptid to the null_ptid.
8842
719546c4
SM
88432020-02-03 Simon Marchi <simon.marchi@efficios.com>
8844
8845 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8846 * gdbthread.h (class thread_info) <resumed>: Likewise.
8847 * infrun.c (resume_1): Likewise.
8848 (proceed): Likewise.
8849 (infrun_thread_stop_requested): Likewise.
8850 (stop_all_threads): Likewise.
8851 (handle_inferior_event): Likewise.
8852 (restart_threads): Likewise.
8853 (finish_step_over): Likewise.
8854 (keep_going_stepped_thread): Likewise.
8855 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8856 (linux_handle_extended_wait): Likewise.
8857 * record-btrace.c (get_thread_current_frame_id): Likewise.
8858 * record-full.c (record_full_wait_1): Likewise.
8859 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8860 * target.c (target_resume): Likewise.
8861 * thread.c (set_running_thread): Likewise.
8862
e409c542
AKS
88632020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8864
8865 * f-valprint.c (f77_print_array_1): Changed datatype of index
8866 variable to LONGEST from int to enable it to contain bound
8867 values correctly.
8868
ee98c0da
MR
88692020-02-03 Maciej W. Rozycki <macro@wdc.com>
8870
8871 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8872 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8873 offsets according to FLEN determined.
8874 (riscv_linux_nat_target::read_description): Determine FLEN
8875 dynamically.
8876 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8877 according to FLEN determined.
8878 (riscv_linux_nat_target::store_registers): Likewise.
8879
aa66aac4
SV
88802020-02-01 Shahab Vahedi <shahab@synopsys.com>
8881
8882 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8883 when reg->group is empty and reggroup is not.
8884
fd9faca8
TT
88852020-01-31 Tom Tromey <tromey@adacore.com>
8886
8887 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8888 Call beneath target's mourn_inferior after unpushing.
8889
42330a68
AB
88902020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8891
8892 PR tui/9765
8893 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8894 have enough lines to fill the screen, still return the lowest
8895 address we found.
8896
7a27a45b
AB
88972020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8898
8899 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8900 '-', '<', and '>' commands.
8901
c47f70e2
PA
89022020-01-29 Pedro Alves <palves@redhat.com>
8903 Sergio Durigan Junior <sergiodj@redhat.com>
8904
8905 * infcmd.c (construct_inferior_arguments): Assert that
8906 'argc' is greater than 0.
8907
5133a315
LM
89082020-01-29 Luis Machado <luis.machado@linaro.org>
8909
8910 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8911 (BRK_INSN_MASK): Define to 0xd4200000.
8912 (aarch64_program_breakpoint_here_p): New function.
8913 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8914 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8915 breakpoint.c.
8916 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8917 breakpoint.h
8918 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8919 call gdbarch_program_breakpoint_here_p.
8920 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8921 default_program_breakpoint_here_p, changed return type to bool and
8922 simplified.
8923 * breakpoint.h (program_breakpoint_here): Moved prototype to
8924 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8925 return type to bool.
8926 * gdbarch.c: Regenerate.
8927 * gdbarch.h: Regenerate.
8928 * gdbarch.sh (program_breakpoint_here_p): New method.
8929 * infrun.c (handle_signal_stop): Call
8930 gdbarch_program_breakpoint_here_p.
8931
168f8c6b
TT
89322020-01-26 Tom Tromey <tom@tromey.com>
8933
8934 * ctfread.c (struct ctf_fp_info): Reindent.
8935 (_initialize_ctfread): Remove.
8936
128a391f
TT
89372020-01-26 Tom Tromey <tom@tromey.com>
8938
8939 * psymtab.c (partial_map_expand_apply)
8940 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8941 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8942 (psym_print_stats, psym_expand_symtabs_for_function)
8943 (psym_map_symbol_filenames, psym_map_matching_symbols)
8944 (psym_expand_symtabs_matching)
8945 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8946 (maintenance_check_psymtabs): Use new methods.
8947 * psympriv.h (struct partial_symtab) <readin_p,
8948 get_compunit_symtab>: New methods.
8949 <readin, compunit_symtab>: Remove members.
8950 (struct standard_psymtab): New.
8951 (struct legacy_psymtab): Derive from standard_psymtab.
8952 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8953 standard_psymtab.
8954 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8955
0494dbec
TT
89562020-01-26 Tom Tromey <tom@tromey.com>
8957
8958 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8959 read_dependencies. Add assert.
8960 * psymtab.c (partial_symtab::read_dependencies): New method.
8961 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8962 method.
8963 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8964 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8965 read_dependencies.
8966 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8967 Add assert.
8968
8566b89b
TT
89692020-01-26 Tom Tromey <tom@tromey.com>
8970
8971 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8972 Call expand_psymtab.
8973 (xcoff_read_symtab): Call expand_psymtab.
8974 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8975 legacy_expand_psymtab.
8976 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8977 method.
8978 (struct legacy_psymtab) <expand_psymtab>: Implement.
8979 <legacy_expand_psymtab>: New member.
8980 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8981 (parse_partial_symbols): Set legacy_expand_psymtab.
8982 (psymtab_to_symtab_1): Change argument order. Call
8983 expand_psymtab.
8984 (new_psymtab): Set legacy_expand_psymtab.
8985 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8986 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8987 expand_psymtab.
8988 (dwarf2_psymtab::expand_psymtab): Rename from
8989 psymtab_to_symtab_1. Call expand_psymtab.
8990 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8991 (dbx_end_psymtab): Likewise.
8992 (dbx_psymtab_to_symtab_1): Change argument order. Call
8993 expand_psymtab.
8994 (dbx_read_symtab): Call expand_psymtab.
8995 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8996 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8997 (ctf_psymtab::read_symtab): Call expand_psymtab.
8998
077cbab2
TT
89992020-01-26 Tom Tromey <tom@tromey.com>
9000
9001 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9002 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9003 messages.
9004 * mdebugread.c (mdebug_read_symtab): Remove prints.
9005 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9006 assert.
9007 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9008
891813be
TT
90092020-01-26 Tom Tromey <tom@tromey.com>
9010
9011 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9012 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9013 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9014 legacy_symtab.
9015 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9016 * psymtab.c (psymtab_to_symtab): Call method.
9017 (dump_psymtab): Update.
9018 * psympriv.h (struct partial_symtab): Add virtual destructor.
9019 <read_symtab>: New method.
9020 (struct legacy_symtab): New.
9021 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9022 (struct pst_map) <pst>: Now a legacy_psymtab.
9023 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9024 (new_psymtab): Use legacy_psymtab.
9025 * dwarf2read.h (struct dwarf2_psymtab): New.
9026 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9027 * dwarf2read.c (dwarf2_create_include_psymtab)
9028 (dwarf2_build_include_psymtabs, create_type_unit_group)
9029 (create_partial_symtab, process_psymtab_comp_unit_reader)
9030 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9031 (set_partial_user): Use dwarf2_psymtab.
9032 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9033 (psymtab_to_symtab_1, process_full_comp_unit)
9034 (process_full_type_unit, dwarf2_ranges_read)
9035 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9036 (dwarf_decode_lines): Use dwarf2_psymtab.
9037 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9038 (add_address_entry_worker, write_one_signatured_type)
9039 (recursively_count_psymbols, recursively_write_psymbols)
9040 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9041 (write_debug_names): Likewise.
9042 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9043 <pst>: Now a legacy_psymtab.
9044 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9045 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9046 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9047 * ctfread.c (struct ctf_psymtab): New.
9048 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9049 ctf_psymtab.
9050 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9051 (create_partial_symtab): Return a ctf_psymtab.
9052 (scan_partial_symbols): Update.
9053
c3693a1d
TT
90542020-01-26 Tom Tromey <tom@tromey.com>
9055
9056 * xcoffread.c (xcoff_start_psymtab): Use new.
9057 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9058 renamed from start_psymtab_common.
9059 * psympriv.h (struct partial_symtab): Add new constructor.
9060 (start_psymtab_common): Don't declare.
9061 * mdebugread.c (parse_partial_symbols): Use new.
9062 * dwarf2read.c (create_partial_symtab): Use new.
9063 * dbxread.c (start_psymtab): Use new.
9064 * ctfread.c (create_partial_symtab): Use new.
9065
32caafd0
TT
90662020-01-26 Tom Tromey <tom@tromey.com>
9067
9068 * xcoffread.c (xcoff_end_psymtab): Use new.
9069 * psymtab.c (start_psymtab_common): Use new.
9070 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9071 Update.
9072 * psympriv.h (struct partial_symtab): Add parameters to
9073 constructor. Don't inline.
9074 (allocate_psymtab): Don't declare.
9075 * mdebugread.c (new_psymtab): Use new.
9076 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9077 * dbxread.c (dbx_end_psymtab): Use new.
9078
abaa2f23
TT
90792020-01-26 Tom Tromey <tom@tromey.com>
9080
9081 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9082 allocate_psymtab. Update documentation.
9083 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9084 allocate_psymtab. Do not use new.
9085 (allocate_psymtab): Use new. Update.
9086
6d94535f
TT
90872020-01-26 Tom Tromey <tom@tromey.com>
9088
9089 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9090 * psymtab.c (psym_print_stats): Update.
9091 * psympriv.h (struct partial_symtab) <readin,
9092 psymtabs_addrmap_supported, anonymous>: Now bool.
9093 * mdebugread.c (psymtab_to_symtab_1): Update.
9094 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9095 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9096 (process_full_comp_unit, process_full_type_unit): Update.
9097 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9098 * ctfread.c (psymtab_to_symtab): Update.
9099
6f17252b
TT
91002020-01-26 Tom Tromey <tom@tromey.com>
9101
9102 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9103 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9104 * psymtab.c (psymtab_storage): Delete psymtabs.
9105 (psymtab_storage::allocate_psymtab): Use new.
9106 (psymtab_storage::discard_psymtab): Use delete.
9107 * psympriv.h (struct partial_symtab): Add constructor and
9108 initializers.
9109
f6f1cebc
TT
91102020-01-26 Tom Tromey <tom@tromey.com>
9111
9112 * machoread.c: Do not include psympriv.h.
9113
e47e48f6
PW
91142020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9115
9116 * NEWS: Mention the new option and the set/show commands.
9117
a2fedca9
PW
91182020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9119
9120 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9121 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9122 (validate_exec_file): New variables, enums, functions.
9123 (exec_file_locate_attach, print_section_info): Style the filenames.
9124 (_initialize_exec): Install show_exec_file_mismatch_command and
9125 set_exec_file_mismatch_command.
9126 * gdbcore.h (validate_exec_file): Declare.
9127 * infcmd.c (attach_command): Call validate_exec_file.
9128 * remote.c ( remote_target::remote_add_inferior): Likewise.
9129
7ffa82e1
AB
91302020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9131
9132 * frame.c (find_frame_sal): Move call to get_next_frame into more
9133 inner scope.
9134 * inline-frame.c (inilne_state) <inline_state>: Update argument
9135 types.
9136 (inilne_state) <skipped_symbol>: Rename to...
9137 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9138 (skip_inline_frames): Build vector of skipped symbols and use this
9139 to reate the inline_state.
9140 (inline_skipped_symbol): Add a comment and some assertions, fetch
9141 skipped symbol from the list.
9142
3d92a3e3
AB
91432020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9144
9145 * buildsym.c (lte_is_less_than): Delete.
9146 (buildsym_compunit::end_symtab_with_blockvector): Create local
9147 lambda function to sort line table entries, and use
9148 std::stable_sort instead of std::sort.
9149 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9150 markers when looking for a previous line.
9151
94a72be7
AB
91522020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9153
9154 * dwarf2read.c (lnp_state_machine::record_line): Include
9155 end_sequence parameter in debug print out. Record the line if we
9156 are at an end_sequence marker even if it's not the start of a
9157 statement.
9158 * symmisc.c (maintenance_print_one_line_table): Print end of
9159 sequence markers with 'END' not '0'.
9160
53af73bf
PA
91612020-01-24 Pedro Alves <palves@redhat.com>
9162
9163 PR gdb/25410
9164 * thread.c (scoped_restore_current_thread::restore): Use
9165 switch_to_inferior_no_thread.
9166 * exec.c: Include "progspace-and-thread.h".
9167 (add_target_sections, remove_target_sections):
9168 scoped_restore_current_pspace_and_thread instead of
9169 scoped_restore_current_thread.
9170 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9171 and aspace to the inferior before calling clone_program_space.
9172 Remove stale comment.
9173
3050c6f4
CB
91742020-01-24 Christian Biesinger <cbiesinger@google.com>
9175
9176 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9177 (arm_netbsd_nat_target::fetch_registers): ...this.
9178 (arm_nbsd_nat_target::store_registers): Rename to...
9179 (arm_netbsd_nat_target::store_registers): ...this.
9180
73685c7e
CB
91812020-01-24 Christian Biesinger <cbiesinger@google.com>
9182
9183 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9184 register_t.
9185
89203d40
CB
91862020-01-24 Christian Biesinger <cbiesinger@google.com>
9187
9188 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9189 Update comment.
9190 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9191 Likewise.
9192 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9193 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9194 the correct replacement (iterate_over_regset_sections).
9195 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9196 Update comment.
9197
1ba1ac88
AB
91982020-01-24 Graham Markall <graham.markall@embecosm.com>
9199
9200 PR gdb/23718
9201 * gdb/python/python.c (execute_gdb_command): Call
9202 async_enable_stdin in catch block.
9203
f3364a6d
AB
92042020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9205
9206 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9207 SWITCH_THRU_ALL_UIS.
9208
733d0a67
AB
92092020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9210
9211 PR tui/9765
9212 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9213 comment, add extra parameter, and update to store previous symbol
9214 when appropriate.
9215 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9216 add extra parameter.
9217 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9218 remove unneeded parameter, add try/catch around gdb_print_insn,
9219 rewrite to add items to asm_lines vector.
9220 (tui_find_backward_disassembly_start_address): New function.
9221 (tui_find_disassembly_address): Updated throughout.
9222 (tui_disasm_window::set_contents): Update for changes to
9223 tui_disassemble.
9224 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9225 number of lines to scroll.
9226
b3b3bada
SM
92272020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9228
9229 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9230 (SECT_OFF_DATA): Likewise.
9231 (SECT_OFF_RODATA): Likewise.
9232 (SECT_OFF_TEXT): Likewise.
9233 (SECT_OFF_BSS): Likewise.
9234 (struct objfile) <text_section_offset, data_section_offset>: New
9235 methods.
9236 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9237 objfile::text_section_offset.
9238 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9239 * coffread.c (coff_symtab_read): Likewise.
9240 (enter_linenos): Likewise.
9241 (process_coff_symbol): Likewise.
9242 * ctfread.c (get_objfile_text_range): Likewise.
9243 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9244 Use objfile::data_section_offset.
9245 * dwarf2-frame.c (execute_cfa_program): Use
9246 objfile::text_section_offset.
9247 (dwarf2_frame_find_fde): Likewise.
9248 * dwarf2read.c (create_addrmap_from_index): Likewise.
9249 (create_addrmap_from_aranges): Likewise.
9250 (dw2_find_pc_sect_compunit_symtab): Likewise.
9251 (process_psymtab_comp_unit_reader): Likewise.
9252 (add_partial_symbol): Likewise.
9253 (add_partial_subprogram): Likewise.
9254 (process_full_comp_unit): Likewise.
9255 (read_file_scope): Likewise.
9256 (read_func_scope): Likewise.
9257 (read_lexical_block_scope): Likewise.
9258 (read_call_site_scope): Likewise.
9259 (dwarf2_rnglists_process): Likewise.
9260 (dwarf2_ranges_process): Likewise.
9261 (dwarf2_ranges_read): Likewise.
9262 (dwarf_decode_lines_1): Likewise.
9263 (new_symbol): Likewise.
9264 (dwarf2_fetch_die_loc_sect_off): Likewise.
9265 (dwarf2_per_cu_text_offset): Likewise.
9266 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9267 * hppa-tdep.c (read_unwind_info): Likewise.
9268 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9269 * psympriv.h (struct partial_symtab): Likewise.
9270 * psymtab.c (find_pc_sect_psymtab): Likewise.
9271 * solib-svr4.c (enable_break): Likewise.
9272 * stap-probe.c (relocate_address): Use
9273 objfile::data_section_offset.
9274 * xcoffread.c (enter_line_range): Use
9275 objfile::text_section_offset.
9276 (read_xcoff_symtab): Likewise.
9277
ab53f382
SM
92782020-01-23 Simon Marchi <simon.marchi@efficios.com>
9279
9280 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9281 declaration to narrower scopes.
9282
e7eee665
SM
92832020-01-23 Simon Marchi <simon.marchi@efficios.com>
9284
9285 * darwin-nat.h (struct darwin_exception_msg, enum
9286 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9287 Move up.
9288 (class darwin_nat_target) <wait_1, check_new_threads,
9289 decode_exception_message, decode_message, stop_inferior,
9290 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9291 * darwin-nat.c (darwin_check_new_threads): Rename to...
9292 (darwin_nat_target::check_new_threads): ... this.
9293 (darwin_suspend_inferior_it): Remove.
9294 (darwin_decode_exception_message): Rename to...
9295 (darwin_nat_target::decode_exception_message): ... this.
9296 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9297 (darwin_decode_message): Rename to...
9298 (darwin_nat_target::decode_message): ... this.
9299 (cancel_breakpoint): Rename to...
9300 (darwin_nat_target::cancel_breakpoint): ... this.
9301 (darwin_wait): Rename to...
9302 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9303 instead of iterate_over_inferiors.
9304 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9305 (darwin_stop_inferior): Rename to...
9306 (darwin_nat_target::stop_inferior): ... this.
9307 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9308 (darwin_init_thread_list): Rename to...
9309 (darwin_nat_target::init_thread_list): ... this.
9310 (darwin_ptrace_him): Rename to...
9311 (darwin_nat_target::ptrace_him): ... this.
9312 (darwin_nat_target::create_inferior): Pass lambda function to
9313 fork_inferior.
9314 (darwin_nat_target::detach): Call stop_inferior instead of
9315 darwin_stop_inferior.
9316 * fork-inferior.h (fork_inferior): Change init_trace_fun
9317 parameter to gdb::function_view.
9318 * fork-inferior.c (fork_inferior): Likewise.
9319
c162ed3e
HD
93202020-01-23 Hannes Domani <ssbssa@yahoo.de>
9321
9322 * i386-cygwin-tdep.c (core_process_module_section): Update.
9323 * windows-nat.c (struct lm_info_windows): Add text_offset.
9324 (windows_xfer_shared_libraries): Update.
9325 * windows-tdep.c (windows_xfer_shared_library):
9326 Add text_offset_cached argument.
9327 * windows-tdep.h (windows_xfer_shared_library): Update.
9328
a1237872
SM
93292020-01-21 Simon Marchi <simon.marchi@efficios.com>
9330
9331 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9332
b3ee6dd9
SM
93332020-01-21 Simon Marchi <simon.marchi@efficios.com>
9334
9335 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9336 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9337 replace with range-based for.
9338 (gdbsim_interrupt_inferior): Remove.
9339 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9340 with a range-based for. Inline code from
9341 gdbsim_interrupt_inferior.
9342
f9fac3c8
SM
93432020-01-21 Simon Marchi <simon.marchi@efficios.com>
9344
9345 * infrun.c (proceed): Fix indentation.
9346
f6474de9
TT
93472020-01-21 Tom Tromey <tromey@adacore.com>
9348
9349 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9350 * python/python.c (python_extension_ops): Update.
9351 (gdbpy_colorize): New function.
9352 * python/lib/gdb/__init__.py (colorize): New function.
9353 * extension.h (ext_lang_colorize): Declare.
9354 * extension.c (ext_lang_colorize): New function.
9355 * extension-priv.h (struct extension_language_ops) <colorize>: New
9356 member.
9357 * cli/cli-style.c (_initialize_cli_style): Update help text.
9358
f0c702d4
LM
93592020-01-21 Luis Machado <luis.machado@linaro.org>
9360
9361 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9362 <cond>: Change type to bool.
9363 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9364 (aarch64_displaced_step_cb): Likewise.
9365 (aarch64_displaced_step_tb): Likewise.
9366
1ab139e5
LM
93672020-01-21 Luis Machado <luis.machado@linaro.org>
9368
9369 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9370 output.
9371
0c271889
LM
93722020-01-21 Luis Machado <luis.machado@linaro.org>
9373
9374 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9375 <pc_adjust>: Adjust the documentation.
9376 (aarch64_displaced_step_fixup): Check if PC really moved before
9377 adjusting it.
9378
4d89c1c7
TT
93792020-01-19 Tom Tromey <tom@tromey.com>
9380
9381 * disasm.c (~gdb_disassembler): New destructor.
9382 (gdb_buffered_insn_length): Call disassemble_free_target.
9383 * disasm.h (class gdb_disassembler): Declare destructor. Use
9384 DISABLE_COPY_AND_ASSIGN.
9385
c0ab21c2
TT
93862020-01-19 Tom Tromey <tom@tromey.com>
9387
9388 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9389 (die_reader_func_ftype): Remove.
9390 (cutu_reader): New class.
9391 (dw2_get_file_names_reader): Remove "data" parameter.
9392 (dw2_get_file_names): Use cutu_reader.
9393 (create_debug_type_hash_table): Update.
9394 (read_cutu_die_from_dwo): Update comment.
9395 (lookup_dwo_unit): Add dwo_name parameter.
9396 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9397 die_reader_func_ftype and data parameters.
9398 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9399 Remove die_reader_func_ftype and data parameters.
9400 (~cutu_reader): New; from init_cutu_and_read_dies.
9401 (cutu_reader::cutu_reader): Rename from
9402 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9403 and data parameters.
9404 (init_cutu_and_read_dies_simple): Remove.
9405 (struct process_psymtab_comp_unit_data): Remove.
9406 (process_psymtab_comp_unit_reader): Remove data parameter; add
9407 want_partial_unit and pretend_language parameters.
9408 (process_psymtab_comp_unit): Use cutu_reader.
9409 (build_type_psymtabs_reader): Remove data parameter.
9410 (build_type_psymtabs_1): Use cutu_reader.
9411 (process_skeletonless_type_unit): Likewise.
9412 (load_partial_comp_unit_reader): Remove.
9413 (load_partial_comp_unit): Use cutu_reader.
9414 (load_full_comp_unit_reader): Remove.
9415 (load_full_comp_unit): Use cutu_reader.
9416 (struct create_dwo_cu_data): Remove.
9417 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9418 dwo_unit parameters.
9419 (create_cus_hash_table): Use cutu_reader.
9420 (struct dwarf2_read_addr_index_data): Remove.
9421 (dwarf2_read_addr_index_reader): Remove.
9422 (dwarf2_read_addr_index): Use cutu_reader.
9423 (read_signatured_type_reader): Remove.
9424 (read_signatured_type): Use cutu_reader.
9425
45bbae5c
TT
94262020-01-19 Tom Tromey <tom@tromey.com>
9427
9428 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9429 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9430 (tui_wrefresh): Declare.
9431 * tui/tui-wingeneral.c (suppress_output): New global.
9432 (tui_suppress_output, ~tui_suppress_output): New constructor and
9433 destructor.
9434 (tui_wrefresh): New function.
9435 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9436 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9437 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9438 method.
9439 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9440 tui_wrefresh.
9441 (tui_data_window::no_refresh): New method.
9442 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9443 (tui_reg_command): Use tui_suppress_output
9444 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9445 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9446 method.
9447 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9448
4f13c1c0
TT
94492020-01-19 Tom Tromey <tom@tromey.com>
9450
9451 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9452 Handle case where symtab is null.
9453
fa47e446
SM
94542020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9455
9456 * linux-fork.c (one_fork_p): Simplify.
9457
26f42329
SM
94582020-01-17 Simon Marchi <simon.marchi@efficios.com>
9459
9460 * top.c (struct qt_args): Remove.
9461 (kill_or_detach): Change return type to void, replace `void *`
9462 parameter with a proper one.
9463 (print_inferior_quit_action): Likewise.
9464 (quit_confirm): Use range-based for loop to iterate over inferiors.
9465 (quit_force): Likewise.
9466
a9ac81b1
SM
94672020-01-17 Simon Marchi <simon.marchi@efficios.com>
9468
9469 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9470 `void *` parameter with proper parameters.
9471 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9472 (print_one_inferior): Change return type to void, replace `void *`
9473 parameter with proper parameters.
9474 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9475 inferiors.
9476 (get_other_inferior): Remove.
9477 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9478 inferiors.
9479
788eca49
SM
94802020-01-17 Simon Marchi <simon.marchi@efficios.com>
9481
9482 * mi/mi-interp.c (report_initial_inferior): Remove.
9483 (mi_interp::init): Use range-based for to iterate over inferiors.
9484
d9bc85b6
SM
94852020-01-17 Simon Marchi <simon.marchi@efficios.com>
9486
9487 * python/py-inferior.c (build_inferior_list): Remove.
9488 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9489
40c94099
CB
94902020-01-16 Christian Biesinger <cbiesinger@google.com>
9491
9492 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9493 (btrace_stitch_trace): Likewise.
9494 * charset.c (intermediate_encoding): Likewise (vaild).
9495 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9496 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9497 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9498
e0cdfe3c
HD
94992020-01-16 Hannes Domani <ssbssa@yahoo.de>
9500
9501 * windows-tdep.c (windows_get_tlb_type):
9502 Add rtl_user_process_parameters type.
9503
790f1718 95042020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9505 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9506
9507 PR build/24805
9508 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9509 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9510 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9511 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9512 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9513 (ps_plog): Redeclare exported functions with default visibility.
9514
3112ed97
NA
95152020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9516
9517 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9518 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9519
8dc3273e
SM
95202020-01-15 Simon Marchi <simon.marchi@efficios.com>
9521
9522 * infcmd.c (post_create_inferior): Use get_thread_regcache
9523 instead of get_current_regcache.
9524
ff47f4f0
TT
95252020-01-14 Tom Tromey <tom@tromey.com>
9526
9527 PR symtab/12535:
9528 * python/python.c (gdbpy_decode_line): Treat empty string the same
9529 as no argument.
9530
975f45b7
TT
95312020-01-14 Tom Tromey <tom@tromey.com>
9532
9533 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9534
25e57356
TT
95352020-01-14 Tom Tromey <tom@tromey.com>
9536
9537 * nat/linux-btrace.c: Don't include <config.h>.
9538 * nat/linux-ptrace.c: Don't include <config.h>.
9539 * nat/x86-linux-dregs.c: Don't include <config.h>.
9540
05ea2a05
TT
95412020-01-14 Tom Tromey <tom@tromey.com>
9542
9543 * configure: Rebuild.
9544 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9545
01027315
TT
95462020-01-14 Tom Tromey <tom@tromey.com>
9547
9548 * nat/x86-linux-dregs.c: Include configh.h.
9549 * nat/linux-ptrace.c: Include configh.h.
9550 * nat/linux-btrace.c: Include configh.h.
9551 * defs.h: Include config.h, bfd.h.
9552 * configure.ac: Don't source common.host.
9553 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9554 * configure: Rebuild.
9555 * acinclude.m4: Update path.
9556 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9557 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9558 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9559 (CLIBS): Add LIBSUPPORT.
9560 (CDEPS): Likewise.
9561 (COMMON_SFILES): Remove gdbsupport files.
9562 (HFILES_NO_SRCDIR): Likewise.
9563 (stamp-version): Update path to create-version.sh.
9564 (ALLDEPFILES): Remove gdbsupport files.
9565
b2ceabe8
TT
95662020-01-14 Tom Tromey <tom@tromey.com>
9567
9568 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9569 USE_WIN32API when needed.
9570 * configure.ac (USE_WIN32API): Don't define.
9571 (WIN32LIBS): Use WIN32APILIBS.
9572 * configure: Rebuild.
9573
25c51f71
TT
95742020-01-14 Tom Tromey <tom@tromey.com>
9575
9576 * configure: Rebuild.
9577 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9578
717c684d
BE
95792020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9580
9581 * skip.c (skip_function_command): Make skip w/o arguments use the
9582 name of the inlined function if pc is inside any inlined function.
9583
7da6a5b9
LM
95842020-01-14 Luis Machado <luis.machado@linaro.org>
9585
9586 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9587 * infrun.c (resume_1): Likewise.
9588 (handle_inferior_event): Remove stale comment.
9589 * linux-nat.c (linux_nat_target::resume): Update comments.
9590 (save_stop_reason): Likewise.
9591 (linux_nat_filter_event): Likewise.
9592 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9593
44e4c775
AB
95942020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9595
9596 * elfread.c (record_minimal_symbol): Set section index to 0 for
9597 non-allocatable sections.
9598
18a8505e
AT
9599
96002020-01-13 Ali Tamur <tamur@google.com>
9601
9602 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9603 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9604 to gdb::optional. Update comments.
9605 (dwo_file): Update comments.
9606 (read_attribute): Update API to take an additional out parameter,
9607 need_reprocess. This is used to mark attributes that need other
9608 attributes (e.g. str_offsets_base) for correct computation which may not
9609 have been read yet.
9610 (read_attribute_reprocess): New function declaration.
9611 (read_addr_index): Likewise.
9612 (read_dwo_str_index): Likewise.
9613 (read_stub_str_index): Likewise.
9614 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9615 (lookup_addr_base): New function definition.
9616 (lookup_ranges_base): Likewise.
9617 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9618 lookup_ranges_base.
9619 (init_cutu_and_read_dies): Update comments.
9620 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9621 unit. This is used to inherit parent's str_offsets_base and addr_base.
9622 Update comments.
9623 (init_cutu_and_read_dies_simple): Reflect API changes.
9624 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9625 (create_cus_hash_table): Change API to take parent compile unit.
9626 Reflect API changes.
9627 (open_and_init_dwo_file): Reflect API changes.
9628 (dwarf2_get_pc_bounds): Update comments.
9629 (dwarf2_record_block_ranges): Likewise.
9630 (read_full_die_1): Change implementation to reprocess attributes that
9631 need str_offsets_base and addr_base.
9632 (partial_die_info::read): Likewise.
9633 (read_attribute_reprocess): New function definition.
9634 (read_attribute_value): Change API to take an additional out parameter,
9635 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9636 when a non-dwo compile unit has index based attributes.
9637 (read_attribute): Reflect API changes.
9638 (read_addr_index_1): Reflect API changes. Update comments.
9639 (dwarf2_read_addr_index_data): Reflect API changes.
9640 (dwarf2_read_addr_index): Likewise.
9641 (read_str_index): Change API and implementation. This becomes a helper
9642 to be used by the new string index related methods. Update error
9643 message and comments.
9644 (read_dwo_str_index): New function definition.
9645 (read_stub_str_index): Likewise.
9646 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9647 * symfile.h (dwarf2_debug_sections): Likewise.
9648 * xcoffread.c (dwarf2_debug_sections): Likewise.
9649
0cac9354
SM
96502020-01-13 Simon Marchi <simon.marchi@efficios.com>
9651
9652 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9653 core_reg_sect type to gdb_byte *.
9654 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9655 * cris-tdep.c (fetch_core_registers): Likewise.
9656 * corelow.c (core_target::get_core_register_section): Change
9657 type of `contents` to gdb::byte_vector.
9658
9a6d629c
AB
96592020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9660
9661 * tui/tui-wingeneral.c (box_win): Position the title in the center
9662 of the border.
9663
d8b2f9e3
SM
96642020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9665
9666 * corelow.c (core_target::get_core_register_section): Use
9667 std::vector instead of alloca.
9668
bb564c58
SM
96692020-01-13 Simon Marchi <simon.marchi@efficios.com>
9670
9671 * warning.m4: Add -Wmissing-declarations to build_warnings.
9672 * configure: Re-generate.
9673
6b366111
SM
96742020-01-13 Simon Marchi <simon.marchi@efficios.com>
9675
9676 * python/python.c (init__gdb_module): Add declaration.
9677
6c265988
SM
96782020-01-13 Simon Marchi <simon.marchi@efficios.com>
9679
9680 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9681 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9682 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9683 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9684 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9685 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9686 * ada-exp.y (_initialize_ada_exp): Add declaration.
9687 * ada-lang.c (_initialize_ada_language): Add declaration.
9688 * ada-tasks.c (_initialize_tasks): Add declaration.
9689 * agent.c (_initialize_agent): Add declaration.
9690 * aix-thread.c (_initialize_aix_thread): Add declaration.
9691 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9692 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9693 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9694 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9695 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9696 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9697 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9698 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9699 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9700 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9701 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9702 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9703 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9704 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9705 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9706 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9707 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9708 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9709 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9710 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9711 * annotate.c (_initialize_annotate): Add declaration.
9712 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9713 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9714 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9715 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9716 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9717 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9718 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9719 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9720 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9721 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9722 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9723 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9724 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9725 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9726 * auto-load.c (_initialize_auto_load): Add declaration.
9727 * auxv.c (_initialize_auxv): Add declaration.
9728 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9729 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9730 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9731 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9732 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9733 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9734 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9735 * breakpoint.c (_initialize_breakpoint): Add declaration.
9736 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9737 * btrace.c (_initialize_btrace): Add declaration.
9738 * charset.c (_initialize_charset): Add declaration.
9739 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9740 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9741 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9742 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9743 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9744 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9745 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9746 * coffread.c (_initialize_coffread): Add declaration.
9747 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9748 * compile/compile.c (_initialize_compile): Add declaration.
9749 * complaints.c (_initialize_complaints): Add declaration.
9750 * completer.c (_initialize_completer): Add declaration.
9751 * copying.c (_initialize_copying): Add declaration.
9752 * corefile.c (_initialize_core): Add declaration.
9753 * corelow.c (_initialize_corelow): Add declaration.
9754 * cp-abi.c (_initialize_cp_abi): Add declaration.
9755 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9756 * cp-support.c (_initialize_cp_support): Add declaration.
9757 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9758 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9759 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9760 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9761 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9762 * ctfread.c (_initialize_ctfread): Add declaration.
9763 * d-lang.c (_initialize_d_language): Add declaration.
9764 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9765 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9766 * dbxread.c (_initialize_dbxread): Add declaration.
9767 * dcache.c (_initialize_dcache): Add declaration.
9768 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9769 * disasm.c (_initialize_disasm): Add declaration.
9770 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9771 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9772 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9773 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9774 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9775 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9776 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9777 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9778 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9779 * elfread.c (_initialize_elfread): Add declaration.
9780 * exec.c (_initialize_exec): Add declaration.
9781 * extension.c (_initialize_extension): Add declaration.
9782 * f-lang.c (_initialize_f_language): Add declaration.
9783 * f-valprint.c (_initialize_f_valprint): Add declaration.
9784 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9785 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9786 * filesystem.c (_initialize_filesystem): Add declaration.
9787 * findcmd.c (_initialize_mem_search): Add declaration.
9788 * findvar.c (_initialize_findvar): Add declaration.
9789 * fork-child.c (_initialize_fork_child): Add declaration.
9790 * frame-base.c (_initialize_frame_base): Add declaration.
9791 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9792 * frame.c (_initialize_frame): Add declaration.
9793 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9794 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9795 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9796 * gcore.c (_initialize_gcore): Add declaration.
9797 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9798 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9799 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9800 * gdbarch.c (_initialize_gdbarch): Add declaration.
9801 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9802 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9803 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9804 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9805 * go-lang.c (_initialize_go_language): Add declaration.
9806 * go32-nat.c (_initialize_go32_nat): Add declaration.
9807 * guile/guile.c (_initialize_guile): Add declaration.
9808 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9809 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9810 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9811 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9812 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9813 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9814 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9815 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9816 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9817 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9818 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9819 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9820 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9821 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9822 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9823 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9824 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9825 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9826 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9827 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9828 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9829 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9830 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9831 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9832 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9833 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9834 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9835 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9836 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9837 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9838 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9839 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9840 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9841 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9842 * infcall.c (_initialize_infcall): Add declaration.
9843 * infcmd.c (_initialize_infcmd): Add declaration.
9844 * inflow.c (_initialize_inflow): Add declaration.
9845 * infrun.c (_initialize_infrun): Add declaration.
9846 * interps.c (_initialize_interpreter): Add declaration.
9847 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9848 * jit.c (_initialize_jit): Add declaration.
9849 * language.c (_initialize_language): Add declaration.
9850 * linux-fork.c (_initialize_linux_fork): Add declaration.
9851 * linux-nat.c (_initialize_linux_nat): Add declaration.
9852 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9853 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9854 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9855 * m2-lang.c (_initialize_m2_language): Add declaration.
9856 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9857 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9858 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9859 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9860 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9861 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9862 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9863 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9864 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9865 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9866 * machoread.c (_initialize_machoread): Add declaration.
9867 * macrocmd.c (_initialize_macrocmd): Add declaration.
9868 * macroscope.c (_initialize_macroscope): Add declaration.
9869 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9870 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9871 * maint.c (_initialize_maint_cmds): Add declaration.
9872 * mdebugread.c (_initialize_mdebugread): Add declaration.
9873 * memattr.c (_initialize_mem): Add declaration.
9874 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9875 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9876 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9877 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9878 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9879 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9880 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9881 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9882 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9883 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9884 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9885 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9886 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9887 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9888 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9889 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9890 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9891 * mipsread.c (_initialize_mipsread): Add declaration.
9892 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9893 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9894 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9895 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9896 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9897 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9898 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9899 * nto-procfs.c (_initialize_procfs): Add declaration.
9900 * objc-lang.c (_initialize_objc_language): Add declaration.
9901 * observable.c (_initialize_observer): Add declaration.
9902 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9903 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9904 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9905 * osabi.c (_initialize_gdb_osabi): Add declaration.
9906 * osdata.c (_initialize_osdata): Add declaration.
9907 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9908 * parse.c (_initialize_parse): Add declaration.
9909 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9910 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9911 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9912 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9913 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9914 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9915 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9916 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9917 * printcmd.c (_initialize_printcmd): Add declaration.
9918 * probe.c (_initialize_probe): Add declaration.
9919 * proc-api.c (_initialize_proc_api): Add declaration.
9920 * proc-events.c (_initialize_proc_events): Add declaration.
9921 * proc-service.c (_initialize_proc_service): Add declaration.
9922 * procfs.c (_initialize_procfs): Add declaration.
9923 * producer.c (_initialize_producer): Add declaration.
9924 * psymtab.c (_initialize_psymtab): Add declaration.
9925 * python/python.c (_initialize_python): Add declaration.
9926 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9927 * record-btrace.c (_initialize_record_btrace): Add declaration.
9928 * record-full.c (_initialize_record_full): Add declaration.
9929 * record.c (_initialize_record): Add declaration.
9930 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9931 * regcache.c (_initialize_regcache): Add declaration.
9932 * reggroups.c (_initialize_reggroup): Add declaration.
9933 * remote-notif.c (_initialize_notif): Add declaration.
9934 * remote-sim.c (_initialize_remote_sim): Add declaration.
9935 * remote.c (_initialize_remote): Add declaration.
9936 * reverse.c (_initialize_reverse): Add declaration.
9937 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9938 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9939 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9940 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9941 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9942 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9943 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9944 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9945 Add declaration.
9946 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9947 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9948 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9949 * rust-exp.y (_initialize_rust_exp): Add declaration.
9950 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9951 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9952 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9953 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9954 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9955 * score-tdep.c (_initialize_score_tdep): Add declaration.
9956 * ser-go32.c (_initialize_ser_dos): Add declaration.
9957 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9958 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9959 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9960 * ser-uds.c (_initialize_ser_socket): Add declaration.
9961 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9962 * serial.c (_initialize_serial): Add declaration.
9963 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9964 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9965 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9966 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9967 * skip.c (_initialize_step_skip): Add declaration.
9968 * sol-thread.c (_initialize_sol_thread): Add declaration.
9969 * solib-aix.c (_initialize_solib_aix): Add declaration.
9970 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9971 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9972 * solib-frv.c (_initialize_frv_solib): Add declaration.
9973 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9974 * solib-target.c (_initialize_solib_target): Add declaration.
9975 * solib.c (_initialize_solib): Add declaration.
9976 * source-cache.c (_initialize_source_cache): Add declaration.
9977 * source.c (_initialize_source): Add declaration.
9978 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9979 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9980 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9981 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9982 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9983 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9984 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9985 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9986 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9987 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9988 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9989 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9990 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9991 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9992 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9993 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9994 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9995 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9996 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9997 * stabsread.c (_initialize_stabsread): Add declaration.
9998 * stack.c (_initialize_stack): Add declaration.
9999 * stap-probe.c (_initialize_stap_probe): Add declaration.
10000 * std-regs.c (_initialize_frame_reg): Add declaration.
10001 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10002 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10003 * symfile.c (_initialize_symfile): Add declaration.
10004 * symmisc.c (_initialize_symmisc): Add declaration.
10005 * symtab.c (_initialize_symtab): Add declaration.
10006 * target.c (_initialize_target): Add declaration.
10007 * target-connection.c (_initialize_target_connection): Add
10008 declaration.
10009 * target-dcache.c (_initialize_target_dcache): Add declaration.
10010 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10011 * thread.c (_initialize_thread): Add declaration.
10012 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10013 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10014 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10015 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10016 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10017 * tracectf.c (_initialize_ctf): Add declaration.
10018 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10019 * tracefile.c (_initialize_tracefile): Add declaration.
10020 * tracepoint.c (_initialize_tracepoint): Add declaration.
10021 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10022 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10023 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10024 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10025 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10026 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10027 * tui/tui.c (_initialize_tui): Add declaration.
10028 * typeprint.c (_initialize_typeprint): Add declaration.
10029 * ui-style.c (_initialize_ui_style): Add declaration.
10030 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10031 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10032 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10033 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10034 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10035 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10036 * unittests/filtered_iterator-selftests.c
10037 (_initialize_filtered_iterator_selftests): Add declaration.
10038 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10039 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10040 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10041 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10042 * unittests/main-thread-selftests.c
10043 (_initialize_main_thread_selftests): Add declaration.
10044 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10045 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10046 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10047 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10048 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10049 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10050 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10051 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10052 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10053 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10054 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10055 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10056 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10057 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10058 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10059 declaration.
10060 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10061 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10062 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10063 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10064 * user-regs.c (_initialize_user_regs): Add declaration.
10065 * utils.c (_initialize_utils): Add declaration.
10066 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10067 * valops.c (_initialize_valops): Add declaration.
10068 * valprint.c (_initialize_valprint): Add declaration.
10069 * value.c (_initialize_values): Add declaration.
10070 * varobj.c (_initialize_varobj): Add declaration.
10071 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10072 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10073 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10074 * windows-nat.c (_initialize_windows_nat): Add declaration.
10075 (_initialize_check_for_gdb_ini): Add declaration.
10076 (_initialize_loadable): Add declaration.
10077 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10078 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10079 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10080 * xcoffread.c (_initialize_xcoffread): Add declaration.
10081 * xml-support.c (_initialize_xml_support): Add declaration.
10082 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10083 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10084 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10085 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10086
e2de1eec
SM
100872020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10088
10089 * regformats/regdat.sh: Generate declaration for init function.
10090
e0037b4c
SM
100912020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10092
10093 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10094 up.
10095 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10096 close_one_inferior>: New methods.
10097 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10098 pass down target to find_inferior_pid.
10099 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10100 Pass down target to find_inferior_ptid.
10101 (gdbsim_target::create_inferior): Pass down target to
10102 add_thread_silent.
10103 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10104 target down to find_inferior_ptid and switch_to_thread.
10105 (gdbsim_target::close): Update to call close_one_inferior.
10106 (struct resume_data): Remove.
10107 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10108 directly, rather than through a void pointer.
10109 (gdbsim_target::resume): Update to call resume_one_inferior.
10110
58920b5b
SM
101112020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10112
10113 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10114
4ec89149
PA
101152020-01-12 Pedro Alves <palves@redhat.com>
10116
10117 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10118 directly for the current inferior instead of
10119 discard_all_inferiors.
10120 (discard_all_inferiors): Delete.
10121
7c392d1d
TT
101222020-01-11 Tom Tromey <tom@tromey.com>
10123
10124 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10125 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10126 deprecated_safe_get_selected_frame.
10127
d9ebdab7
TBA
101282020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10129
10130 * inferior.c (print_inferior): Switch inferior before printing it.
10131
f3c469b9
PA
101322020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10133 Pedro Alves <palves@redhat.com>
10134
10135 * progspace-and-thread.c (switch_to_program_space_and_thread):
10136 Assert there's an inferior for PSPACE. Use
10137 switch_to_inferior_no_thread to switch the inferior too.
10138 * progspace.c (program_space::~program_space): Call
10139 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10140 (program_space::free_all_objfiles): Don't call clear_symtab_users
10141 here.
10142 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10143
65c574f6
PA
101442020-01-10 Pedro Alves <palves@redhat.com>
10145
10146 * NEWS: Mention multi-target debugging, "info connections", and
10147 "add-inferior -no-connection".
10148
2f4fcf00
PA
101492020-01-10 Pedro Alves <palves@redhat.com>
10150
10151 * infrun.c: Include "target-connection.h".
10152 (check_multi_target_resumption): New.
10153 (proceed): Call it.
10154 * target-connection.c (make_target_connection_string): Make
10155 extern.
10156 * target-connection.h (make_target_connection_string): Declare.
10157
121b3efd
PA
101582020-01-10 Pedro Alves <palves@redhat.com>
10159
10160 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10161 * inferior.c (uiout_field_connection): New function.
10162 (print_inferior): Add new "connection-id" column.
10163 (add_inferior_command): Show connection number/string of added
10164 inferior.
10165 * process-stratum-target.h
10166 (process_stratum_target::connection_string): New virtual method.
10167 (process_stratum_target::connection_number): New field.
10168 * remote.c (remote_target::connection_string): New override.
10169 * target-connection.c: New file.
10170 * target-connection.h: New file.
10171 * target.c (decref_target): Remove process_stratum targets from
10172 the connection list.
10173 (target_stack::push): Add process_stratum targets to the
10174 connection list.
10175
4f837581
PA
101762020-01-10 Pedro Alves <palves@redhat.com>
10177
10178 Revert:
10179 2016-04-12 Pedro Alves <palves@redhat.com>
10180 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10181 Remove references to name.
10182 * serial.h (struct serial) <name>: Delete.
10183
f4ec508e
PA
101842020-01-10 Pedro Alves <palves@redhat.com>
10185
10186 * gdbarch-selftests.c (register_to_value_test): Remove "target
10187 already pushed" check.
10188
5b6d1e4f
PA
101892020-01-10 Pedro Alves <palves@redhat.com>
10190 John Baldwin <jhb@FreeBSD.org>
10191
10192 * aarch64-linux-nat.c
10193 (aarch64_linux_nat_target::thread_architecture): Adjust.
10194 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10195 (task_command_1): Likewise.
10196 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10197 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10198 (aix_thread_target::store_registers)
10199 (aix_thread_target::thread_alive): Adjust.
10200 * amd64-fbsd-tdep.c: Include "inferior.h".
10201 (amd64fbsd_get_thread_local_address): Pass down target.
10202 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10203 thread's gdbarch instead of target_gdbarch.
10204 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10205 get_last_target_status.
10206 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10207 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10208 inferiors.
10209 (update_inserted_breakpoint_locations): Skip if inferiors with no
10210 execution.
10211 (update_global_location_list): When handling moribund locations,
10212 find representative inferior for location's pspace, and use thread
10213 count of its process_stratum target.
10214 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10215 * bsd-uthread.c (bsd_uthread_target::wait): Use
10216 as_process_stratum_target and adjust thread_change_ptid and
10217 add_thread calls.
10218 (bsd_uthread_target::update_thread_list): Use
10219 as_process_stratum_target and adjust find_thread_ptid,
10220 thread_change_ptid and add_thread calls.
10221 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10222 find_thread_ptid call.
10223 * corelow.c (add_to_thread_list): Adjust add_thread call.
10224 (core_target_open): Adjust add_thread_silent and thread_count
10225 calls.
10226 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10227 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10228 * event-top.c (async_disconnect): Pop targets from all inferiors.
10229 * exec.c (add_target_sections): Push exec target on all inferiors
10230 sharing the program space.
10231 (remove_target_sections): Remove the exec target from all
10232 inferiors sharing the program space.
10233 (exec_on_vfork): New.
10234 * exec.h (exec_on_vfork): Declare.
10235 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10236 Pass it down.
10237 (fbsd_nat_target::update_thread_list): Adjust.
10238 (fbsd_nat_target::resume): Adjust.
10239 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10240 down.
10241 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10242 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10243 get_thread_arch_regcache call.
10244 * fork-child.c (gdb_startup_inferior): Pass target down to
10245 startup_inferior and set_executing.
10246 * gdbthread.h (struct process_stratum_target): Forward declare.
10247 (add_thread, add_thread_silent, add_thread_with_info)
10248 (in_thread_list): Add process_stratum_target parameter.
10249 (find_thread_ptid(inferior*, ptid_t)): New overload.
10250 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10251 parameter.
10252 (all_threads()): Delete overload.
10253 (all_threads, all_non_exited_threads): Add process_stratum_target
10254 parameter.
10255 (all_threads_safe): Use brace initialization.
10256 (thread_count): Add process_stratum_target parameter.
10257 (set_resumed, set_running, set_stop_requested, set_executing)
10258 (threads_are_executing, finish_thread_state): Add
10259 process_stratum_target parameter.
10260 (switch_to_thread): Use is_current_thread.
10261 * i386-fbsd-tdep.c: Include "inferior.h".
10262 (i386fbsd_get_thread_local_address): Pass down target.
10263 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10264 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10265 have_inferiors check.
10266 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10267 (inf_ptrace_target::attach): Adjust.
10268 * infcall.c (run_inferior_call): Adjust.
10269 * infcmd.c (run_command_1): Pass target to
10270 scoped_finish_thread_state.
10271 (proceed_thread_callback): Skip inferiors with no execution.
10272 (continue_command): Rename 'all_threads' local to avoid hiding
10273 'all_threads' function. Adjust get_last_target_status call.
10274 (prepare_one_step): Adjust set_running call.
10275 (signal_command): Use user_visible_resume_target. Compare thread
10276 pointers instead of inferior_ptid.
10277 (info_program_command): Adjust to pass down target.
10278 (attach_command): Mark target's 'thread_executing' flag.
10279 (stop_current_target_threads_ns): New, factored out from ...
10280 (interrupt_target_1): ... this. Switch inferior before making
10281 target calls.
10282 * inferior-iter.h
10283 (struct all_inferiors_iterator, struct all_inferiors_range)
10284 (struct all_inferiors_safe_range)
10285 (struct all_non_exited_inferiors_range): Filter on
10286 process_stratum_target too. Remove explicit.
10287 * inferior.c (inferior::inferior): Push dummy target on target
10288 stack.
10289 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10290 Add process_stratum_target parameter, and pass it down.
10291 (have_live_inferiors): Adjust.
10292 (switch_to_inferior_and_push_target): New.
10293 (add_inferior_command, clone_inferior_command): Handle
10294 "-no-connection" parameter. Use
10295 switch_to_inferior_and_push_target.
10296 (_initialize_inferior): Mention "-no-connection" option in
10297 the help of "add-inferior" and "clone-inferior" commands.
10298 * inferior.h: Include "process-stratum-target.h".
10299 (interrupt_target_1): Use bool.
10300 (struct inferior) <push_target, unpush_target, target_is_pushed,
10301 find_target_beneath, top_target, process_target, target_at,
10302 m_stack>: New.
10303 (discard_all_inferiors): Delete.
10304 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10305 (all_inferiors, all_non_exited_inferiors): Add
10306 process_stratum_target parameter.
10307 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10308 (target_last_proc_target): New global.
10309 (follow_fork_inferior): Push target on new inferior. Pass target
10310 to add_thread_silent. Call exec_on_vfork. Handle target's
10311 reference count.
10312 (follow_fork): Adjust get_last_target_status call. Also consider
10313 target.
10314 (follow_exec): Push target on new inferior.
10315 (struct execution_control_state) <target>: New field.
10316 (user_visible_resume_target): New.
10317 (do_target_resume): Call target_async.
10318 (resume_1): Set target's threads_executing flag. Consider resume
10319 target.
10320 (commit_resume_all_targets): New.
10321 (proceed): Also consider resume target. Skip threads of inferiors
10322 with no execution. Commit resumtion in all targets.
10323 (start_remote): Pass current inferior to wait_for_inferior.
10324 (infrun_thread_stop_requested): Consider target as well. Pass
10325 thread_info pointer to clear_inline_frame_state instead of ptid.
10326 (infrun_thread_thread_exit): Consider target as well.
10327 (random_pending_event_thread): New inferior parameter. Use it.
10328 (do_target_wait): Rename to ...
10329 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10330 down.
10331 (threads_are_resumed_pending_p, do_target_wait): New.
10332 (prepare_for_detach): Adjust calls.
10333 (wait_for_inferior): New inferior parameter. Handle it. Use
10334 do_target_wait_1 instead of do_target_wait.
10335 (fetch_inferior_event): Adjust. Switch to representative
10336 inferior. Pass target down.
10337 (set_last_target_status): Add process_stratum_target parameter.
10338 Save target in global.
10339 (get_last_target_status): Add process_stratum_target parameter and
10340 handle it.
10341 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10342 (context_switch): Check inferior_ptid == null_ptid before calling
10343 inferior_thread().
10344 (get_inferior_stop_soon): Pass down target.
10345 (wait_one): Rename to ...
10346 (poll_one_curr_target): ... this.
10347 (struct wait_one_event): New.
10348 (wait_one): New.
10349 (stop_all_threads): Adjust.
10350 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10351 event's target.
10352 (switch_back_to_stepped_thread): Also consider target.
10353 (print_stop_event): Update.
10354 (normal_stop): Update. Also consider the resume target.
10355 * infrun.h (wait_for_inferior): Remove declaration.
10356 (user_visible_resume_target): New declaration.
10357 (get_last_target_status, set_last_target_status): New
10358 process_stratum_target parameter.
10359 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10360 process_stratum_target parameter, and use it.
10361 (clear_inline_frame_state (thread_info*)): New.
10362 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10363 process_stratum_target parameter.
10364 (clear_inline_frame_state (thread_info*)): Declare.
10365 * linux-fork.c (delete_checkpoint_command): Pass target down to
10366 find_thread_ptid.
10367 (checkpoint_command): Adjust.
10368 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10369 instead of just tweaking inferior_ptid.
10370 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10371 (exit_lwp): Pass target down to find_thread_ptid.
10372 (attach_proc_task_lwp_callback): Pass target down to
10373 add_thread/set_running/set_executing.
10374 (linux_nat_target::attach): Pass target down to
10375 thread_change_ptid.
10376 (get_detach_signal): Pass target down to find_thread_ptid.
10377 Consider last target status's target.
10378 (linux_resume_one_lwp_throw, resume_lwp)
10379 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10380 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10381 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10382 (linux_nat_target::async_wait_fd): New.
10383 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10384 target down.
10385 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10386 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10387 * linux-thread-db.c (struct thread_db_info::process_target): New
10388 field.
10389 (add_thread_db_info): Save target.
10390 (get_thread_db_info): New process_stratum_target parameter. Also
10391 match target.
10392 (delete_thread_db_info): New process_stratum_target parameter.
10393 Also match target.
10394 (thread_from_lwp): Adjust to pass down target.
10395 (thread_db_notice_clone): Pass down target.
10396 (check_thread_db_callback): Pass down target.
10397 (try_thread_db_load_1): Always push the thread_db target.
10398 (try_thread_db_load, record_thread): Pass target down.
10399 (thread_db_target::detach): Pass target down. Always unpush the
10400 thread_db target.
10401 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10402 target down. Always unpush the thread_db target.
10403 (find_new_threads_callback, thread_db_find_new_threads_2)
10404 (thread_db_target::update_thread_list): Pass target down.
10405 (thread_db_target::pid_to_str): Pass current inferior down.
10406 (thread_db_target::get_thread_local_address): Pass target down.
10407 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10408 target down.
10409 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10410 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10411 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10412 (procfs_init_inferior): Rename to ...
10413 (procfs_target::procfs_init_inferior): ... this and adjust.
10414 (procfs_target::create_inferior, procfs_notice_thread)
10415 (procfs_do_thread_registers): Adjust.
10416 * ppc-fbsd-tdep.c: Include "inferior.h".
10417 (ppcfbsd_get_thread_local_address): Pass down target.
10418 * proc-service.c (ps_xfer_memory): Switch current inferior and
10419 program space as well.
10420 (get_ps_regcache): Pass target down.
10421 * process-stratum-target.c
10422 (process_stratum_target::thread_address_space)
10423 (process_stratum_target::thread_architecture): Pass target down.
10424 * process-stratum-target.h
10425 (process_stratum_target::threads_executing): New field.
10426 (as_process_stratum_target): New.
10427 * ravenscar-thread.c
10428 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10429 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10430 down.
10431 * record-btrace.c (record_btrace_target::info_record): Adjust.
10432 (record_btrace_target::record_method)
10433 (record_btrace_target::record_is_replaying)
10434 (record_btrace_target::fetch_registers)
10435 (get_thread_current_frame_id, record_btrace_target::resume)
10436 (record_btrace_target::wait, record_btrace_target::stop): Pass
10437 target down.
10438 * record-full.c (record_full_wait_1): Switch to event thread.
10439 Pass target down.
10440 * regcache.c (regcache::regcache)
10441 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10442 process_stratum_target parameter and handle it.
10443 (current_thread_target): New global.
10444 (get_thread_regcache): Add process_stratum_target parameter and
10445 handle it. Switch inferior before calling target method.
10446 (get_thread_regcache): Pass target down.
10447 (get_thread_regcache_for_ptid): Pass target down.
10448 (registers_changed_ptid): Add process_stratum_target parameter and
10449 handle it.
10450 (registers_changed_thread, registers_changed): Pass target down.
10451 (test_get_thread_arch_aspace_regcache): New.
10452 (current_regcache_test): Define a couple local test_target_ops
10453 instances and use them for testing.
10454 (readwrite_regcache): Pass process_stratum_target parameter.
10455 (cooked_read_test, cooked_write_test): Pass mock_target down.
10456 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10457 (get_thread_arch_aspace_regcache): Add process_stratum_target
10458 parameter.
10459 (regcache::target): New method.
10460 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10461 (regcache::registers_changed_ptid): Add process_stratum_target
10462 parameter.
10463 (regcache::m_target): New field.
10464 (registers_changed_ptid): Add process_stratum_target parameter.
10465 * remote.c (remote_state::supports_vCont_probed): New field.
10466 (remote_target::async_wait_fd): New method.
10467 (remote_unpush_and_throw): Add remote_target parameter.
10468 (get_current_remote_target): Adjust.
10469 (remote_target::remote_add_inferior): Push target.
10470 (remote_target::remote_add_thread)
10471 (remote_target::remote_notice_new_inferior)
10472 (get_remote_thread_info): Pass target down.
10473 (remote_target::update_thread_list): Skip threads of inferiors
10474 bound to other targets. (remote_target::close): Don't discard
10475 inferiors. (remote_target::add_current_inferior_and_thread)
10476 (remote_target::process_initial_stop_replies)
10477 (remote_target::start_remote)
10478 (remote_target::remote_serial_quit_handler): Pass down target.
10479 (remote_target::remote_unpush_target): New remote_target
10480 parameter. Unpush the target from all inferiors.
10481 (remote_target::remote_unpush_and_throw): New remote_target
10482 parameter. Pass it down.
10483 (remote_target::open_1): Check whether the current inferior has
10484 execution instead of checking whether any inferior is live. Pass
10485 target down.
10486 (remote_target::remote_detach_1): Pass down target. Use
10487 remote_unpush_target.
10488 (extended_remote_target::attach): Pass down target.
10489 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10490 (remote_target::append_resumption): Pass down target.
10491 (remote_target::append_pending_thread_resumptions)
10492 (remote_target::remote_resume_with_hc, remote_target::resume)
10493 (remote_target::commit_resume): Pass down target.
10494 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10495 (remote_target::interrupt_query)
10496 (remote_target::remove_new_fork_children)
10497 (remote_target::check_pending_events_prevent_wildcard_vcont)
10498 (remote_target::remote_parse_stop_reply)
10499 (remote_target::process_stop_reply): Pass down target.
10500 (first_remote_resumed_thread): New remote_target parameter. Pass
10501 it down.
10502 (remote_target::wait_as): Pass down target.
10503 (unpush_and_perror): New remote_target parameter. Pass it down.
10504 (remote_target::readchar, remote_target::remote_serial_write)
10505 (remote_target::getpkt_or_notif_sane_1)
10506 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10507 down target.
10508 (remote_target::mourn_inferior): Pass down target. Use
10509 remote_unpush_target.
10510 (remote_target::core_of_thread)
10511 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10512 (remote_target::pid_to_exec_file)
10513 (remote_target::thread_handle_to_thread_info): Pass down target.
10514 (remote_target::async_wait_fd): New.
10515 * riscv-fbsd-tdep.c: Include "inferior.h".
10516 (riscv_fbsd_get_thread_local_address): Pass down target.
10517 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10518 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10519 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10520 Adjust.
10521 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10522 * solib-svr4.c (enable_break): Pass down target.
10523 * spu-multiarch.c (parse_spufs_run): Pass down target.
10524 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10525 * target-delegates.c: Regenerate.
10526 * target.c (g_target_stack): Delete.
10527 (current_top_target): Return the current inferior's top target.
10528 (target_has_execution_1): Refer to the passed-in inferior's top
10529 target.
10530 (target_supports_terminal_ours): Check whether the initial
10531 inferior was already created.
10532 (decref_target): New.
10533 (target_stack::push): Incref/decref the target.
10534 (push_target, push_target, unpush_target): Adjust.
10535 (target_stack::unpush): Defref target.
10536 (target_is_pushed): Return bool. Adjust to refer to the current
10537 inferior's target stack.
10538 (dispose_inferior): Delete, and inline parts ...
10539 (target_preopen): ... here. Only dispose of the current inferior.
10540 (target_detach): Hold strong target reference while detaching.
10541 Pass target down.
10542 (target_thread_name): Add assertion.
10543 (target_resume): Pass down target.
10544 (target_ops::beneath, find_target_at): Adjust to refer to the
10545 current inferior's target stack.
10546 (get_dummy_target): New.
10547 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10548 has a thread running.
10549 (initialize_targets): Rename to ...
10550 (_initialize_target): ... this.
10551 * target.h: Include "gdbsupport/refcounted-object.h".
10552 (struct target_ops): Inherit refcounted_object.
10553 (target_ops::shortname, target_ops::longname): Make const.
10554 (target_ops::async_wait_fd): New method.
10555 (decref_target): Declare.
10556 (struct target_ops_ref_policy): New.
10557 (target_ops_ref): New typedef.
10558 (get_dummy_target): Declare function.
10559 (target_is_pushed): Return bool.
10560 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10561 (all_matching_threads_iterator::all_matching_threads_iterator):
10562 Handle filter target.
10563 * thread-iter.h (struct all_matching_threads_iterator, struct
10564 all_matching_threads_range, class all_non_exited_threads_range):
10565 Filter by target too. Remove explicit.
10566 * thread.c (threads_executing): Delete.
10567 (inferior_thread): Pass down current inferior.
10568 (clear_thread_inferior_resources): Pass down thread pointer
10569 instead of ptid_t.
10570 (add_thread_silent, add_thread_with_info, add_thread): Add
10571 process_stratum_target parameter. Use it for thread and inferior
10572 searches.
10573 (is_current_thread): New.
10574 (thread_info::deletable): Use it.
10575 (find_thread_ptid, thread_count, in_thread_list)
10576 (thread_change_ptid, set_resumed, set_running): New
10577 process_stratum_target parameter. Pass it down.
10578 (set_executing): New process_stratum_target parameter. Pass it
10579 down. Adjust reference to 'threads_executing'.
10580 (threads_are_executing): New process_stratum_target parameter.
10581 Adjust reference to 'threads_executing'.
10582 (set_stop_requested, finish_thread_state): New
10583 process_stratum_target parameter. Pass it down.
10584 (switch_to_thread): Also match inferior.
10585 (switch_to_thread): New process_stratum_target parameter. Pass it
10586 down.
10587 (update_threads_executing): Reimplement.
10588 * top.c (quit_force): Pop targets from all inferior.
10589 (gdb_init): Don't call initialize_targets.
10590 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10591 Declare.
10592 (windows_add_thread, windows_delete_thread): Adjust.
10593 (get_windows_debug_event): Rename to ...
10594 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10595 * tracefile-tfile.c (tfile_target_open): Pass down target.
10596 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10597 Forward declare.
10598 (switch_to_thread): Add process_stratum_target parameter.
10599 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10600 parameter. Use it.
10601 (mi_on_resume): Pass target down.
10602 * nat/fork-inferior.c (startup_inferior): Add
10603 process_stratum_target parameter. Pass it down.
10604 * nat/fork-inferior.h (startup_inferior): Add
10605 process_stratum_target parameter.
10606 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10607
75c6c844
PA
106082020-01-10 Pedro Alves <palves@redhat.com>
10609
10610 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10611 directly. Instead find the first thread in the thread list and
10612 use switch_to_thread.
10613
78f2c40a
PA
106142020-01-10 Pedro Alves <palves@redhat.com>
10615
10616 * remote.c (remote_target::remote_add_inferior): Don't bind a
10617 process to the current inferior if the current inferior is already
10618 bound to a process.
10619
e7af6c70
TBA
106202020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10621 Pedro Alves <palves@redhat.com>
10622
10623 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10624 If no process is specified, return null_ptid instead of
10625 inferior_ptid.
10626 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10627 TARGET_WAITKIND_SIGNALLED with no pid.
10628
31ba933e
PA
106292020-01-10 Pedro Alves <palves@redhat.com>
10630
10631 * remote.c (first_remote_resumed_thread): New.
10632 (remote_target::wait_as): Use it as default event_ptid instead of
10633 inferior_ptid.
10634
735fc2ca
PA
106352020-01-10 Pedro Alves <palves@redhat.com>
10636
10637 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10638
c17e02e1
PA
106392020-01-10 Pedro Alves <palves@redhat.com>
10640
10641 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10642 not -1.
10643
ab1ddbcf
PA
106442020-01-10 Pedro Alves <palves@redhat.com>
10645
10646 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10647 ptid to get_last_target_status.
10648 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10649 ptid to get_last_target_status.
10650 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10651 get_last_target_status.
10652 (info_program_command): Don't pass a target_waitstatus to
10653 get_last_target_status.
10654 * infrun.c (init_wait_for_inferior): Use
10655 nullify_last_target_wait_ptid.
10656 (get_last_target_status): Handle nullptr arguments.
10657 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10658 (print_stop_event): Don't pass a ptid to get_last_target_status.
10659 (normal_stop): Don't pass a ptid to get_last_target_status.
10660 * infrun.h (get_last_target_status, set_last_target_status): Move
10661 comments here and update.
10662 (nullify_last_target_wait_ptid): Declare.
10663 * linux-fork.c (fork_load_infrun_state): Remove local extern
10664 declaration of nullify_last_target_wait_ptid.
10665 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10666 to get_last_target_status.
10667
f3f8ece4
PA
106682020-01-10 Pedro Alves <palves@redhat.com>
10669
10670 * gdbthread.h (scoped_restore_current_thread)
10671 <dont_restore, restore, m_dont_restore>: Declare.
10672 * thread.c (thread_alive): Add assertion. Return bool.
10673 (switch_to_thread_if_alive): New.
10674 (prune_threads): Switch inferior/thread.
10675 (print_thread_info_1): Switch thread before calling target methods.
10676 (scoped_restore_current_thread::restore): New, factored out from
10677 ...
10678 (scoped_restore_current_thread::~scoped_restore_current_thread):
10679 ... this.
10680 (scoped_restore_current_thread::scoped_restore_current_thread):
10681 Add assertion.
10682 (thread_apply_all_command, thread_select): Use
10683 switch_to_thread_if_alive.
10684 * infrun.c (proceed, restart_threads, handle_signal_stop)
10685 (switch_back_to_stepped_thread): Switch current thread before
10686 calling target methods.
10687
db2d40f7
PA
106882020-01-10 Pedro Alves <palves@redhat.com>
10689
10690 * inferior.c (switch_to_inferior_no_thread): New function,
10691 factored out from ...
10692 (inferior_command): ... here.
10693 * inferior.h (switch_to_inferior_no_thread): Declare.
10694 * mi/mi-main.c (run_one_inferior): Use
10695 switch_to_inferior_no_thread.
10696
bd420a2d
PA
106972020-01-10 Pedro Alves <palves@redhat.com>
10698
10699 * infcmd.c (kill_command): Remove dead code.
10700
ddf5db90
PA
107012020-01-10 Pedro Alves <palves@redhat.com>
10702
10703 * remote.c (remote_target::mourn_inferior): No longer check
10704 whether the target is running.
10705
5018ce90
PA
107062020-01-10 Pedro Alves <palves@redhat.com>
10707
10708 * corelow.c (core_target::has_execution): Change parameter type to
10709 inferior pointer.
10710 * inferior.c (number_of_live_inferiors): Use
10711 inferior::has_execution instead of target_has_execution_1.
10712 * inferior.h (inferior::has_execution): New.
10713 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10714 inferior::has_execution instead of target_has_execution_1.
10715 * process-stratum-target.c
10716 (process_stratum_target::has_execution): Change parameter type to
10717 inferior pointer. Check the inferior's PID instead of
10718 inferior_ptid.
10719 * process-stratum-target.h
10720 (process_stratum_target::has_execution): Change parameter type to
10721 inferior pointer.
10722 * record-full.c (record_full_core_target::has_execution): Change
10723 parameter type to inferior pointer.
10724 * target.c (target_has_execution_1): Change parameter type to
10725 inferior pointer.
10726 (target_has_execution_current): Adjust.
10727 * target.h (target_ops::has_execution): Change parameter type to
10728 inferior pointer.
10729 (target_has_execution_1): Change parameter type to inferior
10730 pointer. Change return type to bool.
10731 * tracefile.h (tracefile_target::has_execution): Change parameter
10732 type to inferior pointer.
10733
74375d18
PA
107342020-01-10 Pedro Alves <palves@redhat.com>
10735
10736 * exceptions.c (print_flush): Remove current_top_target() check.
10737
acdf84a6
PA
107382020-01-10 Pedro Alves <palves@redhat.com>
10739
10740 * remote.c (show_remote_exec_file): Show the current inferior's
10741 exec-file instead of the command variable's value.
10742
ec506636
PA
107432020-01-10 Pedro Alves <palves@redhat.com>
10744
10745 * record-full.c (record_full_resume_ptid): New global.
10746 (record_full_target::resume): Set it.
10747 (record_full_wait_1): Use record_full_resume_ptid instead of
10748 inferior_ptid.
10749
873657b9
PA
107502020-01-10 Pedro Alves <palves@redhat.com>
10751
10752 * gdbthread.h (scoped_restore_current_thread)
10753 <dont_restore, restore, m_dont_restore>: Declare.
10754 * thread.c (thread_alive): Add assertion. Return bool.
10755 (switch_to_thread_if_alive): New.
10756 (prune_threads): Switch inferior/thread.
10757 (print_thread_info_1): Switch thread before calling target methods.
10758 (scoped_restore_current_thread::restore): New, factored out from
10759 ...
10760 (scoped_restore_current_thread::~scoped_restore_current_thread):
10761 ... this.
10762 (scoped_restore_current_thread::scoped_restore_current_thread):
10763 Add assertion.
10764 (thread_apply_all_command, thread_select): Use
10765 switch_to_thread_if_alive.
10766
7f0ae84c
GB
107672020-01-10 George Barrett <bob@bob131.so>
10768
10769 * stap-probe.c (stap_modify_semaphore): Don't check for null
10770 semaphores.
10771 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10772 for null semaphores.
10773
f5a7c406
AB
107742020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10775
10776 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10777 all source windows, and maintain horizontal scroll status while
10778 doing so.
10779
9ae6bf64
TT
107802020-01-09 Tom Tromey <tom@tromey.com>
10781
10782 PR tui/18932:
10783 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10784 update_source_window, not print_source_lines.
10785
b2efe70c
AB
107862020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10787
10788 * tui/tui.c (tui_enable): Register tui hooks after calling
10789 tui_display_main.
10790
5f23a082
CB
107912020-01-09 Christian Biesinger <cbiesinger@google.com>
10792
10793 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10794
3061113b
SM
107952020-01-08 Simon Marchi <simon.marchi@efficios.com>
10796
10797 * thread.c (print_thread_info_1): Fix indentation.
10798
57d75002
CB
107992020-01-09 Christian Biesinger <cbiesinger@google.com>
10800
10801 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10802 unique_xmalloc_ptr outside the if to always free the demangled name.
10803
6a053cb1
TT
108042020-01-08 Tom Tromey <tromey@adacore.com>
10805
10806 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10807 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10808 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10809 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10810 Remove.
10811 (section_offsets): New typedef.
10812 * symtab.c (fixup_section, get_msymbol_address): Update.
10813 * symmisc.c (dump_msymbols): Update.
10814 * symfile.h (relative_addr_info_to_section_offsets)
10815 (symfile_map_offsets_to_segments): Update.
10816 * symfile.c (build_section_addr_info_from_objfile)
10817 (init_objfile_sect_indices): Update.
10818 (struct place_section_arg): Change type of "offsets".
10819 (place_section): Update.
10820 (relative_addr_info_to_section_offsets): Change type of
10821 "section_offsets". Remove "num_sections" parameter.
10822 (default_symfile_offsets, syms_from_objfile_1)
10823 (set_objfile_default_section_offset): Update.
10824 (reread_symbols): No need to preserve section offsets by hand.
10825 (symfile_map_offsets_to_segments): Change type of "offsets".
10826 * stap-probe.c (relocate_address): Update.
10827 * stabsread.h (process_one_symbol): Update.
10828 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10829 (solib_target_relocate_section_addresses): Update.
10830 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10831 Update.
10832 * solib-frv.c (frv_relocate_main_executable): Update.
10833 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10834 * solib-aix.c (solib_aix_get_section_offsets): Change return
10835 type.
10836 (solib_aix_solib_create_inferior_hook): Update.
10837 * remote.c (remote_target::get_offsets): Update.
10838 * psymtab.c (find_pc_sect_psymtab): Update.
10839 * psympriv.h (struct partial_symbol) <address, text_low,
10840 text_high>: Update.
10841 * objfiles.h (obj_section_offset): Update.
10842 (struct objfile) <section_offsets>: Change type.
10843 <num_sections>: Remove.
10844 (objfile_relocate): Update.
10845 * objfiles.c (entry_point_address_query): Update
10846 (relocate_one_symbol): Change type of "section_offsets".
10847 (objfile_relocate1, objfile_relocate1): Change type of
10848 "new_offsets".
10849 (objfile_rebase1): Update.
10850 * mipsread.c (mipscoff_symfile_read): Update.
10851 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10852 parameter.
10853 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10854 (parse_external, psymtab_to_symtab_1): Update.
10855 * machoread.c (macho_symfile_offsets): Update.
10856 * ia64-tdep.c (ia64_find_unwind_table): Update.
10857 * hppa-tdep.c (read_unwind_info): Update.
10858 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10859 * dwarf2read.c (create_addrmap_from_index)
10860 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10861 (process_psymtab_comp_unit_reader, add_partial_symbol)
10862 (add_partial_subprogram, process_full_comp_unit)
10863 (read_file_scope, read_func_scope, read_lexical_block_scope)
10864 (read_call_site_scope, dwarf2_rnglists_process)
10865 (dwarf2_ranges_process, dwarf2_ranges_read)
10866 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10867 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10868 Update.
10869 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10870 Update.
10871 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10872 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10873 (process_one_symbol): Change type of "section_offsets".
10874 * ctfread.c (get_objfile_text_range): Update.
10875 * coffread.c (coff_symtab_read, enter_linenos)
10876 (process_coff_symbol): Update.
10877 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10878 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10879
456e800a
TT
108802020-01-08 Tom Tromey <tromey@adacore.com>
10881
10882 * dwarf2read.c (parse_macro_definition): Use std::string.
10883 (parse_macro_definition): Likewise.
10884
6dfa2fc2
TT
108852020-01-08 Tom Tromey <tromey@adacore.com>
10886
10887 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10888 (ATTR_ALLOC_CHUNK): Remove.
10889
421d1616
TT
108902020-01-08 Tom Tromey <tromey@adacore.com>
10891
10892 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10893
43816ebc
TT
108942020-01-08 Tom Tromey <tromey@adacore.com>
10895
10896 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10897 (dwarf2_compute_name, open_dwo_file): Likewise.
10898 (process_enumeration_scope): Use std::vector.
10899 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10900 (partial_die_info::fixup, dwarf2_start_subfile)
10901 (guess_full_die_structure_name, dwarf2_name): Likewise.
10902 (determine_prefix): Update.
10903 (guess_full_die_structure_name): Make return type const.
10904 (partial_die_full_name): Return unique_xmalloc_ptr.
10905 (DW_FIELD_ALLOC_CHUNK): Remove.
10906
4212d509
TT
109072020-01-07 Tom Tromey <tromey@adacore.com>
10908
10909 PR build/24937:
10910 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10911
06a6207a
JT
109122020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10913
10914 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10915
153d79c4
AB
109162020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10917
10918 * stack.c (print_frame_info): Move disassemble_next_line code
10919 inside source_print block.
10920
66182876
EZ
109212020-01-06 Eli Zaretskii <eliz@gnu.org>
10922
10923 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10924 gdb/signals.h, as we are now using native signal symbols.
10925
cbfa8581
SV
109262020-01-06 Shahab Vahedi <shahab@synopsys.com>
10927
10928 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10929 overflow by an early check of content vs threshold.
aac66a4c 10930 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10931 Likewise.
10932
3f602821
EZ
109332020-01-06 Eli Zaretskii <eliz@gnu.org>
10934
10935 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10936
a08c904d
JT
109372020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10938
10939 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10940 export table if no section contains it's RVA.
10941
89a65580
EZ
109422020-01-06 Eli Zaretskii <eliz@gnu.org>
10943
10944 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10945
8b7fcda2
HD
109462020-01-06 Hannes Domani <ssbssa@yahoo.de>
10947
10948 * source.c (print_source_lines_base): Set last_line_listed.
10949
a61b4f69
SV
109502020-01-06 Shahab Vahedi <shahab@synopsys.com>
10951
10952 * tui/tui-disasm.c: Remove trailing spaces.
10953
559e7e50
EZ
109542020-01-06 Eli Zaretskii <eliz@gnu.org>
10955 Pedro Alves <palves@redhat.com>
10956
10957 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10958 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10959 (windows_gdb_signal_to_target): New function, uses the above
10960 enumeration to convert GDB internal signal codes to equivalent
10961 Windows codes.
10962 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10963 * windows-nat.c: Include "gdb_wait.h".
10964 (get_windows_debug_event): Extract the fatal exception from the
10965 exit status and convert to the equivalent Posix signal number.
10966 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10967 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10968 * gdbsupport/gdb_wait.c: New file, implements
10969 windows_status_to_termsig.
10970 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10971 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10972
f2302a34
AB
109732020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10974
10975 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10976 show_layout.
10977
6a5206eb
LM
109782020-01-05 Luis Machado <luis.machado@linaro.org>
10979
10980 * aarch64-linux-nat.c
10981 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10982 and bfd_mach_aarch64.
10983
6ec1d75e
PW
109842020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10985
10986 * ui-file.c (stdio_file::can_emit_style_escape)
10987 (tee_file::can_emit_style_escape): Ensure style is used also on
10988 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10989 to gdb_stdout.
10990 * main.c (set_gdb_data_directory): Use file style to output the
10991 warning that the given pathname is not a directory.
10992 * top.c (show_history_filename, gdb_safe_append_history)
10993 (show_gdb_datadir): Use file style.
10994
44f81a76
HD
109952020-01-03 Hannes Domani <ssbssa@yahoo.de>
10996
10997 * solib-target.c (struct lm_info_target):
10998 Change offsets to be a unique_xmalloc_ptr.
10999 (solib_target_relocate_section_addresses): Update.
11000
25057eb0
HD
110012020-01-03 Hannes Domani <ssbssa@yahoo.de>
11002
11003 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11004
6e2118f5
BE
110052020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11006
11007 * MAINTAINERS (Write After Approval): Add myself.
11008
8133c7dc
LM
110092020-01-02 Luis Machado <luis.machado@linaro.org>
11010
11011 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11012 Cell BE architecture.
11013 * target.h (struct target_ops) <thread_architecture>: Likewise.
11014
48189bec
HD
110152020-01-01 Hannes Domani <ssbssa@yahoo.de>
11016
11017 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11018
ead1063b
HD
110192020-01-01 Hannes Domani <ssbssa@yahoo.de>
11020
11021 * MAINTAINERS (Write After Approval): Add myself.
11022
e5d78223
JB
110232020-01-01 Joel Brobecker <brobecker@adacore.com>
11024
11025 * gdbarch.sh: Update copyright year range of generated files.
11026
b811d2c2
JB
110272020-01-01 Joel Brobecker <brobecker@adacore.com>
11028
11029 Update copyright year range in all GDB files.
11030
5f4def5c
JB
110312020-01-01 Joel Brobecker <brobecker@adacore.com>
11032
11033 * copyright.py: Convert to Python 3.
11034
51fd4002
JB
110352020-01-01 Joel Brobecker <brobecker@adacore.com>
11036
11037 * copyright.py: Adapt after move of gnulib directory from gdb
11038 directory to toplevel directory.
11039
5fb651f2
JB
110402020-01-01 Joel Brobecker <brobecker@adacore.com>
11041
11042 * copyright.py (main): Exit if run from the wrong directory.
11043
5dd8bf88
JB
110442020-01-01 Joel Brobecker <brobecker@adacore.com>
11045
11046 * top.c (print_gdb_version): Change copyright year to 2020.
11047
9f71dacb 110482020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11049
9f71dacb 11050 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11051
9f71dacb 11052For older changes see ChangeLog-2019.
c906108c
SS
11053\f
11054Local Variables:
11055mode: change-log
11056left-margin: 8
11057fill-column: 74
11058version-control: never
57da7796 11059coding: utf-8
c906108c 11060End: