]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Fix crash if connection drops in scoped_restore_current_thread's ctor, part 1
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6d7aa592
PA
12020-07-10 Pedro Alves <pedro@palves.net>
2
3 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5 NOT_AVAILABLE_ERROR.
6 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
8
b3e3a4c1
SM
92020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
10 Pedro Alves <pedro@palves.net>
11
12 PR gdb/26199
13 * infrun.c (threads_are_resumed_pending_p): Delete.
14 (do_target_wait): Remove threads_are_executing and
15 threads_are_resumed_pending_p checks from the inferior_matches
16 lambda. Update comments.
17
d6cc5d98
PA
182020-07-10 Pedro Alves <pedro@palves.net>
19
20 PR gdb/26199
21 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
22 executing threads.
23
7d3badc6
PA
242020-07-10 Pedro Alves <pedro@palves.net>
25
26 PR gdb/26199
27 * infrun.c (handle_no_resumed): Handle multiple targets.
28
42bd97a6
PA
292020-07-10 Pedro Alves <pedro@palves.net>
30
31 PR gdb/26199
32 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
33 target_is_async_p.
34
43667cc6
PA
352020-07-10 Pedro Alves <pedro@palves.net>
36
37 PR gdb/26199
38 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
39 threads, not all threads.
40
96118d11
PA
412020-07-10 Pedro Alves <pedro@palves.net>
42
43 PR gdb/26199
44 * remote.c (remote_target::open_1): Pass remote target pointer as
45 data to create_async_event_handler.
46 (remote_async_inferior_event_handler): Mark async event handler
47 before returning if the remote target still has either pending
48 events or unacknowledged notifications.
49
54904d81
JB
502020-07-10 John Baldwin <jhb@FreeBSD.org>
51
52 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
53 declaration.
54 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
55 function.
56
f37e5866
JB
572020-07-09 John Baldwin <jhb@FreeBSD.org>
58
59 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
60 inferior_ptid.
61
fc238d4a
JB
622020-07-09 John Baldwin <jhb@FreeBSD.org>
63
64 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
65 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
66 AT_FREEBSD_PS_STRINGS.
67
6e2469ff
HD
682020-07-08 Hannes Domani <ssbssa@yahoo.de>
69
70 * auto-load.c (auto_load_objfile_script_1): Convert drive part
71 of debugfile path on Windows.
72
d1076c41
JB
732020-07-08 John Baldwin <jhb@FreeBSD.org>
74
75 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
76 argument to 'data'.
77
15f3b077
TT
782020-07-08 Tom Tromey <tromey@adacore.com>
79
80 * ada-lang.c (ada_exception_message_1): Use read_memory.
81
9fc501fd
AB
822020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
83
84 PR python/22748
85 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
86 special handling for inline frames.
87 * findvar.c (value_of_register_lazy): Skip inline frames when
88 creating lazy register values.
89 * frame.c (frame_id_computed_p): Delete definition.
90 * frame.h (frame_id_computed_p): Delete declaration.
91
64cb3757
AB
922020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
93
94 * NEWS: Mention additions to Python API.
95 * python/py-arch.c (archpy_register_groups): New function.
96 (arch_object_methods): Add 'register_groups' method.
97 * python/py-registers.c (reggroup_iterator_object): New struct.
98 (reggroup_object): New struct.
99 (gdbpy_new_reggroup): New function.
100 (gdbpy_reggroup_to_string): New function.
101 (gdbpy_reggroup_name): New function.
102 (gdbpy_reggroup_iter): New function.
103 (gdbpy_reggroup_iter_next): New function.
104 (gdbpy_new_reggroup_iterator): New function
105 (gdbpy_initialize_registers): Register new types.
106 (reggroup_iterator_object_type): Define new Python type.
107 (gdbpy_reggroup_getset): New static global.
108 (reggroup_object_type): Define new Python type.
109 * python/python-internal.h
110
0f767f94
AB
1112020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
112
113 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
114 * python/py-arch.c (archpy_registers): New function.
115 (arch_object_methods): Add 'registers' method.
116 * python/py-registers.c: New file.
117 * python/python-internal.h
118 (gdbpy_new_register_descriptor_iterator): Declare.
119 (gdbpy_initialize_registers): Declare.
120 * python/python.c (do_start_initialization): Call
121 gdbpy_initialize_registers.
122 * NEWS: Mention additions to the Python API.
123
87dbc774
AB
1242020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
125
126 * NEWS: Mention new Python API method.
127 * python/py-unwind.c (pending_framepy_architecture): New function.
128 (pending_frame_object_methods): Add architecture method.
129
3bc98c0c
AB
1302020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
131
132 * gdbarch.c: Regenerate.
133 * gdbarch.h: Regenerate.
134 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
135 (gdbarch_data): Use internal_error for the case where
136 deprecated_set_gdbarch_data was originally needed.
137 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
138 and use passed in obstack.
139 (libunwind_frame_set_descr): Should no longer get back NULL from
140 gdbarch_data.
141 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
142 type.
143 * user-regs.c (user_regs_init): Update parameters, and use passed
144 in obstack.
145 (user_reg_add): Should no longer get back NULL from gdbarch_data.
146 (_initialize_user_regs): Register as a pre-init gdbarch data type.
147
d8cc8af6
TV
1482020-07-06 Tom de Vries <tdevries@suse.de>
149
150 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
151 End-Of-Sequence in lte_is_less_than.
152 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
153 "gdb: Don't reorder line table entries too much when sorting".
154
947f7597
TV
1552020-07-06 Tom de Vries <tdevries@suse.de>
156
157 PR tui/26205
158 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
159
1e7c1b22
TV
1602020-07-05 Tom de Vries <tdevries@suse.de>
161
162 PR build/26187
163 * inferior.h (struct infcall_suspend_state_deleter): If available, use
164 std::uncaught_exceptions instead of deprecated
165 std::uncaught_exception.
166
a36158ec
SM
1672020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
168
169 * macroexp.h (macro_stringify): Return
170 gdb::unique_xmalloc_ptr<char>.
171 * macroexp.c (macro_stringify): Likewise.
172 * macrotab.c (fixup_definition): Update.
173
14d960c8
SM
1742020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
175
176 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
177 (lex_one_token): Update.
178 * macroexp.c (struct macro_buffer) <release>: Return
179 gdb::unique_xmalloc_ptr<char>.
180 (macro_stringify): Update.
181 (macro_expand): Update.
182 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
183 * macroexp.h (macro_expand_next): Likewise.
184
211d5b1c
SM
1852020-07-02 Simon Marchi <simon.marchi@efficios.com>
186
187 * macroexp.h (macro_lookup_ftype): Remove.
188 (macro_expand, macro_expand_once, macro_expand_next): Remove
189 lookup function parameters, add scope parameter.
190 * macroexp.c (scan, substitute_args, expand, maybe_expand,
191 macro_expand, macro_expand_once, macro_expand_next): Likewise.
192 * macroscope.h (standard_macro_lookup): Change parameter type
193 to macro_scope.
194 * macroscope.c (standard_macro_lookup): Likewise.
195 * c-exp.y (lex_one_token): Update.
196 * macrocmd.c (macro_expand_command): Likewise.
197 (macro_expand_once_command): Likewise.
198
b1a35af2
SM
1992020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
200
201 * inf-loop.c (inferior_event_handler): Remove client_data param.
202 * inf-loop.h (inferior_event_handler): Likewise.
203 * infcmd.c (step_1): Adjust.
204 * infrun.c (proceed): Adjust.
205 (fetch_inferior_event): Remove client_data param.
206 (infrun_async_inferior_event_handler): Adjust.
207 * infrun.h (fetch_inferior_event): Remove `void *` param.
208 * linux-nat.c (handle_target_event): Adjust.
209 * record-btrace.c (record_btrace_handle_async_inferior_event):
210 Adjust.
211 * record-full.c (record_full_async_inferior_event_handler):
212 Adjust.
213 * remote.c (remote_async_inferior_event_handler): Adjust.
214
1cdf9e33
TT
2152020-07-01 Tom Tromey <tom@tromey.com>
216
217 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
218 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
219
32c1e210
TT
2202020-07-01 Tom Tromey <tom@tromey.com>
221
222 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
223 tui_gen_win_info.
224 (tui_win_info::make_window): Merge with
225 tui_gen_win_info::make_window.
226 (tui_win_info::make_visible): Move from tui_gen_win_info.
227 * tui/tui-win.c (tui_win_info::max_width): Move from
228 tui_gen_win_info.
229 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
230 type.
231 <window_factory>: Likewise.
232 * tui/tui-layout.c (tui_win_info::resize): Move from
233 tui_gen_win_info.
234 (make_standard_window): Change return type.
235 (get_locator_window, tui_get_window_by_name): Likewise.
236 (tui_layout_window::apply): Remove a cast.
237 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
238 (struct tui_win_info): Merge with tui_gen_win_info.
239 (struct tui_gen_win_info): Remove.
240
a30cb6da
TT
2412020-07-01 Tom Tromey <tom@tromey.com>
242
243 * tui/tui-stack.h (struct tui_locator_window): Derive from
244 tui_win_info.
245 <do_scroll_horizontal, do_scroll_vertical>: New methods.
246 <can_box>: New method.
247
1eb2161f
TT
2482020-07-01 Tom Tromey <tom@tromey.com>
249
250 * tui/tui-stack.h (struct tui_locator_window): Remove body.
251
7134f2eb
TT
2522020-07-01 Tom Tromey <tom@tromey.com>
253
254 * tui/tui-regs.c (tui_data_window::display_registers_from)
255 (tui_data_window::display_registers_from)
256 (tui_data_window::first_data_item_displayed)
257 (tui_data_window::delete_data_content_windows): Update.
258 (tui_data_window::refresh_window, tui_data_window::no_refresh):
259 Remove.
260 (tui_data_window::check_register_values): Update.
261 (tui_data_item_window::rerender): Add parameters. Update.
262 (tui_data_item_window::refresh_window): Remove.
263 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
264 virtual.
265 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
266 tui_gen_win_info.
267 <refresh_window, max_height, min_height>: Remove.
268 <rerender>: Add parameters.
269 <x, y, visible>: New members.
270 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
271 <m_item_width>: New member.
272
22b7b041
TT
2732020-07-01 Tom Tromey <tom@tromey.com>
274
275 * tui/tui-regs.c (tui_data_window::show_register_group)
276 (tui_data_window::check_register_values): Update.
277 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
278 from item_no.
279
c9753adb
TT
2802020-07-01 Tom Tromey <tom@tromey.com>
281
282 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
283 useless "if".
284
9ab26b4a
TT
2852020-07-01 Tom Tromey <tom@tromey.com>
286
287 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
288 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
289
e555083f
TT
2902020-07-01 Tom Tromey <tom@tromey.com>
291
292 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
293 * tui/tui-winsource.h (enum tui_line_or_address_kind)
294 (struct tui_line_or_address): Move from tui-data.h.
295 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
296 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
297 (tui_cmd_window, tui_source_window_base, tui_source_window)
298 (tui_disasm_window): Don't declare.
299 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
300 to tui-winsource.h.
301 (SINGLE_KEY): Move to tui-stack.c.
302
7a02bab7
TT
3032020-07-01 Tom Tromey <tom@tromey.com>
304
305 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
306 std::string.
307 * tui/tui-regs.c (class tab_expansion_file): New.
308 (tab_expansion_file::write): New method.
309 (tui_register_format): Change return type. Use
310 tab_expansion_file.
311 (tui_get_register, tui_data_window::display_registers_from)
312 (tui_data_item_window::rerender): Update.
313 * tui/tui-io.h (tui_expand_tabs): Don't declare.
314 * tui/tui-io.c (tui_expand_tabs): Remove.
315
ea68593b
TT
3162020-07-01 Tom Tromey <tom@tromey.com>
317
318 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
319
a8caed5d
FS
3202020-07-01 Fangrui Song <maskray@google.com>
321
322 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
323
9cdf9820
AKS
3242020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
325
326 * dwarf2/read.c (set_die_type): Removed conditions to restrict
327 forms for DW_AT_associated and DW_AT_allocated attributes,
328 which is already checked in function attr_to_dynamic_prop.
329
a1520ad8
TT
3302020-06-30 Tom Tromey <tromey@adacore.com>
331
332 * dwarf2/read.c (quirk_rust_enum): Correctly call
333 alloc_rust_variant for default-less enum.
334
5ac58899
TT
3352020-06-30 Tom Tromey <tromey@adacore.com>
336
337 PR build/26183:
338 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
339 gdb::to_string.
340
19b187a9
SM
3412020-06-29 Simon Marchi <simon.marchi@efficios.com>
342
343 * gdbarch.sh (displaced_step_copy_insn): Update doc.
344 * gdbarch.h: Re-generate.
345
cd4c4c07
TT
3462020-06-28 Tom Tromey <tom@tromey.com>
347
348 * command.h (cmd_types): Remove.
349 (cmd_type): Don't declare.
350 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
351 typedef.
352 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
353 * cli/cli-decode.c (cmd_type): Remove.
354
05779d57
PA
3552020-06-27 Pedro Alves <palves@redhat.com>
356
357 * fork-child.c (prefork_hook): Adjust.
358 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
359 Delete.
360 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
361 * inferior.c (inferior::set_tty, inferior::tty): New methods.
362 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
363 Remove declarations.
364 (struct inferior) <set_tty, tty>: New methods.
365 (struct inferior) <terminal>: Rename to ...
366 (struct inferior) <m_terminal>: ... this and make private.
367 * main.c (captured_main_1): Adjust.
368 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
369 (mi_cmd_inferior_tty_show): Adjust.
370 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
371 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
372
1776e3e5
NA
3732020-06-26 Nick Alcock <nick.alcock@oracle.com>
374
375 * configure.ac: Add --enable-libctf: handle --disable-static
376 properly.
377 * acinclude.m4: sinclude ../config/enable.m4.
378 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
379 (LIBCTF): Substitute in.
380 (CTF_DEPS): New, likewise.
381 (CLIBS): libctf needs symbols from libbfd: move earlier.
382 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
383 flags.
384 * ctfread.c: Surround in ENABLE_LIBCTF.
385 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
386 * configure: Regenerate.
387 * config.in: Likewise.
388
58373b80
SM
3892020-06-25 Simon Marchi <simon.marchi@efficios.com>
390
391 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
392
277474ee
SM
3932020-06-25 Simon Marchi <simon.marchi@efficios.com>
394
395 * inferior.h (struct inferior) <terminal>: Change type to
396 gdb::unique_xmalloc_ptr<char>.
397 * inferior.c (inferior::~inferior): Don't free inf->terminal.
398 * infcmd.c (set_inferior_io_terminal): Don't free terminal
399 field, adjust to unique pointer.
400 (get_inferior_io_terminal): Adjust to unique pointer.
401
6d74da72
AB
4022020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
403
404 * riscv-tdep.c (riscv_print_registers_info): Loop over all
405 registers, not just the known core set of registers.
406
2e52d038
AB
4072020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
408
409 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
410 fflags, frm, and fcsr registers.
411 (riscv_register_reggroup_p): Remove unknown CSRs from save and
412 restore groups.
413 (riscv_tdesc_unknown_reg): New function.
414 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
415 tdesc_use_registers.
416 * riscv-tdep.h (struct gdbarch_tdep): Add
417 unknown_csrs_first_regnum, unknown_csrs_count,
418 duplicate_fflags_regnum, duplicate_frm_regnum, and
419 duplicate_fcsr_regnum fields.
420
be64fd07
AB
4212020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
422
423 * target-descriptions.c (tdesc_use_registers): Add new parameter a
424 callback, use the callback (when not null) to help number unknown
425 registers.
426 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
427 (tdesc_use_registers): Add extra parameter to declaration.
428
3b9fce96
AB
4292020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
430
431 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
432 in the file.
433 (class riscv_pending_register_alias): Likewise.
434 (riscv_register_feature::register_info): Change 'required_p' field
435 to 'required', and change its type. Add 'check' member function.
436 (riscv_register_feature::register_info::check): Define new member
437 function.
438 (riscv_xreg_feature): Change initialisation of 'required' field.
439 (riscv_freg_feature): Likewise.
440 (riscv_virtual_feature): Likewise.
441 (riscv_csr_feature): Likewise.
442 (riscv_check_tdesc_feature): Take extra parameter, the csr
443 tdesc_feature, rewrite the function to use the new
444 riscv_register_feature::register_info::check function.
445 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
446
865bad26
AB
4472020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
448
449 * features/Makefile: Remove all references to the deleted files
450 below.
451 * features/riscv/32bit-csr.c: Deleted.
452 * features/riscv/32bit-csr.xml: Deleted.
453 * features/riscv/64bit-csr.c: Deleted.
454 * features/riscv/64bit-csr.xml: Deleted.
455 * features/riscv/rebuild-csr-xml.sh: Deleted.
456
ed69cbc8
AB
4572020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
458
459 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
460 whitespace error for declaration of names member variable.
461 (struct riscv_register_feature): Add new prefer_first_name member
462 variable, and fix whitespace error in declaration of registers.
463 (riscv_xreg_feature): Initialize prefer_first_name field.
464 (riscv_freg_feature): Likewise.
465 (riscv_virtual_feature): Likewise.
466 (riscv_csr_feature): Likewise.
467 (riscv_register_name): Expand on comments. Remove register name
468 modifications for CSR and virtual registers.
469
4445e8f5
AB
4702020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
471
472 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
473 errors.
474
767a879e
AB
4752020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
476
477 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
478 riscv-opc.h.
479 (class riscv_pending_register_alias): New class.
480 (riscv_check_tdesc_feature): Take vector of pending aliases and
481 populate it as appropriate.
482 (riscv_setup_register_aliases): Delete.
483 (riscv_gdbarch_init): Create vector of pending aliases and pass it
484 to riscv_check_tdesc_feature in all cases. Use the vector to
485 create the register aliases.
486
bb6e55f3
RO
4872020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
488
489 * sol2-tdep.c (sol2_static_transform_name): Remove.
490 (sol2_init_abi): Don't register it.
491 * gdbarch.sh (static_transform_name): Remove.
492 * gdbarch.c, gdbarch.h: Regenerate.
493
494 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
495 gdbarch_static_transform_name.
496 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
497 * stabsread.c (define_symbol) <'X'>: Remove.
498 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
499 handling.
500 <'V'>: Likewise.
501 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
502 <'S'>: Remove call to gdbarch_static_transform_name.
503
c6d36836
RO
5042020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
505
506 * procfs.c (procfs_pre_trace): New function.
507 (procfs_target::create_inferior): Pass it to fork_inferior.
508
a7e6196b
RO
5092020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
510
511 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
512 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
513 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
514 sol2-tdep.o, sparc-sol2-tdep.o.
515 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
516 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
517 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
518 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
519
d412e696
RO
5202020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
521
522 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
523 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
524 Call sol2_init_abi.
525 Remove calls to set_gdbarch_skip_solib_resolver,
526 set_gdbarch_core_pid_to_str.
527 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
528 (i386_sol2_static_transform_name): Remove.
529 (i386_sol2_init_abi): Call sol2_init_abi.
530 Remove calls to set_gdbarch_sofun_address_maybe_missing,
531 set_gdbarch_static_transform_name,
532 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
533 Use sol2_sigtramp_p.
534 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
535 (sol2_sigtramp_p): New function.
536 (sol2_static_transform_name): New function.
537 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
538 (sol2_init_abi): New function.
539 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
540 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
541 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
542 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
543 (sparc_sol2_static_transform_name): Remove.
544 (sparc32_sol2_init_abi): Call sol2_init_abi.
545 Remove calls to set_gdbarch_sofun_address_maybe_missing,
546 set_gdbarch_static_transform_name,
547 set_gdbarch_skip_solib_resolver,
548 set_gdbarch_core_pid_to_str.
549 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
550 (sparc_sol2_static_transform_name): Remove
551 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
552 call sol2_sigtramp_p.
553 (sparc64_sol2_init_abi): Call sol2_init_abi.
554 Remove calls to set_gdbarch_sofun_address_maybe_missing,
555 set_gdbarch_static_transform_name,
556 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
557
a8654e7d
PW
5582020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
559
560 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
561 * exec.c (validate_exec_file): If from_tty, set both
562 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
563 * symfile.c (symbol_file_add_with_addrs): if always_confirm
564 and from_tty, unconditionally ask a confirmation.
565
caa7fd04
AB
5662020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
567
568 * target-descriptions.c (tdesc_architecture_name): Protect against
569 NULL pointer dereference.
570 (maint_print_xml_tdesc_cmd): New function.
571 (_initialize_target_descriptions): Register new 'maint print
572 xml-tdesc' command and give it the filename completer.
573 * NEWS: Mention new 'maint print xml-tdesc' command.
574
fbf42f4e
AB
5752020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
576
577 * target-descriptions.c (class tdesc_compatible_info): New class.
578 (struct target_desc): Change type of compatible vector.
579 (tdesc_compatible_p): Update for change in type of
580 target_desc::compatible.
581 (tdesc_compatible_info_list): New function.
582 (tdesc_compatible_info_arch_name): New function.
583 (tdesc_add_compatible): Update for change in type of
584 target_desc::compatible.
585 (print_c_tdesc::visit_pre): Likewise.
586
20821f4e
AB
5872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
588
589 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
590 whitespace to underscore.
591 (maint_print_c_tdesc_cmd): Use fake filename for target
592 descriptions that came from the target.
593 (_initialize_target_descriptions): Add filename command completion
594 for 'maint print c-tdesc'.
595
1fb5ee62
SM
5962020-06-23 Simon Marchi <simon.marchi@efficios.com>
597
598 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
599 lines.
600
fc3ecb3e
SM
6012020-06-23 Simon Marchi <simon.marchi@efficios.com>
602
603 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
604 lines.
605 (dwarf2_find_location_expression): Likewise.
606 (call_site_parameter_matches): Likewise.
607 (dwarf2_compile_expr_to_ax): Likewise.
608 (disassemble_dwarf_expression): Likewise.
609 (loclist_describe_location): Likewise.
610
236ef034
PA
6112020-06-23 Pedro Alves <palves@redhat.com>
612
613 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
614 progspace-and-thread.h. Include scoped-mock-context.h instead.
615 (register_to_value_test): Use scoped_mock_context.
616 * regcache.c: Include "scoped-mock-context.h".
617 (cooked_read_test): Don't error out if a target is already pushed.
618 Use scoped_mock_context. Adjust.
619 * scoped-mock-context.h: New file.
620
39e7ecca
AB
6212020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
622
623 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
624 initializer.
625 (ada_language::is_string_type_p): New member function.
626 * c-lang.c (c_language_data): Delete la_is_string_type_p
627 initializer.
628 (cplus_language_data): Likewise.
629 (asm_language_data): Likewise.
630 (minimal_language_data): Likewise.
631 * d-lang.c (d_language_data): Likewise.
632 * f-lang.c (f_is_string_type_p): Delete function, implementation
633 moved to f_language::is_string_type_p.
634 (f_language_data): Delete la_is_string_type_p initializer.
635 (f_language::is_string_type_p): New member function,
636 implementation from f_is_string_type_p.
637 * go-lang.c (go_is_string_type_p): Delete function, implementation
638 moved to go_language::is_string_type_p.
639 (go_language_data): Delete la_is_string_type_p initializer.
640 (go_language::is_string_type_p): New member function,
641 implementation from go_is_string_type_p.
642 * language.c (language_defn::is_string_type_p): Define new member
643 function.
644 (default_is_string_type_p): Make static, add comment copied from
645 header file.
646 (unknown_language_data): Delete la_is_string_type_p initializer.
647 (unknown_language::is_string_type_p): New member function.
648 (auto_language_data): Delete la_is_string_type_p initializer.
649 (auto_language::is_string_type_p): New member function.
650 * language.h (language_data): Delete la_is_string_type_p field.
651 (language_defn::is_string_type_p): Declare new function.
652 (default_is_string_type_p): Delete desclaration, move comment to
653 definition.
654 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
655 moved to m2_language::is_string_type_p.
656 (m2_language_data): Delete la_is_string_type_p initializer.
657 (m2_language::is_string_type_p): New member function,
658 implementation from m2_is_string_type_p.
659 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
660 initializer.
661 * opencl-lang.c (opencl_language_data): Likewise.
662 * p-lang.c (pascal_is_string_type_p): Delete function,
663 implementation moved to pascal_language::is_string_type_p.
664 (pascal_language_data): Delete la_is_string_type_p initializer.
665 (pascal_language::is_string_type_p): New member function,
666 implementation from pascal_is_string_type_p.
667 * rust-lang.c (rust_is_string_type_p): Delete function,
668 implementation moved to rust_language::is_string_type_p.
669 (rust_language_data): Delete la_is_string_type_p initializer.
670 (rust_language::is_string_type_p): New member function,
671 implementation from rust_is_string_type_p.
672 * valprint.c (val_print_scalar_or_string_type_p): Update call to
673 is_string_type_p.
674
4ffc13fb
AB
6752020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
676
677 * ada-lang.c (ada_language_data): Delete la_print_typedef
678 initializer.
679 (ada_language::print_typedef): New member function.
680 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
681 (cplus_language_data): Likewise.
682 (asm_language_data): Likewise.
683 (minimal_language_data): Likewise.
684 * d-lang.c (d_language_data): Likewise.
685 * f-lang.c (f_language_data): Likewise.
686 (f_language::print_typedef): New member function.
687 * go-lang.c (go_language_data): Delete la_print_typedef
688 initializer.
689 * language.c (language_defn::print_typedef): Define member
690 function.
691 (unknown_language_data): Delete la_print_typedef initializer.
692 (unknown_language::print_typedef): New member function.
693 (auto_language_data): Delete la_print_typedef initializer.
694 (auto_language::print_typedef): New member function.
695 * language.h (language_data): Delete la_print_typedef field.
696 (language_defn::print_typedef): Declare new member function.
697 (LA_PRINT_TYPEDEF): Update call to print_typedef.
698 (default_print_typedef): Delete declaration.
699 * m2-lang.c (m2_language_data): Delete la_print_typedef
700 initializer.
701 (m2_language::print_typedef): New member function.
702 * objc-lang.c (objc_language_data): Delete la_print_typedef
703 initializer.
704 * opencl-lang.c (opencl_language_data): Likewise.
705 * p-lang.c (pascal_language_data): Likewise.
706 (pascal_language::print_typedef): New member function.
707 * rust-lang.c (rust_print_typedef): Delete function,
708 implementation moved to rust_language::print_typedef.
709 (rust_language): Delete la_print_typedef initializer.
710 (rust_language::print_typedef): New member function,
711 implementation from rust_print_typedef.
712 * typeprint.c (default_print_typedef): Delete.
713
d711ee67
AB
7142020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
715
716 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
717 (ada_language::printstr): New member function.
718 * c-lang.c (c_language_data): Delete la_printstr initializer.
719 (cplus_language_data): Likewise.
720 (asm_language_data): Likewise.
721 (minimal_language_data): Likewise.
722 * d-lang.c (d_language_data): Likewise.
723 * f-lang.c (f_printstr): Rename to f_language::printstr.
724 (f_language_data): Delete la_printstr initializer.
725 (f_language::printstr): New member function, implementation from
726 f_printstr.
727 * go-lang.c (go_language_data): Delete la_printstr initializer.
728 * language.c (language_defn::printstr): Define new member
729 function.
730 (unk_lang_printstr): Delete.
731 (unknown_language_data): Delete la_printstr initializer.
732 (unknown_language::printstr): New member function.
733 (auto_language_data): Delete la_printstr initializer.
734 (auto_language::printstr): New member function.
735 * language.h (language_data): Delete la_printstr field.
736 (language_defn::printstr): Declare new member function.
737 (LA_PRINT_STRING): Update call to printstr.
738 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
739 (m2_language_data): Delete la_printstr initializer.
740 (m2_language::printstr): New member function, implementation from
741 m2_printstr.
742 * objc-lang.c (objc_language_data): Delete la_printstr
743 initializer.
744 * opencl-lang.c (opencl_language_data): Likewise.
745 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
746 (pascal_language_data): Delete la_printstr initializer.
747 (pascal_language::printstr): New member function, implementation
748 from pascal_printstr.
749 * p-lang.h (pascal_printstr): Delete declaration.
750 * rust-lang.c (rust_printstr): Update header comment.
751 (rust_language_data): Delete la_printstr initializer.
752 (rust_language::printstr): New member function.
753
52b50f2c
AB
7542020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
755
756 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
757 (ada_language::printchar): New member function.
758 * c-lang.c (c_language_data): Delete la_printchar initializer.
759 (cplus_language_data): Likewise.
760 (asm_language_data): Likewise.
761 (minimal_language_data): Likewise.
762 * d-lang.c (d_language_data): Likewise.
763 * f-lang.c (f_printchar): Rename to f_language::printchar.
764 (f_language_data): Delete la_printchar initializer.
765 (f_language::printchar): New member function, implementation from
766 f_printchar.
767 * go-lang.c (go_language_data): Delete la_printchar initializer.
768 * language.c (unk_lang_printchar): Delete.
769 (language_defn::printchar): Define new member function.
770 (unknown_language_data): Delete la_printchar initializer.
771 (unknown_language::printchar): New member function.
772 (auto_language_data): Delete la_printchar initializer.
773 (auto_language::printchar): New member function.
774 * language.h (language_data): Delete la_printchar field.
775 (language_defn::printchar): Declare new member function.
776 (LA_PRINT_CHAR): Update call to printchar.
777 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
778 (m2_language::printchar): New member function.
779 * objc-lang.c (objc_language_data): Delete la_printchar
780 initializer.
781 * opencl-lang.c (opencl_language_data): Likewise.
782 * p-lang.c (pascal_language_data): Delete la_printchar
783 initializer.
784 (pascal_language::printchar): New member function.
785 * rust-lang.c (rust_printchar): Rename to
786 rust_language::printchar.
787 (rust_language_data): Delete la_printchar initializer.
788 (rust_language::printchar): New member function, implementation
789 from rust_printchar.
790
ec8cec5b
AB
7912020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
792
793 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
794 (ada_language_data): Delete la_emitchar initializer.
795 (ada_language::emitchar): New member function, implementation from
796 emit_char.
797 * c-lang.c (c_language_data): Delete la_emitchar initializer.
798 (cplus_language_data): Likewise.
799 (asm_language_data): Likewise.
800 (minimal_language_data): Likewise.
801 * d-lang.c (d_language_data): Likewise.
802 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
803 (f_language_data): Delete la_emitchar initializer.
804 (f_language::emitchar): New member function, implementation from
805 f_emit_char.
806 * go-lang.c (go_language_data): Delete la_emitchar initializer.
807 * language.c (unk_lang_emit_char): Delete.
808 (language_defn::emitchar): New member function definition.
809 (unknown_language_data): Delete la_emitchar initializer.
810 (unknown_language::emitchar): New member function.
811 (auto_language_data): Delete la_emitchar initializer.
812 (auto_language::emitchar): New member function.
813 * language.h (language_data): Delete la_emitchar field.
814 (language_defn::emitchar): New member field declaration.
815 (LA_EMIT_CHAR): Update call to emitchar.
816 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
817 (m2_language_data): Delete la_emitchar initializer.
818 (m2_language::emitchar): New member function, implementation from
819 m2_emit_char.
820 * objc-lang.c (objc_language_data): Delete la_emitchar
821 initializer.
822 * opencl-lang.c (opencl_language_data): Likewise.
823 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
824 (pascal_language_data): Delete la_emitchar initializer.
825 (pascal_language::emitchar): New member function, implementation
826 from pascal_emit_char.
827 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
828 (rust_language_data): Delete la_emitchar initializer.
829 (rust_language::emitchar): New member function, implementation
830 from rust_emitchar.
831
1bf9c363
AB
8322020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
833
834 * ada-lang.c (resolve): Rename to ada_language::post_parser.
835 (ada_language_data): Delete la_post_parser initializer.
836 (ada_language::post_parser): New member function.
837 * c-lang.c (c_language_data): Delete la_post_parser initializer.
838 (cplus_language_data): Likewise.
839 (asm_language_data): Likewise.
840 (minimal_language_data): Likewise.
841 * d-lang.c (d_language_data): Likewise.
842 * f-lang.c (f_language_data): Likewise.
843 * go-lang.c (go_language_data): Likewise.
844 * language.c (unknown_language_data): Likewise.
845 (auto_language_data): Likewise.
846 * language.h (language_data): Delete la_post_parser field.
847 (language_defn::post_parser): New member function.
848 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
849 * objc-lang.c (objc_language_data): Likewise.
850 * opencl-lang.c (opencl_language_data): Likewise.
851 * p-lang.c (pascal_language_data): Likewise.
852 * parse.c (parse_exp_in_context): Update call to post_parser.
853 (null_post_parser): Delete definition.
854 * parser-defs.h (null_post_parser): Delete declaration.
855 * rust-lang.c (rust_language_data): Delete la_post_parser
856 initializer.
857
87afa652
AB
8582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
859
860 * ada-lang.c (parse): Rename to ada_language::parser.
861 (ada_language_data): Delete la_parser initializer.
862 (ada_language::parser): New member function, implementation from
863 parse.
864 * c-lang.c (c_language_data): Delete la_parser initializer.
865 (cplus_language_data): Likewise.
866 (asm_language_data): Likewise.
867 (minimal_language_data): Likewise.
868 * d-lang.c (d_language_data): Likewise.
869 (d_language::parser): New member function.
870 * f-lang.c (f_language_data): Delete la_parser initializer.
871 (f_language::parser): New member function.
872 * go-lang.c (go_language_data): Delete la_parser initializer.
873 (go_language::parser): New member function.
874 * language.c (unk_lang_parser): Delete.
875 (language_defn::parser): Define new member function.
876 (unknown_language_data): Delete la_parser initializer.
877 (unknown_language::parser): New member function.
878 (auto_language_data): Delete la_parser initializer.
879 (auto_language::parser): New member function.
880 * language.h (language_data): Delete la_parser field.
881 (language_defn::parser): Declare new member function.
882 * m2-lang.c (m2_language_data): Delete la_parser initializer.
883 (m2_language::parser): New member function.
884 * objc-lang.c (objc_language_data): Delete la_parser initializer.
885 * opencl-lang.c (opencl_language_data): Likewise.
886 * p-lang.c (pascal_language_data): Likewise.
887 (pascal_language::parser): New member function.
888 * parse.c (parse_exp_in_context): Update call to parser.
889 * rust-lang.c (rust_language_data): Delete la_parser initializer.
890 (rust_language::parser): New member function.
891
37825800
AB
8922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
893
894 * top.c (print_gdb_configuration): Print --with-python-libdir
895 configuration value.
896
5b860c93
PW
8972020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
898
899 * NEWS: Mention change to the alias command.
900
cf00cd6f
PW
9012020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
902
903 * cli/cli-cmds.c (lookup_cmd_for_default_args)
904 (alias_command_completer)
905 (make_alias_options_def_group): New functions.
906 (alias_opts, alias_option_defs): New struct and array.
907 (alias_usage_error): Update usage.
908 (alias_command): Handles optional DEFAULT-ARGS... arguments.
909 Use option framework.
910 (_initialize_cli_cmds): Update alias command help.
911 Update aliases command help.
912 (show_user):
913 Add NULL for new default_args lookup_cmd argument.
914 (valid_command_p): Rename to validate_aliased_command.
915 Add NULL for new default_args lookup_cmd argument. Verify that the
916 aliased_command has no default args.
917 * cli/cli-decode.c (help_cmd): Show aliases definitions.
918 (lookup_cmd_1, lookup_cmd): New argument default_args.
919 (add_alias_cmd):
920 Add NULL for new default_args lookup_cmd argument.
921 (print_help_for_command): Show default args under the layout
922 alias some_alias = some_aliased_cmd some_alias_default_arg.
923 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
924 xfree default_args in destructor.
925 * cli/cli-script.c (process_next_line, do_define_command):
926 Add NULL for new default_args lookup_cmd argument.
927 * command.h: Declare new default_args argument in lookup_cmd
928 and lookup_cmd_1.
929 * completer.c (complete_line_internal_1):
930 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
931 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
932 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
933 Likewise.
934 * infcmd.c (_initialize_infcmd): Likewise.
935 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
936 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
937 * python/py-param.c (add_setshow_generic): Likewise.
938 * remote.c (_initialize_remote): Likewise.
939 * top.c (execute_command): Prepend default_args if command has some.
940 (set_verbose):
941 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
942 * tracepoint.c (validate_actionline, encode_actions_1):
943 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
944
bd920864
TBA
9452020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
946
947 * jit.c (jit_read_descriptor): Use bool as the return type.
948 (jit_breakpoint_re_set_internal): Use bool as the return type.
949 Invert the return value logic; return true if the jit breakpoint
950 has been successfully initialized.
951 (jit_inferior_init): Update the call to
952 jit_breakpoint_re_set_internal.
953
f8098322
PA
9542020-06-22 Pedro Alves <palves@redhat.com>
955
956 PR gdb/25939
957 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
958 Use the current inferior instead. Don't return
959 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
960 wait again.
961 * sol-thread.c (sol_thread_target::wait): Don't reference
962 inferior_ptid.
963 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
964 (sol_update_thread_list_callback): Use the current inferior's pid
965 instead of inferior_ptid.
966
196535a6
RO
9672020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
968
969 * procfs.c: Cleanup many comments.
970
971 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
972 (AFTER_WATCHFLAG): Replace by value.
973
974 (MAIN_PROC_NAME_FORMAT): Inline ...
975 (create_procinfo): ... here.
976
977 (procfs_debug_inferior): Remove SYS_exec handling.
978 (syscall_is_exec): Likewise.
979 (procfs_set_exec_trap): Likewise.
980
981 (syscall_is_lwp_exit): Inline in callers.
982 (syscall_is_exit): Likewise.
983 (syscall_is_exec): Likewise.
984 (syscall_is_lwp_create): Likewise.
985
986 (invalidate_cache): Remove #if 0 code.
987
988 (make_signal_thread_runnable): Remove.
989 (procfs_target::resume): Remove #if 0 code.
990
cf6f3e86
RO
9912020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
992
993 PR gdb/25939
994 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
995 call ...
996 (procfs_target::create_inferior): ... here.
997
48e9cc84
PW
9982020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
999
1000 * exec.c (validate_exec_file): Ensure the build-id is up to
1001 date by calling reopen_exec_file (that checks file timestamp
1002 to decide to re-read the file).
1003
3922b302
PA
10042020-06-18 Pedro Alves <palves@redhat.com>
1005
1006 PR gdb/25412
1007 * gdbthread.h (delete_thread, delete_thread_silent)
1008 (find_thread_ptid): Update comments.
1009 * thread.c (current_thread_): New global.
1010 (is_current_thread): Move higher, and reimplement.
1011 (inferior_thread): Reimplement.
1012 (set_thread_exited): Use bool. Add assertions.
1013 (add_thread_silent): Simplify thread-reuse handling by always
1014 calling delete_thread.
1015 (delete_thread): Remove intro comment.
1016 (find_thread_ptid): Skip exited threads.
1017 (switch_to_thread_no_regs): Write to current_thread_.
1018 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1019 INFERIOR_PTID. Clear current_thread_.
1020
6dbdab44
PA
10212020-06-18 Pedro Alves <palves@redhat.com>
1022
1023 * aix-thread.c (pd_update): Use switch_to_thread.
1024
2da4b788
PA
10252020-06-18 Pedro Alves <palves@redhat.com>
1026
1027 * ravenscar-thread.c (ravenscar_thread_target): Update.
1028 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1029 (ravenscar_thread_target::add_active_thread): ... this. Don't
1030 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1031 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1032
50838d1b
PA
10332020-06-18 Pedro Alves <palves@redhat.com>
1034
1035 * nat/windows-nat.c (current_windows_thread): Remove.
1036 * nat/windows-nat.h (current_windows_thread): Remove.
1037 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1038 Adjust.
1039 (display_selectors): Adjust to fetch the current
1040 windows_thread_info based on inferior_ptid.
1041 (fake_create_process): No longer write to current_windows_thread.
1042 (windows_nat_target::get_windows_debug_event):
1043 Don't set inferior_ptid or current_windows_thread.
1044 (windows_nat_target::wait): Adjust to not rely on
1045 current_windows_thread.
1046 (do_initial_windows_stuff): Now a method of windows_nat_target.
1047 Switch to the last_ptid thread.
1048 (windows_nat_target::attach): Adjust.
1049 (windows_nat_target::detach): Use switch_to_no_thread instead of
1050 writing to inferior_ptid directly.
1051 (windows_nat_target::create_inferior): Adjust.
1052
31ce04e9
PA
10532020-06-18 Pedro Alves <palves@redhat.com>
1054
1055 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1056
1ee1a363
PA
10572020-06-18 Pedro Alves <palves@redhat.com>
1058
1059 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1060 after creating it, instead of writing to inferior_ptid. Don't
1061 write to inferior_ptid.
1062
6d350754
PA
10632020-06-18 Pedro Alves <palves@redhat.com>
1064
1065 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1066
5d971d48
PA
10672020-06-18 Pedro Alves <palves@redhat.com>
1068
1069 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1070 it, instead of writing to inferior_ptid.
1071
86e57d1b
PA
10722020-06-18 Pedro Alves <palves@redhat.com>
1073
1074 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1075 to inferior_ptid.
1076
f2e1c129
PA
10772020-06-18 Pedro Alves <palves@redhat.com>
1078
1079 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1080 instead of writing to inferior_ptid directly.
1081
60db1b85
PA
10822020-06-18 Pedro Alves <palves@redhat.com>
1083
1084 * corelow.c (core_target::close): Use switch_to_no_thread instead
1085 of writing to inferior_ptid directly.
1086 (add_to_thread_list, core_target_open): Use switch_to_thread
1087 instead of writing to inferior_ptid directly.
1088
fe7d6a8d
PA
10892020-06-18 Pedro Alves <palves@redhat.com>
1090
1091 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1092 inferior_ptid.
1093 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1094 inferior_ptid.
1095 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1096 inferior_ptid directly.
1097 (darwin_nat_target::init_thread_list): Switch to thread, instead
1098 of writing to inferior_ptid.
1099 (darwin_nat_target::attach): Don't write to inferior_ptid.
1100 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1101
975f8708
PA
11022020-06-18 Pedro Alves <palves@redhat.com>
1103
1104 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1105 thread.
1106 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1107 Instead use switch_to_thread.
1108 (gnu_nat_target::detach): Use switch_to_no_thread
1109 instead of writing to inferior_ptid directly. Used passed-in
1110 inferior instead of looking up the inferior by pid.
1111
1a204730
PA
11122020-06-18 Pedro Alves <palves@redhat.com>
1113
1114 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1115 inferior_ptid.
1116
ebe84f23
PA
11172020-06-18 Pedro Alves <palves@redhat.com>
1118
1119 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1120 inferior_ptid.
1121 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1122 thread.
1123 (nto_procfs_target::detach): Avoid referencing
1124 inferior_ptid. Use switch_to_no_thread instead of writing to
1125 inferior_ptid directly.
1126 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1127 instead of writing to inferior_ptid directly.
1128 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1129 to thread.
1130
191f02e5
PA
11312020-06-18 Pedro Alves <palves@redhat.com>
1132
1133 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1134 after creating it, instead of writing to inferior_ptid.
1135 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1136 to inferior_ptid directly.
1137 (gdbsim_target::wait): Don't write to inferior_ptid.
1138
0ac55310
PA
11392020-06-18 Pedro Alves <palves@redhat.com>
1140
1141 * remote.c (remote_target::remote_notice_new_inferior): Use
1142 switch_to_thread instead of writing to inferior_ptid directly.
1143 (remote_target::add_current_inferior_and_thread): Use
1144 switch_to_no_thread instead of writing to inferior_ptid directly.
1145 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1146 and switch_to_thread instead of using set_current_inferior or
1147 writing to inferior_ptid directly.
1148
5233f39b
PA
11492020-06-18 Pedro Alves <palves@redhat.com>
1150
1151 * tracectf.c (ctf_target_open): Switch to added thread instead of
1152 writing to inferior_ptid directly.
1153 (ctf_target::close): Use switch_to_no_thread instead of writing to
1154 inferior_ptid directly.
1155
087e161b
PA
11562020-06-18 Pedro Alves <palves@redhat.com>
1157
1158 * tracefile-tfile.c (tfile_target_open): Don't write to
1159 inferior_ptid directly, instead switch to added thread.
1160 (tfile_target::close): Use switch_to_no_thread instead of writing
1161 to inferior_ptid directly.
1162
7fb43e53
PA
11632020-06-18 Pedro Alves <palves@redhat.com>
1164
1165 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1166 (procfs_target::detach): Use switch_to_no_thread
1167 instead of writing to inferior_ptid directly.
1168 (do_attach): Change return type to void. Switch to the added
1169 thread.
1170 (procfs_target::create_inferior): Switch to the added thread.
1171 (procfs_do_thread_registers): Don't write to inferior_ptid.
1172
18493a00
PA
11732020-06-18 Pedro Alves <palves@redhat.com>
1174
1175 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1176 of writing to inferior_ptid.
1177 (scoped_restore_exited_inferior): Delete.
1178 (handle_vfork_child_exec_or_exit): Simplify using
1179 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1180 instead of writing to inferior_ptid.
1181 (THREAD_STOPPED_BY): Delete.
1182 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1183 (thread_stopped_by_hw_breakpoint): Delete.
1184 (save_waitstatus): Use
1185 scoped_restore_current_thread+switch_to_thread, and call
1186 target_stopped_by_watchpoint instead of
1187 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1188 instead of thread_stopped_by_sw_breakpoint, and
1189 target_stopped_by_hw_breakpoint instead of
1190 thread_stopped_by_hw_breakpoint.
1191 (handle_inferior_event)
1192 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1193 inferior_ptid directly, nor
1194 set_current_inferior/set_current_program_space. Use
1195 switch_to_thread / switch_to_inferior_no_thread instead.
1196
a0776b13
PA
11972020-06-18 Pedro Alves <palves@redhat.com>
1198
1199 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1200 instead of writing to inferior_ptid.
1201
6155c136
PA
12022020-06-18 Pedro Alves <palves@redhat.com>
1203
1204 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1205 added thread.
1206 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1207 to the added thread.
1208 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1209 instead of writing to inferior_ptid.
1210
c5316fc6
PA
12112020-06-18 Pedro Alves <palves@redhat.com>
1212
1213 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1214 (register_to_value_test): Mock a program_space too. Heap-allocate
1215 the address space. Don't write to inferior_ptid. Use
1216 switch_to_thread instead.
1217
8df01799
PA
12182020-06-18 Pedro Alves <palves@redhat.com>
1219
1220 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1221 Delete.
1222 (find_signalled_thread()): New, factored out from
1223 linux_make_corefile_notes and adjusted to handle exited threads.
1224 (linux_make_corefile_notes): Adjust to use the new
1225 find_signalled_thread.
1226
41792d68
PA
12272020-06-18 Pedro Alves <palves@redhat.com>
1228
1229 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1230 of saving/restoring inferior_ptid.
1231
612f258a
TT
12322020-06-17 Tom Tromey <tom@tromey.com>
1233
1234 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1235 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1236 declare.
1237 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1238
efb763a5
SM
12392020-06-15 Simon Marchi <simon.marchi@efficios.com>
1240
1241 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1242 of partial symtabs.
1243
2951f6c0
SM
12442020-06-17 Simon Marchi <simon.marchi@efficios.com>
1245
1246 * regformats/reg-arm.dat: Remove.
1247 * regformats/reg-bfin.dat: Remove.
1248 * regformats/reg-cris.dat: Remove.
1249 * regformats/reg-crisv32.dat: Remove.
1250 * regformats/reg-m32r.dat: Remove.
1251 * regformats/reg-tilegx.dat: Remove.
1252 * regformats/reg-tilegx32.dat: Remove.
1253
7d458ea5
SM
12542020-06-17 Simon Marchi <simon.marchi@efficios.com>
1255
1256 * features/Makefile (WHICH): Remove arm files.
1257 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1258 * regformats/arm/arm-with-neon.dat: Remove.
1259 * regformats/arm/arm-with-vfpv2.dat: Remove.
1260 * regformats/arm/arm-with-vfpv3.dat: Remove.
1261
3af96c0d
SM
12622020-06-17 Simon Marchi <simon.marchi@efficios.com>
1263
1264 * features/Makefile (XMLTOC): Remove rx.xml.
1265
b25e22fd
PA
12662020-06-17 Pedro Alves <palves@redhat.com>
1267
1268 * gdbthread.h (thread_control_state) <trap_expected> Update
1269 comments.
1270
a78a19b1
AB
12712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1272
1273 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1274 ada_language::lookup_symbol_nonlocal.
1275 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1276 (ada_language::lookup_symbol_nonlocal): New member function,
1277 implementation from ada_lookup_symbol_nonlocal.
1278 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1279 initializer.
1280 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1281 initializer.
1282 (cplus_language::lookup_symbol_nonlocal): New member function.
1283 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1284 (minimal_language_data) Likewise.
1285 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1286 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1287 initializer.
1288 (d_language::lookup_symbol_nonlocal): New member function.
1289 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1290 initializer.
1291 (f_language::lookup_symbol_nonlocal): New member function.
1292 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1293 initializer.
1294 * language.c (unknown_language_data): Likewise.
1295 (auto_language_data): Likewise.
1296 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1297 field.
1298 (language_defn::lookup_symbol_nonlocal): New member function.
1299 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1300 initializer.
1301 * objc-lang.c (objc_language_data): Likewise.
1302 * opencl-lang.c (opencl_language_data): Likewise.
1303 * p-lang.c (pascal_language_data): Likewise.
1304 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1305 rust_language::lookup_symbol_nonlocal.
1306 (rust_language_data): Delete la_lookup_symbol_nonlocal
1307 initializer.
1308 (rust_language::lookup_symbol_nonlocal): New member function,
1309 implementation from rust_lookup_symbol_nonlocal.
1310 * symtab.c (lookup_symbol_aux): Update call to
1311 lookup_symbol_nonlocal.
1312 (basic_lookup_symbol_nonlocal): Rename to...
1313 (language_defn::lookup_symbol_nonlocal): ...this, and update
1314 header comment. Remove language_defn parameter, and replace with
1315 uses of `this'.
1316 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1317
ebe2334e
AB
13182020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1319
1320 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1321 initializer.
1322 (ada_language::value_print_inner): New member function.
1323 * c-lang.c (c_language_data): Delete la_value_print_inner
1324 initializer.
1325 (cplus_language_data): Likewise.
1326 (asm_language_data): Likewise.
1327 (minimal_language_data): Likewise.
1328 * d-lang.c (d_language_data): Likewise.
1329 (d_language::value_print_inner): New member function.
1330 * f-lang.c (f_language_data): Delete la_value_print_inner
1331 initializer.
1332 (f_language::value_print_inner): New member function.
1333 * f-lang.h (f_value_print_innner): Rename to...
1334 (f_value_print_inner): ...this (note spelling of 'inner').
1335 * f-valprint.c (f_value_print_innner): Rename to...
1336 (f_value_print_inner): ...this (note spelling of 'inner').
1337 * go-lang.c (go_language_data): Delete la_value_print_inner
1338 initializer.
1339 (go_language::value_print_inner): New member function.
1340 * language.c (language_defn::value_print_inner): Define new member
1341 function.
1342 (unk_lang_value_print_inner): Delete.
1343 (unknown_language_data): Delete la_value_print_inner initializer.
1344 (unknown_language::value_print_inner): New member function.
1345 (auto_language_data): Delete la_value_print_inner initializer.
1346 (auto_language::value_print_inner): New member function.
1347 * language.h (language_data): Delete la_value_print_inner field.
1348 (language_defn::value_print_inner): Delcare new member function.
1349 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1350 initializer.
1351 (m2_language::value_print_inner): New member function.
1352 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1353 initializer.
1354 * opencl-lang.c (opencl_language_data): Likewise.
1355 * p-lang.c (pascal_language_data): Likewise.
1356 (pascal_language::value_print_inner): New member function.
1357 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1358 initializer.
1359 (rust_language::value_print_inner): New member function.
1360 * valprint.c (do_val_print): Update call to value_print_inner.
1361
a1d1fa3e
AB
13622020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1363
1364 * ada-lang.c (ada_language_data): Delete la_value_print
1365 initializer.
1366 (ada_language::value_print): New member function.
1367 * c-lang.c (c_language_data): Delete la_value_print initializer.
1368 (cplus_language_data): Likewise.
1369 (asm_language_data): Likewise.
1370 (minimal_language_data): Likewise.
1371 * d-lang.c (d_language_data): Likewise.
1372 * f-lang.c (f_language_data): Likewise.
1373 * go-lang.c (go_language_data): Likewise.
1374 * language.c (unk_lang_value_print): Delete.
1375 (language_defn::value_print): Define new member function.
1376 (unknown_language_data): Delete la_value_print initializer.
1377 (unknown_language::value_print): New member function.
1378 (auto_language_data): Delete la_value_print initializer.
1379 (auto_language::value_print): New member function.
1380 * language.h (language_data): Delete la_value_print field.
1381 (language_defn::value_print): Declare new member function.
1382 (LA_VALUE_PRINT): Update call to value_print.
1383 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1384 * objc-lang.c (objc_language_data): Likewise.
1385 * opencl-lang.c (opencl_language_data): Likewise.
1386 * p-lang.c (pascal_language_data): Likewise.
1387 (pascal_language::value_print): New member function.
1388 * rust-lang.c (rust_language_data): Delete la_value_print
1389 initializer.
1390
f16a9f57
AB
13912020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1392
1393 * ada-lang.c (ada_watch_location_expression): Rename to
1394 ada_language::watch_location_expression.
1395 (ada_language_data): Delete la_watch_location_expression
1396 initializer.
1397 (ada_language::watch_location_expression): New member function,
1398 implementation from ada_watch_location_expression.
1399 * breakpoint.c (watch_command_1): Update call to
1400 watch_location_expression.
1401 * c-lang.c (c_watch_location_expression): Rename to
1402 language_defn::watch_location_expression.
1403 (c_language_data): Delete la_watch_location_expression
1404 initializer.
1405 (cplus_language_data): Likewise.
1406 (asm_language_data): Likewise.
1407 (minimal_language_data): Likewise.
1408 * c-lang.h (c_watch_location_expression): Delete declaration.
1409 * d-lang.c (d_language_data): Delete la_watch_location_expression
1410 initializer.
1411 * f-lang.c (f_language_data): Likewise.
1412 * go-lang.c (go_language_data): Likewise.
1413 * language.c (language_defn::watch_location_expression): Member
1414 function implementation from c_watch_location_expression.
1415 (unknown_language_data): Delete la_watch_location_expression
1416 initializer.
1417 (auto_language_data): Likewise.
1418 * language.h (language_data): Delete la_watch_location_expression
1419 field.
1420 (language_defn::watch_location_expression): Declare new member
1421 function.
1422 * m2-lang.c (m2_language_data): Delete
1423 la_watch_location_expression initializer.
1424 * objc-lang.c (objc_language_data): Likewise.
1425 * opencl-lang.c (opencl_language_data): Likewise.
1426 * p-lang.c (pascal_language_data): Likewise.
1427 * rust-lang.c (rust_watch_location_expression): Rename to
1428 rust_language::watch_location_expression.
1429 (rust_language_data): Delete la_watch_location_expression
1430 initializer.
1431 (rust_language::watch_location_expression): New member function,
1432 implementation from rust_watch_location_expression.
1433
7e56227d
AB
14342020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1435
1436 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1437 ada_language::collect_symbol_completion_matches.
1438 (ada_language_data): Delete la_collect_symbol_completion_matches
1439 initializer.
1440 (ada_language::collect_symbol_completion_matches): New member
1441 function, implementation from
1442 ada_collect_symbol_completion_matches.
1443 * c-lang.c (c_language_data): Delete
1444 la_collect_symbol_completion_matches initializer.
1445 (cplus_language_data): Likewise.
1446 (asm_language_data): Likewise.
1447 (minimal_language_data): Likewise.
1448 * d-lang.c (d_language_data): Likewise.
1449 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1450 f_language::collect_symbol_completion_matches.
1451 (f_language_data): Delete la_collect_symbol_completion_matches
1452 initializer.
1453 (f_language::collect_symbol_completion_matches) New member
1454 function, implementation from f_collect_symbol_completion_matches.
1455 * go-lang.c (go_language_data): Delete
1456 la_collect_symbol_completion_matches initializer.
1457 * language.c (unknown_language_data): Likewise.
1458 (auto_language_data): Likewise.
1459 * language.h (language_data): Delete
1460 la_collect_symbol_completion_matches field.
1461 (language_defn::collect_symbol_completion_matches): New member
1462 function.
1463 * m2-lang.c (m2_language_data): Delete
1464 la_collect_symbol_completion_matches initializer.
1465 * objc-lang.c (objc_language_data): Likewise.
1466 * opencl-lang.c (opencl_language_data): Likewise.
1467 * p-lang.c (pascal_language_data): Likewise.
1468 * rust-lang.c (rust_language_data): Likewise.
1469 * symtab.c (default_collect_symbol_completion_matches): Delete.
1470 (collect_symbol_completion_matches): Update call to
1471 collect_symbol_completion_matches.
1472 (collect_symbol_completion_matches_type): Likewise.
1473 * symtab.h (default_collect_symbol_completion_matches): Delete
1474 declaration.
1475
53fc67f8
AB
14762020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1477
1478 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1479 (ada_language_data): Delete la_word_break_characters initializer.
1480 (ada_language::word_break_characters): New member function.
1481 * c-lang.c (c_language_data): Delete la_word_break_characters
1482 initializer.
1483 (cplus_language_data): Likewise.
1484 (asm_language_data): Likewise.
1485 (minimal_language_data): Likewise.
1486 * completer.c: Update global comment.
1487 (advance_to_expression_complete_word_point): Update call to
1488 word_break_characters.
1489 (complete_files_symbols): Likewise.
1490 (complete_line_internal_1): Likewise.
1491 (default_completer_handle_brkchars): Likewise.
1492 (skip_quoted_chars): Likewise.
1493 * d-lang.c (d_language_data): Delete la_word_break_characters
1494 initializer.
1495 * f-lang.c (f_word_break_characters): Delete.
1496 (f_language_data): Delete la_word_break_characters initializer.
1497 (f_language::word_break_characters): New member function.
1498 * go-lang.c (go_language_data): Delete la_word_break_characters
1499 initializer.
1500 * language.c (unknown_language_data): Likewise.
1501 (auto_language_data): Likewise.
1502 * language.h (default_word_break_characters): Move declaration to
1503 earlier in the file.
1504 (language_data): Delete la_word_break_characters field.
1505 (language_defn::word_break_characters): New member function.
1506 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1507 initializer.
1508 * objc-lang.c (objc_language_data): Likewise.
1509 * opencl-lang.c (opencl_language_data): Likewise.
1510 * p-lang.c (pascal_language_data): Likewise.
1511 * rust-lang.c (rust_language_data): Likewise.
1512
c9debfb9
AB
15132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1514
1515 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1516 (ada_language_data): Delete la_get_symbol_name_matcher
1517 initializer.
1518 (language_defn::get_symbol_name_matcher_inner): New member
1519 function.
1520 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1521 initializer.
1522 (cplus_language_data): Likewise.
1523 (cplus_language::get_symbol_name_matcher_inner): New member
1524 function.
1525 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1526 (minimal_language_data): Likewise.
1527 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1528 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1529 initializer.
1530 * dictionary.c (iter_match_first_hashed): Update call to
1531 get_symbol_name_matcher.
1532 (iter_match_next_hashed): Likewise.
1533 (iter_match_next_linear): Likewise.
1534 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1535 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1536 initializer.
1537 (f_language::get_symbol_name_matcher_inner): New member function.
1538 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1539 initializer.
1540 * language.c (default_symbol_name_matcher): Update header comment,
1541 make static.
1542 (language_defn::get_symbol_name_matcher): New definition.
1543 (language_defn::get_symbol_name_matcher_inner): Likewise.
1544 (get_symbol_name_matcher): Delete.
1545 (unknown_language_data): Delete la_get_symbol_name_matcher
1546 initializer.
1547 (auto_language_data): Likewise.
1548 * language.h (language_data): Delete la_get_symbol_name_matcher
1549 field.
1550 (language_defn::get_symbol_name_matcher): New member function.
1551 (language_defn::get_symbol_name_matcher_inner): Likewise.
1552 (default_symbol_name_matcher): Delete declaration.
1553 * linespec.c (find_methods): Update call to
1554 get_symbol_name_matcher.
1555 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1556 initializer.
1557 * minsyms.c (lookup_minimal_symbol): Update call to
1558 get_symbol_name_matcher.
1559 (iterate_over_minimal_symbols): Likewise.
1560 * objc-lang.c (objc_language_data): Delete
1561 la_get_symbol_name_matcher initializer.
1562 * opencl-lang.c (opencl_language_data): Likewise.
1563 * p-lang.c (pascal_language_data): Likewise.
1564 * psymtab.c (psymbol_name_matches): Update call to
1565 get_symbol_name_matcher.
1566 * rust-lang.c (rust_language_data): Delete
1567 la_get_symbol_name_matcher initializer.
1568 * symtab.c (symbol_matches_search_name): Update call to
1569 get_symbol_name_matcher.
1570 (compare_symbol_name): Likewise.
1571
9a49ad8c
AB
15722020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1573
1574 * ada-lang.c (ada_language_data): Delete la_compute_program
1575 initializer.
1576 * c-lang.c (c_language_data): Likewise.
1577 (c_language::compute_program): New member function.
1578 (cplus_language_data): Delete la_compute_program initializer.
1579 (cplus_language::compute_program): New member function.
1580 (asm_language_data): Delete la_compute_program initializer.
1581 (minimal_language_data): Likewise.
1582 * c-lang.h (c_compute_program): Update comment.
1583 (cplus_compute_program): Likewise.
1584 * compile/compile-c-support.c (c_compute_program): Likewise.
1585 (cplus_compute_program): Likewise.
1586 * compile/compile.c (compile_to_object): Update call to
1587 la_compute_program.
1588 * d-lang.c (d_language_data): Delete la_compute_program
1589 initializer.
1590 * f-lang.c (f_language_data): Likewise.
1591 * go-lang.c (go_language_data): Likewise.
1592 * language.c (unknown_language_data): Likewise.
1593 (auto_language_data): Likewise.
1594 * language.h (language_data): Delete la_compute_program field.
1595 (language_defn::compute_program): New member function.
1596 * m2-lang.c (m2_language_data): Delete la_compute_program
1597 initializer.
1598 * objc-lang.c (objc_language_data): Likewise.
1599 * opencl-lang.c (opencl_language_data): Likewise.
1600 * p-lang.c (pascal_language_data): Likewise.
1601 * rust-lang.c (rust_language_data): Likewise.
1602
eff93b4d
AB
16032020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1604
1605 * ada-lang.c (ada_language_data) Delete
1606 la_class_name_from_physname initializer.
1607 * c-lang.c (c_language_data): Likewise.
1608 (cplus_language_data): Likewise.
1609 (cplus_language::class_name_from_physname): New member function.
1610 (asm_language_data): Delete la_class_name_from_physname
1611 initializer.
1612 (minimal_language_data): Likewise.
1613 * d-lang.c (d_language_data): Likewise.
1614 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1615 method on language_defn class.
1616 (guess_full_die_structure_name): Likewise.
1617 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1618 initializer.
1619 * go-lang.c (go_language_data): Likewise.
1620 * language.c (language_class_name_from_physname): Delete.
1621 (unk_lang_class_name): Delete.
1622 (unknown_language_data): Delete la_class_name_from_physname
1623 initializer.
1624 (auto_language_data): Likewise.
1625 * language.h (language_data): Delete la_class_name_from_physname
1626 field.
1627 (language_defn::class_name_from_physname): New function.
1628 (language_class_name_from_physname): Delete declaration.
1629 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1630 initializer.
1631 * objc-lang.c (objc_language_data): Likewise.
1632 * opencl-lang.c (opencl_language_data): Likewise.
1633 * p-lang.c (pascal_language_data): Likewise.
1634 * rust-lang.c (rust_language_data): Likewise.
1635
de543742
TT
16362020-06-16 Tom Tromey <tom@tromey.com>
1637
1638 * tui/tui-data.h (STATUS_NAME): New macro.
1639 * tui/tui-layout.c (tui_remove_some_windows)
1640 (initialize_known_windows, tui_register_window)
1641 (tui_layout_split::remove_windows, initialize_layouts)
1642 (tui_new_layout_command): Don't use hard-coded window names.
1643
a350efd4
TT
16442020-06-16 Tom Tromey <tom@tromey.com>
1645
1646 PR tui/25348:
1647 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1648 tui_initialize_readline. Only run once. Call rl_initialize.
1649 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1650 tui_initialize_readline.
1651 * tui/tui-io.c (tui_setup_io): Call
1652 tui_ensure_readline_initialized.
1653 * tui/tui-interp.c (tui_interp::init): Update.
1654
39ec0490
TT
16552020-06-16 Tom Tromey <tom@tromey.com>
1656
1657 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1658 Also preserve the status window.
1659
d2d1ea20
TT
16602020-06-16 Tom Tromey <tom@tromey.com>
1661
1662 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1663 where m_window==nullptr.
1664
66920317
TT
16652020-06-15 Tom Tromey <tromey@adacore.com>
1666
1667 * windows-nat.c (windows_nat::handle_output_debug_string):
1668 Update.
1669 (windows_nat::handle_ms_vc_exception): Update.
1670 * target.h (target_read_string): Change API.
1671 * target.c (target_read_string): Change API.
1672 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1673 Update.
1674 * solib-frv.c (frv_current_sos): Update.
1675 * solib-dsbt.c (dsbt_current_sos): Update.
1676 * solib-darwin.c (darwin_current_sos): Update.
1677 * linux-thread-db.c (inferior_has_bug): Update.
1678 * expprint.c (print_subexp_standard): Update.
1679 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1680 (ada_exception_message_1): Update.
1681
a5d871dd
TT
16822020-06-15 Tom Tromey <tromey@adacore.com>
1683
1684 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1685
670e35fa
TT
16862020-06-15 Tom Tromey <tromey@adacore.com>
1687
1688 * valprint.c (read_string): Update comment.
1689 * target.c (MIN): Remove.
1690 (target_read_string): Rewrite.
1691
f5272a3b
TT
16922020-06-15 Tom Tromey <tromey@adacore.com>
1693
1694 * corefile.c (read_memory_string): Remove.
1695 * ada-valprint.c (ada_value_print_ptr): Update.
1696 * ada-lang.h (ada_tag_name): Change return type.
1697 * ada-lang.c (type_from_tag): Update.
1698 (ada_tag_name_from_tsd): Change return type. Use
1699 target_read_string.
1700 (ada_tag_name): Likewise.
1701 * gdbcore.h (read_memory_string): Don't declare.
1702
2c074f49
HD
17032020-06-14 Hannes Domani <ssbssa@yahoo.de>
1704
1705 * symtab.c (rbreak_command): Ignore Windows drive colon.
1706
6a17d503
SM
17072020-06-12 Simon Marchi <simon.marchi@efficios.com>
1708
1709 * NEWS: Mention removed GDBserver host support.
1710
453c733f
NC
17112020-06-12 Nelson Chu <nelson.chu@sifive.com>
1712
1713 * features/riscv/rebuild-csr-xml.sh: Updated.
1714
2b4e6a3f
TT
17152020-06-11 Tom Tromey <tom@tromey.com>
1716
1717 PR gdb/18318:
1718 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1719
4412332f
JG
17202020-06-09 Jonny Grant <jg@jguk.org>
17212020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1722
1723 * main.c (captured_main_1): Don't print new line after help.
1724 (print_gdb_help): add mailing list and IRC channel information
1725 to --help. Add new lines between items in the footer. Remove
1726 quotes around bug url.
1727
2f33032a
KS
17282020-06-11 Keith Seitz <keiths@redhat.com>
1729
1730 PR gdb/21356
1731 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1732 Resolve typedefs for type length calculations.
1733
7ab96794
TV
17342020-06-10 Tom de Vries <tdevries@suse.de>
1735
1736 PR ada/24713
1737 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1738 (write_psymbols): Enable .gdb_index for ada.
1739 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1740 ada.
1741
e5f3ece2
TV
17422020-06-10 Tom de Vries <tdevries@suse.de>
1743
1744 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1745 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1746 namei" instead of "const char *name" argument.
1747 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1748 dw2_symtab_iter_init.
1749
940da03e
SM
17502020-06-08 Simon Marchi <simon.marchi@efficios.com>
1751
1752 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1753 to use type::field and field::type instead.
1754
b6cdac4b
SM
17552020-06-08 Simon Marchi <simon.marchi@efficios.com>
1756
1757 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1758 to use field::type instead.
1759
5d14b6e5
SM
17602020-06-08 Simon Marchi <simon.marchi@efficios.com>
1761
1762 * gdbtypes.h (struct field) <type, set_type>: New methods.
1763 Rename `type` field to...
1764 <m_type>: ... this. Change references throughout to use type or
1765 set_type methods.
1766 (FIELD_TYPE): Use field::type. Change call sites that modify
1767 the field's type to use field::set_type instead.
1768
3d967001
SM
17692020-06-08 Simon Marchi <simon.marchi@efficios.com>
1770
1771 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1772 to use type::index_type instead.
1773
262abc0d
SM
17742020-06-08 Simon Marchi <simon.marchi@efficios.com>
1775
1776 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1777 methods.
1778 (TYPE_INDEX_TYPE): Use type::index_type.
1779 * gdbtypes.c (create_array_type_with_stride): Likewise.
1780
82836c92
TT
17812020-06-07 Tom Tromey <tom@tromey.com>
1782
1783 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1784 parameter.
1785 (generic_value_print): Update.
1786
940dace9
AB
17872020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1788
1789 Revert commit 982a38f60b0.
1790 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1791
982a38f6
AB
17922020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1793
1794 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1795 avoid use after free.
1796
82f06518
TV
17972020-06-05 Tom de Vries <tdevries@suse.de>
1798
1799 * NEWS: Fix typos.
1800
f8c41851
SM
18012020-06-04 Simon Marchi <simon.marchi@efficios.com>
1802
1803 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1804 the per_bfd object.
1805 (dwarf2_read_debug_names): Likewise.
1806 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1807 object when re-using a per_bfd object with an index.
1808
f9b5d5ea
TV
18092020-06-03 Tom de Vries <tdevries@suse.de>
1810
1811 PR symtab/26046
1812 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1813 children for C++.
1814 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1815 DW_TAG_subprogram.
1816
f6eee2d0
AB
18172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1818
1819 * ada-lang.c (ada_language_data): Delete skip_trampoline
1820 initializer.
1821 * c-lang.c (c_language_data): Likewise.
1822 (cplus_language_data): Likewise.
1823 (cplus_language::skip_trampoline): New member function.
1824 (asm_language_data): Delete skip_trampoline initializer.
1825 (minimal_language_data): Likewise.
1826 * d-lang.c (d_language_data): Likewise.
1827 * f-lang.c (f_language_data): Likewise.
1828 * go-lang.c (go_language_data): Likewise.
1829 * language.c (unk_lang_trampoline): Delete function.
1830 (skip_language_trampoline): Update.
1831 (unknown_language_data): Delete skip_trampoline initializer.
1832 (auto_language_data): Likewise.
1833 * language.h (language_data): Delete skip_trampoline field.
1834 (language_defn::skip_trampoline): New function.
1835 * m2-lang.c (m2_language_data): Delete skip_trampoline
1836 initializer.
1837 * objc-lang.c (objc_skip_trampoline): Delete function, move
1838 implementation to objc_language::skip_trampoline.
1839 (objc_language_data): Delete skip_trampoline initializer.
1840 (objc_language::skip_trampoline): New member function with
1841 implementation from objc_skip_trampoline.
1842 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1843 initializer.
1844 * p-lang.c (pascal_language_data): Likewise.
1845 * rust-lang.c (rust_language_data): Likewise.
1846
0a50df5d
AB
18472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1848
1849 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1850 (ada_language::demangle): New member function.
1851 * c-lang.c (c_language_data): Delete la_demangle initializer.
1852 (cplus_language_data): Delete la_demangle initializer.
1853 (cplus_language::demangle): New member function.
1854 (asm_language_data): Delete la_demangle initializer.
1855 (minimal_language_data): Delete la_demangle initializer.
1856 * d-lang.c (d_language_data): Delete la_demangle initializer.
1857 (d_language::demangle): New member function.
1858 * f-lang.c (f_language_data): Delete la_demangle initializer.
1859 (f_language::demangle): New member function.
1860 * go-lang.c (go_language_data): Delete la_demangle initializer.
1861 (go_language::demangle): New member function.
1862 * language.c (language_demangle): Update.
1863 (unk_lang_demangle): Delete.
1864 (unknown_language_data): Delete la_demangle initializer.
1865 (unknown_language::demangle): New member function.
1866 (auto_language_data): Delete la_demangle initializer.
1867 (auto_language::demangle): New member function.
1868 * language.h (language_data): Delete la_demangle field.
1869 (language_defn::demangle): New function.
1870 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1871 * objc-lang.c (objc_language_data): Delete la_demangle
1872 initializer.
1873 (objc_language::demangle): New member function.
1874 * opencl-lang.c (opencl_language_data): Delete la_demangle
1875 initializer.
1876 * p-lang.c (pascal_language_data): Likewise.
1877 * rust-lang.c (rust_language_data): Likewise.
1878 (rust_language::demangle): New member function.
1879
fbfb0a46
AB
18802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1881
1882 * ada-lang.c (ada_language_data): Delete la_print_type
1883 initializer.
1884 (ada_language::print_type): New member function.
1885 * c-lang.c (c_language_data): Delete la_print_type initializer.
1886 (c_language::print_type): New member function.
1887 (cplus_language_data): Delete la_print_type initializer.
1888 (cplus_language::print_type): New member function.
1889 (asm_language_data): Delete la_print_type initializer.
1890 (asm_language::print_type): New member function.
1891 (minimal_language_data): Delete la_print_type initializer.
1892 (minimal_language::print_type): New member function.
1893 * d-lang.c (d_language_data): Delete la_print_type initializer.
1894 (d_language::print_type): New member function.
1895 * f-lang.c (f_language_data): Delete la_print_type initializer.
1896 (f_language::print_type): New member function.
1897 * go-lang.c (go_language_data): Delete la_print_type initializer.
1898 (go_language::print_type): New member function.
1899 * language.c (unk_lang_print_type): Delete.
1900 (unknown_language_data): Delete la_print_type initializer.
1901 (unknown_language::print_type): New member function.
1902 (auto_language_data): Delete la_print_type initializer.
1903 (auto_language::print_type): New member function.
1904 * language.h (language_data): Delete la_print_type field.
1905 (language_defn::print_type): New function.
1906 (LA_PRINT_TYPE): Update.
1907 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1908 (m2_language::print_type): New member function.
1909 * objc-lang.c (objc_language_data): Delete la_print_type
1910 initializer.
1911 (objc_language::print_type): New member function.
1912 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1913 to opencl_language::print_type.
1914 (opencl_language_data): Delete la_print_type initializer.
1915 (opencl_language::print_type): New member function, implementation
1916 from opencl_print_type.
1917 * p-lang.c (pascal_language_data): Delete la_print_type
1918 initializer.
1919 (pascal_language::print_type): New member function.
1920 * rust-lang.c (rust_print_type): Delete, implementation moved to
1921 rust_language::print_type.
1922 (rust_language_data): Delete la_print_type initializer.
1923 (rust_language::print_type): New member function, implementation
1924 from rust_print_type.
1925
6f827019
AB
19262020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1927
1928 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1929 implementation moves to...
1930 (ada_language::sniff_from_mangled_name): ...here. Update return
1931 type.
1932 (ada_language_data): Delete la_sniff_from_mangled_name
1933 initializer.
1934 * c-lang.c (c_language_data): Likewise.
1935 (cplus_language_data): Likewise.
1936 (cplus_language::sniff_from_mangled_name): New member function,
1937 implementation taken from gdb_sniff_from_mangled_name.
1938 (asm_language_data): Delete la_sniff_from_mangled_name
1939 initializer.
1940 (minimal_language_data): Likewise.
1941 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1942 implementation moves to cplus_language::sniff_from_mangled_name.
1943 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1944 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1945 moves to...
1946 (d_language::sniff_from_mangled_name): ...here.
1947 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1948 * f-lang.c (f_language_data): Likewise.
1949 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1950 moves to...
1951 (go_language::sniff_from_mangled_name): ...here.
1952 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1953 * language.c (language_sniff_from_mangled_name): Delete.
1954 (unknown_language_data): Delete la_sniff_from_mangled_name
1955 initializer.
1956 (auto_language_data): Likewise.
1957 * language.h (language_data): Delete la_sniff_from_mangled_name
1958 field.
1959 (language_defn::sniff_from_mangled_name): New function.
1960 (language_sniff_from_mangled_name): Delete declaration.
1961 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1962 field.
1963 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1964 implementation moves to...
1965 (objc_language::sniff_from_mangled_name): ...here.
1966 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1967 * opencl-lang.c (opencl_language_data): Likewise.
1968 * p-lang.c (pascal_language_data): Likewise.
1969 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1970 implementation moves to...
1971 (rust_language::sniff_from_mangled_name): ...here.
1972 (rust_language_data): Delete la_sniff_from_mangled_name
1973 initializer.
1974 * symtab.c (symbol_find_demangled_name): Call
1975 sniff_from_mangled_name member function.
1976
fb8006fd
AB
19772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1978
1979 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1980 initializer.
1981 * c-lang.c (c_language_data): Likewise.
1982 (cplus_language_data): Likewise.
1983 (cplus_language::search_name_hash): New member function.
1984 (asm_language_data): Delete la_search_name_hash initializer.
1985 (minimal_language_data): Likewise.
1986 * d-lang.c (d_language_data): Likewise.
1987 * dictionary.c (default_search_name_hash): Rename to...
1988 (language_defn::search_name_hash): ...this.
1989 * f-lang.c (f_language_data): Likewise.
1990 (f_language::search_name_hash): New member function.
1991 * go-lang.c (go_language_data): Delete la_search_name_hash
1992 initializer.
1993 * language.c (unknown_language_data): Likewise.
1994 (auto_language_data): Likewise.
1995 * language.h (struct language_data): Delete la_search_name_hash
1996 field.
1997 (language_defn::search_name_hash): Declare new member function.
1998 (default_search_name_hash): Delete declaration.
1999 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2000 initializer.
2001 * objc-lang.c (objc_language_data): Likewise.
2002 * opencl-lang.c (opencl_language_data): Likewise.
2003 * p-lang.c (pascal_language_data): Likewise.
2004 * rust-lang.c (rust_language_data): Likewise.
2005 * symtab.c (search_name_hash): Update call.
2006
8e25bafe
AB
20072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2008
2009 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2010 initializer.
2011 * c-lang.c (class compile_instance): Declare.
2012 (c_language_data): Delete la_get_compile_instance initializer.
2013 (c_language::get_compile_instance): New member function.
2014 (cplus_language_data): Delete la_get_compile_instance initializer.
2015 (cplus_language::get_compile_instance): New member function.
2016 (asm_language_data): Delete la_get_compile_instance initializer.
2017 (minimal_language_data): Likewise.
2018 * c-lang.h (c_get_compile_context): Update comment.
2019 (cplus_get_compile_context): Update comment.
2020 * compile/compile.c (compile_to_object): Update calls, don't rely
2021 on function pointer being NULL.
2022 * d-lang.c (d_language_data): Delete la_get_compile_instance
2023 initializer.
2024 * f-lang.c (f_language_data): Likewise.
2025 * go-lang.c (go_language_data): Likewise.
2026 * language.c (unknown_language_data): Likewise.
2027 (auto_language_data): Likewise.
2028 * language.h (language_data): Delete la_get_compile_instance field.
2029 (language_defn::get_compile_instance): New member function.
2030 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2031 initializer.
2032 * objc-lang.c (objc_language_data): Likewise.
2033 * opencl-lang.c (opencl_language_data): Likewise.
2034 * p-lang.c (pascal_language_data): Likewise.
2035 * rust-lang.c (rust_language_data): Likewise.
2036
4009ee92
AB
20372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2038
2039 * ada-lang.c (ada_add_all_symbols): Update comment.
2040 (ada_iterate_over_symbols): Delete, move implementation to...
2041 (ada_language::iterate_over_symbols): ...here, a new member
2042 function, rewrite to use range based for loop.
2043 (ada_language_data): Delete la_iterate_over_symbols initializer.
2044 * c-lang.c (c_language_data): Likewise.
2045 (cplus_language_data): Likewise.
2046 (asm_language_data): Likewise.
2047 (minimal_language_data): Likewise.
2048 * d-lang.c (d_language_data): Likewise.
2049 * f-lang.c (f_language_data): Likewise.
2050 * go-lang.c (go_language_data): Likewise.
2051 * language.c (unknown_language_data): Likewise.
2052 (auto_language_data): Likewise.
2053 * language.h (language_data): Delete la_iterate_over_symbols field.
2054 (language_defn::iterate_over_symbols): New member function.
2055 (LA_ITERATE_OVER_SYMBOLS): Update.
2056 * linespec.c (iterate_over_all_matching_symtabs): Update.
2057 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2058 initializer.
2059 * objc-lang.c (objc_language_data): Likewise.
2060 * opencl-lang.c (opencl_language_data): Likewise.
2061 * p-lang.c (pascal_language_data): Likewise.
2062 * rust-lang.c (rust_language_data): Likewise.
2063
54f4ca46
AB
20642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2065
2066 * ada-lang.c (ada_language_data): Delete
2067 la_lookup_transparent_type initializer.
2068 * c-lang.c (c_language_data): Likewise.
2069 (cplus_language_data): Likewise.
2070 (cplus_language::lookup_transparent_type): New member function.
2071 (asm_language_data): Delete la_lookup_transparent_type
2072 initializer.
2073 (minimal_language_data): Likewise.
2074 * d-lang.c (d_language_data): Likewise.
2075 * f-lang.c (f_language_data): Likewise.
2076 * go-lang.c (go_language_data): Likewise.
2077 * language.c (unknown_language_data): Likewise.
2078 (auto_language_data): Likewise.
2079 * language.h (struct language_data): Delete
2080 la_lookup_transparent_type field.
2081 (language_defn::lookup_transparent_type): New member function.
2082 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2083 initializer.
2084 * objc-lang.c (objc_language_data): Likewise.
2085 * opencl-lang.c (opencl_language_data): Likewise.
2086 * p-lang.c (pascal_language_data): Likewise.
2087 * rust-lang.c (rust_language_data): Likewise.
2088 * symtab.c (symbol_matches_domain): Update call.
2089
1fb314aa
AB
20902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2091
2092 * ada-lang.c (ada_language_arch_info): Delete function, move
2093 implementation to...
2094 (ada_language::language_arch_info): ...here, a new member
2095 function.
2096 (ada_language_data): Delete la_language_arch_info.
2097 * c-lang.c (c_language_data): Likewise.
2098 (c_language::language_arch_info): New member function.
2099 (cplus_language_arch_info): Delete function, move
2100 implementation to...
2101 (cplus_language::language_arch_info): ...here, a new member
2102 function.
2103 (cplus_language_data): Delete la_language_arch_info.
2104 (asm_language_data): Likewise.
2105 (asm_language::language_arch_info): New member function.
2106 (minimal_language_data): Delete la_language_arch_info.
2107 (minimal_language::language_arch_info): New member function.
2108 * d-lang.c (d_language_arch_info): Delete function, move
2109 implementation to...
2110 (d_language::language_arch_info): ...here, a new member
2111 function.
2112 (d_language_data): Delete la_language_arch_info.
2113 * f-lang.c (f_language_arch_info): Delete function, move
2114 implementation to...
2115 (f_language::language_arch_info): ...here, a new member
2116 function.
2117 (f_language_data): Delete la_language_arch_info.
2118 * go-lang.c (go_language_arch_info): Delete function, move
2119 implementation to...
2120 (go_language::language_arch_info): ...here, a new member
2121 function.
2122 (go_language_data): Delete la_language_arch_info.
2123 * language.c (unknown_language_data): Likewise.
2124 (unknown_language::language_arch_info): New member function.
2125 (auto_language_data): Delete la_language_arch_info.
2126 (auto_language::language_arch_info): New member function.
2127 (language_gdbarch_post_init): Update call to
2128 la_language_arch_info.
2129 * language.h (language_data): Delete la_language_arch_info
2130 function pointer.
2131 (language_defn::language_arch_info): New function.
2132 * m2-lang.c (m2_language_arch_info): Delete function, move
2133 implementation to...
2134 (m2_language::language_arch_info): ...here, a new member
2135 function.
2136 (m2_language_data): Delete la_language_arch_info.
2137 * objc-lang.c (objc_language_arch_info): Delete function, move
2138 implementation to...
2139 (objc_language::language_arch_info): ...here, a new member
2140 function.
2141 (objc_language_data): Delete la_language_arch_info.
2142 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2143 implementation to...
2144 (opencl_language::language_arch_info): ...here, a new member
2145 function.
2146 (opencl_language_data): Delete la_language_arch_info.
2147 * p-lang.c (pascal_language_arch_info): Delete function, move
2148 implementation to...
2149 (pascal_language::language_arch_info): ...here, a new member
2150 function.
2151 (pascal_language_data): Delete la_language_arch_info.
2152 * rust-lang.c (rust_language_arch_info): Delete function, move
2153 implementation to...
2154 (rust_language::language_arch_info): ...here, a new member
2155 function.
2156 (rust_language_data): Delete la_language_arch_info.
2157
48448202
AB
21582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2159
2160 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2161 initializer.
2162 * c-lang.c (c_language_data): Likewise.
2163 (cplus_language_data): Likewise.
2164 (cplus_language::pass_by_reference_info): New method.
2165 (asm_language_data): Delete la_pass_by_reference initializer.
2166 (minimal_language_data): Likewise.
2167 * cp-abi.c (cp_pass_by_reference): Remove use of
2168 default_pass_by_reference.
2169 * d-lang.c (d_language_data): Likewise.
2170 * f-lang.c (f_language_data): Likewise.
2171 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2172 default_pass_by_reference.
2173 * go-lang.c (go_language_data): Likewise.
2174 * language.c (language_pass_by_reference): Update.
2175 (default_pass_by_reference): Delete.
2176 (unknown_language_data): Delete la_pass_by_reference
2177 initializer.
2178 (auto_language_data): Likewise.
2179 * language.h (struct language_data): Delete la_pass_by_reference
2180 field.
2181 (language_defn::pass_by_reference_info): New member function.
2182 (default_pass_by_reference): Delete declaration.
2183 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2184 initializer.
2185 * objc-lang.c (objc_language_data): Likewise.
2186 * opencl-lang.c (opencl_language_data): Likewise.
2187 * p-lang.c (pascal_language_data): Likewise.
2188 * rust-lang.c (rust_language_data): Likewise.
2189
15e5fd35
AB
21902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2191
2192 * ada-lang.c (ada_read_var_value): Delete function, move
2193 implementation to...
2194 (ada_language::read_var_value): ...here.
2195 (ada_language_data): Delete la_read_var_value initializer.
2196 * c-lang.c (c_language_data): Likewise.
2197 (cplus_language_data): Likewise.
2198 (minimal_language_data): Likewise.
2199 * d-lang.c (d_language_data): Likewise.
2200 * f-lang.c (f_language_data): Likewise.
2201 * findvar.c (default_read_var_value): Rename to...
2202 (language_defn::read_var_value): ...this.
2203 * findvar.c (read_var_value): Update header comment, and change to
2204 call member function instead of function pointer.
2205 * go-lang.c (go_language_data): Likewise.
2206 * language.c (unknown_language_data): Delete la_read_var_value
2207 initializer.
2208 (auto_language_data): Likewise.
2209 * language.h (struct language_data): Delete la_read_var_value
2210 field.
2211 (language_defn::read_var_value): New member function.
2212 (default_read_var_value): Delete declaration.
2213 * m2-lang.c (m2_language_data): Delete la_read_var_value
2214 initializer.
2215 * objc-lang.c (objc_language_data): Likewise.
2216 * opencl-lang.c (opencl_language_data): Likewise.
2217 * p-lang.c (pascal_language_data): Likewise.
2218 * rust-lang.c (rust_language_data): Likewise.
2219 * value.h (default_read_var_value): Delete declaration.
2220
5bd40f2a
AB
22212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2222
2223 * ada-lang.c (ada_print_array_index): Delete function, move
2224 implementation to...
2225 (ada_language::print_array_index): ...here.
2226 (ada_language_data): Delete la_print_array_index initializer.
2227 * c-lang.c (c_language_data): Likewise.
2228 (cplus_language_data): Likewise.
2229 (minimal_language_data): Likewise.
2230 * d-lang.c (d_language_data): Likewise.
2231 * f-lang.c (f_language_data): Likewise.
2232 * go-lang.c (go_language_data): Likewise.
2233 * language.c (default_print_array_index): Delete function, move
2234 implementation to...
2235 (language_defn::print_array_index): ...here.
2236 (unknown_language_data): Delete la_print_array_index initializer.
2237 (auto_language_data): Likewise.
2238 * language.h (struct language_data): Delete la_print_array_index
2239 field.
2240 (language_defn::print_array_index): New member function.
2241 (LA_PRINT_ARRAY_INDEX): Update.
2242 (default_print_array_index): Delete declaration.
2243 * m2-lang.c (m2_language_data): Delete la_print_array_index
2244 initializer.
2245 * objc-lang.c (objc_language_data): Likewise.
2246 * opencl-lang.c (opencl_language_data): Likewise.
2247 * p-lang.c (pascal_language_data): Likewise.
2248 * rust-lang.c (rust_language_data): Likewise.
2249
0874fd07
AB
22502020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2251
2252 * gdb/ada-lang.c (ada_language_defn): Convert to...
2253 (ada_language_data): ...this.
2254 (class ada_language): New class.
2255 (ada_language_defn): New static global.
2256 * gdb/c-lang.c (c_language_defn): Convert to...
2257 (c_language_data): ...this.
2258 (class c_language): New class.
2259 (c_language_defn): New static global.
2260 (cplus_language_defn): Convert to...
2261 (cplus_language_data): ...this.
2262 (class cplus_language): New class.
2263 (cplus_language_defn): New static global.
2264 (asm_language_defn): Convert to...
2265 (asm_language_data): ...this.
2266 (class asm_language): New class.
2267 (asm_language_defn): New static global.
2268 (minimal_language_defn): Convert to...
2269 (minimal_language_data): ...this.
2270 (class minimal_language): New class.
2271 (minimal_language_defn): New static global.
2272 * gdb/d-lang.c (d_language_defn): Convert to...
2273 (d_language_data): ...this.
2274 (class d_language): New class.
2275 (d_language_defn): New static global.
2276 * gdb/f-lang.c (f_language_defn): Convert to...
2277 (f_language_data): ...this.
2278 (class f_language): New class.
2279 (f_language_defn): New static global.
2280 * gdb/go-lang.c (go_language_defn): Convert to...
2281 (go_language_data): ...this.
2282 (class go_language): New class.
2283 (go_language_defn): New static global.
2284 * gdb/language.c (unknown_language_defn): Remove declaration.
2285 (current_language): Initialize to nullptr, real initialization is
2286 moved to _initialize_language.
2287 (languages): Delete global.
2288 (language_defn::languages): Define.
2289 (set_language_command): Use language_defn::languages.
2290 (set_language): Likewise.
2291 (range_error): Likewise.
2292 (language_enum): Likewise.
2293 (language_def): Likewise.
2294 (add_set_language_command): Use language_def::languages for the
2295 language list, and language_def to lookup language pointers.
2296 (skip_language_trampoline): Use language_defn::languages.
2297 (unknown_language_defn): Convert to...
2298 (unknown_language_data): ...this.
2299 (class unknown_language): New class.
2300 (unknown_language_defn): New static global.
2301 (auto_language_defn): Convert to...
2302 (auto_language_data): ...this.
2303 (class auto_language): New class.
2304 (auto_language_defn): New static global.
2305 (language_gdbarch_post_init): Use language_defn::languages.
2306 (_initialize_language): Initialize current_language.
2307 * gdb/language.h (struct language_defn): Rename to...
2308 (struct language_data): ...this.
2309 (struct language_defn): New.
2310 (auto_language_defn): Delete.
2311 (unknown_language_defn): Delete.
2312 (minimal_language_defn): Delete.
2313 (ada_language_defn): Delete.
2314 (asm_language_defn): Delete.
2315 (c_language_defn): Delete.
2316 (cplus_language_defn): Delete.
2317 (d_language_defn): Delete.
2318 (f_language_defn): Delete.
2319 (go_language_defn): Delete.
2320 (m2_language_defn): Delete.
2321 (objc_language_defn): Delete.
2322 (opencl_language_defn): Delete.
2323 (pascal_language_defn): Delete.
2324 (rust_language_defn): Delete.
2325 * gdb/m2-lang.c (m2_language_defn): Convert to...
2326 (m2_language_data): ...this.
2327 (class m2_language): New class.
2328 (m2_language_defn): New static global.
2329 * gdb/objc-lang.c (objc_language_defn): Convert to...
2330 (objc_language_data): ...this.
2331 (class objc_language): New class.
2332 (objc_language_defn): New static global.
2333 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2334 (opencl_language_data): ...this.
2335 (class opencl_language): New class.
2336 (opencl_language_defn): New static global.
2337 * gdb/p-lang.c (pascal_language_defn): Convert to...
2338 (pascal_language_data): ...this.
2339 (class pascal_language): New class.
2340 (pascal_language_defn): New static global.
2341 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2342 language pointer, update comment format.
2343 * gdb/rust-lang.c (rust_language_defn): Convert to...
2344 (rust_language_data): ...this.
2345 (class rust_language): New class.
2346 (rust_language_defn): New static global.
2347
1313c56e
AB
23482020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2349
2350 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2351 member variable.
2352 <m_stmt_at_address>: New member variable.
2353 (lnp_state_machine::record_line): Don't record some lines, update
2354 tracking of is_stmt at the same address.
2355 (lnp_state_machine::lnp_state_machine): Initialise new member
2356 variables.
2357
b7ed9f3d
ST
23582020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2359
2360 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2361 "-include gnu-nat-mig.h".
2362 * gnu-nat-mig.h: New file.
2363 * gnu-nat.c: Include "gnu-nat-mig.h".
2364 (exc_server, msg_reply_server, notify_server,
2365 process_reply_server): Remove declarations.
2366
14a8ad62
ST
23672020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2368
2369 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2370 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2371 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2372 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2373 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2374 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2375 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2376 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2377 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2378 to gnu_nat_target class.
2379 * gnu-nat.c: Likewise.
2380 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2381 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2382 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2383 object.
2384 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2385 instead of `gnu_target'.
2386
0af5e106
ST
23872020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2388
2389 * i386-gnu-tdep.c: Include "gdbcore.h"
2390 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2391 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2392 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2393 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2394 i386_gnu_sigcontext_addr): New functions
2395 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2396 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2397 tdep.
2398
078f2fc9
ST
23992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2400
2401 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2402 before fork_inferior call. Avoid calling it if target_is_pushed returns
2403 true.
2404
53dff92c
ST
24052020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2406
2407 * gnu-nat.h (gnu_target): New variable declaration.
2408 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2409 gnu_target.
2410 * gnu-nat.c (gnu_target): New variable.
2411 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2412 add_thread_silent, and add_thread calls.
2413 (gnu_nat_target::create_inferior): Pass gnu_target to
2414 add_thread_silent, thread_change_ptid call.
2415 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2416 call.
2417
5a8b8627
ST
24182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2419
2420 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2421 (gnu_nat_target::find_memory_regions): Remove unused
2422 `old_address' variable.
2423
366f550a
ST
24242020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2425
2426 * gnu-nat.c: Include "gdbarch.h".
2427
f14871bf
ST
24282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2429
2430 * reply_mig_hack.awk (Error return): Cast function through
2431 void *, to bypass compiler function call check.
2432
c6887cfb
ST
24332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2434
2435 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2436 $(srcdir)/reply_mig_hack.awk.
2437
6930bffe
ST
24382020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2439
2440 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2441
112c22ed
JG
24422020-05-30 Jonny Grant <jg@jguk.org>
2443
2444 * configure.ac (ACX_BUGURL): change bug URL to https.
2445
f68f85b5
PA
24462020-05-30 Pedro Alves <palves@redhat.com>
2447
2448 * cp-support.c (replace_typedefs_template): New.
2449 (replace_typedefs_qualified_name): Handle
2450 DEMANGLE_COMPONENT_TEMPLATE.
2451
976ca316
SM
24522020-05-29 Simon Marchi <simon.marchi@efficios.com>
2453
2454 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2455 dwarf2/index-cache.h, dwarf2/index-write.c,
2456 dwarf2/index-write.h, dwarf2/line-header.c,
2457 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2458 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2459 variables and fields from `dwarf2_per_objfile` to just
2460 `per_objfile` throughout.
2461
989ade05
SM
24622020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2463
2464 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2465 <push_dwarf_reg_entry_value>: Add comment.
2466
c47bae85
KB
24672020-05-28 Kevin Buettner <kevinb@redhat.com>
2468 Keith Seitz <keiths@redhat.com>
2469
2470 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2471 instead of PyEval_ReleaseLock.
2472 (class gdbpy_gil): Move to earlier in file.
2473 (finalize_python): Set gdb_python_initialized.
2474 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2475 when not initialized.
2476
44486dcf
SM
24772020-05-28 Simon Marchi <simon.marchi@efficios.com>
2478
2479 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2480 <push_dwarf_reg_entry_value>: Remove assert. Override
2481 per_objfile with caller_per_objfile.
2482
f030440d
TV
24832020-05-28 Tom de Vries <tdevries@suse.de>
2484
2485 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2486 PR gold/15646 workaround to symbol kind "type".
2487
f0fbb768
TT
24882020-05-27 Tom Tromey <tromey@adacore.com>
2489
2490 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2491
af0b2a3e
TT
24922020-05-27 Tom Tromey <tromey@adacore.com>
2493
2494 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2495 Use htab_find_with_hash.
2496 <add_abbrev>: Remove "abbrev_number" parameter.
2497 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2498 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2499 (hash_abbrev): Add comment.
2500 (abbrev_table::lookup_abbrev): Move to header file.
2501 (abbrev_table::read): Update.
2502
7d00ffec
TT
25032020-05-27 Tom Tromey <tromey@adacore.com>
2504
2505 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2506 method.
2507 <canonical_name>: New member.
2508 <raw_name>: Rename from "name".
2509 (partial_die_info): Initialize canonical_name.
2510 (scan_partial_symbols): Check raw_name.
2511 (partial_die_parent_scope, partial_die_full_name)
2512 (add_partial_symbol, add_partial_subprogram)
2513 (add_partial_enumeration, load_partial_dies): Use "name" method.
2514 (partial_die_info::name): New method.
2515 (partial_die_info::read, guess_partial_die_structure_name)
2516 (partial_die_info::fixup): Update.
2517
697bba18
TT
25182020-05-27 Tom Tromey <tromey@adacore.com>
2519
2520 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2521 <get_ref_die_offset>: Inline.
2522 <get_ref_die_offset_complaint>: New method.
2523 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2524 (attribute::get_ref_die_offset_complaint): Rename from
2525 get_ref_die_offset. Just issue complaint.
2526
c17ace43
HD
25272020-05-27 Hannes Domani <ssbssa@yahoo.de>
2528
2529 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2530
96445f0b
HD
25312020-05-27 Hannes Domani <ssbssa@yahoo.de>
2532
2533 * exec.c (exec_file_attach): Use errno value of first openp failure.
2534
ac637ec3
HD
25352020-05-27 Hannes Domani <ssbssa@yahoo.de>
2536
2537 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2538 Don't close thread handle.
2539
17ee85fc
TT
25402020-05-27 Tom Tromey <tom@tromey.com>
2541 Simon Marchi <simon.marchi@efficios.com>
2542
2543 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2544 shared_ptr.
2545 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2546 member.
2547 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2548 dwarf2_per_bfd_objfile_data_key>: New globals.
2549 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2550 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2551 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2552 shared.
2553 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2554 short-circuit when sharing.
2555 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2556 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2557
39b16f87
SM
25582020-05-27 Simon Marchi <simon.marchi@efficios.com>
2559
2560 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2561 to...
2562 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2563 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2564
fcf23d5b
SM
25652020-05-27 Simon Marchi <simon.marchi@efficios.com>
2566
2567 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2568 build_name_components, find_name_components_bounds>:
2569 Add per_objfile parameter.
2570 (struct mapped_index) <symbol_name_at>: Likewise.
2571 (struct mapped_debug_names): Remove constructor.
2572 <dwarf2_per_objfile>: Remove field.
2573 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2574 (mapped_index_base::find_name_components_bounds,
2575 mapped_index_base::build_name_components,
2576 dw2_expand_symtabs_matching_symbol): Likewise.
2577 (class mock_mapped_index) <symbol_name_at>: Likewise.
2578 (check_match): Likewise.
2579 (check_find_bounds_finds): Likewise.
2580 (test_mapped_index_find_name_component_bounds): Update.
2581 (CHECK_MATCH): Update.
2582 (dw2_expand_symtabs_matching): Update.
2583 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2584 per_objfile parameter.
2585 <find_vec_in_debug_names>: Likewise.
2586 <m_per_objfile>: New field.
2587 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2588 parameter.
2589 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2590 (dw2_debug_names_iterator::next): Update.
2591 (dw2_debug_names_lookup_symbol): Update.
2592 (dw2_debug_names_expand_symtabs_for_function): Update.
2593 (dw2_debug_names_map_matching_symbols): Update.
2594 (dw2_debug_names_expand_symtabs_matching): Update.
2595 (dwarf2_read_debug_names): Update.
2596
7188ed02
SM
25972020-05-27 Simon Marchi <simon.marchi@efficios.com>
2598
2599 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2600 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2601 move to dwarf2_per_objfile.
2602 <read_in_chain>: Remove.
2603 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2604 remove_all_cus, age_comp_units>: New methods.
2605 <m_dwarf2_cus>: New member.
2606 (struct dwarf2_per_cu_data) <cu>: Remove.
2607 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2608 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2609 moved to methods of dwarf2_per_objfile.
2610 (dwarf2_clear_marks): Remove.
2611 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2612 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2613 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2614 (dwarf2_per_objfile::remove_all_cus): New.
2615 (class free_cached_comp_units) <~free_cached_comp_units>:
2616 Update.
2617 (load_cu): Update.
2618 (dw2_do_instantiate_symtab): Adjust.
2619 (fill_in_sig_entry_from_dwo_entry): Adjust.
2620 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2621 (cutu_reader::cutu_reader): Likewise.
2622 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2623 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2624 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2625 and dwarf2_per_objfile::age_comp_units.
2626 (load_partial_comp_unit): Update.
2627 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2628 (process_queue): Likewise.
2629 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2630 backlink.
2631 (dwarf2_read_addr_index): Likewise.
2632 (follow_die_offset): Likewise.
2633 (dwarf2_fetch_die_loc_sect_off): Likewise.
2634 (dwarf2_fetch_constant_bytes): Likewise.
2635 (dwarf2_fetch_die_type_sect_off): Likewise.
2636 (follow_die_sig_1): Likewise.
2637 (load_full_type_unit): Likewise.
2638 (read_signatured_type): Likewise.
2639 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2640 (dwarf2_cu::~dwarf2_cu): Remove.
2641 (dwarf2_per_objfile::get_cu): New.
2642 (dwarf2_per_objfile::set_cu): New.
2643 (age_cached_comp_units): Rename to...
2644 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2645 to std::unordered_map.
2646 (free_one_cached_comp_unit): Rename to...
2647 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2648 to std::unordered_map.
2649 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2650 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2651 a dwarf2_per_objfile in data.
2652 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2653 (dwarf2_clear_marks): Remove.
2654
2e671100
SM
26552020-05-27 Simon Marchi <simon.marchi@efficios.com>
2656
2657 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2658 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2659 (init_tu_and_read_dwo_dies): Likewise.
2660 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2661 (cutu_reader::cutu_reader): Likewise.
2662 (load_partial_comp_unit): Likewise.
2663 (process_psymtab_comp_unit): Update.
2664 (build_type_psymtabs_1): Update.
2665 (process_skeletonless_type_unit): Update.
2666 (load_full_comp_unit): Update.
2667 (find_partial_die): Update.
2668 (dwarf2_read_addr_index): Update.
2669 (read_signatured_type): Update.
2670
2e6a9f79
SM
26712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2672
2673 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2674 m_header_read_in>: New fields.
2675 <get_header>: New method.
2676 * dwarf2/read.c (per_cu_header_read_in): Remove.
2677 (dwarf2_per_cu_data::get_header): New.
2678 (dwarf2_per_cu_data::addr_size): Update.
2679 (dwarf2_per_cu_data::offset_size): Update.
2680 (dwarf2_per_cu_data::ref_addr_size): Update.
2681
1b555f17
SM
26822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2683
2684 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2685 (dw2_do_instantiate_symtab): Update.
2686 (queue_and_load_all_dwo_tus): Change parameter from
2687 dwarf2_per_cu_data to dwarf2_cu.
2688 (dwarf2_fetch_die_loc_sect_off): Update.
2689 (dwarf2_fetch_constant_bytes): Update.
2690 (dwarf2_fetch_die_type_sect_off): Update.
2691
8fc0b21d
SM
26922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2693
2694 * dwarf2/read.c (process_full_comp_unit,
2695 process_full_type_unit): Remove per_cu, per_objfile paramters.
2696 Add dwarf2_cu parameter.
2697 (process_queue): Update.
2698
168c9250
SM
26992020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2700
2701 * dwarf2/read.c (create_cu_from_index_list): Replace
2702 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2703 (create_cus_from_index_list): Likewise.
2704 (create_cus_from_index): Likewise.
2705 (create_signatured_type_table_from_index): Likewise.
2706 (create_cus_from_debug_names_list): Likewise.
2707 (create_cus_from_debug_names): Likewise.
2708 (dwarf2_read_gdb_index): Update.
2709 (dwarf2_read_debug_names): Update.
2710
e286671b
TT
27112020-05-27 Tom Tromey <tom@tromey.com>
2712 Simon Marchi <simon.marchi@efficios.com>
2713
2714 * dwarf2/read.h (struct dwarf2_per_objfile)
2715 <get_type_for_signatured_type, set_type_for_signatured_type>:
2716 New methods.
2717 <m_type_map>: New member.
2718 (struct signatured_type) <type>: Remove.
2719 * dwarf2/read.c
2720 (dwarf2_per_objfile::get_type_for_signatured_type,
2721 dwarf2_per_objfile::set_type_for_signatured_type): New.
2722 (get_signatured_type): Use new methods.
2723
8adb8487
TT
27242020-05-27 Tom Tromey <tom@tromey.com>
2725 Simon Marchi <simon.marchi@efficios.com>
2726
2727 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2728 (struct dwarf2_per_objfile) <type_units>: New member.
2729 <get_type_unit_group_unshareable>: New method.
2730 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2731 num_symtabs, symtabs>: Remove; move to
2732 type_unit_group_unshareable.
2733 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2734 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2735 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2736
127bbf4b
SM
27372020-05-27 Simon Marchi <simon.marchi@efficios.com>
2738
2739 * dwarf2/read.h (struct dwarf2_per_cu_data):
2740 <dwarf2_per_objfile>: Remove.
2741 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2742 dwarf2_per_objfile.
2743 (create_signatured_type_table_from_index): Likewise.
2744 (create_signatured_type_table_from_debug_names): Likewise.
2745 (create_debug_type_hash_table): Likewise.
2746 (fill_in_sig_entry_from_dwo_entry): Likewise.
2747 (create_type_unit_group): Likewise.
2748 (read_comp_units_from_section): Likewise.
2749 (create_cus_hash_table): Likewise.
2750
f6e649dd
SM
27512020-05-27 Simon Marchi <simon.marchi@efficios.com>
2752
2753 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2754 dwarf2_per_cu_data::dwarf2_per_objfile.
2755 (compute_compunit_symtab_includes): Likewise.
2756 (dwarf2_cu::start_symtab): Likewise.
2757
aa66c379
SM
27582020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2759
2760 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2761 parameter.
2762 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2763 (read_namespace_alias): Update.
2764 (lookup_die_type): Update.
2765 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2766 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2767 Update.
2768 (disassemble_dwarf_expression): Update.
2769
120ce1b5
SM
27702020-05-27 Simon Marchi <simon.marchi@efficios.com>
2771
2772 * dwarf2/read.h (struct dwarf2_queue_item): Add
2773 dwarf2_per_objfile parameter, assign new parameter.
2774 <per_objfile>: New field.
2775 * dwarf2/read.c (free_one_cached_comp_unit): Add
2776 dwarf2_per_objfile parameter.
2777 (queue_comp_unit): Likewise.
2778 (dw2_do_instantiate_symtab): Update.
2779 (process_psymtab_comp_unit): Update.
2780 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2781 (process_imported_unit_die): Update.
2782 (queue_and_load_dwo_tu): Update.
2783 (follow_die_offset): Update.
2784 (follow_die_sig_1): Update.
2785
9f47c707
SM
27862020-05-27 Simon Marchi <simon.marchi@efficios.com>
2787
2788 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2789 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2790 (read_call_site_scope): Assign per_objfile.
2791 (dwarf2_per_cu_data::objfile): Remove.
2792 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2793 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2794 dwarf2_per_objfile parameter.
2795 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2796 dwarf2_per_objfile parameter.
2797 (dwarf_expr_reg_to_entry_parameter): Add output
2798 dwarf2_per_objfile parameter.
2799 (locexpr_get_frame_base): Update.
2800 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2801 <push_dwarf_reg_entry_value>: Update.
2802 <call_site_to_target_addr>: Update.
2803 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2804 parameter.
2805 (value_of_dwarf_reg_entry): Update.
2806 (rw_pieced_value): Update.
2807 (indirect_synthetic_pointer): Update.
2808 (dwarf2_evaluate_property): Update.
2809 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2810 parameter.
2811 (locexpr_read_variable): Update.
2812 (locexpr_get_symbol_read_needs): Update.
2813 (loclist_read_variable): Update.
2814
14095eb3
SM
28152020-05-27 Simon Marchi <simon.marchi@efficios.com>
2816
2817 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2818 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2819 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2820 parameter.
2821 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2822 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2823 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2824 parameter.
2825 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2826 sect_variable_value): Add dwarf2_per_objfile parameter.
2827 (class dwarf_evaluate_loc_desc) <dwarf_call,
2828 dwarf_variable_value>: Update.
2829 (fetch_const_value_from_synthetic_pointer): Add
2830 dwarf2_per_objfile parameter.
2831 (fetch_const_value_from_synthetic_pointer): Update.
2832 (coerced_pieced_ref): Update.
2833 (class symbol_needs_eval_context) <dwarf_call,
2834 dwarf_variable_value>: Update.
2835 (dwarf2_compile_expr_to_ax): Update.
2836
3c3cd3d4
SM
28372020-05-27 Simon Marchi <simon.marchi@efficios.com>
2838
2839 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2840 parameter.
2841 (dwarf2_evaluate_loc_desc_full): Update.
2842
82ca3f51
SM
28432020-05-27 Simon Marchi <simon.marchi@efficios.com>
2844
2845 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2846 parameter.
2847 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2848 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2849 dwarf2_per_objfile parameter.
2850 (decode_debug_loc_dwo_addresses): Likewise.
2851 (dwarf2_find_location_expression): Update.
2852 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2853 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2854 parameter.
2855 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2856 parameter.
2857 (locexpr_describe_location_1): Likewise.
2858 (locexpr_describe_location): Update.
2859
4b167ea1
SM
28602020-05-27 Simon Marchi <simon.marchi@efficios.com>
2861
2862 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2863 Remove.
2864 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2865 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2866 (dwarf2_compile_property_to_c): Update.
2867 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2868 use text offset from objfile.
2869 (locexpr_tracepoint_var_ref): Update.
2870 (locexpr_generate_c_location): Update.
2871 (loclist_describe_location): Update.
2872 (loclist_tracepoint_var_ref): Update.
2873 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2874 dwarf2_per_objfile parameter.
2875 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2876 use text offset from objfile.
2877 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2878
89b07335
SM
28792020-05-27 Simon Marchi <simon.marchi@efficios.com>
2880
2881 * dwarf2/expr.h (struct dwarf_expr_context)
2882 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2883 <offset>: Remove.
2884 <per_objfile>: New member.
2885 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2886 dwarf2_per_objfile parameter. Don't set offset, set
2887 per_objfile.
2888 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2889 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2890 a dwarf2_per_objfile object instead of an offset.
2891 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2892 constructor.
2893 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2894 to dwarf2_expr_executor constructor. Don't set offset.
2895 (dwarf2_fetch_cfa_info): Update.
2896 (struct dwarf2_frame_cache) <text_offset>: Remove.
2897 <per_objfile>: New field.
2898 (dwarf2_frame_cache): Update.
2899 (dwarf2_frame_prev_register): Update.
2900 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2901 <dwarf_evaluate_loc_desc>: Add constructor.
2902 (dwarf2_evaluate_loc_desc_full): Update.
2903 (dwarf2_locexpr_baton_eval): Update.
2904 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2905 Add constructor.
2906 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2907
293e7e51
SM
29082020-05-27 Simon Marchi <simon.marchi@efficios.com>
2909
2910 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2911 addr_sized_int_type>: Move to dwarf2_cu.
2912 <int_type>: Move to dwarf2_per_objfile.
2913 (struct dwarf2_per_objfile) <int_type>: Move here.
2914 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2915 addr_sized_int_type>: Move here.
2916 (read_func_scope): Update.
2917 (read_array_type): Update.
2918 (read_tag_string_type): Update.
2919 (attr_to_dynamic_prop): Update.
2920 (dwarf2_per_cu_data::int_type): Rename to...
2921 (dwarf2_per_objfile::int_type): ... this.
2922 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2923 (dwarf2_cu::addr_sized_int_type): ... this.
2924 (read_subrange_type): Update.
2925 (dwarf2_per_cu_data::addr_type): Rename to...
2926 (dwarf2_cu::addr_type): ... this.
2927 (set_die_type): Update.
2928
64874a40
SM
29292020-05-27 Simon Marchi <simon.marchi@efficios.com>
2930
2931 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2932 data through per_cu->cu.
2933
4ab09049
SM
29342020-05-27 Simon Marchi <simon.marchi@efficios.com>
2935
2936 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2937 dwarf2_per_cu_data parameter fo dwarf2_cu.
2938 (lookup_dwo_type_unit): Likewise.
2939 (read_cutu_die_from_dwo): Likewise.
2940 (lookup_dwo_unit): Likewise.
2941 (open_and_init_dwo_file): Likewise.
2942 (lookup_dwo_cutu): Likewise.
2943 (lookup_dwo_comp_unit): Likewise.
2944 (lookup_dwo_type_unit): Likewise.
2945 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2946 (cutu_reader::cutu_reader): Update.
2947
47b14e86
SM
29482020-05-27 Simon Marchi <simon.marchi@efficios.com>
2949
2950 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2951 parameter.
2952 (process_full_type_unit): Likewise.
2953 (process_queue): Update.
2954
43182c09
SM
29552020-05-27 Simon Marchi <simon.marchi@efficios.com>
2956
2957 * dwarf2/read.c (recursively_compute_inclusions): Add
2958 dwarf2_per_objfile parameter.
2959 (compute_compunit_symtab_includes): Likewise.
2960 (process_cu_includes): Update.
2961
7aa104c4
SM
29622020-05-27 Simon Marchi <simon.marchi@efficios.com>
2963
2964 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2965 parameter.
2966 (create_type_unit_group): Update.
2967 (process_psymtab_comp_unit_reader): Update.
2968 (build_type_psymtabs_reader): Update.
2969
e3beb21d
SM
29702020-05-27 Simon Marchi <simon.marchi@efficios.com>
2971
2972 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2973 object through m_this_cu->cu.
2974
d460f660
SM
29752020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2976
2977 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2978 the info parameter.
2979 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2980
ab432490
SM
29812020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2982
2983 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2984 per_objfile parameter.
2985 (load_full_type_unit): Add per_objfile parameter.
2986 (read_signatured_type): Likewise.
2987 (load_full_comp_unit): Likewise.
2988 (load_cu): Likewise.
2989 (dw2_do_instantiate_symtab): Likewise.
2990 (dw2_get_file_names): Likewise.
2991 (dw2_map_symtabs_matching_filename): Update.
2992 (dw_expand_symtabs_matching_file_matcher): Update.
2993 (dw2_map_symbol_filenames): Update.
2994 (process_psymtab_comp_unit): Add per_objfile parameter.
2995 (build_type_psymtabs_1): Update.
2996 (process_skeletonless_type_unit): Update.
2997 (dwarf2_build_psymtabs_hard): Update.
2998 (load_partial_comp_unit): Add per_objfile parameter.
2999 (scan_partial_symbols): Update.
3000 (load_full_comp_unit): Add per_objfile parameter.
3001 (process_imported_unit_die): Update.
3002 (create_cus_hash_table): Update.
3003 (find_partial_die): Update.
3004 (dwarf2_read_addr_index): Update.
3005 (follow_die_offset): Update.
3006 (dwarf2_fetch_die_loc_sect_off): Update.
3007 (dwarf2_fetch_constant_bytes): Update.
3008 (dwarf2_fetch_die_type_sect_off): Update.
3009 (follow_die_sig_1): Update.
3010 (load_full_type_unit): Add per_objfile parameter.
3011 (read_signatured_type): Likewise.
3012
313bad1b
SM
30132020-05-27 Simon Marchi <simon.marchi@efficios.com>
3014
3015 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3016 of objfile_name.
3017
c3699833
SM
30182020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3019
3020 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3021 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3022 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3023 field.
3024 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3025 (create_cus_from_index): Update.
3026 (dwarf2_read_gdb_index): Update.
3027 (create_cus_from_debug_names): Update.
3028 (dwarf2_read_debug_names): Update.
3029 (get_abbrev_section_for_cu): Update.
3030 (create_all_comp_units): Update.
3031 (read_attribute_value): Update.
3032 (get_debug_line_section): Update.
3033 * dwarf2/index-cache.c (index_cache::store): Update.
3034 * dwarf2/index-write.c (save_gdb_index_command): Update.
3035 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3036
1859c670
SM
30372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3038
3039 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3040 member.
3041 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3042 dwarf2_per_cu_data::per_bfd.
3043 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3044 (create_type_unit_group): Likewise.
3045 (queue_comp_unit): Remove reference to
3046 per_cu->dwarf2_per_objfile.
3047 (maybe_queue_comp_unit): Likewise.
3048 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3049 (create_cus_hash_table): Assign new field.
3050
5e22e966
SM
30512020-05-27 Simon Marchi <simon.marchi@efficios.com>
3052
3053 * dwarf2/read.c: Replace
3054 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3055 dwarf2_cu->per_objfile throughout.
3056
97a1449a
SM
30572020-05-27 Simon Marchi <simon.marchi@efficios.com>
3058
3059 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3060 parameter, don't use per_cu->dwarf2_per_objfile.
3061 (dw2_instantiate_symtab): Likewise.
3062 (dw2_find_last_source_symtab): Update.
3063 (dw2_map_expand_apply): Update.
3064 (dw2_lookup_symbol): Update.
3065 (dw2_expand_symtabs_for_function): Update.
3066 (dw2_expand_all_symtabs): Update.
3067 (dw2_expand_symtabs_with_fullname): Update.
3068 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3069 don't use per_cu->dwarf2_per_objfile.
3070 (dw2_expand_marked_cus): Update.
3071 (dw2_find_pc_sect_compunit_symtab): Update.
3072 (dw2_debug_names_lookup_symbol): Update.
3073 (dw2_debug_names_expand_symtabs_for_function): Update.
3074 (dw2_debug_names_map_matching_symbols): Update.
3075 (dwarf2_psymtab::expand_psymtab): Update.
3076
9e021579
SM
30772020-05-27 Simon Marchi <simon.marchi@efficios.com>
3078
3079 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3080 <per_objfile>: New member.
3081 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3082 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3083 call to dwarf2_cu.
3084 (cutu_reader::cutu_reader): Update.
3085 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3086
ae090bdb
SM
30872020-05-27 Simon Marchi <simon.marchi@efficios.com>
3088
3089 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3090 struct dwarf2_per_objfile.
3091 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3092 dwarf2_per_bfd.
3093 * dwarf2/read.c (set_die_type): Update.
3094 (get_die_type_at_offset): Update.
3095
af758d11
SM
30962020-05-27 Tom Tromey <tom@tromey.com>
3097 Simon Marchi <simon.marchi@efficios.com>
3098
3099 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3100 method.
3101 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3102 get_symtab, set_symtab>: New methods.
3103 <m_symtabs>: New field.
3104 (struct dwarf2_psymtab): Derive from partial_symtab.
3105 <readin_p, get_compunit_symtab>: Declare methods.
3106 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3107 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3108 New methods.
3109 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3110 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3111 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3112 (dw2_symtab_iter_next, dw2_print_stats)
3113 (dw2_expand_symtabs_with_fullname)
3114 (dw2_expand_symtabs_matching_one)
3115 (dw_expand_symtabs_matching_file_matcher)
3116 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3117 (dw2_debug_names_iterator::next)
3118 (dw2_debug_names_map_matching_symbols)
3119 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3120 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3121 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3122 New methods.
3123 (get_compunit_symtab, process_full_comp_unit)
3124 (process_full_type_unit): Update.
3125 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3126
5989a64e
SM
31272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3128
3129 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3130 then introduce a new dwarf2_per_objfile type.
3131 <read_line_string>: Move to the new dwarf2_per_objfile type.
3132 <objfile>: Likewise.
3133 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3134 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3135 dwarf2_per_objfile->per_bfd.
3136 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3137 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3138 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3139 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3140 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3141 (dwarf2_per_objfile::locate_sections): Rename to...
3142 (dwarf2_per_bfd::locate_sections): ... this.
3143 (dwarf2_per_objfile::get_cutu): Rename to...
3144 (dwarf2_per_bfd::get_cutu): ... this.
3145 (dwarf2_per_objfile::get_cu): Rename to...
3146 (dwarf2_per_bfd::get_cu): ... this.
3147 (dwarf2_per_objfile::get_tu): Rename to...
3148 (dwarf2_per_bfd::get_tu): ... this.
3149 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3150 (dwarf2_per_bfd::allocate_per_cu): ... this.
3151 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3152 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3153 (get_gdb_index_contents_ftype): Change parameter from
3154 dwarf2_per_objfile to dwarf2_per_bfd.
3155 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3156 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3157
a50264ba
TT
31582020-05-27 Tom Tromey <tom@tromey.com>
3159 Simon Marchi <simon.marchi@efficios.com>
3160
3161 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3162 (allocate_piece_closure): Set "per_objfile" member.
3163 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3164 (locexpr_describe_location, loclist_describe_location): Use new
3165 member.
3166 * dwarf2/read.c (read_call_site_scope)
3167 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3168 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3169 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3170 handle_data_member_location): Set per_objfile member.
3171 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3172 member.
3173 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3174
d3473f0c
TT
31752020-05-27 Tom Tromey <tom@tromey.com>
3176
3177 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3178 allocate_signatured_type>: Declare new methods.
3179 <m_num_psymtabs>: New member.
3180 (struct dwarf2_per_cu_data) <index>: New member.
3181 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3182 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3183 (create_cu_from_index_list): Use allocate_per_cu.
3184 (create_signatured_type_table_from_index)
3185 (create_signatured_type_table_from_debug_names)
3186 (create_debug_type_hash_table, add_type_unit)
3187 (read_comp_units_from_section): Use allocate_signatured_type.
3188
5717c425
TT
31892020-05-27 Tom Tromey <tom@tromey.com>
3190
3191 * psymtab.c (partial_map_expand_apply)
3192 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3193 (psym_lookup_global_symbol_language)
3194 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3195 (psym_print_stats, psym_expand_symtabs_for_function)
3196 (psym_map_symbol_filenames, psym_map_matching_symbols)
3197 (psym_expand_symtabs_matching)
3198 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3199 (maintenance_check_psymtabs): Update.
3200 * psympriv.h (struct partial_symtab) <readin_p,
3201 get_compunit_symtab>: Add objfile parameter.
3202 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3203 Likewise.
3204 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3205 get_compunit_symtab>: Likewise.
3206 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3207
45940949
TT
32082020-05-27 Tom Tromey <tom@tromey.com>
3209
3210 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3211 member.
3212 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3213 (create_cu_from_index_list)
3214 (create_signatured_type_table_from_index)
3215 (create_signatured_type_table_from_debug_names)
3216 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3217 (dwarf2_create_include_psymtab)
3218 (create_debug_type_hash_table, add_type_unit)
3219 (create_type_unit_group, read_comp_units_from_section)
3220 (dwarf2_compute_name, create_cus_hash_table)
3221 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3222 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3223 obstack.
3224 (dw2_get_real_path): Likewise. Change argument to
3225 dwarf2_per_objfile.
3226
f8c6d152
LM
32272020-05-27 Luis Machado <luis.machado@linaro.org>
3228
3229 PR tdep/26000
3230 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3231 for ldrd (immediate).
3232
e98d2e6d
PW
32332020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3234
3235 * command.h: Add comment giving the name of class_tui.
3236 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3237 create the fake command for the help for class_tui.
3238
53a47a3e
TT
32392020-05-26 Tom Tromey <tromey@adacore.com>
3240
3241 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3242 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3243 (val_atr): New function.
3244 (value_val_atr): Use it.
3245 * ada-valprint.c (print_optional_low_bound): Change low bound
3246 handling for enums.
3247 (val_print_packed_array_elements): Don't call discrete_position.
3248 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3249 discrete_position for enum types.
3250 * language.c (default_print_array_index): Change type.
3251 * language.h (struct language_defn) <la_print_array_index>: Add
3252 index_type parameter, change type of index_value.
3253 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3254 (default_print_array_index): Update.
3255 * valprint.c (maybe_print_array_index): Don't call
3256 value_from_longest. Update.
3257 (value_print_array_elements): Don't call discrete_position.
3258
0bc2354b
TT
32592020-05-26 Tom Tromey <tromey@adacore.com>
3260
3261 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3262 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3263
1218a4bf
CDA
32642020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3265
3266 PR gdb/13519
3267 * avr-tdep.c (avr_integer_to_address): Return data or code
3268 address accordingly to the second 'type' argument of the
3269 function.
3270
92651b1d
MW
32712020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3272
3273 * infcmd.c, inferior.h: (construct_inferior_arguments):
3274 Moved function from here to gdbsupport/common-inferior.{h,cc}
3275
0a4f5f8c
TT
32762020-05-23 Tom Tromey <tom@tromey.com>
3277
3278 Revert commit eca1f90c:
3279 * NEWS: Remove entry for completion styling.
3280 * completer.c (_rl_completion_prefix_display_length): Move
3281 declaration later.
3282 (gdb_fnprint): Revert.
3283 (gdb_display_match_list_1): Likewise.
3284 * cli/cli-style.c (completion_prefix_style)
3285 (completion_difference_style, completion_suffix_style): Remove.
3286 (_initialize_cli_style): Revert.
3287 * cli/cli-style.h (completion_prefix_style)
3288 (completion_difference_style, completion_suffix_style): Don't
3289 declare.
3290
e08bd6c5
PA
32912020-05-24 Pedro Alves <palves@redhat.com>
3292
3293 * symtab.c (completion_list_add_name): Return boolean indication
3294 of whether the symbol matched.
3295 (completion_list_add_symbol): Don't try to remove C++ aliases if
3296 the symbol didn't match in the first place.
3297 * symtab.h (completion_list_add_name): Return bool.
3298
ceacbf6e
SM
32992020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3300
3301 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3302 type::field.
3303
26f16254
JB
33042020-05-23 Joel Brobecker <brobecker@adacore.com>
3305
3306 GDB 9.2 released.
3307
eca1f90c
TT
33082020-05-23 Tom Tromey <tom@tromey.com>
3309
3310 * NEWS: Add entry for completion styling.
3311 * completer.c (_rl_completion_prefix_display_length): Move
3312 declaration earlier.
3313 (gdb_fnprint): Use completion_style.
3314 (gdb_display_match_list_1): Likewise.
3315 * cli/cli-style.c (completion_prefix_style)
3316 (completion_difference_style, completion_suffix_style): New
3317 globals.
3318 (_initialize_cli_style): Register new globals.
3319 * cli/cli-style.h (completion_prefix_style)
3320 (completion_difference_style, completion_suffix_style): Declare.
3321
51e2cfa2
PA
33222020-05-23 Pedro Alves <palves@redhat.com>
3323
3324 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3325 (parse_escape): Use ISDIGIT instead of isdigit.
3326 (puts_debug): Use gdb_isprint instead of isprint.
3327 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3328 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3329 ISSPACE instead of isspace.
3330 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3331 instead of isspace.
3332 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3333 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3334 instead of isxdigit and ISDIGIT instead of isdigit.
3335
80fc5e77
SM
33362020-05-22 Simon Marchi <simon.marchi@efficios.com>
3337
3338 * gdbtypes.h (struct type) <field>: New method.
3339 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3340 or type::field.
3341
3cabb6b0
SM
33422020-05-22 Simon Marchi <simon.marchi@efficios.com>
3343
3344 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3345 (TYPE_FIELDS): Use type::fields. Change all call sites that
3346 modify the propery to use type::set_fields instead.
3347
1f704f76
SM
33482020-05-22 Simon Marchi <simon.marchi@efficios.com>
3349
3350 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3351 type::num_fields instead.
3352
5e33d5f4
SM
33532020-05-22 Simon Marchi <simon.marchi@efficios.com>
3354
3355 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3356 methods.
3357 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3358 that modify the number of fields to use type::set_num_fields
3359 instead.
3360
9392ebb3
TT
33612020-05-22 Tom Tromey <tromey@adacore.com>
3362
3363 * compile/compile-object-load.h (munmap_list_free): Don't
3364 declare.
3365
7c13f4e8
AB
33662020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3367
3368 * annotate.c (annotate_source_line): Update return type, add call
3369 to update current symtab and line.
3370 * annotate.h (annotate_source_line): Update return type, and
3371 extend header comment.
3372 * source.c (info_line_command): Check annotation_level before
3373 calling annotate_source_line.
3374 * stack.c (print_frame_info): If calling annotate_source_line
3375 returns true, then don't print any other source line information.
3376
aa370940
SM
33772020-05-21 Simon Marchi <simon.marchi@efficios.com>
3378
3379 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3380
84d53fa9
SM
33812020-05-21 Simon Marchi <simon.marchi@efficios.com>
3382
3383 * coffread.c (patch_type): Remove NULL check before xfree.
3384 * corefile.c (set_gnutarget): Likewise.
3385 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3386 * exec.c (build_section_table): Likewise.
3387 * remote.c (remote_target::pass_signals): Likewise.
3388 * utils.c (n_spaces): Likewise.
3389 * cli/cli-script.c (document_command): Likewise.
3390 * i386-windows-tdep.c (core_process_module_section): Likewise.
3391 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3392
9d428aae
SM
33932020-05-20 Simon Marchi <simon.marchi@efficios.com>
3394
3395 * symfile.c (reread_symbols): Clear objfile's section_offsets
3396 vector and section indices, re-compute them by calling
3397 sym_offsets.
3398
250106a7
TT
33992020-05-20 Tom Tromey <tromey@adacore.com>
3400
3401 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3402 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3403
9a0bacfb
TV
34042020-05-20 Tom de Vries <tdevries@suse.de>
3405
3406 PR symtab/25833
3407 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3408
7b958a48
AM
34092020-05-20 Alan Modra <amodra@gmail.com>
3410
3411 PR 25993
3412 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3413 bfd_set_filename.
3414 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3415 passed to bfd_set_filename.
3416 * symfile-mem.c (add_vsyscall_page): Likewise for string
3417 passed to symbol_file_add_from_memory.
3418 (symbol_file_add_from_memory): Make name param a const char* and
3419 don't strdup.
3420
c7e97679
AM
34212020-05-20 Alan Modra <amodra@gmail.com>
3422
3423 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3424 rather than accessing bfd->filename directly.
3425 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3426 and use bfd_section_name.
3427 * dwarf2/frame.c (decode_frame_entry): Likewise.
3428 * exec.c (exec_set_section_address): Likewise.
3429 * solib-aix.c (solib_aix_bfd_open): Likewise.
3430 * stap-probe.c (get_stap_base_address): Likewise.
3431 * symfile.c (reread_symbols): Likewise.
3432
563c591b
TT
34332020-05-19 Tom Tromey <tromey@adacore.com>
3434
3435 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3436
f408d82c
SM
34372020-05-19 Simon Marchi <simon.marchi@efficios.com>
3438
3439 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3440
98c59b52
PA
34412020-05-19 Pedro Alves <palves@redhat.com>
3442
3443 * NEWS (set exec-file-mismatch): Adjust entry.
3444 * exec.c: Include "build-id.h".
3445 (validate_exec_file): Try to match build IDs instead of filenames.
3446 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3447 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3448 and pass down 'warn_if_slow'.
3449 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3450 gdb_bfd_open_closure to pass it down.
3451 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3452
4111f652
PA
34532020-05-19 Pedro Alves <palves@redhat.com>
3454
3455 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3456 * target.c (target_fileio_open_1): Rename to target_fileio_open
3457 and make extern. Use bool.
3458 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3459 (target_fileio_read_alloc_1): Adjust.
3460 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3461 (target_fileio_open_warn_if_slow): Delete declaration.
3462
ad80db5b
PA
34632020-05-19 Pedro Alves <palves@redhat.com>
3464
3465 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3466 Adjust all callers.
3467
1d6ce4d3
YS
34682020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3469
3470 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3471 whether disp is negative.
3472
9005fbbb
SM
34732020-05-19 Simon Marchi <simon.marchi@efficios.com>
3474
3475 * symfile.h (struct symfile_segment_data)
3476 <~symfile_segment_data>: Remove.
3477 <segment_info>: Change to std::vector.
3478 * symfile.c (default_symfile_segments): Update.
3479 * elfread.c (elf_symfile_segments): Update.
3480
68b888ff
SM
34812020-05-19 Simon Marchi <simon.marchi@efficios.com>
3482
3483 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3484 <segments>: New.
3485 <segment_bases, segment_sizes>: Remove.
3486 * symfile.c (default_symfile_segments): Update.
3487 * elfread.c (elf_symfile_segments): Update.
3488 * remote.c (remote_target::get_offsets): Update.
3489 * solib-target.c (solib_target_relocate_section_addresses):
3490 Update.
3491
62982abd
SM
34922020-05-19 Simon Marchi <simon.marchi@efficios.com>
3493
3494 * symfile.h (struct symfile_segment_data): Initialize fields.
3495 <~symfile_segment_data>: Add.
3496 (symfile_segment_data_up): New.
3497 (struct sym_fns) <sym_segments>: Return a
3498 symfile_segment_data_up.
3499 (default_symfile_segments): Return a symfile_segment_data_up.
3500 (free_symfile_segment_data): Remove.
3501 (get_symfile_segment_data): Return a symfile_segment_data_up.
3502 * symfile.c (default_symfile_segments): Likewise.
3503 (get_symfile_segment_data): Likewise.
3504 (free_symfile_segment_data): Remove.
3505 (symfile_find_segment_sections): Update.
3506 * elfread.c (elf_symfile_segments): Return a
3507 symfile_segment_data_up.
3508 * remote.c (remote_target::get_offsets): Update.
3509 * solib-target.c (solib_target_relocate_section_addresses):
3510 Update.
3511 * symfile-debug.c (debug_sym_segments): Return a
3512 symfile_segment_data_up.
3513
7f204339
RO
35142020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3515
e52a0f1b
RO
3516 PR build/25981
3517 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3518 Hardcode register numbers.
3519
7f204339
RO
3520 PR build/25981
3521 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3522 procfs_find_LDT_entry): Remove.
3523 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3524 procfs_find_LDT_entry): Remove.
3525 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3526 Remove.
3527
7f32a4d5
PA
35282020-05-17 Pedro Alves <palves@redhat.com>
3529 Andrew Burgess <andrew.burgess@embecosm.com>
3530 Keno Fischer <keno@juliacomputing.com>
3531
3532 PR gdb/25741
3533 * breakpoint.c (build_target_condition_list): Update comments.
3534 (build_target_command_list): Update comments and skip matching
3535 locations.
3536 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3537 a separate function. Simplify "set breakpoint auto-hw off"
3538 handling.
3539 (insert_breakpoints): Update comment.
3540 (tracepoint_locations_match): New parameter. For breakpoints,
3541 compare location types too, if the caller wants to.
3542 (handle_automatic_hardware_breakpoints): New functions.
3543 (bp_location_is_less_than): Also sort by location type and
3544 hardware breakpoint length.
3545 (update_global_location_list): Handle "set breakpoint auto-hw on"
3546 here.
3547 (update_breakpoint_locations): Ask breakpoint_locations_match to
3548 ignore location types.
3549
7d93a1e0
SM
35502020-05-16 Simon Marchi <simon.marchi@efficios.com>
3551
3552 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3553 type::name instead.
3554
d0e39ea2
SM
35552020-05-16 Simon Marchi <simon.marchi@efficios.com>
3556
3557 * gdbtypes.h (struct type) <name, set_name>: New methods.
3558 (TYPE_CODE): Use type::name. Change all call sites used to set
3559 the name to use type::set_name instead.
3560
2dab0c7b
TT
35612020-05-16 Tom Tromey <tom@tromey.com>
3562
3563 * top.c (quit_force): Update.
3564 * infrun.c (handle_no_resumed): Update.
3565 * top.h (all_uis): New function.
3566 (ALL_UIS): Remove.
3567
59f7bd8d
SM
35682020-05-16 Simon Marchi <simon.marchi@efficios.com>
3569
3570 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3571
9bf058f0
PA
35722020-05-16 Pedro Alves <palves@redhat.com>
3573
3574 * ia64-linux-nat.c
3575 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3576 Declare method.
3577 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3578
8f86ae1a
SM
35792020-05-15 Simon Marchi <simon.marchi@efficios.com>
3580
3581 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3582 (sparc64_adi_info): Likewise.
3583
d6bc0792
TT
35842020-05-15 Tom Tromey <tom@tromey.com>
3585
3586 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3587 block_objfile.
3588 (lookup_objfile_from_block): Remove.
3589 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3590 (lookup_global_symbol): Use block_objfile.
3591 * symtab.h (lookup_objfile_from_block): Don't declare.
3592 * printcmd.c (clear_dangling_display_expressions): Use
3593 block_objfile.
3594 * parse.c (operator_check_standard): Use block_objfile.
3595
8c14c3a3
TT
35962020-05-15 Tom Tromey <tom@tromey.com>
3597
3598 * language.c (language_alloc_type_symbol): Set
3599 SYMBOL_SECTION.
3600 * symtab.c (initialize_objfile_symbol): Remove.
3601 (allocate_symbol): Remove.
3602 (allocate_template_symbol): Remove.
3603 * dwarf2/read.c (fixup_go_packaging): Use "new".
3604 (new_symbol): Use "new".
3605 (read_variable): Don't call initialize_objfile_symbol. Use
3606 "new".
3607 (read_func_scope): Use "new".
3608 * xcoffread.c (process_xcoff_symbol): Don't call
3609 initialize_objfile_symbol.
3610 (SYMBOL_DUP): Remove.
3611 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3612 "new".
3613 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3614 (allocate_template_symbol): Don't declare.
3615 (struct symbol): Add copy constructor. Change defaults.
3616 * jit.c (finalize_symtab): Use "new".
3617 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3618 Use "new".
3619 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3620 (common_block_end): Use "new".
3621 * mdebugread.c (parse_symbol): Use "new".
3622 (new_symbol): Likewise.
3623
5b4a1a8d
PW
36242020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3625
3626 * NEWS: Mention changes to help and apropos.
3627
57b4f16e
PW
36282020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3629
3630 * command.h (enum command_class): Improve comments, document
3631 that class_alias is for user-defined aliases, give the class
3632 name for each class, remove unused class_xdb.
3633 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3634 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3635 by a precise class.
3636 * infcmd.c (_initialize_infcmd): Likewise.
3637 * reverse.c (_initialize_reverse): Likewise.
3638 * stack.c (_initialize_stack): Likewise.
3639 * symfile.c (_initialize_symfile): Likewise.
3640 * tracepoint.c (_initialize_tracepoint): Likewise.
3641
7c05caf7
PW
36422020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3643
3644 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3645 when their aliased command is traversed.
3646 (help_cmd): Add fput_command_names_styled call to
3647 output command name and aliases when command has an alias.
3648
3b3aaacb
PW
36492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3650
3651 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3652 * cli/cli-decode.c (help_cmd_list): Declare as static,
3653 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3654 a command together with the command.
3655 (fput_command_name_styled, fput_command_names_styled): New functions.
3656 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3657 fput_command_name_styled.
3658 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3659 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3660
7aa1b46f
PW
36612020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3662
3663 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3664 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3665 * command.h (cmd_show_list): Likewise.
3666 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3667 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3668
89bcba74
PW
36692020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3670
3671 * unittests/command-def-selftests.c (traverse_command_structure):
3672 Verify all commands of a list have the same prefix command and
3673 that only the top cmdlist commands have a null prefix.
3674
3f4d92eb
PW
36752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3676
3677 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3678 as prefix, not one of its aliases.
3679 (set_cmd_prefix): Remove.
3680 (do_add_cmd): Centralize the setting of the prefix of a command, when
3681 command is defined after its full chain of prefix commands.
3682 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3683 (add_setshow_cmd_full): Likewise.
3684 (update_prefix_field_of_prefixed_commands): New function.
3685 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3686 update_prefix_field_of_prefixed_commands.
3687 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3688 addresses of remote_set_cmdlist and remote_show_cmdlist given
3689 as argument, not the address of an argument.
3690 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3691 * gdb/remote.c (_initialize_remote): Likewise.
3692
0605465f
PW
36932020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3694
3695 * cli/cli-cmds.c (alias_command): Check for an existing alias
3696 using lookup_cmd_composition, as valid_command_p is too strict
3697 and forbids aliases that are the prefix of an existing alias
3698 or command.
3699 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3700 command is properly recognised as a valid command.
3701
58e6ac70
PW
37022020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3703
3704 * unittests/help-doc-selftests.c: Rename to
3705 unittests/command-def-selftests.c
3706 * unittests/command-def-selftests.c (help_doc_tests): Update some
3707 comments.
3708 (command_structure_tests, traverse_command_structure): New namespace
3709 and function.
3710 (command_structure_invariants_tests): New function.
3711 (_initialize_command_def_selftests) Renamed from
3712 _initialize_help_doc_selftests, register command_structure_invariants
3713 selftest.
3714
a7b9ceb8
PW
37152020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3716
3717 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3718 an alias of 'show'.
3719
b2188a06
JB
37202020-05-15 Joel Brobecker <brobecker@adacore.com>
3721
3722 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3723 ada_is_fixed_point_type. Update all callers.
3724 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3725 all callers.
3726 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3727 Update all callers.
3728 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3729 print_fixed_point_type. Update all callers.
3730 * ada-valprint.c (ada_value_print_num): Replace call to
3731 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3732
a51951c2
KB
37332020-05-14 Kevin Buettner <kevinb@redhat.com>
3734
3735 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3736 processors.
3737 (cpu_supports_bts): Add CV_AMD case.
3738
29d6859f
LM
37392020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3740 Simon Marchi <simon.marchi@efficios.com>
3741
3742 * infrun.c (stop_all_threads): Collect multiple wait events at
3743 each pass.
3744
78134374
SM
37452020-05-14 Simon Marchi <simon.marchi@efficios.com>
3746
3747 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3748 type::code instead.
3749
67607e24
SM
37502020-05-14 Simon Marchi <simon.marchi@efficios.com>
3751
3752 * gdbtypes.h (struct type) <code, set_code>: New methods.
3753 (TYPE_CODE): Use type::code. Change all call sites used to set
3754 the code to use type::set_code instead.
3755
a05575d3
TBA
37562020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3757 Tom de Vries <tdevries@suse.de>
3758 Pedro Alves <palves@redhat.com>
3759
3760 PR threads/25478
3761 * infrun.c (stop_all_threads): Do NOT ignore
3762 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3763 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3764 received.
3765 (handle_no_resumed): Remove code handling a live inferior with no
3766 threads.
3767 * remote.c (has_single_non_exited_thread): New.
3768 (remote_target::update_thread_list): Do not delete a thread if is
3769 the last thread of the process.
3770 * thread.c (thread_select): Call delete_exited_threads instead of
3771 prune_threads.
3772
6ad82919
TBA
37732020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3774
3775 * infrun.c (stop_all_threads): Enable/disable thread events of all
3776 targets. Move a debug message denoting the end of the function
3777 into the SCOPED_EXIT block.
3778
d890404b
TBA
37792020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3780
3781 * process-stratum-target.h: Include <set>.
3782 (all_non_exited_process_targets, switch_to_target_no_thread): New
3783 function declarations.
3784 * process-stratum-target.c (all_non_exited_process_targets)
3785 (switch_to_target_no_thread): New function implementations.
3786
293b3ebc
TBA
37872020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3788
3789 * infrun.c (handle_inferior_event): Extract out a piece of code
3790 into...
3791 (mark_non_executing_threads): ...this new function.
3792
7ca9b62a
TBA
37932020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3794
3795 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3796 use.
3797
fc75c28b
TBA
37982020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3799
3800 * regcache.c (regcache_read_pc_protected): New function
3801 implementation that returns 0 if the PC cannot read via
3802 'regcache_read_pc'.
3803 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3804 instead of 'regcache_read_pc'.
3805 (keep_going_pass_signal): Ditto.
3806
a89febbd
TT
38072020-05-13 Tom Tromey <tromey@adacore.com>
3808
3809 * ada-lang.c (align_value): Remove.
3810 (ada_template_to_fixed_record_type_1): Use align_up.
3811
f7e23710
TBA
38122020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3813
3814 * async-event.c: Update the copyright year.
3815 * async-event.h: Update the copyright year.
3816
02ff80c2
SM
38172020-05-12 Simon Marchi <simon.marchi@efficios.com>
3818
3819 * objfiles.h (is_addr_in_objfile,
3820 shared_objfile_contains_address_p): Return bool.
3821 * objfile.c (is_addr_in_objfile,
3822 shared_objfile_contains_address_p): Return bool.
3823
4fd6c7e8
TT
38242020-05-11 Tom Tromey <tromey@adacore.com>
3825
3826 * cli/cli-cmds.c (info_command): Restore.
3827 (_initialize_cli_cmds): Use add_prefix_command for "info".
3828 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3829
5eb68a39
TT
38302020-05-11 Tom Tromey <tromey@adacore.com>
3831
3832 * ada-lang.c (ada_value_primitive_field): Now public.
3833 * ada-lang.h (ada_value_primitive_field): Declare.
3834 * ada-valprint.c (print_field_values): Use
3835 ada_value_primitive_field for wrapper fields.
3836
7666722f
TV
38372020-05-11 Tom de Vries <tdevries@suse.de>
3838
3839 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3840 MODULE_DOMAIN.
3841
3ee6bb11
TV
38422020-05-11 Tom de Vries <tdevries@suse.de>
3843
3844 PR symtab/25941
3845 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3846 with length 0, if not gdb-produced.
3847 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3848
43434996
TV
38492020-05-09 Tom de Vries <tdevries@suse.de>
3850
3851 PR gdb/25955
3852 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3853 calculation.
3854
2f78cffc
TT
38552020-05-09 Tom Tromey <tom@tromey.com>
3856
3857 * top.c (server_command): Now bool.
3858 * top.h (server_command): Now bool.
3859
4f7bc5ed
TT
38602020-05-08 Tom Tromey <tromey@adacore.com>
3861
3862 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3863 already being processed.
3864
8be4b118
TT
38652020-05-08 Tom Tromey <tom@tromey.com>
3866
3867 * printcmd.c (struct display) <next>: Remove.
3868 <display>: New constructor.
3869 <exp_string>: Now a std::string.
3870 <enabled_p>: Now a bool.
3871 (display_number): Move definition earlier.
3872 (displays): Rename from display_chain. Now a std::vector.
3873 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3874 (display_command): Update.
3875 (do_one_display, disable_display)
3876 (enable_disable_display_command, do_enable_disable_display):
3877 Update.
3878 (free_display): Remove.
3879 (clear_displays): Rewrite.
3880 (delete_display): Update.
3881 (map_display_numbers): Use function_view. Remove "data"
3882 parameter. Update.
3883 (do_delete_display): Remove.
3884 (undisplay_command): Update.
3885 (do_one_display, do_displays, disable_display)
3886 (info_display_command): Update.
3887 (do_enable_disable_display): Remove.
3888 (enable_disable_display_command)
3889 (clear_dangling_display_expressions): Update.
3890
94c93c35
TT
38912020-05-08 Tom Tromey <tom@tromey.com>
3892
3893 * symtab.c (set_symbol_cache_size)
3894 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3895 (maintenance_print_symbol_cache_statistics): Update.
3896 * symmisc.c (print_symbol_bcache_statistics)
3897 (print_objfile_statistics, maintenance_print_objfiles)
3898 (maintenance_info_symtabs, maintenance_check_symtabs)
3899 (maintenance_expand_symtabs, maintenance_info_line_tables):
3900 Update.
3901 * symfile-debug.c (set_debug_symfile): Update.
3902 * source.c (forget_cached_source_info): Update.
3903 * python/python.c (gdbpy_progspaces): Update.
3904 * psymtab.c (maintenance_info_psymtabs): Update.
3905 * probe.c (parse_probes): Update.
3906 * linespec.c (iterate_over_all_matching_symtabs)
3907 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3908 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3909 * exec.c (exec_target::close): Update.
3910 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3911 * breakpoint.c (print_one_breakpoint_location)
3912 (create_longjmp_master_breakpoint)
3913 (create_std_terminate_master_breakpoint): Update.
3914 * progspace.c (program_spaces): Now a std::vector.
3915 (maybe_new_address_space): Update.
3916 (add_program_space): Remove.
3917 (program_space::program_space): Update.
3918 (remove_program_space): Update.
3919 (number_of_program_spaces): Remove.
3920 (print_program_space, update_address_spaces): Update.
3921 * progspace.h (program_spaces): Change type.
3922 (ALL_PSPACES): Remove.
3923 (number_of_program_spaces): Don't declare.
3924 (struct program_space) <next>: Remove.
3925
a1fd1ac9
TT
39262020-05-08 Tom Tromey <tom@tromey.com>
3927
3928 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3929 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3930 (enable_break): Update.
3931 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3932 (frv_fdpic_find_canonical_descriptor): Update.
3933 (frv_fetch_objfile_link_map): Update.
3934 * progspace.c (program_space::free_all_objfiles): Update.
3935 (program_space::solibs): New method.
3936 * progspace.h (struct program_space) <solibs>: New method.
3937 * solist.h (master_so_list): Don't declare.
3938 (ALL_SO_LIBS): Remove.
3939 * solib.h (so_list_head): Remove.
3940 (update_solib_list): Update comment.
3941 * solib.c (master_so_list): Remove.
3942 (solib_used, update_solib_list, solib_add)
3943 (info_sharedlibrary_command, clear_solib)
3944 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3945
38eae084
TT
39462020-05-08 Tom Tromey <tom@tromey.com>
3947
3948 * extension.c (extension_languages): Now a std::array.
3949 (ALL_EXTENSION_LANGUAGES): Remove.
3950 (get_ext_lang_defn, get_ext_lang_of_file)
3951 (eval_ext_lang_from_control_command): Update.
3952 (finish_ext_lang_initialization)
3953 (auto_load_ext_lang_scripts_for_objfile)
3954 (ext_lang_type_printers::ext_lang_type_printers)
3955 (apply_ext_lang_type_printers)
3956 (ext_lang_type_printers::~ext_lang_type_printers)
3957 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3958 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3959 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3960 (get_matching_xmethod_workers, ext_lang_colorize)
3961 (ext_lang_before_prompt): Update.
3962 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3963
596dc4ad
TT
39642020-05-08 Tom Tromey <tom@tromey.com>
3965
3966 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3967 overload.
3968 <swap_string, m_string>: Remove.
3969 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3970 Update.
3971 * stabsread.c (define_symbol, read_type): Update.
3972 * linespec.c (find_linespec_symbols): Update.
3973 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3974 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3975 * dbxread.c (read_dbx_symtab): Update.
3976 * cp-support.h (cp_canonicalize_string_full)
3977 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3978 Return unique_xmalloc_ptr.
3979 * cp-support.c (inspect_type): Update.
3980 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3981 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3982 Likewise.
3983 * c-typeprint.c (print_name_maybe_canonical): Update.
3984 * break-catch-throw.c (check_status_exception_catchpoint):
3985 Update.
3986
bf4cb9be
TV
39872020-05-08 Tom de Vries <tdevries@suse.de>
3988
3989 * infrun.c (follow_fork): Copy current_line and current_symtab to
3990 child thread.
3991
a1b68f28
SM
39922020-05-07 Simon Marchi <simon.marchi@efficios.com>
3993
3994 * async-event.c (struct async_signal_handler, struct
3995 async_event_handler): Reformat, remove typedef.
3996
98d48915
SM
39972020-05-07 Simon Marchi <simon.marchi@efficios.com>
3998
3999 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4000 access thistype->main_type->dyn_prop_list directly.
4001
7aa91313
SM
40022020-05-07 Simon Marchi <simon.marchi@efficios.com>
4003
4004 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4005 (remove_dyn_prop): Remove. Update all users to use
4006 type::remove_dyn_prop.
4007 * gdbtypes.c (remove_dyn_prop): Rename to...
4008 (type::remove_dyn_prop): ... this.
4009
5c54719c
SM
40102020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4011
4012 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4013 (add_dyn_prop): Remove. Update all users to use
4014 type::add_dyn_prop.
4015 * gdbtypes.c (add_dyn_prop): Rename to...
4016 (type::add_dyn_prop): ... this.
4017
24e99c6c
SM
40182020-05-07 Simon Marchi <simon.marchi@efficios.com>
4019
4020 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4021 (get_dyn_prop): Remove. Update all users to use
4022 type::dyn_prop.
4023 * gdbtypes.c (get_dyn_prop): Rename to...
4024 (type::dyn_prop): ... this.
4025
0d4bf016
SM
40262020-05-06 Simon Marchi <simon.marchi@efficios.com>
4027
4028 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4029
ac4a4f1c
SM
40302020-05-06 Simon Marchi <simon.marchi@efficios.com>
4031
4032 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4033 instruction, skip it if it's there.
4034
a3bbacc1
SM
40352020-05-05 Simon Marchi <simon.marchi@efficios.com>
4036
4037 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4038
c3236f84
SM
40392020-05-04 Simon Marchi <simon.marchi@efficios.com>
4040
4041 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4042 * gdbtypes.c (recursive_dump_type): Remove use of
4043 TYPE_INCOMPLETE.
4044
3b6acaee
TT
40452020-05-03 Tom Tromey <tom@tromey.com>
4046
4047 * breakpoint.c (catch_command, tcatch_command): Remove.
4048 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4049 add_show_prefix_cmd.
4050 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4051 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4052 Remove.
4053 (add_internal_problem_command): Use add_basic_prefix_cmd,
4054 add_show_prefix_cmd.
4055 * mips-tdep.c (set_mipsfpu_command): Remove.
4056 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4057 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4058 (_initialize_index_cache): Use add_basic_prefix_cmd.
4059 * memattr.c (dummy_cmd): Remove.
4060 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4061 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4062 (_initialize_tui_win): Use add_basic_prefix_cmd,
4063 add_show_prefix_cmd.
4064 * cli/cli-logging.c (set_logging_command): Remove.
4065 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4066 add_show_prefix_cmd.
4067 (show_logging_command): Remove.
4068 * target.c (target_command): Remove.
4069 (add_target): Use add_basic_prefix_cmd.
4070
a51119cd
HD
40712020-05-02 Hannes Domani <ssbssa@yahoo.de>
4072
4073 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4074
652fc23a 40752020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4076
652fc23a
PW
4077 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4078 info_command.
4079
117539e6
KR
40802020-04-30 Kamil Rytarowski <n54@gmx.com>
4081
4082 * nbsd-nat.c (nbsd_enable_proc_events)
4083 (nbsd_nat_target::post_startup_inferior): Add.
4084 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4085 (nbsd_nat_target::update_thread_list): Rewrite.
4086 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4087 "PTRACE_LWP_CREATE".
4088 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4089
102e38eb 40902020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4091
102e38eb
PW
4092 * stack.c (_initialize_stack): Remove duplicated creation
4093 of "frame" command and "f" alias.
4094
ee9d1e5f
HD
40952020-04-30 Hannes Domani <ssbssa@yahoo.de>
4096
4097 PR gdb/18706
4098 * gdbtypes.c (check_typedef): Calculate size of array of
4099 stubbed type.
4100
627c7fb8
HD
41012020-04-30 Hannes Domani <ssbssa@yahoo.de>
4102
4103 PR gdb/15559
4104 * i386-tdep.c (i386_push_dummy_call): Call
4105 i386_thiscall_push_dummy_call.
4106 (i386_thiscall_push_dummy_call): New function.
4107 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4108 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4109 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4110
ffc2844e
SM
41112020-04-29 Simon Marchi <simon.marchi@efficios.com>
4112
4113 * gdbarch.sh (do_read): Add shellcheck disable directive for
4114 warning SC2162.
4115
1207375d
SM
41162020-04-29 Simon Marchi <simon.marchi@efficios.com>
4117
4118 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4119 "referenced but not assigned" warning.
4120
9fdb2916
SM
41212020-04-29 Simon Marchi <simon.marchi@efficios.com>
4122
4123 * gdbarch.sh: Remove code that sets fallbackdefault.
4124
759cea5e
SM
41252020-04-29 Simon Marchi <simon.marchi@efficios.com>
4126
4127 * gdbarch.sh: Use shell operators && and || instead of
4128 -a and -o.
4129
cb02ab24
SM
41302020-04-29 Simon Marchi <simon.marchi@efficios.com>
4131
4132 * gdbarch.sh: Use $(...) instead of `...`.
4133
a6fc5ffc
SM
41342020-04-29 Simon Marchi <simon.marchi@efficios.com>
4135
4136 * gdbarch.sh: Use double quotes around variables.
4137
8d113d13
SM
41382020-04-29 Simon Marchi <simon.marchi@efficios.com>
4139
4140 * gdbarch.sh: Use %s with printf, instead of variables in the
4141 format string.
4142
ed6acedd
TT
41432020-04-29 Tom Tromey <tromey@adacore.com>
4144
4145 PR ada/25875:
4146 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4147 type fields here.
4148 (read_enumeration_type): Call
4149 update_enumeration_type_from_children later. Update comments.
4150 (process_enumeration_scope): Don't create type fields.
4151
b68b1b58
KR
41522020-04-29 Kamil Rytarowski <n54@gmx.com>
4153
4154 * nbsd-tdep.c: Include "xml-syscall.h".
4155 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4156
f94b2e03
KR
41572020-04-29 Kamil Rytarowski <n54@gmx.com>
4158
4159 * nbsd-nat.c: Include "sys/wait.h".
4160 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4161 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4162 (nbsd_nat_target::remove_exec_catchpoint)
4163 (nbsd_nat_target::set_syscall_catchpoint): Add.
4164 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4165 (nbsd_nat_target::insert_exec_catchpoint)
4166 (nbsd_nat_target::remove_exec_catchpoint)
4167 (nbsd_nat_target::set_syscall_catchpoint): Add.
4168 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4169 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4170 `nbsd_get_syscall_number'.
4171
fc49bc72
TT
41722020-04-29 Tom Tromey <tom@tromey.com>
4173
4174 * stack.c (print_block_frame_labels): Remove.
4175
d642b692
HD
41762020-04-29 Hannes Domani <ssbssa@yahoo.de>
4177
4178 PR gdb/17320
4179 * ada-valprint.c (val_print_packed_array_elements): Move array
4180 end bracket to new line.
4181 (ada_val_print_string): Remove extra spaces before first array
4182 element.
4183 * c-valprint.c (c_value_print_array): Likewise.
4184 * m2-valprint.c (m2_print_array_contents): Likewise.
4185 (m2_value_print_inner): Likewise.
4186 * p-valprint.c (pascal_value_print_inner): Likewise.
4187 * valprint.c (generic_val_print_array): Likewise.
4188 (value_print_array_elements): Move first array element and array
4189 end bracket to new line.
4190
ea90f227
TV
41912020-04-29 Tom de Vries <tdevries@suse.de>
4192
4193 PR symtab/25889
4194 * linespec.c (find_method): Fix ix calculation.
4195
4498ef4f
KR
41962020-04-28 Kamil Rytarowski <n54@gmx.com>
4197
4198 * syscalls/update-netbsd.sh: New file.
4199 * syscalls/netbsd.xml: Regenerate.
4200 * data-directory/Makefile.in: Register `netbsd.xml' in
4201 `SYSCALLS_FILES'.
4202
a55e30b5
SM
42032020-04-28 Simon Marchi <simon.marchi@efficios.com>
4204
4205 * syscalls/update-freebsd.sh: Add double quotes.
4206
2b2fbab8
TT
42072020-04-28 Tom Tromey <tom@tromey.com>
4208
4209 * NEWS: Update.
4210 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4211 (cmdpy_init): Allow class_tui.
4212
a65189c9
TV
42132020-04-28 Mark Williams <mark@myosotissp.com>
4214
4215 PR gdb/24480
4216 * dwarf2read.c: Add missing assingments to list_in_scope when
4217 start_symtab was already called.
4218
1b95cdb7
SM
42192020-04-28 Simon Marchi <simon.marchi@efficios.com>
4220
4221 PR gdb/25881
4222 * dwarf2/read.c (offset_map_type): Use
4223 gdb:hash_enum<sect_offset> as hash function.
4224
15cd93d0
TV
42252020-04-28 Tom de Vries <tdevries@suse.de>
4226
4227 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4228 with DW_AT_signature.
4229
1eb39914
SM
42302020-04-27 Simon Marchi <simon.marchi@efficios.com>
4231
4232 * configure.ac: Remove check for fs_base/gs_base in
4233 user_regs_struct.
4234 * configure: Re-generate.
4235 * config.in: Re-generate.
4236 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4237 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4238 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4239
991a3e2e
LM
42402020-04-27 Luis Machado <luis.machado@linaro.org>
4241
4242 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4243 problematic inline frame unwinding situation.
4244 * frame.c (frame_id_computed_p): New function.
4245 * frame.h (frame_id_computed_p): New prototype.
4246
361ba0e8
TT
42472020-04-26 Tom Tromey <tom@tromey.com>
4248
4249 * command.h (enum command_class) <class_pseudo>: Remove.
4250
bc3609fd
PW
42512020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4252
4253 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4254 and whitespace.
4255
b9771db7
KR
42562020-04-25 Kamil Rytarowski <n54@gmx.com>
4257
ec16513e
SM
4258 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4259 `PT_GET_PROCESS_STATE' block.
b9771db7 4260
7151c1af
TT
42612020-04-24 Tom Tromey <tom@tromey.com>
4262
4263 * symtab.h (symbol_get_demangled_name): Don't declare.
4264 * symtab.c (symbol_get_demangled_name): Remove.
4265 (general_symbol_info::natural_name)
4266 (general_symbol_info::demangled_name): Update.
4267
906bb4c5
TT
42682020-04-24 Tom Tromey <tom@tromey.com>
4269
4270 PR rust/25025:
4271 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4272
bcfe6157
TT
42732020-04-24 Tom Tromey <tom@tromey.com>
4274
4275 PR symtab/12707:
4276 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4277 exists.
4278 (new_symbol): Likewise.
4279 * compile/compile-object-load.c (get_out_value_type): Use
4280 symbol_matches_search_name.
4281
f049a313
TT
42822020-04-24 Tom Tromey <tom@tromey.com>
4283
4284 * dwarf2/read.c (add_partial_symbol): Do not call
4285 compute_and_set_names.
4286
76e288d1
TT
42872020-04-24 Tom Tromey <tom@tromey.com>
4288
4289 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4290 overload.
4291
2467f4f6
TT
42922020-04-24 Tom Tromey <tom@tromey.com>
4293
4294 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4295 (add_psymbol_to_list): New overload. Make old overload call new
4296 one.
4297 * psympriv.h (add_psymbol_to_list): New overload.
4298
e61108c9
TT
42992020-04-24 Tom Tromey <tom@tromey.com>
4300
4301 * dwarf2/read.c (partial_die_info::read) <case
4302 DW_AT_linkage_name>: Use value_as_string.
4303 (dwarf2_string_attr): Use value_as_string.
4304 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4305 method.
4306 * dwarf2/attribute.c (attribute::value_as_string): New method.
4307
8c87a452
TT
43082020-04-24 Tom Tromey <tom@tromey.com>
4309
4310 * symtab.c (general_symbol_info::natural_name)
4311 (general_symbol_info::demangled_name): Check for language_rust.
4312
787de330
TT
43132020-04-24 Tom Tromey <tom@tromey.com>
4314
4315 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4316 (dwarf2_physname): ... from here.
4317 (partial_die_info::read): Add Rust "{" hack.
4318
ff985671
TT
43192020-04-24 Tom Tromey <tom@tromey.com>
4320
4321 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4322 method.
4323 (symbol_set_demangled_name): Don't declare.
4324 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4325 symbol_set_demangled_name.
4326 (general_symbol_info::set_language)
4327 (general_symbol_info::compute_and_set_names): Update.
4328 * minsyms.c (minimal_symbol_reader::install): Update.
4329 * dwarf2/read.c (new_symbol): Update.
4330
1acda803
TT
43312020-04-24 Tom Tromey <tromey@adacore.com>
4332
4333 PR python/23662:
4334 * python/py-type.c (convert_field): Handle
4335 FIELD_LOC_KIND_DWARF_BLOCK.
4336 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4337 (typy_get_dynamic): Nw function.
4338 (type_object_getset): Add "dynamic".
4339 * NEWS: Add entry.
4340
d656f129
TT
43412020-04-24 Tom Tromey <tromey@adacore.com>
4342
4343 * ada-typeprint.c (print_choices, print_variant_part)
4344 (print_record_field_types_dynamic): New functions.
4345 (print_record_field_types): Use print_record_field_types_dynamic.
4346
7d79de9a
TT
43472020-04-24 Tom Tromey <tromey@adacore.com>
4348
4349 * dwarf2/read.c (handle_data_member_location): New overload.
4350 (dwarf2_add_field): Use it.
4351 (decode_locdesc): Add "computed" parameter. Update comment.
4352 * gdbtypes.c (is_dynamic_type_internal): Also look for
4353 FIELD_LOC_KIND_DWARF_BLOCK.
4354 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4355 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4356 virtual base classes.
4357 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4358 FIELD_LOC_KIND_DWARF_BLOCK.
4359
f8e89861
TT
43602020-04-24 Tom Tromey <tromey@adacore.com>
4361
4362 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4363 * gdbtypes.c (is_dynamic_type_internal): Check
4364 TYPE_HAS_DYNAMIC_LENGTH.
4365 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4366 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4367 New macros.
4368 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4369 constant.
4370
9c6a1327
TT
43712020-04-24 Tom Tromey <tromey@adacore.com>
4372
4373 * dwarf2/read.c (struct variant_field): Rewrite.
4374 (struct variant_part_builder): New.
4375 (struct nextfield): Remove "variant" field. Add "offset".
4376 (struct field_info): Add "current_variant_part" and
4377 "variant_parts".
4378 (alloc_discriminant_info): Remove.
4379 (alloc_rust_variant): New function.
4380 (quirk_rust_enum): Update.
4381 (dwarf2_add_field): Set "offset" member. Don't handle
4382 DW_TAG_variant_part.
4383 (offset_map_type): New typedef.
4384 (convert_variant_range, create_one_variant)
4385 (create_one_variant_part, create_variant_parts)
4386 (add_variant_property): New functions.
4387 (dwarf2_attach_fields_to_type): Call add_variant_property.
4388 (read_structure_type): Don't handle DW_TAG_variant_part.
4389 (handle_variant_part, handle_variant): New functions.
4390 (handle_struct_member_die): Use them.
4391 (process_structure_scope): Don't handle variant parts.
4392 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4393 (struct discriminant_info): Remove.
4394 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4395 (struct main_type) <flag_discriminated_union>: Remove.
4396 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4397 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4398 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4399 Update.
4400 * valops.c (value_union_variant): Remove.
4401 * value.h (value_union_variant): Don't declare.
4402
b249d2c2
TT
44032020-04-24 Tom Tromey <tromey@adacore.com>
4404
4405 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4406 (ada_value_primitive_packed_val): Update.
4407 * ada-valprint.c (ada_value_print_1): Update.
4408 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4409 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4410 just an address. Use evaluate_for_locexpr_baton.
4411 (dwarf2_evaluate_property): Update.
4412 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4413 array_view.
4414 * findvar.c (default_read_var_value): Update.
4415 * gdbtypes.c (compute_variant_fields_inner)
4416 (resolve_dynamic_type_internal): Update.
4417 (resolve_dynamic_type): Change type of valaddr parameter.
4418 * gdbtypes.h (resolve_dynamic_type): Update.
4419 * valarith.c (value_subscripted_rvalue): Update.
4420 * value.c (value_from_contents_and_address): Update.
4421
61122aa9
TT
44222020-04-24 Tom Tromey <tromey@adacore.com>
4423
4424 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4425 "push_initial_value" parameter.
4426 (dwarf2_evaluate_property): Likewise.
4427 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4428
ef83a141
TT
44292020-04-24 Tom Tromey <tromey@adacore.com>
4430
4431 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4432 (variant::matches, compute_variant_fields_recurse)
4433 (compute_variant_fields_inner, compute_variant_fields): New
4434 functions.
4435 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4436 Use resolved_type after type is made.
4437 (operator==): Add new cases.
4438 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4439 (struct discriminant_range, struct variant, struct variant_part):
4440 New.
4441 (union dynamic_prop_data) <variant_parts, original_type>: New
4442 members.
4443 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4444 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4445 constants.
4446 * value.c (unpack_bits_as_long): Now public.
4447 * value.h (unpack_bits_as_long): Declare.
4448
675127ec
TT
44492020-04-24 Tom Tromey <tromey@adacore.com>
4450
4451 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4452 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4453
9852ceef
HD
44542020-04-24 Hannes Domani <ssbssa@yahoo.de>
4455
4456 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4457
7632c6ce
KR
44582020-04-24 Kamil Rytarowski <n54@gmx.com>
4459
4460 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4461 (remove_fork_catchpoint, post_startup_inferior)
4462 (post_attach): Move...
4463 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4464 (remove_fork_catchpoint, post_startup_inferior)
4465 (post_attach): ...here.
4466 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4467 (remove_fork_catchpoint, post_startup_inferior)
4468 (post_attach): Move...
4469 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4470 (remove_fork_catchpoint, post_startup_inferior)
4471 (post_attach): ...here.
4472
7be2bb4f
TT
44732020-04-24 Tom Tromey <tromey@adacore.com>
4474
4475 * nat/windows-nat.h (struct windows_thread_info)
4476 <pc_adjusted>: New member.
4477 * windows-nat.c (windows_fetch_one_register): Check
4478 pc_adjusted.
4479 (windows_nat_target::get_windows_debug_event)
4480 (windows_nat_target::wait): Set pc_adjusted.
4481
f80cb3b4
TV
44822020-04-24 Tom de Vries <tdevries@suse.de>
4483
4484 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4485 Run gdb-add-index inside temp dir.
4486
29514b87
TT
44872020-04-23 Tom Tromey <tromey@adacore.com>
4488
4489 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4490 in loop.
4491
5939967b
LM
44922020-04-23 Luis Machado <luis.machado@linaro.org>
4493
4494 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4495 get_frame_register instead of gdbarch_unwind_pc.
4496
70bc38f5
TV
44972020-04-23 Tom de Vries <tdevries@suse.de>
4498
4499 * symtab.c (lookup_global_symbol): Prefer def over decl.
4500
de82891c
TV
45012020-04-23 Tom de Vries <tdevries@suse.de>
4502
4503 PR symtab/25807
4504 * block.c (best_symbol, better_symbol): Promote to external.
4505 * block.h (best_symbol, better_symbol): Declare.
4506 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4507 decl.
4508
ecc6c606
TT
45092020-04-23 Tom Tromey <tromey@adacore.com>
4510
4511 PR ada/25837:
4512 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4513 "const char *", not a "const std::string &".
4514 <name_and_matcher::operator==>: Update.
4515 * unittests/lookup_name_info-selftests.c: Change type of
4516 "result".
4517
740480b8
TT
45182020-04-23 Tom Tromey <tom@tromey.com>
4519
4520 * inferior.h (iterate_over_inferiors): Don't declare.
4521 * inferior.c (iterate_over_inferiors): Remove.
4522 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4523 Remove.
4524 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4525 use iterate_over_inferiors.
4526 (darwin_resume_inferior_it)
4527 (struct resume_inferior_threads_param)
4528 (darwin_resume_inferior_threads_it): Remove.
4529 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4530
ae3ab1f0
TV
45312020-04-23 Tom de Vries <tdevries@suse.de>
4532
4533 * blockframe.c (find_pc_partial_function): Use
4534 find_pc_sect_compunit_symtab rather than
4535 objfile->sf->qf->find_pc_sect_compunit_symtab.
4536
317d2668
TV
45372020-04-22 Tom de Vries <tdevries@suse.de>
4538
4539 PR symtab/25764
4540 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4541 in psymtabs.
4542
eea9e357
TV
45432020-04-22 Tom de Vries <tdevries@suse.de>
4544
4545 PR symtab/25801
4546 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4547 symtabs.
4548
3d5afab3
TV
45492020-04-22 Tom de Vries <tdevries@suse.de>
4550
4551 PR symtab/25700
4552 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4553 CU if already created.
4554
d43b7a2d
TBA
45552020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4556
4557 * infrun.c (displaced_step_fixup): Switch to the event_thread
4558 before calling displaced_step_restore, not after.
4559
d89edf9b
MM
45602020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4561
4562 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4563 its inferior is not recorded by us.
4564 (record_btrace_target_open): Replace call to
4565 all_non_exited_threads () with call to current_inferior
4566 ()->non_exited_threads ().
4567 (record_btrace_target::stop_recording): Likewise.
4568 (record_btrace_target::close): Likewise.
4569 (record_btrace_target::wait): Likewise.
4570 (record_btrace_target::record_stop_replaying): Likewise.
4571
5897fd49
MM
45722020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4573
4574 * btrace.c (btrace_enable): Throw an error on double enables and
4575 when enabling recording fails.
4576 (btrace_disable): Throw an error if the thread is not recorded.
4577
1a476b6d
MM
45782020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4579
4580 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4581 request if we do not have a thread_info.
4582
4778a5f8
TV
45832020-04-21 Tom de Vries <tdevries@suse.de>
4584
4585 PR gdb/25471
4586 * thread.c
4587 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4588 exception in get_frame_id.
4589
0fa7617d
TT
45902020-04-20 Tom Tromey <tromey@adacore.com>
4591
4592 * python/python.c (struct gdbpy_event): Mark move constructor as
4593 noexcept.
4594 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4595 constructor as noexcept.
4596 * completer.h (struct completion_result): Mark move constructor as
4597 noexcept.
4598 * completer.c (completion_result::completion_result): Use
4599 initialization style. Don't call reset_match_list.
4600
ad23bda0
MS
46012020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4602
4603 * MAINTAINERS (Write After Approval): Add myself.
4604
45e1f031
TT
46052020-04-18 Tom Tromey <tom@tromey.com>
4606
4607 * windows-tdep.c (init_w32_command_list)
4608 (w32_prefix_command_valid): Restore.
4609 (_initialize_windows_tdep): Call init_w32_command_list.
4610
08feed99
TT
46112020-04-18 Tom Tromey <tom@tromey.com>
4612
4613 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4614 * value.c (value_fn_field): Update.
4615 * valops.c (find_function_in_inferior)
4616 (value_allocate_space_in_inferior): Update.
4617 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4618 Update.
4619 * tui/tui-source.c (tui_source_window::set_contents): Update.
4620 * symtab.c (lookup_global_or_static_symbol)
4621 (find_function_start_sal_1, skip_prologue_sal)
4622 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4623 * symmisc.c (dump_msymbols, dump_symtab_1)
4624 (maintenance_print_one_line_table): Update.
4625 * symfile.c (init_entry_point_info, section_is_mapped)
4626 (list_overlays_command, simple_read_overlay_table)
4627 (simple_overlay_update_1): Update.
4628 * stap-probe.c (handle_stap_probe): Update.
4629 * stabsread.c (dbx_init_float_type, define_symbol)
4630 (read_one_struct_field, read_enum_type, read_range_type): Update.
4631 * source.c (info_line_command): Update.
4632 * python/python.c (gdbpy_source_objfile_script)
4633 (gdbpy_execute_objfile_script): Update.
4634 * python/py-type.c (save_objfile_types): Update.
4635 * python/py-objfile.c (py_free_objfile): Update.
4636 * python/py-inferior.c (python_new_objfile): Update.
4637 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4638 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4639 (maintenance_check_psymtabs): Update.
4640 * printcmd.c (info_address_command): Update.
4641 * objfiles.h (struct objfile) <arch>: New method, from
4642 get_objfile_arch.
4643 (get_objfile_arch): Don't declare.
4644 * objfiles.c (get_objfile_arch): Remove.
4645 (filter_overlapping_sections): Update.
4646 * minsyms.c (msymbol_is_function): Update.
4647 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4648 (output_nondebug_symbol): Update.
4649 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4650 (mdebug_expand_psymtab): Update.
4651 * machoread.c (macho_add_oso_symfile): Update.
4652 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4653 Update.
4654 * linux-fork.c (checkpoint_command): Update.
4655 * linespec.c (convert_linespec_to_sals): Update.
4656 * jit.c (finalize_symtab): Update.
4657 * infrun.c (insert_exception_resume_from_probe): Update.
4658 * ia64-tdep.c (ia64_find_unwind_table): Update.
4659 * hppa-tdep.c (internalize_unwinds): Update.
4660 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4661 Update.
4662 * gcore.c (call_target_sbrk): Update.
4663 * elfread.c (record_minimal_symbol, elf_symtab_read)
4664 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4665 (elf_gnu_ifunc_resolve_by_got): Update.
4666 * dwarf2/read.c (create_addrmap_from_index)
4667 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4668 (read_debug_names_from_section)
4669 (process_psymtab_comp_unit_reader, add_partial_symbol)
4670 (add_partial_subprogram, process_full_comp_unit)
4671 (read_file_scope, read_func_scope, read_lexical_block_scope)
4672 (read_call_site_scope, dwarf2_ranges_read)
4673 (dwarf2_record_block_ranges, dwarf2_add_field)
4674 (mark_common_block_symbol_computed, read_tag_pointer_type)
4675 (read_tag_string_type, dwarf2_init_float_type)
4676 (dwarf2_init_complex_target_type, read_base_type)
4677 (partial_die_info::read, partial_die_info::read)
4678 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4679 (dwarf2_fetch_die_loc_sect_off): Update.
4680 * dwarf2/loc.c (dwarf2_find_location_expression)
4681 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4682 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4683 (dwarf2_loc_desc_get_symbol_read_needs)
4684 (locexpr_describe_location_piece, locexpr_describe_location_1)
4685 (loclist_describe_location): Update.
4686 * dwarf2/index-write.c (write_debug_names): Update.
4687 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4688 * dtrace-probe.c (dtrace_process_dof): Update.
4689 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4690 (process_one_symbol): Update.
4691 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4692 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4693 (coff_read_enum_type): Update.
4694 * cli/cli-cmds.c (edit_command, list_command): Update.
4695 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4696 * breakpoint.c (create_overlay_event_breakpoint)
4697 (create_longjmp_master_breakpoint)
4698 (create_std_terminate_master_breakpoint)
4699 (create_exception_master_breakpoint, get_sal_arch): Update.
4700 * block.c (block_gdbarch): Update.
4701 * annotate.c (annotate_source_line): Update.
4702
0743fc83
TT
47032020-04-17 Tom Tromey <tromey@adacore.com>
4704
4705 * auto-load.c (show_auto_load_cmd): Remove.
4706 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4707 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4708 (maintenance_print_arc_command): Remove.
4709 * tui/tui-win.c (tui_command): Remove.
4710 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4711 * tui/tui-layout.c (tui_layout_command): Remove.
4712 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4713 * python/python.c (user_set_python, user_show_python): Remove.
4714 (_initialize_python): Use add_basic_prefix_cmd,
4715 add_show_prefix_cmd.
4716 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4717 (install_gdb_commands): Use add_basic_prefix_cmd,
4718 add_show_prefix_cmd.
4719 (info_guile_command): Remove.
4720 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4721 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4722 add_show_prefix_cmd.
4723 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4724 Remove do_set and do_show parameters.
4725 * cli/cli-style.c (set_style, show_style): Remove.
4726 (_initialize_cli_style): Use add_basic_prefix_cmd,
4727 add_show_prefix_cmd.
4728 (cli_style_option::add_setshow_commands): Remove do_set and
4729 do_show parameters.
4730 (cli_style_option::add_setshow_commands): Use
4731 add_basic_prefix_cmd, add_show_prefix_cmd.
4732 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4733 (set_style_name): Remove.
4734 * cli/cli-dump.c (dump_command, append_command): Remove.
4735 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4736 (tekhex_dump_command, binary_dump_command)
4737 (binary_append_command): Remove.
4738 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4739 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4740 (init_w32_command_list): Remove; move into ...
4741 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4742 * valprint.c (set_print, show_print, set_print_raw)
4743 (show_print_raw): Remove.
4744 (_initialize_valprint): Use add_basic_prefix_cmd,
4745 add_show_prefix_cmd.
4746 * typeprint.c (set_print_type, show_print_type): Remove.
4747 (_initialize_typeprint): Use add_basic_prefix_cmd,
4748 add_show_prefix_cmd.
4749 * record.c (set_record_command, show_record_command): Remove.
4750 (_initialize_record): Use add_basic_prefix_cmd,
4751 add_show_prefix_cmd.
4752 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4753 add_show_prefix_cmd.
4754 (info_command, show_command, set_debug, show_debug): Remove.
4755 * top.h (set_history, show_history): Don't declare.
4756 * top.c (set_history, show_history): Remove.
4757 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4758 (unset_tdesc_cmd): Remove.
4759 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4760 add_show_prefix_cmd.
4761 * symtab.c (info_module_command): Remove.
4762 (_initialize_symtab): Use add_basic_prefix_cmd.
4763 * symfile.c (overlay_command): Remove.
4764 (_initialize_symfile): Use add_basic_prefix_cmd.
4765 * sparc64-tdep.c (info_adi_command): Remove.
4766 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4767 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4768 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4769 add_show_prefix_cmd.
4770 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4771 (_initialize_serial): Use add_basic_prefix_cmd,
4772 add_show_prefix_cmd.
4773 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4774 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4775 add_show_prefix_cmd.
4776 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4777 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4778 add_show_prefix_cmd.
4779 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4780 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4781 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4782 add_show_prefix_cmd.
4783 * remote.c (remote_command, set_remote_cmd): Remove.
4784 (_initialize_remote): Use add_basic_prefix_cmd.
4785 * record-full.c (set_record_full_command)
4786 (show_record_full_command): Remove.
4787 (_initialize_record_full): Use add_basic_prefix_cmd,
4788 add_show_prefix_cmd.
4789 * record-btrace.c (cmd_set_record_btrace)
4790 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4791 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4792 (cmd_show_record_btrace_pt): Remove.
4793 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4794 add_show_prefix_cmd.
4795 * ravenscar-thread.c (set_ravenscar_command)
4796 (show_ravenscar_command): Remove.
4797 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4798 add_show_prefix_cmd.
4799 * mips-tdep.c (show_mips_command, set_mips_command)
4800 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4801 add_show_prefix_cmd.
4802 * maint.c (maintenance_command, maintenance_info_command)
4803 (maintenance_check_command, maintenance_print_command)
4804 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4805 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4806 add_show_prefix_cmd.
4807 (show_per_command_cmd): Remove.
4808 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4809 Remove.
4810 (maintenance_show_test_settings_cmd): Remove.
4811 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4812 add_show_prefix_cmd.
4813 * maint-test-options.c (maintenance_test_options_command):
4814 Remove.
4815 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4816 * macrocmd.c (macro_command): Remove
4817 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4818 * language.c (set_check, show_check): Remove.
4819 (_initialize_language): Use add_basic_prefix_cmd,
4820 add_show_prefix_cmd.
4821 * infcmd.c (unset_command): Remove.
4822 (_initialize_infcmd): Use add_basic_prefix_cmd.
4823 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4824 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4825 add_show_prefix_cmd.
4826 * go32-nat.c (go32_info_dos_command): Remove.
4827 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4828 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4829 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4830 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4831 (_initialize_frame): Use add_basic_prefix_cmd,
4832 add_show_prefix_cmd.
4833 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4834 (_initialize_dcache): Use add_basic_prefix_cmd,
4835 add_show_prefix_cmd.
4836 * cp-support.c (maint_cplus_command): Remove.
4837 (_initialize_cp_support): Use add_basic_prefix_cmd.
4838 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4839 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4840 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4841 add_basic_prefix_cmd, add_show_prefix_cmd.
4842 * breakpoint.c (save_command): Remove.
4843 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4844 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4845 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4846 add_show_prefix_cmd.
4847 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4848 (set_ada_command, show_ada_command): Remove.
4849 (_initialize_ada_language): Use add_basic_prefix_cmd,
4850 add_show_prefix_cmd.
4851 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4852
3557f442
KR
48532020-04-16 Kamil Rytarowski <n54@gmx.com>
4854
4855 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4856 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4857
16197208
SM
48582020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4859
4860 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4861 warning messages.
4862
00ac85d3
SM
48632020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4864
4865 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4866 import table is not at beginning of .idata section.
4867
381ce63f
PA
48682020-04-16 Pedro Alves <palves@redhat.com>
4869
4870 * inferior.c (delete_inferior): Use delete operator directly
4871 instead of delete_program_space.
4872 * progspace.c (add_program_space): New, factored out from
4873 program_space::program_space.
4874 (remove_program_space): New, factored out from
4875 delete_program_space.
4876 (program_space::program_space): Remove intro comment. Rewrite.
4877 (program_space::~program_space): Remove intro comment. Call
4878 remove_program_space.
4879 (delete_program_space): Delete.
4880 * progspace.h (program_space::program_space): Make explicit. Move
4881 intro comment here, adjusted.
4882 (program_space::~program_space): Move intro comment here,
4883 adjusted.
4884 (delete_program_space): Remove.
4885
a010605f
TT
48862020-04-16 Tom Tromey <tromey@adacore.com>
4887
4888 * windows-nat.c (windows_nat::handle_access_violation): New
4889 function.
4890 * nat/windows-nat.h (handle_access_violation): Declare.
4891 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4892 windows-nat.c. Call handle_access_violation.
4893
efba5c23
TV
48942020-04-16 Tom de Vries <tdevries@suse.de>
4895
4896 PR symtab/25791
4897 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4898 CUs without psymtab.
4899
97ed802d
KB
49002020-04-16 Kevin Buettner <kevinb@redhat.com>
4901
4902 * python/python.c (do_start_initialization): Don't call
4903 PyEval_InitThreads for Python 3.9 and beyond.
4904
c7d64809
KR
49052020-04-15 Kamil Rytarowski <n54@gmx.com>
4906
4907 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4908 thread functions.
4909 (obsd_nat_target::wait): Likewise.
4910
ce127a96
TT
49112020-04-15 Tom Tromey <tromey@adacore.com>
4912
4913 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4914 (DEBUG_EXCEPT): Use debug_printf.
4915
99f1bc6a
AB
49162020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4917
4918 * completer.c (class completion_tracker::completion_hash_entry)
4919 <hash_name>: New member function.
4920 (completion_tracker::discard_completions): New callback to hash a
4921 completion_hash_entry, pass this to htab_create_alloc.
4922
a0e9b532
JT
49232016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4924
4925 * windows-nat.c (windows_make_so): Warn rather than stopping with
4926 an error if realpath() fails.
4927
06ca5dd4
KR
49282020-04-14 Kamil Rytarowski <n54@gmx.com>
4929
4930 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4931 (nbsd_nat_target::info_proc): Add do_status.
4932
194d088f
TV
49332020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4934 Tom de Vries <tdevries@suse.de>
4935
4936 PR symtab/25718
4937 * psympriv.h (struct partial_symtab::read_symtab)
4938 (struct partial_symtab::expand_psymtab)
4939 (struct partial_symtab::read_dependencies): Update comments.
4940 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4941 read_symtab for includer.
4942 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4943 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4944 (struct dwarf2_include_psymtab::m_readin): Remove.
4945 (struct dwarf2_include_psymtab::includer): New member function.
4946 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4947
c1a66c06
TV
49482020-04-14 Tom de Vries <tdevries@suse.de>
4949
4950 PR symtab/25720
4951 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4952 with NULL symbol_matcher and lookup_name.
4953 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4954 and lookup_name.
4955 * dwarf2/read.c (dw2_expand_symtabs_matching)
4956 (dw2_debug_names_expand_symtabs_matching): Same.
4957 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4958 Make lookup_name a pointer. Update comment.
4959 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4960 lookup_name being a pointer.
4961 * symfile.c (expand_symtabs_matching): Same.
4962 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4963 * linespec.c (iterate_over_all_matching_symtabs): Same.
4964
400b5eca
TT
49652020-04-13 Tom Tromey <tom@tromey.com>
4966
4967 * run-on-main-thread.c: Update include.
4968 * unittests/main-thread-selftests.c: Update include.
4969 * tui/tui-win.c: Update include.
4970 * tui/tui-io.c: Update include.
4971 * tui/tui-interp.c: Update include.
4972 * tui/tui-hooks.c: Update include.
4973 * top.h: Update include.
4974 * top.c: Update include.
4975 * ser-base.c: Update include.
4976 * remote.c: Update include.
4977 * remote-notif.c: Update include.
4978 * remote-fileio.c: Update include.
4979 * record-full.c: Update include.
4980 * record-btrace.c: Update include.
4981 * python/python.c: Update include.
4982 * posix-hdep.c: Update include.
4983 * mingw-hdep.c: Update include.
4984 * mi/mi-main.c: Update include.
4985 * mi/mi-interp.c: Update include.
4986 * main.c: Update include.
4987 * linux-nat.c: Update include.
4988 * interps.c: Update include.
4989 * infrun.c: Update include.
4990 * inf-loop.c: Update include.
4991 * event-top.c: Update include.
4992 * event-loop.c: Move to ../gdbsupport/.
4993 * event-loop.h: Move to ../gdbsupport/.
4994 * async-event.h: Update include.
4995 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4996
93b54c8e
TT
49972020-04-13 Tom Tromey <tom@tromey.com>
4998
4999 * tui/tui-win.c: Include async-event.h.
5000 * remote.c: Include async-event.h.
5001 * remote-notif.c: Include async-event.h.
5002 * record-full.c: Include async-event.h.
5003 * record-btrace.c: Include async-event.h.
5004 * infrun.c: Include async-event.h.
5005 * event-top.c: Include async-event.h.
5006 * event-loop.h: Move some declarations to async-event.h.
5007 * event-loop.c: Don't include ser-event.h or top.h. Move some
5008 code to async-event.c.
5009 * async-event.h: New file.
5010 * async-event.c: New file.
5011 * Makefile.in (COMMON_SFILES): Add async-event.c.
5012 (HFILES_NO_SRCDIR): Add async-event.h.
5013
c1cd3163
TT
50142020-04-13 Tom Tromey <tom@tromey.com>
5015
5016 * utils.c (flush_streams): New function.
5017 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5018
29f2bf4f
TT
50192020-04-13 Tom Tromey <tom@tromey.com>
5020
5021 * event-loop.c (handle_file_event): Use warning, not
5022 printf_unfiltered.
5023
98029d02
TT
50242020-04-13 Tom Tromey <tom@tromey.com>
5025
5026 * event-loop.c: Include <chrono>.
5027
06cc9596
TT
50282020-04-13 Tom Tromey <tom@tromey.com>
5029
5030 * gdb_select.h: Move to ../gdbsupport/.
5031 * event-loop.c: Update include path.
5032 * top.c: Update include path.
5033 * ser-base.c: Update include path.
5034 * ui-file.c: Update include path.
5035 * ser-tcp.c: Update include path.
5036 * guile/scm-ports.c: Update include path.
5037 * posix-hdep.c: Update include path.
5038 * ser-unix.c: Update include path.
5039 * gdb_usleep.c: Update include path.
5040 * mingw-hdep.c: Update include path.
5041 * inflow.c: Update include path.
5042 * infrun.c: Update include path.
5043 * event-top.c: Update include path.
5044
8ae8e197
TT
50452020-04-13 Tom Tromey <tom@tromey.com>
5046
5047 * configure: Rebuild.
5048 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5049
58cf28e8
TT
50502020-04-13 Tom Tromey <tom@tromey.com>
5051
5052 * event-loop.h (start_event_loop): Don't declare.
5053 * event-loop.c (start_event_loop): Move...
5054 * main.c (start_event_loop): ...here. Now static.
5055
b7f999ae
SDJ
50562020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5057
5058 * MAINTAINERS: Update my email address.
5059
1085dfd4
KR
50602020-04-12 Kamil Rytarowski <n54@gmx.com>
5061
5062 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5063 IP_ALL.
5064
49d1d1f5
KR
50652020-04-12 Kamil Rytarowski <n54@gmx.com>
5066
5067 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5068 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5069
b4848d2a
KR
50702020-04-12 Kamil Rytarowski <n54@gmx.com>
5071
5072 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5073 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5074
51c133d5
KR
50752020-04-12 Kamil Rytarowski <n54@gmx.com>
5076
5077 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5078
54b8cbd0
KR
50792020-04-11 Kamil Rytarowski <n54@gmx.com>
5080
5081 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5082 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5083 (nbsd_nat_target::info_proc): New functions.
5084 * nbsd-nat.c (kinfo_get_vmmap): New function.
5085 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5086 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5087 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5088 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5089 functions.
5090 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5091 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5092 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5093 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5094 (KINFO_VME_FLAG_GROWS_DOWN): New.
5095
cf83625d
AS
50962020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5097
5098 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5099 bit shift.
5100
0c4311ab
TT
51012020-04-10 Tom Tromey <tromey@adacore.com>
5102
5103 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5104
3e65b3e9
TT
51052020-04-10 Tom Tromey <tromey@adacore.com>
5106
5107 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5108 separate debug files.
5109
13302e95
HD
51102020-04-10 Hannes Domani <ssbssa@yahoo.de>
5111
5112 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5113 Move to...
5114 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5115 ... here.
5116 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5117 Check for STATUS_WX86_BREAKPOINT.
5118 (windows_nat_target::wait): Same.
5119
bdfc1e8a
TV
51202020-04-10 Tom de Vries <tdevries@suse.de>
5121
5122 PR cli/25808
5123 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5124
f4460aec
SM
51252020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5126
5127 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5128 (Write After Approval): Remove Tom de Vries.
5129
a25198bb
BE
51302020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5131
5132 revert partially:
5133 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5134
aac66a4c
SM
5135 * buildsym.c (record_line): Fix undefined behavior and preserve
5136 lines at eof.
a25198bb 5137
206c98a6
KR
51382020-04-09 Kamil Rytarowski <n54@gmx.com>
5139
5140 * auxv.h (svr4_auxv_parse): New.
5141 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5142 and generic_auxv_parse.
5143 (svr4_auxv_parse): Add.
5144 * obsd-tdep.c: Include "auxv.h".
5145 (obsd_auxv_parse): Remove.
5146 (obsd_init_abi): Remove comment.
5147 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5148 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5149 * nbsd-tdep.c: Include "auxv.h".
5150 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5151
71fbdbaf
TT
51522020-04-08 Tom Tromey <tromey@adacore.com>
5153
5154 * nat/windows-nat.h (last_wait_event): Don't declare.
5155 (wait_for_debug_event): Update comment.
5156 * nat/windows-nat.c (last_wait_event): Now static.
5157
2c1d95e8
TT
51582020-04-08 Tom Tromey <tromey@adacore.com>
5159
5160 * windows-nat.c (wait_for_debug_event): Move to
5161 nat/windows-nat.c.
5162 * nat/windows-nat.h (wait_for_debug_event): Declare.
5163 * nat/windows-nat.c (wait_for_debug_event): Move from
5164 windows-nat.c. No longer static.
5165
d2977bc4
TT
51662020-04-08 Tom Tromey <tromey@adacore.com>
5167
5168 * windows-nat.c (get_windows_debug_event): Use
5169 fetch_pending_stop.
5170 * nat/windows-nat.h (fetch_pending_stop): Declare.
5171 * nat/windows-nat.c (fetch_pending_stop): New function.
5172
e758e19c
TT
51732020-04-08 Tom Tromey <tromey@adacore.com>
5174
5175 * windows-nat.c (windows_continue): Use matching_pending_stop and
5176 continue_last_debug_event.
5177 * nat/windows-nat.h (matching_pending_stop)
5178 (continue_last_debug_event): Declare.
5179 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5180 (matching_pending_stop, continue_last_debug_event): New
5181 functions.
5182
8d30e395
TT
51832020-04-08 Tom Tromey <tromey@adacore.com>
5184
5185 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5186 (handle_exception_result): Move to nat/windows-nat.h.
5187 (DEBUG_EXCEPTION_SIMPLE): Remove.
5188 (windows_nat::handle_ms_vc_exception): New function.
5189 (handle_exception): Move to nat/windows-nat.c.
5190 (get_windows_debug_event): Update.
5191 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5192 nat/windows-nat.c.
5193 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5194 (handle_exception_result): Move from windows-nat.c.
5195 (handle_exception): Declare.
5196 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5197 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5198 windows-nat.c.
5199
29de418d
TT
52002020-04-08 Tom Tromey <tromey@adacore.com>
5201
5202 * windows-nat.c (exception_count, event_count): Remove.
5203 (handle_exception, get_windows_debug_event)
5204 (do_initial_windows_stuff): Update.
5205
a816ba18
TT
52062020-04-08 Tom Tromey <tromey@adacore.com>
5207
5208 * windows-nat.c (windows_nat::handle_load_dll)
5209 (windows_nat::handle_unload_dll): Rename. No longer static.
5210 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5211 Declare.
5212
a00caa12
TT
52132020-04-08 Tom Tromey <tromey@adacore.com>
5214
5215 * complaints.h (stop_whining): Declare at top-level.
5216 (complaint): Don't declare stop_whining.
5217
d41b524f
TT
52182020-04-08 Tom Tromey <tromey@adacore.com>
5219
5220 * windows-nat.c (windows_nat::handle_output_debug_string):
5221 Rename. No longer static.
5222 * nat/windows-nat.h (handle_output_debug_string): Declare.
5223
3c76026d
TT
52242020-04-08 Tom Tromey <tromey@adacore.com>
5225
5226 * windows-nat.c (current_process_handle, current_process_id)
5227 (main_thread_id, last_sig, current_event, last_wait_event)
5228 (current_windows_thread, desired_stop_thread_id, pending_stops)
5229 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5230 (display_selectors, fake_create_process)
5231 (get_windows_debug_event): Update.
5232 * nat/windows-nat.h (current_process_handle, current_process_id)
5233 (main_thread_id, last_sig, current_event, last_wait_event)
5234 (current_windows_thread, desired_stop_thread_id, pending_stops)
5235 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5236 * nat/windows-nat.c (current_process_handle, current_process_id)
5237 (main_thread_id, last_sig, current_event, last_wait_event)
5238 (current_windows_thread, desired_stop_thread_id, pending_stops)
5239 (siginfo_er): New globals. Move from windows-nat.c.
5240
9d8679cc
TT
52412020-04-08 Tom Tromey <tromey@adacore.com>
5242
5243 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5244 (handle_load_dll): Update.
5245 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5246
28688adf
TT
52472020-04-08 Tom Tromey <tromey@adacore.com>
5248
5249 * windows-nat.c (enum thread_disposition_type): Move to
5250 nat/windows-nat.h.
5251 (windows_nat::thread_rec): Rename from thread_rec. No longer
5252 static.
5253 (windows_add_thread, windows_nat_target::fetch_registers)
5254 (windows_nat_target::store_registers, handle_exception)
5255 (windows_nat_target::resume, get_windows_debug_event)
5256 (windows_nat_target::get_tib_address)
5257 (windows_nat_target::thread_name)
5258 (windows_nat_target::thread_alive): Update.
5259 * nat/windows-nat.h (enum thread_disposition_type): Move from
5260 windows-nat.c.
5261 (thread_rec): Declare.
5262
4834dad0
TT
52632020-04-08 Tom Tromey <tromey@adacore.com>
5264
5265 * windows-nat.c: Add "using namespace".
5266 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5267 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5268
65bafd5b
TT
52692020-04-08 Tom Tromey <tromey@adacore.com>
5270
5271 * nat/windows-nat.h (struct windows_thread_info): Declare
5272 destructor.
5273 * nat/windows-nat.c (~windows_thread_info): New.
5274
0a4afda3
TT
52752020-04-08 Tom Tromey <tromey@adacore.com>
5276
5277 PR gdb/22992
5278 * windows-nat.c (current_event): Update comment.
5279 (last_wait_event, desired_stop_thread_id): New globals.
5280 (struct pending_stop): New.
5281 (pending_stops): New global.
5282 (windows_nat_target) <stopped_by_sw_breakpoint>
5283 <supports_stopped_by_sw_breakpoint>: New methods.
5284 (windows_fetch_one_register): Add assertions. Adjust PC.
5285 (windows_continue): Handle pending stops. Suspend other threads
5286 when stepping. Use last_wait_event
5287 (wait_for_debug_event): New function.
5288 (get_windows_debug_event): Use wait_for_debug_event. Handle
5289 pending stops. Queue spurious stops.
5290 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5291 (windows_nat_target::kill): Use wait_for_debug_event.
5292 * nat/windows-nat.h (struct windows_thread_info)
5293 <stopped_at_software_breakpoint>: New field.
5294 * nat/windows-nat.c (windows_thread_info::resume): Clear
5295 stopped_at_software_breakpoint.
5296
8e61ebec
TT
52972020-04-08 Tom Tromey <tromey@adacore.com>
5298
5299 * windows-nat.c (enum thread_disposition_type): New.
5300 (thread_rec): Replace "get_context" parameter with "disposition";
5301 change type.
5302 (windows_add_thread, windows_nat_target::fetch_registers)
5303 (windows_nat_target::store_registers, handle_exception)
5304 (windows_nat_target::resume, get_windows_debug_event)
5305 (windows_nat_target::get_tib_address)
5306 (windows_nat_target::thread_name)
5307 (windows_nat_target::thread_alive): Update.
5308
98a03287
TT
53092020-04-08 Tom Tromey <tromey@adacore.com>
5310
5311 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5312 (windows_continue): Use windows_continue::resume.
5313 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5314 resume>: Declare new methods.
5315 * nat/windows-nat.c: New file.
5316 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5317
7c7411bc
TT
53182020-04-08 Tom Tromey <tromey@adacore.com>
5319
5320 * windows-nat.c (windows_add_thread, windows_delete_thread)
5321 (windows_nat_target::fetch_registers)
5322 (windows_nat_target::store_registers, fake_create_process)
5323 (windows_nat_target::resume, windows_nat_target::resume)
5324 (get_windows_debug_event, windows_nat_target::wait)
5325 (windows_nat_target::pid_to_str)
5326 (windows_nat_target::get_tib_address)
5327 (windows_nat_target::get_ada_task_ptid)
5328 (windows_nat_target::thread_name)
5329 (windows_nat_target::thread_alive): Use lwp, not tid.
5330
2950fdf7
TT
53312020-04-08 Tom Tromey <tromey@adacore.com>
5332
5333 * windows-nat.c (handle_exception)
5334 (windows_nat_target::thread_name): Update.
5335 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5336 <name>: Now unique_xmalloc_ptr.
5337
62fe396b
TT
53382020-04-08 Tom Tromey <tromey@adacore.com>
5339
5340 * windows-nat.c (thread_rec)
5341 (windows_nat_target::fetch_registers): Update.
5342 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5343 Update comment.
5344 <debug_registers_changed, reload_context>: Now bool.
5345
e9534bd2
TT
53462020-04-08 Tom Tromey <tromey@adacore.com>
5347
5348 * windows-nat.c (windows_add_thread): Use new.
5349 (windows_init_thread_list, windows_delete_thread): Use delete.
5350 (get_windows_debug_event): Update.
5351 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5352 destructor, and initializers.
5353
ae1f8880
TT
53542020-04-08 Tom Tromey <tromey@adacore.com>
5355
5356 * windows-nat.c (struct windows_thread_info): Remove.
5357 * nat/windows-nat.h: New file.
5358
55a1e039
TT
53592020-04-08 Tom Tromey <tromey@adacore.com>
5360
5361 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5362 (thread_rec, windows_add_thread, windows_delete_thread)
5363 (windows_continue): Update.
5364
93366324
TT
53652020-04-08 Tom Tromey <tromey@adacore.com>
5366
5367 * windows-nat.c (struct windows_thread_info): Remove typedef.
5368 (thread_head): Remove.
5369 (thread_list): New global.
5370 (thread_rec, windows_add_thread, windows_init_thread_list)
5371 (windows_delete_thread, windows_continue): Update.
5372
0f2265e2
SM
53732020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5374
5375 * windows-tdep.h (windows_init_abi): Add comment.
5376 (cygwin_init_abi): New declaration.
5377 * windows-tdep.c: Split signal enumeration in two, one for
5378 Windows and one for Cygwin.
5379 (windows_gdb_signal_to_target): Only deal with signal of the
5380 Windows OS ABI.
5381 (cygwin_gdb_signal_to_target): New function.
5382 (windows_init_abi): Rename to windows_init_abi_common, don't set
5383 gdb_signal_to_target gdbarch method. Add new new function with
5384 this name.
5385 (cygwin_init_abi): New function.
5386 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5387 comment. Don't call windows_init_abi.
5388 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5389 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5390 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5391 i386_windows_init_abi_common, don't call windows_init_abi. Add
5392 a new function of this name.
5393 (i386_cygwin_init_abi): New function.
5394 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5395 OS ABI Cygwin.
5396
3810f182
SM
53972020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5398
5399 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5400 parameter.c.
5401 (dwarf2_read_gdb_index): Update.
5402
063f8e80
KR
54032020-04-07 Kamil Rytarowski <n54@gmx.com>
5404
5405 * nbsd-tdep.c: Include "objfiles.h".
5406 (nbsd_skip_solib_resolver): New.
5407 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5408
85a9510c 54092020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5410
5411 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5412 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5413 with DW_LLE_base_addressx are being emitted in DWARFv5.
5414 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5415 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5416 unsigned integer.
5417
9fc3eaae 54182020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5419
5420 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5421 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5422 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5423 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5424 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5425 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5426 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5427
5428
41144253 54292020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5430
5431 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5432 (read_loclist_index): New function definition.
5433 (lookup_loclist_base): New function definition.
5434 (read_loclist_header): New function definition.
5435 (dwarf2_cu): Add loclist_base and loclist_header field.
5436 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5437 (read_full_die_1): Read the value of DW_AT_loclists_base.
5438 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5439 (read_attribute_value): Handle DW_FORM_loclistx.
5440 (skip_one_die): Handle DW_FORM_loclistx.
5441 (loclist_header): New structure declaration.
5442 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5443
9f4e76a4
SM
54442020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5445
5446 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5447 constructor. Remove `addr` parameter from other constructor and
5448 add `per_cu` parameter.
5449 * dwarf2/read.c (create_partial_symtab): Update.
5450
25c11aca
TV
54512020-04-07 Tom de Vries <tdevries@suse.de>
5452
5453 PR symtab/25796
5454 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5455 (partial_die_info::fixup): Inherit has_const_value.
5456
5707e24b
TV
54572020-04-07 Tom de Vries <tdevries@suse.de>
5458
5459 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5460 symbols without address.
5461
05f00e22
KR
54622020-04-06 Kamil Rytarowski <n54@gmx.com>
5463
5464 * nbsd-nat.h (struct thread_info): Add forward declaration.
5465 (nbsd_nat_target::thread_alive): Add.
5466 (nbsd_nat_target::thread_name): Likewise.
5467 (nbsd_nat_target::update_thread_list): Likewise.
5468 (update_thread_list::post_attach): Likewise.
5469 (post_attach::pid_to_str): Likewise.
5470 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5471 (nbsd_thread_lister): Add.
5472 (nbsd_nat_target::thread_alive): Likewise.
5473 (nbsd_nat_target::thread_name): Likewise.
5474 (nbsd_add_threads): Likewise.
5475 (update_thread_list::post_attach): Likewise.
5476 (nbsd_nat_target::update_thread_list): Likewise.
5477 (post_attach::pid_to_str): Likewise.
5478
6ee448cc
TT
54792020-04-06 Tom Tromey <tromey@adacore.com>
5480
5481 * ada-valprint.c (print_variant_part): Extract the variant field.
5482 (print_field_values): Use the field as the outer value when
5483 recursing.
5484
dea34e8c
TT
54852020-04-06 Tom Tromey <tromey@adacore.com>
5486
5487 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5488 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5489 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5490 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5491 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5492
93689ce9
TT
54932020-04-06 Tom Tromey <tromey@adacore.com>
5494
5495 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5496 TYPE_CODE_ERROR.
5497
79743962
KR
54982020-04-06 Kamil Rytarowski <n54@gmx.com>
5499
5500 * nbsd-tdep.c: Include "gdbarch.h".
5501 Define enum with NetBSD signal numbers.
5502 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5503 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5504 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5505 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5506 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5507 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5508 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5509 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5510 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5511 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5512 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5513 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5514
9e7c9a03
HD
55152020-04-03 Hannes Domani <ssbssa@yahoo.de>
5516
5517 PR gdb/25325
5518 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5519
d9e49b61
TT
55202020-04-03 Tom Tromey <tromey@adacore.com>
5521
5522 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5523 Read constant block.
5524
e0fc5c3f
SM
55252020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5526
5527 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5528 (gdb_bfd_get_full_section_contents): New declaration.
5529 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5530 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5531 gdb_bfd_get_full_section_contents.
5532
e2ff18a0
SM
55332020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5534
5535 * exec.c (build_section_table): Replace internal_error with
5536 gdb_assert.
5537 (section_table_xfer_memory_partial): Likewise.
5538 * mdebugread.c (parse_partial_symbols): Likewise.
5539 * psymtab.c (lookup_partial_symbol): Likewise.
5540 * utils.c (wrap_here): Likewise.
5541
0830d301
TT
55422020-04-02 Tom Tromey <tromey@adacore.com>
5543
5544 * f-lang.c (build_fortran_types): Use arch_type to initialize
5545 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5546
e7da7f8f
TT
55472020-04-02 Tom Tromey <tromey@adacore.com>
5548
5549 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5550 of attributes.
5551
c90d28ac
AB
55522020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5553 Bernd Edlinger <bernd.edlinger@hotmail.de>
5554 Tom Tromey <tromey@adacore.com>
5555
5556 * buildsym.c (buildsym_compunit::record_line): Remove
5557 deduplication code.
5558
1aa98955
TV
55592020-04-02 Tom de Vries <tdevries@suse.de>
5560
5561 PR ada/24671
5562 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5563
d3214198
TV
55642020-04-02 Tom de Vries <tdevries@suse.de>
5565
5566 * dwarf2/read.c (dwarf2_gdb_index_functions,
5567 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5568 NULL.
5569 * psymtab.c (psym_lookup_global_symbol_language): New function.
5570 (psym_functions): Init psym_lookup_global_symbol_language with
5571 psym_lookup_global_symbol_language.
5572 * symfile-debug.c (debug_sym_quick_functions): Init
5573 lookup_global_symbol_language with NULL.
5574 * symfile.c (set_initial_language): Remove fixme comment.
5575 * symfile.h (struct quick_symbol_functions): Add
5576 lookup_global_symbol_language.
5577 * symtab.c (find_quick_global_symbol_language): New function.
5578 (find_main_name): Use find_quick_global_symbol_language.
5579
2836752f
SM
55802020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5581
5582 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5583
64dc2d4b
BE
55842020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5585
5586 * buildsym.c (record_line): Fix undefined behavior and preserve
5587 lines at eof.
5588
bbe3dc41
BE
55892020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5590
5591 * buildsym.c (record_line): Fix the resizing condition.
5592
6b4a335b
TT
55932020-04-01 Tom Tromey <tom@tromey.com>
5594
5595 * value.h (value_literal_complex): Add comment.
5596 * valops.c (value_literal_complex): Refer to value.h.
5597
3638a098
TT
55982020-04-01 Tom Tromey <tom@tromey.com>
5599
5600 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5601 (scalar_type): New rule, from typebase.
5602 (typebase): Use scalar_type. Recognize complex types.
5603 (field_name): Handle FLOAT_KEYWORD.
5604 (ident_tokens): Add _Complex and __complex__.
5605
c34e8714
TT
56062020-04-01 Tom Tromey <tom@tromey.com>
5607
5608 PR exp/25299:
5609 * valarith.c (promotion_type, complex_binop): New functions.
5610 (scalar_binop): Handle complex numbers. Use promotion_type.
5611 (value_pos, value_neg, value_complement): Handle complex numbers.
5612
fa649bb7
TT
56132020-04-01 Tom Tromey <tom@tromey.com>
5614
5615 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5616 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5617 (parse_number): Handle complex numbers.
5618
981c08ce
TT
56192020-04-01 Tom Tromey <tom@tromey.com>
5620
5621 * c-valprint.c (c_decorations): Change complex suffix to "i".
5622
4c99290d
TT
56232020-04-01 Tom Tromey <tom@tromey.com>
5624
5625 * valprint.c (generic_value_print_complex): Use accessors.
5626 * value.h (value_real_part, value_imaginary_part): Declare.
5627 * valops.c (value_real_part, value_imaginary_part): New
5628 functions.
5629 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5630
5b930b45
TT
56312020-04-01 Tom Tromey <tom@tromey.com>
5632
5633 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5634 (read_range_type): Update.
5635 * mdebugread.c (basic_type): Update.
5636 * go-lang.c (build_go_types): Use init_complex_type.
5637 * gdbtypes.h (struct main_type) <complex_type>: New member.
5638 (init_complex_type): Update.
5639 (arch_complex_type): Don't declare.
5640 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5641 Make name if none given. Use alloc_type_copy. Look for cached
5642 complex type.
5643 (arch_complex_type): Remove.
5644 (gdbtypes_post_init): Use init_complex_type.
5645 * f-lang.c (build_fortran_types): Use init_complex_type.
5646 * dwarf2/read.c (read_base_type): Update.
5647 * d-lang.c (build_d_types): Use init_complex_type.
5648 * ctfread.c (read_base_type): Update.
5649
53cccef1
TBA
56502020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5651
5652 * infrun.c (stop_all_threads): Update assertion, plus when
5653 stopping threads, take into account that we might be trying
5654 to stop an all-stop target.
5655 (stop_waiting): Call 'stop_all_threads' if there exists a
5656 non-stop target.
5657
a0714d30
TBA
56582020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5659
5660 * target.h (exists_non_stop_target): New function declaration.
5661 * target.c (exists_non_stop_target): New function.
5662
60e22c1e
HD
56632020-04-01 Hannes Domani <ssbssa@yahoo.de>
5664
5665 PR gdb/24789
5666 * eval.c (is_integral_or_integral_reference): New function.
5667 (evaluate_subexp_standard): Allow integer references in
5668 pointer arithmetic.
5669
e139a727
TBA
56702020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5671
5672 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5673 check for no ptid in the stop reply when the target is non-stop.
5674
e0802d59
TT
56752020-04-01 Tom Tromey <tromey@adacore.com>
5676
5677 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5678 "name" parameter to rvalue reference. Initialize m_name_holder.
5679 <lookup_name_info>: New overloads.
5680 <name>: Return gdb::string_view.
5681 <c_str>: New method.
5682 <make_ignore_params>: Update.
5683 <search_name_hash>: Update.
5684 <language_lookup_name>: Return const char *.
5685 <m_name>: Change type.
5686 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5687 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5688 (lookup_name_info::match_any): Update.
5689 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5690 Update.
5691 * minsyms.c (linkage_name_str): Update.
5692 * language.c (default_symbol_name_matcher): Update.
5693 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5694 Update.
5695 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5696 (ada_lookup_name_info::ada_lookup_name_info): Update.
5697 (literal_symbol_name_matcher): Update.
5698
8c072cb6
TT
56992020-04-01 Tom Tromey <tromey@adacore.com>
5700
5701 * psymtab.c (psymtab_search_name): Remove function.
5702 (psym_lookup_symbol): Create search name and lookup name here.
5703 (lookup_partial_symbol): Remove "name" parameter; add
5704 lookup_name.
5705 (psym_expand_symtabs_for_function): Update.
5706
6f29a534
TT
57072020-03-31 Joel Jones <joelkevinjones@gmail.com>
5708
5709 PR tui/25597:
5710 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5711
af62665e
TT
57122020-03-31 Tom Tromey <tromey@adacore.com>
5713
5714 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5715 memcpy.
5716
d1a89da5
NC
57172020-03-30 Nelson Chu <nelson.chu@sifive.com>
5718
5719 * features/riscv/32bit-csr.xml: Regenerated.
5720 * features/riscv/64bit-csr.xml: Regenerated.
5721
d8af9068
TT
57222020-03-30 Tom Tromey <tromey@adacore.com>
5723
5724 * ada-valprint.c (print_variant_part): Update.
5725 * ada-lang.h (ada_which_variant_applies): Update.
5726 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5727 outer_valaddr parameters; replace with "outer" value parameter.
5728 (to_fixed_variant_branch_type): Update.
5729
227c0bf4
PFC
57302020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5731
5732 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5733 <list>. Remove inclusion of observable.h.
5734 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5735 (struct arch_lwp_info): New struct.
5736 (class ppc_linux_dreg_interface): New class.
5737 (struct ppc_linux_process_info): New struct.
5738 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5739 <low_new_clone, low_forget_process, low_prepare_to_resume>
5740 <copy_thread_dreg_state, mark_thread_stale>
5741 <mark_debug_registers_changed, register_hw_breakpoint>
5742 <clear_hw_breakpoint, register_wp, clear_wp>
5743 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5744 <num_memory_accesses, get_trigger_type>
5745 <create_watchpoint_request, hwdebug_point_cmp>
5746 <init_arch_lwp_info, get_arch_lwp_info>
5747 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5748 methods.
5749 <struct ptid_hash>: New inner struct.
5750 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5751 members.
5752 (saved_dabr_value, hwdebug_info, max_slots_number)
5753 (struct hw_break_tuple, struct thread_points, ppc_threads)
5754 (have_ptrace_hwdebug_interface)
5755 (hwdebug_find_thread_points_by_tid)
5756 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5757 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5758 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5759 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5760 use m_dreg_interface.
5761 (hwdebug_point_cmp): Change to...
5762 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5763 reference arguments instead of pointers.
5764 (ppc_linux_nat_target::ranged_break_num_registers): Use
5765 m_dreg_interface.
5766 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5767 m_dreg_interface. Call register_hw_breakpoint.
5768 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5769 m_dreg_interface. Call clear_hw_breakpoint.
5770 (get_trigger_type): Change to...
5771 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5772 comment.
5773 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5774 use m_dreg_interface. Call register_hw_breakpoint.
5775 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5776 use m_dreg_interface. Call clear_hw_breakpoint.
5777 (can_use_watchpoint_cond_accel): Change to...
5778 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5779 method. Update comment, use m_dreg_interface and
5780 m_process_info.
5781 (calculate_dvc): Change to...
5782 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5783 m_dreg_interface.
5784 (num_memory_accesses): Change to...
5785 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5786 (check_condition): Change to...
5787 (ppc_linux_nat_target::check_condition): ...this method.
5788 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5789 comment, use m_dreg_interface.
5790 (create_watchpoint_request): Change to...
5791 (ppc_linux_nat_target::create_watchpoint_request): ...this
5792 method. Use m_dreg_interface.
5793 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5794 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5795 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5796 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5797 (ppc_linux_nat_target::low_forget_process)
5798 (ppc_linux_nat_target::low_new_fork)
5799 (ppc_linux_nat_target::low_new_clone)
5800 (ppc_linux_nat_target::low_delete_thread)
5801 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5802 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5803 only call mark_thread_stale.
5804 (ppc_linux_thread_exit): Remove.
5805 (ppc_linux_nat_target::stopped_data_address): Change to...
5806 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5807 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5808 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5809 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5810 comment. Call low_stopped_data_address.
5811 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5812 m_dreg_interface.
5813 (ppc_linux_nat_target::masked_watch_num_registers): Use
5814 m_dreg_interface.
5815 (ppc_linux_nat_target::copy_thread_dreg_state)
5816 (ppc_linux_nat_target::mark_thread_stale)
5817 (ppc_linux_nat_target::mark_debug_registers_changed)
5818 (ppc_linux_nat_target::register_hw_breakpoint)
5819 (ppc_linux_nat_target::clear_hw_breakpoint)
5820 (ppc_linux_nat_target::register_wp)
5821 (ppc_linux_nat_target::clear_wp)
5822 (ppc_linux_nat_target::init_arch_lwp_info)
5823 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5824 (_initialize_ppc_linux_nat): Remove observer callback.
5825
4db10d8f
PFC
58262020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5827
5828 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5829 (ppc_linux_nat_target::auxv_parse)
5830 (ppc_linux_nat_target::read_description)
5831 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5832 Move up.
5833
1310c1b0
PFC
58342020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5835
5836 * linux-nat.h (low_new_clone): New method.
5837 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5838
69b037c3
SM
58392020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5840
5841 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5842 (dbx_expand_psymtab): ... this.
5843 (start_psymtab): Update.
5844 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5845 (mdebug_expand_psymtab): ... this.
5846 (parse_partial_symbols): Update.
5847 (new_psymtab): Update.
5848 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5849 (xcoff_expand_psymtab): ... this.
5850 (xcoff_start_psymtab): Update.
5851
48993951
SM
58522020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5853
5854 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5855 <expand_dependencies>: ... this.
5856 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5857 (partial_symtab::expand_dependencies): ... this.
5858 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5859 Update.
5860 (dwarf2_psymtab::expand_psymtab): Update.
5861 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5862 * mdebugread.c (psymtab_to_symtab_1): Update.
5863 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5864
3ad83046
SM
58652020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5866
5867 * psympriv.h (discard_psymtab): Remove.
5868 * dbxread.c (dbx_end_psymtab): Update.
5869 * xcoffread.c (xcoff_end_psymtab): Update.
5870
4d1b9ab6
TT
58712020-03-28 Tom Tromey <tom@tromey.com>
5872
5873 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5874 comment.
5875
f1749218
TT
58762020-03-28 Tom Tromey <tom@tromey.com>
5877
5878 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5879
ebea7626
HD
58802020-03-27 Hannes Domani <ssbssa@yahoo.de>
5881
5882 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5883
a879b4d5
JB
58842020-03-26 John Baldwin <jhb@FreeBSD.org>
5885
5886 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5887
0826b30a
TT
58882020-03-26 Tom Tromey <tom@tromey.com>
5889
5890 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5891 (mark_common_block_symbol_computed, read_tag_string_type)
5892 (attr_to_dynamic_prop, read_subrange_type): Update.
5893 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5894 to be methods on struct attribute.
5895 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5896 (read_call_site_scope, partial_die_info::read)
5897 (partial_die_info::read, lookup_die_type, follow_die_ref):
5898 Update.
5899 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5900 from dwarf2_get_ref_die_offset.
5901 (attribute::constant_value): New method, from
5902 dwarf2_get_attr_constant_value.
5903 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5904 Declare method.
5905 <constant_value>: New method.
5906
2b2558bf
TT
59072020-03-26 Tom Tromey <tom@tromey.com>
5908
5909 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5910 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5911 (dwarf_type_encoding_name): Move to stringify.c.
5912 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5913 * dwarf2/stringify.c: New file.
5914 * dwarf2/stringify.h: New file.
5915
eeb64781
TT
59162020-03-26 Tom Tromey <tom@tromey.com>
5917
5918 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5919 Rewrite.
5920
a39fdb41
TT
59212020-03-26 Tom Tromey <tom@tromey.com>
5922
5923 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5924 methods.
5925 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5926 (lookup_ranges_base): Likewise.
5927 (read_cutu_die_from_dwo, read_full_die_1): Update.
5928
436c571c
TT
59292020-03-26 Tom Tromey <tom@tromey.com>
5930
5931 * dwarf2/read.c (read_import_statement, read_file_scope)
5932 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5933 (read_lexical_block_scope, read_call_site_scope)
5934 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5935 (handle_struct_member_die, process_structure_scope)
5936 (update_enumeration_type_from_children)
5937 (process_enumeration_scope, read_array_type, read_common_block)
5938 (read_namespace, read_module, read_subroutine_type): Update.
5939 (sibling_die): Remove.
5940
052c8bb8
TT
59412020-03-26 Tom Tromey <tom@tromey.com>
5942
5943 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5944 (build_type_psymtabs_reader, read_structure_type)
5945 (read_enumeration_type, read_full_die_1): Update.
5946 (dwarf2_attr_no_follow): Move to die.h.
5947 * dwarf2/die.h (struct die_info) <attr>: New method.
5948
2b24b6e4
TT
59492020-03-26 Tom Tromey <tom@tromey.com>
5950
5951 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5952 <base_address>: Now an optional.
5953 (dwarf2_find_base_address, dwarf2_rnglists_process)
5954 (dwarf2_ranges_process, fill_in_loclist_baton)
5955 (dwarf2_symbol_mark_computed): Update.
5956
c2d50fd0
TT
59572020-03-26 Tom Tromey <tom@tromey.com>
5958
5959 * dwarf2/read.c (struct die_info): Move to die.h.
5960 * dwarf2/die.h: New file.
5961
0df7ad3a
TT
59622020-03-26 Tom Tromey <tom@tromey.com>
5963
5964 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5965 * dwarf2/read.c
5966 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5967 Move to line-header.c.
5968 (read_checked_initial_length_and_offset, read_formatted_entries):
5969 Likewise.
5970 (dwarf_decode_line_header): Split into two.
5971 * dwarf2/line-header.c
5972 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5973 Move from read.c.
5974 (read_checked_initial_length_and_offset, read_formatted_entries):
5975 Likewise.
5976 (dwarf_decode_line_header): New function, split from read.c.
5977
86c0bb4c
TT
59782020-03-26 Tom Tromey <tom@tromey.com>
5979
5980 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5981 Declare method.
5982 * dwarf2/read.c (read_attribute_value): Update.
5983 (dwarf2_per_objfile::read_line_string): Rename from
5984 read_indirect_line_string.
5985 (read_formatted_entries): Update.
5986
2ef46c2f
TT
59872020-03-26 Tom Tromey <tom@tromey.com>
5988
5989 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5990 variable.
5991
4f9c1eda
TT
59922020-03-26 Tom Tromey <tom@tromey.com>
5993
5994 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5995 const.
5996 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5997 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5998 parameter const.
5999
5a0e026f
TT
60002020-03-26 Tom Tromey <tom@tromey.com>
6001
6002 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6003 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6004 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6005 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6006
8844c11b
TT
60072020-03-26 Tom Tromey <tom@tromey.com>
6008
6009 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6010 file_names_size, file_full_name, file_file_name>: Use const.
6011 <file_name_at, file_names>: Add const overload.
6012 * dwarf2/line-header.c (line_header::file_file_name)
6013 (line_header::file_full_name): Update.
6014
c90ec28a
TT
60152020-03-26 Tom Tromey <tom@tromey.com>
6016
6017 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6018 (macro_start_file, consume_improper_spaces)
6019 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6020 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6021 (dwarf_decode_macros): Move to macro.c.
6022 * dwarf2/macro.c: New file.
6023 * dwarf2/macro.h: New file.
6024 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6025
4f44ae6c
TT
60262020-03-26 Tom Tromey <tom@tromey.com>
6027
6028 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6029 method.
6030 * dwarf2/section.c: New method. From
6031 read_indirect_string_at_offset_from.
6032 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6033 (read_indirect_string_at_offset_from): Move to section.c.
6034 (read_indirect_string_at_offset): Rewrite.
6035 (read_indirect_line_string_at_offset): Remove.
6036 (read_indirect_string, read_indirect_line_string)
6037 (dwarf_decode_macro_bytes): Update.
6038
a0194fa8
TT
60392020-03-26 Tom Tromey <tom@tromey.com>
6040
6041 * dwarf2/section.h (struct dwarf2_section_info)
6042 <overload_complaint>: Declare.
6043 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6044 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6045 Rename from dwarf2_section_buffer_overflow_complaint.
6046 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6047 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6048
3d27bbdb
TT
60492020-03-26 Tom Tromey <tom@tromey.com>
6050
6051 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6052 Declare.
6053 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6054 Move from read.c.
6055 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6056 to section.c.
6057
9eac9650
TT
60582020-03-26 Tom Tromey <tom@tromey.com>
6059
6060 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6061
bf80d710
TT
60622020-03-26 Tom Tromey <tom@tromey.com>
6063
6064 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6065 "builder".
6066 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6067 parameter.
6068 (dwarf_decode_macros): Update.
6069
0314b390
TT
60702020-03-26 Tom Tromey <tom@tromey.com>
6071
6072 * dwarf2/read.c (read_attribute_value): Update.
6073 (read_indirect_string_from_dwz): Move to dwz.c; change into
6074 method.
6075 (dwarf_decode_macro_bytes): Update.
6076 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6077 * dwarf2/dwz.c: New file.
6078 * Makefile.in (COMMON_SFILES): Add dwz.c.
6079
9fda78b6
TT
60802020-03-26 Tom Tromey <tom@tromey.com>
6081
6082 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6083 * dwarf2/read.c: Add include.
6084 * dwarf2/index-write.c: Add include.
6085 * dwarf2/index-cache.c: Add include.
6086 * dwarf2/dwz.h: New file.
6087
33aa3c10
TT
60882020-03-25 Tom Tromey <tom@tromey.com>
6089
6090 * compile/compile-object-load.c (get_out_value_type): Mention
6091 correct symbol name in error message.
6092
d503b685
HD
60932020-03-25 Hannes Domani <ssbssa@yahoo.de>
6094
6095 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6096
7b1eff95
TV
60972020-03-25 Tom de Vries <tdevries@suse.de>
6098
6099 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6100 * symmisc.c (dump_symtab_1): Print user and includes fields.
6101 (maintenance_info_symtabs): Same.
6102
dd895392
AB
61032020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6104
6105 PR gdb/25534
6106 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6107 (riscv_regcache_cooked_write): New function.
6108 (riscv_push_dummy_call): Use new function.
6109 (riscv_return_value): Likewise.
6110
5ab2fbf1
SM
61112020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6112
6113 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6114 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6115 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6116 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6117 * infrun.c (follow_fork): Likewise.
6118 (follow_fork_inferior): Likewise.
6119 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6120 * linux-nat.h (class linux_nat_target): Likewise.
6121 * remote.c (class remote_target) <follow_fork>: Likewise.
6122 (remote_target::follow_fork): Likewise.
6123 * target-delegates.c: Re-generate.
6124 * target.c (default_follow_fork): Likewise.
6125 (target_follow_fork): Likewise.
6126 * target.h (struct target_ops) <follow_fork>: Likewise.
6127 (target_follow_fork): Likewise.
6128
a64fafb5
TV
61292020-03-24 Tom de Vries <tdevries@suse.de>
6130
6131 * psymtab.c (maintenance_info_psymtabs): Print user field.
6132
fe26d3a3
TT
61332020-03-20 Tom Tromey <tromey@adacore.com>
6134
6135 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6136 const.
6137 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6138 const.
6139
c884cc46
SM
61402020-03-20 Simon Marchi <simon.marchi@efficios.com>
6141
6142 * ptrace.m4: Don't check for ptrace declaration.
6143 * config.in: Re-generate.
6144 * configure: Re-generate.
6145 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6146 not defined.
6147
1ff700c2
KR
61482020-03-20 Kamil Rytarowski <n54@gmx.com>
6149
6150 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6151 `PTRACE_TYPE_RET'.
6152 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6153 * sparc-nat.c (gdb_ptrace): Likewise.
6154 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6155
f7d4f0b1
TT
61562020-03-20 Tom Tromey <tromey@adacore.com>
6157
6158 * c-exp.y (lex_one_token): Fix assert.
6159
f67210ff
TT
61602020-03-20 Tom Tromey <tromey@adacore.com>
6161
6162 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6163 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6164 strncpy call.
6165
1773be9e
TT
61662020-03-20 Tom Tromey <tromey@adacore.com>
6167
6168 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6169
70304be9
TT
61702020-03-20 Tom Tromey <tromey@adacore.com>
6171
6172 * ada-valprint.c (print_variant_part): Remove parameters; switch
6173 to value-based API.
6174 (print_field_values): Likewise.
6175 (ada_val_print_struct_union): Likewise.
6176 (ada_value_print_1): Update.
6177
9faa006d
KR
61782020-03-20 Kamil Rytarowski <n54@gmx.com>
6179
6180 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6181 nbsd_nat_target instead of inf_ptrace_target.
6182 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6183 nbsd_nat_target.
6184
4a90f062
KR
61852020-03-20 Kamil Rytarowski <n54@gmx.com>
6186
6187 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6188 it to the ptrace call.
6189 * (store_registers): Likewise.
6190
61912020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6192
6193 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6194 it to the ptrace call.
6195 * (store_registers): Likewise.
6196
2d07da27
LM
61972020-03-19 Luis Machado <luis.machado@linaro.org>
6198
6199 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6200 valid, fetch vg value from ptrace.
6201
f09db380
KR
62022020-03-19 Kamil Rytarowski <n54@gmx.com>
6203 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6204 * inf-ptrace.c: Likewise.
6205 * (gdb_ptrace): Add.
6206 * (inf_ptrace_target::resume): Update.
6207 * (inf_ptrace_target::xfer_partial): Likewise.
6208 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6209 * (inf_ptrace_peek_poke): Update.
6210
fcc7376e
KR
62112020-03-19 Kamil Rytarowski <n54@gmx.com>
6212
6213 * x86-bsd-nat.c (gdb_ptrace): New.
6214 * (x86bsd_dr_set): Add new argument `ptid'.
6215 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6216 x86bsd_dr_set_addr): Update.
6217
cada5fc9
AB
62182020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6219
6220 * remote.c (remote_target::process_stop_reply): Handle events for
6221 all threads differently.
6222
19a2740f
AB
62232020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6224
6225 * completer.c (completion_tracker::remove_completion): Define new
6226 function.
6227 * completer.h (completion_tracker::remove_completion): Declare new
6228 function.
6229 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6230 when adding a C++ function symbol.
6231
724fd9ba
AB
62322020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6233
6234 * completer.c (completion_tracker::completion_hash_entry): Define
6235 new class.
6236 (advance_to_filename_complete_word_point): Call
6237 recompute_lowest_common_denominator.
6238 (completion_tracker::completion_tracker): Call discard_completions
6239 to setup the hash table.
6240 (completion_tracker::discard_completions): Allow for being called
6241 from the constructor, pass new equal function, and element deleter
6242 when constructing the hash table. Initialise new class member
6243 variables.
6244 (completion_tracker::maybe_add_completion): Remove use of
6245 m_entries_vec, and store more information into m_entries_hash.
6246 (completion_tracker::recompute_lcd_visitor): New function, most
6247 content taken from...
6248 (completion_tracker::recompute_lowest_common_denominator):
6249 ...here, this now just visits each item in the hash calling the
6250 above visitor.
6251 (completion_tracker::build_completion_result): Remove use of
6252 m_entries_vec, call recompute_lowest_common_denominator.
6253 * completer.h (completion_tracker::have_completions): Remove use
6254 of m_entries_vec.
6255 (completion_tracker::completion_hash_entry): Declare new class.
6256 (completion_tracker::recompute_lowest_common_denominator): Change
6257 function signature.
6258 (completion_tracker::recompute_lcd_visitor): Declare new function.
6259 (completion_tracker::m_entries_vec): Delete.
6260 (completion_tracker::m_entries_hash): Initialize to NULL.
6261 (completion_tracker::m_lowest_common_denominator_valid): New
6262 member variable.
6263 (completion_tracker::m_lowest_common_denominator_max_length): New
6264 member variable.
6265
5a82b8a1
KR
62662020-03-17 Kamil Rytarowski <n54@gmx.com>
6267
6268 * regformats/regdef.h: Put reg in gdb namespace.
6269
fb516a69
KR
62702020-03-17 Kamil Rytarowski <n54@gmx.com>
6271
6272 * i386-bsd-nat.c (gdb_ptrace): New.
6273 * (i386bsd_fetch_inferior_registers,
6274 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6275 * (i386bsd_fetch_inferior_registers,
6276 i386bsd_store_inferior_registers) Use gdb_ptrace.
6277
1c0aa1fb
KR
62782020-03-17 Kamil Rytarowski <n54@gmx.com>
6279
6280 * amd64-bsd-nat.c (gdb_ptrace): New.
6281 * (amd64bsd_fetch_inferior_registers,
6282 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6283 * (amd64bsd_fetch_inferior_registers,
6284 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6285
5ccd2fb7
KR
62862020-03-17 Kamil Rytarowski <n54@gmx.com>
6287
6288 * user-regs.c (user_reg::read): Rename to...
6289 (user_reg::xread): ...this.
6290 * (append_user_reg): Rename argument `read' to `xread'.
6291 * (user_reg_add_builtin): Likewise.
6292 * (user_reg_add): Likewise.
6293 * (value_of_user_reg): Likewise.
6294
2108a63a
KR
62952020-03-17 Kamil Rytarowski <n54@gmx.com>
6296
6297 * sparc-nat.c (gdb_ptrace): New.
6298 * sparc-nat.c (sparc_fetch_inferior_registers)
6299 (sparc_store_inferior_registers) Remove obsolete comment.
6300 * sparc-nat.c (sparc_fetch_inferior_registers)
6301 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6302 * sparc-nat.c (sparc_fetch_inferior_registers)
6303 (sparc_store_inferior_registers) Use gdb_ptrace.
6304
a225c9a8
KR
63052020-03-17 Kamil Rytarowski <n54@gmx.com>
6306
6307 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6308 it to the ptrace call.
6309 * sh-nbsd-nat.c (store_registers): Likewise.
6310
98097623
KR
63112020-03-17 Kamil Rytarowski <n54@gmx.com>
6312
6313 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6314 nbsd_nat_target instead of inf_ptrace_target.
6315 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6316 nbsd_nat_target.
6317
9e38d619
KR
63182020-03-17 Kamil Rytarowski <n54@gmx.com>
6319
6320 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6321
a2ecbe9f
KR
63222020-03-17 Kamil Rytarowski <n54@gmx.com>
6323
6324 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6325 <sys/sysctl.h>.
6326 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6327
58990295
TV
63282020-03-17 Tom de Vries <tdevries@suse.de>
6329
6330 PR gdb/23710
6331 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6332 fields.
6333 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6334 fields.
6335 (process_imported_unit_die): Skip import of c++ CUs.
6336
771dd3a8
TT
63372020-03-16 Tom Tromey <tom@tromey.com>
6338
6339 * p-valprint.c (pascal_object_print_value): Initialize
6340 base_value.
6341
817a7585
AK
63422020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6343 Shahab Vahedi <shahab@synopsys.com>
6344
6345 * Makefile.in: Add arch/arc.o
6346 * configure.tgt: Likewise.
6347 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6348 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6349 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6350 * arc-tdep.h (arc_read_description): Add proto type.
6351 * arch/arc.c: New file.
6352 * arch/arc.h: Likewise.
6353 * features/Makefile: Replace old target descriptions with new.
6354 * features/arc-arcompact.c: Remove.
6355 * features/arc-arcompact.xml: Likewise.
6356 * features/arc-v2.c: Likewise
6357 * features/arc-v2.xml: Likewise
6358 * features/arc/aux-arcompact.xml: New file.
6359 * features/arc/aux-v2.xml: Likewise.
6360 * features/arc/core-arcompact.xml: Likewise.
6361 * features/arc/core-v2.xml: Likewise.
6362 * features/arc/aux-arcompact.c: Generate.
6363 * features/arc/aux-v2.c: Likewise.
6364 * features/arc/core-arcompact.c: Likewise.
6365 * features/arc/core-v2.c: Likewise.
6366 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6367
67430cd0
TT
63682020-03-16 Tom Tromey <tromey@adacore.com>
6369
6370 PR gdb/25663:
6371 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6372 putting value into bcache.
6373
30efb6c7
SM
63742020-03-16 Simon Marchi <simon.marchi@efficios.com>
6375
6376 PR gdb/21500
6377 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6378 to...
6379 (amd64_windows_init_abi_common): ... this. Don't set size of
6380 long type.
6381 (amd64_windows_init_abi): New function.
6382 (amd64_cygwin_init_abi): New function.
6383 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6384 the Cygwin OS ABI.
6385 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6386 comment.
6387
8db52437
SM
63882020-03-16 Simon Marchi <simon.marchi@efficios.com>
6389
6390 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6391 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6392 (pe_import_directory_entry): New struct type.
6393 (is_linked_with_cygwin_dll): New function.
6394 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6395 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6396 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6397
5982a56a
SM
63982020-03-16 Simon Marchi <simon.marchi@efficios.com>
6399
6400 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6401 i386_cygwin_core_osabi_sniffer.
6402
7a1998df
SM
64032020-03-16 Simon Marchi <simon.marchi@efficios.com>
6404
6405 * i386-cygwin-tdep.c: Rename to...
6406 * i386-windows-tdep.c: ... this.
6407 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6408 i386-windows-tdep.c.
6409 * configure.tgt: Likewise.
6410
053205cc
SM
64112020-03-16 Simon Marchi <simon.marchi@efficios.com>
6412
6413 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6414 * osabi.c (gdb_osabi_names): Add "Windows".
6415 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6416 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6417 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6418 i386_cygwin_osabi_sniffer.
6419 (_initialize_i386_cygwin_tdep): Register OS ABI
6420 GDB_OSABI_WINDOWS for i386.
6421 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6422 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6423 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6424 for x86-64.
6425 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6426 when the target matches '*-*-mingw*'.
6427
fe4b2ee6
SM
64282020-03-16 Simon Marchi <simon.marchi@efficios.com>
6429
6430 * defs.h (enum gdb_osabi): Move to...
6431 * osabi.h (enum gdb_osabi): ... here.
6432 * gdbarch.sh: Include osabi.h in gdbarch.h.
6433 * gdbarch.h: Re-generate.
6434
cb9b645d
SM
64352020-03-16 Simon Marchi <simon.marchi@efficios.com>
6436
6437 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6438 function.
6439 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6440
3293bbaf
TT
64412020-03-14 Tom Tromey <tom@tromey.com>
6442
6443 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6444 for C++.
6445 (c_type_print_modifier): Likewise. Add "language" parameter.
6446 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6447 (c_type_print_base_1): Update.
6448 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6449 constants.
6450 * type-stack.c (type_stack::insert): Handle tp_atomic and
6451 tp_restrict.
6452 (type_stack::follow_type_instance_flags): Likewise.
6453 (type_stack::follow_types): Likewise. Merge type-following code.
6454 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6455 (space_identifier, cv_with_space_id)
6456 (const_or_volatile_or_space_identifier_noopt)
6457 (const_or_volatile_or_space_identifier): Remove.
6458 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6459 rules.
6460 (ptr_operator, typebase): Update.
6461 (enum token_flag) <FLAG_C>: New constant.
6462 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6463 "_Atomic".
6464 (lex_one_token): Handle FLAG_C.
6465
154151a6
KR
64662020-03-14 Kamil Rytarowski <n54@gmx.com>
6467
6468 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6469 it to the ptrace call.
6470 * m68k-bsd-nat.c (store_registers): Likewise.
6471
bc107784
KR
64722020-03-14 Kamil Rytarowski <n54@gmx.com>
6473
6474 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6475 gdb_byte *.
6476 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6477 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6478 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6479
01a80117
KR
64802020-03-14 Kamil Rytarowski <n54@gmx.com>
6481
6482 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6483 nbsd_nat_target instead of inf_ptrace_target.
6484 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6485 nbsd_nat_target.
6486
f90280ca
KR
64872020-03-14 Kamil Rytarowski <n54@gmx.com>
6488
6489 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6490 register_t.
6491
6def66f1
KR
64922020-03-14 Kamil Rytarowski <n54@gmx.com>
6493
6494 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6495 it to the ptrace call.
6496 * alpha-bsd-nat.c (store_registers): Likewise.
6497
66eaca97
KR
64982020-03-14 Kamil Rytarowski <n54@gmx.com>
6499
6500 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6501 includes.
6502 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6503 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6504 fill_fpregset): Likewise.
6505
4fed520b
KR
65062020-03-14 Kamil Rytarowski <n54@gmx.com>
6507
6508 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6509 nbsd_nat_target instead of inf_ptrace_target.
6510 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6511 nbsd_nat_target.
6512
2190cf06
KR
65132020-03-14 Kamil Rytarowski <n54@gmx.com>
6514
6515 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6516 register_t.
6517
75c56d3d
KR
65182020-03-14 Kamil Rytarowski <n54@gmx.com>
6519
6520 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6521 it to the ptrace call.
6522 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6523 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6524 * arm-nbsd-nat.c (store_register): Likewise.
6525 * arm-nbsd-nat.c (store_regs): Likewise.
6526 * arm-nbsd-nat.c (store_fp_register): Likewise.
6527 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6528
6018d381
KR
65292020-03-14 Kamil Rytarowski <n54@gmx.com>
6530
6531 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6532 nbsd_nat_target instead of inf_ptrace_target.
6533 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6534 nbsd_nat_target.
6535
013f99f0
KR
65362020-03-14 Kamil Rytarowski <n54@gmx.com>
6537
6538 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6539 it to the ptrace call.
6540 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6541
12753073
KR
65422020-03-14 Kamil Rytarowski <n54@gmx.com>
6543
6227b330
KR
6544 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6545 it to the ptrace call.
6546 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6547
65482020-03-14 Kamil Rytarowski <n54@gmx.com>
6549
6550 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6551 gdb_byte *.
12753073
KR
6552 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6553
d5be5fa4
KR
65542020-03-14 Kamil Rytarowski <n54@gmx.com>
6555
6556 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6557 instead of inf_ptrace_target.
6558 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6559 nbsd_nat_target.
6560
8110f842
KR
65612020-03-14 Kamil Rytarowski <n54@gmx.com>
6562
6563 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6564 register_t.
6565
52feded7
KR
65662020-03-14 Kamil Rytarowski <n54@gmx.com>
6567
6568 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6569 register_t.
6570
25567eee
KR
65712020-03-14 Kamil Rytarowski <n54@gmx.com>
6572
6573 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6574 register_t.
6575
426a9c18
TT
65762020-03-13 Tom Tromey <tom@tromey.com>
6577
6578 * value.h (val_print): Don't declare.
6579 * valprint.h (val_print_array_elements)
6580 (val_print_scalar_formatted, generic_val_print): Don't declare.
6581 * valprint.c (generic_val_print_array): Take a struct value.
6582 (generic_val_print_ptr, generic_val_print_memberptr)
6583 (generic_val_print_bool, generic_val_print_int)
6584 (generic_val_print_char, generic_val_print_complex)
6585 (generic_val_print): Remove.
6586 (generic_value_print): Update.
6587 (do_val_print): Remove unused parameters. Don't call
6588 la_val_print.
6589 (val_print): Remove.
6590 (common_val_print): Update. Don't call value_check_printable.
6591 (val_print_scalar_formatted, val_print_array_elements): Remove.
6592 * rust-lang.c (rust_val_print): Remove.
6593 (rust_language_defn): Update.
6594 * p-valprint.c (pascal_val_print): Remove.
6595 (pascal_value_print_inner): Update.
6596 (pascal_object_print_val_fields, pascal_object_print_val):
6597 Remove.
6598 (pascal_object_print_static_field): Update.
6599 * p-lang.h (pascal_val_print): Don't declare.
6600 * p-lang.c (pascal_language_defn): Update.
6601 * opencl-lang.c (opencl_language_defn): Update.
6602 * objc-lang.c (objc_language_defn): Update.
6603 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6604 * m2-lang.h (m2_val_print): Don't declare.
6605 * m2-lang.c (m2_language_defn): Update.
6606 * language.h (struct language_defn) <la_val_print>: Remove.
6607 * language.c (unk_lang_value_print_inner): Rename. Change
6608 argument types.
6609 (unknown_language_defn, auto_language_defn): Update.
6610 * go-valprint.c (go_val_print): Remove.
6611 * go-lang.h (go_val_print): Don't declare.
6612 * go-lang.c (go_language_defn): Update.
6613 * f-valprint.c (f_val_print): Remove.
6614 * f-lang.h (f_value_print): Don't declare.
6615 * f-lang.c (f_language_defn): Update.
6616 * d-valprint.c (d_val_print): Remove.
6617 * d-lang.h (d_value_print): Don't declare.
6618 * d-lang.c (d_language_defn): Update.
6619 * cp-valprint.c (cp_print_value_fields)
6620 (cp_print_value_fields_rtti, cp_print_value): Remove.
6621 (cp_print_static_field): Update.
6622 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6623 (c_val_print_struct, c_val_print_union, c_val_print_int)
6624 (c_val_print_memberptr, c_val_print): Remove.
6625 * c-lang.h (c_val_print_array, cp_print_value_fields)
6626 (cp_print_value_fields_rtti): Don't declare.
6627 * c-lang.c (c_language_defn, cplus_language_defn)
6628 (asm_language_defn, minimal_language_defn): Update.
6629 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6630 (ada_val_print_enum): Take a struct value.
6631 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6632 (ada_val_print): Remove.
6633 (ada_value_print_1): Update.
6634 (printable_val_type): Remove.
6635 * ada-lang.h (ada_val_print): Don't declare.
6636 * ada-lang.c (ada_language_defn): Update.
6637
42331a1e
TT
66382020-03-13 Tom Tromey <tom@tromey.com>
6639
6640 * valprint.c (do_val_print): Update.
6641 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6642 a struct value.
6643 (value_to_value_object_no_release): Declare.
6644 * python/py-value.c (value_to_value_object_no_release): New
6645 function.
6646 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6647 struct value.
6648 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6649 function.
6650 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6651 a struct value.
6652 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6653 Declare.
6654 (gdbscm_apply_val_pretty_printer): Take a struct value.
6655 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6656 value.
6657 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6658 value.
6659 * extension-priv.h (struct extension_language_ops)
6660 <apply_val_pretty_printer>: Take a struct value.
6661 * cp-valprint.c (cp_print_value): Create a struct value.
6662 (cp_print_value): Update.
6663
3a916a97
TT
66642020-03-13 Tom Tromey <tom@tromey.com>
6665
6666 * ada-valprint.c (print_field_values): Call common_val_print.
6667
b59eac37
TT
66682020-03-13 Tom Tromey <tom@tromey.com>
6669
6670 * ada-valprint.c (val_print_packed_array_elements): Remove
6671 bitoffset and val parameters. Call common_val_print.
6672 (ada_val_print_string): Remove offset, address, and original_value
6673 parameters.
6674 (ada_val_print_array): Update.
6675 (ada_value_print_array): New function.
6676 (ada_value_print_1): Call it.
6677
03371129
TT
66782020-03-13 Tom Tromey <tom@tromey.com>
6679
6680 * ada-valprint.c (ada_value_print): Use common_val_print.
6681
2e088f8b
TT
66822020-03-13 Tom Tromey <tom@tromey.com>
6683
6684 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6685
39ef85a8
TT
66862020-03-13 Tom Tromey <tom@tromey.com>
6687
6688 * ada-valprint.c (ada_value_print_num): New function.
6689 (ada_value_print_1): Use it.
6690
b9fa6e07
TT
66912020-03-13 Tom Tromey <tom@tromey.com>
6692
6693 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6694
416595d6
TT
66952020-03-13 Tom Tromey <tom@tromey.com>
6696
6697 * ada-valprint.c (ada_value_print_ptr): New function.
6698 (ada_value_print_1): Use it.
6699
5b5e15ec
TT
67002020-03-13 Tom Tromey <tom@tromey.com>
6701
6702 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6703 call common_val_print.
6704 (ada_val_print_1): Update.
6705 (ada_value_print_1): New function.
6706 (ada_value_print_inner): Rewrite.
6707
fbf54e75
TT
67082020-03-13 Tom Tromey <tom@tromey.com>
6709
6710 * cp-valprint.c (cp_print_value_fields): Update.
6711 (cp_print_value): New function.
6712
64b653ca
TT
67132020-03-13 Tom Tromey <tom@tromey.com>
6714
6715 * m2-valprint.c (m2_value_print_inner): Use
6716 cp_print_value_fields.
6717 * cp-valprint.c (cp_print_value_fields): New function.
6718 * c-valprint.c (c_value_print_struct): New function.
6719 (c_value_print_inner): Use c_value_print_struct.
6720 * c-lang.h (cp_print_value_fields): Declare.
6721
6999f067
TT
67222020-03-13 Tom Tromey <tom@tromey.com>
6723
6724 * c-valprint.c (c_value_print_array): New function.
6725 (c_value_print_inner): Use it.
6726
ce80b8bd
TT
67272020-03-13 Tom Tromey <tom@tromey.com>
6728
6729 * c-valprint.c (c_value_print_memberptr): New function.
6730 (c_value_print_inner): Use it.
6731
2faac269
TT
67322020-03-13 Tom Tromey <tom@tromey.com>
6733
6734 * c-valprint.c (c_value_print_int): New function.
6735 (c_value_print_inner): Use it.
6736
da3e2c29
TT
67372020-03-13 Tom Tromey <tom@tromey.com>
6738
6739 * c-valprint.c (c_value_print_ptr): New function.
6740 (c_value_print_inner): Use it.
6741
50836231
TT
67422020-03-13 Tom Tromey <tom@tromey.com>
6743
6744 * c-valprint.c (c_value_print_inner): Rewrite.
6745
4f412b6e
TT
67462020-03-13 Tom Tromey <tom@tromey.com>
6747
6748 * valprint.c (generic_value_print_complex): New function.
6749 (generic_value_print): Use it.
6750
f5354008
TT
67512020-03-13 Tom Tromey <tom@tromey.com>
6752
6753 * valprint.c (generic_val_print_float): Don't call
6754 val_print_scalar_formatted.
6755 (generic_val_print, generic_value_print): Update.
6756
3eec3b05
TT
67572020-03-13 Tom Tromey <tom@tromey.com>
6758
6759 * valprint.c (generic_value_print_char): New function
6760 (generic_value_print): Use it.
6761
fdddfccb
TT
67622020-03-13 Tom Tromey <tom@tromey.com>
6763
6764 * valprint.c (generic_value_print_int): New function.
6765 (generic_value_print): Use it.
6766
6dde7521
TT
67672020-03-13 Tom Tromey <tom@tromey.com>
6768
6769 * valprint.c (generic_value_print_bool): New function.
6770 (generic_value_print): Use it.
6771
4112d2e6
TT
67722020-03-13 Tom Tromey <tom@tromey.com>
6773
6774 * valprint.c (generic_val_print_func): Simplify.
6775 (generic_val_print, generic_value_print): Update.
6776
65786af6
TT
67772020-03-13 Tom Tromey <tom@tromey.com>
6778
6779 * valprint.c (generic_val_print_flags): Remove.
6780 (generic_val_print, generic_value_print): Update.
6781 (val_print_type_code_flags): Add original_value parameter.
6782
40f3ce18
TT
67832020-03-13 Tom Tromey <tom@tromey.com>
6784
6785 * valprint.c (generic_val_print): Update.
6786 (generic_value_print): Update.
6787 * valprint.c (generic_val_print_enum): Don't call
6788 val_print_scalar_formatted.
6789
2a5b130b
TT
67902020-03-13 Tom Tromey <tom@tromey.com>
6791
6792 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6793 * valprint.c (generic_value_print_ptr): New function.
6794
abc66ce9
TT
67952020-03-13 Tom Tromey <tom@tromey.com>
6796
6797 * valprint.c (generic_value_print): Rewrite.
6798
07a32858
TT
67992020-03-13 Tom Tromey <tom@tromey.com>
6800
6801 * p-valprint.c (pascal_object_print_value_fields)
6802 (pascal_object_print_value): New functions.
6803
64d64d3a
TT
68042020-03-13 Tom Tromey <tom@tromey.com>
6805
6806 * p-valprint.c (pascal_value_print_inner): Rewrite.
6807
6a95a1f5
TT
68082020-03-13 Tom Tromey <tom@tromey.com>
6809
6810 * f-valprint.c (f_value_print_innner): Rewrite.
6811
59fcdac6
TT
68122020-03-13 Tom Tromey <tom@tromey.com>
6813
6814 * m2-valprint.c (m2_print_unbounded_array): New overload.
6815 (m2_print_unbounded_array): Update.
6816 (m2_print_array_contents): Take a struct value.
6817 (m2_value_print_inner): Rewrite.
6818
d133c3e1
TT
68192020-03-13 Tom Tromey <tom@tromey.com>
6820
6821 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6822 (d_value_print_inner): New function.
6823 * d-lang.h (d_value_print_inner): Declare.
6824 * d-lang.c (d_language_defn): Use d_value_print_inner.
6825
23b0f06b
TT
68262020-03-13 Tom Tromey <tom@tromey.com>
6827
6828 * go-valprint.c (go_value_print_inner): New function.
6829 * go-lang.h (go_value_print_inner): Declare.
6830 * go-lang.c (go_language_defn): Use go_value_print_inner.
6831
5f56f7cb
TT
68322020-03-13 Tom Tromey <tom@tromey.com>
6833
6834 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6835 API.
6836 (rust_val_print): Rewrite.
6837 (rust_value_print_inner): New function, from rust_val_print.
6838 (rust_language_defn): Use rust_value_print_inner.
6839
26792ee0
TT
68402020-03-13 Tom Tromey <tom@tromey.com>
6841
6842 * ada-valprint.c (ada_value_print_inner): New function.
6843 * ada-lang.h (ada_value_print_inner): Declare.
6844 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6845
24051bbe
TT
68462020-03-13 Tom Tromey <tom@tromey.com>
6847
6848 * f-valprint.c (f_value_print_innner): New function.
6849 * f-lang.h (f_value_print_innner): Declare.
6850 * f-lang.c (f_language_defn): Use f_value_print_innner.
6851
c0941be6
TT
68522020-03-13 Tom Tromey <tom@tromey.com>
6853
6854 * p-valprint.c (pascal_value_print_inner): New function.
6855 * p-lang.h (pascal_value_print_inner): Declare.
6856 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6857
62c4663d
TT
68582020-03-13 Tom Tromey <tom@tromey.com>
6859
6860 * m2-valprint.c (m2_value_print_inner): New function.
6861 * m2-lang.h (m2_value_print_inner): Declare.
6862 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6863
62182190
TT
68642020-03-13 Tom Tromey <tom@tromey.com>
6865
6866 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6867 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6868 * c-valprint.c (c_value_print_inner): New function.
6869 * c-lang.h (c_value_print_inner): Declare.
6870 * c-lang.c (c_language_defn, cplus_language_defn)
6871 (asm_language_defn, minimal_language_defn): Use
6872 c_value_print_inner.
6873
1e592a8a
TT
68742020-03-13 Tom Tromey <tom@tromey.com>
6875
6876 * p-valprint.c (pascal_object_print_value_fields): Now static.
6877 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6878
7fe471e9
TT
68792020-03-13 Tom Tromey <tom@tromey.com>
6880
6881 * c-valprint.c (c_val_print_array): Simplify.
6882
d121c6ce
TT
68832020-03-13 Tom Tromey <tom@tromey.com>
6884
6885 * valprint.c (value_print_array_elements): New function.
6886 * valprint.h (value_print_array_elements): Declare.
6887
4dba70ee
TT
68882020-03-13 Tom Tromey <tom@tromey.com>
6889
6890 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6891 * mips-tdep.c (mips_print_register): Use
6892 value_print_scalar_formatted.
6893
4f9ae810
TT
68942020-03-13 Tom Tromey <tom@tromey.com>
6895
6896 * valprint.h (value_print_scalar_formatted): Declare.
6897 * valprint.c (value_print_scalar_formatted): New function.
6898
156bfec9
TT
68992020-03-13 Tom Tromey <tom@tromey.com>
6900
6901 * valprint.h (generic_value_print): Declare.
6902 * valprint.c (generic_value_print): New function.
6903
2b4e573d
TT
69042020-03-13 Tom Tromey <tom@tromey.com>
6905
6906 * valprint.c (do_val_print): Call la_value_print_inner, if
6907 available.
6908 * rust-lang.c (rust_language_defn): Update.
6909 * p-lang.c (pascal_language_defn): Update.
6910 * opencl-lang.c (opencl_language_defn): Update.
6911 * objc-lang.c (objc_language_defn): Update.
6912 * m2-lang.c (m2_language_defn): Update.
6913 * language.h (struct language_defn) <la_value_print_inner>: New
6914 member.
6915 * language.c (unknown_language_defn, auto_language_defn): Update.
6916 * go-lang.c (go_language_defn): Update.
6917 * f-lang.c (f_language_defn): Update.
6918 * d-lang.c (d_language_defn): Update.
6919 * c-lang.c (c_language_defn, cplus_language_defn)
6920 (asm_language_defn, minimal_language_defn): Update.
6921 * ada-lang.c (ada_language_defn): Update.
6922
a1f6a07c
TT
69232020-03-13 Tom Tromey <tom@tromey.com>
6924
6925 * c-valprint.c (c_value_print): Use common_val_print.
6926
410cf315
TT
69272020-03-13 Tom Tromey <tom@tromey.com>
6928
6929 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6930
72a45c93
TT
69312020-03-13 Tom Tromey <tom@tromey.com>
6932
6933 * f-valprint.c (f77_print_array_1, f_val_print): Use
6934 common_val_print.
6935
040f66bd
TT
69362020-03-13 Tom Tromey <tom@tromey.com>
6937
6938 * riscv-tdep.c (riscv_print_one_register_info): Use
6939 common_val_print.
6940
a6e05a6c
TT
69412020-03-13 Tom Tromey <tom@tromey.com>
6942
6943 * mi/mi-main.c (output_register): Use common_val_print.
6944
3444c526
TT
69452020-03-13 Tom Tromey <tom@tromey.com>
6946
6947 * infcmd.c (default_print_one_register_info): Use
6948 common_val_print.
6949
c2a44efe
TT
69502020-03-13 Tom Tromey <tom@tromey.com>
6951
6952 * valprint.h (common_val_print_checked): Declare.
6953 * valprint.c (common_val_print_checked): New function.
6954 * stack.c (print_frame_arg): Use common_val_print_checked.
6955
b0c26e99
TT
69562020-03-13 Tom Tromey <tom@tromey.com>
6957
6958 * valprint.c (do_val_print): New function, from val_print.
6959 (val_print): Use do_val_print.
6960 (common_val_print): Use do_val_print.
6961
ce3acbe9
TT
69622020-03-13 Tom Tromey <tom@tromey.com>
6963
6964 * valprint.c (value_print): Use scoped_value_mark.
6965
96c7f873
TV
69662020-03-13 Tom de Vries <tdevries@suse.de>
6967
6968 PR symtab/25646
6969 * psymtab.c (partial_symtab::partial_symtab): Don't set
6970 globals_offset and statics_offset. Push element onto
6971 current_global_psymbols and current_static_psymbols stacks.
6972 (concat): New function.
6973 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6974 element from current_global_psymbols and current_static_psymbols
6975 stacks. Concat popped elements to global_psymbols and
6976 static_symbols.
6977 (add_psymbol_to_list): Use current_global_psymbols and
6978 current_static_psymbols stacks.
6979 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6980 current_static_psymbols fields.
6981
6ba0a321
CB
69822020-03-12 Christian Biesinger <cbiesinger@google.com>
6983
6984 * corelow.c (sniff_core_bfd): Remove.
6985 (class core_target) <m_core_vec>: Remove.
6986 (core_target::core_target): Update.
6987 (core_file_fns): Remove.
6988 (deprecated_add_core_fns): Remove.
6989 (default_core_sniffer): Remove.
6990 (sniff_core_bfd): Remove.
6991 (default_check_format): Remove.
6992 (gdb_check_format): Remove.
6993 (core_target_open): Update.
6994 (core_target::get_core_register_section): Update.
6995 (get_core_registers_cb): Update.
6996 (core_target::fetch_registers): Update.
6997 * gdbcore.h (struct core_fns): Remove.
6998 (deprecated_add_core_fns): Remove.
6999 (default_core_sniffer): Remove.
7000 (default_check_format): Remove.
7001
227031b2
TT
70022020-03-12 Tom Tromey <tom@tromey.com>
7003
7004 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7005 CORE_ADDR.
7006 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7007
53807e9f
TT
70082020-03-12 Tom Tromey <tom@tromey.com>
7009
7010 * remote.c (remote_target::download_tracepoint)
7011 (remote_target::enable_tracepoint)
7012 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7013 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7014 sprintf_vma.
7015
64f25102
TT
70162020-03-12 Tom Tromey <tom@tromey.com>
7017
7018 * symfile-mem.c: Update CORE_ADDR size assert.
7019
272cd5a3
SM
70202020-03-12 Simon Marchi <simon.marchi@efficios.com>
7021
7022 * selftest.m4: Move to gdbsupport/.
7023 * acinclude.m4: Update path to selftest.m4.
7024
74cd3f9d
SM
70252020-03-12 Simon Marchi <simon.marchi@efficios.com>
7026
7027 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7028 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7029 gdbarch-selfselftests.c and selftest-arch.c.
7030 (SUBDIR_UNITTESTS_OBS): Rename to...
7031 (SELFTESTS_OBS): ... this.
7032 (COMMON_SFILES): Remove disasm-selftests.c and
7033 gdbarch-selftests.c.
7034 * configure.ac: Don't add selftest-arch.{c,o} to
7035 CONFIG_{SRCS,OBS}.
7036 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7037 preprocessor conditions.
7038
db6878ac
SM
70392020-03-12 Simon Marchi <simon.marchi@efficios.com>
7040
7041 * configure.ac: Don't source bfd/development.sh.
7042 * selftest.m4: Modify comment.
7043 * configure: Re-generate.
7044
4d696a5c
SM
70452020-03-12 Simon Marchi <simon.marchi@efficios.com>
7046
7047 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7048 not "true" or "false".
7049 * configure: Re-generate.
7050
8dd8e1c7
CB
70512020-03-12 Christian Biesinger <cbiesinger@google.com>
7052
7053 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7054 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7055 renamed to arm_nbsd_supply_gregset.
7056 (fetch_register): Update to call arm_nbsd_supply_gregset.
7057 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7058 (arm_netbsd_nat_target::fetch_registers): Update.
7059 (fetch_elfcore_registers): Removed.
7060 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7061 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7062 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7063 not require NetBSD system headers.
7064 (arm_nbsd_regset): New struct.
7065 (arm_nbsd_iterate_over_regset_sections): New function.
7066 (arm_netbsd_init_abi_common): Updated to call
7067 set_gdbarch_iterate_over_regset_sections.
7068 * arm-nbsd-tdep.h: New file.
7069
dd69bf7a
KB
70702020-03-11 Kevin Buettner <kevinb@redhat.com>
7071
7072 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7073 recursion.
7074
a0761e34
SM
70752020-03-11 Simon Marchi <simon.marchi@efficios.com>
7076
7077 * configure: Re-generate.
7078
e7a82140
TT
70792020-03-11 Tom Tromey <tromey@adacore.com>
7080
7081 * ada-typeprint.c (print_choices): Fix comment.
7082
dcc050c8
AB
70832020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7084
7085 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7086 previous item in the list, when the list has no items.
7087
1c33af77
TV
70882020-03-11 Tom de Vries <tdevries@suse.de>
7089
7090 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7091 PROP_LOCLIST handling code.
7092
8c95582d
AB
70932020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7094
7095 * buildsym-legacy.c (record_line): Pass extra parameter to
7096 record_line.
7097 * buildsym.c (buildsym_compunit::record_line): Take an extra
7098 parameter, reduce duplication in the line table, and record the
7099 is_stmt flag in the line table.
7100 * buildsym.h (buildsym_compunit::record_line): Add extra
7101 parameter.
7102 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7103 non-statement lines.
7104 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7105 this to the symtab builder.
7106 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7107 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7108 through to dwarf_record_line_1.
7109 * infrun.c (process_event_stop_test): When stepping, don't stop at
7110 a non-statement instruction, and only refresh the step info when
7111 we land in the middle of a line's range. Also add an extra
7112 comment.
7113 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7114 field.
7115 * record-btrace.c (btrace_find_line_range): Only record lines
7116 marked as is-statement.
7117 * stack.c (frame_show_address): Show the frame address if we are
7118 in a non-statement sal.
7119 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7120 (maintenance_print_one_line_table): Print a header for the is_stmt
7121 column, and include is_stmt information in the output.
7122 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7123 preference to non-statements.
7124 (find_pcs_for_symtab_line): Prefer is-statement entries.
7125 (find_line_common): Likewise.
7126 * symtab.h (struct linetable_entry): Add is_stmt field.
7127 (struct symtab_and_line): Likewise.
7128 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7129 arranging the line table.
7130
e4003a34
TV
71312020-03-07 Tom de Vries <tdevries@suse.de>
7132
7133 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7134 DIE.
7135
e8932576
TT
71362020-03-07 Tom Tromey <tom@tromey.com>
7137
7138 * valops.c (value_literal_complex): Remove obsolete comment.
7139 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7140 comment.
7141
29734269
SM
71422020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7143
7144 * infrun.h: Forward-declare thread_info.
7145 (set_step_info): Add thread_info parameter, add doc.
7146 * infrun.c (set_step_info): Add thread_info parameter, move doc
7147 to header.
7148 * infrun.c (process_event_stop_test): Pass thread to
7149 set_step_info call.
7150 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7151 set_step_info.
7152 (prepare_one_step): Add thread_info parameter, pass it to
7153 set_step_frame and prepare_one_step (recursive) call.
7154 (step_1): Pass thread to prepare_one_step call.
7155 (step_command_fsm::should_stop): Pass thread to
7156 prepare_one_step.
7157 (until_next_fsm): Pass thread to set_step_frame call.
7158 (finish_command): Pass thread to set_step_info call.
7159
b7d64b29
HD
71602020-03-06 Hannes Domani <ssbssa@yahoo.de>
7161
7162 * windows-tdep.c (windows_solib_create_inferior_hook):
7163 Check if inferior is running.
7164
09f2921c
TV
71652020-03-06 Tom de Vries <tdevries@suse.de>
7166
7167 * NEWS: Fix "the the".
7168 * ctfread.c: Same.
7169
fd760e79
TV
71702020-03-06 Tom de Vries <tdevries@suse.de>
7171
7172 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7173
20ea4a60
AB
71742020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7175
7176 * .dir-locals.el: Add a comment referencing the other copies of
7177 this file.
7178
0afbabf0
JB
71792020-03-05 John Baldwin <jhb@FreeBSD.org>
7180
7181 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7182 psargs.
7183
842806cb
TBA
71842020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7185
7186 * .gitattributes: New file.
7187
be1e3d3e
TT
71882020-03-04 Tom Tromey <tom@tromey.com>
7189
7190 * symmisc.c (print_symbol_bcache_statistics)
7191 (print_objfile_statistics): Update.
7192 * symfile.c (allocate_symtab): Use intern.
7193 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7194 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7195 macro_cache>: Remove.
7196 <string_cache>: New member.
7197 (struct objfile) <intern>: New methods.
7198 * elfread.c (elf_symtab_read): Use intern.
7199 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7200 (dwarf2_compute_name, dwarf2_physname)
7201 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7202 names.
7203 (guess_partial_die_structure_name): Update.
7204 (partial_die_info::fixup): Intern name.
7205 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7206 name.
7207 (dwarf2_name): Intern name. Update.
7208 * buildsym.c (buildsym_compunit::get_macro_table): Use
7209 string_cache.
7210
4e7625fd
TT
72112020-03-04 Tom Tromey <tom@tromey.com>
7212
7213 * jit.c (bfd_open_from_target_memory): Make "target" const.
7214 * corefile.c (gnutarget): Now const.
7215 * gdbcore.h (gnutarget): Now const.
7216
46f9f931
HD
72172020-03-04 Hannes Domani <ssbssa@yahoo.de>
7218
7219 * NEWS: Mention support for WOW64 processes.
7220 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7221 (amd64_windows_segment_register_p): Remove static.
7222 (_initialize_amd64_windows_nat): Update.
7223 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7224 * i386-windows-nat.c (context_offset): Update.
7225 (i386_mappings): Rename and remove static.
7226 (i386_windows_segment_register_p): Remove static.
7227 (_initialize_i386_windows_nat): Update.
7228 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7229 (STATUS_WX86_SINGLE_STEP): New macro.
7230 (EnumProcessModulesEx): New macro.
7231 (Wow64SuspendThread): New macro.
7232 (Wow64GetThreadContext): New macro.
7233 (Wow64SetThreadContext): New macro.
7234 (Wow64GetThreadSelectorEntry): New macro.
7235 (windows_set_context_register_offsets): Add static.
7236 (windows_set_segment_register_p): Likewise.
7237 (windows_add_thread): Adapt for WOW64 processes.
7238 (windows_fetch_one_register): Likewise.
7239 (windows_nat_target::fetch_registers): Likewise.
7240 (windows_store_one_register): Likewise.
7241 (display_selector): Likewise.
7242 (display_selectors): Likewise.
7243 (handle_exception): Likewise.
7244 (windows_continue): Likewise.
7245 (windows_nat_target::resume): Likewise.
7246 (windows_add_all_dlls): Likewise.
7247 (do_initial_windows_stuff): Likewise.
7248 (windows_nat_target::attach): Likewise.
7249 (windows_get_exec_module_filename): Likewise.
7250 (windows_nat_target::create_inferior): Likewise.
7251 (windows_xfer_siginfo): Likewise.
7252 (_initialize_loadable): Initialize Wow64SuspendThread,
7253 Wow64GetThreadContext, Wow64SetThreadContext,
7254 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7255 * windows-nat.h (windows_set_context_register_offsets):
7256 Remove declaration.
7257 (windows_set_segment_register_p): Likewise.
7258 (i386_windows_segment_register_p): Add declaration.
7259 (amd64_windows_segment_register_p): Likewise.
7260
440cf44e
LM
72612020-03-04 Luis Machado <luis.machado@linaro.org>
7262
7263 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7264 in "info registers" for AArch64/ARM.
7265
7266 The change caused "info registers" to not print GPR's.
7267
7268 gdb/ChangeLog:
7269
7270 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7271
7272 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7273 when reg->group is empty and reggroup is not.
7274
1009d92f
TT
72752020-03-03 Tom Tromey <tromey@adacore.com>
7276
7277 * dwarf2/frame.c (struct dwarf2_frame_cache)
7278 <checked_tailcall_bottom, entry_cfa_sp_offset,
7279 entry_cfa_sp_offset_p>: Remove members.
7280 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7281 (dwarf2_frame_prev_register): Don't call
7282 dwarf2_tailcall_sniffer_first.
7283 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7284 * frame-unwind.c (add_unwinder): New fuction.
7285 (frame_unwind_init): Use it. Add tailcall unwinder.
7286
5e5d66b6
AB
72872020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7288 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7289
7290 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7291 value should be printed as true.
7292
584cf46d
HD
72932020-03-03 Hannes Domani <ssbssa@yahoo.de>
7294
7295 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7296 (windows_init_abi): Set and use windows_so_ops.
7297
7b973adc
SDJ
72982020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7299
7300 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7301 when verifying if dealing with a convenience variable.
7302
bb7b70ab
LM
73032020-03-03 Luis Machado <luis.machado@linaro.org>
7304
7305 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7306
9822cb57
SM
73072020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7308
7309 * infrun.c (gdbarch_supports_displaced_stepping): New.
7310 (use_displaced_stepping): Break up conditions in smaller pieces.
7311 Use gdbarch_supports_displaced_stepping.
7312 (displaced_step_prepare_throw): Use
7313 gdbarch_supports_displaced_stepping.
7314
63e163f2
AB
73152020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7316
7317 * NEWS: Mention new behaviour of the history filename.
7318 * top.c (write_history_p): Add comment.
7319 (show_write_history_p): Add header comment, give a different
7320 message when history writing is on, but the history filename is
7321 empty.
7322 (history_filename): Add comment.
7323 (history_filename_empty): New function.
7324 (show_history_filename): Add header comment, give a different
7325 message when the filename is empty.
7326 (init_history): Compare history_filename against nullptr, and only
7327 read history if the filename is not empty.
7328 (set_history_filename): Add header comment, and only make
7329 non-empty filenames absolute.
7330 (init_main): Make the filename argument to 'set history filename'
7331 optional.
7332
81b86b97
CB
73332020-03-02 Christian Biesinger <cbiesinger@google.com>
7334
7335 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7336 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7337 (fetch_fp_register): Update.
7338 (fetch_fp_regs): Update.
7339 (store_fp_register): Update.
7340 (store_fp_regs): Update.
7341 (arm_netbsd_nat_target::read_description): New function.
7342 (fetch_elfcore_registers): Update.
7343
24ed6739
AB
73442020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7345
7346 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7347 general_thread if the stop reply is missing a thread-id.
7348 (remote_target::process_stop_reply): Use the first non-exited
7349 thread if the target didn't pass a thread-id.
7350 * infrun.c (do_target_wait): Move call to
7351 switch_to_inferior_no_thread to ....
7352 (do_target_wait_1): ... here.
7353
a84bb2a0
JT
73542020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7355
7356 * debuginfod-support.c: Include defs.h first.
7357
658dadf0
TV
73582020-02-28 Tom de Vries <tdevries@suse.de>
7359
7360 * symfile.c (set_initial_language): Use default language for lookup.
7361
4ebe4877
SM
73622020-02-28 Simon Marchi <simon.marchi@efficios.com>
7363
7364 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7365 reader variable, pass `this` to read_cutu_die_from_dwo.
7366
e5da1139
AM
73672020-02-27 Aaron Merey <amerey@redhat.com>
7368
7369 * source.c (open_source_file): Check for nullptr when computing
7370 srcpath.
7371
317f7127
TT
73722020-02-27 Tom Tromey <tromey@adacore.com>
7373
7374 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7375 member.
7376 (dwarf2_add_field): Don't update nfields.
7377 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7378
3104d9ee
AB
73792020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7380
7381 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7382 abs.
7383
b83470bf
TT
73842020-02-26 Tom Tromey <tom@tromey.com>
7385
7386 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7387 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7388 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7389 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7390 per_cu_data.
7391
edfe0a0c
TT
73922020-02-26 Tom Tromey <tom@tromey.com>
7393
7394 * dwarf2/index-write.c (psym_index_map): Change type.
7395 (add_address_entry_worker, write_one_signatured_type)
7396 (recursively_count_psymbols, recursively_write_psymbols)
7397 (class debug_names, psyms_seen_size, write_gdbindex)
7398 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7399
0d79cdc4
AM
74002020-02-26 Aaron Merey <amerey@redhat.com>
7401
7402 * Makefile.in: Handle optional debuginfod support.
7403 * NEWS: Update.
7404 * README: Add --with-debuginfod summary.
7405 * config.in: Regenerate.
7406 * configure: Regenerate.
7407 * configure.ac: Handle optional debuginfod support.
7408 * debuginfod-support.c: debuginfod helper functions.
7409 * debuginfod-support.h: Ditto.
7410 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7411 summary.
7412 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7413 when a dwz file cannot be found.
7414 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7415 debuginfo file cannot be found.
7416 * source.c (open_source_file): Query debuginfod servers when a
7417 source file cannot be found.
7418 * top.c (print_gdb_configuration): Include
7419 --{with,without}-debuginfod in the output.
7420
b65ce565
JG
74212020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7422
7423 * thread.c (thr_try_catch_cmd): Print thread name.
7424
d4c9a4f8
SM
74252020-02-26 Simon Marchi <simon.marchi@efficios.com>
7426
7427 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7428 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7429 dwarf2_fetch_die_type_sect_off): Move to...
7430 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7431 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7432 dwarf2_fetch_die_type_sect_off): ... here.
7433 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7434 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7435 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7436
0dce4280
TV
74372020-02-26 Tom de Vries <tdevries@suse.de>
7438
7439 PR gdb/25603
7440 * symfile.c (set_initial_language): Exit-early if
7441 language_mode == language_mode_manual.
7442
450a1bfc
SM
74432020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7444
7445 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7446 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7447 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7448
9e80cfa1
AB
74492020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7450
7451 * gdbtypes.c (create_array_type_with_stride): Handle negative
7452 array strides.
7453 * valarith.c (value_subscripted_rvalue): Likewise.
7454
09624f1f
LM
74552020-02-25 Luis Machado <luis.machado@linaro.org>
7456
7457 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7458
8cb5117c
SM
74592020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7460
7461 * loc.h (dwarf2_get_die_type): Move to...
7462 * read.h (dwarf2_get_die_type): ... here.
7463 * read.c (dwarf2_get_die_type): Move doc to header.
7464
c325c44e
JB
74652020-02-25 Joel Brobecker <brobecker@adacore.com>
7466
7467 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7468 'gnulib/Makefile.in' to the list.
7469
4ac93832
TT
74702020-02-24 Tom Tromey <tom@tromey.com>
7471
7472 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7473 Remove.
7474 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7475 XOBNEWVEC.
7476
197400e8
TT
74772020-02-24 Tom Tromey <tom@tromey.com>
7478
7479 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7480 New method.
7481 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7482 (dw2_do_instantiate_symtab, dw2_get_file_names)
7483 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7484
76935768
TT
74852020-02-24 Tom Tromey <tom@tromey.com>
7486
7487 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7488 make_scoped_restore.
7489 (dwarf2_psymtab::read_symtab): Don't clear
7490 reading_partial_symbols.
7491
a88ef40d
TV
74922020-02-24 Tom de Vries <tdevries@suse.de>
7493
7494 PR gdb/25592
7495 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7496
c9af6521
TV
74972020-02-24 Tom de Vries <tdevries@suse.de>
7498
7499 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7500 commands layout next/prev/regs.
7501
5707a07a
TT
75022020-02-22 Tom Tromey <tom@tromey.com>
7503
7504 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7505 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7506
3b0fb49e
TT
75072020-02-22 Tom Tromey <tom@tromey.com>
7508
7509 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7510
283be8bf
TT
75112020-02-22 Tom Tromey <tom@tromey.com>
7512
7513 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7514 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7515 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7516 * tui/tui.c (_initialize_tui): Add usage text.
7517
ca793b96
TT
75182020-02-22 Tom Tromey <tom@tromey.com>
7519
7520 * tui/tui-win.c (tui_set_focus_command)
7521 (tui_set_win_height_command): Use error_no_arg.
7522 (_initialize_tui_win): Update help text.
7523 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7524
432b5c40
TT
75252020-02-22 Tom Tromey <tom@tromey.com>
7526
7527 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7528 * tui/tui-disasm.h (struct tui_disasm_window)
7529 <display_start_addr>: Declare.
7530 * tui/tui-source.h (struct tui_source_window)
7531 <display_start_addr>: Declare.
7532 * tui/tui-winsource.h (struct tui_source_window_base)
7533 <show_source_line, display_start_addr>: New methods.
7534 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7535 Rename and move to protected section.
7536 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7537 (tui_source_window_base::do_erase_source_content): Update.
7538 (tui_source_window_base::show_source_line): Now a method.
7539 (tui_source_window_base::show_source_content)
7540 (tui_source_window_base::tui_source_window_base)
7541 (tui_source_window_base::rerender)
7542 (tui_source_window_base::refill)
7543 (tui_source_window_base::do_scroll_horizontal)
7544 (tui_source_window_base::set_is_exec_point_at)
7545 (tui_source_window_base::update_breakpoint_info)
7546 (tui_source_window_base::update_exec_info): Update.
7547 * tui/tui-source.c (tui_source_window::set_contents)
7548 (tui_source_window::showing_source_p)
7549 (tui_source_window::do_scroll_vertical)
7550 (tui_source_window::location_matches_p)
7551 (tui_source_window::line_is_displayed): Update.
7552 (tui_source_window::display_start_addr): New method.
7553 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7554 (tui_disasm_window::do_scroll_vertical)
7555 (tui_disasm_window::location_matches_p): Update.
7556 (tui_disasm_window::display_start_addr): New method.
7557
01b1af32
TT
75582020-02-22 Tom Tromey <tom@tromey.com>
7559
7560 * NEWS: Add entry for gdb.register_window_type.
7561 * tui/tui-layout.h (window_factory): New typedef.
7562 (tui_register_window): Declare.
7563 * tui/tui-layout.c (saved_tui_windows): New global.
7564 (tui_apply_current_layout): Use it.
7565 (tui_register_window): New function.
7566 * python/python.c (do_start_initialization): Call
7567 gdbpy_initialize_tui.
7568 (python_GdbMethods): Add "register_window_type" function.
7569 * python/python-internal.h (gdbpy_register_tui_window)
7570 (gdbpy_initialize_tui): Declare.
7571 * python/py-tui.c: New file.
7572 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7573
fc96d20b
TT
75742020-02-22 Tom Tromey <tom@tromey.com>
7575
7576 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7577
935c78c0
TT
75782020-02-22 Tom Tromey <tom@tromey.com>
7579
7580 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7581 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7582 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7583 (tui_set_win_focus_to): Move from tui-win.c.
7584
0240c8f1
TT
75852020-02-22 Tom Tromey <tom@tromey.com>
7586
7587 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7588 functions.
7589 (known_window_types): New global.
7590 (tui_get_window_by_name): Reimplement.
7591 (initialize_known_windows): New function.
7592 (validate_window_name): Rewrite.
7593 (_initialize_tui_layout): Call initialize_known_windows.
7594
fdb01f0c
TT
75952020-02-22 Tom Tromey <tom@tromey.com>
7596
7597 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7598 Remove constants.
7599 * tui/tui-winsource.h (struct tui_source_window_base)
7600 <tui_source_window_base>: Remove parameter.
7601 * tui/tui-winsource.c
7602 (tui_source_window_base::tui_source_window_base): Remove
7603 parameter.
7604 (tui_source_window_base::refill): Update.
7605 * tui/tui-stack.h (struct tui_locator_window)
7606 <tui_locator_window>: Update.
7607 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7608 Default the constructor.
7609 * tui/tui-regs.h (struct tui_data_item_window)
7610 <tui_data_item_window>: Default the constructor.
7611 (struct tui_data_window) <tui_data_window>: Likewise.
7612 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7613 Default the constructor.
7614 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7615 Default the constructor.
7616 <type>: Remove.
7617 (struct tui_win_info) <tui_win_info>: Default the constructor.
7618 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7619 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7620 Default the constructor.
7621
865a5aec
TT
76222020-02-22 Tom Tromey <tom@tromey.com>
7623
7624 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7625 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7626 * tui/tui-win.c (tui_resize_all): Don't call
7627 tui_delete_invisible_windows.
7628 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7629 done.
7630 (tui_set_layout): Update.
7631 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7632 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7633 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7634
e098d18c
TT
76352020-02-22 Tom Tromey <tom@tromey.com>
7636
7637 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7638 correctly.
7639
eb9c8874
TT
76402020-02-22 Tom Tromey <tom@tromey.com>
7641
7642 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7643
7eed1a8e
TT
76442020-02-22 Tom Tromey <tom@tromey.com>
7645
7646 * tui/tui-winsource.h (struct tui_source_window_iterator)
7647 <inner_iterator>: New etytypedef.
7648 <tui_source_window_iterator>: Take "end" parameter.
7649 <tui_source_window_iterator>: Take iterator.
7650 <operator*, advance>: Update.
7651 <m_iter>: Change type.
7652 <m_end>: New field.
7653 (struct tui_source_windows) <begin, end>: Update.
7654 * tui/tui-layout.c (tui_windows): New global.
7655 (tui_apply_current_layout): Clear tui_windows.
7656 (tui_layout_window::apply): Update tui_windows.
7657 * tui/tui-data.h (tui_windows): Declare.
7658 (all_tui_windows): Now inline function.
7659 (class tui_window_iterator, struct all_tui_windows): Remove.
7660
7c043ba6
TT
76612020-02-22 Tom Tromey <tom@tromey.com>
7662
7663 PR tui/17850:
7664 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7665 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7666 "height" argument.
7667 (class tui_layout_window) <get_sizes>: Likewise.
7668 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7669 argument.
7670 <get_sizes>: Add "height" argument.
7671 <m_vertical>: New field.
7672 * tui/tui-layout.c (tui_layout_split::clone): Update.
7673 (tui_layout_split::get_sizes): Add "height" argument.
7674 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7675 (tui_new_layout_command): Parse "-horizontal".
7676 (_initialize_tui_layout): Update help string.
7677 (tui_layout_split::specification): Add "-horizontal" when needed.
7678 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7679 argument.
7680 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7681 New methods.
7682
6bc56648
TT
76832020-02-22 Tom Tromey <tom@tromey.com>
7684
7685 * tui/tui-layout.h (enum tui_adjust_result): New.
7686 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7687 (class tui_layout_window) <adjust_size>: Return
7688 tui_adjust_result. Rewrite.
7689 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7690 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7691
c22fef7e
TT
76922020-02-22 Tom Tromey <tom@tromey.com>
7693
7694 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7695 parameter and return types.
7696 (class tui_layout_base) <specification>: Add "depth".
7697 (class tui_layout_window) <specification>: Add "depth".
7698 (class tui_layout_split) <specification>: Add "depth".
7699 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7700 and return types.
7701 (tui_new_layout_command): Parse sub-layouts.
7702 (_initialize_tui_layout): Update help string.
7703 (tui_layout_window::specification): Add "depth".
7704 (add_layout_command): Update.
7705
ee325b61
TT
77062020-02-22 Tom Tromey <tom@tromey.com>
7707
7708 * NEWS: Add "tui new-layout" item.
7709 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7710 Add new-layout command to help text.
7711 (validate_window_name): New function.
7712 (tui_new_layout_command): New function.
7713 (_initialize_tui_layout): Register "new-layout".
7714 (tui_layout_window::specification): New method.
7715 (tui_layout_window::specification): New method.
7716 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7717 method.
7718 (class tui_layout_window) <specification>: New method.
7719 (class tui_layout_split) <specification>: New method.
7720
416eb92d
TT
77212020-02-22 Tom Tromey <tom@tromey.com>
7722
7723 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7724 * tui/tui-win.c (window_name_completer): Update comment.
7725 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7726 Declare method.
7727 (class tui_layout_window) <replace_window>: Likewise.
7728 (class tui_layout_split) <replace_window>: Likewise.
7729 (tui_set_layout): Don't declare.
7730 (tui_set_initial_layout): Declare function.
7731 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7732 (asm_regs_layout): New globals.
7733 (tui_current_layout, show_layout): Remove.
7734 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7735 (find_layout, tui_apply_layout): New function.
7736 (layout_completer): Remove.
7737 (tui_next_layout): Reimplement.
7738 (tui_next_layout_command): New function.
7739 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7740 (tui_regs_layout): Reimplement.
7741 (tui_regs_layout_command): New function.
7742 (extract_display_start_addr): Rewrite.
7743 (next_layout, prev_layout): Remove.
7744 (tui_layout_window::replace_window): New method.
7745 (tui_layout_split::replace_window): New method.
7746 (destroy_layout): New function.
7747 (layout_list): New global.
7748 (add_layout_command): New function.
7749 (initialize_layouts): Update.
7750 (tui_layout_command): New function.
7751 (_initialize_tui_layout): Install "layout" commands.
7752 * tui/tui-data.h (enum tui_layout_type): Remove.
7753 (tui_current_layout): Don't declare.
7754
0dbc2fc7
TT
77552020-02-22 Tom Tromey <tom@tromey.com>
7756
7757 * tui/tui-regs.c (tui_reg_layout): Remove.
7758 (tui_reg_command): Use tui_regs_layout.
7759 * tui/tui-layout.h (tui_reg_command): Declare.
7760 * tui/tui-layout.c (tui_reg_command): New function.
7761
5afe342e
TT
77622020-02-22 Tom Tromey <tom@tromey.com>
7763
7764 * tui/tui.c (tui_rl_delete_other_windows): Call
7765 tui_remove_some_windows.
7766 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7767 Declare method.
7768 (class tui_layout_window) <remove_windows>: New method.
7769 (class tui_layout_split) <remove_windows>: Declare.
7770 (tui_remove_some_windows): Declare.
7771 * tui/tui-layout.c (tui_remove_some_windows): New function.
7772 (tui_layout_split::remove_windows): New method.
7773
427326a8
TT
77742020-02-22 Tom Tromey <tom@tromey.com>
7775
7776 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7777 * tui/tui-layout.h (tui_next_layout): Declare.
7778 * tui/tui-layout.c (tui_next_layout): New function.
7779
3fe12b6d
TT
77802020-02-22 Tom Tromey <tom@tromey.com>
7781
7782 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7783 correct coordinates.
7784
59b8b5d2
TT
77852020-02-22 Tom Tromey <tom@tromey.com>
7786
7787 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7788 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7789 DATA_WIN case.
7790
2a3d458b
TT
77912020-02-22 Tom Tromey <tom@tromey.com>
7792
7793 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7794 TUI_DISASM_WIN, not tui_win_list.
7795
3f0cbb04
TT
77962020-02-22 Tom Tromey <tom@tromey.com>
7797
7798 * valprint.c (generic_val_print_enum_1)
7799 (val_print_type_code_flags): Style member names.
7800 * rust-lang.c (val_print_struct, rust_print_enum)
7801 (rust_print_struct_def, rust_internal_print_type): Style member
7802 names.
7803 * p-valprint.c (pascal_object_print_value_fields): Style member
7804 names. Only call fprintf_symbol_filtered for static members.
7805 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7806 * f-valprint.c (f_val_print): Style member names.
7807 * f-typeprint.c (f_type_print_base): Style member names.
7808 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7809 call fprintf_symbol_filtered for static members.
7810 (cp_print_class_member): Style member names.
7811 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7812 member names.
7813 * ada-valprint.c (ada_print_scalar): Style enum names.
7814 (ada_val_print_enum): Likewise.
7815 * ada-typeprint.c (print_enum_type): Style enum names.
7816
d4d947ae
TT
78172020-02-21 Tom Tromey <tom@tromey.com>
7818
7819 * psympriv.h (struct partial_symtab): Update comment.
7820
e94e944b
TT
78212020-02-21 Tom Tromey <tromey@adacore.com>
7822
7823 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7824 type is CORE_ADDR.
7825
1eb73179
TV
78262020-02-21 Tom de Vries <tdevries@suse.de>
7827
7828 PR gdb/25534
7829 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7830 if dependencies[i]->user != NULL.
7831
4f180d53
AT
78322020-02-21 Ali Tamur <tamur@google.com>
7833
7834 * dwarf2/read.c (dwarf2_name): Add null check.
7835
22b6cd70
TT
78362020-02-20 Tom Tromey <tom@tromey.com>
7837
7838 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7839 ">=", in binary search.
7840 (dwarf2_find_containing_comp_unit): New overload.
7841 (run_test): New self-test.
7842 (_initialize_dwarf2_read): Register new test.
7843
bd0cf5a6
NC
78442020-02-20 Nelson Chu <nelson.chu@sifive.com>
7845
7846 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7847 * riscv-tdep.h: Likewise.
7848 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7849 rv32-only CSR.
7850 * features/riscv/64bit-csr.xml: Regenerated.
7851
3f702acd
SDJ
78522020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7853 Tom Tromey <tom@tromey.com>
7854
7855 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7856 of 'fputc_unfiltered'.
7857 (putchar_unfiltered): Call 'fputc_unfiltered'.
7858 (fputc_unfiltered): Call 'fputs_unfiltered'.
7859
d13c7322
AB
78602020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7861
7862 * config.in: Regenerate.
7863 * configure: Regenerate.
7864 * configure.ac: Add --with-python-libdir option.
7865 * main.c: Use WITH_PYTHON_LIBDIR.
7866
869d8950
TT
78672020-02-19 Tom Tromey <tom@tromey.com>
7868
7869 * symtab.c (general_symbol_info::compute_and_set_names): Use
7870 obstack_strndup. Simplify call to symbol_set_demangled_name.
7871
298e9637
SM
78722020-02-19 Simon Marchi <simon.marchi@efficios.com>
7873
7874 * dwarf2/read.c (allocate_signatured_type_table,
7875 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7876 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7877 Remove objfile parameter, update all callers.
7878
08410482
DE
78792020-02-19 Doug Evans <dje@google.com>
7880
7881 PR rust/25535
7882 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7883 rust_enum_variant calculation.
7884
dfdeeca1
TT
78852020-02-19 Tom Tromey <tromey@adacore.com>
7886
7887 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7888
2ef5453b
TT
78892020-02-19 Tom Tromey <tromey@adacore.com>
7890
7891 * ada-lang.c (cache_symbol): Use obstack_strdup.
7892
9f1528a1
AB
78932020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7894
7895 * configure: Regenerate.
7896
d3c22fa8
TT
78972020-02-19 Tom Tromey <tromey@adacore.com>
7898
7899 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7900 NULL check.
7901
bf84f706
MR
79022020-02-19 Maciej W. Rozycki <macro@wdc.com>
7903
7904 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7905
d1c9b20f
AB
79062020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7907
7908 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7909 if GDBSERVER is not defined.
7910 (riscv_tdesc_cache): Likewise, also store const target_desc.
7911 (STATIC_IN_GDB): Define.
7912 (riscv_create_target_description): Update declaration with
7913 STATIC_IN_GDB.
7914 (riscv_lookup_target_description): New function, only define if
7915 GDBSERVER is not defined.
7916 * arch/riscv.h (riscv_create_target_description): Declare only
7917 when GDBSERVER is defined.
7918 (riscv_lookup_target_description): New declaration when GDBSERVER
7919 is not defined.
7920 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7921 (riscv_linux_read_features): ...this, and return
7922 riscv_gdbarch_features instead of target_desc.
7923 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7924 (riscv_linux_read_description): Rename to...
7925 (riscv_linux_read_features): ...this.
7926 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7927 Update to use riscv_gdbarch_features and
7928 riscv_lookup_target_description.
7929 * riscv-tdep.c (riscv_find_default_target_description): Use
7930 riscv_lookup_target_description instead of
7931 riscv_create_target_description.
7932
373d7ac0
SM
79332020-02-18 Simon Marchi <simon.marchi@efficios.com>
7934
7935 * valprint.c (generic_val_print_enum_1): When printing a flag
7936 enum with value 0 and there is no enumerator with value 0, print
7937 just "0" instead of "(unknown: 0x0)".
7938
b29a2df0
SM
79392020-02-18 Simon Marchi <simon.marchi@efficios.com>
7940
7941 * valprint.c (generic_val_print_enum_1): Print unknown part of
7942 flag enum in hex.
7943
6740f0cc
SM
79442020-02-18 Simon Marchi <simon.marchi@efficios.com>
7945
7946 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7947 flag enums to contain duplicate enumerators.
7948 * valprint.c (generic_val_print_enum_1): Update comment.
7949
edd45eb0
SM
79502020-02-18 Simon Marchi <simon.marchi@efficios.com>
7951
7952 * dwarf2/read.c: Include "count-one-bits.h".
7953 (update_enumeration_type_from_children): If an enumerator has
7954 multiple bits set, don't treat the enumeration as a "flag enum".
7955 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7956 of flag enums have 0 or 1 bit set.
7957
6d0cf446
BE
79582020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7959
7960 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7961 conversion.
7962 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7963 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7964 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7965 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7966 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7967
7001c1b7
SM
79682020-02-18 Simon Marchi <simon.marchi@efficios.com>
7969
7970 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7971
fdb61c6c
SM
79722020-02-14 Simon Marchi <simon.marchi@efficios.com>
7973
7974 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7975 displaced_step_closure_up.
7976 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7977 (struct displaced_step_closure_up):
7978 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7979 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7980 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7981 Likewise.
7982 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7983 * gdbarch.c, gdbarch.h: Re-generate.
7984 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7985 displaced_step_closure_up.
7986 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7987 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7988 * infrun.h (displaced_step_closure_up): New type alias.
7989 (struct displaced_step_inferior_state) <step_closure>: Change
7990 type to displaced_step_closure_up.
7991 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7992 displaced_step_closure_up.
7993 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7994
a4a38eb4
TT
79952020-02-14 Tom Tromey <tom@tromey.com>
7996
7997 * minidebug.c (gnu_debug_key): New global.
7998 (find_separate_debug_file_in_section): Use it.
7999
e8217e61
SM
80002020-02-14 Simon Marchi <simon.marchi@efficios.com>
8001
8002 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8003 std::unique_ptr.
8004 * gdbarch.c: Re-generate.
8005 * gdbarch.h: Re-generate.
8006 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8007 change.
8008 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8009 type to std::unique_ptr.
8010 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8011 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8012 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8013 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8014 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8015 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8016 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8017 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8018 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8019
d8d83535
SM
80202020-02-14 Simon Marchi <simon.marchi@efficios.com>
8021
8022 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8023 std::unique_ptr.
8024 (displaced_step_clear): Rename to...
8025 (displaced_step_reset): ... this. Just call displaced->reset ().
8026 (displaced_step_clear_cleanup): Rename to...
8027 (displaced_step_reset_cleanup): ... this.
8028 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8029 (displaced_step_fixup): Likewise.
8030 (resume_1): Likewise.
8031 (handle_inferior_event): Restore child's memory before calling
8032 displaced_step_fixup on the parent.
8033 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8034 to std::unique_ptr.
8035 <step_closure>: Change type to std::unique_ptr.
8036
5f661e03
SM
80372020-02-14 Simon Marchi <simon.marchi@efficios.com>
8038
8039 * arm-tdep.c: Include count-one-bits.h.
8040 (cleanup_block_store_pc): Use count_one_bits.
8041 (cleanup_block_load_pc): Use count_one_bits.
8042 (arm_copy_block_xfer): Use count_one_bits.
8043 (thumb2_copy_block_xfer): Use count_one_bits.
8044 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8045 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8046 (thumb_get_next_pcs_raw): Use count_one_bits.
8047 (arm_get_next_pcs_raw): Use count_one_bits_l.
8048 * arch/arm.c (bitcount): Remove.
8049 * arch/arm.h (bitcount): Remove.
8050
8084e579
TT
80512020-02-14 Tom Tromey <tromey@adacore.com>
8052
8053 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8054 Update.
8055 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8056 * dwarf2/loc.c (call_site_find_chain_1): Return
8057 unique_xmalloc_ptr.
8058 (call_site_find_chain): Likewise.
8059
258bf0ee
RB
80602020-02-14 Richard Biener <rguenther@suse.de>
8061
8062 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8063 on expression with division operators.
8064
f98a8458
AKS
80652020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8066
8067 * MAINTAINERS (Write After Approval): Adding myself.
8068
d1437c0e
TT
80692020-02-12 Tom Tromey <tom@tromey.com>
8070
8071 * event-loop.c (event_data, gdb_event, event_handler_func):
8072 Remove.
8073
3d4560f7
TT
80742020-02-12 Tom Tromey <tom@tromey.com>
8075
8076 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8077 (dwarf2_frame_objfile_data): Add comment.
8078 (find_comp_unit, set_comp_unit): New functions.
8079 (dwarf2_frame_find_fde): Use find_comp_unit.
8080 (dwarf2_build_frame_info): Use set_comp_unit.
8081
21982304
TT
80822020-02-12 Tom Tromey <tom@tromey.com>
8083
8084 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8085 (comp_unit): Don't initialize objfile.
8086 (execute_cfa_program): Add text_offset parameter.
8087 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8088 (dwarf2_frame_cache): Update.
8089 (dwarf2_build_frame_info): Don't set "objfile" member.
8090
4debb237
TT
80912020-02-12 Tom Tromey <tom@tromey.com>
8092
8093 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8094 (decode_frame_entry): Likewise.
8095 (dwarf2_build_frame_info): Update.
8096
0d404d44
TT
80972020-02-12 Tom Tromey <tom@tromey.com>
8098
8099 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8100 (decode_frame_entry_1): Use the comp_unit obstack.
8101
a7a3ae5c
TT
81022020-02-12 Tom Tromey <tom@tromey.com>
8103
8104 * dwarf2/frame.c (struct comp_unit): Add initializers and
8105 constructor.
8106 (dwarf2_frame_objfile_data): Store a comp_unit.
8107 (dwarf2_frame_find_fde): Update.
8108 (dwarf2_build_frame_info): Use "new".
8109
a9d65418
TT
81102020-02-12 Tom Tromey <tom@tromey.com>
8111
8112 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8113 (dwarf2_fde_table): Typedef for std::vector.
8114 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8115 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8116 (decode_frame_entry): Update.
8117 (dwarf2_build_frame_info): Use "new".
8118
7559c217
CB
81192020-02-12 Christian Biesinger <cbiesinger@google.com>
8120
8121 * arm-tdep.c (arm_gdbarch_init): Update.
8122 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8123 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8124 have_neon, is_m>: Change to bool.
8125
aeefc73c
CB
81262020-02-12 Christian Biesinger <cbiesinger@google.com>
8127
8128 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8129
d27b8e5f
TT
81302020-02-12 Tom Tromey <tom@tromey.com>
8131
8132 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8133
cd5900f3
HD
81342020-02-12 Hannes Domani <ssbssa@yahoo.de>
8135
8136 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8137 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8138
f056b22b
TT
81392020-02-11 Tom Tromey <tom@tromey.com>
8140
8141 * psymtab.h: Update comment.
8142
f92ff6b5
TT
81432020-02-11 Tom Tromey <tom@tromey.com>
8144
8145 * gdb_obstack.h (struct auto_obstack): Use
8146 DISABLE_COPY_AND_ASSIGN.
8147
3fd6912b
TT
81482020-02-11 Tom Tromey <tom@tromey.com>
8149
8150 * dwarf2/frame.h (struct objfile): Don't forward declare.
8151
69ed9b74
CB
81522020-02-11 Christian Biesinger <cbiesinger@google.com>
8153
8154 * cris-tdep.c (cris_supply_gregset): Change signature to match
8155 what struct regset expects.
8156 (cris_regset): New struct.
8157 (fetch_core_registers): Remove.
8158 (cris_iterate_over_regset_sections): New function.
8159 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8160 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8161
bda874f6
CB
81622020-02-11 Christian Biesinger <cbiesinger@google.com>
8163
8164 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8165 registers.
8166
754e1564
CB
81672020-02-11 Christian Biesinger <cbiesinger@google.com>
8168
8169 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8170
8ddd8e0e
SM
81712020-02-11 Simon Marchi <simon.marchi@efficios.com>
8172
8173 * configure: Re-generate.
8174
898e7f60
SM
81752020-02-11 Simon Marchi <simon.marchi@efficios.com>
8176
8177 * configure: Re-generate.
8178
58df732b
SM
81792020-02-11 Simon Marchi <simon.marchi@efficios.com>
8180
8181 * acinclude: Update warning.m4 path.
8182 * warning.m4: Move to gdbsupport.
8183
da5bd37e
TT
81842020-02-11 Tom Tromey <tromey@adacore.com>
8185
8186 * remote.c (remote_console_output): Update.
8187 * printcmd.c (printf_command): Update.
8188 * event-loop.c (gdb_wait_for_event): Update.
8189 * linux-nat.c (sigchld_handler): Update.
8190 * remote-sim.c (gdb_os_write_stdout): Update.
8191 (gdb_os_flush_stdout): Update.
8192 (gdb_os_flush_stderr): Update.
8193 (gdb_os_write_stderr): Update.
8194 * exceptions.c (print_exception): Update.
8195 * remote-fileio.c (remote_fileio_func_read): Update.
8196 (remote_fileio_func_write): Update.
8197 * tui/tui.c (tui_enable): Update.
8198 * tui/tui-interp.c (tui_interp::init): Update.
8199 * utils.c (init_page_info): Update.
8200 (putchar_unfiltered, fputc_unfiltered): Update.
8201 (gdb_flush): Update.
8202 (emit_style_escape): Update.
8203 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8204 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8205 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8206 (stderr_file::write): Update.
8207 (stderr_file::puts): Update.
8208 * ui-file.h (ui_file_isatty, ui_file_write)
8209 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8210 (ui_file_puts): Don't declare.
8211
85f0dd3c
TV
82122020-02-10 Tom de Vries <tdevries@suse.de>
8213
8214 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8215 sentinel to char *.
8216
2e927613
TV
82172020-02-09 Tom de Vries <tdevries@suse.de>
8218
8219 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8220 filename if it matches "<artificial>".
8221
6bafc845
HD
82222020-02-09 Hannes Domani <ssbssa@yahoo.de>
8223
8224 * windows-tdep.c (struct enum_value_name): New struct.
8225 (create_enum): New function.
8226 (windows_get_siginfo_type): Create and use enum types.
8227
7928d571
HD
82282020-02-09 Hannes Domani <ssbssa@yahoo.de>
8229
8230 * NEWS: Mention $_siginfo support for Windows.
8231 * windows-nat.c (handle_exception): Set siginfo_er.
8232 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8233 (windows_xfer_siginfo): New function.
8234 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8235 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8236 (init_windows_gdbarch_data): New function.
8237 (get_windows_gdbarch_data): New function.
8238 (windows_get_siginfo_type): New function.
8239 (windows_init_abi): Register windows_get_siginfo_type.
8240 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8241
6751ebae
TT
82422020-02-08 Tom Tromey <tom@tromey.com>
8243
8244 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8245 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8246 <keep>: Declare method.
8247 <m_keep>: Remove member.
8248 <~cutu_reader>: Remove.
8249 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8250 (cutu_reader::cutu_reader): Update.
8251 (cutu_reader::keep): Rename from ~cutu_reader.
8252 (process_psymtab_comp_unit, build_type_psymtabs_1)
8253 (process_skeletonless_type_unit, load_partial_comp_unit)
8254 (load_full_comp_unit, dwarf2_read_addr_index)
8255 (read_signatured_type): Update.
8256
135f5437
TT
82572020-02-08 Tom Tromey <tom@tromey.com>
8258
8259 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8260 "want_partial_unit" parameter.
8261 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8262 Inline check for DW_TAG_partial_unit.
8263 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8264
9f66ff1c
TT
82652020-02-08 Tom Tromey <tom@tromey.com>
8266
8267 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8268 read.c.
8269 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8270 read.c.
8271
c8a7a66f
TT
82722020-02-08 Tom Tromey <tom@tromey.com>
8273
8274 * dwarf2/read.c (read_address): Move to comp-unit.c.
8275 (dwarf2_rnglists_process, dwarf2_ranges_process)
8276 (read_attribute_value, dwarf_decode_lines_1)
8277 (var_decode_location, decode_locdesc): Update.
8278 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8279 read.c. Remove "cu" parameter.
8280 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8281 method.
8282
8266302d
TT
82832020-02-08 Tom Tromey <tom@tromey.com>
8284
8285 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8286 (read_indirect_line_string): Update.
8287 * dwarf2/comp-unit.c (read_offset): Remove.
8288 (read_comp_unit_head): Update.
8289 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8290 method.
8291 (read_offset): Don't declare.
8292
4057dfde
TT
82932020-02-08 Tom Tromey <tom@tromey.com>
8294
8295 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8296 * dwarf2/read.c (struct comp_unit_head): Move to
8297 dwarf2/comp-unit.h.
8298 (enum class rcuh_kind): Move to comp-unit.h.
8299 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8300 (read_comp_unit_head, error_check_comp_unit_head)
8301 (read_and_check_comp_unit_head): Move to comp-unit.c.
8302 (read_offset, dwarf_unit_type_name): Likewise.
8303 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8304 (cutu_reader::cutu_reader, read_call_site_scope)
8305 (find_partial_die, follow_die_offset): Update.
8306 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8307
24aa364d
TT
83082020-02-08 Tom Tromey <tom@tromey.com>
8309
8310 * dwarf2/read.c (read_offset_1): Move to leb.c.
8311 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8312 (dwarf_decode_macro_bytes): Update.
8313 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8314 * dwarf2/leb.h (read_offset): Declare.
8315
2c7d5afc
TT
83162020-02-08 Tom Tromey <tom@tromey.com>
8317
8318 * dwarf2/read.c (dwarf2_section_size): Remove.
8319 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8320 Update.
8321 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8322
4075cb26
TT
83232020-02-08 Tom Tromey <tom@tromey.com>
8324
8325 * dwarf2/read.c (read_initial_length): Move to leb.c.
8326 * dwarf2/leb.h (read_initial_length): Declare.
8327 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8328 handle_nonstd parameter.
8329 * dwarf2/frame.c (read_initial_length): Remove.
8330 (decode_frame_entry_1): Update.
8331
09ba997f
TT
83322020-02-08 Tom Tromey <tom@tromey.com>
8333
8334 * dwarf2/loc.c (dwarf2_find_location_expression)
8335 (dwarf_evaluate_loc_desc::get_tls_address)
8336 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8337 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8338 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8339 (dwarf2_compile_property_to_c)
8340 (dwarf2_loc_desc_get_symbol_read_needs)
8341 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8342 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8343 (loclist_describe_location, loclist_tracepoint_var_ref)
8344 (loclist_generate_c_location): Update.
8345 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8346 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8347 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8348 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8349 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8350 (dwarf2_per_cu_data::addr_size)
8351 (dwarf2_per_cu_data::ref_addr_size)
8352 (dwarf2_per_cu_data::text_offset)
8353 (dwarf2_per_cu_data::addr_type): Now methods.
8354 (per_cu_header_read_in): Make per_cu "const".
8355 (dwarf2_version): Remove.
8356 (dwarf2_per_cu_data::int_type): Now a method.
8357 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8358 (set_die_type, read_array_type, read_subrange_index_type)
8359 (read_tag_string_type, read_subrange_type): Update.
8360 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8361 offset_size, ref_addr_size, text_offset, addr_type, version,
8362 objfile, int_type, addr_sized_int_type>: Declare methods.
8363
96c738c0
TT
83642020-02-08 Tom Tromey <tom@tromey.com>
8365
8366 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8367 Move earlier.
8368
8fdd972c
TT
83692020-02-08 Tom Tromey <tom@tromey.com>
8370
8371 * dwarf2/read.h (dwarf_line_debug): Declare.
8372 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8373 * dwarf2/read.c: Move line_header code to new files.
8374 (dwarf_line_debug): No longer static.
8375 * dwarf2/line-header.c: New file.
8376 * dwarf2/line-header.h: New file.
8377
03075812
TT
83782020-02-08 Tom Tromey <tom@tromey.com>
8379
8380 * dwarf2/read.c (struct line_header) <file_full_name,
8381 file_file_name>: Return unique_xmalloc_ptr.
8382 (line_header::file_file_name): Update.
8383 (line_header::file_full_name): Update.
8384 (dw2_get_file_names_reader): Update.
8385 (macro_start_file): Update.
8386
bb822404
TT
83872020-02-08 Tom Tromey <tom@tromey.com>
8388
8389 * dwarf2/read.c (struct line_header) <file_full_name,
8390 file_file_name>: Declare methods.
8391 (dw2_get_file_names_reader): Update.
8392 (file_file_name): Now a method.
8393 (file_full_name): Likewise.
8394 (macro_start_file): Update.
8395
009b64fc
TT
83962020-02-08 Tom Tromey <tom@tromey.com>
8397
8398 * dwarf2/read.c (dwarf_always_disassemble)
8399 (show_dwarf_always_disassemble): Move to loc.c.
8400 (_initialize_dwarf2_read): Move "always-disassemble" registration
8401 to loc.c.
8402 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8403 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8404 static.
8405 (show_dwarf_always_disassemble): Move from read.c.
8406 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8407
5895093f
TT
84082020-02-08 Tom Tromey <tom@tromey.com>
8409
8410 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8411 (create_quick_file_names_table): Return htab_up.
8412 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8413 Update.
8414 * dwarf2/read.h (struct dwarf2_per_objfile)
8415 <quick_file_names_table>: Now htab_up.
8416
b3b32279
TT
84172020-02-08 Tom Tromey <tom@tromey.com>
8418
8419 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8420
1d33d811
TT
84212020-02-08 Tom Tromey <tom@tromey.com>
8422
8423 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8424 Rewrite.
8425 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8426 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8427 (abbrev_table::abbrev_table): No longer inline.
8428 (ABBREV_HASH_SIZE): Remove.
8429 (abbrev_table::m_abbrevs): Now an htab_up.
8430
86de1d91
TT
84312020-02-08 Tom Tromey <tom@tromey.com>
8432
8433 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8434 (cutu_reader): Update.
8435 (build_type_psymtabs_1): Update.
8436 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8437 (abbrev_table::alloc_abbrev): Update.
8438 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8439 (abbrev_table::read): New static method, renamed from
8440 abbrev_table_read_table.
8441 (abbrev_table::alloc_abbrev)
8442 (abbrev_table::add_abbrev): Now private.
8443 (abbrev_table::abbrev_table): Now private.
8444 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8445
0335378b
TT
84462020-02-08 Tom Tromey <tom@tromey.com>
8447
8448 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8449 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8450 htab_up.
8451
48b490f2
TT
84522020-02-08 Tom Tromey <tom@tromey.com>
8453
8454 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8455 htab_up.
8456 (lookup_dwo_unit_in_dwp): Update.
8457 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8458 on obstack.
8459
bc68fb19
TT
84602020-02-08 Tom Tromey <tom@tromey.com>
8461
8462 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8463 obstack.
8464
d15acc42
TT
84652020-02-08 Tom Tromey <tom@tromey.com>
8466
8467 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8468 line_header_hash.
8469 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8470 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8471 Change type to htab_up.
8472
eaa5fa8b
TT
84732020-02-08 Tom Tromey <tom@tromey.com>
8474
8475 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8476 htab_up. Don't allocate on obstack.
8477 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8478 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8479 Change type to htab_up.
8480
b0b6a987
TT
84812020-02-08 Tom Tromey <tom@tromey.com>
8482
8483 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8484 Change type to htab_up.
8485 * dwarf2/read.c (create_signatured_type_table_from_index)
8486 (create_signatured_type_table_from_debug_names)
8487 (create_all_type_units, add_type_unit)
8488 (lookup_dwo_signatured_type, lookup_signatured_type)
8489 (process_skeletonless_type_unit): Update.
8490 (create_debug_type_hash_table, create_debug_types_hash_table):
8491 Change type of types_htab.
8492 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8493 htab_up. Don't allocate on obstack.
8494 (create_cus_hash_table): Change type of cus_htab parameter.
8495 (struct dwo_file) <cus, tus>: Now htab_up.
8496 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8497 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8498 (queue_and_load_all_dwo_tus): Update.
8499 * dwarf2/index-write.c (write_gdbindex): Update.
8500 (write_debug_names): Update.
8501
39856def
TT
85022020-02-08 Tom Tromey <tom@tromey.com>
8503
8504 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8505 dwarf2/read.c. Remove "next" member. Add constructor ntad
8506 destructor.
8507 (struct dwarf2_per_objfile) <queue>: New member.
8508 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8509 dwarf2/read.h.
8510 (dwarf2_queue, dwarf2_queue_tail): Remove.
8511 (class dwarf2_queue_guard): Add parameter to constructor. Use
8512 DISABLE_COPY_AND_ASSIGN.
8513 <m_per_objfile>: New member.
8514 <~dwarf2_queue_guard>: Rewrite.
8515 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8516 Update.
8517 (~dwarf2_queue_item): New.
8518
3e225074
TT
85192020-02-08 Tom Tromey <tom@tromey.com>
8520
8521 * dwarf2/read.c (struct die_info) <has_children>: New member.
8522 (dw2_get_file_names_reader): Remove has_children.
8523 (dw2_get_file_names): Update.
8524 (read_cutu_die_from_dwo): Remove has_children.
8525 (cutu_reader::init_tu_and_read_dwo_dies)
8526 (cutu_reader::cutu_reader): Update.
8527 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8528 Remove has_children.
8529 (build_type_psymtabs_1, process_skeletonless_type_unit)
8530 (load_partial_comp_unit, load_full_comp_unit): Update.
8531 (create_dwo_cu_reader): Remove has_children.
8532 (create_cus_hash_table, read_die_and_children): Update.
8533 (read_full_die_1,read_full_die): Remove has_children.
8534 (read_signatured_type): Update.
8535 (class cutu_reader) <has_children>: Remove.
8536
82ca8957
TT
85372020-02-08 Tom Tromey <tom@tromey.com>
8538
8539 * dwarf2/expr.c: Rename from dwarf2expr.c.
8540 * dwarf2/expr.h: Rename from dwarf2expr.h.
8541 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8542 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8543 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8544 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8545 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8546 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8547 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8548 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8549 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8550 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8551 * dwarf2/loc.c: Rename from dwarf2loc.c.
8552 * dwarf2/loc.h: Rename from dwarf2loc.h.
8553 * dwarf2/read.c: Rename from dwarf2read.c.
8554 * dwarf2/read.h: Rename from dwarf2read.h.
8555 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8556 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8557 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8558 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8559 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8560 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8561 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8562 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8563 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8564 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8565 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8566 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8567 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8568 Update.
8569 * Makefile.in (COMMON_SFILES): Update.
8570 (HFILES_NO_SRCDIR): Update.
8571
9e35d499
TT
85722020-02-08 Tom Tromey <tom@tromey.com>
8573
8574 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8575 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8576
1eba2311
TT
85772020-02-08 Tom Tromey <tom@tromey.com>
8578
8579 * dwarf2read.h (struct die_info): Don't declare.
8580
e41c2da2
TT
85812020-02-08 Tom Tromey <tom@tromey.com>
8582
8583 * dwarf2read.h (die_info_ptr): Remove typedef.
8584
4fc6c0d5
TT
85852020-02-08 Tom Tromey <tom@tromey.com>
8586
8587 * dwarf2read.c (read_call_site_scope)
8588 (handle_data_member_location, dwarf2_add_member_fn)
8589 (mark_common_block_symbol_computed, read_common_block)
8590 (attr_to_dynamic_prop, partial_die_info::read)
8591 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8592 (dwarf2_symbol_mark_computed, set_die_type): Update.
8593 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8594 method.
8595 (attr_form_is_block): Don't declare.
8596 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8597
cd6c91b4
TT
85982020-02-08 Tom Tromey <tom@tromey.com>
8599
8600 * dwarf2read.c (dwarf2_find_base_address, )
8601 (read_call_site_scope, rust_containing_type)
8602 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8603 (handle_data_member_location, dwarf2_add_member_fn)
8604 (get_alignment, read_structure_type, process_structure_scope)
8605 (mark_common_block_symbol_computed, read_common_block)
8606 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8607 (partial_die_info::read, read_attribute_value, new_symbol)
8608 (lookup_die_type, dwarf2_get_ref_die_offset)
8609 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8610 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8611 (dwarf2_symbol_mark_computed): Update.
8612 * dwarf2/attribute.h (struct attribute) <value_as_address,
8613 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8614 methods.
8615 (value_as_address, attr_form_is_section_offset)
8616 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8617 * dwarf2/attribute.c (attribute::value_as_address)
8618 (attribute::form_is_section_offset, attribute::form_is_constant)
8619 (attribute::form_is_ref): Now methods.
8620
162dce55
TT
86212020-02-08 Tom Tromey <tom@tromey.com>
8622
8623 * dwarf2read.c (struct attribute, DW_STRING)
8624 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8625 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8626 (attr_form_is_block, attr_form_is_section_offset)
8627 (attr_form_is_constant, attr_form_is_ref): Move.
8628 * dwarf2/attribute.h: New file.
8629 * dwarf2/attribute.c: New file, from dwarf2read.c.
8630 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8631
3054dd54
TT
86322020-02-08 Tom Tromey <tom@tromey.com>
8633
8634 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8635 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8636 Move.
8637 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8638 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8639 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8640 abbrev.c.
8641 * dwarf2/abbrev.h: New file.
8642 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8643 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8644
96b79293
TT
86452020-02-08 Tom Tromey <tom@tromey.com>
8646
8647 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8648 (dwarf2_section_size, dwarf2_get_section_info)
8649 (create_signatured_type_table_from_debug_names)
8650 (create_addrmap_from_aranges, read_debug_names_from_section)
8651 (get_gdb_index_contents_from_section, read_comp_unit_head)
8652 (error_check_comp_unit_head, read_abbrev_offset)
8653 (create_debug_type_hash_table, init_cu_die_reader)
8654 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8655 (read_comp_units_from_section, create_cus_hash_table)
8656 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8657 (create_dwp_v2_section, dwarf2_rnglists_process)
8658 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8659 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8660 (read_indirect_string_from_dwz, read_addr_index_1)
8661 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8662 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8663 (fill_in_loclist_baton): Update.
8664 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8665 get_containing_section, get_bfd_owner, get_bfd_section,
8666 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8667 (dwarf2_read_section, get_section_name, get_section_file_name)
8668 (get_containing_section, get_section_bfd_owner)
8669 (get_section_bfd_section, get_section_name, get_section_file_name)
8670 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8671 declare.
8672 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8673 (dwarf2_section_info::get_bfd_owner)
8674 (dwarf2_section_info::get_bfd_section)
8675 (dwarf2_section_info::get_name)
8676 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8677 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8678 (dwarf2_section_info::read): Now methods.
8679 * dwarf-index-write.c (class debug_names): Update.
8680
2c86cff9
TT
86812020-02-08 Tom Tromey <tom@tromey.com>
8682
8683 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8684 Move to dwarf2/section.h.
8685 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8686 (get_section_bfd_section, get_section_name)
8687 (get_section_file_name, get_section_id, get_section_flags)
8688 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8689 dwarf2/section.c.
8690 * dwarf2/section.h: New file.
8691 * dwarf2/section.c: New file, from dwarf2read.c.
8692 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8693
f4382c45
TT
86942020-02-08 Tom Tromey <tom@tromey.com>
8695
8696 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8697 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8698 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8699 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8700 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8701 * dwarf2/leb.h: New file, from dwarf2read.c.
8702 * dwarf2/leb.c: New file, from dwarf2read.c.
8703 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8704 Remove.
8705 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8706 (COMMON_SFILES): Add dwarf2/leb.c.
8707
01840b7a
JB
87082020-02-08 Joel Brobecker <brobecker@adacore.com>
8709
8710 GDB 9.1 released.
8711
dfcb27e4
IB
87122020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8713
8714 PR gdb/25190:
aac66a4c
SM
8715 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8716 * gdb/remote.c (remote_console_output): Update.
8717 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8718 (ui_file_puts): ...this.
8719 * gdb/ui-file.h (ui_file_puts): Add declaration.
8720 * gdb/utils.c (emit_style_escape): Update.
8721 (flush_wrap_buffer): Update.
8722 (fputs_maybe_filtered): Update.
8723 (fputs_unfiltered): Add function.
dfcb27e4 8724
faa17681
IB
87252020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8726
aac66a4c
SM
8727 * gdb/event-loop.c (gdb_wait_for_event): Update.
8728 * gdb/printcmd.c (printf_command): Update.
8729 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8730 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8731 (gdb_os_flush_stderr): Update.
8732 * gdb/remote.c (remote_console_output): Update.
8733 * gdb/ui-file.c (gdb_flush): Rename to...
8734 (ui_file_flush): ...this.
8735 (stderr_file::write): Update.
8736 (stderr_file::puts): Update.
8737 * gdb/ui-file.h (gdb_flush): Rename to...
8738 (ui_file_flush): ...this.
8739 * gdb/utils.c (gdb_flush): Add function.
8740 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8741
5abbbe1d
TT
87422020-02-07 Tom Tromey <tromey@adacore.com>
8743
8744 PR breakpoints/24915:
8745 * source.c (find_and_open_source): Do not check basenames_may_differ.
8746
919adfe8
TT
87472020-02-07 Tom Tromey <tom@tromey.com>
8748
8749 * README: Update gdbserver documentation.
8750 * gdbserver: Move to top level.
8751 * configure.tgt (build_gdbserver): Remove.
8752 * configure.ac: Remove --enable-gdbserver.
8753 * configure: Rebuild.
8754 * Makefile.in (distclean): Don't mention gdbserver.
8755
1d5d29e7
SV
87562020-02-06 Shahab Vahedi <shahab@synopsys.com>
8757
8758 * source-cache.c (source_cache::ensure): Surround
8759 get_plain_source_lines with a try/catch.
8760 (source_cache::get_line_charpos): Get rid of try/catch
8761 and only check for the return value of "ensure".
8762 * tui/tui-source.c (tui_source_window::set_contents):
8763 Simplify "nlines" calculation.
8764
6eb1129c
SV
87652020-02-06 Shahab Vahedi <shahab@synopsys.com>
8766
8767 * MAINTAINERS (Write After Approval): Add myself.
8768
c6a42d11
CB
87692020-02-05 Christian Biesinger <cbiesinger@google.com>
8770
8771 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8772 function call.
8773
c8ecdda6
CB
87742020-02-05 Christian Biesinger <cbiesinger@google.com>
8775
8776 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8777
f6480e70
MR
87782020-02-05 Maciej W. Rozycki <macro@wdc.com>
8779
8780 * nat/riscv-linux-tdesc.h: New file.
8781 * nat/riscv-linux-tdesc.c: New file, taking code from...
8782 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8783 ... here.
8784 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8785 NATDEPFILES.
8786
dcc9fbc6
AB
87872020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8788
8789 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8790 we don't set the fake simulator ptid to the null_ptid.
8791
719546c4
SM
87922020-02-03 Simon Marchi <simon.marchi@efficios.com>
8793
8794 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8795 * gdbthread.h (class thread_info) <resumed>: Likewise.
8796 * infrun.c (resume_1): Likewise.
8797 (proceed): Likewise.
8798 (infrun_thread_stop_requested): Likewise.
8799 (stop_all_threads): Likewise.
8800 (handle_inferior_event): Likewise.
8801 (restart_threads): Likewise.
8802 (finish_step_over): Likewise.
8803 (keep_going_stepped_thread): Likewise.
8804 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8805 (linux_handle_extended_wait): Likewise.
8806 * record-btrace.c (get_thread_current_frame_id): Likewise.
8807 * record-full.c (record_full_wait_1): Likewise.
8808 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8809 * target.c (target_resume): Likewise.
8810 * thread.c (set_running_thread): Likewise.
8811
e409c542
AKS
88122020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8813
8814 * f-valprint.c (f77_print_array_1): Changed datatype of index
8815 variable to LONGEST from int to enable it to contain bound
8816 values correctly.
8817
ee98c0da
MR
88182020-02-03 Maciej W. Rozycki <macro@wdc.com>
8819
8820 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8821 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8822 offsets according to FLEN determined.
8823 (riscv_linux_nat_target::read_description): Determine FLEN
8824 dynamically.
8825 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8826 according to FLEN determined.
8827 (riscv_linux_nat_target::store_registers): Likewise.
8828
aa66aac4
SV
88292020-02-01 Shahab Vahedi <shahab@synopsys.com>
8830
8831 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8832 when reg->group is empty and reggroup is not.
8833
fd9faca8
TT
88342020-01-31 Tom Tromey <tromey@adacore.com>
8835
8836 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8837 Call beneath target's mourn_inferior after unpushing.
8838
42330a68
AB
88392020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8840
8841 PR tui/9765
8842 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8843 have enough lines to fill the screen, still return the lowest
8844 address we found.
8845
7a27a45b
AB
88462020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8847
8848 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8849 '-', '<', and '>' commands.
8850
c47f70e2
PA
88512020-01-29 Pedro Alves <palves@redhat.com>
8852 Sergio Durigan Junior <sergiodj@redhat.com>
8853
8854 * infcmd.c (construct_inferior_arguments): Assert that
8855 'argc' is greater than 0.
8856
5133a315
LM
88572020-01-29 Luis Machado <luis.machado@linaro.org>
8858
8859 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8860 (BRK_INSN_MASK): Define to 0xd4200000.
8861 (aarch64_program_breakpoint_here_p): New function.
8862 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8863 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8864 breakpoint.c.
8865 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8866 breakpoint.h
8867 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8868 call gdbarch_program_breakpoint_here_p.
8869 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8870 default_program_breakpoint_here_p, changed return type to bool and
8871 simplified.
8872 * breakpoint.h (program_breakpoint_here): Moved prototype to
8873 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8874 return type to bool.
8875 * gdbarch.c: Regenerate.
8876 * gdbarch.h: Regenerate.
8877 * gdbarch.sh (program_breakpoint_here_p): New method.
8878 * infrun.c (handle_signal_stop): Call
8879 gdbarch_program_breakpoint_here_p.
8880
168f8c6b
TT
88812020-01-26 Tom Tromey <tom@tromey.com>
8882
8883 * ctfread.c (struct ctf_fp_info): Reindent.
8884 (_initialize_ctfread): Remove.
8885
128a391f
TT
88862020-01-26 Tom Tromey <tom@tromey.com>
8887
8888 * psymtab.c (partial_map_expand_apply)
8889 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8890 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8891 (psym_print_stats, psym_expand_symtabs_for_function)
8892 (psym_map_symbol_filenames, psym_map_matching_symbols)
8893 (psym_expand_symtabs_matching)
8894 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8895 (maintenance_check_psymtabs): Use new methods.
8896 * psympriv.h (struct partial_symtab) <readin_p,
8897 get_compunit_symtab>: New methods.
8898 <readin, compunit_symtab>: Remove members.
8899 (struct standard_psymtab): New.
8900 (struct legacy_psymtab): Derive from standard_psymtab.
8901 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8902 standard_psymtab.
8903 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8904
0494dbec
TT
89052020-01-26 Tom Tromey <tom@tromey.com>
8906
8907 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8908 read_dependencies. Add assert.
8909 * psymtab.c (partial_symtab::read_dependencies): New method.
8910 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8911 method.
8912 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8913 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8914 read_dependencies.
8915 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8916 Add assert.
8917
8566b89b
TT
89182020-01-26 Tom Tromey <tom@tromey.com>
8919
8920 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8921 Call expand_psymtab.
8922 (xcoff_read_symtab): Call expand_psymtab.
8923 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8924 legacy_expand_psymtab.
8925 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8926 method.
8927 (struct legacy_psymtab) <expand_psymtab>: Implement.
8928 <legacy_expand_psymtab>: New member.
8929 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8930 (parse_partial_symbols): Set legacy_expand_psymtab.
8931 (psymtab_to_symtab_1): Change argument order. Call
8932 expand_psymtab.
8933 (new_psymtab): Set legacy_expand_psymtab.
8934 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8935 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8936 expand_psymtab.
8937 (dwarf2_psymtab::expand_psymtab): Rename from
8938 psymtab_to_symtab_1. Call expand_psymtab.
8939 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8940 (dbx_end_psymtab): Likewise.
8941 (dbx_psymtab_to_symtab_1): Change argument order. Call
8942 expand_psymtab.
8943 (dbx_read_symtab): Call expand_psymtab.
8944 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8945 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8946 (ctf_psymtab::read_symtab): Call expand_psymtab.
8947
077cbab2
TT
89482020-01-26 Tom Tromey <tom@tromey.com>
8949
8950 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8951 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8952 messages.
8953 * mdebugread.c (mdebug_read_symtab): Remove prints.
8954 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8955 assert.
8956 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8957
891813be
TT
89582020-01-26 Tom Tromey <tom@tromey.com>
8959
8960 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8961 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8962 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8963 legacy_symtab.
8964 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8965 * psymtab.c (psymtab_to_symtab): Call method.
8966 (dump_psymtab): Update.
8967 * psympriv.h (struct partial_symtab): Add virtual destructor.
8968 <read_symtab>: New method.
8969 (struct legacy_symtab): New.
8970 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8971 (struct pst_map) <pst>: Now a legacy_psymtab.
8972 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8973 (new_psymtab): Use legacy_psymtab.
8974 * dwarf2read.h (struct dwarf2_psymtab): New.
8975 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8976 * dwarf2read.c (dwarf2_create_include_psymtab)
8977 (dwarf2_build_include_psymtabs, create_type_unit_group)
8978 (create_partial_symtab, process_psymtab_comp_unit_reader)
8979 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8980 (set_partial_user): Use dwarf2_psymtab.
8981 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8982 (psymtab_to_symtab_1, process_full_comp_unit)
8983 (process_full_type_unit, dwarf2_ranges_read)
8984 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8985 (dwarf_decode_lines): Use dwarf2_psymtab.
8986 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8987 (add_address_entry_worker, write_one_signatured_type)
8988 (recursively_count_psymbols, recursively_write_psymbols)
8989 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8990 (write_debug_names): Likewise.
8991 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8992 <pst>: Now a legacy_psymtab.
8993 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8994 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8995 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8996 * ctfread.c (struct ctf_psymtab): New.
8997 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8998 ctf_psymtab.
8999 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9000 (create_partial_symtab): Return a ctf_psymtab.
9001 (scan_partial_symbols): Update.
9002
c3693a1d
TT
90032020-01-26 Tom Tromey <tom@tromey.com>
9004
9005 * xcoffread.c (xcoff_start_psymtab): Use new.
9006 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9007 renamed from start_psymtab_common.
9008 * psympriv.h (struct partial_symtab): Add new constructor.
9009 (start_psymtab_common): Don't declare.
9010 * mdebugread.c (parse_partial_symbols): Use new.
9011 * dwarf2read.c (create_partial_symtab): Use new.
9012 * dbxread.c (start_psymtab): Use new.
9013 * ctfread.c (create_partial_symtab): Use new.
9014
32caafd0
TT
90152020-01-26 Tom Tromey <tom@tromey.com>
9016
9017 * xcoffread.c (xcoff_end_psymtab): Use new.
9018 * psymtab.c (start_psymtab_common): Use new.
9019 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9020 Update.
9021 * psympriv.h (struct partial_symtab): Add parameters to
9022 constructor. Don't inline.
9023 (allocate_psymtab): Don't declare.
9024 * mdebugread.c (new_psymtab): Use new.
9025 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9026 * dbxread.c (dbx_end_psymtab): Use new.
9027
abaa2f23
TT
90282020-01-26 Tom Tromey <tom@tromey.com>
9029
9030 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9031 allocate_psymtab. Update documentation.
9032 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9033 allocate_psymtab. Do not use new.
9034 (allocate_psymtab): Use new. Update.
9035
6d94535f
TT
90362020-01-26 Tom Tromey <tom@tromey.com>
9037
9038 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9039 * psymtab.c (psym_print_stats): Update.
9040 * psympriv.h (struct partial_symtab) <readin,
9041 psymtabs_addrmap_supported, anonymous>: Now bool.
9042 * mdebugread.c (psymtab_to_symtab_1): Update.
9043 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9044 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9045 (process_full_comp_unit, process_full_type_unit): Update.
9046 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9047 * ctfread.c (psymtab_to_symtab): Update.
9048
6f17252b
TT
90492020-01-26 Tom Tromey <tom@tromey.com>
9050
9051 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9052 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9053 * psymtab.c (psymtab_storage): Delete psymtabs.
9054 (psymtab_storage::allocate_psymtab): Use new.
9055 (psymtab_storage::discard_psymtab): Use delete.
9056 * psympriv.h (struct partial_symtab): Add constructor and
9057 initializers.
9058
f6f1cebc
TT
90592020-01-26 Tom Tromey <tom@tromey.com>
9060
9061 * machoread.c: Do not include psympriv.h.
9062
e47e48f6
PW
90632020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9064
9065 * NEWS: Mention the new option and the set/show commands.
9066
a2fedca9
PW
90672020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9068
9069 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9070 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9071 (validate_exec_file): New variables, enums, functions.
9072 (exec_file_locate_attach, print_section_info): Style the filenames.
9073 (_initialize_exec): Install show_exec_file_mismatch_command and
9074 set_exec_file_mismatch_command.
9075 * gdbcore.h (validate_exec_file): Declare.
9076 * infcmd.c (attach_command): Call validate_exec_file.
9077 * remote.c ( remote_target::remote_add_inferior): Likewise.
9078
7ffa82e1
AB
90792020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9080
9081 * frame.c (find_frame_sal): Move call to get_next_frame into more
9082 inner scope.
9083 * inline-frame.c (inilne_state) <inline_state>: Update argument
9084 types.
9085 (inilne_state) <skipped_symbol>: Rename to...
9086 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9087 (skip_inline_frames): Build vector of skipped symbols and use this
9088 to reate the inline_state.
9089 (inline_skipped_symbol): Add a comment and some assertions, fetch
9090 skipped symbol from the list.
9091
3d92a3e3
AB
90922020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9093
9094 * buildsym.c (lte_is_less_than): Delete.
9095 (buildsym_compunit::end_symtab_with_blockvector): Create local
9096 lambda function to sort line table entries, and use
9097 std::stable_sort instead of std::sort.
9098 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9099 markers when looking for a previous line.
9100
94a72be7
AB
91012020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9102
9103 * dwarf2read.c (lnp_state_machine::record_line): Include
9104 end_sequence parameter in debug print out. Record the line if we
9105 are at an end_sequence marker even if it's not the start of a
9106 statement.
9107 * symmisc.c (maintenance_print_one_line_table): Print end of
9108 sequence markers with 'END' not '0'.
9109
53af73bf
PA
91102020-01-24 Pedro Alves <palves@redhat.com>
9111
9112 PR gdb/25410
9113 * thread.c (scoped_restore_current_thread::restore): Use
9114 switch_to_inferior_no_thread.
9115 * exec.c: Include "progspace-and-thread.h".
9116 (add_target_sections, remove_target_sections):
9117 scoped_restore_current_pspace_and_thread instead of
9118 scoped_restore_current_thread.
9119 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9120 and aspace to the inferior before calling clone_program_space.
9121 Remove stale comment.
9122
3050c6f4
CB
91232020-01-24 Christian Biesinger <cbiesinger@google.com>
9124
9125 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9126 (arm_netbsd_nat_target::fetch_registers): ...this.
9127 (arm_nbsd_nat_target::store_registers): Rename to...
9128 (arm_netbsd_nat_target::store_registers): ...this.
9129
73685c7e
CB
91302020-01-24 Christian Biesinger <cbiesinger@google.com>
9131
9132 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9133 register_t.
9134
89203d40
CB
91352020-01-24 Christian Biesinger <cbiesinger@google.com>
9136
9137 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9138 Update comment.
9139 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9140 Likewise.
9141 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9142 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9143 the correct replacement (iterate_over_regset_sections).
9144 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9145 Update comment.
9146
1ba1ac88
AB
91472020-01-24 Graham Markall <graham.markall@embecosm.com>
9148
9149 PR gdb/23718
9150 * gdb/python/python.c (execute_gdb_command): Call
9151 async_enable_stdin in catch block.
9152
f3364a6d
AB
91532020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9154
9155 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9156 SWITCH_THRU_ALL_UIS.
9157
733d0a67
AB
91582020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9159
9160 PR tui/9765
9161 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9162 comment, add extra parameter, and update to store previous symbol
9163 when appropriate.
9164 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9165 add extra parameter.
9166 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9167 remove unneeded parameter, add try/catch around gdb_print_insn,
9168 rewrite to add items to asm_lines vector.
9169 (tui_find_backward_disassembly_start_address): New function.
9170 (tui_find_disassembly_address): Updated throughout.
9171 (tui_disasm_window::set_contents): Update for changes to
9172 tui_disassemble.
9173 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9174 number of lines to scroll.
9175
b3b3bada
SM
91762020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9177
9178 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9179 (SECT_OFF_DATA): Likewise.
9180 (SECT_OFF_RODATA): Likewise.
9181 (SECT_OFF_TEXT): Likewise.
9182 (SECT_OFF_BSS): Likewise.
9183 (struct objfile) <text_section_offset, data_section_offset>: New
9184 methods.
9185 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9186 objfile::text_section_offset.
9187 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9188 * coffread.c (coff_symtab_read): Likewise.
9189 (enter_linenos): Likewise.
9190 (process_coff_symbol): Likewise.
9191 * ctfread.c (get_objfile_text_range): Likewise.
9192 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9193 Use objfile::data_section_offset.
9194 * dwarf2-frame.c (execute_cfa_program): Use
9195 objfile::text_section_offset.
9196 (dwarf2_frame_find_fde): Likewise.
9197 * dwarf2read.c (create_addrmap_from_index): Likewise.
9198 (create_addrmap_from_aranges): Likewise.
9199 (dw2_find_pc_sect_compunit_symtab): Likewise.
9200 (process_psymtab_comp_unit_reader): Likewise.
9201 (add_partial_symbol): Likewise.
9202 (add_partial_subprogram): Likewise.
9203 (process_full_comp_unit): Likewise.
9204 (read_file_scope): Likewise.
9205 (read_func_scope): Likewise.
9206 (read_lexical_block_scope): Likewise.
9207 (read_call_site_scope): Likewise.
9208 (dwarf2_rnglists_process): Likewise.
9209 (dwarf2_ranges_process): Likewise.
9210 (dwarf2_ranges_read): Likewise.
9211 (dwarf_decode_lines_1): Likewise.
9212 (new_symbol): Likewise.
9213 (dwarf2_fetch_die_loc_sect_off): Likewise.
9214 (dwarf2_per_cu_text_offset): Likewise.
9215 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9216 * hppa-tdep.c (read_unwind_info): Likewise.
9217 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9218 * psympriv.h (struct partial_symtab): Likewise.
9219 * psymtab.c (find_pc_sect_psymtab): Likewise.
9220 * solib-svr4.c (enable_break): Likewise.
9221 * stap-probe.c (relocate_address): Use
9222 objfile::data_section_offset.
9223 * xcoffread.c (enter_line_range): Use
9224 objfile::text_section_offset.
9225 (read_xcoff_symtab): Likewise.
9226
ab53f382
SM
92272020-01-23 Simon Marchi <simon.marchi@efficios.com>
9228
9229 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9230 declaration to narrower scopes.
9231
e7eee665
SM
92322020-01-23 Simon Marchi <simon.marchi@efficios.com>
9233
9234 * darwin-nat.h (struct darwin_exception_msg, enum
9235 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9236 Move up.
9237 (class darwin_nat_target) <wait_1, check_new_threads,
9238 decode_exception_message, decode_message, stop_inferior,
9239 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9240 * darwin-nat.c (darwin_check_new_threads): Rename to...
9241 (darwin_nat_target::check_new_threads): ... this.
9242 (darwin_suspend_inferior_it): Remove.
9243 (darwin_decode_exception_message): Rename to...
9244 (darwin_nat_target::decode_exception_message): ... this.
9245 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9246 (darwin_decode_message): Rename to...
9247 (darwin_nat_target::decode_message): ... this.
9248 (cancel_breakpoint): Rename to...
9249 (darwin_nat_target::cancel_breakpoint): ... this.
9250 (darwin_wait): Rename to...
9251 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9252 instead of iterate_over_inferiors.
9253 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9254 (darwin_stop_inferior): Rename to...
9255 (darwin_nat_target::stop_inferior): ... this.
9256 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9257 (darwin_init_thread_list): Rename to...
9258 (darwin_nat_target::init_thread_list): ... this.
9259 (darwin_ptrace_him): Rename to...
9260 (darwin_nat_target::ptrace_him): ... this.
9261 (darwin_nat_target::create_inferior): Pass lambda function to
9262 fork_inferior.
9263 (darwin_nat_target::detach): Call stop_inferior instead of
9264 darwin_stop_inferior.
9265 * fork-inferior.h (fork_inferior): Change init_trace_fun
9266 parameter to gdb::function_view.
9267 * fork-inferior.c (fork_inferior): Likewise.
9268
c162ed3e
HD
92692020-01-23 Hannes Domani <ssbssa@yahoo.de>
9270
9271 * i386-cygwin-tdep.c (core_process_module_section): Update.
9272 * windows-nat.c (struct lm_info_windows): Add text_offset.
9273 (windows_xfer_shared_libraries): Update.
9274 * windows-tdep.c (windows_xfer_shared_library):
9275 Add text_offset_cached argument.
9276 * windows-tdep.h (windows_xfer_shared_library): Update.
9277
a1237872
SM
92782020-01-21 Simon Marchi <simon.marchi@efficios.com>
9279
9280 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9281
b3ee6dd9
SM
92822020-01-21 Simon Marchi <simon.marchi@efficios.com>
9283
9284 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9285 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9286 replace with range-based for.
9287 (gdbsim_interrupt_inferior): Remove.
9288 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9289 with a range-based for. Inline code from
9290 gdbsim_interrupt_inferior.
9291
f9fac3c8
SM
92922020-01-21 Simon Marchi <simon.marchi@efficios.com>
9293
9294 * infrun.c (proceed): Fix indentation.
9295
f6474de9
TT
92962020-01-21 Tom Tromey <tromey@adacore.com>
9297
9298 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9299 * python/python.c (python_extension_ops): Update.
9300 (gdbpy_colorize): New function.
9301 * python/lib/gdb/__init__.py (colorize): New function.
9302 * extension.h (ext_lang_colorize): Declare.
9303 * extension.c (ext_lang_colorize): New function.
9304 * extension-priv.h (struct extension_language_ops) <colorize>: New
9305 member.
9306 * cli/cli-style.c (_initialize_cli_style): Update help text.
9307
f0c702d4
LM
93082020-01-21 Luis Machado <luis.machado@linaro.org>
9309
9310 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9311 <cond>: Change type to bool.
9312 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9313 (aarch64_displaced_step_cb): Likewise.
9314 (aarch64_displaced_step_tb): Likewise.
9315
1ab139e5
LM
93162020-01-21 Luis Machado <luis.machado@linaro.org>
9317
9318 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9319 output.
9320
0c271889
LM
93212020-01-21 Luis Machado <luis.machado@linaro.org>
9322
9323 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9324 <pc_adjust>: Adjust the documentation.
9325 (aarch64_displaced_step_fixup): Check if PC really moved before
9326 adjusting it.
9327
4d89c1c7
TT
93282020-01-19 Tom Tromey <tom@tromey.com>
9329
9330 * disasm.c (~gdb_disassembler): New destructor.
9331 (gdb_buffered_insn_length): Call disassemble_free_target.
9332 * disasm.h (class gdb_disassembler): Declare destructor. Use
9333 DISABLE_COPY_AND_ASSIGN.
9334
c0ab21c2
TT
93352020-01-19 Tom Tromey <tom@tromey.com>
9336
9337 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9338 (die_reader_func_ftype): Remove.
9339 (cutu_reader): New class.
9340 (dw2_get_file_names_reader): Remove "data" parameter.
9341 (dw2_get_file_names): Use cutu_reader.
9342 (create_debug_type_hash_table): Update.
9343 (read_cutu_die_from_dwo): Update comment.
9344 (lookup_dwo_unit): Add dwo_name parameter.
9345 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9346 die_reader_func_ftype and data parameters.
9347 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9348 Remove die_reader_func_ftype and data parameters.
9349 (~cutu_reader): New; from init_cutu_and_read_dies.
9350 (cutu_reader::cutu_reader): Rename from
9351 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9352 and data parameters.
9353 (init_cutu_and_read_dies_simple): Remove.
9354 (struct process_psymtab_comp_unit_data): Remove.
9355 (process_psymtab_comp_unit_reader): Remove data parameter; add
9356 want_partial_unit and pretend_language parameters.
9357 (process_psymtab_comp_unit): Use cutu_reader.
9358 (build_type_psymtabs_reader): Remove data parameter.
9359 (build_type_psymtabs_1): Use cutu_reader.
9360 (process_skeletonless_type_unit): Likewise.
9361 (load_partial_comp_unit_reader): Remove.
9362 (load_partial_comp_unit): Use cutu_reader.
9363 (load_full_comp_unit_reader): Remove.
9364 (load_full_comp_unit): Use cutu_reader.
9365 (struct create_dwo_cu_data): Remove.
9366 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9367 dwo_unit parameters.
9368 (create_cus_hash_table): Use cutu_reader.
9369 (struct dwarf2_read_addr_index_data): Remove.
9370 (dwarf2_read_addr_index_reader): Remove.
9371 (dwarf2_read_addr_index): Use cutu_reader.
9372 (read_signatured_type_reader): Remove.
9373 (read_signatured_type): Use cutu_reader.
9374
45bbae5c
TT
93752020-01-19 Tom Tromey <tom@tromey.com>
9376
9377 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9378 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9379 (tui_wrefresh): Declare.
9380 * tui/tui-wingeneral.c (suppress_output): New global.
9381 (tui_suppress_output, ~tui_suppress_output): New constructor and
9382 destructor.
9383 (tui_wrefresh): New function.
9384 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9385 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9386 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9387 method.
9388 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9389 tui_wrefresh.
9390 (tui_data_window::no_refresh): New method.
9391 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9392 (tui_reg_command): Use tui_suppress_output
9393 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9394 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9395 method.
9396 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9397
4f13c1c0
TT
93982020-01-19 Tom Tromey <tom@tromey.com>
9399
9400 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9401 Handle case where symtab is null.
9402
fa47e446
SM
94032020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9404
9405 * linux-fork.c (one_fork_p): Simplify.
9406
26f42329
SM
94072020-01-17 Simon Marchi <simon.marchi@efficios.com>
9408
9409 * top.c (struct qt_args): Remove.
9410 (kill_or_detach): Change return type to void, replace `void *`
9411 parameter with a proper one.
9412 (print_inferior_quit_action): Likewise.
9413 (quit_confirm): Use range-based for loop to iterate over inferiors.
9414 (quit_force): Likewise.
9415
a9ac81b1
SM
94162020-01-17 Simon Marchi <simon.marchi@efficios.com>
9417
9418 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9419 `void *` parameter with proper parameters.
9420 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9421 (print_one_inferior): Change return type to void, replace `void *`
9422 parameter with proper parameters.
9423 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9424 inferiors.
9425 (get_other_inferior): Remove.
9426 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9427 inferiors.
9428
788eca49
SM
94292020-01-17 Simon Marchi <simon.marchi@efficios.com>
9430
9431 * mi/mi-interp.c (report_initial_inferior): Remove.
9432 (mi_interp::init): Use range-based for to iterate over inferiors.
9433
d9bc85b6
SM
94342020-01-17 Simon Marchi <simon.marchi@efficios.com>
9435
9436 * python/py-inferior.c (build_inferior_list): Remove.
9437 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9438
40c94099
CB
94392020-01-16 Christian Biesinger <cbiesinger@google.com>
9440
9441 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9442 (btrace_stitch_trace): Likewise.
9443 * charset.c (intermediate_encoding): Likewise (vaild).
9444 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9445 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9446 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9447
e0cdfe3c
HD
94482020-01-16 Hannes Domani <ssbssa@yahoo.de>
9449
9450 * windows-tdep.c (windows_get_tlb_type):
9451 Add rtl_user_process_parameters type.
9452
790f1718 94532020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9454 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9455
9456 PR build/24805
9457 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9458 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9459 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9460 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9461 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9462 (ps_plog): Redeclare exported functions with default visibility.
9463
3112ed97
NA
94642020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9465
9466 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9467 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9468
8dc3273e
SM
94692020-01-15 Simon Marchi <simon.marchi@efficios.com>
9470
9471 * infcmd.c (post_create_inferior): Use get_thread_regcache
9472 instead of get_current_regcache.
9473
ff47f4f0
TT
94742020-01-14 Tom Tromey <tom@tromey.com>
9475
9476 PR symtab/12535:
9477 * python/python.c (gdbpy_decode_line): Treat empty string the same
9478 as no argument.
9479
975f45b7
TT
94802020-01-14 Tom Tromey <tom@tromey.com>
9481
9482 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9483
25e57356
TT
94842020-01-14 Tom Tromey <tom@tromey.com>
9485
9486 * nat/linux-btrace.c: Don't include <config.h>.
9487 * nat/linux-ptrace.c: Don't include <config.h>.
9488 * nat/x86-linux-dregs.c: Don't include <config.h>.
9489
05ea2a05
TT
94902020-01-14 Tom Tromey <tom@tromey.com>
9491
9492 * configure: Rebuild.
9493 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9494
01027315
TT
94952020-01-14 Tom Tromey <tom@tromey.com>
9496
9497 * nat/x86-linux-dregs.c: Include configh.h.
9498 * nat/linux-ptrace.c: Include configh.h.
9499 * nat/linux-btrace.c: Include configh.h.
9500 * defs.h: Include config.h, bfd.h.
9501 * configure.ac: Don't source common.host.
9502 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9503 * configure: Rebuild.
9504 * acinclude.m4: Update path.
9505 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9506 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9507 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9508 (CLIBS): Add LIBSUPPORT.
9509 (CDEPS): Likewise.
9510 (COMMON_SFILES): Remove gdbsupport files.
9511 (HFILES_NO_SRCDIR): Likewise.
9512 (stamp-version): Update path to create-version.sh.
9513 (ALLDEPFILES): Remove gdbsupport files.
9514
b2ceabe8
TT
95152020-01-14 Tom Tromey <tom@tromey.com>
9516
9517 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9518 USE_WIN32API when needed.
9519 * configure.ac (USE_WIN32API): Don't define.
9520 (WIN32LIBS): Use WIN32APILIBS.
9521 * configure: Rebuild.
9522
25c51f71
TT
95232020-01-14 Tom Tromey <tom@tromey.com>
9524
9525 * configure: Rebuild.
9526 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9527
717c684d
BE
95282020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9529
9530 * skip.c (skip_function_command): Make skip w/o arguments use the
9531 name of the inlined function if pc is inside any inlined function.
9532
7da6a5b9
LM
95332020-01-14 Luis Machado <luis.machado@linaro.org>
9534
9535 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9536 * infrun.c (resume_1): Likewise.
9537 (handle_inferior_event): Remove stale comment.
9538 * linux-nat.c (linux_nat_target::resume): Update comments.
9539 (save_stop_reason): Likewise.
9540 (linux_nat_filter_event): Likewise.
9541 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9542
44e4c775
AB
95432020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9544
9545 * elfread.c (record_minimal_symbol): Set section index to 0 for
9546 non-allocatable sections.
9547
18a8505e
AT
9548
95492020-01-13 Ali Tamur <tamur@google.com>
9550
9551 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9552 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9553 to gdb::optional. Update comments.
9554 (dwo_file): Update comments.
9555 (read_attribute): Update API to take an additional out parameter,
9556 need_reprocess. This is used to mark attributes that need other
9557 attributes (e.g. str_offsets_base) for correct computation which may not
9558 have been read yet.
9559 (read_attribute_reprocess): New function declaration.
9560 (read_addr_index): Likewise.
9561 (read_dwo_str_index): Likewise.
9562 (read_stub_str_index): Likewise.
9563 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9564 (lookup_addr_base): New function definition.
9565 (lookup_ranges_base): Likewise.
9566 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9567 lookup_ranges_base.
9568 (init_cutu_and_read_dies): Update comments.
9569 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9570 unit. This is used to inherit parent's str_offsets_base and addr_base.
9571 Update comments.
9572 (init_cutu_and_read_dies_simple): Reflect API changes.
9573 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9574 (create_cus_hash_table): Change API to take parent compile unit.
9575 Reflect API changes.
9576 (open_and_init_dwo_file): Reflect API changes.
9577 (dwarf2_get_pc_bounds): Update comments.
9578 (dwarf2_record_block_ranges): Likewise.
9579 (read_full_die_1): Change implementation to reprocess attributes that
9580 need str_offsets_base and addr_base.
9581 (partial_die_info::read): Likewise.
9582 (read_attribute_reprocess): New function definition.
9583 (read_attribute_value): Change API to take an additional out parameter,
9584 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9585 when a non-dwo compile unit has index based attributes.
9586 (read_attribute): Reflect API changes.
9587 (read_addr_index_1): Reflect API changes. Update comments.
9588 (dwarf2_read_addr_index_data): Reflect API changes.
9589 (dwarf2_read_addr_index): Likewise.
9590 (read_str_index): Change API and implementation. This becomes a helper
9591 to be used by the new string index related methods. Update error
9592 message and comments.
9593 (read_dwo_str_index): New function definition.
9594 (read_stub_str_index): Likewise.
9595 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9596 * symfile.h (dwarf2_debug_sections): Likewise.
9597 * xcoffread.c (dwarf2_debug_sections): Likewise.
9598
0cac9354
SM
95992020-01-13 Simon Marchi <simon.marchi@efficios.com>
9600
9601 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9602 core_reg_sect type to gdb_byte *.
9603 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9604 * cris-tdep.c (fetch_core_registers): Likewise.
9605 * corelow.c (core_target::get_core_register_section): Change
9606 type of `contents` to gdb::byte_vector.
9607
9a6d629c
AB
96082020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9609
9610 * tui/tui-wingeneral.c (box_win): Position the title in the center
9611 of the border.
9612
d8b2f9e3
SM
96132020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9614
9615 * corelow.c (core_target::get_core_register_section): Use
9616 std::vector instead of alloca.
9617
bb564c58
SM
96182020-01-13 Simon Marchi <simon.marchi@efficios.com>
9619
9620 * warning.m4: Add -Wmissing-declarations to build_warnings.
9621 * configure: Re-generate.
9622
6b366111
SM
96232020-01-13 Simon Marchi <simon.marchi@efficios.com>
9624
9625 * python/python.c (init__gdb_module): Add declaration.
9626
6c265988
SM
96272020-01-13 Simon Marchi <simon.marchi@efficios.com>
9628
9629 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9630 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9631 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9632 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9633 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9634 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9635 * ada-exp.y (_initialize_ada_exp): Add declaration.
9636 * ada-lang.c (_initialize_ada_language): Add declaration.
9637 * ada-tasks.c (_initialize_tasks): Add declaration.
9638 * agent.c (_initialize_agent): Add declaration.
9639 * aix-thread.c (_initialize_aix_thread): Add declaration.
9640 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9641 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9642 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9643 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9644 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9645 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9646 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9647 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9648 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9649 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9650 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9651 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9652 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9653 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9654 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9655 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9656 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9657 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9658 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9659 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9660 * annotate.c (_initialize_annotate): Add declaration.
9661 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9662 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9663 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9664 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9665 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9666 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9667 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9668 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9669 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9670 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9671 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9672 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9673 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9674 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9675 * auto-load.c (_initialize_auto_load): Add declaration.
9676 * auxv.c (_initialize_auxv): Add declaration.
9677 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9678 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9679 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9680 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9681 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9682 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9683 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9684 * breakpoint.c (_initialize_breakpoint): Add declaration.
9685 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9686 * btrace.c (_initialize_btrace): Add declaration.
9687 * charset.c (_initialize_charset): Add declaration.
9688 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9689 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9690 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9691 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9692 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9693 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9694 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9695 * coffread.c (_initialize_coffread): Add declaration.
9696 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9697 * compile/compile.c (_initialize_compile): Add declaration.
9698 * complaints.c (_initialize_complaints): Add declaration.
9699 * completer.c (_initialize_completer): Add declaration.
9700 * copying.c (_initialize_copying): Add declaration.
9701 * corefile.c (_initialize_core): Add declaration.
9702 * corelow.c (_initialize_corelow): Add declaration.
9703 * cp-abi.c (_initialize_cp_abi): Add declaration.
9704 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9705 * cp-support.c (_initialize_cp_support): Add declaration.
9706 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9707 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9708 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9709 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9710 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9711 * ctfread.c (_initialize_ctfread): Add declaration.
9712 * d-lang.c (_initialize_d_language): Add declaration.
9713 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9714 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9715 * dbxread.c (_initialize_dbxread): Add declaration.
9716 * dcache.c (_initialize_dcache): Add declaration.
9717 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9718 * disasm.c (_initialize_disasm): Add declaration.
9719 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9720 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9721 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9722 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9723 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9724 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9725 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9726 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9727 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9728 * elfread.c (_initialize_elfread): Add declaration.
9729 * exec.c (_initialize_exec): Add declaration.
9730 * extension.c (_initialize_extension): Add declaration.
9731 * f-lang.c (_initialize_f_language): Add declaration.
9732 * f-valprint.c (_initialize_f_valprint): Add declaration.
9733 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9734 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9735 * filesystem.c (_initialize_filesystem): Add declaration.
9736 * findcmd.c (_initialize_mem_search): Add declaration.
9737 * findvar.c (_initialize_findvar): Add declaration.
9738 * fork-child.c (_initialize_fork_child): Add declaration.
9739 * frame-base.c (_initialize_frame_base): Add declaration.
9740 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9741 * frame.c (_initialize_frame): Add declaration.
9742 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9743 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9744 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9745 * gcore.c (_initialize_gcore): Add declaration.
9746 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9747 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9748 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9749 * gdbarch.c (_initialize_gdbarch): Add declaration.
9750 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9751 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9752 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9753 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9754 * go-lang.c (_initialize_go_language): Add declaration.
9755 * go32-nat.c (_initialize_go32_nat): Add declaration.
9756 * guile/guile.c (_initialize_guile): Add declaration.
9757 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9758 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9759 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9760 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9761 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9762 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9763 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9764 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9765 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9766 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9767 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9768 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9769 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9770 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9771 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9772 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9773 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9774 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9775 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9776 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9777 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9778 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9779 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9780 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9781 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9782 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9783 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9784 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9785 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9786 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9787 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9788 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9789 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9790 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9791 * infcall.c (_initialize_infcall): Add declaration.
9792 * infcmd.c (_initialize_infcmd): Add declaration.
9793 * inflow.c (_initialize_inflow): Add declaration.
9794 * infrun.c (_initialize_infrun): Add declaration.
9795 * interps.c (_initialize_interpreter): Add declaration.
9796 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9797 * jit.c (_initialize_jit): Add declaration.
9798 * language.c (_initialize_language): Add declaration.
9799 * linux-fork.c (_initialize_linux_fork): Add declaration.
9800 * linux-nat.c (_initialize_linux_nat): Add declaration.
9801 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9802 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9803 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9804 * m2-lang.c (_initialize_m2_language): Add declaration.
9805 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9806 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9807 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9808 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9809 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9810 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9811 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9812 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9813 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9814 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9815 * machoread.c (_initialize_machoread): Add declaration.
9816 * macrocmd.c (_initialize_macrocmd): Add declaration.
9817 * macroscope.c (_initialize_macroscope): Add declaration.
9818 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9819 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9820 * maint.c (_initialize_maint_cmds): Add declaration.
9821 * mdebugread.c (_initialize_mdebugread): Add declaration.
9822 * memattr.c (_initialize_mem): Add declaration.
9823 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9824 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9825 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9826 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9827 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9828 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9829 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9830 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9831 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9832 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9833 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9834 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9835 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9836 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9837 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9838 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9839 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9840 * mipsread.c (_initialize_mipsread): Add declaration.
9841 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9842 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9843 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9844 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9845 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9846 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9847 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9848 * nto-procfs.c (_initialize_procfs): Add declaration.
9849 * objc-lang.c (_initialize_objc_language): Add declaration.
9850 * observable.c (_initialize_observer): Add declaration.
9851 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9852 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9853 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9854 * osabi.c (_initialize_gdb_osabi): Add declaration.
9855 * osdata.c (_initialize_osdata): Add declaration.
9856 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9857 * parse.c (_initialize_parse): Add declaration.
9858 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9859 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9860 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9861 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9862 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9863 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9864 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9865 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9866 * printcmd.c (_initialize_printcmd): Add declaration.
9867 * probe.c (_initialize_probe): Add declaration.
9868 * proc-api.c (_initialize_proc_api): Add declaration.
9869 * proc-events.c (_initialize_proc_events): Add declaration.
9870 * proc-service.c (_initialize_proc_service): Add declaration.
9871 * procfs.c (_initialize_procfs): Add declaration.
9872 * producer.c (_initialize_producer): Add declaration.
9873 * psymtab.c (_initialize_psymtab): Add declaration.
9874 * python/python.c (_initialize_python): Add declaration.
9875 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9876 * record-btrace.c (_initialize_record_btrace): Add declaration.
9877 * record-full.c (_initialize_record_full): Add declaration.
9878 * record.c (_initialize_record): Add declaration.
9879 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9880 * regcache.c (_initialize_regcache): Add declaration.
9881 * reggroups.c (_initialize_reggroup): Add declaration.
9882 * remote-notif.c (_initialize_notif): Add declaration.
9883 * remote-sim.c (_initialize_remote_sim): Add declaration.
9884 * remote.c (_initialize_remote): Add declaration.
9885 * reverse.c (_initialize_reverse): Add declaration.
9886 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9887 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9888 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9889 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9890 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9891 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9892 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9893 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9894 Add declaration.
9895 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9896 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9897 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9898 * rust-exp.y (_initialize_rust_exp): Add declaration.
9899 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9900 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9901 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9902 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9903 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9904 * score-tdep.c (_initialize_score_tdep): Add declaration.
9905 * ser-go32.c (_initialize_ser_dos): Add declaration.
9906 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9907 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9908 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9909 * ser-uds.c (_initialize_ser_socket): Add declaration.
9910 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9911 * serial.c (_initialize_serial): Add declaration.
9912 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9913 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9914 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9915 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9916 * skip.c (_initialize_step_skip): Add declaration.
9917 * sol-thread.c (_initialize_sol_thread): Add declaration.
9918 * solib-aix.c (_initialize_solib_aix): Add declaration.
9919 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9920 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9921 * solib-frv.c (_initialize_frv_solib): Add declaration.
9922 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9923 * solib-target.c (_initialize_solib_target): Add declaration.
9924 * solib.c (_initialize_solib): Add declaration.
9925 * source-cache.c (_initialize_source_cache): Add declaration.
9926 * source.c (_initialize_source): Add declaration.
9927 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9928 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9929 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9930 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9931 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9932 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9933 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9934 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9935 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9936 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9937 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9938 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9939 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9940 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9941 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9942 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9943 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9944 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9945 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9946 * stabsread.c (_initialize_stabsread): Add declaration.
9947 * stack.c (_initialize_stack): Add declaration.
9948 * stap-probe.c (_initialize_stap_probe): Add declaration.
9949 * std-regs.c (_initialize_frame_reg): Add declaration.
9950 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9951 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9952 * symfile.c (_initialize_symfile): Add declaration.
9953 * symmisc.c (_initialize_symmisc): Add declaration.
9954 * symtab.c (_initialize_symtab): Add declaration.
9955 * target.c (_initialize_target): Add declaration.
9956 * target-connection.c (_initialize_target_connection): Add
9957 declaration.
9958 * target-dcache.c (_initialize_target_dcache): Add declaration.
9959 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9960 * thread.c (_initialize_thread): Add declaration.
9961 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9962 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9963 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9964 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9965 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9966 * tracectf.c (_initialize_ctf): Add declaration.
9967 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9968 * tracefile.c (_initialize_tracefile): Add declaration.
9969 * tracepoint.c (_initialize_tracepoint): Add declaration.
9970 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9971 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9972 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9973 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9974 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9975 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9976 * tui/tui.c (_initialize_tui): Add declaration.
9977 * typeprint.c (_initialize_typeprint): Add declaration.
9978 * ui-style.c (_initialize_ui_style): Add declaration.
9979 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9980 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9981 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9982 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9983 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9984 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9985 * unittests/filtered_iterator-selftests.c
9986 (_initialize_filtered_iterator_selftests): Add declaration.
9987 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9988 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9989 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9990 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9991 * unittests/main-thread-selftests.c
9992 (_initialize_main_thread_selftests): Add declaration.
9993 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9994 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9995 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9996 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9997 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9998 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9999 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10000 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10001 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10002 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10003 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10004 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10005 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10006 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10007 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10008 declaration.
10009 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10010 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10011 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10012 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10013 * user-regs.c (_initialize_user_regs): Add declaration.
10014 * utils.c (_initialize_utils): Add declaration.
10015 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10016 * valops.c (_initialize_valops): Add declaration.
10017 * valprint.c (_initialize_valprint): Add declaration.
10018 * value.c (_initialize_values): Add declaration.
10019 * varobj.c (_initialize_varobj): Add declaration.
10020 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10021 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10022 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10023 * windows-nat.c (_initialize_windows_nat): Add declaration.
10024 (_initialize_check_for_gdb_ini): Add declaration.
10025 (_initialize_loadable): Add declaration.
10026 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10027 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10028 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10029 * xcoffread.c (_initialize_xcoffread): Add declaration.
10030 * xml-support.c (_initialize_xml_support): Add declaration.
10031 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10032 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10033 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10034 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10035
e2de1eec
SM
100362020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10037
10038 * regformats/regdat.sh: Generate declaration for init function.
10039
e0037b4c
SM
100402020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10041
10042 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10043 up.
10044 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10045 close_one_inferior>: New methods.
10046 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10047 pass down target to find_inferior_pid.
10048 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10049 Pass down target to find_inferior_ptid.
10050 (gdbsim_target::create_inferior): Pass down target to
10051 add_thread_silent.
10052 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10053 target down to find_inferior_ptid and switch_to_thread.
10054 (gdbsim_target::close): Update to call close_one_inferior.
10055 (struct resume_data): Remove.
10056 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10057 directly, rather than through a void pointer.
10058 (gdbsim_target::resume): Update to call resume_one_inferior.
10059
58920b5b
SM
100602020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10061
10062 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10063
4ec89149
PA
100642020-01-12 Pedro Alves <palves@redhat.com>
10065
10066 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10067 directly for the current inferior instead of
10068 discard_all_inferiors.
10069 (discard_all_inferiors): Delete.
10070
7c392d1d
TT
100712020-01-11 Tom Tromey <tom@tromey.com>
10072
10073 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10074 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10075 deprecated_safe_get_selected_frame.
10076
d9ebdab7
TBA
100772020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10078
10079 * inferior.c (print_inferior): Switch inferior before printing it.
10080
f3c469b9
PA
100812020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10082 Pedro Alves <palves@redhat.com>
10083
10084 * progspace-and-thread.c (switch_to_program_space_and_thread):
10085 Assert there's an inferior for PSPACE. Use
10086 switch_to_inferior_no_thread to switch the inferior too.
10087 * progspace.c (program_space::~program_space): Call
10088 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10089 (program_space::free_all_objfiles): Don't call clear_symtab_users
10090 here.
10091 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10092
65c574f6
PA
100932020-01-10 Pedro Alves <palves@redhat.com>
10094
10095 * NEWS: Mention multi-target debugging, "info connections", and
10096 "add-inferior -no-connection".
10097
2f4fcf00
PA
100982020-01-10 Pedro Alves <palves@redhat.com>
10099
10100 * infrun.c: Include "target-connection.h".
10101 (check_multi_target_resumption): New.
10102 (proceed): Call it.
10103 * target-connection.c (make_target_connection_string): Make
10104 extern.
10105 * target-connection.h (make_target_connection_string): Declare.
10106
121b3efd
PA
101072020-01-10 Pedro Alves <palves@redhat.com>
10108
10109 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10110 * inferior.c (uiout_field_connection): New function.
10111 (print_inferior): Add new "connection-id" column.
10112 (add_inferior_command): Show connection number/string of added
10113 inferior.
10114 * process-stratum-target.h
10115 (process_stratum_target::connection_string): New virtual method.
10116 (process_stratum_target::connection_number): New field.
10117 * remote.c (remote_target::connection_string): New override.
10118 * target-connection.c: New file.
10119 * target-connection.h: New file.
10120 * target.c (decref_target): Remove process_stratum targets from
10121 the connection list.
10122 (target_stack::push): Add process_stratum targets to the
10123 connection list.
10124
4f837581
PA
101252020-01-10 Pedro Alves <palves@redhat.com>
10126
10127 Revert:
10128 2016-04-12 Pedro Alves <palves@redhat.com>
10129 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10130 Remove references to name.
10131 * serial.h (struct serial) <name>: Delete.
10132
f4ec508e
PA
101332020-01-10 Pedro Alves <palves@redhat.com>
10134
10135 * gdbarch-selftests.c (register_to_value_test): Remove "target
10136 already pushed" check.
10137
5b6d1e4f
PA
101382020-01-10 Pedro Alves <palves@redhat.com>
10139 John Baldwin <jhb@FreeBSD.org>
10140
10141 * aarch64-linux-nat.c
10142 (aarch64_linux_nat_target::thread_architecture): Adjust.
10143 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10144 (task_command_1): Likewise.
10145 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10146 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10147 (aix_thread_target::store_registers)
10148 (aix_thread_target::thread_alive): Adjust.
10149 * amd64-fbsd-tdep.c: Include "inferior.h".
10150 (amd64fbsd_get_thread_local_address): Pass down target.
10151 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10152 thread's gdbarch instead of target_gdbarch.
10153 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10154 get_last_target_status.
10155 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10156 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10157 inferiors.
10158 (update_inserted_breakpoint_locations): Skip if inferiors with no
10159 execution.
10160 (update_global_location_list): When handling moribund locations,
10161 find representative inferior for location's pspace, and use thread
10162 count of its process_stratum target.
10163 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10164 * bsd-uthread.c (bsd_uthread_target::wait): Use
10165 as_process_stratum_target and adjust thread_change_ptid and
10166 add_thread calls.
10167 (bsd_uthread_target::update_thread_list): Use
10168 as_process_stratum_target and adjust find_thread_ptid,
10169 thread_change_ptid and add_thread calls.
10170 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10171 find_thread_ptid call.
10172 * corelow.c (add_to_thread_list): Adjust add_thread call.
10173 (core_target_open): Adjust add_thread_silent and thread_count
10174 calls.
10175 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10176 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10177 * event-top.c (async_disconnect): Pop targets from all inferiors.
10178 * exec.c (add_target_sections): Push exec target on all inferiors
10179 sharing the program space.
10180 (remove_target_sections): Remove the exec target from all
10181 inferiors sharing the program space.
10182 (exec_on_vfork): New.
10183 * exec.h (exec_on_vfork): Declare.
10184 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10185 Pass it down.
10186 (fbsd_nat_target::update_thread_list): Adjust.
10187 (fbsd_nat_target::resume): Adjust.
10188 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10189 down.
10190 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10191 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10192 get_thread_arch_regcache call.
10193 * fork-child.c (gdb_startup_inferior): Pass target down to
10194 startup_inferior and set_executing.
10195 * gdbthread.h (struct process_stratum_target): Forward declare.
10196 (add_thread, add_thread_silent, add_thread_with_info)
10197 (in_thread_list): Add process_stratum_target parameter.
10198 (find_thread_ptid(inferior*, ptid_t)): New overload.
10199 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10200 parameter.
10201 (all_threads()): Delete overload.
10202 (all_threads, all_non_exited_threads): Add process_stratum_target
10203 parameter.
10204 (all_threads_safe): Use brace initialization.
10205 (thread_count): Add process_stratum_target parameter.
10206 (set_resumed, set_running, set_stop_requested, set_executing)
10207 (threads_are_executing, finish_thread_state): Add
10208 process_stratum_target parameter.
10209 (switch_to_thread): Use is_current_thread.
10210 * i386-fbsd-tdep.c: Include "inferior.h".
10211 (i386fbsd_get_thread_local_address): Pass down target.
10212 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10213 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10214 have_inferiors check.
10215 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10216 (inf_ptrace_target::attach): Adjust.
10217 * infcall.c (run_inferior_call): Adjust.
10218 * infcmd.c (run_command_1): Pass target to
10219 scoped_finish_thread_state.
10220 (proceed_thread_callback): Skip inferiors with no execution.
10221 (continue_command): Rename 'all_threads' local to avoid hiding
10222 'all_threads' function. Adjust get_last_target_status call.
10223 (prepare_one_step): Adjust set_running call.
10224 (signal_command): Use user_visible_resume_target. Compare thread
10225 pointers instead of inferior_ptid.
10226 (info_program_command): Adjust to pass down target.
10227 (attach_command): Mark target's 'thread_executing' flag.
10228 (stop_current_target_threads_ns): New, factored out from ...
10229 (interrupt_target_1): ... this. Switch inferior before making
10230 target calls.
10231 * inferior-iter.h
10232 (struct all_inferiors_iterator, struct all_inferiors_range)
10233 (struct all_inferiors_safe_range)
10234 (struct all_non_exited_inferiors_range): Filter on
10235 process_stratum_target too. Remove explicit.
10236 * inferior.c (inferior::inferior): Push dummy target on target
10237 stack.
10238 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10239 Add process_stratum_target parameter, and pass it down.
10240 (have_live_inferiors): Adjust.
10241 (switch_to_inferior_and_push_target): New.
10242 (add_inferior_command, clone_inferior_command): Handle
10243 "-no-connection" parameter. Use
10244 switch_to_inferior_and_push_target.
10245 (_initialize_inferior): Mention "-no-connection" option in
10246 the help of "add-inferior" and "clone-inferior" commands.
10247 * inferior.h: Include "process-stratum-target.h".
10248 (interrupt_target_1): Use bool.
10249 (struct inferior) <push_target, unpush_target, target_is_pushed,
10250 find_target_beneath, top_target, process_target, target_at,
10251 m_stack>: New.
10252 (discard_all_inferiors): Delete.
10253 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10254 (all_inferiors, all_non_exited_inferiors): Add
10255 process_stratum_target parameter.
10256 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10257 (target_last_proc_target): New global.
10258 (follow_fork_inferior): Push target on new inferior. Pass target
10259 to add_thread_silent. Call exec_on_vfork. Handle target's
10260 reference count.
10261 (follow_fork): Adjust get_last_target_status call. Also consider
10262 target.
10263 (follow_exec): Push target on new inferior.
10264 (struct execution_control_state) <target>: New field.
10265 (user_visible_resume_target): New.
10266 (do_target_resume): Call target_async.
10267 (resume_1): Set target's threads_executing flag. Consider resume
10268 target.
10269 (commit_resume_all_targets): New.
10270 (proceed): Also consider resume target. Skip threads of inferiors
10271 with no execution. Commit resumtion in all targets.
10272 (start_remote): Pass current inferior to wait_for_inferior.
10273 (infrun_thread_stop_requested): Consider target as well. Pass
10274 thread_info pointer to clear_inline_frame_state instead of ptid.
10275 (infrun_thread_thread_exit): Consider target as well.
10276 (random_pending_event_thread): New inferior parameter. Use it.
10277 (do_target_wait): Rename to ...
10278 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10279 down.
10280 (threads_are_resumed_pending_p, do_target_wait): New.
10281 (prepare_for_detach): Adjust calls.
10282 (wait_for_inferior): New inferior parameter. Handle it. Use
10283 do_target_wait_1 instead of do_target_wait.
10284 (fetch_inferior_event): Adjust. Switch to representative
10285 inferior. Pass target down.
10286 (set_last_target_status): Add process_stratum_target parameter.
10287 Save target in global.
10288 (get_last_target_status): Add process_stratum_target parameter and
10289 handle it.
10290 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10291 (context_switch): Check inferior_ptid == null_ptid before calling
10292 inferior_thread().
10293 (get_inferior_stop_soon): Pass down target.
10294 (wait_one): Rename to ...
10295 (poll_one_curr_target): ... this.
10296 (struct wait_one_event): New.
10297 (wait_one): New.
10298 (stop_all_threads): Adjust.
10299 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10300 event's target.
10301 (switch_back_to_stepped_thread): Also consider target.
10302 (print_stop_event): Update.
10303 (normal_stop): Update. Also consider the resume target.
10304 * infrun.h (wait_for_inferior): Remove declaration.
10305 (user_visible_resume_target): New declaration.
10306 (get_last_target_status, set_last_target_status): New
10307 process_stratum_target parameter.
10308 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10309 process_stratum_target parameter, and use it.
10310 (clear_inline_frame_state (thread_info*)): New.
10311 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10312 process_stratum_target parameter.
10313 (clear_inline_frame_state (thread_info*)): Declare.
10314 * linux-fork.c (delete_checkpoint_command): Pass target down to
10315 find_thread_ptid.
10316 (checkpoint_command): Adjust.
10317 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10318 instead of just tweaking inferior_ptid.
10319 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10320 (exit_lwp): Pass target down to find_thread_ptid.
10321 (attach_proc_task_lwp_callback): Pass target down to
10322 add_thread/set_running/set_executing.
10323 (linux_nat_target::attach): Pass target down to
10324 thread_change_ptid.
10325 (get_detach_signal): Pass target down to find_thread_ptid.
10326 Consider last target status's target.
10327 (linux_resume_one_lwp_throw, resume_lwp)
10328 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10329 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10330 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10331 (linux_nat_target::async_wait_fd): New.
10332 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10333 target down.
10334 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10335 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10336 * linux-thread-db.c (struct thread_db_info::process_target): New
10337 field.
10338 (add_thread_db_info): Save target.
10339 (get_thread_db_info): New process_stratum_target parameter. Also
10340 match target.
10341 (delete_thread_db_info): New process_stratum_target parameter.
10342 Also match target.
10343 (thread_from_lwp): Adjust to pass down target.
10344 (thread_db_notice_clone): Pass down target.
10345 (check_thread_db_callback): Pass down target.
10346 (try_thread_db_load_1): Always push the thread_db target.
10347 (try_thread_db_load, record_thread): Pass target down.
10348 (thread_db_target::detach): Pass target down. Always unpush the
10349 thread_db target.
10350 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10351 target down. Always unpush the thread_db target.
10352 (find_new_threads_callback, thread_db_find_new_threads_2)
10353 (thread_db_target::update_thread_list): Pass target down.
10354 (thread_db_target::pid_to_str): Pass current inferior down.
10355 (thread_db_target::get_thread_local_address): Pass target down.
10356 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10357 target down.
10358 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10359 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10360 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10361 (procfs_init_inferior): Rename to ...
10362 (procfs_target::procfs_init_inferior): ... this and adjust.
10363 (procfs_target::create_inferior, procfs_notice_thread)
10364 (procfs_do_thread_registers): Adjust.
10365 * ppc-fbsd-tdep.c: Include "inferior.h".
10366 (ppcfbsd_get_thread_local_address): Pass down target.
10367 * proc-service.c (ps_xfer_memory): Switch current inferior and
10368 program space as well.
10369 (get_ps_regcache): Pass target down.
10370 * process-stratum-target.c
10371 (process_stratum_target::thread_address_space)
10372 (process_stratum_target::thread_architecture): Pass target down.
10373 * process-stratum-target.h
10374 (process_stratum_target::threads_executing): New field.
10375 (as_process_stratum_target): New.
10376 * ravenscar-thread.c
10377 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10378 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10379 down.
10380 * record-btrace.c (record_btrace_target::info_record): Adjust.
10381 (record_btrace_target::record_method)
10382 (record_btrace_target::record_is_replaying)
10383 (record_btrace_target::fetch_registers)
10384 (get_thread_current_frame_id, record_btrace_target::resume)
10385 (record_btrace_target::wait, record_btrace_target::stop): Pass
10386 target down.
10387 * record-full.c (record_full_wait_1): Switch to event thread.
10388 Pass target down.
10389 * regcache.c (regcache::regcache)
10390 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10391 process_stratum_target parameter and handle it.
10392 (current_thread_target): New global.
10393 (get_thread_regcache): Add process_stratum_target parameter and
10394 handle it. Switch inferior before calling target method.
10395 (get_thread_regcache): Pass target down.
10396 (get_thread_regcache_for_ptid): Pass target down.
10397 (registers_changed_ptid): Add process_stratum_target parameter and
10398 handle it.
10399 (registers_changed_thread, registers_changed): Pass target down.
10400 (test_get_thread_arch_aspace_regcache): New.
10401 (current_regcache_test): Define a couple local test_target_ops
10402 instances and use them for testing.
10403 (readwrite_regcache): Pass process_stratum_target parameter.
10404 (cooked_read_test, cooked_write_test): Pass mock_target down.
10405 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10406 (get_thread_arch_aspace_regcache): Add process_stratum_target
10407 parameter.
10408 (regcache::target): New method.
10409 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10410 (regcache::registers_changed_ptid): Add process_stratum_target
10411 parameter.
10412 (regcache::m_target): New field.
10413 (registers_changed_ptid): Add process_stratum_target parameter.
10414 * remote.c (remote_state::supports_vCont_probed): New field.
10415 (remote_target::async_wait_fd): New method.
10416 (remote_unpush_and_throw): Add remote_target parameter.
10417 (get_current_remote_target): Adjust.
10418 (remote_target::remote_add_inferior): Push target.
10419 (remote_target::remote_add_thread)
10420 (remote_target::remote_notice_new_inferior)
10421 (get_remote_thread_info): Pass target down.
10422 (remote_target::update_thread_list): Skip threads of inferiors
10423 bound to other targets. (remote_target::close): Don't discard
10424 inferiors. (remote_target::add_current_inferior_and_thread)
10425 (remote_target::process_initial_stop_replies)
10426 (remote_target::start_remote)
10427 (remote_target::remote_serial_quit_handler): Pass down target.
10428 (remote_target::remote_unpush_target): New remote_target
10429 parameter. Unpush the target from all inferiors.
10430 (remote_target::remote_unpush_and_throw): New remote_target
10431 parameter. Pass it down.
10432 (remote_target::open_1): Check whether the current inferior has
10433 execution instead of checking whether any inferior is live. Pass
10434 target down.
10435 (remote_target::remote_detach_1): Pass down target. Use
10436 remote_unpush_target.
10437 (extended_remote_target::attach): Pass down target.
10438 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10439 (remote_target::append_resumption): Pass down target.
10440 (remote_target::append_pending_thread_resumptions)
10441 (remote_target::remote_resume_with_hc, remote_target::resume)
10442 (remote_target::commit_resume): Pass down target.
10443 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10444 (remote_target::interrupt_query)
10445 (remote_target::remove_new_fork_children)
10446 (remote_target::check_pending_events_prevent_wildcard_vcont)
10447 (remote_target::remote_parse_stop_reply)
10448 (remote_target::process_stop_reply): Pass down target.
10449 (first_remote_resumed_thread): New remote_target parameter. Pass
10450 it down.
10451 (remote_target::wait_as): Pass down target.
10452 (unpush_and_perror): New remote_target parameter. Pass it down.
10453 (remote_target::readchar, remote_target::remote_serial_write)
10454 (remote_target::getpkt_or_notif_sane_1)
10455 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10456 down target.
10457 (remote_target::mourn_inferior): Pass down target. Use
10458 remote_unpush_target.
10459 (remote_target::core_of_thread)
10460 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10461 (remote_target::pid_to_exec_file)
10462 (remote_target::thread_handle_to_thread_info): Pass down target.
10463 (remote_target::async_wait_fd): New.
10464 * riscv-fbsd-tdep.c: Include "inferior.h".
10465 (riscv_fbsd_get_thread_local_address): Pass down target.
10466 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10467 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10468 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10469 Adjust.
10470 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10471 * solib-svr4.c (enable_break): Pass down target.
10472 * spu-multiarch.c (parse_spufs_run): Pass down target.
10473 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10474 * target-delegates.c: Regenerate.
10475 * target.c (g_target_stack): Delete.
10476 (current_top_target): Return the current inferior's top target.
10477 (target_has_execution_1): Refer to the passed-in inferior's top
10478 target.
10479 (target_supports_terminal_ours): Check whether the initial
10480 inferior was already created.
10481 (decref_target): New.
10482 (target_stack::push): Incref/decref the target.
10483 (push_target, push_target, unpush_target): Adjust.
10484 (target_stack::unpush): Defref target.
10485 (target_is_pushed): Return bool. Adjust to refer to the current
10486 inferior's target stack.
10487 (dispose_inferior): Delete, and inline parts ...
10488 (target_preopen): ... here. Only dispose of the current inferior.
10489 (target_detach): Hold strong target reference while detaching.
10490 Pass target down.
10491 (target_thread_name): Add assertion.
10492 (target_resume): Pass down target.
10493 (target_ops::beneath, find_target_at): Adjust to refer to the
10494 current inferior's target stack.
10495 (get_dummy_target): New.
10496 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10497 has a thread running.
10498 (initialize_targets): Rename to ...
10499 (_initialize_target): ... this.
10500 * target.h: Include "gdbsupport/refcounted-object.h".
10501 (struct target_ops): Inherit refcounted_object.
10502 (target_ops::shortname, target_ops::longname): Make const.
10503 (target_ops::async_wait_fd): New method.
10504 (decref_target): Declare.
10505 (struct target_ops_ref_policy): New.
10506 (target_ops_ref): New typedef.
10507 (get_dummy_target): Declare function.
10508 (target_is_pushed): Return bool.
10509 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10510 (all_matching_threads_iterator::all_matching_threads_iterator):
10511 Handle filter target.
10512 * thread-iter.h (struct all_matching_threads_iterator, struct
10513 all_matching_threads_range, class all_non_exited_threads_range):
10514 Filter by target too. Remove explicit.
10515 * thread.c (threads_executing): Delete.
10516 (inferior_thread): Pass down current inferior.
10517 (clear_thread_inferior_resources): Pass down thread pointer
10518 instead of ptid_t.
10519 (add_thread_silent, add_thread_with_info, add_thread): Add
10520 process_stratum_target parameter. Use it for thread and inferior
10521 searches.
10522 (is_current_thread): New.
10523 (thread_info::deletable): Use it.
10524 (find_thread_ptid, thread_count, in_thread_list)
10525 (thread_change_ptid, set_resumed, set_running): New
10526 process_stratum_target parameter. Pass it down.
10527 (set_executing): New process_stratum_target parameter. Pass it
10528 down. Adjust reference to 'threads_executing'.
10529 (threads_are_executing): New process_stratum_target parameter.
10530 Adjust reference to 'threads_executing'.
10531 (set_stop_requested, finish_thread_state): New
10532 process_stratum_target parameter. Pass it down.
10533 (switch_to_thread): Also match inferior.
10534 (switch_to_thread): New process_stratum_target parameter. Pass it
10535 down.
10536 (update_threads_executing): Reimplement.
10537 * top.c (quit_force): Pop targets from all inferior.
10538 (gdb_init): Don't call initialize_targets.
10539 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10540 Declare.
10541 (windows_add_thread, windows_delete_thread): Adjust.
10542 (get_windows_debug_event): Rename to ...
10543 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10544 * tracefile-tfile.c (tfile_target_open): Pass down target.
10545 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10546 Forward declare.
10547 (switch_to_thread): Add process_stratum_target parameter.
10548 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10549 parameter. Use it.
10550 (mi_on_resume): Pass target down.
10551 * nat/fork-inferior.c (startup_inferior): Add
10552 process_stratum_target parameter. Pass it down.
10553 * nat/fork-inferior.h (startup_inferior): Add
10554 process_stratum_target parameter.
10555 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10556
75c6c844
PA
105572020-01-10 Pedro Alves <palves@redhat.com>
10558
10559 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10560 directly. Instead find the first thread in the thread list and
10561 use switch_to_thread.
10562
78f2c40a
PA
105632020-01-10 Pedro Alves <palves@redhat.com>
10564
10565 * remote.c (remote_target::remote_add_inferior): Don't bind a
10566 process to the current inferior if the current inferior is already
10567 bound to a process.
10568
e7af6c70
TBA
105692020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10570 Pedro Alves <palves@redhat.com>
10571
10572 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10573 If no process is specified, return null_ptid instead of
10574 inferior_ptid.
10575 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10576 TARGET_WAITKIND_SIGNALLED with no pid.
10577
31ba933e
PA
105782020-01-10 Pedro Alves <palves@redhat.com>
10579
10580 * remote.c (first_remote_resumed_thread): New.
10581 (remote_target::wait_as): Use it as default event_ptid instead of
10582 inferior_ptid.
10583
735fc2ca
PA
105842020-01-10 Pedro Alves <palves@redhat.com>
10585
10586 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10587
c17e02e1
PA
105882020-01-10 Pedro Alves <palves@redhat.com>
10589
10590 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10591 not -1.
10592
ab1ddbcf
PA
105932020-01-10 Pedro Alves <palves@redhat.com>
10594
10595 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10596 ptid to get_last_target_status.
10597 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10598 ptid to get_last_target_status.
10599 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10600 get_last_target_status.
10601 (info_program_command): Don't pass a target_waitstatus to
10602 get_last_target_status.
10603 * infrun.c (init_wait_for_inferior): Use
10604 nullify_last_target_wait_ptid.
10605 (get_last_target_status): Handle nullptr arguments.
10606 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10607 (print_stop_event): Don't pass a ptid to get_last_target_status.
10608 (normal_stop): Don't pass a ptid to get_last_target_status.
10609 * infrun.h (get_last_target_status, set_last_target_status): Move
10610 comments here and update.
10611 (nullify_last_target_wait_ptid): Declare.
10612 * linux-fork.c (fork_load_infrun_state): Remove local extern
10613 declaration of nullify_last_target_wait_ptid.
10614 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10615 to get_last_target_status.
10616
f3f8ece4
PA
106172020-01-10 Pedro Alves <palves@redhat.com>
10618
10619 * gdbthread.h (scoped_restore_current_thread)
10620 <dont_restore, restore, m_dont_restore>: Declare.
10621 * thread.c (thread_alive): Add assertion. Return bool.
10622 (switch_to_thread_if_alive): New.
10623 (prune_threads): Switch inferior/thread.
10624 (print_thread_info_1): Switch thread before calling target methods.
10625 (scoped_restore_current_thread::restore): New, factored out from
10626 ...
10627 (scoped_restore_current_thread::~scoped_restore_current_thread):
10628 ... this.
10629 (scoped_restore_current_thread::scoped_restore_current_thread):
10630 Add assertion.
10631 (thread_apply_all_command, thread_select): Use
10632 switch_to_thread_if_alive.
10633 * infrun.c (proceed, restart_threads, handle_signal_stop)
10634 (switch_back_to_stepped_thread): Switch current thread before
10635 calling target methods.
10636
db2d40f7
PA
106372020-01-10 Pedro Alves <palves@redhat.com>
10638
10639 * inferior.c (switch_to_inferior_no_thread): New function,
10640 factored out from ...
10641 (inferior_command): ... here.
10642 * inferior.h (switch_to_inferior_no_thread): Declare.
10643 * mi/mi-main.c (run_one_inferior): Use
10644 switch_to_inferior_no_thread.
10645
bd420a2d
PA
106462020-01-10 Pedro Alves <palves@redhat.com>
10647
10648 * infcmd.c (kill_command): Remove dead code.
10649
ddf5db90
PA
106502020-01-10 Pedro Alves <palves@redhat.com>
10651
10652 * remote.c (remote_target::mourn_inferior): No longer check
10653 whether the target is running.
10654
5018ce90
PA
106552020-01-10 Pedro Alves <palves@redhat.com>
10656
10657 * corelow.c (core_target::has_execution): Change parameter type to
10658 inferior pointer.
10659 * inferior.c (number_of_live_inferiors): Use
10660 inferior::has_execution instead of target_has_execution_1.
10661 * inferior.h (inferior::has_execution): New.
10662 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10663 inferior::has_execution instead of target_has_execution_1.
10664 * process-stratum-target.c
10665 (process_stratum_target::has_execution): Change parameter type to
10666 inferior pointer. Check the inferior's PID instead of
10667 inferior_ptid.
10668 * process-stratum-target.h
10669 (process_stratum_target::has_execution): Change parameter type to
10670 inferior pointer.
10671 * record-full.c (record_full_core_target::has_execution): Change
10672 parameter type to inferior pointer.
10673 * target.c (target_has_execution_1): Change parameter type to
10674 inferior pointer.
10675 (target_has_execution_current): Adjust.
10676 * target.h (target_ops::has_execution): Change parameter type to
10677 inferior pointer.
10678 (target_has_execution_1): Change parameter type to inferior
10679 pointer. Change return type to bool.
10680 * tracefile.h (tracefile_target::has_execution): Change parameter
10681 type to inferior pointer.
10682
74375d18
PA
106832020-01-10 Pedro Alves <palves@redhat.com>
10684
10685 * exceptions.c (print_flush): Remove current_top_target() check.
10686
acdf84a6
PA
106872020-01-10 Pedro Alves <palves@redhat.com>
10688
10689 * remote.c (show_remote_exec_file): Show the current inferior's
10690 exec-file instead of the command variable's value.
10691
ec506636
PA
106922020-01-10 Pedro Alves <palves@redhat.com>
10693
10694 * record-full.c (record_full_resume_ptid): New global.
10695 (record_full_target::resume): Set it.
10696 (record_full_wait_1): Use record_full_resume_ptid instead of
10697 inferior_ptid.
10698
873657b9
PA
106992020-01-10 Pedro Alves <palves@redhat.com>
10700
10701 * gdbthread.h (scoped_restore_current_thread)
10702 <dont_restore, restore, m_dont_restore>: Declare.
10703 * thread.c (thread_alive): Add assertion. Return bool.
10704 (switch_to_thread_if_alive): New.
10705 (prune_threads): Switch inferior/thread.
10706 (print_thread_info_1): Switch thread before calling target methods.
10707 (scoped_restore_current_thread::restore): New, factored out from
10708 ...
10709 (scoped_restore_current_thread::~scoped_restore_current_thread):
10710 ... this.
10711 (scoped_restore_current_thread::scoped_restore_current_thread):
10712 Add assertion.
10713 (thread_apply_all_command, thread_select): Use
10714 switch_to_thread_if_alive.
10715
7f0ae84c
GB
107162020-01-10 George Barrett <bob@bob131.so>
10717
10718 * stap-probe.c (stap_modify_semaphore): Don't check for null
10719 semaphores.
10720 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10721 for null semaphores.
10722
f5a7c406
AB
107232020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10724
10725 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10726 all source windows, and maintain horizontal scroll status while
10727 doing so.
10728
9ae6bf64
TT
107292020-01-09 Tom Tromey <tom@tromey.com>
10730
10731 PR tui/18932:
10732 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10733 update_source_window, not print_source_lines.
10734
b2efe70c
AB
107352020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10736
10737 * tui/tui.c (tui_enable): Register tui hooks after calling
10738 tui_display_main.
10739
5f23a082
CB
107402020-01-09 Christian Biesinger <cbiesinger@google.com>
10741
10742 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10743
3061113b
SM
107442020-01-08 Simon Marchi <simon.marchi@efficios.com>
10745
10746 * thread.c (print_thread_info_1): Fix indentation.
10747
57d75002
CB
107482020-01-09 Christian Biesinger <cbiesinger@google.com>
10749
10750 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10751 unique_xmalloc_ptr outside the if to always free the demangled name.
10752
6a053cb1
TT
107532020-01-08 Tom Tromey <tromey@adacore.com>
10754
10755 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10756 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10757 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10758 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10759 Remove.
10760 (section_offsets): New typedef.
10761 * symtab.c (fixup_section, get_msymbol_address): Update.
10762 * symmisc.c (dump_msymbols): Update.
10763 * symfile.h (relative_addr_info_to_section_offsets)
10764 (symfile_map_offsets_to_segments): Update.
10765 * symfile.c (build_section_addr_info_from_objfile)
10766 (init_objfile_sect_indices): Update.
10767 (struct place_section_arg): Change type of "offsets".
10768 (place_section): Update.
10769 (relative_addr_info_to_section_offsets): Change type of
10770 "section_offsets". Remove "num_sections" parameter.
10771 (default_symfile_offsets, syms_from_objfile_1)
10772 (set_objfile_default_section_offset): Update.
10773 (reread_symbols): No need to preserve section offsets by hand.
10774 (symfile_map_offsets_to_segments): Change type of "offsets".
10775 * stap-probe.c (relocate_address): Update.
10776 * stabsread.h (process_one_symbol): Update.
10777 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10778 (solib_target_relocate_section_addresses): Update.
10779 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10780 Update.
10781 * solib-frv.c (frv_relocate_main_executable): Update.
10782 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10783 * solib-aix.c (solib_aix_get_section_offsets): Change return
10784 type.
10785 (solib_aix_solib_create_inferior_hook): Update.
10786 * remote.c (remote_target::get_offsets): Update.
10787 * psymtab.c (find_pc_sect_psymtab): Update.
10788 * psympriv.h (struct partial_symbol) <address, text_low,
10789 text_high>: Update.
10790 * objfiles.h (obj_section_offset): Update.
10791 (struct objfile) <section_offsets>: Change type.
10792 <num_sections>: Remove.
10793 (objfile_relocate): Update.
10794 * objfiles.c (entry_point_address_query): Update
10795 (relocate_one_symbol): Change type of "section_offsets".
10796 (objfile_relocate1, objfile_relocate1): Change type of
10797 "new_offsets".
10798 (objfile_rebase1): Update.
10799 * mipsread.c (mipscoff_symfile_read): Update.
10800 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10801 parameter.
10802 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10803 (parse_external, psymtab_to_symtab_1): Update.
10804 * machoread.c (macho_symfile_offsets): Update.
10805 * ia64-tdep.c (ia64_find_unwind_table): Update.
10806 * hppa-tdep.c (read_unwind_info): Update.
10807 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10808 * dwarf2read.c (create_addrmap_from_index)
10809 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10810 (process_psymtab_comp_unit_reader, add_partial_symbol)
10811 (add_partial_subprogram, process_full_comp_unit)
10812 (read_file_scope, read_func_scope, read_lexical_block_scope)
10813 (read_call_site_scope, dwarf2_rnglists_process)
10814 (dwarf2_ranges_process, dwarf2_ranges_read)
10815 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10816 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10817 Update.
10818 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10819 Update.
10820 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10821 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10822 (process_one_symbol): Change type of "section_offsets".
10823 * ctfread.c (get_objfile_text_range): Update.
10824 * coffread.c (coff_symtab_read, enter_linenos)
10825 (process_coff_symbol): Update.
10826 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10827 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10828
456e800a
TT
108292020-01-08 Tom Tromey <tromey@adacore.com>
10830
10831 * dwarf2read.c (parse_macro_definition): Use std::string.
10832 (parse_macro_definition): Likewise.
10833
6dfa2fc2
TT
108342020-01-08 Tom Tromey <tromey@adacore.com>
10835
10836 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10837 (ATTR_ALLOC_CHUNK): Remove.
10838
421d1616
TT
108392020-01-08 Tom Tromey <tromey@adacore.com>
10840
10841 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10842
43816ebc
TT
108432020-01-08 Tom Tromey <tromey@adacore.com>
10844
10845 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10846 (dwarf2_compute_name, open_dwo_file): Likewise.
10847 (process_enumeration_scope): Use std::vector.
10848 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10849 (partial_die_info::fixup, dwarf2_start_subfile)
10850 (guess_full_die_structure_name, dwarf2_name): Likewise.
10851 (determine_prefix): Update.
10852 (guess_full_die_structure_name): Make return type const.
10853 (partial_die_full_name): Return unique_xmalloc_ptr.
10854 (DW_FIELD_ALLOC_CHUNK): Remove.
10855
4212d509
TT
108562020-01-07 Tom Tromey <tromey@adacore.com>
10857
10858 PR build/24937:
10859 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10860
06a6207a
JT
108612020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10862
10863 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10864
153d79c4
AB
108652020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10866
10867 * stack.c (print_frame_info): Move disassemble_next_line code
10868 inside source_print block.
10869
66182876
EZ
108702020-01-06 Eli Zaretskii <eliz@gnu.org>
10871
10872 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10873 gdb/signals.h, as we are now using native signal symbols.
10874
cbfa8581
SV
108752020-01-06 Shahab Vahedi <shahab@synopsys.com>
10876
10877 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10878 overflow by an early check of content vs threshold.
aac66a4c 10879 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10880 Likewise.
10881
3f602821
EZ
108822020-01-06 Eli Zaretskii <eliz@gnu.org>
10883
10884 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10885
a08c904d
JT
108862020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10887
10888 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10889 export table if no section contains it's RVA.
10890
89a65580
EZ
108912020-01-06 Eli Zaretskii <eliz@gnu.org>
10892
10893 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10894
8b7fcda2
HD
108952020-01-06 Hannes Domani <ssbssa@yahoo.de>
10896
10897 * source.c (print_source_lines_base): Set last_line_listed.
10898
a61b4f69
SV
108992020-01-06 Shahab Vahedi <shahab@synopsys.com>
10900
10901 * tui/tui-disasm.c: Remove trailing spaces.
10902
559e7e50
EZ
109032020-01-06 Eli Zaretskii <eliz@gnu.org>
10904 Pedro Alves <palves@redhat.com>
10905
10906 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10907 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10908 (windows_gdb_signal_to_target): New function, uses the above
10909 enumeration to convert GDB internal signal codes to equivalent
10910 Windows codes.
10911 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10912 * windows-nat.c: Include "gdb_wait.h".
10913 (get_windows_debug_event): Extract the fatal exception from the
10914 exit status and convert to the equivalent Posix signal number.
10915 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10916 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10917 * gdbsupport/gdb_wait.c: New file, implements
10918 windows_status_to_termsig.
10919 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10920 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10921
f2302a34
AB
109222020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10923
10924 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10925 show_layout.
10926
6a5206eb
LM
109272020-01-05 Luis Machado <luis.machado@linaro.org>
10928
10929 * aarch64-linux-nat.c
10930 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10931 and bfd_mach_aarch64.
10932
6ec1d75e
PW
109332020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10934
10935 * ui-file.c (stdio_file::can_emit_style_escape)
10936 (tee_file::can_emit_style_escape): Ensure style is used also on
10937 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10938 to gdb_stdout.
10939 * main.c (set_gdb_data_directory): Use file style to output the
10940 warning that the given pathname is not a directory.
10941 * top.c (show_history_filename, gdb_safe_append_history)
10942 (show_gdb_datadir): Use file style.
10943
44f81a76
HD
109442020-01-03 Hannes Domani <ssbssa@yahoo.de>
10945
10946 * solib-target.c (struct lm_info_target):
10947 Change offsets to be a unique_xmalloc_ptr.
10948 (solib_target_relocate_section_addresses): Update.
10949
25057eb0
HD
109502020-01-03 Hannes Domani <ssbssa@yahoo.de>
10951
10952 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10953
6e2118f5
BE
109542020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10955
10956 * MAINTAINERS (Write After Approval): Add myself.
10957
8133c7dc
LM
109582020-01-02 Luis Machado <luis.machado@linaro.org>
10959
10960 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10961 Cell BE architecture.
10962 * target.h (struct target_ops) <thread_architecture>: Likewise.
10963
48189bec
HD
109642020-01-01 Hannes Domani <ssbssa@yahoo.de>
10965
10966 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10967
ead1063b
HD
109682020-01-01 Hannes Domani <ssbssa@yahoo.de>
10969
10970 * MAINTAINERS (Write After Approval): Add myself.
10971
e5d78223
JB
109722020-01-01 Joel Brobecker <brobecker@adacore.com>
10973
10974 * gdbarch.sh: Update copyright year range of generated files.
10975
b811d2c2
JB
109762020-01-01 Joel Brobecker <brobecker@adacore.com>
10977
10978 Update copyright year range in all GDB files.
10979
5f4def5c
JB
109802020-01-01 Joel Brobecker <brobecker@adacore.com>
10981
10982 * copyright.py: Convert to Python 3.
10983
51fd4002
JB
109842020-01-01 Joel Brobecker <brobecker@adacore.com>
10985
10986 * copyright.py: Adapt after move of gnulib directory from gdb
10987 directory to toplevel directory.
10988
5fb651f2
JB
109892020-01-01 Joel Brobecker <brobecker@adacore.com>
10990
10991 * copyright.py (main): Exit if run from the wrong directory.
10992
5dd8bf88
JB
109932020-01-01 Joel Brobecker <brobecker@adacore.com>
10994
10995 * top.c (print_gdb_version): Change copyright year to 2020.
10996
9f71dacb 109972020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 10998
9f71dacb 10999 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11000
9f71dacb 11001For older changes see ChangeLog-2019.
c906108c
SS
11002\f
11003Local Variables:
11004mode: change-log
11005left-margin: 8
11006fill-column: 74
11007version-control: never
57da7796 11008coding: utf-8
c906108c 11009End: