]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Avoid constant stream of TARGET_WAITKIND_NO_RESUMED
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
42bd97a6
PA
12020-07-10 Pedro Alves <pedro@palves.net>
2
3 PR gdb/26199
4 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5 target_is_async_p.
6
43667cc6
PA
72020-07-10 Pedro Alves <pedro@palves.net>
8
9 PR gdb/26199
10 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
11 threads, not all threads.
12
96118d11
PA
132020-07-10 Pedro Alves <pedro@palves.net>
14
15 PR gdb/26199
16 * remote.c (remote_target::open_1): Pass remote target pointer as
17 data to create_async_event_handler.
18 (remote_async_inferior_event_handler): Mark async event handler
19 before returning if the remote target still has either pending
20 events or unacknowledged notifications.
21
54904d81
JB
222020-07-10 John Baldwin <jhb@FreeBSD.org>
23
24 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
25 declaration.
26 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
27 function.
28
f37e5866
JB
292020-07-09 John Baldwin <jhb@FreeBSD.org>
30
31 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
32 inferior_ptid.
33
fc238d4a
JB
342020-07-09 John Baldwin <jhb@FreeBSD.org>
35
36 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
37 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
38 AT_FREEBSD_PS_STRINGS.
39
6e2469ff
HD
402020-07-08 Hannes Domani <ssbssa@yahoo.de>
41
42 * auto-load.c (auto_load_objfile_script_1): Convert drive part
43 of debugfile path on Windows.
44
d1076c41
JB
452020-07-08 John Baldwin <jhb@FreeBSD.org>
46
47 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
48 argument to 'data'.
49
15f3b077
TT
502020-07-08 Tom Tromey <tromey@adacore.com>
51
52 * ada-lang.c (ada_exception_message_1): Use read_memory.
53
9fc501fd
AB
542020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
55
56 PR python/22748
57 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
58 special handling for inline frames.
59 * findvar.c (value_of_register_lazy): Skip inline frames when
60 creating lazy register values.
61 * frame.c (frame_id_computed_p): Delete definition.
62 * frame.h (frame_id_computed_p): Delete declaration.
63
64cb3757
AB
642020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
65
66 * NEWS: Mention additions to Python API.
67 * python/py-arch.c (archpy_register_groups): New function.
68 (arch_object_methods): Add 'register_groups' method.
69 * python/py-registers.c (reggroup_iterator_object): New struct.
70 (reggroup_object): New struct.
71 (gdbpy_new_reggroup): New function.
72 (gdbpy_reggroup_to_string): New function.
73 (gdbpy_reggroup_name): New function.
74 (gdbpy_reggroup_iter): New function.
75 (gdbpy_reggroup_iter_next): New function.
76 (gdbpy_new_reggroup_iterator): New function
77 (gdbpy_initialize_registers): Register new types.
78 (reggroup_iterator_object_type): Define new Python type.
79 (gdbpy_reggroup_getset): New static global.
80 (reggroup_object_type): Define new Python type.
81 * python/python-internal.h
82
0f767f94
AB
832020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
84
85 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
86 * python/py-arch.c (archpy_registers): New function.
87 (arch_object_methods): Add 'registers' method.
88 * python/py-registers.c: New file.
89 * python/python-internal.h
90 (gdbpy_new_register_descriptor_iterator): Declare.
91 (gdbpy_initialize_registers): Declare.
92 * python/python.c (do_start_initialization): Call
93 gdbpy_initialize_registers.
94 * NEWS: Mention additions to the Python API.
95
87dbc774
AB
962020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
97
98 * NEWS: Mention new Python API method.
99 * python/py-unwind.c (pending_framepy_architecture): New function.
100 (pending_frame_object_methods): Add architecture method.
101
3bc98c0c
AB
1022020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
103
104 * gdbarch.c: Regenerate.
105 * gdbarch.h: Regenerate.
106 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
107 (gdbarch_data): Use internal_error for the case where
108 deprecated_set_gdbarch_data was originally needed.
109 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
110 and use passed in obstack.
111 (libunwind_frame_set_descr): Should no longer get back NULL from
112 gdbarch_data.
113 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
114 type.
115 * user-regs.c (user_regs_init): Update parameters, and use passed
116 in obstack.
117 (user_reg_add): Should no longer get back NULL from gdbarch_data.
118 (_initialize_user_regs): Register as a pre-init gdbarch data type.
119
d8cc8af6
TV
1202020-07-06 Tom de Vries <tdevries@suse.de>
121
122 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
123 End-Of-Sequence in lte_is_less_than.
124 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
125 "gdb: Don't reorder line table entries too much when sorting".
126
947f7597
TV
1272020-07-06 Tom de Vries <tdevries@suse.de>
128
129 PR tui/26205
130 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
131
1e7c1b22
TV
1322020-07-05 Tom de Vries <tdevries@suse.de>
133
134 PR build/26187
135 * inferior.h (struct infcall_suspend_state_deleter): If available, use
136 std::uncaught_exceptions instead of deprecated
137 std::uncaught_exception.
138
a36158ec
SM
1392020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
140
141 * macroexp.h (macro_stringify): Return
142 gdb::unique_xmalloc_ptr<char>.
143 * macroexp.c (macro_stringify): Likewise.
144 * macrotab.c (fixup_definition): Update.
145
14d960c8
SM
1462020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
147
148 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
149 (lex_one_token): Update.
150 * macroexp.c (struct macro_buffer) <release>: Return
151 gdb::unique_xmalloc_ptr<char>.
152 (macro_stringify): Update.
153 (macro_expand): Update.
154 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
155 * macroexp.h (macro_expand_next): Likewise.
156
211d5b1c
SM
1572020-07-02 Simon Marchi <simon.marchi@efficios.com>
158
159 * macroexp.h (macro_lookup_ftype): Remove.
160 (macro_expand, macro_expand_once, macro_expand_next): Remove
161 lookup function parameters, add scope parameter.
162 * macroexp.c (scan, substitute_args, expand, maybe_expand,
163 macro_expand, macro_expand_once, macro_expand_next): Likewise.
164 * macroscope.h (standard_macro_lookup): Change parameter type
165 to macro_scope.
166 * macroscope.c (standard_macro_lookup): Likewise.
167 * c-exp.y (lex_one_token): Update.
168 * macrocmd.c (macro_expand_command): Likewise.
169 (macro_expand_once_command): Likewise.
170
b1a35af2
SM
1712020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
172
173 * inf-loop.c (inferior_event_handler): Remove client_data param.
174 * inf-loop.h (inferior_event_handler): Likewise.
175 * infcmd.c (step_1): Adjust.
176 * infrun.c (proceed): Adjust.
177 (fetch_inferior_event): Remove client_data param.
178 (infrun_async_inferior_event_handler): Adjust.
179 * infrun.h (fetch_inferior_event): Remove `void *` param.
180 * linux-nat.c (handle_target_event): Adjust.
181 * record-btrace.c (record_btrace_handle_async_inferior_event):
182 Adjust.
183 * record-full.c (record_full_async_inferior_event_handler):
184 Adjust.
185 * remote.c (remote_async_inferior_event_handler): Adjust.
186
1cdf9e33
TT
1872020-07-01 Tom Tromey <tom@tromey.com>
188
189 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
190 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
191
32c1e210
TT
1922020-07-01 Tom Tromey <tom@tromey.com>
193
194 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
195 tui_gen_win_info.
196 (tui_win_info::make_window): Merge with
197 tui_gen_win_info::make_window.
198 (tui_win_info::make_visible): Move from tui_gen_win_info.
199 * tui/tui-win.c (tui_win_info::max_width): Move from
200 tui_gen_win_info.
201 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
202 type.
203 <window_factory>: Likewise.
204 * tui/tui-layout.c (tui_win_info::resize): Move from
205 tui_gen_win_info.
206 (make_standard_window): Change return type.
207 (get_locator_window, tui_get_window_by_name): Likewise.
208 (tui_layout_window::apply): Remove a cast.
209 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
210 (struct tui_win_info): Merge with tui_gen_win_info.
211 (struct tui_gen_win_info): Remove.
212
a30cb6da
TT
2132020-07-01 Tom Tromey <tom@tromey.com>
214
215 * tui/tui-stack.h (struct tui_locator_window): Derive from
216 tui_win_info.
217 <do_scroll_horizontal, do_scroll_vertical>: New methods.
218 <can_box>: New method.
219
1eb2161f
TT
2202020-07-01 Tom Tromey <tom@tromey.com>
221
222 * tui/tui-stack.h (struct tui_locator_window): Remove body.
223
7134f2eb
TT
2242020-07-01 Tom Tromey <tom@tromey.com>
225
226 * tui/tui-regs.c (tui_data_window::display_registers_from)
227 (tui_data_window::display_registers_from)
228 (tui_data_window::first_data_item_displayed)
229 (tui_data_window::delete_data_content_windows): Update.
230 (tui_data_window::refresh_window, tui_data_window::no_refresh):
231 Remove.
232 (tui_data_window::check_register_values): Update.
233 (tui_data_item_window::rerender): Add parameters. Update.
234 (tui_data_item_window::refresh_window): Remove.
235 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
236 virtual.
237 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
238 tui_gen_win_info.
239 <refresh_window, max_height, min_height>: Remove.
240 <rerender>: Add parameters.
241 <x, y, visible>: New members.
242 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
243 <m_item_width>: New member.
244
22b7b041
TT
2452020-07-01 Tom Tromey <tom@tromey.com>
246
247 * tui/tui-regs.c (tui_data_window::show_register_group)
248 (tui_data_window::check_register_values): Update.
249 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
250 from item_no.
251
c9753adb
TT
2522020-07-01 Tom Tromey <tom@tromey.com>
253
254 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
255 useless "if".
256
9ab26b4a
TT
2572020-07-01 Tom Tromey <tom@tromey.com>
258
259 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
260 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
261
e555083f
TT
2622020-07-01 Tom Tromey <tom@tromey.com>
263
264 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
265 * tui/tui-winsource.h (enum tui_line_or_address_kind)
266 (struct tui_line_or_address): Move from tui-data.h.
267 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
268 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
269 (tui_cmd_window, tui_source_window_base, tui_source_window)
270 (tui_disasm_window): Don't declare.
271 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
272 to tui-winsource.h.
273 (SINGLE_KEY): Move to tui-stack.c.
274
7a02bab7
TT
2752020-07-01 Tom Tromey <tom@tromey.com>
276
277 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
278 std::string.
279 * tui/tui-regs.c (class tab_expansion_file): New.
280 (tab_expansion_file::write): New method.
281 (tui_register_format): Change return type. Use
282 tab_expansion_file.
283 (tui_get_register, tui_data_window::display_registers_from)
284 (tui_data_item_window::rerender): Update.
285 * tui/tui-io.h (tui_expand_tabs): Don't declare.
286 * tui/tui-io.c (tui_expand_tabs): Remove.
287
ea68593b
TT
2882020-07-01 Tom Tromey <tom@tromey.com>
289
290 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
291
a8caed5d
FS
2922020-07-01 Fangrui Song <maskray@google.com>
293
294 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
295
9cdf9820
AKS
2962020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
297
298 * dwarf2/read.c (set_die_type): Removed conditions to restrict
299 forms for DW_AT_associated and DW_AT_allocated attributes,
300 which is already checked in function attr_to_dynamic_prop.
301
a1520ad8
TT
3022020-06-30 Tom Tromey <tromey@adacore.com>
303
304 * dwarf2/read.c (quirk_rust_enum): Correctly call
305 alloc_rust_variant for default-less enum.
306
5ac58899
TT
3072020-06-30 Tom Tromey <tromey@adacore.com>
308
309 PR build/26183:
310 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
311 gdb::to_string.
312
19b187a9
SM
3132020-06-29 Simon Marchi <simon.marchi@efficios.com>
314
315 * gdbarch.sh (displaced_step_copy_insn): Update doc.
316 * gdbarch.h: Re-generate.
317
cd4c4c07
TT
3182020-06-28 Tom Tromey <tom@tromey.com>
319
320 * command.h (cmd_types): Remove.
321 (cmd_type): Don't declare.
322 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
323 typedef.
324 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
325 * cli/cli-decode.c (cmd_type): Remove.
326
05779d57
PA
3272020-06-27 Pedro Alves <palves@redhat.com>
328
329 * fork-child.c (prefork_hook): Adjust.
330 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
331 Delete.
332 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
333 * inferior.c (inferior::set_tty, inferior::tty): New methods.
334 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
335 Remove declarations.
336 (struct inferior) <set_tty, tty>: New methods.
337 (struct inferior) <terminal>: Rename to ...
338 (struct inferior) <m_terminal>: ... this and make private.
339 * main.c (captured_main_1): Adjust.
340 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
341 (mi_cmd_inferior_tty_show): Adjust.
342 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
343 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
344
1776e3e5
NA
3452020-06-26 Nick Alcock <nick.alcock@oracle.com>
346
347 * configure.ac: Add --enable-libctf: handle --disable-static
348 properly.
349 * acinclude.m4: sinclude ../config/enable.m4.
350 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
351 (LIBCTF): Substitute in.
352 (CTF_DEPS): New, likewise.
353 (CLIBS): libctf needs symbols from libbfd: move earlier.
354 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
355 flags.
356 * ctfread.c: Surround in ENABLE_LIBCTF.
357 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
358 * configure: Regenerate.
359 * config.in: Likewise.
360
58373b80
SM
3612020-06-25 Simon Marchi <simon.marchi@efficios.com>
362
363 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
364
277474ee
SM
3652020-06-25 Simon Marchi <simon.marchi@efficios.com>
366
367 * inferior.h (struct inferior) <terminal>: Change type to
368 gdb::unique_xmalloc_ptr<char>.
369 * inferior.c (inferior::~inferior): Don't free inf->terminal.
370 * infcmd.c (set_inferior_io_terminal): Don't free terminal
371 field, adjust to unique pointer.
372 (get_inferior_io_terminal): Adjust to unique pointer.
373
6d74da72
AB
3742020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
375
376 * riscv-tdep.c (riscv_print_registers_info): Loop over all
377 registers, not just the known core set of registers.
378
2e52d038
AB
3792020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
380
381 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
382 fflags, frm, and fcsr registers.
383 (riscv_register_reggroup_p): Remove unknown CSRs from save and
384 restore groups.
385 (riscv_tdesc_unknown_reg): New function.
386 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
387 tdesc_use_registers.
388 * riscv-tdep.h (struct gdbarch_tdep): Add
389 unknown_csrs_first_regnum, unknown_csrs_count,
390 duplicate_fflags_regnum, duplicate_frm_regnum, and
391 duplicate_fcsr_regnum fields.
392
be64fd07
AB
3932020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
394
395 * target-descriptions.c (tdesc_use_registers): Add new parameter a
396 callback, use the callback (when not null) to help number unknown
397 registers.
398 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
399 (tdesc_use_registers): Add extra parameter to declaration.
400
3b9fce96
AB
4012020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
402
403 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
404 in the file.
405 (class riscv_pending_register_alias): Likewise.
406 (riscv_register_feature::register_info): Change 'required_p' field
407 to 'required', and change its type. Add 'check' member function.
408 (riscv_register_feature::register_info::check): Define new member
409 function.
410 (riscv_xreg_feature): Change initialisation of 'required' field.
411 (riscv_freg_feature): Likewise.
412 (riscv_virtual_feature): Likewise.
413 (riscv_csr_feature): Likewise.
414 (riscv_check_tdesc_feature): Take extra parameter, the csr
415 tdesc_feature, rewrite the function to use the new
416 riscv_register_feature::register_info::check function.
417 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
418
865bad26
AB
4192020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
420
421 * features/Makefile: Remove all references to the deleted files
422 below.
423 * features/riscv/32bit-csr.c: Deleted.
424 * features/riscv/32bit-csr.xml: Deleted.
425 * features/riscv/64bit-csr.c: Deleted.
426 * features/riscv/64bit-csr.xml: Deleted.
427 * features/riscv/rebuild-csr-xml.sh: Deleted.
428
ed69cbc8
AB
4292020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
430
431 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
432 whitespace error for declaration of names member variable.
433 (struct riscv_register_feature): Add new prefer_first_name member
434 variable, and fix whitespace error in declaration of registers.
435 (riscv_xreg_feature): Initialize prefer_first_name field.
436 (riscv_freg_feature): Likewise.
437 (riscv_virtual_feature): Likewise.
438 (riscv_csr_feature): Likewise.
439 (riscv_register_name): Expand on comments. Remove register name
440 modifications for CSR and virtual registers.
441
4445e8f5
AB
4422020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
443
444 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
445 errors.
446
767a879e
AB
4472020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
448
449 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
450 riscv-opc.h.
451 (class riscv_pending_register_alias): New class.
452 (riscv_check_tdesc_feature): Take vector of pending aliases and
453 populate it as appropriate.
454 (riscv_setup_register_aliases): Delete.
455 (riscv_gdbarch_init): Create vector of pending aliases and pass it
456 to riscv_check_tdesc_feature in all cases. Use the vector to
457 create the register aliases.
458
bb6e55f3
RO
4592020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
460
461 * sol2-tdep.c (sol2_static_transform_name): Remove.
462 (sol2_init_abi): Don't register it.
463 * gdbarch.sh (static_transform_name): Remove.
464 * gdbarch.c, gdbarch.h: Regenerate.
465
466 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
467 gdbarch_static_transform_name.
468 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
469 * stabsread.c (define_symbol) <'X'>: Remove.
470 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
471 handling.
472 <'V'>: Likewise.
473 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
474 <'S'>: Remove call to gdbarch_static_transform_name.
475
c6d36836
RO
4762020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
477
478 * procfs.c (procfs_pre_trace): New function.
479 (procfs_target::create_inferior): Pass it to fork_inferior.
480
a7e6196b
RO
4812020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
482
483 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
484 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
485 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
486 sol2-tdep.o, sparc-sol2-tdep.o.
487 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
488 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
489 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
490 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
491
d412e696
RO
4922020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
493
494 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
495 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
496 Call sol2_init_abi.
497 Remove calls to set_gdbarch_skip_solib_resolver,
498 set_gdbarch_core_pid_to_str.
499 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
500 (i386_sol2_static_transform_name): Remove.
501 (i386_sol2_init_abi): Call sol2_init_abi.
502 Remove calls to set_gdbarch_sofun_address_maybe_missing,
503 set_gdbarch_static_transform_name,
504 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
505 Use sol2_sigtramp_p.
506 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
507 (sol2_sigtramp_p): New function.
508 (sol2_static_transform_name): New function.
509 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
510 (sol2_init_abi): New function.
511 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
512 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
513 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
514 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
515 (sparc_sol2_static_transform_name): Remove.
516 (sparc32_sol2_init_abi): Call sol2_init_abi.
517 Remove calls to set_gdbarch_sofun_address_maybe_missing,
518 set_gdbarch_static_transform_name,
519 set_gdbarch_skip_solib_resolver,
520 set_gdbarch_core_pid_to_str.
521 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
522 (sparc_sol2_static_transform_name): Remove
523 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
524 call sol2_sigtramp_p.
525 (sparc64_sol2_init_abi): Call sol2_init_abi.
526 Remove calls to set_gdbarch_sofun_address_maybe_missing,
527 set_gdbarch_static_transform_name,
528 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
529
a8654e7d
PW
5302020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
531
532 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
533 * exec.c (validate_exec_file): If from_tty, set both
534 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
535 * symfile.c (symbol_file_add_with_addrs): if always_confirm
536 and from_tty, unconditionally ask a confirmation.
537
caa7fd04
AB
5382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
539
540 * target-descriptions.c (tdesc_architecture_name): Protect against
541 NULL pointer dereference.
542 (maint_print_xml_tdesc_cmd): New function.
543 (_initialize_target_descriptions): Register new 'maint print
544 xml-tdesc' command and give it the filename completer.
545 * NEWS: Mention new 'maint print xml-tdesc' command.
546
fbf42f4e
AB
5472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
548
549 * target-descriptions.c (class tdesc_compatible_info): New class.
550 (struct target_desc): Change type of compatible vector.
551 (tdesc_compatible_p): Update for change in type of
552 target_desc::compatible.
553 (tdesc_compatible_info_list): New function.
554 (tdesc_compatible_info_arch_name): New function.
555 (tdesc_add_compatible): Update for change in type of
556 target_desc::compatible.
557 (print_c_tdesc::visit_pre): Likewise.
558
20821f4e
AB
5592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
560
561 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
562 whitespace to underscore.
563 (maint_print_c_tdesc_cmd): Use fake filename for target
564 descriptions that came from the target.
565 (_initialize_target_descriptions): Add filename command completion
566 for 'maint print c-tdesc'.
567
1fb5ee62
SM
5682020-06-23 Simon Marchi <simon.marchi@efficios.com>
569
570 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
571 lines.
572
fc3ecb3e
SM
5732020-06-23 Simon Marchi <simon.marchi@efficios.com>
574
575 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
576 lines.
577 (dwarf2_find_location_expression): Likewise.
578 (call_site_parameter_matches): Likewise.
579 (dwarf2_compile_expr_to_ax): Likewise.
580 (disassemble_dwarf_expression): Likewise.
581 (loclist_describe_location): Likewise.
582
236ef034
PA
5832020-06-23 Pedro Alves <palves@redhat.com>
584
585 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
586 progspace-and-thread.h. Include scoped-mock-context.h instead.
587 (register_to_value_test): Use scoped_mock_context.
588 * regcache.c: Include "scoped-mock-context.h".
589 (cooked_read_test): Don't error out if a target is already pushed.
590 Use scoped_mock_context. Adjust.
591 * scoped-mock-context.h: New file.
592
39e7ecca
AB
5932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
594
595 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
596 initializer.
597 (ada_language::is_string_type_p): New member function.
598 * c-lang.c (c_language_data): Delete la_is_string_type_p
599 initializer.
600 (cplus_language_data): Likewise.
601 (asm_language_data): Likewise.
602 (minimal_language_data): Likewise.
603 * d-lang.c (d_language_data): Likewise.
604 * f-lang.c (f_is_string_type_p): Delete function, implementation
605 moved to f_language::is_string_type_p.
606 (f_language_data): Delete la_is_string_type_p initializer.
607 (f_language::is_string_type_p): New member function,
608 implementation from f_is_string_type_p.
609 * go-lang.c (go_is_string_type_p): Delete function, implementation
610 moved to go_language::is_string_type_p.
611 (go_language_data): Delete la_is_string_type_p initializer.
612 (go_language::is_string_type_p): New member function,
613 implementation from go_is_string_type_p.
614 * language.c (language_defn::is_string_type_p): Define new member
615 function.
616 (default_is_string_type_p): Make static, add comment copied from
617 header file.
618 (unknown_language_data): Delete la_is_string_type_p initializer.
619 (unknown_language::is_string_type_p): New member function.
620 (auto_language_data): Delete la_is_string_type_p initializer.
621 (auto_language::is_string_type_p): New member function.
622 * language.h (language_data): Delete la_is_string_type_p field.
623 (language_defn::is_string_type_p): Declare new function.
624 (default_is_string_type_p): Delete desclaration, move comment to
625 definition.
626 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
627 moved to m2_language::is_string_type_p.
628 (m2_language_data): Delete la_is_string_type_p initializer.
629 (m2_language::is_string_type_p): New member function,
630 implementation from m2_is_string_type_p.
631 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
632 initializer.
633 * opencl-lang.c (opencl_language_data): Likewise.
634 * p-lang.c (pascal_is_string_type_p): Delete function,
635 implementation moved to pascal_language::is_string_type_p.
636 (pascal_language_data): Delete la_is_string_type_p initializer.
637 (pascal_language::is_string_type_p): New member function,
638 implementation from pascal_is_string_type_p.
639 * rust-lang.c (rust_is_string_type_p): Delete function,
640 implementation moved to rust_language::is_string_type_p.
641 (rust_language_data): Delete la_is_string_type_p initializer.
642 (rust_language::is_string_type_p): New member function,
643 implementation from rust_is_string_type_p.
644 * valprint.c (val_print_scalar_or_string_type_p): Update call to
645 is_string_type_p.
646
4ffc13fb
AB
6472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
648
649 * ada-lang.c (ada_language_data): Delete la_print_typedef
650 initializer.
651 (ada_language::print_typedef): New member function.
652 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
653 (cplus_language_data): Likewise.
654 (asm_language_data): Likewise.
655 (minimal_language_data): Likewise.
656 * d-lang.c (d_language_data): Likewise.
657 * f-lang.c (f_language_data): Likewise.
658 (f_language::print_typedef): New member function.
659 * go-lang.c (go_language_data): Delete la_print_typedef
660 initializer.
661 * language.c (language_defn::print_typedef): Define member
662 function.
663 (unknown_language_data): Delete la_print_typedef initializer.
664 (unknown_language::print_typedef): New member function.
665 (auto_language_data): Delete la_print_typedef initializer.
666 (auto_language::print_typedef): New member function.
667 * language.h (language_data): Delete la_print_typedef field.
668 (language_defn::print_typedef): Declare new member function.
669 (LA_PRINT_TYPEDEF): Update call to print_typedef.
670 (default_print_typedef): Delete declaration.
671 * m2-lang.c (m2_language_data): Delete la_print_typedef
672 initializer.
673 (m2_language::print_typedef): New member function.
674 * objc-lang.c (objc_language_data): Delete la_print_typedef
675 initializer.
676 * opencl-lang.c (opencl_language_data): Likewise.
677 * p-lang.c (pascal_language_data): Likewise.
678 (pascal_language::print_typedef): New member function.
679 * rust-lang.c (rust_print_typedef): Delete function,
680 implementation moved to rust_language::print_typedef.
681 (rust_language): Delete la_print_typedef initializer.
682 (rust_language::print_typedef): New member function,
683 implementation from rust_print_typedef.
684 * typeprint.c (default_print_typedef): Delete.
685
d711ee67
AB
6862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
687
688 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
689 (ada_language::printstr): New member function.
690 * c-lang.c (c_language_data): Delete la_printstr initializer.
691 (cplus_language_data): Likewise.
692 (asm_language_data): Likewise.
693 (minimal_language_data): Likewise.
694 * d-lang.c (d_language_data): Likewise.
695 * f-lang.c (f_printstr): Rename to f_language::printstr.
696 (f_language_data): Delete la_printstr initializer.
697 (f_language::printstr): New member function, implementation from
698 f_printstr.
699 * go-lang.c (go_language_data): Delete la_printstr initializer.
700 * language.c (language_defn::printstr): Define new member
701 function.
702 (unk_lang_printstr): Delete.
703 (unknown_language_data): Delete la_printstr initializer.
704 (unknown_language::printstr): New member function.
705 (auto_language_data): Delete la_printstr initializer.
706 (auto_language::printstr): New member function.
707 * language.h (language_data): Delete la_printstr field.
708 (language_defn::printstr): Declare new member function.
709 (LA_PRINT_STRING): Update call to printstr.
710 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
711 (m2_language_data): Delete la_printstr initializer.
712 (m2_language::printstr): New member function, implementation from
713 m2_printstr.
714 * objc-lang.c (objc_language_data): Delete la_printstr
715 initializer.
716 * opencl-lang.c (opencl_language_data): Likewise.
717 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
718 (pascal_language_data): Delete la_printstr initializer.
719 (pascal_language::printstr): New member function, implementation
720 from pascal_printstr.
721 * p-lang.h (pascal_printstr): Delete declaration.
722 * rust-lang.c (rust_printstr): Update header comment.
723 (rust_language_data): Delete la_printstr initializer.
724 (rust_language::printstr): New member function.
725
52b50f2c
AB
7262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
727
728 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
729 (ada_language::printchar): New member function.
730 * c-lang.c (c_language_data): Delete la_printchar initializer.
731 (cplus_language_data): Likewise.
732 (asm_language_data): Likewise.
733 (minimal_language_data): Likewise.
734 * d-lang.c (d_language_data): Likewise.
735 * f-lang.c (f_printchar): Rename to f_language::printchar.
736 (f_language_data): Delete la_printchar initializer.
737 (f_language::printchar): New member function, implementation from
738 f_printchar.
739 * go-lang.c (go_language_data): Delete la_printchar initializer.
740 * language.c (unk_lang_printchar): Delete.
741 (language_defn::printchar): Define new member function.
742 (unknown_language_data): Delete la_printchar initializer.
743 (unknown_language::printchar): New member function.
744 (auto_language_data): Delete la_printchar initializer.
745 (auto_language::printchar): New member function.
746 * language.h (language_data): Delete la_printchar field.
747 (language_defn::printchar): Declare new member function.
748 (LA_PRINT_CHAR): Update call to printchar.
749 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
750 (m2_language::printchar): New member function.
751 * objc-lang.c (objc_language_data): Delete la_printchar
752 initializer.
753 * opencl-lang.c (opencl_language_data): Likewise.
754 * p-lang.c (pascal_language_data): Delete la_printchar
755 initializer.
756 (pascal_language::printchar): New member function.
757 * rust-lang.c (rust_printchar): Rename to
758 rust_language::printchar.
759 (rust_language_data): Delete la_printchar initializer.
760 (rust_language::printchar): New member function, implementation
761 from rust_printchar.
762
ec8cec5b
AB
7632020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
764
765 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
766 (ada_language_data): Delete la_emitchar initializer.
767 (ada_language::emitchar): New member function, implementation from
768 emit_char.
769 * c-lang.c (c_language_data): Delete la_emitchar initializer.
770 (cplus_language_data): Likewise.
771 (asm_language_data): Likewise.
772 (minimal_language_data): Likewise.
773 * d-lang.c (d_language_data): Likewise.
774 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
775 (f_language_data): Delete la_emitchar initializer.
776 (f_language::emitchar): New member function, implementation from
777 f_emit_char.
778 * go-lang.c (go_language_data): Delete la_emitchar initializer.
779 * language.c (unk_lang_emit_char): Delete.
780 (language_defn::emitchar): New member function definition.
781 (unknown_language_data): Delete la_emitchar initializer.
782 (unknown_language::emitchar): New member function.
783 (auto_language_data): Delete la_emitchar initializer.
784 (auto_language::emitchar): New member function.
785 * language.h (language_data): Delete la_emitchar field.
786 (language_defn::emitchar): New member field declaration.
787 (LA_EMIT_CHAR): Update call to emitchar.
788 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
789 (m2_language_data): Delete la_emitchar initializer.
790 (m2_language::emitchar): New member function, implementation from
791 m2_emit_char.
792 * objc-lang.c (objc_language_data): Delete la_emitchar
793 initializer.
794 * opencl-lang.c (opencl_language_data): Likewise.
795 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
796 (pascal_language_data): Delete la_emitchar initializer.
797 (pascal_language::emitchar): New member function, implementation
798 from pascal_emit_char.
799 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
800 (rust_language_data): Delete la_emitchar initializer.
801 (rust_language::emitchar): New member function, implementation
802 from rust_emitchar.
803
1bf9c363
AB
8042020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
805
806 * ada-lang.c (resolve): Rename to ada_language::post_parser.
807 (ada_language_data): Delete la_post_parser initializer.
808 (ada_language::post_parser): New member function.
809 * c-lang.c (c_language_data): Delete la_post_parser initializer.
810 (cplus_language_data): Likewise.
811 (asm_language_data): Likewise.
812 (minimal_language_data): Likewise.
813 * d-lang.c (d_language_data): Likewise.
814 * f-lang.c (f_language_data): Likewise.
815 * go-lang.c (go_language_data): Likewise.
816 * language.c (unknown_language_data): Likewise.
817 (auto_language_data): Likewise.
818 * language.h (language_data): Delete la_post_parser field.
819 (language_defn::post_parser): New member function.
820 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
821 * objc-lang.c (objc_language_data): Likewise.
822 * opencl-lang.c (opencl_language_data): Likewise.
823 * p-lang.c (pascal_language_data): Likewise.
824 * parse.c (parse_exp_in_context): Update call to post_parser.
825 (null_post_parser): Delete definition.
826 * parser-defs.h (null_post_parser): Delete declaration.
827 * rust-lang.c (rust_language_data): Delete la_post_parser
828 initializer.
829
87afa652
AB
8302020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
831
832 * ada-lang.c (parse): Rename to ada_language::parser.
833 (ada_language_data): Delete la_parser initializer.
834 (ada_language::parser): New member function, implementation from
835 parse.
836 * c-lang.c (c_language_data): Delete la_parser initializer.
837 (cplus_language_data): Likewise.
838 (asm_language_data): Likewise.
839 (minimal_language_data): Likewise.
840 * d-lang.c (d_language_data): Likewise.
841 (d_language::parser): New member function.
842 * f-lang.c (f_language_data): Delete la_parser initializer.
843 (f_language::parser): New member function.
844 * go-lang.c (go_language_data): Delete la_parser initializer.
845 (go_language::parser): New member function.
846 * language.c (unk_lang_parser): Delete.
847 (language_defn::parser): Define new member function.
848 (unknown_language_data): Delete la_parser initializer.
849 (unknown_language::parser): New member function.
850 (auto_language_data): Delete la_parser initializer.
851 (auto_language::parser): New member function.
852 * language.h (language_data): Delete la_parser field.
853 (language_defn::parser): Declare new member function.
854 * m2-lang.c (m2_language_data): Delete la_parser initializer.
855 (m2_language::parser): New member function.
856 * objc-lang.c (objc_language_data): Delete la_parser initializer.
857 * opencl-lang.c (opencl_language_data): Likewise.
858 * p-lang.c (pascal_language_data): Likewise.
859 (pascal_language::parser): New member function.
860 * parse.c (parse_exp_in_context): Update call to parser.
861 * rust-lang.c (rust_language_data): Delete la_parser initializer.
862 (rust_language::parser): New member function.
863
37825800
AB
8642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
865
866 * top.c (print_gdb_configuration): Print --with-python-libdir
867 configuration value.
868
5b860c93
PW
8692020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
870
871 * NEWS: Mention change to the alias command.
872
cf00cd6f
PW
8732020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
874
875 * cli/cli-cmds.c (lookup_cmd_for_default_args)
876 (alias_command_completer)
877 (make_alias_options_def_group): New functions.
878 (alias_opts, alias_option_defs): New struct and array.
879 (alias_usage_error): Update usage.
880 (alias_command): Handles optional DEFAULT-ARGS... arguments.
881 Use option framework.
882 (_initialize_cli_cmds): Update alias command help.
883 Update aliases command help.
884 (show_user):
885 Add NULL for new default_args lookup_cmd argument.
886 (valid_command_p): Rename to validate_aliased_command.
887 Add NULL for new default_args lookup_cmd argument. Verify that the
888 aliased_command has no default args.
889 * cli/cli-decode.c (help_cmd): Show aliases definitions.
890 (lookup_cmd_1, lookup_cmd): New argument default_args.
891 (add_alias_cmd):
892 Add NULL for new default_args lookup_cmd argument.
893 (print_help_for_command): Show default args under the layout
894 alias some_alias = some_aliased_cmd some_alias_default_arg.
895 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
896 xfree default_args in destructor.
897 * cli/cli-script.c (process_next_line, do_define_command):
898 Add NULL for new default_args lookup_cmd argument.
899 * command.h: Declare new default_args argument in lookup_cmd
900 and lookup_cmd_1.
901 * completer.c (complete_line_internal_1):
902 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
903 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
904 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
905 Likewise.
906 * infcmd.c (_initialize_infcmd): Likewise.
907 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
908 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
909 * python/py-param.c (add_setshow_generic): Likewise.
910 * remote.c (_initialize_remote): Likewise.
911 * top.c (execute_command): Prepend default_args if command has some.
912 (set_verbose):
913 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
914 * tracepoint.c (validate_actionline, encode_actions_1):
915 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
916
bd920864
TBA
9172020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
918
919 * jit.c (jit_read_descriptor): Use bool as the return type.
920 (jit_breakpoint_re_set_internal): Use bool as the return type.
921 Invert the return value logic; return true if the jit breakpoint
922 has been successfully initialized.
923 (jit_inferior_init): Update the call to
924 jit_breakpoint_re_set_internal.
925
f8098322
PA
9262020-06-22 Pedro Alves <palves@redhat.com>
927
928 PR gdb/25939
929 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
930 Use the current inferior instead. Don't return
931 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
932 wait again.
933 * sol-thread.c (sol_thread_target::wait): Don't reference
934 inferior_ptid.
935 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
936 (sol_update_thread_list_callback): Use the current inferior's pid
937 instead of inferior_ptid.
938
196535a6
RO
9392020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
940
941 * procfs.c: Cleanup many comments.
942
943 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
944 (AFTER_WATCHFLAG): Replace by value.
945
946 (MAIN_PROC_NAME_FORMAT): Inline ...
947 (create_procinfo): ... here.
948
949 (procfs_debug_inferior): Remove SYS_exec handling.
950 (syscall_is_exec): Likewise.
951 (procfs_set_exec_trap): Likewise.
952
953 (syscall_is_lwp_exit): Inline in callers.
954 (syscall_is_exit): Likewise.
955 (syscall_is_exec): Likewise.
956 (syscall_is_lwp_create): Likewise.
957
958 (invalidate_cache): Remove #if 0 code.
959
960 (make_signal_thread_runnable): Remove.
961 (procfs_target::resume): Remove #if 0 code.
962
cf6f3e86
RO
9632020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
964
965 PR gdb/25939
966 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
967 call ...
968 (procfs_target::create_inferior): ... here.
969
48e9cc84
PW
9702020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
971
972 * exec.c (validate_exec_file): Ensure the build-id is up to
973 date by calling reopen_exec_file (that checks file timestamp
974 to decide to re-read the file).
975
3922b302
PA
9762020-06-18 Pedro Alves <palves@redhat.com>
977
978 PR gdb/25412
979 * gdbthread.h (delete_thread, delete_thread_silent)
980 (find_thread_ptid): Update comments.
981 * thread.c (current_thread_): New global.
982 (is_current_thread): Move higher, and reimplement.
983 (inferior_thread): Reimplement.
984 (set_thread_exited): Use bool. Add assertions.
985 (add_thread_silent): Simplify thread-reuse handling by always
986 calling delete_thread.
987 (delete_thread): Remove intro comment.
988 (find_thread_ptid): Skip exited threads.
989 (switch_to_thread_no_regs): Write to current_thread_.
990 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
991 INFERIOR_PTID. Clear current_thread_.
992
6dbdab44
PA
9932020-06-18 Pedro Alves <palves@redhat.com>
994
995 * aix-thread.c (pd_update): Use switch_to_thread.
996
2da4b788
PA
9972020-06-18 Pedro Alves <palves@redhat.com>
998
999 * ravenscar-thread.c (ravenscar_thread_target): Update.
1000 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1001 (ravenscar_thread_target::add_active_thread): ... this. Don't
1002 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1003 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1004
50838d1b
PA
10052020-06-18 Pedro Alves <palves@redhat.com>
1006
1007 * nat/windows-nat.c (current_windows_thread): Remove.
1008 * nat/windows-nat.h (current_windows_thread): Remove.
1009 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1010 Adjust.
1011 (display_selectors): Adjust to fetch the current
1012 windows_thread_info based on inferior_ptid.
1013 (fake_create_process): No longer write to current_windows_thread.
1014 (windows_nat_target::get_windows_debug_event):
1015 Don't set inferior_ptid or current_windows_thread.
1016 (windows_nat_target::wait): Adjust to not rely on
1017 current_windows_thread.
1018 (do_initial_windows_stuff): Now a method of windows_nat_target.
1019 Switch to the last_ptid thread.
1020 (windows_nat_target::attach): Adjust.
1021 (windows_nat_target::detach): Use switch_to_no_thread instead of
1022 writing to inferior_ptid directly.
1023 (windows_nat_target::create_inferior): Adjust.
1024
31ce04e9
PA
10252020-06-18 Pedro Alves <palves@redhat.com>
1026
1027 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1028
1ee1a363
PA
10292020-06-18 Pedro Alves <palves@redhat.com>
1030
1031 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1032 after creating it, instead of writing to inferior_ptid. Don't
1033 write to inferior_ptid.
1034
6d350754
PA
10352020-06-18 Pedro Alves <palves@redhat.com>
1036
1037 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1038
5d971d48
PA
10392020-06-18 Pedro Alves <palves@redhat.com>
1040
1041 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1042 it, instead of writing to inferior_ptid.
1043
86e57d1b
PA
10442020-06-18 Pedro Alves <palves@redhat.com>
1045
1046 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1047 to inferior_ptid.
1048
f2e1c129
PA
10492020-06-18 Pedro Alves <palves@redhat.com>
1050
1051 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1052 instead of writing to inferior_ptid directly.
1053
60db1b85
PA
10542020-06-18 Pedro Alves <palves@redhat.com>
1055
1056 * corelow.c (core_target::close): Use switch_to_no_thread instead
1057 of writing to inferior_ptid directly.
1058 (add_to_thread_list, core_target_open): Use switch_to_thread
1059 instead of writing to inferior_ptid directly.
1060
fe7d6a8d
PA
10612020-06-18 Pedro Alves <palves@redhat.com>
1062
1063 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1064 inferior_ptid.
1065 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1066 inferior_ptid.
1067 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1068 inferior_ptid directly.
1069 (darwin_nat_target::init_thread_list): Switch to thread, instead
1070 of writing to inferior_ptid.
1071 (darwin_nat_target::attach): Don't write to inferior_ptid.
1072 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1073
975f8708
PA
10742020-06-18 Pedro Alves <palves@redhat.com>
1075
1076 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1077 thread.
1078 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1079 Instead use switch_to_thread.
1080 (gnu_nat_target::detach): Use switch_to_no_thread
1081 instead of writing to inferior_ptid directly. Used passed-in
1082 inferior instead of looking up the inferior by pid.
1083
1a204730
PA
10842020-06-18 Pedro Alves <palves@redhat.com>
1085
1086 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1087 inferior_ptid.
1088
ebe84f23
PA
10892020-06-18 Pedro Alves <palves@redhat.com>
1090
1091 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1092 inferior_ptid.
1093 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1094 thread.
1095 (nto_procfs_target::detach): Avoid referencing
1096 inferior_ptid. Use switch_to_no_thread instead of writing to
1097 inferior_ptid directly.
1098 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1099 instead of writing to inferior_ptid directly.
1100 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1101 to thread.
1102
191f02e5
PA
11032020-06-18 Pedro Alves <palves@redhat.com>
1104
1105 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1106 after creating it, instead of writing to inferior_ptid.
1107 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1108 to inferior_ptid directly.
1109 (gdbsim_target::wait): Don't write to inferior_ptid.
1110
0ac55310
PA
11112020-06-18 Pedro Alves <palves@redhat.com>
1112
1113 * remote.c (remote_target::remote_notice_new_inferior): Use
1114 switch_to_thread instead of writing to inferior_ptid directly.
1115 (remote_target::add_current_inferior_and_thread): Use
1116 switch_to_no_thread instead of writing to inferior_ptid directly.
1117 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1118 and switch_to_thread instead of using set_current_inferior or
1119 writing to inferior_ptid directly.
1120
5233f39b
PA
11212020-06-18 Pedro Alves <palves@redhat.com>
1122
1123 * tracectf.c (ctf_target_open): Switch to added thread instead of
1124 writing to inferior_ptid directly.
1125 (ctf_target::close): Use switch_to_no_thread instead of writing to
1126 inferior_ptid directly.
1127
087e161b
PA
11282020-06-18 Pedro Alves <palves@redhat.com>
1129
1130 * tracefile-tfile.c (tfile_target_open): Don't write to
1131 inferior_ptid directly, instead switch to added thread.
1132 (tfile_target::close): Use switch_to_no_thread instead of writing
1133 to inferior_ptid directly.
1134
7fb43e53
PA
11352020-06-18 Pedro Alves <palves@redhat.com>
1136
1137 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1138 (procfs_target::detach): Use switch_to_no_thread
1139 instead of writing to inferior_ptid directly.
1140 (do_attach): Change return type to void. Switch to the added
1141 thread.
1142 (procfs_target::create_inferior): Switch to the added thread.
1143 (procfs_do_thread_registers): Don't write to inferior_ptid.
1144
18493a00
PA
11452020-06-18 Pedro Alves <palves@redhat.com>
1146
1147 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1148 of writing to inferior_ptid.
1149 (scoped_restore_exited_inferior): Delete.
1150 (handle_vfork_child_exec_or_exit): Simplify using
1151 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1152 instead of writing to inferior_ptid.
1153 (THREAD_STOPPED_BY): Delete.
1154 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1155 (thread_stopped_by_hw_breakpoint): Delete.
1156 (save_waitstatus): Use
1157 scoped_restore_current_thread+switch_to_thread, and call
1158 target_stopped_by_watchpoint instead of
1159 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1160 instead of thread_stopped_by_sw_breakpoint, and
1161 target_stopped_by_hw_breakpoint instead of
1162 thread_stopped_by_hw_breakpoint.
1163 (handle_inferior_event)
1164 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1165 inferior_ptid directly, nor
1166 set_current_inferior/set_current_program_space. Use
1167 switch_to_thread / switch_to_inferior_no_thread instead.
1168
a0776b13
PA
11692020-06-18 Pedro Alves <palves@redhat.com>
1170
1171 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1172 instead of writing to inferior_ptid.
1173
6155c136
PA
11742020-06-18 Pedro Alves <palves@redhat.com>
1175
1176 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1177 added thread.
1178 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1179 to the added thread.
1180 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1181 instead of writing to inferior_ptid.
1182
c5316fc6
PA
11832020-06-18 Pedro Alves <palves@redhat.com>
1184
1185 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1186 (register_to_value_test): Mock a program_space too. Heap-allocate
1187 the address space. Don't write to inferior_ptid. Use
1188 switch_to_thread instead.
1189
8df01799
PA
11902020-06-18 Pedro Alves <palves@redhat.com>
1191
1192 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1193 Delete.
1194 (find_signalled_thread()): New, factored out from
1195 linux_make_corefile_notes and adjusted to handle exited threads.
1196 (linux_make_corefile_notes): Adjust to use the new
1197 find_signalled_thread.
1198
41792d68
PA
11992020-06-18 Pedro Alves <palves@redhat.com>
1200
1201 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1202 of saving/restoring inferior_ptid.
1203
612f258a
TT
12042020-06-17 Tom Tromey <tom@tromey.com>
1205
1206 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1207 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1208 declare.
1209 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1210
efb763a5
SM
12112020-06-15 Simon Marchi <simon.marchi@efficios.com>
1212
1213 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1214 of partial symtabs.
1215
2951f6c0
SM
12162020-06-17 Simon Marchi <simon.marchi@efficios.com>
1217
1218 * regformats/reg-arm.dat: Remove.
1219 * regformats/reg-bfin.dat: Remove.
1220 * regformats/reg-cris.dat: Remove.
1221 * regformats/reg-crisv32.dat: Remove.
1222 * regformats/reg-m32r.dat: Remove.
1223 * regformats/reg-tilegx.dat: Remove.
1224 * regformats/reg-tilegx32.dat: Remove.
1225
7d458ea5
SM
12262020-06-17 Simon Marchi <simon.marchi@efficios.com>
1227
1228 * features/Makefile (WHICH): Remove arm files.
1229 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1230 * regformats/arm/arm-with-neon.dat: Remove.
1231 * regformats/arm/arm-with-vfpv2.dat: Remove.
1232 * regformats/arm/arm-with-vfpv3.dat: Remove.
1233
3af96c0d
SM
12342020-06-17 Simon Marchi <simon.marchi@efficios.com>
1235
1236 * features/Makefile (XMLTOC): Remove rx.xml.
1237
b25e22fd
PA
12382020-06-17 Pedro Alves <palves@redhat.com>
1239
1240 * gdbthread.h (thread_control_state) <trap_expected> Update
1241 comments.
1242
a78a19b1
AB
12432020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1244
1245 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1246 ada_language::lookup_symbol_nonlocal.
1247 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1248 (ada_language::lookup_symbol_nonlocal): New member function,
1249 implementation from ada_lookup_symbol_nonlocal.
1250 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1251 initializer.
1252 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1253 initializer.
1254 (cplus_language::lookup_symbol_nonlocal): New member function.
1255 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1256 (minimal_language_data) Likewise.
1257 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1258 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1259 initializer.
1260 (d_language::lookup_symbol_nonlocal): New member function.
1261 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1262 initializer.
1263 (f_language::lookup_symbol_nonlocal): New member function.
1264 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1265 initializer.
1266 * language.c (unknown_language_data): Likewise.
1267 (auto_language_data): Likewise.
1268 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1269 field.
1270 (language_defn::lookup_symbol_nonlocal): New member function.
1271 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1272 initializer.
1273 * objc-lang.c (objc_language_data): Likewise.
1274 * opencl-lang.c (opencl_language_data): Likewise.
1275 * p-lang.c (pascal_language_data): Likewise.
1276 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1277 rust_language::lookup_symbol_nonlocal.
1278 (rust_language_data): Delete la_lookup_symbol_nonlocal
1279 initializer.
1280 (rust_language::lookup_symbol_nonlocal): New member function,
1281 implementation from rust_lookup_symbol_nonlocal.
1282 * symtab.c (lookup_symbol_aux): Update call to
1283 lookup_symbol_nonlocal.
1284 (basic_lookup_symbol_nonlocal): Rename to...
1285 (language_defn::lookup_symbol_nonlocal): ...this, and update
1286 header comment. Remove language_defn parameter, and replace with
1287 uses of `this'.
1288 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1289
ebe2334e
AB
12902020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1291
1292 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1293 initializer.
1294 (ada_language::value_print_inner): New member function.
1295 * c-lang.c (c_language_data): Delete la_value_print_inner
1296 initializer.
1297 (cplus_language_data): Likewise.
1298 (asm_language_data): Likewise.
1299 (minimal_language_data): Likewise.
1300 * d-lang.c (d_language_data): Likewise.
1301 (d_language::value_print_inner): New member function.
1302 * f-lang.c (f_language_data): Delete la_value_print_inner
1303 initializer.
1304 (f_language::value_print_inner): New member function.
1305 * f-lang.h (f_value_print_innner): Rename to...
1306 (f_value_print_inner): ...this (note spelling of 'inner').
1307 * f-valprint.c (f_value_print_innner): Rename to...
1308 (f_value_print_inner): ...this (note spelling of 'inner').
1309 * go-lang.c (go_language_data): Delete la_value_print_inner
1310 initializer.
1311 (go_language::value_print_inner): New member function.
1312 * language.c (language_defn::value_print_inner): Define new member
1313 function.
1314 (unk_lang_value_print_inner): Delete.
1315 (unknown_language_data): Delete la_value_print_inner initializer.
1316 (unknown_language::value_print_inner): New member function.
1317 (auto_language_data): Delete la_value_print_inner initializer.
1318 (auto_language::value_print_inner): New member function.
1319 * language.h (language_data): Delete la_value_print_inner field.
1320 (language_defn::value_print_inner): Delcare new member function.
1321 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1322 initializer.
1323 (m2_language::value_print_inner): New member function.
1324 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1325 initializer.
1326 * opencl-lang.c (opencl_language_data): Likewise.
1327 * p-lang.c (pascal_language_data): Likewise.
1328 (pascal_language::value_print_inner): New member function.
1329 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1330 initializer.
1331 (rust_language::value_print_inner): New member function.
1332 * valprint.c (do_val_print): Update call to value_print_inner.
1333
a1d1fa3e
AB
13342020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1335
1336 * ada-lang.c (ada_language_data): Delete la_value_print
1337 initializer.
1338 (ada_language::value_print): New member function.
1339 * c-lang.c (c_language_data): Delete la_value_print initializer.
1340 (cplus_language_data): Likewise.
1341 (asm_language_data): Likewise.
1342 (minimal_language_data): Likewise.
1343 * d-lang.c (d_language_data): Likewise.
1344 * f-lang.c (f_language_data): Likewise.
1345 * go-lang.c (go_language_data): Likewise.
1346 * language.c (unk_lang_value_print): Delete.
1347 (language_defn::value_print): Define new member function.
1348 (unknown_language_data): Delete la_value_print initializer.
1349 (unknown_language::value_print): New member function.
1350 (auto_language_data): Delete la_value_print initializer.
1351 (auto_language::value_print): New member function.
1352 * language.h (language_data): Delete la_value_print field.
1353 (language_defn::value_print): Declare new member function.
1354 (LA_VALUE_PRINT): Update call to value_print.
1355 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1356 * objc-lang.c (objc_language_data): Likewise.
1357 * opencl-lang.c (opencl_language_data): Likewise.
1358 * p-lang.c (pascal_language_data): Likewise.
1359 (pascal_language::value_print): New member function.
1360 * rust-lang.c (rust_language_data): Delete la_value_print
1361 initializer.
1362
f16a9f57
AB
13632020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1364
1365 * ada-lang.c (ada_watch_location_expression): Rename to
1366 ada_language::watch_location_expression.
1367 (ada_language_data): Delete la_watch_location_expression
1368 initializer.
1369 (ada_language::watch_location_expression): New member function,
1370 implementation from ada_watch_location_expression.
1371 * breakpoint.c (watch_command_1): Update call to
1372 watch_location_expression.
1373 * c-lang.c (c_watch_location_expression): Rename to
1374 language_defn::watch_location_expression.
1375 (c_language_data): Delete la_watch_location_expression
1376 initializer.
1377 (cplus_language_data): Likewise.
1378 (asm_language_data): Likewise.
1379 (minimal_language_data): Likewise.
1380 * c-lang.h (c_watch_location_expression): Delete declaration.
1381 * d-lang.c (d_language_data): Delete la_watch_location_expression
1382 initializer.
1383 * f-lang.c (f_language_data): Likewise.
1384 * go-lang.c (go_language_data): Likewise.
1385 * language.c (language_defn::watch_location_expression): Member
1386 function implementation from c_watch_location_expression.
1387 (unknown_language_data): Delete la_watch_location_expression
1388 initializer.
1389 (auto_language_data): Likewise.
1390 * language.h (language_data): Delete la_watch_location_expression
1391 field.
1392 (language_defn::watch_location_expression): Declare new member
1393 function.
1394 * m2-lang.c (m2_language_data): Delete
1395 la_watch_location_expression initializer.
1396 * objc-lang.c (objc_language_data): Likewise.
1397 * opencl-lang.c (opencl_language_data): Likewise.
1398 * p-lang.c (pascal_language_data): Likewise.
1399 * rust-lang.c (rust_watch_location_expression): Rename to
1400 rust_language::watch_location_expression.
1401 (rust_language_data): Delete la_watch_location_expression
1402 initializer.
1403 (rust_language::watch_location_expression): New member function,
1404 implementation from rust_watch_location_expression.
1405
7e56227d
AB
14062020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1407
1408 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1409 ada_language::collect_symbol_completion_matches.
1410 (ada_language_data): Delete la_collect_symbol_completion_matches
1411 initializer.
1412 (ada_language::collect_symbol_completion_matches): New member
1413 function, implementation from
1414 ada_collect_symbol_completion_matches.
1415 * c-lang.c (c_language_data): Delete
1416 la_collect_symbol_completion_matches initializer.
1417 (cplus_language_data): Likewise.
1418 (asm_language_data): Likewise.
1419 (minimal_language_data): Likewise.
1420 * d-lang.c (d_language_data): Likewise.
1421 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1422 f_language::collect_symbol_completion_matches.
1423 (f_language_data): Delete la_collect_symbol_completion_matches
1424 initializer.
1425 (f_language::collect_symbol_completion_matches) New member
1426 function, implementation from f_collect_symbol_completion_matches.
1427 * go-lang.c (go_language_data): Delete
1428 la_collect_symbol_completion_matches initializer.
1429 * language.c (unknown_language_data): Likewise.
1430 (auto_language_data): Likewise.
1431 * language.h (language_data): Delete
1432 la_collect_symbol_completion_matches field.
1433 (language_defn::collect_symbol_completion_matches): New member
1434 function.
1435 * m2-lang.c (m2_language_data): Delete
1436 la_collect_symbol_completion_matches initializer.
1437 * objc-lang.c (objc_language_data): Likewise.
1438 * opencl-lang.c (opencl_language_data): Likewise.
1439 * p-lang.c (pascal_language_data): Likewise.
1440 * rust-lang.c (rust_language_data): Likewise.
1441 * symtab.c (default_collect_symbol_completion_matches): Delete.
1442 (collect_symbol_completion_matches): Update call to
1443 collect_symbol_completion_matches.
1444 (collect_symbol_completion_matches_type): Likewise.
1445 * symtab.h (default_collect_symbol_completion_matches): Delete
1446 declaration.
1447
53fc67f8
AB
14482020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1449
1450 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1451 (ada_language_data): Delete la_word_break_characters initializer.
1452 (ada_language::word_break_characters): New member function.
1453 * c-lang.c (c_language_data): Delete la_word_break_characters
1454 initializer.
1455 (cplus_language_data): Likewise.
1456 (asm_language_data): Likewise.
1457 (minimal_language_data): Likewise.
1458 * completer.c: Update global comment.
1459 (advance_to_expression_complete_word_point): Update call to
1460 word_break_characters.
1461 (complete_files_symbols): Likewise.
1462 (complete_line_internal_1): Likewise.
1463 (default_completer_handle_brkchars): Likewise.
1464 (skip_quoted_chars): Likewise.
1465 * d-lang.c (d_language_data): Delete la_word_break_characters
1466 initializer.
1467 * f-lang.c (f_word_break_characters): Delete.
1468 (f_language_data): Delete la_word_break_characters initializer.
1469 (f_language::word_break_characters): New member function.
1470 * go-lang.c (go_language_data): Delete la_word_break_characters
1471 initializer.
1472 * language.c (unknown_language_data): Likewise.
1473 (auto_language_data): Likewise.
1474 * language.h (default_word_break_characters): Move declaration to
1475 earlier in the file.
1476 (language_data): Delete la_word_break_characters field.
1477 (language_defn::word_break_characters): New member function.
1478 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1479 initializer.
1480 * objc-lang.c (objc_language_data): Likewise.
1481 * opencl-lang.c (opencl_language_data): Likewise.
1482 * p-lang.c (pascal_language_data): Likewise.
1483 * rust-lang.c (rust_language_data): Likewise.
1484
c9debfb9
AB
14852020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1486
1487 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1488 (ada_language_data): Delete la_get_symbol_name_matcher
1489 initializer.
1490 (language_defn::get_symbol_name_matcher_inner): New member
1491 function.
1492 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1493 initializer.
1494 (cplus_language_data): Likewise.
1495 (cplus_language::get_symbol_name_matcher_inner): New member
1496 function.
1497 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1498 (minimal_language_data): Likewise.
1499 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1500 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1501 initializer.
1502 * dictionary.c (iter_match_first_hashed): Update call to
1503 get_symbol_name_matcher.
1504 (iter_match_next_hashed): Likewise.
1505 (iter_match_next_linear): Likewise.
1506 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1507 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1508 initializer.
1509 (f_language::get_symbol_name_matcher_inner): New member function.
1510 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1511 initializer.
1512 * language.c (default_symbol_name_matcher): Update header comment,
1513 make static.
1514 (language_defn::get_symbol_name_matcher): New definition.
1515 (language_defn::get_symbol_name_matcher_inner): Likewise.
1516 (get_symbol_name_matcher): Delete.
1517 (unknown_language_data): Delete la_get_symbol_name_matcher
1518 initializer.
1519 (auto_language_data): Likewise.
1520 * language.h (language_data): Delete la_get_symbol_name_matcher
1521 field.
1522 (language_defn::get_symbol_name_matcher): New member function.
1523 (language_defn::get_symbol_name_matcher_inner): Likewise.
1524 (default_symbol_name_matcher): Delete declaration.
1525 * linespec.c (find_methods): Update call to
1526 get_symbol_name_matcher.
1527 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1528 initializer.
1529 * minsyms.c (lookup_minimal_symbol): Update call to
1530 get_symbol_name_matcher.
1531 (iterate_over_minimal_symbols): Likewise.
1532 * objc-lang.c (objc_language_data): Delete
1533 la_get_symbol_name_matcher initializer.
1534 * opencl-lang.c (opencl_language_data): Likewise.
1535 * p-lang.c (pascal_language_data): Likewise.
1536 * psymtab.c (psymbol_name_matches): Update call to
1537 get_symbol_name_matcher.
1538 * rust-lang.c (rust_language_data): Delete
1539 la_get_symbol_name_matcher initializer.
1540 * symtab.c (symbol_matches_search_name): Update call to
1541 get_symbol_name_matcher.
1542 (compare_symbol_name): Likewise.
1543
9a49ad8c
AB
15442020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1545
1546 * ada-lang.c (ada_language_data): Delete la_compute_program
1547 initializer.
1548 * c-lang.c (c_language_data): Likewise.
1549 (c_language::compute_program): New member function.
1550 (cplus_language_data): Delete la_compute_program initializer.
1551 (cplus_language::compute_program): New member function.
1552 (asm_language_data): Delete la_compute_program initializer.
1553 (minimal_language_data): Likewise.
1554 * c-lang.h (c_compute_program): Update comment.
1555 (cplus_compute_program): Likewise.
1556 * compile/compile-c-support.c (c_compute_program): Likewise.
1557 (cplus_compute_program): Likewise.
1558 * compile/compile.c (compile_to_object): Update call to
1559 la_compute_program.
1560 * d-lang.c (d_language_data): Delete la_compute_program
1561 initializer.
1562 * f-lang.c (f_language_data): Likewise.
1563 * go-lang.c (go_language_data): Likewise.
1564 * language.c (unknown_language_data): Likewise.
1565 (auto_language_data): Likewise.
1566 * language.h (language_data): Delete la_compute_program field.
1567 (language_defn::compute_program): New member function.
1568 * m2-lang.c (m2_language_data): Delete la_compute_program
1569 initializer.
1570 * objc-lang.c (objc_language_data): Likewise.
1571 * opencl-lang.c (opencl_language_data): Likewise.
1572 * p-lang.c (pascal_language_data): Likewise.
1573 * rust-lang.c (rust_language_data): Likewise.
1574
eff93b4d
AB
15752020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1576
1577 * ada-lang.c (ada_language_data) Delete
1578 la_class_name_from_physname initializer.
1579 * c-lang.c (c_language_data): Likewise.
1580 (cplus_language_data): Likewise.
1581 (cplus_language::class_name_from_physname): New member function.
1582 (asm_language_data): Delete la_class_name_from_physname
1583 initializer.
1584 (minimal_language_data): Likewise.
1585 * d-lang.c (d_language_data): Likewise.
1586 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1587 method on language_defn class.
1588 (guess_full_die_structure_name): Likewise.
1589 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1590 initializer.
1591 * go-lang.c (go_language_data): Likewise.
1592 * language.c (language_class_name_from_physname): Delete.
1593 (unk_lang_class_name): Delete.
1594 (unknown_language_data): Delete la_class_name_from_physname
1595 initializer.
1596 (auto_language_data): Likewise.
1597 * language.h (language_data): Delete la_class_name_from_physname
1598 field.
1599 (language_defn::class_name_from_physname): New function.
1600 (language_class_name_from_physname): Delete declaration.
1601 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1602 initializer.
1603 * objc-lang.c (objc_language_data): Likewise.
1604 * opencl-lang.c (opencl_language_data): Likewise.
1605 * p-lang.c (pascal_language_data): Likewise.
1606 * rust-lang.c (rust_language_data): Likewise.
1607
de543742
TT
16082020-06-16 Tom Tromey <tom@tromey.com>
1609
1610 * tui/tui-data.h (STATUS_NAME): New macro.
1611 * tui/tui-layout.c (tui_remove_some_windows)
1612 (initialize_known_windows, tui_register_window)
1613 (tui_layout_split::remove_windows, initialize_layouts)
1614 (tui_new_layout_command): Don't use hard-coded window names.
1615
a350efd4
TT
16162020-06-16 Tom Tromey <tom@tromey.com>
1617
1618 PR tui/25348:
1619 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1620 tui_initialize_readline. Only run once. Call rl_initialize.
1621 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1622 tui_initialize_readline.
1623 * tui/tui-io.c (tui_setup_io): Call
1624 tui_ensure_readline_initialized.
1625 * tui/tui-interp.c (tui_interp::init): Update.
1626
39ec0490
TT
16272020-06-16 Tom Tromey <tom@tromey.com>
1628
1629 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1630 Also preserve the status window.
1631
d2d1ea20
TT
16322020-06-16 Tom Tromey <tom@tromey.com>
1633
1634 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1635 where m_window==nullptr.
1636
66920317
TT
16372020-06-15 Tom Tromey <tromey@adacore.com>
1638
1639 * windows-nat.c (windows_nat::handle_output_debug_string):
1640 Update.
1641 (windows_nat::handle_ms_vc_exception): Update.
1642 * target.h (target_read_string): Change API.
1643 * target.c (target_read_string): Change API.
1644 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1645 Update.
1646 * solib-frv.c (frv_current_sos): Update.
1647 * solib-dsbt.c (dsbt_current_sos): Update.
1648 * solib-darwin.c (darwin_current_sos): Update.
1649 * linux-thread-db.c (inferior_has_bug): Update.
1650 * expprint.c (print_subexp_standard): Update.
1651 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1652 (ada_exception_message_1): Update.
1653
a5d871dd
TT
16542020-06-15 Tom Tromey <tromey@adacore.com>
1655
1656 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1657
670e35fa
TT
16582020-06-15 Tom Tromey <tromey@adacore.com>
1659
1660 * valprint.c (read_string): Update comment.
1661 * target.c (MIN): Remove.
1662 (target_read_string): Rewrite.
1663
f5272a3b
TT
16642020-06-15 Tom Tromey <tromey@adacore.com>
1665
1666 * corefile.c (read_memory_string): Remove.
1667 * ada-valprint.c (ada_value_print_ptr): Update.
1668 * ada-lang.h (ada_tag_name): Change return type.
1669 * ada-lang.c (type_from_tag): Update.
1670 (ada_tag_name_from_tsd): Change return type. Use
1671 target_read_string.
1672 (ada_tag_name): Likewise.
1673 * gdbcore.h (read_memory_string): Don't declare.
1674
2c074f49
HD
16752020-06-14 Hannes Domani <ssbssa@yahoo.de>
1676
1677 * symtab.c (rbreak_command): Ignore Windows drive colon.
1678
6a17d503
SM
16792020-06-12 Simon Marchi <simon.marchi@efficios.com>
1680
1681 * NEWS: Mention removed GDBserver host support.
1682
453c733f
NC
16832020-06-12 Nelson Chu <nelson.chu@sifive.com>
1684
1685 * features/riscv/rebuild-csr-xml.sh: Updated.
1686
2b4e6a3f
TT
16872020-06-11 Tom Tromey <tom@tromey.com>
1688
1689 PR gdb/18318:
1690 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1691
4412332f
JG
16922020-06-09 Jonny Grant <jg@jguk.org>
16932020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1694
1695 * main.c (captured_main_1): Don't print new line after help.
1696 (print_gdb_help): add mailing list and IRC channel information
1697 to --help. Add new lines between items in the footer. Remove
1698 quotes around bug url.
1699
2f33032a
KS
17002020-06-11 Keith Seitz <keiths@redhat.com>
1701
1702 PR gdb/21356
1703 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1704 Resolve typedefs for type length calculations.
1705
7ab96794
TV
17062020-06-10 Tom de Vries <tdevries@suse.de>
1707
1708 PR ada/24713
1709 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1710 (write_psymbols): Enable .gdb_index for ada.
1711 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1712 ada.
1713
e5f3ece2
TV
17142020-06-10 Tom de Vries <tdevries@suse.de>
1715
1716 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1717 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1718 namei" instead of "const char *name" argument.
1719 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1720 dw2_symtab_iter_init.
1721
940da03e
SM
17222020-06-08 Simon Marchi <simon.marchi@efficios.com>
1723
1724 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1725 to use type::field and field::type instead.
1726
b6cdac4b
SM
17272020-06-08 Simon Marchi <simon.marchi@efficios.com>
1728
1729 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1730 to use field::type instead.
1731
5d14b6e5
SM
17322020-06-08 Simon Marchi <simon.marchi@efficios.com>
1733
1734 * gdbtypes.h (struct field) <type, set_type>: New methods.
1735 Rename `type` field to...
1736 <m_type>: ... this. Change references throughout to use type or
1737 set_type methods.
1738 (FIELD_TYPE): Use field::type. Change call sites that modify
1739 the field's type to use field::set_type instead.
1740
3d967001
SM
17412020-06-08 Simon Marchi <simon.marchi@efficios.com>
1742
1743 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1744 to use type::index_type instead.
1745
262abc0d
SM
17462020-06-08 Simon Marchi <simon.marchi@efficios.com>
1747
1748 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1749 methods.
1750 (TYPE_INDEX_TYPE): Use type::index_type.
1751 * gdbtypes.c (create_array_type_with_stride): Likewise.
1752
82836c92
TT
17532020-06-07 Tom Tromey <tom@tromey.com>
1754
1755 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1756 parameter.
1757 (generic_value_print): Update.
1758
940dace9
AB
17592020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1760
1761 Revert commit 982a38f60b0.
1762 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1763
982a38f6
AB
17642020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1765
1766 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1767 avoid use after free.
1768
82f06518
TV
17692020-06-05 Tom de Vries <tdevries@suse.de>
1770
1771 * NEWS: Fix typos.
1772
f8c41851
SM
17732020-06-04 Simon Marchi <simon.marchi@efficios.com>
1774
1775 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1776 the per_bfd object.
1777 (dwarf2_read_debug_names): Likewise.
1778 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1779 object when re-using a per_bfd object with an index.
1780
f9b5d5ea
TV
17812020-06-03 Tom de Vries <tdevries@suse.de>
1782
1783 PR symtab/26046
1784 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1785 children for C++.
1786 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1787 DW_TAG_subprogram.
1788
f6eee2d0
AB
17892020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1790
1791 * ada-lang.c (ada_language_data): Delete skip_trampoline
1792 initializer.
1793 * c-lang.c (c_language_data): Likewise.
1794 (cplus_language_data): Likewise.
1795 (cplus_language::skip_trampoline): New member function.
1796 (asm_language_data): Delete skip_trampoline initializer.
1797 (minimal_language_data): Likewise.
1798 * d-lang.c (d_language_data): Likewise.
1799 * f-lang.c (f_language_data): Likewise.
1800 * go-lang.c (go_language_data): Likewise.
1801 * language.c (unk_lang_trampoline): Delete function.
1802 (skip_language_trampoline): Update.
1803 (unknown_language_data): Delete skip_trampoline initializer.
1804 (auto_language_data): Likewise.
1805 * language.h (language_data): Delete skip_trampoline field.
1806 (language_defn::skip_trampoline): New function.
1807 * m2-lang.c (m2_language_data): Delete skip_trampoline
1808 initializer.
1809 * objc-lang.c (objc_skip_trampoline): Delete function, move
1810 implementation to objc_language::skip_trampoline.
1811 (objc_language_data): Delete skip_trampoline initializer.
1812 (objc_language::skip_trampoline): New member function with
1813 implementation from objc_skip_trampoline.
1814 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1815 initializer.
1816 * p-lang.c (pascal_language_data): Likewise.
1817 * rust-lang.c (rust_language_data): Likewise.
1818
0a50df5d
AB
18192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1820
1821 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1822 (ada_language::demangle): New member function.
1823 * c-lang.c (c_language_data): Delete la_demangle initializer.
1824 (cplus_language_data): Delete la_demangle initializer.
1825 (cplus_language::demangle): New member function.
1826 (asm_language_data): Delete la_demangle initializer.
1827 (minimal_language_data): Delete la_demangle initializer.
1828 * d-lang.c (d_language_data): Delete la_demangle initializer.
1829 (d_language::demangle): New member function.
1830 * f-lang.c (f_language_data): Delete la_demangle initializer.
1831 (f_language::demangle): New member function.
1832 * go-lang.c (go_language_data): Delete la_demangle initializer.
1833 (go_language::demangle): New member function.
1834 * language.c (language_demangle): Update.
1835 (unk_lang_demangle): Delete.
1836 (unknown_language_data): Delete la_demangle initializer.
1837 (unknown_language::demangle): New member function.
1838 (auto_language_data): Delete la_demangle initializer.
1839 (auto_language::demangle): New member function.
1840 * language.h (language_data): Delete la_demangle field.
1841 (language_defn::demangle): New function.
1842 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1843 * objc-lang.c (objc_language_data): Delete la_demangle
1844 initializer.
1845 (objc_language::demangle): New member function.
1846 * opencl-lang.c (opencl_language_data): Delete la_demangle
1847 initializer.
1848 * p-lang.c (pascal_language_data): Likewise.
1849 * rust-lang.c (rust_language_data): Likewise.
1850 (rust_language::demangle): New member function.
1851
fbfb0a46
AB
18522020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1853
1854 * ada-lang.c (ada_language_data): Delete la_print_type
1855 initializer.
1856 (ada_language::print_type): New member function.
1857 * c-lang.c (c_language_data): Delete la_print_type initializer.
1858 (c_language::print_type): New member function.
1859 (cplus_language_data): Delete la_print_type initializer.
1860 (cplus_language::print_type): New member function.
1861 (asm_language_data): Delete la_print_type initializer.
1862 (asm_language::print_type): New member function.
1863 (minimal_language_data): Delete la_print_type initializer.
1864 (minimal_language::print_type): New member function.
1865 * d-lang.c (d_language_data): Delete la_print_type initializer.
1866 (d_language::print_type): New member function.
1867 * f-lang.c (f_language_data): Delete la_print_type initializer.
1868 (f_language::print_type): New member function.
1869 * go-lang.c (go_language_data): Delete la_print_type initializer.
1870 (go_language::print_type): New member function.
1871 * language.c (unk_lang_print_type): Delete.
1872 (unknown_language_data): Delete la_print_type initializer.
1873 (unknown_language::print_type): New member function.
1874 (auto_language_data): Delete la_print_type initializer.
1875 (auto_language::print_type): New member function.
1876 * language.h (language_data): Delete la_print_type field.
1877 (language_defn::print_type): New function.
1878 (LA_PRINT_TYPE): Update.
1879 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1880 (m2_language::print_type): New member function.
1881 * objc-lang.c (objc_language_data): Delete la_print_type
1882 initializer.
1883 (objc_language::print_type): New member function.
1884 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1885 to opencl_language::print_type.
1886 (opencl_language_data): Delete la_print_type initializer.
1887 (opencl_language::print_type): New member function, implementation
1888 from opencl_print_type.
1889 * p-lang.c (pascal_language_data): Delete la_print_type
1890 initializer.
1891 (pascal_language::print_type): New member function.
1892 * rust-lang.c (rust_print_type): Delete, implementation moved to
1893 rust_language::print_type.
1894 (rust_language_data): Delete la_print_type initializer.
1895 (rust_language::print_type): New member function, implementation
1896 from rust_print_type.
1897
6f827019
AB
18982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1899
1900 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1901 implementation moves to...
1902 (ada_language::sniff_from_mangled_name): ...here. Update return
1903 type.
1904 (ada_language_data): Delete la_sniff_from_mangled_name
1905 initializer.
1906 * c-lang.c (c_language_data): Likewise.
1907 (cplus_language_data): Likewise.
1908 (cplus_language::sniff_from_mangled_name): New member function,
1909 implementation taken from gdb_sniff_from_mangled_name.
1910 (asm_language_data): Delete la_sniff_from_mangled_name
1911 initializer.
1912 (minimal_language_data): Likewise.
1913 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1914 implementation moves to cplus_language::sniff_from_mangled_name.
1915 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1916 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1917 moves to...
1918 (d_language::sniff_from_mangled_name): ...here.
1919 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1920 * f-lang.c (f_language_data): Likewise.
1921 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1922 moves to...
1923 (go_language::sniff_from_mangled_name): ...here.
1924 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1925 * language.c (language_sniff_from_mangled_name): Delete.
1926 (unknown_language_data): Delete la_sniff_from_mangled_name
1927 initializer.
1928 (auto_language_data): Likewise.
1929 * language.h (language_data): Delete la_sniff_from_mangled_name
1930 field.
1931 (language_defn::sniff_from_mangled_name): New function.
1932 (language_sniff_from_mangled_name): Delete declaration.
1933 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1934 field.
1935 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1936 implementation moves to...
1937 (objc_language::sniff_from_mangled_name): ...here.
1938 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1939 * opencl-lang.c (opencl_language_data): Likewise.
1940 * p-lang.c (pascal_language_data): Likewise.
1941 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1942 implementation moves to...
1943 (rust_language::sniff_from_mangled_name): ...here.
1944 (rust_language_data): Delete la_sniff_from_mangled_name
1945 initializer.
1946 * symtab.c (symbol_find_demangled_name): Call
1947 sniff_from_mangled_name member function.
1948
fb8006fd
AB
19492020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1950
1951 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1952 initializer.
1953 * c-lang.c (c_language_data): Likewise.
1954 (cplus_language_data): Likewise.
1955 (cplus_language::search_name_hash): New member function.
1956 (asm_language_data): Delete la_search_name_hash initializer.
1957 (minimal_language_data): Likewise.
1958 * d-lang.c (d_language_data): Likewise.
1959 * dictionary.c (default_search_name_hash): Rename to...
1960 (language_defn::search_name_hash): ...this.
1961 * f-lang.c (f_language_data): Likewise.
1962 (f_language::search_name_hash): New member function.
1963 * go-lang.c (go_language_data): Delete la_search_name_hash
1964 initializer.
1965 * language.c (unknown_language_data): Likewise.
1966 (auto_language_data): Likewise.
1967 * language.h (struct language_data): Delete la_search_name_hash
1968 field.
1969 (language_defn::search_name_hash): Declare new member function.
1970 (default_search_name_hash): Delete declaration.
1971 * m2-lang.c (m2_language_data): Delete la_search_name_hash
1972 initializer.
1973 * objc-lang.c (objc_language_data): Likewise.
1974 * opencl-lang.c (opencl_language_data): Likewise.
1975 * p-lang.c (pascal_language_data): Likewise.
1976 * rust-lang.c (rust_language_data): Likewise.
1977 * symtab.c (search_name_hash): Update call.
1978
8e25bafe
AB
19792020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1980
1981 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
1982 initializer.
1983 * c-lang.c (class compile_instance): Declare.
1984 (c_language_data): Delete la_get_compile_instance initializer.
1985 (c_language::get_compile_instance): New member function.
1986 (cplus_language_data): Delete la_get_compile_instance initializer.
1987 (cplus_language::get_compile_instance): New member function.
1988 (asm_language_data): Delete la_get_compile_instance initializer.
1989 (minimal_language_data): Likewise.
1990 * c-lang.h (c_get_compile_context): Update comment.
1991 (cplus_get_compile_context): Update comment.
1992 * compile/compile.c (compile_to_object): Update calls, don't rely
1993 on function pointer being NULL.
1994 * d-lang.c (d_language_data): Delete la_get_compile_instance
1995 initializer.
1996 * f-lang.c (f_language_data): Likewise.
1997 * go-lang.c (go_language_data): Likewise.
1998 * language.c (unknown_language_data): Likewise.
1999 (auto_language_data): Likewise.
2000 * language.h (language_data): Delete la_get_compile_instance field.
2001 (language_defn::get_compile_instance): New member function.
2002 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2003 initializer.
2004 * objc-lang.c (objc_language_data): Likewise.
2005 * opencl-lang.c (opencl_language_data): Likewise.
2006 * p-lang.c (pascal_language_data): Likewise.
2007 * rust-lang.c (rust_language_data): Likewise.
2008
4009ee92
AB
20092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2010
2011 * ada-lang.c (ada_add_all_symbols): Update comment.
2012 (ada_iterate_over_symbols): Delete, move implementation to...
2013 (ada_language::iterate_over_symbols): ...here, a new member
2014 function, rewrite to use range based for loop.
2015 (ada_language_data): Delete la_iterate_over_symbols initializer.
2016 * c-lang.c (c_language_data): Likewise.
2017 (cplus_language_data): Likewise.
2018 (asm_language_data): Likewise.
2019 (minimal_language_data): Likewise.
2020 * d-lang.c (d_language_data): Likewise.
2021 * f-lang.c (f_language_data): Likewise.
2022 * go-lang.c (go_language_data): Likewise.
2023 * language.c (unknown_language_data): Likewise.
2024 (auto_language_data): Likewise.
2025 * language.h (language_data): Delete la_iterate_over_symbols field.
2026 (language_defn::iterate_over_symbols): New member function.
2027 (LA_ITERATE_OVER_SYMBOLS): Update.
2028 * linespec.c (iterate_over_all_matching_symtabs): Update.
2029 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2030 initializer.
2031 * objc-lang.c (objc_language_data): Likewise.
2032 * opencl-lang.c (opencl_language_data): Likewise.
2033 * p-lang.c (pascal_language_data): Likewise.
2034 * rust-lang.c (rust_language_data): Likewise.
2035
54f4ca46
AB
20362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2037
2038 * ada-lang.c (ada_language_data): Delete
2039 la_lookup_transparent_type initializer.
2040 * c-lang.c (c_language_data): Likewise.
2041 (cplus_language_data): Likewise.
2042 (cplus_language::lookup_transparent_type): New member function.
2043 (asm_language_data): Delete la_lookup_transparent_type
2044 initializer.
2045 (minimal_language_data): Likewise.
2046 * d-lang.c (d_language_data): Likewise.
2047 * f-lang.c (f_language_data): Likewise.
2048 * go-lang.c (go_language_data): Likewise.
2049 * language.c (unknown_language_data): Likewise.
2050 (auto_language_data): Likewise.
2051 * language.h (struct language_data): Delete
2052 la_lookup_transparent_type field.
2053 (language_defn::lookup_transparent_type): New member function.
2054 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2055 initializer.
2056 * objc-lang.c (objc_language_data): Likewise.
2057 * opencl-lang.c (opencl_language_data): Likewise.
2058 * p-lang.c (pascal_language_data): Likewise.
2059 * rust-lang.c (rust_language_data): Likewise.
2060 * symtab.c (symbol_matches_domain): Update call.
2061
1fb314aa
AB
20622020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2063
2064 * ada-lang.c (ada_language_arch_info): Delete function, move
2065 implementation to...
2066 (ada_language::language_arch_info): ...here, a new member
2067 function.
2068 (ada_language_data): Delete la_language_arch_info.
2069 * c-lang.c (c_language_data): Likewise.
2070 (c_language::language_arch_info): New member function.
2071 (cplus_language_arch_info): Delete function, move
2072 implementation to...
2073 (cplus_language::language_arch_info): ...here, a new member
2074 function.
2075 (cplus_language_data): Delete la_language_arch_info.
2076 (asm_language_data): Likewise.
2077 (asm_language::language_arch_info): New member function.
2078 (minimal_language_data): Delete la_language_arch_info.
2079 (minimal_language::language_arch_info): New member function.
2080 * d-lang.c (d_language_arch_info): Delete function, move
2081 implementation to...
2082 (d_language::language_arch_info): ...here, a new member
2083 function.
2084 (d_language_data): Delete la_language_arch_info.
2085 * f-lang.c (f_language_arch_info): Delete function, move
2086 implementation to...
2087 (f_language::language_arch_info): ...here, a new member
2088 function.
2089 (f_language_data): Delete la_language_arch_info.
2090 * go-lang.c (go_language_arch_info): Delete function, move
2091 implementation to...
2092 (go_language::language_arch_info): ...here, a new member
2093 function.
2094 (go_language_data): Delete la_language_arch_info.
2095 * language.c (unknown_language_data): Likewise.
2096 (unknown_language::language_arch_info): New member function.
2097 (auto_language_data): Delete la_language_arch_info.
2098 (auto_language::language_arch_info): New member function.
2099 (language_gdbarch_post_init): Update call to
2100 la_language_arch_info.
2101 * language.h (language_data): Delete la_language_arch_info
2102 function pointer.
2103 (language_defn::language_arch_info): New function.
2104 * m2-lang.c (m2_language_arch_info): Delete function, move
2105 implementation to...
2106 (m2_language::language_arch_info): ...here, a new member
2107 function.
2108 (m2_language_data): Delete la_language_arch_info.
2109 * objc-lang.c (objc_language_arch_info): Delete function, move
2110 implementation to...
2111 (objc_language::language_arch_info): ...here, a new member
2112 function.
2113 (objc_language_data): Delete la_language_arch_info.
2114 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2115 implementation to...
2116 (opencl_language::language_arch_info): ...here, a new member
2117 function.
2118 (opencl_language_data): Delete la_language_arch_info.
2119 * p-lang.c (pascal_language_arch_info): Delete function, move
2120 implementation to...
2121 (pascal_language::language_arch_info): ...here, a new member
2122 function.
2123 (pascal_language_data): Delete la_language_arch_info.
2124 * rust-lang.c (rust_language_arch_info): Delete function, move
2125 implementation to...
2126 (rust_language::language_arch_info): ...here, a new member
2127 function.
2128 (rust_language_data): Delete la_language_arch_info.
2129
48448202
AB
21302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2131
2132 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2133 initializer.
2134 * c-lang.c (c_language_data): Likewise.
2135 (cplus_language_data): Likewise.
2136 (cplus_language::pass_by_reference_info): New method.
2137 (asm_language_data): Delete la_pass_by_reference initializer.
2138 (minimal_language_data): Likewise.
2139 * cp-abi.c (cp_pass_by_reference): Remove use of
2140 default_pass_by_reference.
2141 * d-lang.c (d_language_data): Likewise.
2142 * f-lang.c (f_language_data): Likewise.
2143 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2144 default_pass_by_reference.
2145 * go-lang.c (go_language_data): Likewise.
2146 * language.c (language_pass_by_reference): Update.
2147 (default_pass_by_reference): Delete.
2148 (unknown_language_data): Delete la_pass_by_reference
2149 initializer.
2150 (auto_language_data): Likewise.
2151 * language.h (struct language_data): Delete la_pass_by_reference
2152 field.
2153 (language_defn::pass_by_reference_info): New member function.
2154 (default_pass_by_reference): Delete declaration.
2155 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2156 initializer.
2157 * objc-lang.c (objc_language_data): Likewise.
2158 * opencl-lang.c (opencl_language_data): Likewise.
2159 * p-lang.c (pascal_language_data): Likewise.
2160 * rust-lang.c (rust_language_data): Likewise.
2161
15e5fd35
AB
21622020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2163
2164 * ada-lang.c (ada_read_var_value): Delete function, move
2165 implementation to...
2166 (ada_language::read_var_value): ...here.
2167 (ada_language_data): Delete la_read_var_value initializer.
2168 * c-lang.c (c_language_data): Likewise.
2169 (cplus_language_data): Likewise.
2170 (minimal_language_data): Likewise.
2171 * d-lang.c (d_language_data): Likewise.
2172 * f-lang.c (f_language_data): Likewise.
2173 * findvar.c (default_read_var_value): Rename to...
2174 (language_defn::read_var_value): ...this.
2175 * findvar.c (read_var_value): Update header comment, and change to
2176 call member function instead of function pointer.
2177 * go-lang.c (go_language_data): Likewise.
2178 * language.c (unknown_language_data): Delete la_read_var_value
2179 initializer.
2180 (auto_language_data): Likewise.
2181 * language.h (struct language_data): Delete la_read_var_value
2182 field.
2183 (language_defn::read_var_value): New member function.
2184 (default_read_var_value): Delete declaration.
2185 * m2-lang.c (m2_language_data): Delete la_read_var_value
2186 initializer.
2187 * objc-lang.c (objc_language_data): Likewise.
2188 * opencl-lang.c (opencl_language_data): Likewise.
2189 * p-lang.c (pascal_language_data): Likewise.
2190 * rust-lang.c (rust_language_data): Likewise.
2191 * value.h (default_read_var_value): Delete declaration.
2192
5bd40f2a
AB
21932020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2194
2195 * ada-lang.c (ada_print_array_index): Delete function, move
2196 implementation to...
2197 (ada_language::print_array_index): ...here.
2198 (ada_language_data): Delete la_print_array_index initializer.
2199 * c-lang.c (c_language_data): Likewise.
2200 (cplus_language_data): Likewise.
2201 (minimal_language_data): Likewise.
2202 * d-lang.c (d_language_data): Likewise.
2203 * f-lang.c (f_language_data): Likewise.
2204 * go-lang.c (go_language_data): Likewise.
2205 * language.c (default_print_array_index): Delete function, move
2206 implementation to...
2207 (language_defn::print_array_index): ...here.
2208 (unknown_language_data): Delete la_print_array_index initializer.
2209 (auto_language_data): Likewise.
2210 * language.h (struct language_data): Delete la_print_array_index
2211 field.
2212 (language_defn::print_array_index): New member function.
2213 (LA_PRINT_ARRAY_INDEX): Update.
2214 (default_print_array_index): Delete declaration.
2215 * m2-lang.c (m2_language_data): Delete la_print_array_index
2216 initializer.
2217 * objc-lang.c (objc_language_data): Likewise.
2218 * opencl-lang.c (opencl_language_data): Likewise.
2219 * p-lang.c (pascal_language_data): Likewise.
2220 * rust-lang.c (rust_language_data): Likewise.
2221
0874fd07
AB
22222020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2223
2224 * gdb/ada-lang.c (ada_language_defn): Convert to...
2225 (ada_language_data): ...this.
2226 (class ada_language): New class.
2227 (ada_language_defn): New static global.
2228 * gdb/c-lang.c (c_language_defn): Convert to...
2229 (c_language_data): ...this.
2230 (class c_language): New class.
2231 (c_language_defn): New static global.
2232 (cplus_language_defn): Convert to...
2233 (cplus_language_data): ...this.
2234 (class cplus_language): New class.
2235 (cplus_language_defn): New static global.
2236 (asm_language_defn): Convert to...
2237 (asm_language_data): ...this.
2238 (class asm_language): New class.
2239 (asm_language_defn): New static global.
2240 (minimal_language_defn): Convert to...
2241 (minimal_language_data): ...this.
2242 (class minimal_language): New class.
2243 (minimal_language_defn): New static global.
2244 * gdb/d-lang.c (d_language_defn): Convert to...
2245 (d_language_data): ...this.
2246 (class d_language): New class.
2247 (d_language_defn): New static global.
2248 * gdb/f-lang.c (f_language_defn): Convert to...
2249 (f_language_data): ...this.
2250 (class f_language): New class.
2251 (f_language_defn): New static global.
2252 * gdb/go-lang.c (go_language_defn): Convert to...
2253 (go_language_data): ...this.
2254 (class go_language): New class.
2255 (go_language_defn): New static global.
2256 * gdb/language.c (unknown_language_defn): Remove declaration.
2257 (current_language): Initialize to nullptr, real initialization is
2258 moved to _initialize_language.
2259 (languages): Delete global.
2260 (language_defn::languages): Define.
2261 (set_language_command): Use language_defn::languages.
2262 (set_language): Likewise.
2263 (range_error): Likewise.
2264 (language_enum): Likewise.
2265 (language_def): Likewise.
2266 (add_set_language_command): Use language_def::languages for the
2267 language list, and language_def to lookup language pointers.
2268 (skip_language_trampoline): Use language_defn::languages.
2269 (unknown_language_defn): Convert to...
2270 (unknown_language_data): ...this.
2271 (class unknown_language): New class.
2272 (unknown_language_defn): New static global.
2273 (auto_language_defn): Convert to...
2274 (auto_language_data): ...this.
2275 (class auto_language): New class.
2276 (auto_language_defn): New static global.
2277 (language_gdbarch_post_init): Use language_defn::languages.
2278 (_initialize_language): Initialize current_language.
2279 * gdb/language.h (struct language_defn): Rename to...
2280 (struct language_data): ...this.
2281 (struct language_defn): New.
2282 (auto_language_defn): Delete.
2283 (unknown_language_defn): Delete.
2284 (minimal_language_defn): Delete.
2285 (ada_language_defn): Delete.
2286 (asm_language_defn): Delete.
2287 (c_language_defn): Delete.
2288 (cplus_language_defn): Delete.
2289 (d_language_defn): Delete.
2290 (f_language_defn): Delete.
2291 (go_language_defn): Delete.
2292 (m2_language_defn): Delete.
2293 (objc_language_defn): Delete.
2294 (opencl_language_defn): Delete.
2295 (pascal_language_defn): Delete.
2296 (rust_language_defn): Delete.
2297 * gdb/m2-lang.c (m2_language_defn): Convert to...
2298 (m2_language_data): ...this.
2299 (class m2_language): New class.
2300 (m2_language_defn): New static global.
2301 * gdb/objc-lang.c (objc_language_defn): Convert to...
2302 (objc_language_data): ...this.
2303 (class objc_language): New class.
2304 (objc_language_defn): New static global.
2305 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2306 (opencl_language_data): ...this.
2307 (class opencl_language): New class.
2308 (opencl_language_defn): New static global.
2309 * gdb/p-lang.c (pascal_language_defn): Convert to...
2310 (pascal_language_data): ...this.
2311 (class pascal_language): New class.
2312 (pascal_language_defn): New static global.
2313 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2314 language pointer, update comment format.
2315 * gdb/rust-lang.c (rust_language_defn): Convert to...
2316 (rust_language_data): ...this.
2317 (class rust_language): New class.
2318 (rust_language_defn): New static global.
2319
1313c56e
AB
23202020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2321
2322 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2323 member variable.
2324 <m_stmt_at_address>: New member variable.
2325 (lnp_state_machine::record_line): Don't record some lines, update
2326 tracking of is_stmt at the same address.
2327 (lnp_state_machine::lnp_state_machine): Initialise new member
2328 variables.
2329
b7ed9f3d
ST
23302020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2331
2332 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2333 "-include gnu-nat-mig.h".
2334 * gnu-nat-mig.h: New file.
2335 * gnu-nat.c: Include "gnu-nat-mig.h".
2336 (exc_server, msg_reply_server, notify_server,
2337 process_reply_server): Remove declarations.
2338
14a8ad62
ST
23392020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2340
2341 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2342 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2343 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2344 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2345 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2346 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2347 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2348 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2349 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2350 to gnu_nat_target class.
2351 * gnu-nat.c: Likewise.
2352 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2353 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2354 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2355 object.
2356 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2357 instead of `gnu_target'.
2358
0af5e106
ST
23592020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2360
2361 * i386-gnu-tdep.c: Include "gdbcore.h"
2362 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2363 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2364 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2365 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2366 i386_gnu_sigcontext_addr): New functions
2367 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2368 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2369 tdep.
2370
078f2fc9
ST
23712020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2372
2373 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2374 before fork_inferior call. Avoid calling it if target_is_pushed returns
2375 true.
2376
53dff92c
ST
23772020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2378
2379 * gnu-nat.h (gnu_target): New variable declaration.
2380 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2381 gnu_target.
2382 * gnu-nat.c (gnu_target): New variable.
2383 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2384 add_thread_silent, and add_thread calls.
2385 (gnu_nat_target::create_inferior): Pass gnu_target to
2386 add_thread_silent, thread_change_ptid call.
2387 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2388 call.
2389
5a8b8627
ST
23902020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2391
2392 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2393 (gnu_nat_target::find_memory_regions): Remove unused
2394 `old_address' variable.
2395
366f550a
ST
23962020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2397
2398 * gnu-nat.c: Include "gdbarch.h".
2399
f14871bf
ST
24002020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2401
2402 * reply_mig_hack.awk (Error return): Cast function through
2403 void *, to bypass compiler function call check.
2404
c6887cfb
ST
24052020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2406
2407 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2408 $(srcdir)/reply_mig_hack.awk.
2409
6930bffe
ST
24102020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2411
2412 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2413
112c22ed
JG
24142020-05-30 Jonny Grant <jg@jguk.org>
2415
2416 * configure.ac (ACX_BUGURL): change bug URL to https.
2417
f68f85b5
PA
24182020-05-30 Pedro Alves <palves@redhat.com>
2419
2420 * cp-support.c (replace_typedefs_template): New.
2421 (replace_typedefs_qualified_name): Handle
2422 DEMANGLE_COMPONENT_TEMPLATE.
2423
976ca316
SM
24242020-05-29 Simon Marchi <simon.marchi@efficios.com>
2425
2426 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2427 dwarf2/index-cache.h, dwarf2/index-write.c,
2428 dwarf2/index-write.h, dwarf2/line-header.c,
2429 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2430 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2431 variables and fields from `dwarf2_per_objfile` to just
2432 `per_objfile` throughout.
2433
989ade05
SM
24342020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2435
2436 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2437 <push_dwarf_reg_entry_value>: Add comment.
2438
c47bae85
KB
24392020-05-28 Kevin Buettner <kevinb@redhat.com>
2440 Keith Seitz <keiths@redhat.com>
2441
2442 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2443 instead of PyEval_ReleaseLock.
2444 (class gdbpy_gil): Move to earlier in file.
2445 (finalize_python): Set gdb_python_initialized.
2446 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2447 when not initialized.
2448
44486dcf
SM
24492020-05-28 Simon Marchi <simon.marchi@efficios.com>
2450
2451 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2452 <push_dwarf_reg_entry_value>: Remove assert. Override
2453 per_objfile with caller_per_objfile.
2454
f030440d
TV
24552020-05-28 Tom de Vries <tdevries@suse.de>
2456
2457 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2458 PR gold/15646 workaround to symbol kind "type".
2459
f0fbb768
TT
24602020-05-27 Tom Tromey <tromey@adacore.com>
2461
2462 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2463
af0b2a3e
TT
24642020-05-27 Tom Tromey <tromey@adacore.com>
2465
2466 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2467 Use htab_find_with_hash.
2468 <add_abbrev>: Remove "abbrev_number" parameter.
2469 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2470 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2471 (hash_abbrev): Add comment.
2472 (abbrev_table::lookup_abbrev): Move to header file.
2473 (abbrev_table::read): Update.
2474
7d00ffec
TT
24752020-05-27 Tom Tromey <tromey@adacore.com>
2476
2477 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2478 method.
2479 <canonical_name>: New member.
2480 <raw_name>: Rename from "name".
2481 (partial_die_info): Initialize canonical_name.
2482 (scan_partial_symbols): Check raw_name.
2483 (partial_die_parent_scope, partial_die_full_name)
2484 (add_partial_symbol, add_partial_subprogram)
2485 (add_partial_enumeration, load_partial_dies): Use "name" method.
2486 (partial_die_info::name): New method.
2487 (partial_die_info::read, guess_partial_die_structure_name)
2488 (partial_die_info::fixup): Update.
2489
697bba18
TT
24902020-05-27 Tom Tromey <tromey@adacore.com>
2491
2492 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2493 <get_ref_die_offset>: Inline.
2494 <get_ref_die_offset_complaint>: New method.
2495 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2496 (attribute::get_ref_die_offset_complaint): Rename from
2497 get_ref_die_offset. Just issue complaint.
2498
c17ace43
HD
24992020-05-27 Hannes Domani <ssbssa@yahoo.de>
2500
2501 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2502
96445f0b
HD
25032020-05-27 Hannes Domani <ssbssa@yahoo.de>
2504
2505 * exec.c (exec_file_attach): Use errno value of first openp failure.
2506
ac637ec3
HD
25072020-05-27 Hannes Domani <ssbssa@yahoo.de>
2508
2509 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2510 Don't close thread handle.
2511
17ee85fc
TT
25122020-05-27 Tom Tromey <tom@tromey.com>
2513 Simon Marchi <simon.marchi@efficios.com>
2514
2515 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2516 shared_ptr.
2517 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2518 member.
2519 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2520 dwarf2_per_bfd_objfile_data_key>: New globals.
2521 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2522 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2523 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2524 shared.
2525 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2526 short-circuit when sharing.
2527 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2528 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2529
39b16f87
SM
25302020-05-27 Simon Marchi <simon.marchi@efficios.com>
2531
2532 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2533 to...
2534 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2535 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2536
fcf23d5b
SM
25372020-05-27 Simon Marchi <simon.marchi@efficios.com>
2538
2539 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2540 build_name_components, find_name_components_bounds>:
2541 Add per_objfile parameter.
2542 (struct mapped_index) <symbol_name_at>: Likewise.
2543 (struct mapped_debug_names): Remove constructor.
2544 <dwarf2_per_objfile>: Remove field.
2545 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2546 (mapped_index_base::find_name_components_bounds,
2547 mapped_index_base::build_name_components,
2548 dw2_expand_symtabs_matching_symbol): Likewise.
2549 (class mock_mapped_index) <symbol_name_at>: Likewise.
2550 (check_match): Likewise.
2551 (check_find_bounds_finds): Likewise.
2552 (test_mapped_index_find_name_component_bounds): Update.
2553 (CHECK_MATCH): Update.
2554 (dw2_expand_symtabs_matching): Update.
2555 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2556 per_objfile parameter.
2557 <find_vec_in_debug_names>: Likewise.
2558 <m_per_objfile>: New field.
2559 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2560 parameter.
2561 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2562 (dw2_debug_names_iterator::next): Update.
2563 (dw2_debug_names_lookup_symbol): Update.
2564 (dw2_debug_names_expand_symtabs_for_function): Update.
2565 (dw2_debug_names_map_matching_symbols): Update.
2566 (dw2_debug_names_expand_symtabs_matching): Update.
2567 (dwarf2_read_debug_names): Update.
2568
7188ed02
SM
25692020-05-27 Simon Marchi <simon.marchi@efficios.com>
2570
2571 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2572 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2573 move to dwarf2_per_objfile.
2574 <read_in_chain>: Remove.
2575 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2576 remove_all_cus, age_comp_units>: New methods.
2577 <m_dwarf2_cus>: New member.
2578 (struct dwarf2_per_cu_data) <cu>: Remove.
2579 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2580 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2581 moved to methods of dwarf2_per_objfile.
2582 (dwarf2_clear_marks): Remove.
2583 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2584 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2585 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2586 (dwarf2_per_objfile::remove_all_cus): New.
2587 (class free_cached_comp_units) <~free_cached_comp_units>:
2588 Update.
2589 (load_cu): Update.
2590 (dw2_do_instantiate_symtab): Adjust.
2591 (fill_in_sig_entry_from_dwo_entry): Adjust.
2592 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2593 (cutu_reader::cutu_reader): Likewise.
2594 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2595 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2596 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2597 and dwarf2_per_objfile::age_comp_units.
2598 (load_partial_comp_unit): Update.
2599 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2600 (process_queue): Likewise.
2601 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2602 backlink.
2603 (dwarf2_read_addr_index): Likewise.
2604 (follow_die_offset): Likewise.
2605 (dwarf2_fetch_die_loc_sect_off): Likewise.
2606 (dwarf2_fetch_constant_bytes): Likewise.
2607 (dwarf2_fetch_die_type_sect_off): Likewise.
2608 (follow_die_sig_1): Likewise.
2609 (load_full_type_unit): Likewise.
2610 (read_signatured_type): Likewise.
2611 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2612 (dwarf2_cu::~dwarf2_cu): Remove.
2613 (dwarf2_per_objfile::get_cu): New.
2614 (dwarf2_per_objfile::set_cu): New.
2615 (age_cached_comp_units): Rename to...
2616 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2617 to std::unordered_map.
2618 (free_one_cached_comp_unit): Rename to...
2619 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2620 to std::unordered_map.
2621 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2622 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2623 a dwarf2_per_objfile in data.
2624 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2625 (dwarf2_clear_marks): Remove.
2626
2e671100
SM
26272020-05-27 Simon Marchi <simon.marchi@efficios.com>
2628
2629 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2630 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2631 (init_tu_and_read_dwo_dies): Likewise.
2632 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2633 (cutu_reader::cutu_reader): Likewise.
2634 (load_partial_comp_unit): Likewise.
2635 (process_psymtab_comp_unit): Update.
2636 (build_type_psymtabs_1): Update.
2637 (process_skeletonless_type_unit): Update.
2638 (load_full_comp_unit): Update.
2639 (find_partial_die): Update.
2640 (dwarf2_read_addr_index): Update.
2641 (read_signatured_type): Update.
2642
2e6a9f79
SM
26432020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2644
2645 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2646 m_header_read_in>: New fields.
2647 <get_header>: New method.
2648 * dwarf2/read.c (per_cu_header_read_in): Remove.
2649 (dwarf2_per_cu_data::get_header): New.
2650 (dwarf2_per_cu_data::addr_size): Update.
2651 (dwarf2_per_cu_data::offset_size): Update.
2652 (dwarf2_per_cu_data::ref_addr_size): Update.
2653
1b555f17
SM
26542020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2655
2656 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2657 (dw2_do_instantiate_symtab): Update.
2658 (queue_and_load_all_dwo_tus): Change parameter from
2659 dwarf2_per_cu_data to dwarf2_cu.
2660 (dwarf2_fetch_die_loc_sect_off): Update.
2661 (dwarf2_fetch_constant_bytes): Update.
2662 (dwarf2_fetch_die_type_sect_off): Update.
2663
8fc0b21d
SM
26642020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2665
2666 * dwarf2/read.c (process_full_comp_unit,
2667 process_full_type_unit): Remove per_cu, per_objfile paramters.
2668 Add dwarf2_cu parameter.
2669 (process_queue): Update.
2670
168c9250
SM
26712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2672
2673 * dwarf2/read.c (create_cu_from_index_list): Replace
2674 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2675 (create_cus_from_index_list): Likewise.
2676 (create_cus_from_index): Likewise.
2677 (create_signatured_type_table_from_index): Likewise.
2678 (create_cus_from_debug_names_list): Likewise.
2679 (create_cus_from_debug_names): Likewise.
2680 (dwarf2_read_gdb_index): Update.
2681 (dwarf2_read_debug_names): Update.
2682
e286671b
TT
26832020-05-27 Tom Tromey <tom@tromey.com>
2684 Simon Marchi <simon.marchi@efficios.com>
2685
2686 * dwarf2/read.h (struct dwarf2_per_objfile)
2687 <get_type_for_signatured_type, set_type_for_signatured_type>:
2688 New methods.
2689 <m_type_map>: New member.
2690 (struct signatured_type) <type>: Remove.
2691 * dwarf2/read.c
2692 (dwarf2_per_objfile::get_type_for_signatured_type,
2693 dwarf2_per_objfile::set_type_for_signatured_type): New.
2694 (get_signatured_type): Use new methods.
2695
8adb8487
TT
26962020-05-27 Tom Tromey <tom@tromey.com>
2697 Simon Marchi <simon.marchi@efficios.com>
2698
2699 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2700 (struct dwarf2_per_objfile) <type_units>: New member.
2701 <get_type_unit_group_unshareable>: New method.
2702 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2703 num_symtabs, symtabs>: Remove; move to
2704 type_unit_group_unshareable.
2705 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2706 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2707 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2708
127bbf4b
SM
27092020-05-27 Simon Marchi <simon.marchi@efficios.com>
2710
2711 * dwarf2/read.h (struct dwarf2_per_cu_data):
2712 <dwarf2_per_objfile>: Remove.
2713 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2714 dwarf2_per_objfile.
2715 (create_signatured_type_table_from_index): Likewise.
2716 (create_signatured_type_table_from_debug_names): Likewise.
2717 (create_debug_type_hash_table): Likewise.
2718 (fill_in_sig_entry_from_dwo_entry): Likewise.
2719 (create_type_unit_group): Likewise.
2720 (read_comp_units_from_section): Likewise.
2721 (create_cus_hash_table): Likewise.
2722
f6e649dd
SM
27232020-05-27 Simon Marchi <simon.marchi@efficios.com>
2724
2725 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2726 dwarf2_per_cu_data::dwarf2_per_objfile.
2727 (compute_compunit_symtab_includes): Likewise.
2728 (dwarf2_cu::start_symtab): Likewise.
2729
aa66c379
SM
27302020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2731
2732 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2733 parameter.
2734 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2735 (read_namespace_alias): Update.
2736 (lookup_die_type): Update.
2737 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2738 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2739 Update.
2740 (disassemble_dwarf_expression): Update.
2741
120ce1b5
SM
27422020-05-27 Simon Marchi <simon.marchi@efficios.com>
2743
2744 * dwarf2/read.h (struct dwarf2_queue_item): Add
2745 dwarf2_per_objfile parameter, assign new parameter.
2746 <per_objfile>: New field.
2747 * dwarf2/read.c (free_one_cached_comp_unit): Add
2748 dwarf2_per_objfile parameter.
2749 (queue_comp_unit): Likewise.
2750 (dw2_do_instantiate_symtab): Update.
2751 (process_psymtab_comp_unit): Update.
2752 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2753 (process_imported_unit_die): Update.
2754 (queue_and_load_dwo_tu): Update.
2755 (follow_die_offset): Update.
2756 (follow_die_sig_1): Update.
2757
9f47c707
SM
27582020-05-27 Simon Marchi <simon.marchi@efficios.com>
2759
2760 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2761 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2762 (read_call_site_scope): Assign per_objfile.
2763 (dwarf2_per_cu_data::objfile): Remove.
2764 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2765 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2766 dwarf2_per_objfile parameter.
2767 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2768 dwarf2_per_objfile parameter.
2769 (dwarf_expr_reg_to_entry_parameter): Add output
2770 dwarf2_per_objfile parameter.
2771 (locexpr_get_frame_base): Update.
2772 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2773 <push_dwarf_reg_entry_value>: Update.
2774 <call_site_to_target_addr>: Update.
2775 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2776 parameter.
2777 (value_of_dwarf_reg_entry): Update.
2778 (rw_pieced_value): Update.
2779 (indirect_synthetic_pointer): Update.
2780 (dwarf2_evaluate_property): Update.
2781 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2782 parameter.
2783 (locexpr_read_variable): Update.
2784 (locexpr_get_symbol_read_needs): Update.
2785 (loclist_read_variable): Update.
2786
14095eb3
SM
27872020-05-27 Simon Marchi <simon.marchi@efficios.com>
2788
2789 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2790 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2791 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2792 parameter.
2793 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2794 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2795 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2796 parameter.
2797 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2798 sect_variable_value): Add dwarf2_per_objfile parameter.
2799 (class dwarf_evaluate_loc_desc) <dwarf_call,
2800 dwarf_variable_value>: Update.
2801 (fetch_const_value_from_synthetic_pointer): Add
2802 dwarf2_per_objfile parameter.
2803 (fetch_const_value_from_synthetic_pointer): Update.
2804 (coerced_pieced_ref): Update.
2805 (class symbol_needs_eval_context) <dwarf_call,
2806 dwarf_variable_value>: Update.
2807 (dwarf2_compile_expr_to_ax): Update.
2808
3c3cd3d4
SM
28092020-05-27 Simon Marchi <simon.marchi@efficios.com>
2810
2811 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2812 parameter.
2813 (dwarf2_evaluate_loc_desc_full): Update.
2814
82ca3f51
SM
28152020-05-27 Simon Marchi <simon.marchi@efficios.com>
2816
2817 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2818 parameter.
2819 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2820 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2821 dwarf2_per_objfile parameter.
2822 (decode_debug_loc_dwo_addresses): Likewise.
2823 (dwarf2_find_location_expression): Update.
2824 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2825 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2826 parameter.
2827 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2828 parameter.
2829 (locexpr_describe_location_1): Likewise.
2830 (locexpr_describe_location): Update.
2831
4b167ea1
SM
28322020-05-27 Simon Marchi <simon.marchi@efficios.com>
2833
2834 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2835 Remove.
2836 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2837 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2838 (dwarf2_compile_property_to_c): Update.
2839 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2840 use text offset from objfile.
2841 (locexpr_tracepoint_var_ref): Update.
2842 (locexpr_generate_c_location): Update.
2843 (loclist_describe_location): Update.
2844 (loclist_tracepoint_var_ref): Update.
2845 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2846 dwarf2_per_objfile parameter.
2847 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2848 use text offset from objfile.
2849 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2850
89b07335
SM
28512020-05-27 Simon Marchi <simon.marchi@efficios.com>
2852
2853 * dwarf2/expr.h (struct dwarf_expr_context)
2854 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2855 <offset>: Remove.
2856 <per_objfile>: New member.
2857 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2858 dwarf2_per_objfile parameter. Don't set offset, set
2859 per_objfile.
2860 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2861 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2862 a dwarf2_per_objfile object instead of an offset.
2863 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2864 constructor.
2865 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2866 to dwarf2_expr_executor constructor. Don't set offset.
2867 (dwarf2_fetch_cfa_info): Update.
2868 (struct dwarf2_frame_cache) <text_offset>: Remove.
2869 <per_objfile>: New field.
2870 (dwarf2_frame_cache): Update.
2871 (dwarf2_frame_prev_register): Update.
2872 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2873 <dwarf_evaluate_loc_desc>: Add constructor.
2874 (dwarf2_evaluate_loc_desc_full): Update.
2875 (dwarf2_locexpr_baton_eval): Update.
2876 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2877 Add constructor.
2878 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2879
293e7e51
SM
28802020-05-27 Simon Marchi <simon.marchi@efficios.com>
2881
2882 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2883 addr_sized_int_type>: Move to dwarf2_cu.
2884 <int_type>: Move to dwarf2_per_objfile.
2885 (struct dwarf2_per_objfile) <int_type>: Move here.
2886 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2887 addr_sized_int_type>: Move here.
2888 (read_func_scope): Update.
2889 (read_array_type): Update.
2890 (read_tag_string_type): Update.
2891 (attr_to_dynamic_prop): Update.
2892 (dwarf2_per_cu_data::int_type): Rename to...
2893 (dwarf2_per_objfile::int_type): ... this.
2894 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2895 (dwarf2_cu::addr_sized_int_type): ... this.
2896 (read_subrange_type): Update.
2897 (dwarf2_per_cu_data::addr_type): Rename to...
2898 (dwarf2_cu::addr_type): ... this.
2899 (set_die_type): Update.
2900
64874a40
SM
29012020-05-27 Simon Marchi <simon.marchi@efficios.com>
2902
2903 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2904 data through per_cu->cu.
2905
4ab09049
SM
29062020-05-27 Simon Marchi <simon.marchi@efficios.com>
2907
2908 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2909 dwarf2_per_cu_data parameter fo dwarf2_cu.
2910 (lookup_dwo_type_unit): Likewise.
2911 (read_cutu_die_from_dwo): Likewise.
2912 (lookup_dwo_unit): Likewise.
2913 (open_and_init_dwo_file): Likewise.
2914 (lookup_dwo_cutu): Likewise.
2915 (lookup_dwo_comp_unit): Likewise.
2916 (lookup_dwo_type_unit): Likewise.
2917 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2918 (cutu_reader::cutu_reader): Update.
2919
47b14e86
SM
29202020-05-27 Simon Marchi <simon.marchi@efficios.com>
2921
2922 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2923 parameter.
2924 (process_full_type_unit): Likewise.
2925 (process_queue): Update.
2926
43182c09
SM
29272020-05-27 Simon Marchi <simon.marchi@efficios.com>
2928
2929 * dwarf2/read.c (recursively_compute_inclusions): Add
2930 dwarf2_per_objfile parameter.
2931 (compute_compunit_symtab_includes): Likewise.
2932 (process_cu_includes): Update.
2933
7aa104c4
SM
29342020-05-27 Simon Marchi <simon.marchi@efficios.com>
2935
2936 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2937 parameter.
2938 (create_type_unit_group): Update.
2939 (process_psymtab_comp_unit_reader): Update.
2940 (build_type_psymtabs_reader): Update.
2941
e3beb21d
SM
29422020-05-27 Simon Marchi <simon.marchi@efficios.com>
2943
2944 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2945 object through m_this_cu->cu.
2946
d460f660
SM
29472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2948
2949 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2950 the info parameter.
2951 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2952
ab432490
SM
29532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2954
2955 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2956 per_objfile parameter.
2957 (load_full_type_unit): Add per_objfile parameter.
2958 (read_signatured_type): Likewise.
2959 (load_full_comp_unit): Likewise.
2960 (load_cu): Likewise.
2961 (dw2_do_instantiate_symtab): Likewise.
2962 (dw2_get_file_names): Likewise.
2963 (dw2_map_symtabs_matching_filename): Update.
2964 (dw_expand_symtabs_matching_file_matcher): Update.
2965 (dw2_map_symbol_filenames): Update.
2966 (process_psymtab_comp_unit): Add per_objfile parameter.
2967 (build_type_psymtabs_1): Update.
2968 (process_skeletonless_type_unit): Update.
2969 (dwarf2_build_psymtabs_hard): Update.
2970 (load_partial_comp_unit): Add per_objfile parameter.
2971 (scan_partial_symbols): Update.
2972 (load_full_comp_unit): Add per_objfile parameter.
2973 (process_imported_unit_die): Update.
2974 (create_cus_hash_table): Update.
2975 (find_partial_die): Update.
2976 (dwarf2_read_addr_index): Update.
2977 (follow_die_offset): Update.
2978 (dwarf2_fetch_die_loc_sect_off): Update.
2979 (dwarf2_fetch_constant_bytes): Update.
2980 (dwarf2_fetch_die_type_sect_off): Update.
2981 (follow_die_sig_1): Update.
2982 (load_full_type_unit): Add per_objfile parameter.
2983 (read_signatured_type): Likewise.
2984
313bad1b
SM
29852020-05-27 Simon Marchi <simon.marchi@efficios.com>
2986
2987 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
2988 of objfile_name.
2989
c3699833
SM
29902020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2991
2992 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
2993 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2994 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
2995 field.
2996 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2997 (create_cus_from_index): Update.
2998 (dwarf2_read_gdb_index): Update.
2999 (create_cus_from_debug_names): Update.
3000 (dwarf2_read_debug_names): Update.
3001 (get_abbrev_section_for_cu): Update.
3002 (create_all_comp_units): Update.
3003 (read_attribute_value): Update.
3004 (get_debug_line_section): Update.
3005 * dwarf2/index-cache.c (index_cache::store): Update.
3006 * dwarf2/index-write.c (save_gdb_index_command): Update.
3007 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3008
1859c670
SM
30092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3010
3011 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3012 member.
3013 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3014 dwarf2_per_cu_data::per_bfd.
3015 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3016 (create_type_unit_group): Likewise.
3017 (queue_comp_unit): Remove reference to
3018 per_cu->dwarf2_per_objfile.
3019 (maybe_queue_comp_unit): Likewise.
3020 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3021 (create_cus_hash_table): Assign new field.
3022
5e22e966
SM
30232020-05-27 Simon Marchi <simon.marchi@efficios.com>
3024
3025 * dwarf2/read.c: Replace
3026 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3027 dwarf2_cu->per_objfile throughout.
3028
97a1449a
SM
30292020-05-27 Simon Marchi <simon.marchi@efficios.com>
3030
3031 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3032 parameter, don't use per_cu->dwarf2_per_objfile.
3033 (dw2_instantiate_symtab): Likewise.
3034 (dw2_find_last_source_symtab): Update.
3035 (dw2_map_expand_apply): Update.
3036 (dw2_lookup_symbol): Update.
3037 (dw2_expand_symtabs_for_function): Update.
3038 (dw2_expand_all_symtabs): Update.
3039 (dw2_expand_symtabs_with_fullname): Update.
3040 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3041 don't use per_cu->dwarf2_per_objfile.
3042 (dw2_expand_marked_cus): Update.
3043 (dw2_find_pc_sect_compunit_symtab): Update.
3044 (dw2_debug_names_lookup_symbol): Update.
3045 (dw2_debug_names_expand_symtabs_for_function): Update.
3046 (dw2_debug_names_map_matching_symbols): Update.
3047 (dwarf2_psymtab::expand_psymtab): Update.
3048
9e021579
SM
30492020-05-27 Simon Marchi <simon.marchi@efficios.com>
3050
3051 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3052 <per_objfile>: New member.
3053 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3054 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3055 call to dwarf2_cu.
3056 (cutu_reader::cutu_reader): Update.
3057 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3058
ae090bdb
SM
30592020-05-27 Simon Marchi <simon.marchi@efficios.com>
3060
3061 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3062 struct dwarf2_per_objfile.
3063 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3064 dwarf2_per_bfd.
3065 * dwarf2/read.c (set_die_type): Update.
3066 (get_die_type_at_offset): Update.
3067
af758d11
SM
30682020-05-27 Tom Tromey <tom@tromey.com>
3069 Simon Marchi <simon.marchi@efficios.com>
3070
3071 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3072 method.
3073 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3074 get_symtab, set_symtab>: New methods.
3075 <m_symtabs>: New field.
3076 (struct dwarf2_psymtab): Derive from partial_symtab.
3077 <readin_p, get_compunit_symtab>: Declare methods.
3078 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3079 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3080 New methods.
3081 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3082 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3083 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3084 (dw2_symtab_iter_next, dw2_print_stats)
3085 (dw2_expand_symtabs_with_fullname)
3086 (dw2_expand_symtabs_matching_one)
3087 (dw_expand_symtabs_matching_file_matcher)
3088 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3089 (dw2_debug_names_iterator::next)
3090 (dw2_debug_names_map_matching_symbols)
3091 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3092 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3093 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3094 New methods.
3095 (get_compunit_symtab, process_full_comp_unit)
3096 (process_full_type_unit): Update.
3097 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3098
5989a64e
SM
30992020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3100
3101 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3102 then introduce a new dwarf2_per_objfile type.
3103 <read_line_string>: Move to the new dwarf2_per_objfile type.
3104 <objfile>: Likewise.
3105 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3106 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3107 dwarf2_per_objfile->per_bfd.
3108 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3109 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3110 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3111 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3112 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3113 (dwarf2_per_objfile::locate_sections): Rename to...
3114 (dwarf2_per_bfd::locate_sections): ... this.
3115 (dwarf2_per_objfile::get_cutu): Rename to...
3116 (dwarf2_per_bfd::get_cutu): ... this.
3117 (dwarf2_per_objfile::get_cu): Rename to...
3118 (dwarf2_per_bfd::get_cu): ... this.
3119 (dwarf2_per_objfile::get_tu): Rename to...
3120 (dwarf2_per_bfd::get_tu): ... this.
3121 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3122 (dwarf2_per_bfd::allocate_per_cu): ... this.
3123 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3124 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3125 (get_gdb_index_contents_ftype): Change parameter from
3126 dwarf2_per_objfile to dwarf2_per_bfd.
3127 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3128 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3129
a50264ba
TT
31302020-05-27 Tom Tromey <tom@tromey.com>
3131 Simon Marchi <simon.marchi@efficios.com>
3132
3133 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3134 (allocate_piece_closure): Set "per_objfile" member.
3135 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3136 (locexpr_describe_location, loclist_describe_location): Use new
3137 member.
3138 * dwarf2/read.c (read_call_site_scope)
3139 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3140 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3141 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3142 handle_data_member_location): Set per_objfile member.
3143 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3144 member.
3145 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3146
d3473f0c
TT
31472020-05-27 Tom Tromey <tom@tromey.com>
3148
3149 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3150 allocate_signatured_type>: Declare new methods.
3151 <m_num_psymtabs>: New member.
3152 (struct dwarf2_per_cu_data) <index>: New member.
3153 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3154 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3155 (create_cu_from_index_list): Use allocate_per_cu.
3156 (create_signatured_type_table_from_index)
3157 (create_signatured_type_table_from_debug_names)
3158 (create_debug_type_hash_table, add_type_unit)
3159 (read_comp_units_from_section): Use allocate_signatured_type.
3160
5717c425
TT
31612020-05-27 Tom Tromey <tom@tromey.com>
3162
3163 * psymtab.c (partial_map_expand_apply)
3164 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3165 (psym_lookup_global_symbol_language)
3166 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3167 (psym_print_stats, psym_expand_symtabs_for_function)
3168 (psym_map_symbol_filenames, psym_map_matching_symbols)
3169 (psym_expand_symtabs_matching)
3170 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3171 (maintenance_check_psymtabs): Update.
3172 * psympriv.h (struct partial_symtab) <readin_p,
3173 get_compunit_symtab>: Add objfile parameter.
3174 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3175 Likewise.
3176 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3177 get_compunit_symtab>: Likewise.
3178 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3179
45940949
TT
31802020-05-27 Tom Tromey <tom@tromey.com>
3181
3182 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3183 member.
3184 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3185 (create_cu_from_index_list)
3186 (create_signatured_type_table_from_index)
3187 (create_signatured_type_table_from_debug_names)
3188 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3189 (dwarf2_create_include_psymtab)
3190 (create_debug_type_hash_table, add_type_unit)
3191 (create_type_unit_group, read_comp_units_from_section)
3192 (dwarf2_compute_name, create_cus_hash_table)
3193 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3194 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3195 obstack.
3196 (dw2_get_real_path): Likewise. Change argument to
3197 dwarf2_per_objfile.
3198
f8c6d152
LM
31992020-05-27 Luis Machado <luis.machado@linaro.org>
3200
3201 PR tdep/26000
3202 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3203 for ldrd (immediate).
3204
e98d2e6d
PW
32052020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3206
3207 * command.h: Add comment giving the name of class_tui.
3208 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3209 create the fake command for the help for class_tui.
3210
53a47a3e
TT
32112020-05-26 Tom Tromey <tromey@adacore.com>
3212
3213 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3214 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3215 (val_atr): New function.
3216 (value_val_atr): Use it.
3217 * ada-valprint.c (print_optional_low_bound): Change low bound
3218 handling for enums.
3219 (val_print_packed_array_elements): Don't call discrete_position.
3220 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3221 discrete_position for enum types.
3222 * language.c (default_print_array_index): Change type.
3223 * language.h (struct language_defn) <la_print_array_index>: Add
3224 index_type parameter, change type of index_value.
3225 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3226 (default_print_array_index): Update.
3227 * valprint.c (maybe_print_array_index): Don't call
3228 value_from_longest. Update.
3229 (value_print_array_elements): Don't call discrete_position.
3230
0bc2354b
TT
32312020-05-26 Tom Tromey <tromey@adacore.com>
3232
3233 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3234 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3235
1218a4bf
CDA
32362020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3237
3238 PR gdb/13519
3239 * avr-tdep.c (avr_integer_to_address): Return data or code
3240 address accordingly to the second 'type' argument of the
3241 function.
3242
92651b1d
MW
32432020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3244
3245 * infcmd.c, inferior.h: (construct_inferior_arguments):
3246 Moved function from here to gdbsupport/common-inferior.{h,cc}
3247
0a4f5f8c
TT
32482020-05-23 Tom Tromey <tom@tromey.com>
3249
3250 Revert commit eca1f90c:
3251 * NEWS: Remove entry for completion styling.
3252 * completer.c (_rl_completion_prefix_display_length): Move
3253 declaration later.
3254 (gdb_fnprint): Revert.
3255 (gdb_display_match_list_1): Likewise.
3256 * cli/cli-style.c (completion_prefix_style)
3257 (completion_difference_style, completion_suffix_style): Remove.
3258 (_initialize_cli_style): Revert.
3259 * cli/cli-style.h (completion_prefix_style)
3260 (completion_difference_style, completion_suffix_style): Don't
3261 declare.
3262
e08bd6c5
PA
32632020-05-24 Pedro Alves <palves@redhat.com>
3264
3265 * symtab.c (completion_list_add_name): Return boolean indication
3266 of whether the symbol matched.
3267 (completion_list_add_symbol): Don't try to remove C++ aliases if
3268 the symbol didn't match in the first place.
3269 * symtab.h (completion_list_add_name): Return bool.
3270
ceacbf6e
SM
32712020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3272
3273 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3274 type::field.
3275
26f16254
JB
32762020-05-23 Joel Brobecker <brobecker@adacore.com>
3277
3278 GDB 9.2 released.
3279
eca1f90c
TT
32802020-05-23 Tom Tromey <tom@tromey.com>
3281
3282 * NEWS: Add entry for completion styling.
3283 * completer.c (_rl_completion_prefix_display_length): Move
3284 declaration earlier.
3285 (gdb_fnprint): Use completion_style.
3286 (gdb_display_match_list_1): Likewise.
3287 * cli/cli-style.c (completion_prefix_style)
3288 (completion_difference_style, completion_suffix_style): New
3289 globals.
3290 (_initialize_cli_style): Register new globals.
3291 * cli/cli-style.h (completion_prefix_style)
3292 (completion_difference_style, completion_suffix_style): Declare.
3293
51e2cfa2
PA
32942020-05-23 Pedro Alves <palves@redhat.com>
3295
3296 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3297 (parse_escape): Use ISDIGIT instead of isdigit.
3298 (puts_debug): Use gdb_isprint instead of isprint.
3299 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3300 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3301 ISSPACE instead of isspace.
3302 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3303 instead of isspace.
3304 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3305 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3306 instead of isxdigit and ISDIGIT instead of isdigit.
3307
80fc5e77
SM
33082020-05-22 Simon Marchi <simon.marchi@efficios.com>
3309
3310 * gdbtypes.h (struct type) <field>: New method.
3311 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3312 or type::field.
3313
3cabb6b0
SM
33142020-05-22 Simon Marchi <simon.marchi@efficios.com>
3315
3316 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3317 (TYPE_FIELDS): Use type::fields. Change all call sites that
3318 modify the propery to use type::set_fields instead.
3319
1f704f76
SM
33202020-05-22 Simon Marchi <simon.marchi@efficios.com>
3321
3322 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3323 type::num_fields instead.
3324
5e33d5f4
SM
33252020-05-22 Simon Marchi <simon.marchi@efficios.com>
3326
3327 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3328 methods.
3329 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3330 that modify the number of fields to use type::set_num_fields
3331 instead.
3332
9392ebb3
TT
33332020-05-22 Tom Tromey <tromey@adacore.com>
3334
3335 * compile/compile-object-load.h (munmap_list_free): Don't
3336 declare.
3337
7c13f4e8
AB
33382020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3339
3340 * annotate.c (annotate_source_line): Update return type, add call
3341 to update current symtab and line.
3342 * annotate.h (annotate_source_line): Update return type, and
3343 extend header comment.
3344 * source.c (info_line_command): Check annotation_level before
3345 calling annotate_source_line.
3346 * stack.c (print_frame_info): If calling annotate_source_line
3347 returns true, then don't print any other source line information.
3348
aa370940
SM
33492020-05-21 Simon Marchi <simon.marchi@efficios.com>
3350
3351 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3352
84d53fa9
SM
33532020-05-21 Simon Marchi <simon.marchi@efficios.com>
3354
3355 * coffread.c (patch_type): Remove NULL check before xfree.
3356 * corefile.c (set_gnutarget): Likewise.
3357 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3358 * exec.c (build_section_table): Likewise.
3359 * remote.c (remote_target::pass_signals): Likewise.
3360 * utils.c (n_spaces): Likewise.
3361 * cli/cli-script.c (document_command): Likewise.
3362 * i386-windows-tdep.c (core_process_module_section): Likewise.
3363 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3364
9d428aae
SM
33652020-05-20 Simon Marchi <simon.marchi@efficios.com>
3366
3367 * symfile.c (reread_symbols): Clear objfile's section_offsets
3368 vector and section indices, re-compute them by calling
3369 sym_offsets.
3370
250106a7
TT
33712020-05-20 Tom Tromey <tromey@adacore.com>
3372
3373 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3374 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3375
9a0bacfb
TV
33762020-05-20 Tom de Vries <tdevries@suse.de>
3377
3378 PR symtab/25833
3379 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3380
7b958a48
AM
33812020-05-20 Alan Modra <amodra@gmail.com>
3382
3383 PR 25993
3384 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3385 bfd_set_filename.
3386 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3387 passed to bfd_set_filename.
3388 * symfile-mem.c (add_vsyscall_page): Likewise for string
3389 passed to symbol_file_add_from_memory.
3390 (symbol_file_add_from_memory): Make name param a const char* and
3391 don't strdup.
3392
c7e97679
AM
33932020-05-20 Alan Modra <amodra@gmail.com>
3394
3395 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3396 rather than accessing bfd->filename directly.
3397 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3398 and use bfd_section_name.
3399 * dwarf2/frame.c (decode_frame_entry): Likewise.
3400 * exec.c (exec_set_section_address): Likewise.
3401 * solib-aix.c (solib_aix_bfd_open): Likewise.
3402 * stap-probe.c (get_stap_base_address): Likewise.
3403 * symfile.c (reread_symbols): Likewise.
3404
563c591b
TT
34052020-05-19 Tom Tromey <tromey@adacore.com>
3406
3407 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3408
f408d82c
SM
34092020-05-19 Simon Marchi <simon.marchi@efficios.com>
3410
3411 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3412
98c59b52
PA
34132020-05-19 Pedro Alves <palves@redhat.com>
3414
3415 * NEWS (set exec-file-mismatch): Adjust entry.
3416 * exec.c: Include "build-id.h".
3417 (validate_exec_file): Try to match build IDs instead of filenames.
3418 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3419 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3420 and pass down 'warn_if_slow'.
3421 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3422 gdb_bfd_open_closure to pass it down.
3423 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3424
4111f652
PA
34252020-05-19 Pedro Alves <palves@redhat.com>
3426
3427 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3428 * target.c (target_fileio_open_1): Rename to target_fileio_open
3429 and make extern. Use bool.
3430 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3431 (target_fileio_read_alloc_1): Adjust.
3432 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3433 (target_fileio_open_warn_if_slow): Delete declaration.
3434
ad80db5b
PA
34352020-05-19 Pedro Alves <palves@redhat.com>
3436
3437 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3438 Adjust all callers.
3439
1d6ce4d3
YS
34402020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3441
3442 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3443 whether disp is negative.
3444
9005fbbb
SM
34452020-05-19 Simon Marchi <simon.marchi@efficios.com>
3446
3447 * symfile.h (struct symfile_segment_data)
3448 <~symfile_segment_data>: Remove.
3449 <segment_info>: Change to std::vector.
3450 * symfile.c (default_symfile_segments): Update.
3451 * elfread.c (elf_symfile_segments): Update.
3452
68b888ff
SM
34532020-05-19 Simon Marchi <simon.marchi@efficios.com>
3454
3455 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3456 <segments>: New.
3457 <segment_bases, segment_sizes>: Remove.
3458 * symfile.c (default_symfile_segments): Update.
3459 * elfread.c (elf_symfile_segments): Update.
3460 * remote.c (remote_target::get_offsets): Update.
3461 * solib-target.c (solib_target_relocate_section_addresses):
3462 Update.
3463
62982abd
SM
34642020-05-19 Simon Marchi <simon.marchi@efficios.com>
3465
3466 * symfile.h (struct symfile_segment_data): Initialize fields.
3467 <~symfile_segment_data>: Add.
3468 (symfile_segment_data_up): New.
3469 (struct sym_fns) <sym_segments>: Return a
3470 symfile_segment_data_up.
3471 (default_symfile_segments): Return a symfile_segment_data_up.
3472 (free_symfile_segment_data): Remove.
3473 (get_symfile_segment_data): Return a symfile_segment_data_up.
3474 * symfile.c (default_symfile_segments): Likewise.
3475 (get_symfile_segment_data): Likewise.
3476 (free_symfile_segment_data): Remove.
3477 (symfile_find_segment_sections): Update.
3478 * elfread.c (elf_symfile_segments): Return a
3479 symfile_segment_data_up.
3480 * remote.c (remote_target::get_offsets): Update.
3481 * solib-target.c (solib_target_relocate_section_addresses):
3482 Update.
3483 * symfile-debug.c (debug_sym_segments): Return a
3484 symfile_segment_data_up.
3485
7f204339
RO
34862020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3487
e52a0f1b
RO
3488 PR build/25981
3489 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3490 Hardcode register numbers.
3491
7f204339
RO
3492 PR build/25981
3493 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3494 procfs_find_LDT_entry): Remove.
3495 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3496 procfs_find_LDT_entry): Remove.
3497 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3498 Remove.
3499
7f32a4d5
PA
35002020-05-17 Pedro Alves <palves@redhat.com>
3501 Andrew Burgess <andrew.burgess@embecosm.com>
3502 Keno Fischer <keno@juliacomputing.com>
3503
3504 PR gdb/25741
3505 * breakpoint.c (build_target_condition_list): Update comments.
3506 (build_target_command_list): Update comments and skip matching
3507 locations.
3508 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3509 a separate function. Simplify "set breakpoint auto-hw off"
3510 handling.
3511 (insert_breakpoints): Update comment.
3512 (tracepoint_locations_match): New parameter. For breakpoints,
3513 compare location types too, if the caller wants to.
3514 (handle_automatic_hardware_breakpoints): New functions.
3515 (bp_location_is_less_than): Also sort by location type and
3516 hardware breakpoint length.
3517 (update_global_location_list): Handle "set breakpoint auto-hw on"
3518 here.
3519 (update_breakpoint_locations): Ask breakpoint_locations_match to
3520 ignore location types.
3521
7d93a1e0
SM
35222020-05-16 Simon Marchi <simon.marchi@efficios.com>
3523
3524 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3525 type::name instead.
3526
d0e39ea2
SM
35272020-05-16 Simon Marchi <simon.marchi@efficios.com>
3528
3529 * gdbtypes.h (struct type) <name, set_name>: New methods.
3530 (TYPE_CODE): Use type::name. Change all call sites used to set
3531 the name to use type::set_name instead.
3532
2dab0c7b
TT
35332020-05-16 Tom Tromey <tom@tromey.com>
3534
3535 * top.c (quit_force): Update.
3536 * infrun.c (handle_no_resumed): Update.
3537 * top.h (all_uis): New function.
3538 (ALL_UIS): Remove.
3539
59f7bd8d
SM
35402020-05-16 Simon Marchi <simon.marchi@efficios.com>
3541
3542 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3543
9bf058f0
PA
35442020-05-16 Pedro Alves <palves@redhat.com>
3545
3546 * ia64-linux-nat.c
3547 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3548 Declare method.
3549 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3550
8f86ae1a
SM
35512020-05-15 Simon Marchi <simon.marchi@efficios.com>
3552
3553 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3554 (sparc64_adi_info): Likewise.
3555
d6bc0792
TT
35562020-05-15 Tom Tromey <tom@tromey.com>
3557
3558 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3559 block_objfile.
3560 (lookup_objfile_from_block): Remove.
3561 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3562 (lookup_global_symbol): Use block_objfile.
3563 * symtab.h (lookup_objfile_from_block): Don't declare.
3564 * printcmd.c (clear_dangling_display_expressions): Use
3565 block_objfile.
3566 * parse.c (operator_check_standard): Use block_objfile.
3567
8c14c3a3
TT
35682020-05-15 Tom Tromey <tom@tromey.com>
3569
3570 * language.c (language_alloc_type_symbol): Set
3571 SYMBOL_SECTION.
3572 * symtab.c (initialize_objfile_symbol): Remove.
3573 (allocate_symbol): Remove.
3574 (allocate_template_symbol): Remove.
3575 * dwarf2/read.c (fixup_go_packaging): Use "new".
3576 (new_symbol): Use "new".
3577 (read_variable): Don't call initialize_objfile_symbol. Use
3578 "new".
3579 (read_func_scope): Use "new".
3580 * xcoffread.c (process_xcoff_symbol): Don't call
3581 initialize_objfile_symbol.
3582 (SYMBOL_DUP): Remove.
3583 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3584 "new".
3585 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3586 (allocate_template_symbol): Don't declare.
3587 (struct symbol): Add copy constructor. Change defaults.
3588 * jit.c (finalize_symtab): Use "new".
3589 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3590 Use "new".
3591 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3592 (common_block_end): Use "new".
3593 * mdebugread.c (parse_symbol): Use "new".
3594 (new_symbol): Likewise.
3595
5b4a1a8d
PW
35962020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3597
3598 * NEWS: Mention changes to help and apropos.
3599
57b4f16e
PW
36002020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3601
3602 * command.h (enum command_class): Improve comments, document
3603 that class_alias is for user-defined aliases, give the class
3604 name for each class, remove unused class_xdb.
3605 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3606 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3607 by a precise class.
3608 * infcmd.c (_initialize_infcmd): Likewise.
3609 * reverse.c (_initialize_reverse): Likewise.
3610 * stack.c (_initialize_stack): Likewise.
3611 * symfile.c (_initialize_symfile): Likewise.
3612 * tracepoint.c (_initialize_tracepoint): Likewise.
3613
7c05caf7
PW
36142020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3615
3616 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3617 when their aliased command is traversed.
3618 (help_cmd): Add fput_command_names_styled call to
3619 output command name and aliases when command has an alias.
3620
3b3aaacb
PW
36212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3622
3623 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3624 * cli/cli-decode.c (help_cmd_list): Declare as static,
3625 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3626 a command together with the command.
3627 (fput_command_name_styled, fput_command_names_styled): New functions.
3628 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3629 fput_command_name_styled.
3630 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3631 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3632
7aa1b46f
PW
36332020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3634
3635 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3636 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3637 * command.h (cmd_show_list): Likewise.
3638 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3639 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3640
89bcba74
PW
36412020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3642
3643 * unittests/command-def-selftests.c (traverse_command_structure):
3644 Verify all commands of a list have the same prefix command and
3645 that only the top cmdlist commands have a null prefix.
3646
3f4d92eb
PW
36472020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3648
3649 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3650 as prefix, not one of its aliases.
3651 (set_cmd_prefix): Remove.
3652 (do_add_cmd): Centralize the setting of the prefix of a command, when
3653 command is defined after its full chain of prefix commands.
3654 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3655 (add_setshow_cmd_full): Likewise.
3656 (update_prefix_field_of_prefixed_commands): New function.
3657 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3658 update_prefix_field_of_prefixed_commands.
3659 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3660 addresses of remote_set_cmdlist and remote_show_cmdlist given
3661 as argument, not the address of an argument.
3662 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3663 * gdb/remote.c (_initialize_remote): Likewise.
3664
0605465f
PW
36652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3666
3667 * cli/cli-cmds.c (alias_command): Check for an existing alias
3668 using lookup_cmd_composition, as valid_command_p is too strict
3669 and forbids aliases that are the prefix of an existing alias
3670 or command.
3671 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3672 command is properly recognised as a valid command.
3673
58e6ac70
PW
36742020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3675
3676 * unittests/help-doc-selftests.c: Rename to
3677 unittests/command-def-selftests.c
3678 * unittests/command-def-selftests.c (help_doc_tests): Update some
3679 comments.
3680 (command_structure_tests, traverse_command_structure): New namespace
3681 and function.
3682 (command_structure_invariants_tests): New function.
3683 (_initialize_command_def_selftests) Renamed from
3684 _initialize_help_doc_selftests, register command_structure_invariants
3685 selftest.
3686
a7b9ceb8
PW
36872020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3688
3689 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3690 an alias of 'show'.
3691
b2188a06
JB
36922020-05-15 Joel Brobecker <brobecker@adacore.com>
3693
3694 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3695 ada_is_fixed_point_type. Update all callers.
3696 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3697 all callers.
3698 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3699 Update all callers.
3700 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3701 print_fixed_point_type. Update all callers.
3702 * ada-valprint.c (ada_value_print_num): Replace call to
3703 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3704
a51951c2
KB
37052020-05-14 Kevin Buettner <kevinb@redhat.com>
3706
3707 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3708 processors.
3709 (cpu_supports_bts): Add CV_AMD case.
3710
29d6859f
LM
37112020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3712 Simon Marchi <simon.marchi@efficios.com>
3713
3714 * infrun.c (stop_all_threads): Collect multiple wait events at
3715 each pass.
3716
78134374
SM
37172020-05-14 Simon Marchi <simon.marchi@efficios.com>
3718
3719 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3720 type::code instead.
3721
67607e24
SM
37222020-05-14 Simon Marchi <simon.marchi@efficios.com>
3723
3724 * gdbtypes.h (struct type) <code, set_code>: New methods.
3725 (TYPE_CODE): Use type::code. Change all call sites used to set
3726 the code to use type::set_code instead.
3727
a05575d3
TBA
37282020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3729 Tom de Vries <tdevries@suse.de>
3730 Pedro Alves <palves@redhat.com>
3731
3732 PR threads/25478
3733 * infrun.c (stop_all_threads): Do NOT ignore
3734 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3735 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3736 received.
3737 (handle_no_resumed): Remove code handling a live inferior with no
3738 threads.
3739 * remote.c (has_single_non_exited_thread): New.
3740 (remote_target::update_thread_list): Do not delete a thread if is
3741 the last thread of the process.
3742 * thread.c (thread_select): Call delete_exited_threads instead of
3743 prune_threads.
3744
6ad82919
TBA
37452020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3746
3747 * infrun.c (stop_all_threads): Enable/disable thread events of all
3748 targets. Move a debug message denoting the end of the function
3749 into the SCOPED_EXIT block.
3750
d890404b
TBA
37512020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3752
3753 * process-stratum-target.h: Include <set>.
3754 (all_non_exited_process_targets, switch_to_target_no_thread): New
3755 function declarations.
3756 * process-stratum-target.c (all_non_exited_process_targets)
3757 (switch_to_target_no_thread): New function implementations.
3758
293b3ebc
TBA
37592020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3760
3761 * infrun.c (handle_inferior_event): Extract out a piece of code
3762 into...
3763 (mark_non_executing_threads): ...this new function.
3764
7ca9b62a
TBA
37652020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3766
3767 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3768 use.
3769
fc75c28b
TBA
37702020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3771
3772 * regcache.c (regcache_read_pc_protected): New function
3773 implementation that returns 0 if the PC cannot read via
3774 'regcache_read_pc'.
3775 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3776 instead of 'regcache_read_pc'.
3777 (keep_going_pass_signal): Ditto.
3778
a89febbd
TT
37792020-05-13 Tom Tromey <tromey@adacore.com>
3780
3781 * ada-lang.c (align_value): Remove.
3782 (ada_template_to_fixed_record_type_1): Use align_up.
3783
f7e23710
TBA
37842020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3785
3786 * async-event.c: Update the copyright year.
3787 * async-event.h: Update the copyright year.
3788
02ff80c2
SM
37892020-05-12 Simon Marchi <simon.marchi@efficios.com>
3790
3791 * objfiles.h (is_addr_in_objfile,
3792 shared_objfile_contains_address_p): Return bool.
3793 * objfile.c (is_addr_in_objfile,
3794 shared_objfile_contains_address_p): Return bool.
3795
4fd6c7e8
TT
37962020-05-11 Tom Tromey <tromey@adacore.com>
3797
3798 * cli/cli-cmds.c (info_command): Restore.
3799 (_initialize_cli_cmds): Use add_prefix_command for "info".
3800 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3801
5eb68a39
TT
38022020-05-11 Tom Tromey <tromey@adacore.com>
3803
3804 * ada-lang.c (ada_value_primitive_field): Now public.
3805 * ada-lang.h (ada_value_primitive_field): Declare.
3806 * ada-valprint.c (print_field_values): Use
3807 ada_value_primitive_field for wrapper fields.
3808
7666722f
TV
38092020-05-11 Tom de Vries <tdevries@suse.de>
3810
3811 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3812 MODULE_DOMAIN.
3813
3ee6bb11
TV
38142020-05-11 Tom de Vries <tdevries@suse.de>
3815
3816 PR symtab/25941
3817 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3818 with length 0, if not gdb-produced.
3819 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3820
43434996
TV
38212020-05-09 Tom de Vries <tdevries@suse.de>
3822
3823 PR gdb/25955
3824 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3825 calculation.
3826
2f78cffc
TT
38272020-05-09 Tom Tromey <tom@tromey.com>
3828
3829 * top.c (server_command): Now bool.
3830 * top.h (server_command): Now bool.
3831
4f7bc5ed
TT
38322020-05-08 Tom Tromey <tromey@adacore.com>
3833
3834 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3835 already being processed.
3836
8be4b118
TT
38372020-05-08 Tom Tromey <tom@tromey.com>
3838
3839 * printcmd.c (struct display) <next>: Remove.
3840 <display>: New constructor.
3841 <exp_string>: Now a std::string.
3842 <enabled_p>: Now a bool.
3843 (display_number): Move definition earlier.
3844 (displays): Rename from display_chain. Now a std::vector.
3845 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3846 (display_command): Update.
3847 (do_one_display, disable_display)
3848 (enable_disable_display_command, do_enable_disable_display):
3849 Update.
3850 (free_display): Remove.
3851 (clear_displays): Rewrite.
3852 (delete_display): Update.
3853 (map_display_numbers): Use function_view. Remove "data"
3854 parameter. Update.
3855 (do_delete_display): Remove.
3856 (undisplay_command): Update.
3857 (do_one_display, do_displays, disable_display)
3858 (info_display_command): Update.
3859 (do_enable_disable_display): Remove.
3860 (enable_disable_display_command)
3861 (clear_dangling_display_expressions): Update.
3862
94c93c35
TT
38632020-05-08 Tom Tromey <tom@tromey.com>
3864
3865 * symtab.c (set_symbol_cache_size)
3866 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3867 (maintenance_print_symbol_cache_statistics): Update.
3868 * symmisc.c (print_symbol_bcache_statistics)
3869 (print_objfile_statistics, maintenance_print_objfiles)
3870 (maintenance_info_symtabs, maintenance_check_symtabs)
3871 (maintenance_expand_symtabs, maintenance_info_line_tables):
3872 Update.
3873 * symfile-debug.c (set_debug_symfile): Update.
3874 * source.c (forget_cached_source_info): Update.
3875 * python/python.c (gdbpy_progspaces): Update.
3876 * psymtab.c (maintenance_info_psymtabs): Update.
3877 * probe.c (parse_probes): Update.
3878 * linespec.c (iterate_over_all_matching_symtabs)
3879 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3880 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3881 * exec.c (exec_target::close): Update.
3882 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3883 * breakpoint.c (print_one_breakpoint_location)
3884 (create_longjmp_master_breakpoint)
3885 (create_std_terminate_master_breakpoint): Update.
3886 * progspace.c (program_spaces): Now a std::vector.
3887 (maybe_new_address_space): Update.
3888 (add_program_space): Remove.
3889 (program_space::program_space): Update.
3890 (remove_program_space): Update.
3891 (number_of_program_spaces): Remove.
3892 (print_program_space, update_address_spaces): Update.
3893 * progspace.h (program_spaces): Change type.
3894 (ALL_PSPACES): Remove.
3895 (number_of_program_spaces): Don't declare.
3896 (struct program_space) <next>: Remove.
3897
a1fd1ac9
TT
38982020-05-08 Tom Tromey <tom@tromey.com>
3899
3900 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3901 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3902 (enable_break): Update.
3903 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3904 (frv_fdpic_find_canonical_descriptor): Update.
3905 (frv_fetch_objfile_link_map): Update.
3906 * progspace.c (program_space::free_all_objfiles): Update.
3907 (program_space::solibs): New method.
3908 * progspace.h (struct program_space) <solibs>: New method.
3909 * solist.h (master_so_list): Don't declare.
3910 (ALL_SO_LIBS): Remove.
3911 * solib.h (so_list_head): Remove.
3912 (update_solib_list): Update comment.
3913 * solib.c (master_so_list): Remove.
3914 (solib_used, update_solib_list, solib_add)
3915 (info_sharedlibrary_command, clear_solib)
3916 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3917
38eae084
TT
39182020-05-08 Tom Tromey <tom@tromey.com>
3919
3920 * extension.c (extension_languages): Now a std::array.
3921 (ALL_EXTENSION_LANGUAGES): Remove.
3922 (get_ext_lang_defn, get_ext_lang_of_file)
3923 (eval_ext_lang_from_control_command): Update.
3924 (finish_ext_lang_initialization)
3925 (auto_load_ext_lang_scripts_for_objfile)
3926 (ext_lang_type_printers::ext_lang_type_printers)
3927 (apply_ext_lang_type_printers)
3928 (ext_lang_type_printers::~ext_lang_type_printers)
3929 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3930 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3931 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3932 (get_matching_xmethod_workers, ext_lang_colorize)
3933 (ext_lang_before_prompt): Update.
3934 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3935
596dc4ad
TT
39362020-05-08 Tom Tromey <tom@tromey.com>
3937
3938 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3939 overload.
3940 <swap_string, m_string>: Remove.
3941 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3942 Update.
3943 * stabsread.c (define_symbol, read_type): Update.
3944 * linespec.c (find_linespec_symbols): Update.
3945 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3946 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3947 * dbxread.c (read_dbx_symtab): Update.
3948 * cp-support.h (cp_canonicalize_string_full)
3949 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3950 Return unique_xmalloc_ptr.
3951 * cp-support.c (inspect_type): Update.
3952 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3953 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3954 Likewise.
3955 * c-typeprint.c (print_name_maybe_canonical): Update.
3956 * break-catch-throw.c (check_status_exception_catchpoint):
3957 Update.
3958
bf4cb9be
TV
39592020-05-08 Tom de Vries <tdevries@suse.de>
3960
3961 * infrun.c (follow_fork): Copy current_line and current_symtab to
3962 child thread.
3963
a1b68f28
SM
39642020-05-07 Simon Marchi <simon.marchi@efficios.com>
3965
3966 * async-event.c (struct async_signal_handler, struct
3967 async_event_handler): Reformat, remove typedef.
3968
98d48915
SM
39692020-05-07 Simon Marchi <simon.marchi@efficios.com>
3970
3971 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
3972 access thistype->main_type->dyn_prop_list directly.
3973
7aa91313
SM
39742020-05-07 Simon Marchi <simon.marchi@efficios.com>
3975
3976 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
3977 (remove_dyn_prop): Remove. Update all users to use
3978 type::remove_dyn_prop.
3979 * gdbtypes.c (remove_dyn_prop): Rename to...
3980 (type::remove_dyn_prop): ... this.
3981
5c54719c
SM
39822020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
3983
3984 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
3985 (add_dyn_prop): Remove. Update all users to use
3986 type::add_dyn_prop.
3987 * gdbtypes.c (add_dyn_prop): Rename to...
3988 (type::add_dyn_prop): ... this.
3989
24e99c6c
SM
39902020-05-07 Simon Marchi <simon.marchi@efficios.com>
3991
3992 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
3993 (get_dyn_prop): Remove. Update all users to use
3994 type::dyn_prop.
3995 * gdbtypes.c (get_dyn_prop): Rename to...
3996 (type::dyn_prop): ... this.
3997
0d4bf016
SM
39982020-05-06 Simon Marchi <simon.marchi@efficios.com>
3999
4000 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4001
ac4a4f1c
SM
40022020-05-06 Simon Marchi <simon.marchi@efficios.com>
4003
4004 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4005 instruction, skip it if it's there.
4006
a3bbacc1
SM
40072020-05-05 Simon Marchi <simon.marchi@efficios.com>
4008
4009 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4010
c3236f84
SM
40112020-05-04 Simon Marchi <simon.marchi@efficios.com>
4012
4013 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4014 * gdbtypes.c (recursive_dump_type): Remove use of
4015 TYPE_INCOMPLETE.
4016
3b6acaee
TT
40172020-05-03 Tom Tromey <tom@tromey.com>
4018
4019 * breakpoint.c (catch_command, tcatch_command): Remove.
4020 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4021 add_show_prefix_cmd.
4022 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4023 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4024 Remove.
4025 (add_internal_problem_command): Use add_basic_prefix_cmd,
4026 add_show_prefix_cmd.
4027 * mips-tdep.c (set_mipsfpu_command): Remove.
4028 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4029 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4030 (_initialize_index_cache): Use add_basic_prefix_cmd.
4031 * memattr.c (dummy_cmd): Remove.
4032 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4033 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4034 (_initialize_tui_win): Use add_basic_prefix_cmd,
4035 add_show_prefix_cmd.
4036 * cli/cli-logging.c (set_logging_command): Remove.
4037 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4038 add_show_prefix_cmd.
4039 (show_logging_command): Remove.
4040 * target.c (target_command): Remove.
4041 (add_target): Use add_basic_prefix_cmd.
4042
a51119cd
HD
40432020-05-02 Hannes Domani <ssbssa@yahoo.de>
4044
4045 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4046
652fc23a 40472020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4048
652fc23a
PW
4049 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4050 info_command.
4051
117539e6
KR
40522020-04-30 Kamil Rytarowski <n54@gmx.com>
4053
4054 * nbsd-nat.c (nbsd_enable_proc_events)
4055 (nbsd_nat_target::post_startup_inferior): Add.
4056 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4057 (nbsd_nat_target::update_thread_list): Rewrite.
4058 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4059 "PTRACE_LWP_CREATE".
4060 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4061
102e38eb 40622020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4063
102e38eb
PW
4064 * stack.c (_initialize_stack): Remove duplicated creation
4065 of "frame" command and "f" alias.
4066
ee9d1e5f
HD
40672020-04-30 Hannes Domani <ssbssa@yahoo.de>
4068
4069 PR gdb/18706
4070 * gdbtypes.c (check_typedef): Calculate size of array of
4071 stubbed type.
4072
627c7fb8
HD
40732020-04-30 Hannes Domani <ssbssa@yahoo.de>
4074
4075 PR gdb/15559
4076 * i386-tdep.c (i386_push_dummy_call): Call
4077 i386_thiscall_push_dummy_call.
4078 (i386_thiscall_push_dummy_call): New function.
4079 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4080 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4081 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4082
ffc2844e
SM
40832020-04-29 Simon Marchi <simon.marchi@efficios.com>
4084
4085 * gdbarch.sh (do_read): Add shellcheck disable directive for
4086 warning SC2162.
4087
1207375d
SM
40882020-04-29 Simon Marchi <simon.marchi@efficios.com>
4089
4090 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4091 "referenced but not assigned" warning.
4092
9fdb2916
SM
40932020-04-29 Simon Marchi <simon.marchi@efficios.com>
4094
4095 * gdbarch.sh: Remove code that sets fallbackdefault.
4096
759cea5e
SM
40972020-04-29 Simon Marchi <simon.marchi@efficios.com>
4098
4099 * gdbarch.sh: Use shell operators && and || instead of
4100 -a and -o.
4101
cb02ab24
SM
41022020-04-29 Simon Marchi <simon.marchi@efficios.com>
4103
4104 * gdbarch.sh: Use $(...) instead of `...`.
4105
a6fc5ffc
SM
41062020-04-29 Simon Marchi <simon.marchi@efficios.com>
4107
4108 * gdbarch.sh: Use double quotes around variables.
4109
8d113d13
SM
41102020-04-29 Simon Marchi <simon.marchi@efficios.com>
4111
4112 * gdbarch.sh: Use %s with printf, instead of variables in the
4113 format string.
4114
ed6acedd
TT
41152020-04-29 Tom Tromey <tromey@adacore.com>
4116
4117 PR ada/25875:
4118 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4119 type fields here.
4120 (read_enumeration_type): Call
4121 update_enumeration_type_from_children later. Update comments.
4122 (process_enumeration_scope): Don't create type fields.
4123
b68b1b58
KR
41242020-04-29 Kamil Rytarowski <n54@gmx.com>
4125
4126 * nbsd-tdep.c: Include "xml-syscall.h".
4127 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4128
f94b2e03
KR
41292020-04-29 Kamil Rytarowski <n54@gmx.com>
4130
4131 * nbsd-nat.c: Include "sys/wait.h".
4132 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4133 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4134 (nbsd_nat_target::remove_exec_catchpoint)
4135 (nbsd_nat_target::set_syscall_catchpoint): Add.
4136 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4137 (nbsd_nat_target::insert_exec_catchpoint)
4138 (nbsd_nat_target::remove_exec_catchpoint)
4139 (nbsd_nat_target::set_syscall_catchpoint): Add.
4140 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4141 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4142 `nbsd_get_syscall_number'.
4143
fc49bc72
TT
41442020-04-29 Tom Tromey <tom@tromey.com>
4145
4146 * stack.c (print_block_frame_labels): Remove.
4147
d642b692
HD
41482020-04-29 Hannes Domani <ssbssa@yahoo.de>
4149
4150 PR gdb/17320
4151 * ada-valprint.c (val_print_packed_array_elements): Move array
4152 end bracket to new line.
4153 (ada_val_print_string): Remove extra spaces before first array
4154 element.
4155 * c-valprint.c (c_value_print_array): Likewise.
4156 * m2-valprint.c (m2_print_array_contents): Likewise.
4157 (m2_value_print_inner): Likewise.
4158 * p-valprint.c (pascal_value_print_inner): Likewise.
4159 * valprint.c (generic_val_print_array): Likewise.
4160 (value_print_array_elements): Move first array element and array
4161 end bracket to new line.
4162
ea90f227
TV
41632020-04-29 Tom de Vries <tdevries@suse.de>
4164
4165 PR symtab/25889
4166 * linespec.c (find_method): Fix ix calculation.
4167
4498ef4f
KR
41682020-04-28 Kamil Rytarowski <n54@gmx.com>
4169
4170 * syscalls/update-netbsd.sh: New file.
4171 * syscalls/netbsd.xml: Regenerate.
4172 * data-directory/Makefile.in: Register `netbsd.xml' in
4173 `SYSCALLS_FILES'.
4174
a55e30b5
SM
41752020-04-28 Simon Marchi <simon.marchi@efficios.com>
4176
4177 * syscalls/update-freebsd.sh: Add double quotes.
4178
2b2fbab8
TT
41792020-04-28 Tom Tromey <tom@tromey.com>
4180
4181 * NEWS: Update.
4182 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4183 (cmdpy_init): Allow class_tui.
4184
a65189c9
TV
41852020-04-28 Mark Williams <mark@myosotissp.com>
4186
4187 PR gdb/24480
4188 * dwarf2read.c: Add missing assingments to list_in_scope when
4189 start_symtab was already called.
4190
1b95cdb7
SM
41912020-04-28 Simon Marchi <simon.marchi@efficios.com>
4192
4193 PR gdb/25881
4194 * dwarf2/read.c (offset_map_type): Use
4195 gdb:hash_enum<sect_offset> as hash function.
4196
15cd93d0
TV
41972020-04-28 Tom de Vries <tdevries@suse.de>
4198
4199 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4200 with DW_AT_signature.
4201
1eb39914
SM
42022020-04-27 Simon Marchi <simon.marchi@efficios.com>
4203
4204 * configure.ac: Remove check for fs_base/gs_base in
4205 user_regs_struct.
4206 * configure: Re-generate.
4207 * config.in: Re-generate.
4208 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4209 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4210 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4211
991a3e2e
LM
42122020-04-27 Luis Machado <luis.machado@linaro.org>
4213
4214 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4215 problematic inline frame unwinding situation.
4216 * frame.c (frame_id_computed_p): New function.
4217 * frame.h (frame_id_computed_p): New prototype.
4218
361ba0e8
TT
42192020-04-26 Tom Tromey <tom@tromey.com>
4220
4221 * command.h (enum command_class) <class_pseudo>: Remove.
4222
bc3609fd
PW
42232020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4224
4225 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4226 and whitespace.
4227
b9771db7
KR
42282020-04-25 Kamil Rytarowski <n54@gmx.com>
4229
ec16513e
SM
4230 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4231 `PT_GET_PROCESS_STATE' block.
b9771db7 4232
7151c1af
TT
42332020-04-24 Tom Tromey <tom@tromey.com>
4234
4235 * symtab.h (symbol_get_demangled_name): Don't declare.
4236 * symtab.c (symbol_get_demangled_name): Remove.
4237 (general_symbol_info::natural_name)
4238 (general_symbol_info::demangled_name): Update.
4239
906bb4c5
TT
42402020-04-24 Tom Tromey <tom@tromey.com>
4241
4242 PR rust/25025:
4243 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4244
bcfe6157
TT
42452020-04-24 Tom Tromey <tom@tromey.com>
4246
4247 PR symtab/12707:
4248 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4249 exists.
4250 (new_symbol): Likewise.
4251 * compile/compile-object-load.c (get_out_value_type): Use
4252 symbol_matches_search_name.
4253
f049a313
TT
42542020-04-24 Tom Tromey <tom@tromey.com>
4255
4256 * dwarf2/read.c (add_partial_symbol): Do not call
4257 compute_and_set_names.
4258
76e288d1
TT
42592020-04-24 Tom Tromey <tom@tromey.com>
4260
4261 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4262 overload.
4263
2467f4f6
TT
42642020-04-24 Tom Tromey <tom@tromey.com>
4265
4266 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4267 (add_psymbol_to_list): New overload. Make old overload call new
4268 one.
4269 * psympriv.h (add_psymbol_to_list): New overload.
4270
e61108c9
TT
42712020-04-24 Tom Tromey <tom@tromey.com>
4272
4273 * dwarf2/read.c (partial_die_info::read) <case
4274 DW_AT_linkage_name>: Use value_as_string.
4275 (dwarf2_string_attr): Use value_as_string.
4276 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4277 method.
4278 * dwarf2/attribute.c (attribute::value_as_string): New method.
4279
8c87a452
TT
42802020-04-24 Tom Tromey <tom@tromey.com>
4281
4282 * symtab.c (general_symbol_info::natural_name)
4283 (general_symbol_info::demangled_name): Check for language_rust.
4284
787de330
TT
42852020-04-24 Tom Tromey <tom@tromey.com>
4286
4287 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4288 (dwarf2_physname): ... from here.
4289 (partial_die_info::read): Add Rust "{" hack.
4290
ff985671
TT
42912020-04-24 Tom Tromey <tom@tromey.com>
4292
4293 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4294 method.
4295 (symbol_set_demangled_name): Don't declare.
4296 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4297 symbol_set_demangled_name.
4298 (general_symbol_info::set_language)
4299 (general_symbol_info::compute_and_set_names): Update.
4300 * minsyms.c (minimal_symbol_reader::install): Update.
4301 * dwarf2/read.c (new_symbol): Update.
4302
1acda803
TT
43032020-04-24 Tom Tromey <tromey@adacore.com>
4304
4305 PR python/23662:
4306 * python/py-type.c (convert_field): Handle
4307 FIELD_LOC_KIND_DWARF_BLOCK.
4308 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4309 (typy_get_dynamic): Nw function.
4310 (type_object_getset): Add "dynamic".
4311 * NEWS: Add entry.
4312
d656f129
TT
43132020-04-24 Tom Tromey <tromey@adacore.com>
4314
4315 * ada-typeprint.c (print_choices, print_variant_part)
4316 (print_record_field_types_dynamic): New functions.
4317 (print_record_field_types): Use print_record_field_types_dynamic.
4318
7d79de9a
TT
43192020-04-24 Tom Tromey <tromey@adacore.com>
4320
4321 * dwarf2/read.c (handle_data_member_location): New overload.
4322 (dwarf2_add_field): Use it.
4323 (decode_locdesc): Add "computed" parameter. Update comment.
4324 * gdbtypes.c (is_dynamic_type_internal): Also look for
4325 FIELD_LOC_KIND_DWARF_BLOCK.
4326 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4327 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4328 virtual base classes.
4329 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4330 FIELD_LOC_KIND_DWARF_BLOCK.
4331
f8e89861
TT
43322020-04-24 Tom Tromey <tromey@adacore.com>
4333
4334 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4335 * gdbtypes.c (is_dynamic_type_internal): Check
4336 TYPE_HAS_DYNAMIC_LENGTH.
4337 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4338 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4339 New macros.
4340 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4341 constant.
4342
9c6a1327
TT
43432020-04-24 Tom Tromey <tromey@adacore.com>
4344
4345 * dwarf2/read.c (struct variant_field): Rewrite.
4346 (struct variant_part_builder): New.
4347 (struct nextfield): Remove "variant" field. Add "offset".
4348 (struct field_info): Add "current_variant_part" and
4349 "variant_parts".
4350 (alloc_discriminant_info): Remove.
4351 (alloc_rust_variant): New function.
4352 (quirk_rust_enum): Update.
4353 (dwarf2_add_field): Set "offset" member. Don't handle
4354 DW_TAG_variant_part.
4355 (offset_map_type): New typedef.
4356 (convert_variant_range, create_one_variant)
4357 (create_one_variant_part, create_variant_parts)
4358 (add_variant_property): New functions.
4359 (dwarf2_attach_fields_to_type): Call add_variant_property.
4360 (read_structure_type): Don't handle DW_TAG_variant_part.
4361 (handle_variant_part, handle_variant): New functions.
4362 (handle_struct_member_die): Use them.
4363 (process_structure_scope): Don't handle variant parts.
4364 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4365 (struct discriminant_info): Remove.
4366 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4367 (struct main_type) <flag_discriminated_union>: Remove.
4368 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4369 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4370 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4371 Update.
4372 * valops.c (value_union_variant): Remove.
4373 * value.h (value_union_variant): Don't declare.
4374
b249d2c2
TT
43752020-04-24 Tom Tromey <tromey@adacore.com>
4376
4377 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4378 (ada_value_primitive_packed_val): Update.
4379 * ada-valprint.c (ada_value_print_1): Update.
4380 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4381 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4382 just an address. Use evaluate_for_locexpr_baton.
4383 (dwarf2_evaluate_property): Update.
4384 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4385 array_view.
4386 * findvar.c (default_read_var_value): Update.
4387 * gdbtypes.c (compute_variant_fields_inner)
4388 (resolve_dynamic_type_internal): Update.
4389 (resolve_dynamic_type): Change type of valaddr parameter.
4390 * gdbtypes.h (resolve_dynamic_type): Update.
4391 * valarith.c (value_subscripted_rvalue): Update.
4392 * value.c (value_from_contents_and_address): Update.
4393
61122aa9
TT
43942020-04-24 Tom Tromey <tromey@adacore.com>
4395
4396 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4397 "push_initial_value" parameter.
4398 (dwarf2_evaluate_property): Likewise.
4399 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4400
ef83a141
TT
44012020-04-24 Tom Tromey <tromey@adacore.com>
4402
4403 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4404 (variant::matches, compute_variant_fields_recurse)
4405 (compute_variant_fields_inner, compute_variant_fields): New
4406 functions.
4407 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4408 Use resolved_type after type is made.
4409 (operator==): Add new cases.
4410 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4411 (struct discriminant_range, struct variant, struct variant_part):
4412 New.
4413 (union dynamic_prop_data) <variant_parts, original_type>: New
4414 members.
4415 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4416 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4417 constants.
4418 * value.c (unpack_bits_as_long): Now public.
4419 * value.h (unpack_bits_as_long): Declare.
4420
675127ec
TT
44212020-04-24 Tom Tromey <tromey@adacore.com>
4422
4423 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4424 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4425
9852ceef
HD
44262020-04-24 Hannes Domani <ssbssa@yahoo.de>
4427
4428 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4429
7632c6ce
KR
44302020-04-24 Kamil Rytarowski <n54@gmx.com>
4431
4432 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4433 (remove_fork_catchpoint, post_startup_inferior)
4434 (post_attach): Move...
4435 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4436 (remove_fork_catchpoint, post_startup_inferior)
4437 (post_attach): ...here.
4438 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4439 (remove_fork_catchpoint, post_startup_inferior)
4440 (post_attach): Move...
4441 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4442 (remove_fork_catchpoint, post_startup_inferior)
4443 (post_attach): ...here.
4444
7be2bb4f
TT
44452020-04-24 Tom Tromey <tromey@adacore.com>
4446
4447 * nat/windows-nat.h (struct windows_thread_info)
4448 <pc_adjusted>: New member.
4449 * windows-nat.c (windows_fetch_one_register): Check
4450 pc_adjusted.
4451 (windows_nat_target::get_windows_debug_event)
4452 (windows_nat_target::wait): Set pc_adjusted.
4453
f80cb3b4
TV
44542020-04-24 Tom de Vries <tdevries@suse.de>
4455
4456 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4457 Run gdb-add-index inside temp dir.
4458
29514b87
TT
44592020-04-23 Tom Tromey <tromey@adacore.com>
4460
4461 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4462 in loop.
4463
5939967b
LM
44642020-04-23 Luis Machado <luis.machado@linaro.org>
4465
4466 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4467 get_frame_register instead of gdbarch_unwind_pc.
4468
70bc38f5
TV
44692020-04-23 Tom de Vries <tdevries@suse.de>
4470
4471 * symtab.c (lookup_global_symbol): Prefer def over decl.
4472
de82891c
TV
44732020-04-23 Tom de Vries <tdevries@suse.de>
4474
4475 PR symtab/25807
4476 * block.c (best_symbol, better_symbol): Promote to external.
4477 * block.h (best_symbol, better_symbol): Declare.
4478 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4479 decl.
4480
ecc6c606
TT
44812020-04-23 Tom Tromey <tromey@adacore.com>
4482
4483 PR ada/25837:
4484 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4485 "const char *", not a "const std::string &".
4486 <name_and_matcher::operator==>: Update.
4487 * unittests/lookup_name_info-selftests.c: Change type of
4488 "result".
4489
740480b8
TT
44902020-04-23 Tom Tromey <tom@tromey.com>
4491
4492 * inferior.h (iterate_over_inferiors): Don't declare.
4493 * inferior.c (iterate_over_inferiors): Remove.
4494 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4495 Remove.
4496 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4497 use iterate_over_inferiors.
4498 (darwin_resume_inferior_it)
4499 (struct resume_inferior_threads_param)
4500 (darwin_resume_inferior_threads_it): Remove.
4501 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4502
ae3ab1f0
TV
45032020-04-23 Tom de Vries <tdevries@suse.de>
4504
4505 * blockframe.c (find_pc_partial_function): Use
4506 find_pc_sect_compunit_symtab rather than
4507 objfile->sf->qf->find_pc_sect_compunit_symtab.
4508
317d2668
TV
45092020-04-22 Tom de Vries <tdevries@suse.de>
4510
4511 PR symtab/25764
4512 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4513 in psymtabs.
4514
eea9e357
TV
45152020-04-22 Tom de Vries <tdevries@suse.de>
4516
4517 PR symtab/25801
4518 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4519 symtabs.
4520
3d5afab3
TV
45212020-04-22 Tom de Vries <tdevries@suse.de>
4522
4523 PR symtab/25700
4524 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4525 CU if already created.
4526
d43b7a2d
TBA
45272020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4528
4529 * infrun.c (displaced_step_fixup): Switch to the event_thread
4530 before calling displaced_step_restore, not after.
4531
d89edf9b
MM
45322020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4533
4534 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4535 its inferior is not recorded by us.
4536 (record_btrace_target_open): Replace call to
4537 all_non_exited_threads () with call to current_inferior
4538 ()->non_exited_threads ().
4539 (record_btrace_target::stop_recording): Likewise.
4540 (record_btrace_target::close): Likewise.
4541 (record_btrace_target::wait): Likewise.
4542 (record_btrace_target::record_stop_replaying): Likewise.
4543
5897fd49
MM
45442020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4545
4546 * btrace.c (btrace_enable): Throw an error on double enables and
4547 when enabling recording fails.
4548 (btrace_disable): Throw an error if the thread is not recorded.
4549
1a476b6d
MM
45502020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4551
4552 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4553 request if we do not have a thread_info.
4554
4778a5f8
TV
45552020-04-21 Tom de Vries <tdevries@suse.de>
4556
4557 PR gdb/25471
4558 * thread.c
4559 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4560 exception in get_frame_id.
4561
0fa7617d
TT
45622020-04-20 Tom Tromey <tromey@adacore.com>
4563
4564 * python/python.c (struct gdbpy_event): Mark move constructor as
4565 noexcept.
4566 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4567 constructor as noexcept.
4568 * completer.h (struct completion_result): Mark move constructor as
4569 noexcept.
4570 * completer.c (completion_result::completion_result): Use
4571 initialization style. Don't call reset_match_list.
4572
ad23bda0
MS
45732020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4574
4575 * MAINTAINERS (Write After Approval): Add myself.
4576
45e1f031
TT
45772020-04-18 Tom Tromey <tom@tromey.com>
4578
4579 * windows-tdep.c (init_w32_command_list)
4580 (w32_prefix_command_valid): Restore.
4581 (_initialize_windows_tdep): Call init_w32_command_list.
4582
08feed99
TT
45832020-04-18 Tom Tromey <tom@tromey.com>
4584
4585 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4586 * value.c (value_fn_field): Update.
4587 * valops.c (find_function_in_inferior)
4588 (value_allocate_space_in_inferior): Update.
4589 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4590 Update.
4591 * tui/tui-source.c (tui_source_window::set_contents): Update.
4592 * symtab.c (lookup_global_or_static_symbol)
4593 (find_function_start_sal_1, skip_prologue_sal)
4594 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4595 * symmisc.c (dump_msymbols, dump_symtab_1)
4596 (maintenance_print_one_line_table): Update.
4597 * symfile.c (init_entry_point_info, section_is_mapped)
4598 (list_overlays_command, simple_read_overlay_table)
4599 (simple_overlay_update_1): Update.
4600 * stap-probe.c (handle_stap_probe): Update.
4601 * stabsread.c (dbx_init_float_type, define_symbol)
4602 (read_one_struct_field, read_enum_type, read_range_type): Update.
4603 * source.c (info_line_command): Update.
4604 * python/python.c (gdbpy_source_objfile_script)
4605 (gdbpy_execute_objfile_script): Update.
4606 * python/py-type.c (save_objfile_types): Update.
4607 * python/py-objfile.c (py_free_objfile): Update.
4608 * python/py-inferior.c (python_new_objfile): Update.
4609 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4610 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4611 (maintenance_check_psymtabs): Update.
4612 * printcmd.c (info_address_command): Update.
4613 * objfiles.h (struct objfile) <arch>: New method, from
4614 get_objfile_arch.
4615 (get_objfile_arch): Don't declare.
4616 * objfiles.c (get_objfile_arch): Remove.
4617 (filter_overlapping_sections): Update.
4618 * minsyms.c (msymbol_is_function): Update.
4619 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4620 (output_nondebug_symbol): Update.
4621 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4622 (mdebug_expand_psymtab): Update.
4623 * machoread.c (macho_add_oso_symfile): Update.
4624 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4625 Update.
4626 * linux-fork.c (checkpoint_command): Update.
4627 * linespec.c (convert_linespec_to_sals): Update.
4628 * jit.c (finalize_symtab): Update.
4629 * infrun.c (insert_exception_resume_from_probe): Update.
4630 * ia64-tdep.c (ia64_find_unwind_table): Update.
4631 * hppa-tdep.c (internalize_unwinds): Update.
4632 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4633 Update.
4634 * gcore.c (call_target_sbrk): Update.
4635 * elfread.c (record_minimal_symbol, elf_symtab_read)
4636 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4637 (elf_gnu_ifunc_resolve_by_got): Update.
4638 * dwarf2/read.c (create_addrmap_from_index)
4639 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4640 (read_debug_names_from_section)
4641 (process_psymtab_comp_unit_reader, add_partial_symbol)
4642 (add_partial_subprogram, process_full_comp_unit)
4643 (read_file_scope, read_func_scope, read_lexical_block_scope)
4644 (read_call_site_scope, dwarf2_ranges_read)
4645 (dwarf2_record_block_ranges, dwarf2_add_field)
4646 (mark_common_block_symbol_computed, read_tag_pointer_type)
4647 (read_tag_string_type, dwarf2_init_float_type)
4648 (dwarf2_init_complex_target_type, read_base_type)
4649 (partial_die_info::read, partial_die_info::read)
4650 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4651 (dwarf2_fetch_die_loc_sect_off): Update.
4652 * dwarf2/loc.c (dwarf2_find_location_expression)
4653 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4654 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4655 (dwarf2_loc_desc_get_symbol_read_needs)
4656 (locexpr_describe_location_piece, locexpr_describe_location_1)
4657 (loclist_describe_location): Update.
4658 * dwarf2/index-write.c (write_debug_names): Update.
4659 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4660 * dtrace-probe.c (dtrace_process_dof): Update.
4661 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4662 (process_one_symbol): Update.
4663 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4664 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4665 (coff_read_enum_type): Update.
4666 * cli/cli-cmds.c (edit_command, list_command): Update.
4667 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4668 * breakpoint.c (create_overlay_event_breakpoint)
4669 (create_longjmp_master_breakpoint)
4670 (create_std_terminate_master_breakpoint)
4671 (create_exception_master_breakpoint, get_sal_arch): Update.
4672 * block.c (block_gdbarch): Update.
4673 * annotate.c (annotate_source_line): Update.
4674
0743fc83
TT
46752020-04-17 Tom Tromey <tromey@adacore.com>
4676
4677 * auto-load.c (show_auto_load_cmd): Remove.
4678 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4679 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4680 (maintenance_print_arc_command): Remove.
4681 * tui/tui-win.c (tui_command): Remove.
4682 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4683 * tui/tui-layout.c (tui_layout_command): Remove.
4684 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4685 * python/python.c (user_set_python, user_show_python): Remove.
4686 (_initialize_python): Use add_basic_prefix_cmd,
4687 add_show_prefix_cmd.
4688 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4689 (install_gdb_commands): Use add_basic_prefix_cmd,
4690 add_show_prefix_cmd.
4691 (info_guile_command): Remove.
4692 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4693 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4694 add_show_prefix_cmd.
4695 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4696 Remove do_set and do_show parameters.
4697 * cli/cli-style.c (set_style, show_style): Remove.
4698 (_initialize_cli_style): Use add_basic_prefix_cmd,
4699 add_show_prefix_cmd.
4700 (cli_style_option::add_setshow_commands): Remove do_set and
4701 do_show parameters.
4702 (cli_style_option::add_setshow_commands): Use
4703 add_basic_prefix_cmd, add_show_prefix_cmd.
4704 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4705 (set_style_name): Remove.
4706 * cli/cli-dump.c (dump_command, append_command): Remove.
4707 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4708 (tekhex_dump_command, binary_dump_command)
4709 (binary_append_command): Remove.
4710 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4711 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4712 (init_w32_command_list): Remove; move into ...
4713 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4714 * valprint.c (set_print, show_print, set_print_raw)
4715 (show_print_raw): Remove.
4716 (_initialize_valprint): Use add_basic_prefix_cmd,
4717 add_show_prefix_cmd.
4718 * typeprint.c (set_print_type, show_print_type): Remove.
4719 (_initialize_typeprint): Use add_basic_prefix_cmd,
4720 add_show_prefix_cmd.
4721 * record.c (set_record_command, show_record_command): Remove.
4722 (_initialize_record): Use add_basic_prefix_cmd,
4723 add_show_prefix_cmd.
4724 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4725 add_show_prefix_cmd.
4726 (info_command, show_command, set_debug, show_debug): Remove.
4727 * top.h (set_history, show_history): Don't declare.
4728 * top.c (set_history, show_history): Remove.
4729 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4730 (unset_tdesc_cmd): Remove.
4731 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4732 add_show_prefix_cmd.
4733 * symtab.c (info_module_command): Remove.
4734 (_initialize_symtab): Use add_basic_prefix_cmd.
4735 * symfile.c (overlay_command): Remove.
4736 (_initialize_symfile): Use add_basic_prefix_cmd.
4737 * sparc64-tdep.c (info_adi_command): Remove.
4738 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4739 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4740 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4741 add_show_prefix_cmd.
4742 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4743 (_initialize_serial): Use add_basic_prefix_cmd,
4744 add_show_prefix_cmd.
4745 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4746 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4747 add_show_prefix_cmd.
4748 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4749 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4750 add_show_prefix_cmd.
4751 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4752 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4753 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4754 add_show_prefix_cmd.
4755 * remote.c (remote_command, set_remote_cmd): Remove.
4756 (_initialize_remote): Use add_basic_prefix_cmd.
4757 * record-full.c (set_record_full_command)
4758 (show_record_full_command): Remove.
4759 (_initialize_record_full): Use add_basic_prefix_cmd,
4760 add_show_prefix_cmd.
4761 * record-btrace.c (cmd_set_record_btrace)
4762 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4763 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4764 (cmd_show_record_btrace_pt): Remove.
4765 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4766 add_show_prefix_cmd.
4767 * ravenscar-thread.c (set_ravenscar_command)
4768 (show_ravenscar_command): Remove.
4769 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4770 add_show_prefix_cmd.
4771 * mips-tdep.c (show_mips_command, set_mips_command)
4772 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4773 add_show_prefix_cmd.
4774 * maint.c (maintenance_command, maintenance_info_command)
4775 (maintenance_check_command, maintenance_print_command)
4776 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4777 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4778 add_show_prefix_cmd.
4779 (show_per_command_cmd): Remove.
4780 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4781 Remove.
4782 (maintenance_show_test_settings_cmd): Remove.
4783 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4784 add_show_prefix_cmd.
4785 * maint-test-options.c (maintenance_test_options_command):
4786 Remove.
4787 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4788 * macrocmd.c (macro_command): Remove
4789 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4790 * language.c (set_check, show_check): Remove.
4791 (_initialize_language): Use add_basic_prefix_cmd,
4792 add_show_prefix_cmd.
4793 * infcmd.c (unset_command): Remove.
4794 (_initialize_infcmd): Use add_basic_prefix_cmd.
4795 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4796 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4797 add_show_prefix_cmd.
4798 * go32-nat.c (go32_info_dos_command): Remove.
4799 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4800 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4801 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4802 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4803 (_initialize_frame): Use add_basic_prefix_cmd,
4804 add_show_prefix_cmd.
4805 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4806 (_initialize_dcache): Use add_basic_prefix_cmd,
4807 add_show_prefix_cmd.
4808 * cp-support.c (maint_cplus_command): Remove.
4809 (_initialize_cp_support): Use add_basic_prefix_cmd.
4810 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4811 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4812 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4813 add_basic_prefix_cmd, add_show_prefix_cmd.
4814 * breakpoint.c (save_command): Remove.
4815 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4816 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4817 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4818 add_show_prefix_cmd.
4819 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4820 (set_ada_command, show_ada_command): Remove.
4821 (_initialize_ada_language): Use add_basic_prefix_cmd,
4822 add_show_prefix_cmd.
4823 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4824
3557f442
KR
48252020-04-16 Kamil Rytarowski <n54@gmx.com>
4826
4827 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4828 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4829
16197208
SM
48302020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4831
4832 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4833 warning messages.
4834
00ac85d3
SM
48352020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4836
4837 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4838 import table is not at beginning of .idata section.
4839
381ce63f
PA
48402020-04-16 Pedro Alves <palves@redhat.com>
4841
4842 * inferior.c (delete_inferior): Use delete operator directly
4843 instead of delete_program_space.
4844 * progspace.c (add_program_space): New, factored out from
4845 program_space::program_space.
4846 (remove_program_space): New, factored out from
4847 delete_program_space.
4848 (program_space::program_space): Remove intro comment. Rewrite.
4849 (program_space::~program_space): Remove intro comment. Call
4850 remove_program_space.
4851 (delete_program_space): Delete.
4852 * progspace.h (program_space::program_space): Make explicit. Move
4853 intro comment here, adjusted.
4854 (program_space::~program_space): Move intro comment here,
4855 adjusted.
4856 (delete_program_space): Remove.
4857
a010605f
TT
48582020-04-16 Tom Tromey <tromey@adacore.com>
4859
4860 * windows-nat.c (windows_nat::handle_access_violation): New
4861 function.
4862 * nat/windows-nat.h (handle_access_violation): Declare.
4863 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4864 windows-nat.c. Call handle_access_violation.
4865
efba5c23
TV
48662020-04-16 Tom de Vries <tdevries@suse.de>
4867
4868 PR symtab/25791
4869 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4870 CUs without psymtab.
4871
97ed802d
KB
48722020-04-16 Kevin Buettner <kevinb@redhat.com>
4873
4874 * python/python.c (do_start_initialization): Don't call
4875 PyEval_InitThreads for Python 3.9 and beyond.
4876
c7d64809
KR
48772020-04-15 Kamil Rytarowski <n54@gmx.com>
4878
4879 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4880 thread functions.
4881 (obsd_nat_target::wait): Likewise.
4882
ce127a96
TT
48832020-04-15 Tom Tromey <tromey@adacore.com>
4884
4885 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4886 (DEBUG_EXCEPT): Use debug_printf.
4887
99f1bc6a
AB
48882020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4889
4890 * completer.c (class completion_tracker::completion_hash_entry)
4891 <hash_name>: New member function.
4892 (completion_tracker::discard_completions): New callback to hash a
4893 completion_hash_entry, pass this to htab_create_alloc.
4894
a0e9b532
JT
48952016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4896
4897 * windows-nat.c (windows_make_so): Warn rather than stopping with
4898 an error if realpath() fails.
4899
06ca5dd4
KR
49002020-04-14 Kamil Rytarowski <n54@gmx.com>
4901
4902 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4903 (nbsd_nat_target::info_proc): Add do_status.
4904
194d088f
TV
49052020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4906 Tom de Vries <tdevries@suse.de>
4907
4908 PR symtab/25718
4909 * psympriv.h (struct partial_symtab::read_symtab)
4910 (struct partial_symtab::expand_psymtab)
4911 (struct partial_symtab::read_dependencies): Update comments.
4912 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4913 read_symtab for includer.
4914 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4915 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4916 (struct dwarf2_include_psymtab::m_readin): Remove.
4917 (struct dwarf2_include_psymtab::includer): New member function.
4918 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4919
c1a66c06
TV
49202020-04-14 Tom de Vries <tdevries@suse.de>
4921
4922 PR symtab/25720
4923 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4924 with NULL symbol_matcher and lookup_name.
4925 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4926 and lookup_name.
4927 * dwarf2/read.c (dw2_expand_symtabs_matching)
4928 (dw2_debug_names_expand_symtabs_matching): Same.
4929 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4930 Make lookup_name a pointer. Update comment.
4931 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4932 lookup_name being a pointer.
4933 * symfile.c (expand_symtabs_matching): Same.
4934 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4935 * linespec.c (iterate_over_all_matching_symtabs): Same.
4936
400b5eca
TT
49372020-04-13 Tom Tromey <tom@tromey.com>
4938
4939 * run-on-main-thread.c: Update include.
4940 * unittests/main-thread-selftests.c: Update include.
4941 * tui/tui-win.c: Update include.
4942 * tui/tui-io.c: Update include.
4943 * tui/tui-interp.c: Update include.
4944 * tui/tui-hooks.c: Update include.
4945 * top.h: Update include.
4946 * top.c: Update include.
4947 * ser-base.c: Update include.
4948 * remote.c: Update include.
4949 * remote-notif.c: Update include.
4950 * remote-fileio.c: Update include.
4951 * record-full.c: Update include.
4952 * record-btrace.c: Update include.
4953 * python/python.c: Update include.
4954 * posix-hdep.c: Update include.
4955 * mingw-hdep.c: Update include.
4956 * mi/mi-main.c: Update include.
4957 * mi/mi-interp.c: Update include.
4958 * main.c: Update include.
4959 * linux-nat.c: Update include.
4960 * interps.c: Update include.
4961 * infrun.c: Update include.
4962 * inf-loop.c: Update include.
4963 * event-top.c: Update include.
4964 * event-loop.c: Move to ../gdbsupport/.
4965 * event-loop.h: Move to ../gdbsupport/.
4966 * async-event.h: Update include.
4967 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4968
93b54c8e
TT
49692020-04-13 Tom Tromey <tom@tromey.com>
4970
4971 * tui/tui-win.c: Include async-event.h.
4972 * remote.c: Include async-event.h.
4973 * remote-notif.c: Include async-event.h.
4974 * record-full.c: Include async-event.h.
4975 * record-btrace.c: Include async-event.h.
4976 * infrun.c: Include async-event.h.
4977 * event-top.c: Include async-event.h.
4978 * event-loop.h: Move some declarations to async-event.h.
4979 * event-loop.c: Don't include ser-event.h or top.h. Move some
4980 code to async-event.c.
4981 * async-event.h: New file.
4982 * async-event.c: New file.
4983 * Makefile.in (COMMON_SFILES): Add async-event.c.
4984 (HFILES_NO_SRCDIR): Add async-event.h.
4985
c1cd3163
TT
49862020-04-13 Tom Tromey <tom@tromey.com>
4987
4988 * utils.c (flush_streams): New function.
4989 * event-loop.c (gdb_wait_for_event): Call flush_streams.
4990
29f2bf4f
TT
49912020-04-13 Tom Tromey <tom@tromey.com>
4992
4993 * event-loop.c (handle_file_event): Use warning, not
4994 printf_unfiltered.
4995
98029d02
TT
49962020-04-13 Tom Tromey <tom@tromey.com>
4997
4998 * event-loop.c: Include <chrono>.
4999
06cc9596
TT
50002020-04-13 Tom Tromey <tom@tromey.com>
5001
5002 * gdb_select.h: Move to ../gdbsupport/.
5003 * event-loop.c: Update include path.
5004 * top.c: Update include path.
5005 * ser-base.c: Update include path.
5006 * ui-file.c: Update include path.
5007 * ser-tcp.c: Update include path.
5008 * guile/scm-ports.c: Update include path.
5009 * posix-hdep.c: Update include path.
5010 * ser-unix.c: Update include path.
5011 * gdb_usleep.c: Update include path.
5012 * mingw-hdep.c: Update include path.
5013 * inflow.c: Update include path.
5014 * infrun.c: Update include path.
5015 * event-top.c: Update include path.
5016
8ae8e197
TT
50172020-04-13 Tom Tromey <tom@tromey.com>
5018
5019 * configure: Rebuild.
5020 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5021
58cf28e8
TT
50222020-04-13 Tom Tromey <tom@tromey.com>
5023
5024 * event-loop.h (start_event_loop): Don't declare.
5025 * event-loop.c (start_event_loop): Move...
5026 * main.c (start_event_loop): ...here. Now static.
5027
b7f999ae
SDJ
50282020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5029
5030 * MAINTAINERS: Update my email address.
5031
1085dfd4
KR
50322020-04-12 Kamil Rytarowski <n54@gmx.com>
5033
5034 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5035 IP_ALL.
5036
49d1d1f5
KR
50372020-04-12 Kamil Rytarowski <n54@gmx.com>
5038
5039 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5040 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5041
b4848d2a
KR
50422020-04-12 Kamil Rytarowski <n54@gmx.com>
5043
5044 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5045 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5046
51c133d5
KR
50472020-04-12 Kamil Rytarowski <n54@gmx.com>
5048
5049 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5050
54b8cbd0
KR
50512020-04-11 Kamil Rytarowski <n54@gmx.com>
5052
5053 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5054 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5055 (nbsd_nat_target::info_proc): New functions.
5056 * nbsd-nat.c (kinfo_get_vmmap): New function.
5057 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5058 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5059 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5060 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5061 functions.
5062 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5063 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5064 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5065 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5066 (KINFO_VME_FLAG_GROWS_DOWN): New.
5067
cf83625d
AS
50682020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5069
5070 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5071 bit shift.
5072
0c4311ab
TT
50732020-04-10 Tom Tromey <tromey@adacore.com>
5074
5075 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5076
3e65b3e9
TT
50772020-04-10 Tom Tromey <tromey@adacore.com>
5078
5079 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5080 separate debug files.
5081
13302e95
HD
50822020-04-10 Hannes Domani <ssbssa@yahoo.de>
5083
5084 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5085 Move to...
5086 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5087 ... here.
5088 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5089 Check for STATUS_WX86_BREAKPOINT.
5090 (windows_nat_target::wait): Same.
5091
bdfc1e8a
TV
50922020-04-10 Tom de Vries <tdevries@suse.de>
5093
5094 PR cli/25808
5095 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5096
f4460aec
SM
50972020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5098
5099 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5100 (Write After Approval): Remove Tom de Vries.
5101
a25198bb
BE
51022020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5103
5104 revert partially:
5105 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5106
aac66a4c
SM
5107 * buildsym.c (record_line): Fix undefined behavior and preserve
5108 lines at eof.
a25198bb 5109
206c98a6
KR
51102020-04-09 Kamil Rytarowski <n54@gmx.com>
5111
5112 * auxv.h (svr4_auxv_parse): New.
5113 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5114 and generic_auxv_parse.
5115 (svr4_auxv_parse): Add.
5116 * obsd-tdep.c: Include "auxv.h".
5117 (obsd_auxv_parse): Remove.
5118 (obsd_init_abi): Remove comment.
5119 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5120 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5121 * nbsd-tdep.c: Include "auxv.h".
5122 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5123
71fbdbaf
TT
51242020-04-08 Tom Tromey <tromey@adacore.com>
5125
5126 * nat/windows-nat.h (last_wait_event): Don't declare.
5127 (wait_for_debug_event): Update comment.
5128 * nat/windows-nat.c (last_wait_event): Now static.
5129
2c1d95e8
TT
51302020-04-08 Tom Tromey <tromey@adacore.com>
5131
5132 * windows-nat.c (wait_for_debug_event): Move to
5133 nat/windows-nat.c.
5134 * nat/windows-nat.h (wait_for_debug_event): Declare.
5135 * nat/windows-nat.c (wait_for_debug_event): Move from
5136 windows-nat.c. No longer static.
5137
d2977bc4
TT
51382020-04-08 Tom Tromey <tromey@adacore.com>
5139
5140 * windows-nat.c (get_windows_debug_event): Use
5141 fetch_pending_stop.
5142 * nat/windows-nat.h (fetch_pending_stop): Declare.
5143 * nat/windows-nat.c (fetch_pending_stop): New function.
5144
e758e19c
TT
51452020-04-08 Tom Tromey <tromey@adacore.com>
5146
5147 * windows-nat.c (windows_continue): Use matching_pending_stop and
5148 continue_last_debug_event.
5149 * nat/windows-nat.h (matching_pending_stop)
5150 (continue_last_debug_event): Declare.
5151 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5152 (matching_pending_stop, continue_last_debug_event): New
5153 functions.
5154
8d30e395
TT
51552020-04-08 Tom Tromey <tromey@adacore.com>
5156
5157 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5158 (handle_exception_result): Move to nat/windows-nat.h.
5159 (DEBUG_EXCEPTION_SIMPLE): Remove.
5160 (windows_nat::handle_ms_vc_exception): New function.
5161 (handle_exception): Move to nat/windows-nat.c.
5162 (get_windows_debug_event): Update.
5163 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5164 nat/windows-nat.c.
5165 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5166 (handle_exception_result): Move from windows-nat.c.
5167 (handle_exception): Declare.
5168 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5169 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5170 windows-nat.c.
5171
29de418d
TT
51722020-04-08 Tom Tromey <tromey@adacore.com>
5173
5174 * windows-nat.c (exception_count, event_count): Remove.
5175 (handle_exception, get_windows_debug_event)
5176 (do_initial_windows_stuff): Update.
5177
a816ba18
TT
51782020-04-08 Tom Tromey <tromey@adacore.com>
5179
5180 * windows-nat.c (windows_nat::handle_load_dll)
5181 (windows_nat::handle_unload_dll): Rename. No longer static.
5182 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5183 Declare.
5184
a00caa12
TT
51852020-04-08 Tom Tromey <tromey@adacore.com>
5186
5187 * complaints.h (stop_whining): Declare at top-level.
5188 (complaint): Don't declare stop_whining.
5189
d41b524f
TT
51902020-04-08 Tom Tromey <tromey@adacore.com>
5191
5192 * windows-nat.c (windows_nat::handle_output_debug_string):
5193 Rename. No longer static.
5194 * nat/windows-nat.h (handle_output_debug_string): Declare.
5195
3c76026d
TT
51962020-04-08 Tom Tromey <tromey@adacore.com>
5197
5198 * windows-nat.c (current_process_handle, current_process_id)
5199 (main_thread_id, last_sig, current_event, last_wait_event)
5200 (current_windows_thread, desired_stop_thread_id, pending_stops)
5201 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5202 (display_selectors, fake_create_process)
5203 (get_windows_debug_event): Update.
5204 * nat/windows-nat.h (current_process_handle, current_process_id)
5205 (main_thread_id, last_sig, current_event, last_wait_event)
5206 (current_windows_thread, desired_stop_thread_id, pending_stops)
5207 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5208 * nat/windows-nat.c (current_process_handle, current_process_id)
5209 (main_thread_id, last_sig, current_event, last_wait_event)
5210 (current_windows_thread, desired_stop_thread_id, pending_stops)
5211 (siginfo_er): New globals. Move from windows-nat.c.
5212
9d8679cc
TT
52132020-04-08 Tom Tromey <tromey@adacore.com>
5214
5215 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5216 (handle_load_dll): Update.
5217 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5218
28688adf
TT
52192020-04-08 Tom Tromey <tromey@adacore.com>
5220
5221 * windows-nat.c (enum thread_disposition_type): Move to
5222 nat/windows-nat.h.
5223 (windows_nat::thread_rec): Rename from thread_rec. No longer
5224 static.
5225 (windows_add_thread, windows_nat_target::fetch_registers)
5226 (windows_nat_target::store_registers, handle_exception)
5227 (windows_nat_target::resume, get_windows_debug_event)
5228 (windows_nat_target::get_tib_address)
5229 (windows_nat_target::thread_name)
5230 (windows_nat_target::thread_alive): Update.
5231 * nat/windows-nat.h (enum thread_disposition_type): Move from
5232 windows-nat.c.
5233 (thread_rec): Declare.
5234
4834dad0
TT
52352020-04-08 Tom Tromey <tromey@adacore.com>
5236
5237 * windows-nat.c: Add "using namespace".
5238 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5239 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5240
65bafd5b
TT
52412020-04-08 Tom Tromey <tromey@adacore.com>
5242
5243 * nat/windows-nat.h (struct windows_thread_info): Declare
5244 destructor.
5245 * nat/windows-nat.c (~windows_thread_info): New.
5246
0a4afda3
TT
52472020-04-08 Tom Tromey <tromey@adacore.com>
5248
5249 PR gdb/22992
5250 * windows-nat.c (current_event): Update comment.
5251 (last_wait_event, desired_stop_thread_id): New globals.
5252 (struct pending_stop): New.
5253 (pending_stops): New global.
5254 (windows_nat_target) <stopped_by_sw_breakpoint>
5255 <supports_stopped_by_sw_breakpoint>: New methods.
5256 (windows_fetch_one_register): Add assertions. Adjust PC.
5257 (windows_continue): Handle pending stops. Suspend other threads
5258 when stepping. Use last_wait_event
5259 (wait_for_debug_event): New function.
5260 (get_windows_debug_event): Use wait_for_debug_event. Handle
5261 pending stops. Queue spurious stops.
5262 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5263 (windows_nat_target::kill): Use wait_for_debug_event.
5264 * nat/windows-nat.h (struct windows_thread_info)
5265 <stopped_at_software_breakpoint>: New field.
5266 * nat/windows-nat.c (windows_thread_info::resume): Clear
5267 stopped_at_software_breakpoint.
5268
8e61ebec
TT
52692020-04-08 Tom Tromey <tromey@adacore.com>
5270
5271 * windows-nat.c (enum thread_disposition_type): New.
5272 (thread_rec): Replace "get_context" parameter with "disposition";
5273 change type.
5274 (windows_add_thread, windows_nat_target::fetch_registers)
5275 (windows_nat_target::store_registers, handle_exception)
5276 (windows_nat_target::resume, get_windows_debug_event)
5277 (windows_nat_target::get_tib_address)
5278 (windows_nat_target::thread_name)
5279 (windows_nat_target::thread_alive): Update.
5280
98a03287
TT
52812020-04-08 Tom Tromey <tromey@adacore.com>
5282
5283 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5284 (windows_continue): Use windows_continue::resume.
5285 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5286 resume>: Declare new methods.
5287 * nat/windows-nat.c: New file.
5288 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5289
7c7411bc
TT
52902020-04-08 Tom Tromey <tromey@adacore.com>
5291
5292 * windows-nat.c (windows_add_thread, windows_delete_thread)
5293 (windows_nat_target::fetch_registers)
5294 (windows_nat_target::store_registers, fake_create_process)
5295 (windows_nat_target::resume, windows_nat_target::resume)
5296 (get_windows_debug_event, windows_nat_target::wait)
5297 (windows_nat_target::pid_to_str)
5298 (windows_nat_target::get_tib_address)
5299 (windows_nat_target::get_ada_task_ptid)
5300 (windows_nat_target::thread_name)
5301 (windows_nat_target::thread_alive): Use lwp, not tid.
5302
2950fdf7
TT
53032020-04-08 Tom Tromey <tromey@adacore.com>
5304
5305 * windows-nat.c (handle_exception)
5306 (windows_nat_target::thread_name): Update.
5307 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5308 <name>: Now unique_xmalloc_ptr.
5309
62fe396b
TT
53102020-04-08 Tom Tromey <tromey@adacore.com>
5311
5312 * windows-nat.c (thread_rec)
5313 (windows_nat_target::fetch_registers): Update.
5314 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5315 Update comment.
5316 <debug_registers_changed, reload_context>: Now bool.
5317
e9534bd2
TT
53182020-04-08 Tom Tromey <tromey@adacore.com>
5319
5320 * windows-nat.c (windows_add_thread): Use new.
5321 (windows_init_thread_list, windows_delete_thread): Use delete.
5322 (get_windows_debug_event): Update.
5323 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5324 destructor, and initializers.
5325
ae1f8880
TT
53262020-04-08 Tom Tromey <tromey@adacore.com>
5327
5328 * windows-nat.c (struct windows_thread_info): Remove.
5329 * nat/windows-nat.h: New file.
5330
55a1e039
TT
53312020-04-08 Tom Tromey <tromey@adacore.com>
5332
5333 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5334 (thread_rec, windows_add_thread, windows_delete_thread)
5335 (windows_continue): Update.
5336
93366324
TT
53372020-04-08 Tom Tromey <tromey@adacore.com>
5338
5339 * windows-nat.c (struct windows_thread_info): Remove typedef.
5340 (thread_head): Remove.
5341 (thread_list): New global.
5342 (thread_rec, windows_add_thread, windows_init_thread_list)
5343 (windows_delete_thread, windows_continue): Update.
5344
0f2265e2
SM
53452020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5346
5347 * windows-tdep.h (windows_init_abi): Add comment.
5348 (cygwin_init_abi): New declaration.
5349 * windows-tdep.c: Split signal enumeration in two, one for
5350 Windows and one for Cygwin.
5351 (windows_gdb_signal_to_target): Only deal with signal of the
5352 Windows OS ABI.
5353 (cygwin_gdb_signal_to_target): New function.
5354 (windows_init_abi): Rename to windows_init_abi_common, don't set
5355 gdb_signal_to_target gdbarch method. Add new new function with
5356 this name.
5357 (cygwin_init_abi): New function.
5358 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5359 comment. Don't call windows_init_abi.
5360 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5361 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5362 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5363 i386_windows_init_abi_common, don't call windows_init_abi. Add
5364 a new function of this name.
5365 (i386_cygwin_init_abi): New function.
5366 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5367 OS ABI Cygwin.
5368
3810f182
SM
53692020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5370
5371 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5372 parameter.c.
5373 (dwarf2_read_gdb_index): Update.
5374
063f8e80
KR
53752020-04-07 Kamil Rytarowski <n54@gmx.com>
5376
5377 * nbsd-tdep.c: Include "objfiles.h".
5378 (nbsd_skip_solib_resolver): New.
5379 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5380
85a9510c 53812020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5382
5383 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5384 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5385 with DW_LLE_base_addressx are being emitted in DWARFv5.
5386 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5387 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5388 unsigned integer.
5389
9fc3eaae 53902020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5391
5392 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5393 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5394 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5395 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5396 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5397 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5398 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5399
5400
41144253 54012020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5402
5403 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5404 (read_loclist_index): New function definition.
5405 (lookup_loclist_base): New function definition.
5406 (read_loclist_header): New function definition.
5407 (dwarf2_cu): Add loclist_base and loclist_header field.
5408 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5409 (read_full_die_1): Read the value of DW_AT_loclists_base.
5410 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5411 (read_attribute_value): Handle DW_FORM_loclistx.
5412 (skip_one_die): Handle DW_FORM_loclistx.
5413 (loclist_header): New structure declaration.
5414 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5415
9f4e76a4
SM
54162020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5417
5418 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5419 constructor. Remove `addr` parameter from other constructor and
5420 add `per_cu` parameter.
5421 * dwarf2/read.c (create_partial_symtab): Update.
5422
25c11aca
TV
54232020-04-07 Tom de Vries <tdevries@suse.de>
5424
5425 PR symtab/25796
5426 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5427 (partial_die_info::fixup): Inherit has_const_value.
5428
5707e24b
TV
54292020-04-07 Tom de Vries <tdevries@suse.de>
5430
5431 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5432 symbols without address.
5433
05f00e22
KR
54342020-04-06 Kamil Rytarowski <n54@gmx.com>
5435
5436 * nbsd-nat.h (struct thread_info): Add forward declaration.
5437 (nbsd_nat_target::thread_alive): Add.
5438 (nbsd_nat_target::thread_name): Likewise.
5439 (nbsd_nat_target::update_thread_list): Likewise.
5440 (update_thread_list::post_attach): Likewise.
5441 (post_attach::pid_to_str): Likewise.
5442 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5443 (nbsd_thread_lister): Add.
5444 (nbsd_nat_target::thread_alive): Likewise.
5445 (nbsd_nat_target::thread_name): Likewise.
5446 (nbsd_add_threads): Likewise.
5447 (update_thread_list::post_attach): Likewise.
5448 (nbsd_nat_target::update_thread_list): Likewise.
5449 (post_attach::pid_to_str): Likewise.
5450
6ee448cc
TT
54512020-04-06 Tom Tromey <tromey@adacore.com>
5452
5453 * ada-valprint.c (print_variant_part): Extract the variant field.
5454 (print_field_values): Use the field as the outer value when
5455 recursing.
5456
dea34e8c
TT
54572020-04-06 Tom Tromey <tromey@adacore.com>
5458
5459 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5460 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5461 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5462 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5463 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5464
93689ce9
TT
54652020-04-06 Tom Tromey <tromey@adacore.com>
5466
5467 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5468 TYPE_CODE_ERROR.
5469
79743962
KR
54702020-04-06 Kamil Rytarowski <n54@gmx.com>
5471
5472 * nbsd-tdep.c: Include "gdbarch.h".
5473 Define enum with NetBSD signal numbers.
5474 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5475 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5476 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5477 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5478 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5479 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5480 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5481 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5482 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5483 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5484 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5485 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5486
9e7c9a03
HD
54872020-04-03 Hannes Domani <ssbssa@yahoo.de>
5488
5489 PR gdb/25325
5490 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5491
d9e49b61
TT
54922020-04-03 Tom Tromey <tromey@adacore.com>
5493
5494 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5495 Read constant block.
5496
e0fc5c3f
SM
54972020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5498
5499 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5500 (gdb_bfd_get_full_section_contents): New declaration.
5501 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5502 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5503 gdb_bfd_get_full_section_contents.
5504
e2ff18a0
SM
55052020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5506
5507 * exec.c (build_section_table): Replace internal_error with
5508 gdb_assert.
5509 (section_table_xfer_memory_partial): Likewise.
5510 * mdebugread.c (parse_partial_symbols): Likewise.
5511 * psymtab.c (lookup_partial_symbol): Likewise.
5512 * utils.c (wrap_here): Likewise.
5513
0830d301
TT
55142020-04-02 Tom Tromey <tromey@adacore.com>
5515
5516 * f-lang.c (build_fortran_types): Use arch_type to initialize
5517 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5518
e7da7f8f
TT
55192020-04-02 Tom Tromey <tromey@adacore.com>
5520
5521 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5522 of attributes.
5523
c90d28ac
AB
55242020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5525 Bernd Edlinger <bernd.edlinger@hotmail.de>
5526 Tom Tromey <tromey@adacore.com>
5527
5528 * buildsym.c (buildsym_compunit::record_line): Remove
5529 deduplication code.
5530
1aa98955
TV
55312020-04-02 Tom de Vries <tdevries@suse.de>
5532
5533 PR ada/24671
5534 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5535
d3214198
TV
55362020-04-02 Tom de Vries <tdevries@suse.de>
5537
5538 * dwarf2/read.c (dwarf2_gdb_index_functions,
5539 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5540 NULL.
5541 * psymtab.c (psym_lookup_global_symbol_language): New function.
5542 (psym_functions): Init psym_lookup_global_symbol_language with
5543 psym_lookup_global_symbol_language.
5544 * symfile-debug.c (debug_sym_quick_functions): Init
5545 lookup_global_symbol_language with NULL.
5546 * symfile.c (set_initial_language): Remove fixme comment.
5547 * symfile.h (struct quick_symbol_functions): Add
5548 lookup_global_symbol_language.
5549 * symtab.c (find_quick_global_symbol_language): New function.
5550 (find_main_name): Use find_quick_global_symbol_language.
5551
2836752f
SM
55522020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5553
5554 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5555
64dc2d4b
BE
55562020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5557
5558 * buildsym.c (record_line): Fix undefined behavior and preserve
5559 lines at eof.
5560
bbe3dc41
BE
55612020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5562
5563 * buildsym.c (record_line): Fix the resizing condition.
5564
6b4a335b
TT
55652020-04-01 Tom Tromey <tom@tromey.com>
5566
5567 * value.h (value_literal_complex): Add comment.
5568 * valops.c (value_literal_complex): Refer to value.h.
5569
3638a098
TT
55702020-04-01 Tom Tromey <tom@tromey.com>
5571
5572 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5573 (scalar_type): New rule, from typebase.
5574 (typebase): Use scalar_type. Recognize complex types.
5575 (field_name): Handle FLOAT_KEYWORD.
5576 (ident_tokens): Add _Complex and __complex__.
5577
c34e8714
TT
55782020-04-01 Tom Tromey <tom@tromey.com>
5579
5580 PR exp/25299:
5581 * valarith.c (promotion_type, complex_binop): New functions.
5582 (scalar_binop): Handle complex numbers. Use promotion_type.
5583 (value_pos, value_neg, value_complement): Handle complex numbers.
5584
fa649bb7
TT
55852020-04-01 Tom Tromey <tom@tromey.com>
5586
5587 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5588 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5589 (parse_number): Handle complex numbers.
5590
981c08ce
TT
55912020-04-01 Tom Tromey <tom@tromey.com>
5592
5593 * c-valprint.c (c_decorations): Change complex suffix to "i".
5594
4c99290d
TT
55952020-04-01 Tom Tromey <tom@tromey.com>
5596
5597 * valprint.c (generic_value_print_complex): Use accessors.
5598 * value.h (value_real_part, value_imaginary_part): Declare.
5599 * valops.c (value_real_part, value_imaginary_part): New
5600 functions.
5601 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5602
5b930b45
TT
56032020-04-01 Tom Tromey <tom@tromey.com>
5604
5605 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5606 (read_range_type): Update.
5607 * mdebugread.c (basic_type): Update.
5608 * go-lang.c (build_go_types): Use init_complex_type.
5609 * gdbtypes.h (struct main_type) <complex_type>: New member.
5610 (init_complex_type): Update.
5611 (arch_complex_type): Don't declare.
5612 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5613 Make name if none given. Use alloc_type_copy. Look for cached
5614 complex type.
5615 (arch_complex_type): Remove.
5616 (gdbtypes_post_init): Use init_complex_type.
5617 * f-lang.c (build_fortran_types): Use init_complex_type.
5618 * dwarf2/read.c (read_base_type): Update.
5619 * d-lang.c (build_d_types): Use init_complex_type.
5620 * ctfread.c (read_base_type): Update.
5621
53cccef1
TBA
56222020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5623
5624 * infrun.c (stop_all_threads): Update assertion, plus when
5625 stopping threads, take into account that we might be trying
5626 to stop an all-stop target.
5627 (stop_waiting): Call 'stop_all_threads' if there exists a
5628 non-stop target.
5629
a0714d30
TBA
56302020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5631
5632 * target.h (exists_non_stop_target): New function declaration.
5633 * target.c (exists_non_stop_target): New function.
5634
60e22c1e
HD
56352020-04-01 Hannes Domani <ssbssa@yahoo.de>
5636
5637 PR gdb/24789
5638 * eval.c (is_integral_or_integral_reference): New function.
5639 (evaluate_subexp_standard): Allow integer references in
5640 pointer arithmetic.
5641
e139a727
TBA
56422020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5643
5644 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5645 check for no ptid in the stop reply when the target is non-stop.
5646
e0802d59
TT
56472020-04-01 Tom Tromey <tromey@adacore.com>
5648
5649 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5650 "name" parameter to rvalue reference. Initialize m_name_holder.
5651 <lookup_name_info>: New overloads.
5652 <name>: Return gdb::string_view.
5653 <c_str>: New method.
5654 <make_ignore_params>: Update.
5655 <search_name_hash>: Update.
5656 <language_lookup_name>: Return const char *.
5657 <m_name>: Change type.
5658 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5659 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5660 (lookup_name_info::match_any): Update.
5661 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5662 Update.
5663 * minsyms.c (linkage_name_str): Update.
5664 * language.c (default_symbol_name_matcher): Update.
5665 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5666 Update.
5667 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5668 (ada_lookup_name_info::ada_lookup_name_info): Update.
5669 (literal_symbol_name_matcher): Update.
5670
8c072cb6
TT
56712020-04-01 Tom Tromey <tromey@adacore.com>
5672
5673 * psymtab.c (psymtab_search_name): Remove function.
5674 (psym_lookup_symbol): Create search name and lookup name here.
5675 (lookup_partial_symbol): Remove "name" parameter; add
5676 lookup_name.
5677 (psym_expand_symtabs_for_function): Update.
5678
6f29a534
TT
56792020-03-31 Joel Jones <joelkevinjones@gmail.com>
5680
5681 PR tui/25597:
5682 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5683
af62665e
TT
56842020-03-31 Tom Tromey <tromey@adacore.com>
5685
5686 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5687 memcpy.
5688
d1a89da5
NC
56892020-03-30 Nelson Chu <nelson.chu@sifive.com>
5690
5691 * features/riscv/32bit-csr.xml: Regenerated.
5692 * features/riscv/64bit-csr.xml: Regenerated.
5693
d8af9068
TT
56942020-03-30 Tom Tromey <tromey@adacore.com>
5695
5696 * ada-valprint.c (print_variant_part): Update.
5697 * ada-lang.h (ada_which_variant_applies): Update.
5698 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5699 outer_valaddr parameters; replace with "outer" value parameter.
5700 (to_fixed_variant_branch_type): Update.
5701
227c0bf4
PFC
57022020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5703
5704 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5705 <list>. Remove inclusion of observable.h.
5706 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5707 (struct arch_lwp_info): New struct.
5708 (class ppc_linux_dreg_interface): New class.
5709 (struct ppc_linux_process_info): New struct.
5710 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5711 <low_new_clone, low_forget_process, low_prepare_to_resume>
5712 <copy_thread_dreg_state, mark_thread_stale>
5713 <mark_debug_registers_changed, register_hw_breakpoint>
5714 <clear_hw_breakpoint, register_wp, clear_wp>
5715 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5716 <num_memory_accesses, get_trigger_type>
5717 <create_watchpoint_request, hwdebug_point_cmp>
5718 <init_arch_lwp_info, get_arch_lwp_info>
5719 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5720 methods.
5721 <struct ptid_hash>: New inner struct.
5722 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5723 members.
5724 (saved_dabr_value, hwdebug_info, max_slots_number)
5725 (struct hw_break_tuple, struct thread_points, ppc_threads)
5726 (have_ptrace_hwdebug_interface)
5727 (hwdebug_find_thread_points_by_tid)
5728 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5729 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5730 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5731 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5732 use m_dreg_interface.
5733 (hwdebug_point_cmp): Change to...
5734 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5735 reference arguments instead of pointers.
5736 (ppc_linux_nat_target::ranged_break_num_registers): Use
5737 m_dreg_interface.
5738 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5739 m_dreg_interface. Call register_hw_breakpoint.
5740 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5741 m_dreg_interface. Call clear_hw_breakpoint.
5742 (get_trigger_type): Change to...
5743 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5744 comment.
5745 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5746 use m_dreg_interface. Call register_hw_breakpoint.
5747 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5748 use m_dreg_interface. Call clear_hw_breakpoint.
5749 (can_use_watchpoint_cond_accel): Change to...
5750 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5751 method. Update comment, use m_dreg_interface and
5752 m_process_info.
5753 (calculate_dvc): Change to...
5754 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5755 m_dreg_interface.
5756 (num_memory_accesses): Change to...
5757 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5758 (check_condition): Change to...
5759 (ppc_linux_nat_target::check_condition): ...this method.
5760 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5761 comment, use m_dreg_interface.
5762 (create_watchpoint_request): Change to...
5763 (ppc_linux_nat_target::create_watchpoint_request): ...this
5764 method. Use m_dreg_interface.
5765 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5766 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5767 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5768 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5769 (ppc_linux_nat_target::low_forget_process)
5770 (ppc_linux_nat_target::low_new_fork)
5771 (ppc_linux_nat_target::low_new_clone)
5772 (ppc_linux_nat_target::low_delete_thread)
5773 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5774 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5775 only call mark_thread_stale.
5776 (ppc_linux_thread_exit): Remove.
5777 (ppc_linux_nat_target::stopped_data_address): Change to...
5778 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5779 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5780 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5781 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5782 comment. Call low_stopped_data_address.
5783 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5784 m_dreg_interface.
5785 (ppc_linux_nat_target::masked_watch_num_registers): Use
5786 m_dreg_interface.
5787 (ppc_linux_nat_target::copy_thread_dreg_state)
5788 (ppc_linux_nat_target::mark_thread_stale)
5789 (ppc_linux_nat_target::mark_debug_registers_changed)
5790 (ppc_linux_nat_target::register_hw_breakpoint)
5791 (ppc_linux_nat_target::clear_hw_breakpoint)
5792 (ppc_linux_nat_target::register_wp)
5793 (ppc_linux_nat_target::clear_wp)
5794 (ppc_linux_nat_target::init_arch_lwp_info)
5795 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5796 (_initialize_ppc_linux_nat): Remove observer callback.
5797
4db10d8f
PFC
57982020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5799
5800 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5801 (ppc_linux_nat_target::auxv_parse)
5802 (ppc_linux_nat_target::read_description)
5803 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5804 Move up.
5805
1310c1b0
PFC
58062020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5807
5808 * linux-nat.h (low_new_clone): New method.
5809 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5810
69b037c3
SM
58112020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5812
5813 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5814 (dbx_expand_psymtab): ... this.
5815 (start_psymtab): Update.
5816 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5817 (mdebug_expand_psymtab): ... this.
5818 (parse_partial_symbols): Update.
5819 (new_psymtab): Update.
5820 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5821 (xcoff_expand_psymtab): ... this.
5822 (xcoff_start_psymtab): Update.
5823
48993951
SM
58242020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5825
5826 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5827 <expand_dependencies>: ... this.
5828 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5829 (partial_symtab::expand_dependencies): ... this.
5830 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5831 Update.
5832 (dwarf2_psymtab::expand_psymtab): Update.
5833 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5834 * mdebugread.c (psymtab_to_symtab_1): Update.
5835 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5836
3ad83046
SM
58372020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5838
5839 * psympriv.h (discard_psymtab): Remove.
5840 * dbxread.c (dbx_end_psymtab): Update.
5841 * xcoffread.c (xcoff_end_psymtab): Update.
5842
4d1b9ab6
TT
58432020-03-28 Tom Tromey <tom@tromey.com>
5844
5845 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5846 comment.
5847
f1749218
TT
58482020-03-28 Tom Tromey <tom@tromey.com>
5849
5850 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5851
ebea7626
HD
58522020-03-27 Hannes Domani <ssbssa@yahoo.de>
5853
5854 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5855
a879b4d5
JB
58562020-03-26 John Baldwin <jhb@FreeBSD.org>
5857
5858 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5859
0826b30a
TT
58602020-03-26 Tom Tromey <tom@tromey.com>
5861
5862 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5863 (mark_common_block_symbol_computed, read_tag_string_type)
5864 (attr_to_dynamic_prop, read_subrange_type): Update.
5865 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5866 to be methods on struct attribute.
5867 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5868 (read_call_site_scope, partial_die_info::read)
5869 (partial_die_info::read, lookup_die_type, follow_die_ref):
5870 Update.
5871 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5872 from dwarf2_get_ref_die_offset.
5873 (attribute::constant_value): New method, from
5874 dwarf2_get_attr_constant_value.
5875 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5876 Declare method.
5877 <constant_value>: New method.
5878
2b2558bf
TT
58792020-03-26 Tom Tromey <tom@tromey.com>
5880
5881 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5882 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5883 (dwarf_type_encoding_name): Move to stringify.c.
5884 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5885 * dwarf2/stringify.c: New file.
5886 * dwarf2/stringify.h: New file.
5887
eeb64781
TT
58882020-03-26 Tom Tromey <tom@tromey.com>
5889
5890 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5891 Rewrite.
5892
a39fdb41
TT
58932020-03-26 Tom Tromey <tom@tromey.com>
5894
5895 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5896 methods.
5897 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5898 (lookup_ranges_base): Likewise.
5899 (read_cutu_die_from_dwo, read_full_die_1): Update.
5900
436c571c
TT
59012020-03-26 Tom Tromey <tom@tromey.com>
5902
5903 * dwarf2/read.c (read_import_statement, read_file_scope)
5904 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5905 (read_lexical_block_scope, read_call_site_scope)
5906 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5907 (handle_struct_member_die, process_structure_scope)
5908 (update_enumeration_type_from_children)
5909 (process_enumeration_scope, read_array_type, read_common_block)
5910 (read_namespace, read_module, read_subroutine_type): Update.
5911 (sibling_die): Remove.
5912
052c8bb8
TT
59132020-03-26 Tom Tromey <tom@tromey.com>
5914
5915 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5916 (build_type_psymtabs_reader, read_structure_type)
5917 (read_enumeration_type, read_full_die_1): Update.
5918 (dwarf2_attr_no_follow): Move to die.h.
5919 * dwarf2/die.h (struct die_info) <attr>: New method.
5920
2b24b6e4
TT
59212020-03-26 Tom Tromey <tom@tromey.com>
5922
5923 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5924 <base_address>: Now an optional.
5925 (dwarf2_find_base_address, dwarf2_rnglists_process)
5926 (dwarf2_ranges_process, fill_in_loclist_baton)
5927 (dwarf2_symbol_mark_computed): Update.
5928
c2d50fd0
TT
59292020-03-26 Tom Tromey <tom@tromey.com>
5930
5931 * dwarf2/read.c (struct die_info): Move to die.h.
5932 * dwarf2/die.h: New file.
5933
0df7ad3a
TT
59342020-03-26 Tom Tromey <tom@tromey.com>
5935
5936 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5937 * dwarf2/read.c
5938 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5939 Move to line-header.c.
5940 (read_checked_initial_length_and_offset, read_formatted_entries):
5941 Likewise.
5942 (dwarf_decode_line_header): Split into two.
5943 * dwarf2/line-header.c
5944 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5945 Move from read.c.
5946 (read_checked_initial_length_and_offset, read_formatted_entries):
5947 Likewise.
5948 (dwarf_decode_line_header): New function, split from read.c.
5949
86c0bb4c
TT
59502020-03-26 Tom Tromey <tom@tromey.com>
5951
5952 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5953 Declare method.
5954 * dwarf2/read.c (read_attribute_value): Update.
5955 (dwarf2_per_objfile::read_line_string): Rename from
5956 read_indirect_line_string.
5957 (read_formatted_entries): Update.
5958
2ef46c2f
TT
59592020-03-26 Tom Tromey <tom@tromey.com>
5960
5961 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5962 variable.
5963
4f9c1eda
TT
59642020-03-26 Tom Tromey <tom@tromey.com>
5965
5966 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5967 const.
5968 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5969 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5970 parameter const.
5971
5a0e026f
TT
59722020-03-26 Tom Tromey <tom@tromey.com>
5973
5974 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
5975 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
5976 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
5977 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
5978
8844c11b
TT
59792020-03-26 Tom Tromey <tom@tromey.com>
5980
5981 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
5982 file_names_size, file_full_name, file_file_name>: Use const.
5983 <file_name_at, file_names>: Add const overload.
5984 * dwarf2/line-header.c (line_header::file_file_name)
5985 (line_header::file_full_name): Update.
5986
c90ec28a
TT
59872020-03-26 Tom Tromey <tom@tromey.com>
5988
5989 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
5990 (macro_start_file, consume_improper_spaces)
5991 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
5992 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
5993 (dwarf_decode_macros): Move to macro.c.
5994 * dwarf2/macro.c: New file.
5995 * dwarf2/macro.h: New file.
5996 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
5997
4f44ae6c
TT
59982020-03-26 Tom Tromey <tom@tromey.com>
5999
6000 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6001 method.
6002 * dwarf2/section.c: New method. From
6003 read_indirect_string_at_offset_from.
6004 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6005 (read_indirect_string_at_offset_from): Move to section.c.
6006 (read_indirect_string_at_offset): Rewrite.
6007 (read_indirect_line_string_at_offset): Remove.
6008 (read_indirect_string, read_indirect_line_string)
6009 (dwarf_decode_macro_bytes): Update.
6010
a0194fa8
TT
60112020-03-26 Tom Tromey <tom@tromey.com>
6012
6013 * dwarf2/section.h (struct dwarf2_section_info)
6014 <overload_complaint>: Declare.
6015 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6016 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6017 Rename from dwarf2_section_buffer_overflow_complaint.
6018 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6019 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6020
3d27bbdb
TT
60212020-03-26 Tom Tromey <tom@tromey.com>
6022
6023 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6024 Declare.
6025 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6026 Move from read.c.
6027 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6028 to section.c.
6029
9eac9650
TT
60302020-03-26 Tom Tromey <tom@tromey.com>
6031
6032 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6033
bf80d710
TT
60342020-03-26 Tom Tromey <tom@tromey.com>
6035
6036 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6037 "builder".
6038 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6039 parameter.
6040 (dwarf_decode_macros): Update.
6041
0314b390
TT
60422020-03-26 Tom Tromey <tom@tromey.com>
6043
6044 * dwarf2/read.c (read_attribute_value): Update.
6045 (read_indirect_string_from_dwz): Move to dwz.c; change into
6046 method.
6047 (dwarf_decode_macro_bytes): Update.
6048 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6049 * dwarf2/dwz.c: New file.
6050 * Makefile.in (COMMON_SFILES): Add dwz.c.
6051
9fda78b6
TT
60522020-03-26 Tom Tromey <tom@tromey.com>
6053
6054 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6055 * dwarf2/read.c: Add include.
6056 * dwarf2/index-write.c: Add include.
6057 * dwarf2/index-cache.c: Add include.
6058 * dwarf2/dwz.h: New file.
6059
33aa3c10
TT
60602020-03-25 Tom Tromey <tom@tromey.com>
6061
6062 * compile/compile-object-load.c (get_out_value_type): Mention
6063 correct symbol name in error message.
6064
d503b685
HD
60652020-03-25 Hannes Domani <ssbssa@yahoo.de>
6066
6067 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6068
7b1eff95
TV
60692020-03-25 Tom de Vries <tdevries@suse.de>
6070
6071 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6072 * symmisc.c (dump_symtab_1): Print user and includes fields.
6073 (maintenance_info_symtabs): Same.
6074
dd895392
AB
60752020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6076
6077 PR gdb/25534
6078 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6079 (riscv_regcache_cooked_write): New function.
6080 (riscv_push_dummy_call): Use new function.
6081 (riscv_return_value): Likewise.
6082
5ab2fbf1
SM
60832020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6084
6085 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6086 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6087 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6088 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6089 * infrun.c (follow_fork): Likewise.
6090 (follow_fork_inferior): Likewise.
6091 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6092 * linux-nat.h (class linux_nat_target): Likewise.
6093 * remote.c (class remote_target) <follow_fork>: Likewise.
6094 (remote_target::follow_fork): Likewise.
6095 * target-delegates.c: Re-generate.
6096 * target.c (default_follow_fork): Likewise.
6097 (target_follow_fork): Likewise.
6098 * target.h (struct target_ops) <follow_fork>: Likewise.
6099 (target_follow_fork): Likewise.
6100
a64fafb5
TV
61012020-03-24 Tom de Vries <tdevries@suse.de>
6102
6103 * psymtab.c (maintenance_info_psymtabs): Print user field.
6104
fe26d3a3
TT
61052020-03-20 Tom Tromey <tromey@adacore.com>
6106
6107 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6108 const.
6109 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6110 const.
6111
c884cc46
SM
61122020-03-20 Simon Marchi <simon.marchi@efficios.com>
6113
6114 * ptrace.m4: Don't check for ptrace declaration.
6115 * config.in: Re-generate.
6116 * configure: Re-generate.
6117 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6118 not defined.
6119
1ff700c2
KR
61202020-03-20 Kamil Rytarowski <n54@gmx.com>
6121
6122 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6123 `PTRACE_TYPE_RET'.
6124 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6125 * sparc-nat.c (gdb_ptrace): Likewise.
6126 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6127
f7d4f0b1
TT
61282020-03-20 Tom Tromey <tromey@adacore.com>
6129
6130 * c-exp.y (lex_one_token): Fix assert.
6131
f67210ff
TT
61322020-03-20 Tom Tromey <tromey@adacore.com>
6133
6134 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6135 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6136 strncpy call.
6137
1773be9e
TT
61382020-03-20 Tom Tromey <tromey@adacore.com>
6139
6140 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6141
70304be9
TT
61422020-03-20 Tom Tromey <tromey@adacore.com>
6143
6144 * ada-valprint.c (print_variant_part): Remove parameters; switch
6145 to value-based API.
6146 (print_field_values): Likewise.
6147 (ada_val_print_struct_union): Likewise.
6148 (ada_value_print_1): Update.
6149
9faa006d
KR
61502020-03-20 Kamil Rytarowski <n54@gmx.com>
6151
6152 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6153 nbsd_nat_target instead of inf_ptrace_target.
6154 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6155 nbsd_nat_target.
6156
4a90f062
KR
61572020-03-20 Kamil Rytarowski <n54@gmx.com>
6158
6159 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6160 it to the ptrace call.
6161 * (store_registers): Likewise.
6162
61632020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6164
6165 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6166 it to the ptrace call.
6167 * (store_registers): Likewise.
6168
2d07da27
LM
61692020-03-19 Luis Machado <luis.machado@linaro.org>
6170
6171 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6172 valid, fetch vg value from ptrace.
6173
f09db380
KR
61742020-03-19 Kamil Rytarowski <n54@gmx.com>
6175 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6176 * inf-ptrace.c: Likewise.
6177 * (gdb_ptrace): Add.
6178 * (inf_ptrace_target::resume): Update.
6179 * (inf_ptrace_target::xfer_partial): Likewise.
6180 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6181 * (inf_ptrace_peek_poke): Update.
6182
fcc7376e
KR
61832020-03-19 Kamil Rytarowski <n54@gmx.com>
6184
6185 * x86-bsd-nat.c (gdb_ptrace): New.
6186 * (x86bsd_dr_set): Add new argument `ptid'.
6187 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6188 x86bsd_dr_set_addr): Update.
6189
cada5fc9
AB
61902020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6191
6192 * remote.c (remote_target::process_stop_reply): Handle events for
6193 all threads differently.
6194
19a2740f
AB
61952020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6196
6197 * completer.c (completion_tracker::remove_completion): Define new
6198 function.
6199 * completer.h (completion_tracker::remove_completion): Declare new
6200 function.
6201 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6202 when adding a C++ function symbol.
6203
724fd9ba
AB
62042020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6205
6206 * completer.c (completion_tracker::completion_hash_entry): Define
6207 new class.
6208 (advance_to_filename_complete_word_point): Call
6209 recompute_lowest_common_denominator.
6210 (completion_tracker::completion_tracker): Call discard_completions
6211 to setup the hash table.
6212 (completion_tracker::discard_completions): Allow for being called
6213 from the constructor, pass new equal function, and element deleter
6214 when constructing the hash table. Initialise new class member
6215 variables.
6216 (completion_tracker::maybe_add_completion): Remove use of
6217 m_entries_vec, and store more information into m_entries_hash.
6218 (completion_tracker::recompute_lcd_visitor): New function, most
6219 content taken from...
6220 (completion_tracker::recompute_lowest_common_denominator):
6221 ...here, this now just visits each item in the hash calling the
6222 above visitor.
6223 (completion_tracker::build_completion_result): Remove use of
6224 m_entries_vec, call recompute_lowest_common_denominator.
6225 * completer.h (completion_tracker::have_completions): Remove use
6226 of m_entries_vec.
6227 (completion_tracker::completion_hash_entry): Declare new class.
6228 (completion_tracker::recompute_lowest_common_denominator): Change
6229 function signature.
6230 (completion_tracker::recompute_lcd_visitor): Declare new function.
6231 (completion_tracker::m_entries_vec): Delete.
6232 (completion_tracker::m_entries_hash): Initialize to NULL.
6233 (completion_tracker::m_lowest_common_denominator_valid): New
6234 member variable.
6235 (completion_tracker::m_lowest_common_denominator_max_length): New
6236 member variable.
6237
5a82b8a1
KR
62382020-03-17 Kamil Rytarowski <n54@gmx.com>
6239
6240 * regformats/regdef.h: Put reg in gdb namespace.
6241
fb516a69
KR
62422020-03-17 Kamil Rytarowski <n54@gmx.com>
6243
6244 * i386-bsd-nat.c (gdb_ptrace): New.
6245 * (i386bsd_fetch_inferior_registers,
6246 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6247 * (i386bsd_fetch_inferior_registers,
6248 i386bsd_store_inferior_registers) Use gdb_ptrace.
6249
1c0aa1fb
KR
62502020-03-17 Kamil Rytarowski <n54@gmx.com>
6251
6252 * amd64-bsd-nat.c (gdb_ptrace): New.
6253 * (amd64bsd_fetch_inferior_registers,
6254 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6255 * (amd64bsd_fetch_inferior_registers,
6256 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6257
5ccd2fb7
KR
62582020-03-17 Kamil Rytarowski <n54@gmx.com>
6259
6260 * user-regs.c (user_reg::read): Rename to...
6261 (user_reg::xread): ...this.
6262 * (append_user_reg): Rename argument `read' to `xread'.
6263 * (user_reg_add_builtin): Likewise.
6264 * (user_reg_add): Likewise.
6265 * (value_of_user_reg): Likewise.
6266
2108a63a
KR
62672020-03-17 Kamil Rytarowski <n54@gmx.com>
6268
6269 * sparc-nat.c (gdb_ptrace): New.
6270 * sparc-nat.c (sparc_fetch_inferior_registers)
6271 (sparc_store_inferior_registers) Remove obsolete comment.
6272 * sparc-nat.c (sparc_fetch_inferior_registers)
6273 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6274 * sparc-nat.c (sparc_fetch_inferior_registers)
6275 (sparc_store_inferior_registers) Use gdb_ptrace.
6276
a225c9a8
KR
62772020-03-17 Kamil Rytarowski <n54@gmx.com>
6278
6279 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6280 it to the ptrace call.
6281 * sh-nbsd-nat.c (store_registers): Likewise.
6282
98097623
KR
62832020-03-17 Kamil Rytarowski <n54@gmx.com>
6284
6285 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6286 nbsd_nat_target instead of inf_ptrace_target.
6287 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6288 nbsd_nat_target.
6289
9e38d619
KR
62902020-03-17 Kamil Rytarowski <n54@gmx.com>
6291
6292 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6293
a2ecbe9f
KR
62942020-03-17 Kamil Rytarowski <n54@gmx.com>
6295
6296 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6297 <sys/sysctl.h>.
6298 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6299
58990295
TV
63002020-03-17 Tom de Vries <tdevries@suse.de>
6301
6302 PR gdb/23710
6303 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6304 fields.
6305 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6306 fields.
6307 (process_imported_unit_die): Skip import of c++ CUs.
6308
771dd3a8
TT
63092020-03-16 Tom Tromey <tom@tromey.com>
6310
6311 * p-valprint.c (pascal_object_print_value): Initialize
6312 base_value.
6313
817a7585
AK
63142020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6315 Shahab Vahedi <shahab@synopsys.com>
6316
6317 * Makefile.in: Add arch/arc.o
6318 * configure.tgt: Likewise.
6319 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6320 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6321 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6322 * arc-tdep.h (arc_read_description): Add proto type.
6323 * arch/arc.c: New file.
6324 * arch/arc.h: Likewise.
6325 * features/Makefile: Replace old target descriptions with new.
6326 * features/arc-arcompact.c: Remove.
6327 * features/arc-arcompact.xml: Likewise.
6328 * features/arc-v2.c: Likewise
6329 * features/arc-v2.xml: Likewise
6330 * features/arc/aux-arcompact.xml: New file.
6331 * features/arc/aux-v2.xml: Likewise.
6332 * features/arc/core-arcompact.xml: Likewise.
6333 * features/arc/core-v2.xml: Likewise.
6334 * features/arc/aux-arcompact.c: Generate.
6335 * features/arc/aux-v2.c: Likewise.
6336 * features/arc/core-arcompact.c: Likewise.
6337 * features/arc/core-v2.c: Likewise.
6338 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6339
67430cd0
TT
63402020-03-16 Tom Tromey <tromey@adacore.com>
6341
6342 PR gdb/25663:
6343 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6344 putting value into bcache.
6345
30efb6c7
SM
63462020-03-16 Simon Marchi <simon.marchi@efficios.com>
6347
6348 PR gdb/21500
6349 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6350 to...
6351 (amd64_windows_init_abi_common): ... this. Don't set size of
6352 long type.
6353 (amd64_windows_init_abi): New function.
6354 (amd64_cygwin_init_abi): New function.
6355 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6356 the Cygwin OS ABI.
6357 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6358 comment.
6359
8db52437
SM
63602020-03-16 Simon Marchi <simon.marchi@efficios.com>
6361
6362 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6363 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6364 (pe_import_directory_entry): New struct type.
6365 (is_linked_with_cygwin_dll): New function.
6366 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6367 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6368 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6369
5982a56a
SM
63702020-03-16 Simon Marchi <simon.marchi@efficios.com>
6371
6372 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6373 i386_cygwin_core_osabi_sniffer.
6374
7a1998df
SM
63752020-03-16 Simon Marchi <simon.marchi@efficios.com>
6376
6377 * i386-cygwin-tdep.c: Rename to...
6378 * i386-windows-tdep.c: ... this.
6379 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6380 i386-windows-tdep.c.
6381 * configure.tgt: Likewise.
6382
053205cc
SM
63832020-03-16 Simon Marchi <simon.marchi@efficios.com>
6384
6385 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6386 * osabi.c (gdb_osabi_names): Add "Windows".
6387 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6388 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6389 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6390 i386_cygwin_osabi_sniffer.
6391 (_initialize_i386_cygwin_tdep): Register OS ABI
6392 GDB_OSABI_WINDOWS for i386.
6393 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6394 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6395 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6396 for x86-64.
6397 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6398 when the target matches '*-*-mingw*'.
6399
fe4b2ee6
SM
64002020-03-16 Simon Marchi <simon.marchi@efficios.com>
6401
6402 * defs.h (enum gdb_osabi): Move to...
6403 * osabi.h (enum gdb_osabi): ... here.
6404 * gdbarch.sh: Include osabi.h in gdbarch.h.
6405 * gdbarch.h: Re-generate.
6406
cb9b645d
SM
64072020-03-16 Simon Marchi <simon.marchi@efficios.com>
6408
6409 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6410 function.
6411 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6412
3293bbaf
TT
64132020-03-14 Tom Tromey <tom@tromey.com>
6414
6415 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6416 for C++.
6417 (c_type_print_modifier): Likewise. Add "language" parameter.
6418 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6419 (c_type_print_base_1): Update.
6420 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6421 constants.
6422 * type-stack.c (type_stack::insert): Handle tp_atomic and
6423 tp_restrict.
6424 (type_stack::follow_type_instance_flags): Likewise.
6425 (type_stack::follow_types): Likewise. Merge type-following code.
6426 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6427 (space_identifier, cv_with_space_id)
6428 (const_or_volatile_or_space_identifier_noopt)
6429 (const_or_volatile_or_space_identifier): Remove.
6430 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6431 rules.
6432 (ptr_operator, typebase): Update.
6433 (enum token_flag) <FLAG_C>: New constant.
6434 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6435 "_Atomic".
6436 (lex_one_token): Handle FLAG_C.
6437
154151a6
KR
64382020-03-14 Kamil Rytarowski <n54@gmx.com>
6439
6440 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6441 it to the ptrace call.
6442 * m68k-bsd-nat.c (store_registers): Likewise.
6443
bc107784
KR
64442020-03-14 Kamil Rytarowski <n54@gmx.com>
6445
6446 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6447 gdb_byte *.
6448 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6449 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6450 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6451
01a80117
KR
64522020-03-14 Kamil Rytarowski <n54@gmx.com>
6453
6454 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6455 nbsd_nat_target instead of inf_ptrace_target.
6456 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6457 nbsd_nat_target.
6458
f90280ca
KR
64592020-03-14 Kamil Rytarowski <n54@gmx.com>
6460
6461 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6462 register_t.
6463
6def66f1
KR
64642020-03-14 Kamil Rytarowski <n54@gmx.com>
6465
6466 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6467 it to the ptrace call.
6468 * alpha-bsd-nat.c (store_registers): Likewise.
6469
66eaca97
KR
64702020-03-14 Kamil Rytarowski <n54@gmx.com>
6471
6472 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6473 includes.
6474 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6475 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6476 fill_fpregset): Likewise.
6477
4fed520b
KR
64782020-03-14 Kamil Rytarowski <n54@gmx.com>
6479
6480 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6481 nbsd_nat_target instead of inf_ptrace_target.
6482 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6483 nbsd_nat_target.
6484
2190cf06
KR
64852020-03-14 Kamil Rytarowski <n54@gmx.com>
6486
6487 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6488 register_t.
6489
75c56d3d
KR
64902020-03-14 Kamil Rytarowski <n54@gmx.com>
6491
6492 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6493 it to the ptrace call.
6494 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6495 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6496 * arm-nbsd-nat.c (store_register): Likewise.
6497 * arm-nbsd-nat.c (store_regs): Likewise.
6498 * arm-nbsd-nat.c (store_fp_register): Likewise.
6499 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6500
6018d381
KR
65012020-03-14 Kamil Rytarowski <n54@gmx.com>
6502
6503 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6504 nbsd_nat_target instead of inf_ptrace_target.
6505 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6506 nbsd_nat_target.
6507
013f99f0
KR
65082020-03-14 Kamil Rytarowski <n54@gmx.com>
6509
6510 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6511 it to the ptrace call.
6512 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6513
12753073
KR
65142020-03-14 Kamil Rytarowski <n54@gmx.com>
6515
6227b330
KR
6516 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6517 it to the ptrace call.
6518 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6519
65202020-03-14 Kamil Rytarowski <n54@gmx.com>
6521
6522 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6523 gdb_byte *.
12753073
KR
6524 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6525
d5be5fa4
KR
65262020-03-14 Kamil Rytarowski <n54@gmx.com>
6527
6528 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6529 instead of inf_ptrace_target.
6530 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6531 nbsd_nat_target.
6532
8110f842
KR
65332020-03-14 Kamil Rytarowski <n54@gmx.com>
6534
6535 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6536 register_t.
6537
52feded7
KR
65382020-03-14 Kamil Rytarowski <n54@gmx.com>
6539
6540 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6541 register_t.
6542
25567eee
KR
65432020-03-14 Kamil Rytarowski <n54@gmx.com>
6544
6545 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6546 register_t.
6547
426a9c18
TT
65482020-03-13 Tom Tromey <tom@tromey.com>
6549
6550 * value.h (val_print): Don't declare.
6551 * valprint.h (val_print_array_elements)
6552 (val_print_scalar_formatted, generic_val_print): Don't declare.
6553 * valprint.c (generic_val_print_array): Take a struct value.
6554 (generic_val_print_ptr, generic_val_print_memberptr)
6555 (generic_val_print_bool, generic_val_print_int)
6556 (generic_val_print_char, generic_val_print_complex)
6557 (generic_val_print): Remove.
6558 (generic_value_print): Update.
6559 (do_val_print): Remove unused parameters. Don't call
6560 la_val_print.
6561 (val_print): Remove.
6562 (common_val_print): Update. Don't call value_check_printable.
6563 (val_print_scalar_formatted, val_print_array_elements): Remove.
6564 * rust-lang.c (rust_val_print): Remove.
6565 (rust_language_defn): Update.
6566 * p-valprint.c (pascal_val_print): Remove.
6567 (pascal_value_print_inner): Update.
6568 (pascal_object_print_val_fields, pascal_object_print_val):
6569 Remove.
6570 (pascal_object_print_static_field): Update.
6571 * p-lang.h (pascal_val_print): Don't declare.
6572 * p-lang.c (pascal_language_defn): Update.
6573 * opencl-lang.c (opencl_language_defn): Update.
6574 * objc-lang.c (objc_language_defn): Update.
6575 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6576 * m2-lang.h (m2_val_print): Don't declare.
6577 * m2-lang.c (m2_language_defn): Update.
6578 * language.h (struct language_defn) <la_val_print>: Remove.
6579 * language.c (unk_lang_value_print_inner): Rename. Change
6580 argument types.
6581 (unknown_language_defn, auto_language_defn): Update.
6582 * go-valprint.c (go_val_print): Remove.
6583 * go-lang.h (go_val_print): Don't declare.
6584 * go-lang.c (go_language_defn): Update.
6585 * f-valprint.c (f_val_print): Remove.
6586 * f-lang.h (f_value_print): Don't declare.
6587 * f-lang.c (f_language_defn): Update.
6588 * d-valprint.c (d_val_print): Remove.
6589 * d-lang.h (d_value_print): Don't declare.
6590 * d-lang.c (d_language_defn): Update.
6591 * cp-valprint.c (cp_print_value_fields)
6592 (cp_print_value_fields_rtti, cp_print_value): Remove.
6593 (cp_print_static_field): Update.
6594 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6595 (c_val_print_struct, c_val_print_union, c_val_print_int)
6596 (c_val_print_memberptr, c_val_print): Remove.
6597 * c-lang.h (c_val_print_array, cp_print_value_fields)
6598 (cp_print_value_fields_rtti): Don't declare.
6599 * c-lang.c (c_language_defn, cplus_language_defn)
6600 (asm_language_defn, minimal_language_defn): Update.
6601 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6602 (ada_val_print_enum): Take a struct value.
6603 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6604 (ada_val_print): Remove.
6605 (ada_value_print_1): Update.
6606 (printable_val_type): Remove.
6607 * ada-lang.h (ada_val_print): Don't declare.
6608 * ada-lang.c (ada_language_defn): Update.
6609
42331a1e
TT
66102020-03-13 Tom Tromey <tom@tromey.com>
6611
6612 * valprint.c (do_val_print): Update.
6613 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6614 a struct value.
6615 (value_to_value_object_no_release): Declare.
6616 * python/py-value.c (value_to_value_object_no_release): New
6617 function.
6618 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6619 struct value.
6620 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6621 function.
6622 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6623 a struct value.
6624 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6625 Declare.
6626 (gdbscm_apply_val_pretty_printer): Take a struct value.
6627 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6628 value.
6629 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6630 value.
6631 * extension-priv.h (struct extension_language_ops)
6632 <apply_val_pretty_printer>: Take a struct value.
6633 * cp-valprint.c (cp_print_value): Create a struct value.
6634 (cp_print_value): Update.
6635
3a916a97
TT
66362020-03-13 Tom Tromey <tom@tromey.com>
6637
6638 * ada-valprint.c (print_field_values): Call common_val_print.
6639
b59eac37
TT
66402020-03-13 Tom Tromey <tom@tromey.com>
6641
6642 * ada-valprint.c (val_print_packed_array_elements): Remove
6643 bitoffset and val parameters. Call common_val_print.
6644 (ada_val_print_string): Remove offset, address, and original_value
6645 parameters.
6646 (ada_val_print_array): Update.
6647 (ada_value_print_array): New function.
6648 (ada_value_print_1): Call it.
6649
03371129
TT
66502020-03-13 Tom Tromey <tom@tromey.com>
6651
6652 * ada-valprint.c (ada_value_print): Use common_val_print.
6653
2e088f8b
TT
66542020-03-13 Tom Tromey <tom@tromey.com>
6655
6656 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6657
39ef85a8
TT
66582020-03-13 Tom Tromey <tom@tromey.com>
6659
6660 * ada-valprint.c (ada_value_print_num): New function.
6661 (ada_value_print_1): Use it.
6662
b9fa6e07
TT
66632020-03-13 Tom Tromey <tom@tromey.com>
6664
6665 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6666
416595d6
TT
66672020-03-13 Tom Tromey <tom@tromey.com>
6668
6669 * ada-valprint.c (ada_value_print_ptr): New function.
6670 (ada_value_print_1): Use it.
6671
5b5e15ec
TT
66722020-03-13 Tom Tromey <tom@tromey.com>
6673
6674 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6675 call common_val_print.
6676 (ada_val_print_1): Update.
6677 (ada_value_print_1): New function.
6678 (ada_value_print_inner): Rewrite.
6679
fbf54e75
TT
66802020-03-13 Tom Tromey <tom@tromey.com>
6681
6682 * cp-valprint.c (cp_print_value_fields): Update.
6683 (cp_print_value): New function.
6684
64b653ca
TT
66852020-03-13 Tom Tromey <tom@tromey.com>
6686
6687 * m2-valprint.c (m2_value_print_inner): Use
6688 cp_print_value_fields.
6689 * cp-valprint.c (cp_print_value_fields): New function.
6690 * c-valprint.c (c_value_print_struct): New function.
6691 (c_value_print_inner): Use c_value_print_struct.
6692 * c-lang.h (cp_print_value_fields): Declare.
6693
6999f067
TT
66942020-03-13 Tom Tromey <tom@tromey.com>
6695
6696 * c-valprint.c (c_value_print_array): New function.
6697 (c_value_print_inner): Use it.
6698
ce80b8bd
TT
66992020-03-13 Tom Tromey <tom@tromey.com>
6700
6701 * c-valprint.c (c_value_print_memberptr): New function.
6702 (c_value_print_inner): Use it.
6703
2faac269
TT
67042020-03-13 Tom Tromey <tom@tromey.com>
6705
6706 * c-valprint.c (c_value_print_int): New function.
6707 (c_value_print_inner): Use it.
6708
da3e2c29
TT
67092020-03-13 Tom Tromey <tom@tromey.com>
6710
6711 * c-valprint.c (c_value_print_ptr): New function.
6712 (c_value_print_inner): Use it.
6713
50836231
TT
67142020-03-13 Tom Tromey <tom@tromey.com>
6715
6716 * c-valprint.c (c_value_print_inner): Rewrite.
6717
4f412b6e
TT
67182020-03-13 Tom Tromey <tom@tromey.com>
6719
6720 * valprint.c (generic_value_print_complex): New function.
6721 (generic_value_print): Use it.
6722
f5354008
TT
67232020-03-13 Tom Tromey <tom@tromey.com>
6724
6725 * valprint.c (generic_val_print_float): Don't call
6726 val_print_scalar_formatted.
6727 (generic_val_print, generic_value_print): Update.
6728
3eec3b05
TT
67292020-03-13 Tom Tromey <tom@tromey.com>
6730
6731 * valprint.c (generic_value_print_char): New function
6732 (generic_value_print): Use it.
6733
fdddfccb
TT
67342020-03-13 Tom Tromey <tom@tromey.com>
6735
6736 * valprint.c (generic_value_print_int): New function.
6737 (generic_value_print): Use it.
6738
6dde7521
TT
67392020-03-13 Tom Tromey <tom@tromey.com>
6740
6741 * valprint.c (generic_value_print_bool): New function.
6742 (generic_value_print): Use it.
6743
4112d2e6
TT
67442020-03-13 Tom Tromey <tom@tromey.com>
6745
6746 * valprint.c (generic_val_print_func): Simplify.
6747 (generic_val_print, generic_value_print): Update.
6748
65786af6
TT
67492020-03-13 Tom Tromey <tom@tromey.com>
6750
6751 * valprint.c (generic_val_print_flags): Remove.
6752 (generic_val_print, generic_value_print): Update.
6753 (val_print_type_code_flags): Add original_value parameter.
6754
40f3ce18
TT
67552020-03-13 Tom Tromey <tom@tromey.com>
6756
6757 * valprint.c (generic_val_print): Update.
6758 (generic_value_print): Update.
6759 * valprint.c (generic_val_print_enum): Don't call
6760 val_print_scalar_formatted.
6761
2a5b130b
TT
67622020-03-13 Tom Tromey <tom@tromey.com>
6763
6764 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6765 * valprint.c (generic_value_print_ptr): New function.
6766
abc66ce9
TT
67672020-03-13 Tom Tromey <tom@tromey.com>
6768
6769 * valprint.c (generic_value_print): Rewrite.
6770
07a32858
TT
67712020-03-13 Tom Tromey <tom@tromey.com>
6772
6773 * p-valprint.c (pascal_object_print_value_fields)
6774 (pascal_object_print_value): New functions.
6775
64d64d3a
TT
67762020-03-13 Tom Tromey <tom@tromey.com>
6777
6778 * p-valprint.c (pascal_value_print_inner): Rewrite.
6779
6a95a1f5
TT
67802020-03-13 Tom Tromey <tom@tromey.com>
6781
6782 * f-valprint.c (f_value_print_innner): Rewrite.
6783
59fcdac6
TT
67842020-03-13 Tom Tromey <tom@tromey.com>
6785
6786 * m2-valprint.c (m2_print_unbounded_array): New overload.
6787 (m2_print_unbounded_array): Update.
6788 (m2_print_array_contents): Take a struct value.
6789 (m2_value_print_inner): Rewrite.
6790
d133c3e1
TT
67912020-03-13 Tom Tromey <tom@tromey.com>
6792
6793 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6794 (d_value_print_inner): New function.
6795 * d-lang.h (d_value_print_inner): Declare.
6796 * d-lang.c (d_language_defn): Use d_value_print_inner.
6797
23b0f06b
TT
67982020-03-13 Tom Tromey <tom@tromey.com>
6799
6800 * go-valprint.c (go_value_print_inner): New function.
6801 * go-lang.h (go_value_print_inner): Declare.
6802 * go-lang.c (go_language_defn): Use go_value_print_inner.
6803
5f56f7cb
TT
68042020-03-13 Tom Tromey <tom@tromey.com>
6805
6806 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6807 API.
6808 (rust_val_print): Rewrite.
6809 (rust_value_print_inner): New function, from rust_val_print.
6810 (rust_language_defn): Use rust_value_print_inner.
6811
26792ee0
TT
68122020-03-13 Tom Tromey <tom@tromey.com>
6813
6814 * ada-valprint.c (ada_value_print_inner): New function.
6815 * ada-lang.h (ada_value_print_inner): Declare.
6816 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6817
24051bbe
TT
68182020-03-13 Tom Tromey <tom@tromey.com>
6819
6820 * f-valprint.c (f_value_print_innner): New function.
6821 * f-lang.h (f_value_print_innner): Declare.
6822 * f-lang.c (f_language_defn): Use f_value_print_innner.
6823
c0941be6
TT
68242020-03-13 Tom Tromey <tom@tromey.com>
6825
6826 * p-valprint.c (pascal_value_print_inner): New function.
6827 * p-lang.h (pascal_value_print_inner): Declare.
6828 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6829
62c4663d
TT
68302020-03-13 Tom Tromey <tom@tromey.com>
6831
6832 * m2-valprint.c (m2_value_print_inner): New function.
6833 * m2-lang.h (m2_value_print_inner): Declare.
6834 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6835
62182190
TT
68362020-03-13 Tom Tromey <tom@tromey.com>
6837
6838 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6839 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6840 * c-valprint.c (c_value_print_inner): New function.
6841 * c-lang.h (c_value_print_inner): Declare.
6842 * c-lang.c (c_language_defn, cplus_language_defn)
6843 (asm_language_defn, minimal_language_defn): Use
6844 c_value_print_inner.
6845
1e592a8a
TT
68462020-03-13 Tom Tromey <tom@tromey.com>
6847
6848 * p-valprint.c (pascal_object_print_value_fields): Now static.
6849 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6850
7fe471e9
TT
68512020-03-13 Tom Tromey <tom@tromey.com>
6852
6853 * c-valprint.c (c_val_print_array): Simplify.
6854
d121c6ce
TT
68552020-03-13 Tom Tromey <tom@tromey.com>
6856
6857 * valprint.c (value_print_array_elements): New function.
6858 * valprint.h (value_print_array_elements): Declare.
6859
4dba70ee
TT
68602020-03-13 Tom Tromey <tom@tromey.com>
6861
6862 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6863 * mips-tdep.c (mips_print_register): Use
6864 value_print_scalar_formatted.
6865
4f9ae810
TT
68662020-03-13 Tom Tromey <tom@tromey.com>
6867
6868 * valprint.h (value_print_scalar_formatted): Declare.
6869 * valprint.c (value_print_scalar_formatted): New function.
6870
156bfec9
TT
68712020-03-13 Tom Tromey <tom@tromey.com>
6872
6873 * valprint.h (generic_value_print): Declare.
6874 * valprint.c (generic_value_print): New function.
6875
2b4e573d
TT
68762020-03-13 Tom Tromey <tom@tromey.com>
6877
6878 * valprint.c (do_val_print): Call la_value_print_inner, if
6879 available.
6880 * rust-lang.c (rust_language_defn): Update.
6881 * p-lang.c (pascal_language_defn): Update.
6882 * opencl-lang.c (opencl_language_defn): Update.
6883 * objc-lang.c (objc_language_defn): Update.
6884 * m2-lang.c (m2_language_defn): Update.
6885 * language.h (struct language_defn) <la_value_print_inner>: New
6886 member.
6887 * language.c (unknown_language_defn, auto_language_defn): Update.
6888 * go-lang.c (go_language_defn): Update.
6889 * f-lang.c (f_language_defn): Update.
6890 * d-lang.c (d_language_defn): Update.
6891 * c-lang.c (c_language_defn, cplus_language_defn)
6892 (asm_language_defn, minimal_language_defn): Update.
6893 * ada-lang.c (ada_language_defn): Update.
6894
a1f6a07c
TT
68952020-03-13 Tom Tromey <tom@tromey.com>
6896
6897 * c-valprint.c (c_value_print): Use common_val_print.
6898
410cf315
TT
68992020-03-13 Tom Tromey <tom@tromey.com>
6900
6901 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6902
72a45c93
TT
69032020-03-13 Tom Tromey <tom@tromey.com>
6904
6905 * f-valprint.c (f77_print_array_1, f_val_print): Use
6906 common_val_print.
6907
040f66bd
TT
69082020-03-13 Tom Tromey <tom@tromey.com>
6909
6910 * riscv-tdep.c (riscv_print_one_register_info): Use
6911 common_val_print.
6912
a6e05a6c
TT
69132020-03-13 Tom Tromey <tom@tromey.com>
6914
6915 * mi/mi-main.c (output_register): Use common_val_print.
6916
3444c526
TT
69172020-03-13 Tom Tromey <tom@tromey.com>
6918
6919 * infcmd.c (default_print_one_register_info): Use
6920 common_val_print.
6921
c2a44efe
TT
69222020-03-13 Tom Tromey <tom@tromey.com>
6923
6924 * valprint.h (common_val_print_checked): Declare.
6925 * valprint.c (common_val_print_checked): New function.
6926 * stack.c (print_frame_arg): Use common_val_print_checked.
6927
b0c26e99
TT
69282020-03-13 Tom Tromey <tom@tromey.com>
6929
6930 * valprint.c (do_val_print): New function, from val_print.
6931 (val_print): Use do_val_print.
6932 (common_val_print): Use do_val_print.
6933
ce3acbe9
TT
69342020-03-13 Tom Tromey <tom@tromey.com>
6935
6936 * valprint.c (value_print): Use scoped_value_mark.
6937
96c7f873
TV
69382020-03-13 Tom de Vries <tdevries@suse.de>
6939
6940 PR symtab/25646
6941 * psymtab.c (partial_symtab::partial_symtab): Don't set
6942 globals_offset and statics_offset. Push element onto
6943 current_global_psymbols and current_static_psymbols stacks.
6944 (concat): New function.
6945 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6946 element from current_global_psymbols and current_static_psymbols
6947 stacks. Concat popped elements to global_psymbols and
6948 static_symbols.
6949 (add_psymbol_to_list): Use current_global_psymbols and
6950 current_static_psymbols stacks.
6951 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6952 current_static_psymbols fields.
6953
6ba0a321
CB
69542020-03-12 Christian Biesinger <cbiesinger@google.com>
6955
6956 * corelow.c (sniff_core_bfd): Remove.
6957 (class core_target) <m_core_vec>: Remove.
6958 (core_target::core_target): Update.
6959 (core_file_fns): Remove.
6960 (deprecated_add_core_fns): Remove.
6961 (default_core_sniffer): Remove.
6962 (sniff_core_bfd): Remove.
6963 (default_check_format): Remove.
6964 (gdb_check_format): Remove.
6965 (core_target_open): Update.
6966 (core_target::get_core_register_section): Update.
6967 (get_core_registers_cb): Update.
6968 (core_target::fetch_registers): Update.
6969 * gdbcore.h (struct core_fns): Remove.
6970 (deprecated_add_core_fns): Remove.
6971 (default_core_sniffer): Remove.
6972 (default_check_format): Remove.
6973
227031b2
TT
69742020-03-12 Tom Tromey <tom@tromey.com>
6975
6976 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
6977 CORE_ADDR.
6978 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
6979
53807e9f
TT
69802020-03-12 Tom Tromey <tom@tromey.com>
6981
6982 * remote.c (remote_target::download_tracepoint)
6983 (remote_target::enable_tracepoint)
6984 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
6985 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
6986 sprintf_vma.
6987
64f25102
TT
69882020-03-12 Tom Tromey <tom@tromey.com>
6989
6990 * symfile-mem.c: Update CORE_ADDR size assert.
6991
272cd5a3
SM
69922020-03-12 Simon Marchi <simon.marchi@efficios.com>
6993
6994 * selftest.m4: Move to gdbsupport/.
6995 * acinclude.m4: Update path to selftest.m4.
6996
74cd3f9d
SM
69972020-03-12 Simon Marchi <simon.marchi@efficios.com>
6998
6999 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7000 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7001 gdbarch-selfselftests.c and selftest-arch.c.
7002 (SUBDIR_UNITTESTS_OBS): Rename to...
7003 (SELFTESTS_OBS): ... this.
7004 (COMMON_SFILES): Remove disasm-selftests.c and
7005 gdbarch-selftests.c.
7006 * configure.ac: Don't add selftest-arch.{c,o} to
7007 CONFIG_{SRCS,OBS}.
7008 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7009 preprocessor conditions.
7010
db6878ac
SM
70112020-03-12 Simon Marchi <simon.marchi@efficios.com>
7012
7013 * configure.ac: Don't source bfd/development.sh.
7014 * selftest.m4: Modify comment.
7015 * configure: Re-generate.
7016
4d696a5c
SM
70172020-03-12 Simon Marchi <simon.marchi@efficios.com>
7018
7019 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7020 not "true" or "false".
7021 * configure: Re-generate.
7022
8dd8e1c7
CB
70232020-03-12 Christian Biesinger <cbiesinger@google.com>
7024
7025 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7026 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7027 renamed to arm_nbsd_supply_gregset.
7028 (fetch_register): Update to call arm_nbsd_supply_gregset.
7029 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7030 (arm_netbsd_nat_target::fetch_registers): Update.
7031 (fetch_elfcore_registers): Removed.
7032 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7033 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7034 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7035 not require NetBSD system headers.
7036 (arm_nbsd_regset): New struct.
7037 (arm_nbsd_iterate_over_regset_sections): New function.
7038 (arm_netbsd_init_abi_common): Updated to call
7039 set_gdbarch_iterate_over_regset_sections.
7040 * arm-nbsd-tdep.h: New file.
7041
dd69bf7a
KB
70422020-03-11 Kevin Buettner <kevinb@redhat.com>
7043
7044 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7045 recursion.
7046
a0761e34
SM
70472020-03-11 Simon Marchi <simon.marchi@efficios.com>
7048
7049 * configure: Re-generate.
7050
e7a82140
TT
70512020-03-11 Tom Tromey <tromey@adacore.com>
7052
7053 * ada-typeprint.c (print_choices): Fix comment.
7054
dcc050c8
AB
70552020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7056
7057 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7058 previous item in the list, when the list has no items.
7059
1c33af77
TV
70602020-03-11 Tom de Vries <tdevries@suse.de>
7061
7062 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7063 PROP_LOCLIST handling code.
7064
8c95582d
AB
70652020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7066
7067 * buildsym-legacy.c (record_line): Pass extra parameter to
7068 record_line.
7069 * buildsym.c (buildsym_compunit::record_line): Take an extra
7070 parameter, reduce duplication in the line table, and record the
7071 is_stmt flag in the line table.
7072 * buildsym.h (buildsym_compunit::record_line): Add extra
7073 parameter.
7074 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7075 non-statement lines.
7076 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7077 this to the symtab builder.
7078 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7079 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7080 through to dwarf_record_line_1.
7081 * infrun.c (process_event_stop_test): When stepping, don't stop at
7082 a non-statement instruction, and only refresh the step info when
7083 we land in the middle of a line's range. Also add an extra
7084 comment.
7085 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7086 field.
7087 * record-btrace.c (btrace_find_line_range): Only record lines
7088 marked as is-statement.
7089 * stack.c (frame_show_address): Show the frame address if we are
7090 in a non-statement sal.
7091 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7092 (maintenance_print_one_line_table): Print a header for the is_stmt
7093 column, and include is_stmt information in the output.
7094 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7095 preference to non-statements.
7096 (find_pcs_for_symtab_line): Prefer is-statement entries.
7097 (find_line_common): Likewise.
7098 * symtab.h (struct linetable_entry): Add is_stmt field.
7099 (struct symtab_and_line): Likewise.
7100 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7101 arranging the line table.
7102
e4003a34
TV
71032020-03-07 Tom de Vries <tdevries@suse.de>
7104
7105 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7106 DIE.
7107
e8932576
TT
71082020-03-07 Tom Tromey <tom@tromey.com>
7109
7110 * valops.c (value_literal_complex): Remove obsolete comment.
7111 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7112 comment.
7113
29734269
SM
71142020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7115
7116 * infrun.h: Forward-declare thread_info.
7117 (set_step_info): Add thread_info parameter, add doc.
7118 * infrun.c (set_step_info): Add thread_info parameter, move doc
7119 to header.
7120 * infrun.c (process_event_stop_test): Pass thread to
7121 set_step_info call.
7122 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7123 set_step_info.
7124 (prepare_one_step): Add thread_info parameter, pass it to
7125 set_step_frame and prepare_one_step (recursive) call.
7126 (step_1): Pass thread to prepare_one_step call.
7127 (step_command_fsm::should_stop): Pass thread to
7128 prepare_one_step.
7129 (until_next_fsm): Pass thread to set_step_frame call.
7130 (finish_command): Pass thread to set_step_info call.
7131
b7d64b29
HD
71322020-03-06 Hannes Domani <ssbssa@yahoo.de>
7133
7134 * windows-tdep.c (windows_solib_create_inferior_hook):
7135 Check if inferior is running.
7136
09f2921c
TV
71372020-03-06 Tom de Vries <tdevries@suse.de>
7138
7139 * NEWS: Fix "the the".
7140 * ctfread.c: Same.
7141
fd760e79
TV
71422020-03-06 Tom de Vries <tdevries@suse.de>
7143
7144 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7145
20ea4a60
AB
71462020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7147
7148 * .dir-locals.el: Add a comment referencing the other copies of
7149 this file.
7150
0afbabf0
JB
71512020-03-05 John Baldwin <jhb@FreeBSD.org>
7152
7153 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7154 psargs.
7155
842806cb
TBA
71562020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7157
7158 * .gitattributes: New file.
7159
be1e3d3e
TT
71602020-03-04 Tom Tromey <tom@tromey.com>
7161
7162 * symmisc.c (print_symbol_bcache_statistics)
7163 (print_objfile_statistics): Update.
7164 * symfile.c (allocate_symtab): Use intern.
7165 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7166 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7167 macro_cache>: Remove.
7168 <string_cache>: New member.
7169 (struct objfile) <intern>: New methods.
7170 * elfread.c (elf_symtab_read): Use intern.
7171 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7172 (dwarf2_compute_name, dwarf2_physname)
7173 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7174 names.
7175 (guess_partial_die_structure_name): Update.
7176 (partial_die_info::fixup): Intern name.
7177 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7178 name.
7179 (dwarf2_name): Intern name. Update.
7180 * buildsym.c (buildsym_compunit::get_macro_table): Use
7181 string_cache.
7182
4e7625fd
TT
71832020-03-04 Tom Tromey <tom@tromey.com>
7184
7185 * jit.c (bfd_open_from_target_memory): Make "target" const.
7186 * corefile.c (gnutarget): Now const.
7187 * gdbcore.h (gnutarget): Now const.
7188
46f9f931
HD
71892020-03-04 Hannes Domani <ssbssa@yahoo.de>
7190
7191 * NEWS: Mention support for WOW64 processes.
7192 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7193 (amd64_windows_segment_register_p): Remove static.
7194 (_initialize_amd64_windows_nat): Update.
7195 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7196 * i386-windows-nat.c (context_offset): Update.
7197 (i386_mappings): Rename and remove static.
7198 (i386_windows_segment_register_p): Remove static.
7199 (_initialize_i386_windows_nat): Update.
7200 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7201 (STATUS_WX86_SINGLE_STEP): New macro.
7202 (EnumProcessModulesEx): New macro.
7203 (Wow64SuspendThread): New macro.
7204 (Wow64GetThreadContext): New macro.
7205 (Wow64SetThreadContext): New macro.
7206 (Wow64GetThreadSelectorEntry): New macro.
7207 (windows_set_context_register_offsets): Add static.
7208 (windows_set_segment_register_p): Likewise.
7209 (windows_add_thread): Adapt for WOW64 processes.
7210 (windows_fetch_one_register): Likewise.
7211 (windows_nat_target::fetch_registers): Likewise.
7212 (windows_store_one_register): Likewise.
7213 (display_selector): Likewise.
7214 (display_selectors): Likewise.
7215 (handle_exception): Likewise.
7216 (windows_continue): Likewise.
7217 (windows_nat_target::resume): Likewise.
7218 (windows_add_all_dlls): Likewise.
7219 (do_initial_windows_stuff): Likewise.
7220 (windows_nat_target::attach): Likewise.
7221 (windows_get_exec_module_filename): Likewise.
7222 (windows_nat_target::create_inferior): Likewise.
7223 (windows_xfer_siginfo): Likewise.
7224 (_initialize_loadable): Initialize Wow64SuspendThread,
7225 Wow64GetThreadContext, Wow64SetThreadContext,
7226 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7227 * windows-nat.h (windows_set_context_register_offsets):
7228 Remove declaration.
7229 (windows_set_segment_register_p): Likewise.
7230 (i386_windows_segment_register_p): Add declaration.
7231 (amd64_windows_segment_register_p): Likewise.
7232
440cf44e
LM
72332020-03-04 Luis Machado <luis.machado@linaro.org>
7234
7235 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7236 in "info registers" for AArch64/ARM.
7237
7238 The change caused "info registers" to not print GPR's.
7239
7240 gdb/ChangeLog:
7241
7242 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7243
7244 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7245 when reg->group is empty and reggroup is not.
7246
1009d92f
TT
72472020-03-03 Tom Tromey <tromey@adacore.com>
7248
7249 * dwarf2/frame.c (struct dwarf2_frame_cache)
7250 <checked_tailcall_bottom, entry_cfa_sp_offset,
7251 entry_cfa_sp_offset_p>: Remove members.
7252 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7253 (dwarf2_frame_prev_register): Don't call
7254 dwarf2_tailcall_sniffer_first.
7255 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7256 * frame-unwind.c (add_unwinder): New fuction.
7257 (frame_unwind_init): Use it. Add tailcall unwinder.
7258
5e5d66b6
AB
72592020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7260 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7261
7262 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7263 value should be printed as true.
7264
584cf46d
HD
72652020-03-03 Hannes Domani <ssbssa@yahoo.de>
7266
7267 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7268 (windows_init_abi): Set and use windows_so_ops.
7269
7b973adc
SDJ
72702020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7271
7272 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7273 when verifying if dealing with a convenience variable.
7274
bb7b70ab
LM
72752020-03-03 Luis Machado <luis.machado@linaro.org>
7276
7277 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7278
9822cb57
SM
72792020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7280
7281 * infrun.c (gdbarch_supports_displaced_stepping): New.
7282 (use_displaced_stepping): Break up conditions in smaller pieces.
7283 Use gdbarch_supports_displaced_stepping.
7284 (displaced_step_prepare_throw): Use
7285 gdbarch_supports_displaced_stepping.
7286
63e163f2
AB
72872020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7288
7289 * NEWS: Mention new behaviour of the history filename.
7290 * top.c (write_history_p): Add comment.
7291 (show_write_history_p): Add header comment, give a different
7292 message when history writing is on, but the history filename is
7293 empty.
7294 (history_filename): Add comment.
7295 (history_filename_empty): New function.
7296 (show_history_filename): Add header comment, give a different
7297 message when the filename is empty.
7298 (init_history): Compare history_filename against nullptr, and only
7299 read history if the filename is not empty.
7300 (set_history_filename): Add header comment, and only make
7301 non-empty filenames absolute.
7302 (init_main): Make the filename argument to 'set history filename'
7303 optional.
7304
81b86b97
CB
73052020-03-02 Christian Biesinger <cbiesinger@google.com>
7306
7307 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7308 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7309 (fetch_fp_register): Update.
7310 (fetch_fp_regs): Update.
7311 (store_fp_register): Update.
7312 (store_fp_regs): Update.
7313 (arm_netbsd_nat_target::read_description): New function.
7314 (fetch_elfcore_registers): Update.
7315
24ed6739
AB
73162020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7317
7318 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7319 general_thread if the stop reply is missing a thread-id.
7320 (remote_target::process_stop_reply): Use the first non-exited
7321 thread if the target didn't pass a thread-id.
7322 * infrun.c (do_target_wait): Move call to
7323 switch_to_inferior_no_thread to ....
7324 (do_target_wait_1): ... here.
7325
a84bb2a0
JT
73262020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7327
7328 * debuginfod-support.c: Include defs.h first.
7329
658dadf0
TV
73302020-02-28 Tom de Vries <tdevries@suse.de>
7331
7332 * symfile.c (set_initial_language): Use default language for lookup.
7333
4ebe4877
SM
73342020-02-28 Simon Marchi <simon.marchi@efficios.com>
7335
7336 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7337 reader variable, pass `this` to read_cutu_die_from_dwo.
7338
e5da1139
AM
73392020-02-27 Aaron Merey <amerey@redhat.com>
7340
7341 * source.c (open_source_file): Check for nullptr when computing
7342 srcpath.
7343
317f7127
TT
73442020-02-27 Tom Tromey <tromey@adacore.com>
7345
7346 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7347 member.
7348 (dwarf2_add_field): Don't update nfields.
7349 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7350
3104d9ee
AB
73512020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7352
7353 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7354 abs.
7355
b83470bf
TT
73562020-02-26 Tom Tromey <tom@tromey.com>
7357
7358 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7359 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7360 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7361 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7362 per_cu_data.
7363
edfe0a0c
TT
73642020-02-26 Tom Tromey <tom@tromey.com>
7365
7366 * dwarf2/index-write.c (psym_index_map): Change type.
7367 (add_address_entry_worker, write_one_signatured_type)
7368 (recursively_count_psymbols, recursively_write_psymbols)
7369 (class debug_names, psyms_seen_size, write_gdbindex)
7370 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7371
0d79cdc4
AM
73722020-02-26 Aaron Merey <amerey@redhat.com>
7373
7374 * Makefile.in: Handle optional debuginfod support.
7375 * NEWS: Update.
7376 * README: Add --with-debuginfod summary.
7377 * config.in: Regenerate.
7378 * configure: Regenerate.
7379 * configure.ac: Handle optional debuginfod support.
7380 * debuginfod-support.c: debuginfod helper functions.
7381 * debuginfod-support.h: Ditto.
7382 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7383 summary.
7384 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7385 when a dwz file cannot be found.
7386 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7387 debuginfo file cannot be found.
7388 * source.c (open_source_file): Query debuginfod servers when a
7389 source file cannot be found.
7390 * top.c (print_gdb_configuration): Include
7391 --{with,without}-debuginfod in the output.
7392
b65ce565
JG
73932020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7394
7395 * thread.c (thr_try_catch_cmd): Print thread name.
7396
d4c9a4f8
SM
73972020-02-26 Simon Marchi <simon.marchi@efficios.com>
7398
7399 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7400 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7401 dwarf2_fetch_die_type_sect_off): Move to...
7402 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7403 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7404 dwarf2_fetch_die_type_sect_off): ... here.
7405 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7406 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7407 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7408
0dce4280
TV
74092020-02-26 Tom de Vries <tdevries@suse.de>
7410
7411 PR gdb/25603
7412 * symfile.c (set_initial_language): Exit-early if
7413 language_mode == language_mode_manual.
7414
450a1bfc
SM
74152020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7416
7417 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7418 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7419 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7420
9e80cfa1
AB
74212020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7422
7423 * gdbtypes.c (create_array_type_with_stride): Handle negative
7424 array strides.
7425 * valarith.c (value_subscripted_rvalue): Likewise.
7426
09624f1f
LM
74272020-02-25 Luis Machado <luis.machado@linaro.org>
7428
7429 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7430
8cb5117c
SM
74312020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7432
7433 * loc.h (dwarf2_get_die_type): Move to...
7434 * read.h (dwarf2_get_die_type): ... here.
7435 * read.c (dwarf2_get_die_type): Move doc to header.
7436
c325c44e
JB
74372020-02-25 Joel Brobecker <brobecker@adacore.com>
7438
7439 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7440 'gnulib/Makefile.in' to the list.
7441
4ac93832
TT
74422020-02-24 Tom Tromey <tom@tromey.com>
7443
7444 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7445 Remove.
7446 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7447 XOBNEWVEC.
7448
197400e8
TT
74492020-02-24 Tom Tromey <tom@tromey.com>
7450
7451 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7452 New method.
7453 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7454 (dw2_do_instantiate_symtab, dw2_get_file_names)
7455 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7456
76935768
TT
74572020-02-24 Tom Tromey <tom@tromey.com>
7458
7459 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7460 make_scoped_restore.
7461 (dwarf2_psymtab::read_symtab): Don't clear
7462 reading_partial_symbols.
7463
a88ef40d
TV
74642020-02-24 Tom de Vries <tdevries@suse.de>
7465
7466 PR gdb/25592
7467 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7468
c9af6521
TV
74692020-02-24 Tom de Vries <tdevries@suse.de>
7470
7471 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7472 commands layout next/prev/regs.
7473
5707a07a
TT
74742020-02-22 Tom Tromey <tom@tromey.com>
7475
7476 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7477 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7478
3b0fb49e
TT
74792020-02-22 Tom Tromey <tom@tromey.com>
7480
7481 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7482
283be8bf
TT
74832020-02-22 Tom Tromey <tom@tromey.com>
7484
7485 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7486 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7487 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7488 * tui/tui.c (_initialize_tui): Add usage text.
7489
ca793b96
TT
74902020-02-22 Tom Tromey <tom@tromey.com>
7491
7492 * tui/tui-win.c (tui_set_focus_command)
7493 (tui_set_win_height_command): Use error_no_arg.
7494 (_initialize_tui_win): Update help text.
7495 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7496
432b5c40
TT
74972020-02-22 Tom Tromey <tom@tromey.com>
7498
7499 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7500 * tui/tui-disasm.h (struct tui_disasm_window)
7501 <display_start_addr>: Declare.
7502 * tui/tui-source.h (struct tui_source_window)
7503 <display_start_addr>: Declare.
7504 * tui/tui-winsource.h (struct tui_source_window_base)
7505 <show_source_line, display_start_addr>: New methods.
7506 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7507 Rename and move to protected section.
7508 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7509 (tui_source_window_base::do_erase_source_content): Update.
7510 (tui_source_window_base::show_source_line): Now a method.
7511 (tui_source_window_base::show_source_content)
7512 (tui_source_window_base::tui_source_window_base)
7513 (tui_source_window_base::rerender)
7514 (tui_source_window_base::refill)
7515 (tui_source_window_base::do_scroll_horizontal)
7516 (tui_source_window_base::set_is_exec_point_at)
7517 (tui_source_window_base::update_breakpoint_info)
7518 (tui_source_window_base::update_exec_info): Update.
7519 * tui/tui-source.c (tui_source_window::set_contents)
7520 (tui_source_window::showing_source_p)
7521 (tui_source_window::do_scroll_vertical)
7522 (tui_source_window::location_matches_p)
7523 (tui_source_window::line_is_displayed): Update.
7524 (tui_source_window::display_start_addr): New method.
7525 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7526 (tui_disasm_window::do_scroll_vertical)
7527 (tui_disasm_window::location_matches_p): Update.
7528 (tui_disasm_window::display_start_addr): New method.
7529
01b1af32
TT
75302020-02-22 Tom Tromey <tom@tromey.com>
7531
7532 * NEWS: Add entry for gdb.register_window_type.
7533 * tui/tui-layout.h (window_factory): New typedef.
7534 (tui_register_window): Declare.
7535 * tui/tui-layout.c (saved_tui_windows): New global.
7536 (tui_apply_current_layout): Use it.
7537 (tui_register_window): New function.
7538 * python/python.c (do_start_initialization): Call
7539 gdbpy_initialize_tui.
7540 (python_GdbMethods): Add "register_window_type" function.
7541 * python/python-internal.h (gdbpy_register_tui_window)
7542 (gdbpy_initialize_tui): Declare.
7543 * python/py-tui.c: New file.
7544 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7545
fc96d20b
TT
75462020-02-22 Tom Tromey <tom@tromey.com>
7547
7548 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7549
935c78c0
TT
75502020-02-22 Tom Tromey <tom@tromey.com>
7551
7552 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7553 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7554 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7555 (tui_set_win_focus_to): Move from tui-win.c.
7556
0240c8f1
TT
75572020-02-22 Tom Tromey <tom@tromey.com>
7558
7559 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7560 functions.
7561 (known_window_types): New global.
7562 (tui_get_window_by_name): Reimplement.
7563 (initialize_known_windows): New function.
7564 (validate_window_name): Rewrite.
7565 (_initialize_tui_layout): Call initialize_known_windows.
7566
fdb01f0c
TT
75672020-02-22 Tom Tromey <tom@tromey.com>
7568
7569 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7570 Remove constants.
7571 * tui/tui-winsource.h (struct tui_source_window_base)
7572 <tui_source_window_base>: Remove parameter.
7573 * tui/tui-winsource.c
7574 (tui_source_window_base::tui_source_window_base): Remove
7575 parameter.
7576 (tui_source_window_base::refill): Update.
7577 * tui/tui-stack.h (struct tui_locator_window)
7578 <tui_locator_window>: Update.
7579 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7580 Default the constructor.
7581 * tui/tui-regs.h (struct tui_data_item_window)
7582 <tui_data_item_window>: Default the constructor.
7583 (struct tui_data_window) <tui_data_window>: Likewise.
7584 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7585 Default the constructor.
7586 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7587 Default the constructor.
7588 <type>: Remove.
7589 (struct tui_win_info) <tui_win_info>: Default the constructor.
7590 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7591 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7592 Default the constructor.
7593
865a5aec
TT
75942020-02-22 Tom Tromey <tom@tromey.com>
7595
7596 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7597 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7598 * tui/tui-win.c (tui_resize_all): Don't call
7599 tui_delete_invisible_windows.
7600 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7601 done.
7602 (tui_set_layout): Update.
7603 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7604 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7605 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7606
e098d18c
TT
76072020-02-22 Tom Tromey <tom@tromey.com>
7608
7609 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7610 correctly.
7611
eb9c8874
TT
76122020-02-22 Tom Tromey <tom@tromey.com>
7613
7614 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7615
7eed1a8e
TT
76162020-02-22 Tom Tromey <tom@tromey.com>
7617
7618 * tui/tui-winsource.h (struct tui_source_window_iterator)
7619 <inner_iterator>: New etytypedef.
7620 <tui_source_window_iterator>: Take "end" parameter.
7621 <tui_source_window_iterator>: Take iterator.
7622 <operator*, advance>: Update.
7623 <m_iter>: Change type.
7624 <m_end>: New field.
7625 (struct tui_source_windows) <begin, end>: Update.
7626 * tui/tui-layout.c (tui_windows): New global.
7627 (tui_apply_current_layout): Clear tui_windows.
7628 (tui_layout_window::apply): Update tui_windows.
7629 * tui/tui-data.h (tui_windows): Declare.
7630 (all_tui_windows): Now inline function.
7631 (class tui_window_iterator, struct all_tui_windows): Remove.
7632
7c043ba6
TT
76332020-02-22 Tom Tromey <tom@tromey.com>
7634
7635 PR tui/17850:
7636 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7637 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7638 "height" argument.
7639 (class tui_layout_window) <get_sizes>: Likewise.
7640 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7641 argument.
7642 <get_sizes>: Add "height" argument.
7643 <m_vertical>: New field.
7644 * tui/tui-layout.c (tui_layout_split::clone): Update.
7645 (tui_layout_split::get_sizes): Add "height" argument.
7646 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7647 (tui_new_layout_command): Parse "-horizontal".
7648 (_initialize_tui_layout): Update help string.
7649 (tui_layout_split::specification): Add "-horizontal" when needed.
7650 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7651 argument.
7652 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7653 New methods.
7654
6bc56648
TT
76552020-02-22 Tom Tromey <tom@tromey.com>
7656
7657 * tui/tui-layout.h (enum tui_adjust_result): New.
7658 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7659 (class tui_layout_window) <adjust_size>: Return
7660 tui_adjust_result. Rewrite.
7661 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7662 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7663
c22fef7e
TT
76642020-02-22 Tom Tromey <tom@tromey.com>
7665
7666 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7667 parameter and return types.
7668 (class tui_layout_base) <specification>: Add "depth".
7669 (class tui_layout_window) <specification>: Add "depth".
7670 (class tui_layout_split) <specification>: Add "depth".
7671 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7672 and return types.
7673 (tui_new_layout_command): Parse sub-layouts.
7674 (_initialize_tui_layout): Update help string.
7675 (tui_layout_window::specification): Add "depth".
7676 (add_layout_command): Update.
7677
ee325b61
TT
76782020-02-22 Tom Tromey <tom@tromey.com>
7679
7680 * NEWS: Add "tui new-layout" item.
7681 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7682 Add new-layout command to help text.
7683 (validate_window_name): New function.
7684 (tui_new_layout_command): New function.
7685 (_initialize_tui_layout): Register "new-layout".
7686 (tui_layout_window::specification): New method.
7687 (tui_layout_window::specification): New method.
7688 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7689 method.
7690 (class tui_layout_window) <specification>: New method.
7691 (class tui_layout_split) <specification>: New method.
7692
416eb92d
TT
76932020-02-22 Tom Tromey <tom@tromey.com>
7694
7695 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7696 * tui/tui-win.c (window_name_completer): Update comment.
7697 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7698 Declare method.
7699 (class tui_layout_window) <replace_window>: Likewise.
7700 (class tui_layout_split) <replace_window>: Likewise.
7701 (tui_set_layout): Don't declare.
7702 (tui_set_initial_layout): Declare function.
7703 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7704 (asm_regs_layout): New globals.
7705 (tui_current_layout, show_layout): Remove.
7706 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7707 (find_layout, tui_apply_layout): New function.
7708 (layout_completer): Remove.
7709 (tui_next_layout): Reimplement.
7710 (tui_next_layout_command): New function.
7711 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7712 (tui_regs_layout): Reimplement.
7713 (tui_regs_layout_command): New function.
7714 (extract_display_start_addr): Rewrite.
7715 (next_layout, prev_layout): Remove.
7716 (tui_layout_window::replace_window): New method.
7717 (tui_layout_split::replace_window): New method.
7718 (destroy_layout): New function.
7719 (layout_list): New global.
7720 (add_layout_command): New function.
7721 (initialize_layouts): Update.
7722 (tui_layout_command): New function.
7723 (_initialize_tui_layout): Install "layout" commands.
7724 * tui/tui-data.h (enum tui_layout_type): Remove.
7725 (tui_current_layout): Don't declare.
7726
0dbc2fc7
TT
77272020-02-22 Tom Tromey <tom@tromey.com>
7728
7729 * tui/tui-regs.c (tui_reg_layout): Remove.
7730 (tui_reg_command): Use tui_regs_layout.
7731 * tui/tui-layout.h (tui_reg_command): Declare.
7732 * tui/tui-layout.c (tui_reg_command): New function.
7733
5afe342e
TT
77342020-02-22 Tom Tromey <tom@tromey.com>
7735
7736 * tui/tui.c (tui_rl_delete_other_windows): Call
7737 tui_remove_some_windows.
7738 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7739 Declare method.
7740 (class tui_layout_window) <remove_windows>: New method.
7741 (class tui_layout_split) <remove_windows>: Declare.
7742 (tui_remove_some_windows): Declare.
7743 * tui/tui-layout.c (tui_remove_some_windows): New function.
7744 (tui_layout_split::remove_windows): New method.
7745
427326a8
TT
77462020-02-22 Tom Tromey <tom@tromey.com>
7747
7748 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7749 * tui/tui-layout.h (tui_next_layout): Declare.
7750 * tui/tui-layout.c (tui_next_layout): New function.
7751
3fe12b6d
TT
77522020-02-22 Tom Tromey <tom@tromey.com>
7753
7754 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7755 correct coordinates.
7756
59b8b5d2
TT
77572020-02-22 Tom Tromey <tom@tromey.com>
7758
7759 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7760 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7761 DATA_WIN case.
7762
2a3d458b
TT
77632020-02-22 Tom Tromey <tom@tromey.com>
7764
7765 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7766 TUI_DISASM_WIN, not tui_win_list.
7767
3f0cbb04
TT
77682020-02-22 Tom Tromey <tom@tromey.com>
7769
7770 * valprint.c (generic_val_print_enum_1)
7771 (val_print_type_code_flags): Style member names.
7772 * rust-lang.c (val_print_struct, rust_print_enum)
7773 (rust_print_struct_def, rust_internal_print_type): Style member
7774 names.
7775 * p-valprint.c (pascal_object_print_value_fields): Style member
7776 names. Only call fprintf_symbol_filtered for static members.
7777 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7778 * f-valprint.c (f_val_print): Style member names.
7779 * f-typeprint.c (f_type_print_base): Style member names.
7780 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7781 call fprintf_symbol_filtered for static members.
7782 (cp_print_class_member): Style member names.
7783 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7784 member names.
7785 * ada-valprint.c (ada_print_scalar): Style enum names.
7786 (ada_val_print_enum): Likewise.
7787 * ada-typeprint.c (print_enum_type): Style enum names.
7788
d4d947ae
TT
77892020-02-21 Tom Tromey <tom@tromey.com>
7790
7791 * psympriv.h (struct partial_symtab): Update comment.
7792
e94e944b
TT
77932020-02-21 Tom Tromey <tromey@adacore.com>
7794
7795 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7796 type is CORE_ADDR.
7797
1eb73179
TV
77982020-02-21 Tom de Vries <tdevries@suse.de>
7799
7800 PR gdb/25534
7801 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7802 if dependencies[i]->user != NULL.
7803
4f180d53
AT
78042020-02-21 Ali Tamur <tamur@google.com>
7805
7806 * dwarf2/read.c (dwarf2_name): Add null check.
7807
22b6cd70
TT
78082020-02-20 Tom Tromey <tom@tromey.com>
7809
7810 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7811 ">=", in binary search.
7812 (dwarf2_find_containing_comp_unit): New overload.
7813 (run_test): New self-test.
7814 (_initialize_dwarf2_read): Register new test.
7815
bd0cf5a6
NC
78162020-02-20 Nelson Chu <nelson.chu@sifive.com>
7817
7818 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7819 * riscv-tdep.h: Likewise.
7820 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7821 rv32-only CSR.
7822 * features/riscv/64bit-csr.xml: Regenerated.
7823
3f702acd
SDJ
78242020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7825 Tom Tromey <tom@tromey.com>
7826
7827 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7828 of 'fputc_unfiltered'.
7829 (putchar_unfiltered): Call 'fputc_unfiltered'.
7830 (fputc_unfiltered): Call 'fputs_unfiltered'.
7831
d13c7322
AB
78322020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7833
7834 * config.in: Regenerate.
7835 * configure: Regenerate.
7836 * configure.ac: Add --with-python-libdir option.
7837 * main.c: Use WITH_PYTHON_LIBDIR.
7838
869d8950
TT
78392020-02-19 Tom Tromey <tom@tromey.com>
7840
7841 * symtab.c (general_symbol_info::compute_and_set_names): Use
7842 obstack_strndup. Simplify call to symbol_set_demangled_name.
7843
298e9637
SM
78442020-02-19 Simon Marchi <simon.marchi@efficios.com>
7845
7846 * dwarf2/read.c (allocate_signatured_type_table,
7847 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7848 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7849 Remove objfile parameter, update all callers.
7850
08410482
DE
78512020-02-19 Doug Evans <dje@google.com>
7852
7853 PR rust/25535
7854 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7855 rust_enum_variant calculation.
7856
dfdeeca1
TT
78572020-02-19 Tom Tromey <tromey@adacore.com>
7858
7859 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7860
2ef5453b
TT
78612020-02-19 Tom Tromey <tromey@adacore.com>
7862
7863 * ada-lang.c (cache_symbol): Use obstack_strdup.
7864
9f1528a1
AB
78652020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7866
7867 * configure: Regenerate.
7868
d3c22fa8
TT
78692020-02-19 Tom Tromey <tromey@adacore.com>
7870
7871 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7872 NULL check.
7873
bf84f706
MR
78742020-02-19 Maciej W. Rozycki <macro@wdc.com>
7875
7876 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7877
d1c9b20f
AB
78782020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7879
7880 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7881 if GDBSERVER is not defined.
7882 (riscv_tdesc_cache): Likewise, also store const target_desc.
7883 (STATIC_IN_GDB): Define.
7884 (riscv_create_target_description): Update declaration with
7885 STATIC_IN_GDB.
7886 (riscv_lookup_target_description): New function, only define if
7887 GDBSERVER is not defined.
7888 * arch/riscv.h (riscv_create_target_description): Declare only
7889 when GDBSERVER is defined.
7890 (riscv_lookup_target_description): New declaration when GDBSERVER
7891 is not defined.
7892 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7893 (riscv_linux_read_features): ...this, and return
7894 riscv_gdbarch_features instead of target_desc.
7895 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7896 (riscv_linux_read_description): Rename to...
7897 (riscv_linux_read_features): ...this.
7898 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7899 Update to use riscv_gdbarch_features and
7900 riscv_lookup_target_description.
7901 * riscv-tdep.c (riscv_find_default_target_description): Use
7902 riscv_lookup_target_description instead of
7903 riscv_create_target_description.
7904
373d7ac0
SM
79052020-02-18 Simon Marchi <simon.marchi@efficios.com>
7906
7907 * valprint.c (generic_val_print_enum_1): When printing a flag
7908 enum with value 0 and there is no enumerator with value 0, print
7909 just "0" instead of "(unknown: 0x0)".
7910
b29a2df0
SM
79112020-02-18 Simon Marchi <simon.marchi@efficios.com>
7912
7913 * valprint.c (generic_val_print_enum_1): Print unknown part of
7914 flag enum in hex.
7915
6740f0cc
SM
79162020-02-18 Simon Marchi <simon.marchi@efficios.com>
7917
7918 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7919 flag enums to contain duplicate enumerators.
7920 * valprint.c (generic_val_print_enum_1): Update comment.
7921
edd45eb0
SM
79222020-02-18 Simon Marchi <simon.marchi@efficios.com>
7923
7924 * dwarf2/read.c: Include "count-one-bits.h".
7925 (update_enumeration_type_from_children): If an enumerator has
7926 multiple bits set, don't treat the enumeration as a "flag enum".
7927 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7928 of flag enums have 0 or 1 bit set.
7929
6d0cf446
BE
79302020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7931
7932 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7933 conversion.
7934 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7935 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7936 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7937 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7938 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7939
7001c1b7
SM
79402020-02-18 Simon Marchi <simon.marchi@efficios.com>
7941
7942 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7943
fdb61c6c
SM
79442020-02-14 Simon Marchi <simon.marchi@efficios.com>
7945
7946 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7947 displaced_step_closure_up.
7948 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7949 (struct displaced_step_closure_up):
7950 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7951 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7952 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7953 Likewise.
7954 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7955 * gdbarch.c, gdbarch.h: Re-generate.
7956 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7957 displaced_step_closure_up.
7958 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7959 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7960 * infrun.h (displaced_step_closure_up): New type alias.
7961 (struct displaced_step_inferior_state) <step_closure>: Change
7962 type to displaced_step_closure_up.
7963 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7964 displaced_step_closure_up.
7965 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7966
a4a38eb4
TT
79672020-02-14 Tom Tromey <tom@tromey.com>
7968
7969 * minidebug.c (gnu_debug_key): New global.
7970 (find_separate_debug_file_in_section): Use it.
7971
e8217e61
SM
79722020-02-14 Simon Marchi <simon.marchi@efficios.com>
7973
7974 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
7975 std::unique_ptr.
7976 * gdbarch.c: Re-generate.
7977 * gdbarch.h: Re-generate.
7978 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
7979 change.
7980 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
7981 type to std::unique_ptr.
7982 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7983 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7984 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7985 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7986 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
7987 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7988 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7989 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7990 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7991
d8d83535
SM
79922020-02-14 Simon Marchi <simon.marchi@efficios.com>
7993
7994 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
7995 std::unique_ptr.
7996 (displaced_step_clear): Rename to...
7997 (displaced_step_reset): ... this. Just call displaced->reset ().
7998 (displaced_step_clear_cleanup): Rename to...
7999 (displaced_step_reset_cleanup): ... this.
8000 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8001 (displaced_step_fixup): Likewise.
8002 (resume_1): Likewise.
8003 (handle_inferior_event): Restore child's memory before calling
8004 displaced_step_fixup on the parent.
8005 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8006 to std::unique_ptr.
8007 <step_closure>: Change type to std::unique_ptr.
8008
5f661e03
SM
80092020-02-14 Simon Marchi <simon.marchi@efficios.com>
8010
8011 * arm-tdep.c: Include count-one-bits.h.
8012 (cleanup_block_store_pc): Use count_one_bits.
8013 (cleanup_block_load_pc): Use count_one_bits.
8014 (arm_copy_block_xfer): Use count_one_bits.
8015 (thumb2_copy_block_xfer): Use count_one_bits.
8016 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8017 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8018 (thumb_get_next_pcs_raw): Use count_one_bits.
8019 (arm_get_next_pcs_raw): Use count_one_bits_l.
8020 * arch/arm.c (bitcount): Remove.
8021 * arch/arm.h (bitcount): Remove.
8022
8084e579
TT
80232020-02-14 Tom Tromey <tromey@adacore.com>
8024
8025 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8026 Update.
8027 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8028 * dwarf2/loc.c (call_site_find_chain_1): Return
8029 unique_xmalloc_ptr.
8030 (call_site_find_chain): Likewise.
8031
258bf0ee
RB
80322020-02-14 Richard Biener <rguenther@suse.de>
8033
8034 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8035 on expression with division operators.
8036
f98a8458
AKS
80372020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8038
8039 * MAINTAINERS (Write After Approval): Adding myself.
8040
d1437c0e
TT
80412020-02-12 Tom Tromey <tom@tromey.com>
8042
8043 * event-loop.c (event_data, gdb_event, event_handler_func):
8044 Remove.
8045
3d4560f7
TT
80462020-02-12 Tom Tromey <tom@tromey.com>
8047
8048 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8049 (dwarf2_frame_objfile_data): Add comment.
8050 (find_comp_unit, set_comp_unit): New functions.
8051 (dwarf2_frame_find_fde): Use find_comp_unit.
8052 (dwarf2_build_frame_info): Use set_comp_unit.
8053
21982304
TT
80542020-02-12 Tom Tromey <tom@tromey.com>
8055
8056 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8057 (comp_unit): Don't initialize objfile.
8058 (execute_cfa_program): Add text_offset parameter.
8059 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8060 (dwarf2_frame_cache): Update.
8061 (dwarf2_build_frame_info): Don't set "objfile" member.
8062
4debb237
TT
80632020-02-12 Tom Tromey <tom@tromey.com>
8064
8065 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8066 (decode_frame_entry): Likewise.
8067 (dwarf2_build_frame_info): Update.
8068
0d404d44
TT
80692020-02-12 Tom Tromey <tom@tromey.com>
8070
8071 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8072 (decode_frame_entry_1): Use the comp_unit obstack.
8073
a7a3ae5c
TT
80742020-02-12 Tom Tromey <tom@tromey.com>
8075
8076 * dwarf2/frame.c (struct comp_unit): Add initializers and
8077 constructor.
8078 (dwarf2_frame_objfile_data): Store a comp_unit.
8079 (dwarf2_frame_find_fde): Update.
8080 (dwarf2_build_frame_info): Use "new".
8081
a9d65418
TT
80822020-02-12 Tom Tromey <tom@tromey.com>
8083
8084 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8085 (dwarf2_fde_table): Typedef for std::vector.
8086 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8087 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8088 (decode_frame_entry): Update.
8089 (dwarf2_build_frame_info): Use "new".
8090
7559c217
CB
80912020-02-12 Christian Biesinger <cbiesinger@google.com>
8092
8093 * arm-tdep.c (arm_gdbarch_init): Update.
8094 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8095 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8096 have_neon, is_m>: Change to bool.
8097
aeefc73c
CB
80982020-02-12 Christian Biesinger <cbiesinger@google.com>
8099
8100 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8101
d27b8e5f
TT
81022020-02-12 Tom Tromey <tom@tromey.com>
8103
8104 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8105
cd5900f3
HD
81062020-02-12 Hannes Domani <ssbssa@yahoo.de>
8107
8108 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8109 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8110
f056b22b
TT
81112020-02-11 Tom Tromey <tom@tromey.com>
8112
8113 * psymtab.h: Update comment.
8114
f92ff6b5
TT
81152020-02-11 Tom Tromey <tom@tromey.com>
8116
8117 * gdb_obstack.h (struct auto_obstack): Use
8118 DISABLE_COPY_AND_ASSIGN.
8119
3fd6912b
TT
81202020-02-11 Tom Tromey <tom@tromey.com>
8121
8122 * dwarf2/frame.h (struct objfile): Don't forward declare.
8123
69ed9b74
CB
81242020-02-11 Christian Biesinger <cbiesinger@google.com>
8125
8126 * cris-tdep.c (cris_supply_gregset): Change signature to match
8127 what struct regset expects.
8128 (cris_regset): New struct.
8129 (fetch_core_registers): Remove.
8130 (cris_iterate_over_regset_sections): New function.
8131 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8132 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8133
bda874f6
CB
81342020-02-11 Christian Biesinger <cbiesinger@google.com>
8135
8136 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8137 registers.
8138
754e1564
CB
81392020-02-11 Christian Biesinger <cbiesinger@google.com>
8140
8141 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8142
8ddd8e0e
SM
81432020-02-11 Simon Marchi <simon.marchi@efficios.com>
8144
8145 * configure: Re-generate.
8146
898e7f60
SM
81472020-02-11 Simon Marchi <simon.marchi@efficios.com>
8148
8149 * configure: Re-generate.
8150
58df732b
SM
81512020-02-11 Simon Marchi <simon.marchi@efficios.com>
8152
8153 * acinclude: Update warning.m4 path.
8154 * warning.m4: Move to gdbsupport.
8155
da5bd37e
TT
81562020-02-11 Tom Tromey <tromey@adacore.com>
8157
8158 * remote.c (remote_console_output): Update.
8159 * printcmd.c (printf_command): Update.
8160 * event-loop.c (gdb_wait_for_event): Update.
8161 * linux-nat.c (sigchld_handler): Update.
8162 * remote-sim.c (gdb_os_write_stdout): Update.
8163 (gdb_os_flush_stdout): Update.
8164 (gdb_os_flush_stderr): Update.
8165 (gdb_os_write_stderr): Update.
8166 * exceptions.c (print_exception): Update.
8167 * remote-fileio.c (remote_fileio_func_read): Update.
8168 (remote_fileio_func_write): Update.
8169 * tui/tui.c (tui_enable): Update.
8170 * tui/tui-interp.c (tui_interp::init): Update.
8171 * utils.c (init_page_info): Update.
8172 (putchar_unfiltered, fputc_unfiltered): Update.
8173 (gdb_flush): Update.
8174 (emit_style_escape): Update.
8175 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8176 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8177 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8178 (stderr_file::write): Update.
8179 (stderr_file::puts): Update.
8180 * ui-file.h (ui_file_isatty, ui_file_write)
8181 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8182 (ui_file_puts): Don't declare.
8183
85f0dd3c
TV
81842020-02-10 Tom de Vries <tdevries@suse.de>
8185
8186 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8187 sentinel to char *.
8188
2e927613
TV
81892020-02-09 Tom de Vries <tdevries@suse.de>
8190
8191 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8192 filename if it matches "<artificial>".
8193
6bafc845
HD
81942020-02-09 Hannes Domani <ssbssa@yahoo.de>
8195
8196 * windows-tdep.c (struct enum_value_name): New struct.
8197 (create_enum): New function.
8198 (windows_get_siginfo_type): Create and use enum types.
8199
7928d571
HD
82002020-02-09 Hannes Domani <ssbssa@yahoo.de>
8201
8202 * NEWS: Mention $_siginfo support for Windows.
8203 * windows-nat.c (handle_exception): Set siginfo_er.
8204 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8205 (windows_xfer_siginfo): New function.
8206 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8207 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8208 (init_windows_gdbarch_data): New function.
8209 (get_windows_gdbarch_data): New function.
8210 (windows_get_siginfo_type): New function.
8211 (windows_init_abi): Register windows_get_siginfo_type.
8212 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8213
6751ebae
TT
82142020-02-08 Tom Tromey <tom@tromey.com>
8215
8216 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8217 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8218 <keep>: Declare method.
8219 <m_keep>: Remove member.
8220 <~cutu_reader>: Remove.
8221 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8222 (cutu_reader::cutu_reader): Update.
8223 (cutu_reader::keep): Rename from ~cutu_reader.
8224 (process_psymtab_comp_unit, build_type_psymtabs_1)
8225 (process_skeletonless_type_unit, load_partial_comp_unit)
8226 (load_full_comp_unit, dwarf2_read_addr_index)
8227 (read_signatured_type): Update.
8228
135f5437
TT
82292020-02-08 Tom Tromey <tom@tromey.com>
8230
8231 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8232 "want_partial_unit" parameter.
8233 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8234 Inline check for DW_TAG_partial_unit.
8235 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8236
9f66ff1c
TT
82372020-02-08 Tom Tromey <tom@tromey.com>
8238
8239 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8240 read.c.
8241 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8242 read.c.
8243
c8a7a66f
TT
82442020-02-08 Tom Tromey <tom@tromey.com>
8245
8246 * dwarf2/read.c (read_address): Move to comp-unit.c.
8247 (dwarf2_rnglists_process, dwarf2_ranges_process)
8248 (read_attribute_value, dwarf_decode_lines_1)
8249 (var_decode_location, decode_locdesc): Update.
8250 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8251 read.c. Remove "cu" parameter.
8252 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8253 method.
8254
8266302d
TT
82552020-02-08 Tom Tromey <tom@tromey.com>
8256
8257 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8258 (read_indirect_line_string): Update.
8259 * dwarf2/comp-unit.c (read_offset): Remove.
8260 (read_comp_unit_head): Update.
8261 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8262 method.
8263 (read_offset): Don't declare.
8264
4057dfde
TT
82652020-02-08 Tom Tromey <tom@tromey.com>
8266
8267 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8268 * dwarf2/read.c (struct comp_unit_head): Move to
8269 dwarf2/comp-unit.h.
8270 (enum class rcuh_kind): Move to comp-unit.h.
8271 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8272 (read_comp_unit_head, error_check_comp_unit_head)
8273 (read_and_check_comp_unit_head): Move to comp-unit.c.
8274 (read_offset, dwarf_unit_type_name): Likewise.
8275 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8276 (cutu_reader::cutu_reader, read_call_site_scope)
8277 (find_partial_die, follow_die_offset): Update.
8278 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8279
24aa364d
TT
82802020-02-08 Tom Tromey <tom@tromey.com>
8281
8282 * dwarf2/read.c (read_offset_1): Move to leb.c.
8283 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8284 (dwarf_decode_macro_bytes): Update.
8285 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8286 * dwarf2/leb.h (read_offset): Declare.
8287
2c7d5afc
TT
82882020-02-08 Tom Tromey <tom@tromey.com>
8289
8290 * dwarf2/read.c (dwarf2_section_size): Remove.
8291 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8292 Update.
8293 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8294
4075cb26
TT
82952020-02-08 Tom Tromey <tom@tromey.com>
8296
8297 * dwarf2/read.c (read_initial_length): Move to leb.c.
8298 * dwarf2/leb.h (read_initial_length): Declare.
8299 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8300 handle_nonstd parameter.
8301 * dwarf2/frame.c (read_initial_length): Remove.
8302 (decode_frame_entry_1): Update.
8303
09ba997f
TT
83042020-02-08 Tom Tromey <tom@tromey.com>
8305
8306 * dwarf2/loc.c (dwarf2_find_location_expression)
8307 (dwarf_evaluate_loc_desc::get_tls_address)
8308 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8309 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8310 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8311 (dwarf2_compile_property_to_c)
8312 (dwarf2_loc_desc_get_symbol_read_needs)
8313 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8314 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8315 (loclist_describe_location, loclist_tracepoint_var_ref)
8316 (loclist_generate_c_location): Update.
8317 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8318 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8319 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8320 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8321 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8322 (dwarf2_per_cu_data::addr_size)
8323 (dwarf2_per_cu_data::ref_addr_size)
8324 (dwarf2_per_cu_data::text_offset)
8325 (dwarf2_per_cu_data::addr_type): Now methods.
8326 (per_cu_header_read_in): Make per_cu "const".
8327 (dwarf2_version): Remove.
8328 (dwarf2_per_cu_data::int_type): Now a method.
8329 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8330 (set_die_type, read_array_type, read_subrange_index_type)
8331 (read_tag_string_type, read_subrange_type): Update.
8332 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8333 offset_size, ref_addr_size, text_offset, addr_type, version,
8334 objfile, int_type, addr_sized_int_type>: Declare methods.
8335
96c738c0
TT
83362020-02-08 Tom Tromey <tom@tromey.com>
8337
8338 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8339 Move earlier.
8340
8fdd972c
TT
83412020-02-08 Tom Tromey <tom@tromey.com>
8342
8343 * dwarf2/read.h (dwarf_line_debug): Declare.
8344 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8345 * dwarf2/read.c: Move line_header code to new files.
8346 (dwarf_line_debug): No longer static.
8347 * dwarf2/line-header.c: New file.
8348 * dwarf2/line-header.h: New file.
8349
03075812
TT
83502020-02-08 Tom Tromey <tom@tromey.com>
8351
8352 * dwarf2/read.c (struct line_header) <file_full_name,
8353 file_file_name>: Return unique_xmalloc_ptr.
8354 (line_header::file_file_name): Update.
8355 (line_header::file_full_name): Update.
8356 (dw2_get_file_names_reader): Update.
8357 (macro_start_file): Update.
8358
bb822404
TT
83592020-02-08 Tom Tromey <tom@tromey.com>
8360
8361 * dwarf2/read.c (struct line_header) <file_full_name,
8362 file_file_name>: Declare methods.
8363 (dw2_get_file_names_reader): Update.
8364 (file_file_name): Now a method.
8365 (file_full_name): Likewise.
8366 (macro_start_file): Update.
8367
009b64fc
TT
83682020-02-08 Tom Tromey <tom@tromey.com>
8369
8370 * dwarf2/read.c (dwarf_always_disassemble)
8371 (show_dwarf_always_disassemble): Move to loc.c.
8372 (_initialize_dwarf2_read): Move "always-disassemble" registration
8373 to loc.c.
8374 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8375 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8376 static.
8377 (show_dwarf_always_disassemble): Move from read.c.
8378 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8379
5895093f
TT
83802020-02-08 Tom Tromey <tom@tromey.com>
8381
8382 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8383 (create_quick_file_names_table): Return htab_up.
8384 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8385 Update.
8386 * dwarf2/read.h (struct dwarf2_per_objfile)
8387 <quick_file_names_table>: Now htab_up.
8388
b3b32279
TT
83892020-02-08 Tom Tromey <tom@tromey.com>
8390
8391 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8392
1d33d811
TT
83932020-02-08 Tom Tromey <tom@tromey.com>
8394
8395 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8396 Rewrite.
8397 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8398 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8399 (abbrev_table::abbrev_table): No longer inline.
8400 (ABBREV_HASH_SIZE): Remove.
8401 (abbrev_table::m_abbrevs): Now an htab_up.
8402
86de1d91
TT
84032020-02-08 Tom Tromey <tom@tromey.com>
8404
8405 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8406 (cutu_reader): Update.
8407 (build_type_psymtabs_1): Update.
8408 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8409 (abbrev_table::alloc_abbrev): Update.
8410 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8411 (abbrev_table::read): New static method, renamed from
8412 abbrev_table_read_table.
8413 (abbrev_table::alloc_abbrev)
8414 (abbrev_table::add_abbrev): Now private.
8415 (abbrev_table::abbrev_table): Now private.
8416 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8417
0335378b
TT
84182020-02-08 Tom Tromey <tom@tromey.com>
8419
8420 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8421 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8422 htab_up.
8423
48b490f2
TT
84242020-02-08 Tom Tromey <tom@tromey.com>
8425
8426 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8427 htab_up.
8428 (lookup_dwo_unit_in_dwp): Update.
8429 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8430 on obstack.
8431
bc68fb19
TT
84322020-02-08 Tom Tromey <tom@tromey.com>
8433
8434 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8435 obstack.
8436
d15acc42
TT
84372020-02-08 Tom Tromey <tom@tromey.com>
8438
8439 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8440 line_header_hash.
8441 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8442 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8443 Change type to htab_up.
8444
eaa5fa8b
TT
84452020-02-08 Tom Tromey <tom@tromey.com>
8446
8447 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8448 htab_up. Don't allocate on obstack.
8449 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8450 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8451 Change type to htab_up.
8452
b0b6a987
TT
84532020-02-08 Tom Tromey <tom@tromey.com>
8454
8455 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8456 Change type to htab_up.
8457 * dwarf2/read.c (create_signatured_type_table_from_index)
8458 (create_signatured_type_table_from_debug_names)
8459 (create_all_type_units, add_type_unit)
8460 (lookup_dwo_signatured_type, lookup_signatured_type)
8461 (process_skeletonless_type_unit): Update.
8462 (create_debug_type_hash_table, create_debug_types_hash_table):
8463 Change type of types_htab.
8464 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8465 htab_up. Don't allocate on obstack.
8466 (create_cus_hash_table): Change type of cus_htab parameter.
8467 (struct dwo_file) <cus, tus>: Now htab_up.
8468 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8469 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8470 (queue_and_load_all_dwo_tus): Update.
8471 * dwarf2/index-write.c (write_gdbindex): Update.
8472 (write_debug_names): Update.
8473
39856def
TT
84742020-02-08 Tom Tromey <tom@tromey.com>
8475
8476 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8477 dwarf2/read.c. Remove "next" member. Add constructor ntad
8478 destructor.
8479 (struct dwarf2_per_objfile) <queue>: New member.
8480 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8481 dwarf2/read.h.
8482 (dwarf2_queue, dwarf2_queue_tail): Remove.
8483 (class dwarf2_queue_guard): Add parameter to constructor. Use
8484 DISABLE_COPY_AND_ASSIGN.
8485 <m_per_objfile>: New member.
8486 <~dwarf2_queue_guard>: Rewrite.
8487 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8488 Update.
8489 (~dwarf2_queue_item): New.
8490
3e225074
TT
84912020-02-08 Tom Tromey <tom@tromey.com>
8492
8493 * dwarf2/read.c (struct die_info) <has_children>: New member.
8494 (dw2_get_file_names_reader): Remove has_children.
8495 (dw2_get_file_names): Update.
8496 (read_cutu_die_from_dwo): Remove has_children.
8497 (cutu_reader::init_tu_and_read_dwo_dies)
8498 (cutu_reader::cutu_reader): Update.
8499 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8500 Remove has_children.
8501 (build_type_psymtabs_1, process_skeletonless_type_unit)
8502 (load_partial_comp_unit, load_full_comp_unit): Update.
8503 (create_dwo_cu_reader): Remove has_children.
8504 (create_cus_hash_table, read_die_and_children): Update.
8505 (read_full_die_1,read_full_die): Remove has_children.
8506 (read_signatured_type): Update.
8507 (class cutu_reader) <has_children>: Remove.
8508
82ca8957
TT
85092020-02-08 Tom Tromey <tom@tromey.com>
8510
8511 * dwarf2/expr.c: Rename from dwarf2expr.c.
8512 * dwarf2/expr.h: Rename from dwarf2expr.h.
8513 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8514 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8515 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8516 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8517 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8518 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8519 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8520 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8521 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8522 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8523 * dwarf2/loc.c: Rename from dwarf2loc.c.
8524 * dwarf2/loc.h: Rename from dwarf2loc.h.
8525 * dwarf2/read.c: Rename from dwarf2read.c.
8526 * dwarf2/read.h: Rename from dwarf2read.h.
8527 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8528 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8529 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8530 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8531 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8532 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8533 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8534 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8535 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8536 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8537 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8538 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8539 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8540 Update.
8541 * Makefile.in (COMMON_SFILES): Update.
8542 (HFILES_NO_SRCDIR): Update.
8543
9e35d499
TT
85442020-02-08 Tom Tromey <tom@tromey.com>
8545
8546 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8547 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8548
1eba2311
TT
85492020-02-08 Tom Tromey <tom@tromey.com>
8550
8551 * dwarf2read.h (struct die_info): Don't declare.
8552
e41c2da2
TT
85532020-02-08 Tom Tromey <tom@tromey.com>
8554
8555 * dwarf2read.h (die_info_ptr): Remove typedef.
8556
4fc6c0d5
TT
85572020-02-08 Tom Tromey <tom@tromey.com>
8558
8559 * dwarf2read.c (read_call_site_scope)
8560 (handle_data_member_location, dwarf2_add_member_fn)
8561 (mark_common_block_symbol_computed, read_common_block)
8562 (attr_to_dynamic_prop, partial_die_info::read)
8563 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8564 (dwarf2_symbol_mark_computed, set_die_type): Update.
8565 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8566 method.
8567 (attr_form_is_block): Don't declare.
8568 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8569
cd6c91b4
TT
85702020-02-08 Tom Tromey <tom@tromey.com>
8571
8572 * dwarf2read.c (dwarf2_find_base_address, )
8573 (read_call_site_scope, rust_containing_type)
8574 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8575 (handle_data_member_location, dwarf2_add_member_fn)
8576 (get_alignment, read_structure_type, process_structure_scope)
8577 (mark_common_block_symbol_computed, read_common_block)
8578 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8579 (partial_die_info::read, read_attribute_value, new_symbol)
8580 (lookup_die_type, dwarf2_get_ref_die_offset)
8581 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8582 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8583 (dwarf2_symbol_mark_computed): Update.
8584 * dwarf2/attribute.h (struct attribute) <value_as_address,
8585 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8586 methods.
8587 (value_as_address, attr_form_is_section_offset)
8588 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8589 * dwarf2/attribute.c (attribute::value_as_address)
8590 (attribute::form_is_section_offset, attribute::form_is_constant)
8591 (attribute::form_is_ref): Now methods.
8592
162dce55
TT
85932020-02-08 Tom Tromey <tom@tromey.com>
8594
8595 * dwarf2read.c (struct attribute, DW_STRING)
8596 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8597 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8598 (attr_form_is_block, attr_form_is_section_offset)
8599 (attr_form_is_constant, attr_form_is_ref): Move.
8600 * dwarf2/attribute.h: New file.
8601 * dwarf2/attribute.c: New file, from dwarf2read.c.
8602 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8603
3054dd54
TT
86042020-02-08 Tom Tromey <tom@tromey.com>
8605
8606 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8607 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8608 Move.
8609 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8610 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8611 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8612 abbrev.c.
8613 * dwarf2/abbrev.h: New file.
8614 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8615 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8616
96b79293
TT
86172020-02-08 Tom Tromey <tom@tromey.com>
8618
8619 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8620 (dwarf2_section_size, dwarf2_get_section_info)
8621 (create_signatured_type_table_from_debug_names)
8622 (create_addrmap_from_aranges, read_debug_names_from_section)
8623 (get_gdb_index_contents_from_section, read_comp_unit_head)
8624 (error_check_comp_unit_head, read_abbrev_offset)
8625 (create_debug_type_hash_table, init_cu_die_reader)
8626 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8627 (read_comp_units_from_section, create_cus_hash_table)
8628 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8629 (create_dwp_v2_section, dwarf2_rnglists_process)
8630 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8631 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8632 (read_indirect_string_from_dwz, read_addr_index_1)
8633 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8634 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8635 (fill_in_loclist_baton): Update.
8636 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8637 get_containing_section, get_bfd_owner, get_bfd_section,
8638 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8639 (dwarf2_read_section, get_section_name, get_section_file_name)
8640 (get_containing_section, get_section_bfd_owner)
8641 (get_section_bfd_section, get_section_name, get_section_file_name)
8642 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8643 declare.
8644 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8645 (dwarf2_section_info::get_bfd_owner)
8646 (dwarf2_section_info::get_bfd_section)
8647 (dwarf2_section_info::get_name)
8648 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8649 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8650 (dwarf2_section_info::read): Now methods.
8651 * dwarf-index-write.c (class debug_names): Update.
8652
2c86cff9
TT
86532020-02-08 Tom Tromey <tom@tromey.com>
8654
8655 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8656 Move to dwarf2/section.h.
8657 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8658 (get_section_bfd_section, get_section_name)
8659 (get_section_file_name, get_section_id, get_section_flags)
8660 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8661 dwarf2/section.c.
8662 * dwarf2/section.h: New file.
8663 * dwarf2/section.c: New file, from dwarf2read.c.
8664 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8665
f4382c45
TT
86662020-02-08 Tom Tromey <tom@tromey.com>
8667
8668 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8669 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8670 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8671 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8672 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8673 * dwarf2/leb.h: New file, from dwarf2read.c.
8674 * dwarf2/leb.c: New file, from dwarf2read.c.
8675 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8676 Remove.
8677 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8678 (COMMON_SFILES): Add dwarf2/leb.c.
8679
01840b7a
JB
86802020-02-08 Joel Brobecker <brobecker@adacore.com>
8681
8682 GDB 9.1 released.
8683
dfcb27e4
IB
86842020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8685
8686 PR gdb/25190:
aac66a4c
SM
8687 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8688 * gdb/remote.c (remote_console_output): Update.
8689 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8690 (ui_file_puts): ...this.
8691 * gdb/ui-file.h (ui_file_puts): Add declaration.
8692 * gdb/utils.c (emit_style_escape): Update.
8693 (flush_wrap_buffer): Update.
8694 (fputs_maybe_filtered): Update.
8695 (fputs_unfiltered): Add function.
dfcb27e4 8696
faa17681
IB
86972020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8698
aac66a4c
SM
8699 * gdb/event-loop.c (gdb_wait_for_event): Update.
8700 * gdb/printcmd.c (printf_command): Update.
8701 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8702 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8703 (gdb_os_flush_stderr): Update.
8704 * gdb/remote.c (remote_console_output): Update.
8705 * gdb/ui-file.c (gdb_flush): Rename to...
8706 (ui_file_flush): ...this.
8707 (stderr_file::write): Update.
8708 (stderr_file::puts): Update.
8709 * gdb/ui-file.h (gdb_flush): Rename to...
8710 (ui_file_flush): ...this.
8711 * gdb/utils.c (gdb_flush): Add function.
8712 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8713
5abbbe1d
TT
87142020-02-07 Tom Tromey <tromey@adacore.com>
8715
8716 PR breakpoints/24915:
8717 * source.c (find_and_open_source): Do not check basenames_may_differ.
8718
919adfe8
TT
87192020-02-07 Tom Tromey <tom@tromey.com>
8720
8721 * README: Update gdbserver documentation.
8722 * gdbserver: Move to top level.
8723 * configure.tgt (build_gdbserver): Remove.
8724 * configure.ac: Remove --enable-gdbserver.
8725 * configure: Rebuild.
8726 * Makefile.in (distclean): Don't mention gdbserver.
8727
1d5d29e7
SV
87282020-02-06 Shahab Vahedi <shahab@synopsys.com>
8729
8730 * source-cache.c (source_cache::ensure): Surround
8731 get_plain_source_lines with a try/catch.
8732 (source_cache::get_line_charpos): Get rid of try/catch
8733 and only check for the return value of "ensure".
8734 * tui/tui-source.c (tui_source_window::set_contents):
8735 Simplify "nlines" calculation.
8736
6eb1129c
SV
87372020-02-06 Shahab Vahedi <shahab@synopsys.com>
8738
8739 * MAINTAINERS (Write After Approval): Add myself.
8740
c6a42d11
CB
87412020-02-05 Christian Biesinger <cbiesinger@google.com>
8742
8743 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8744 function call.
8745
c8ecdda6
CB
87462020-02-05 Christian Biesinger <cbiesinger@google.com>
8747
8748 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8749
f6480e70
MR
87502020-02-05 Maciej W. Rozycki <macro@wdc.com>
8751
8752 * nat/riscv-linux-tdesc.h: New file.
8753 * nat/riscv-linux-tdesc.c: New file, taking code from...
8754 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8755 ... here.
8756 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8757 NATDEPFILES.
8758
dcc9fbc6
AB
87592020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8760
8761 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8762 we don't set the fake simulator ptid to the null_ptid.
8763
719546c4
SM
87642020-02-03 Simon Marchi <simon.marchi@efficios.com>
8765
8766 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8767 * gdbthread.h (class thread_info) <resumed>: Likewise.
8768 * infrun.c (resume_1): Likewise.
8769 (proceed): Likewise.
8770 (infrun_thread_stop_requested): Likewise.
8771 (stop_all_threads): Likewise.
8772 (handle_inferior_event): Likewise.
8773 (restart_threads): Likewise.
8774 (finish_step_over): Likewise.
8775 (keep_going_stepped_thread): Likewise.
8776 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8777 (linux_handle_extended_wait): Likewise.
8778 * record-btrace.c (get_thread_current_frame_id): Likewise.
8779 * record-full.c (record_full_wait_1): Likewise.
8780 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8781 * target.c (target_resume): Likewise.
8782 * thread.c (set_running_thread): Likewise.
8783
e409c542
AKS
87842020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8785
8786 * f-valprint.c (f77_print_array_1): Changed datatype of index
8787 variable to LONGEST from int to enable it to contain bound
8788 values correctly.
8789
ee98c0da
MR
87902020-02-03 Maciej W. Rozycki <macro@wdc.com>
8791
8792 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8793 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8794 offsets according to FLEN determined.
8795 (riscv_linux_nat_target::read_description): Determine FLEN
8796 dynamically.
8797 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8798 according to FLEN determined.
8799 (riscv_linux_nat_target::store_registers): Likewise.
8800
aa66aac4
SV
88012020-02-01 Shahab Vahedi <shahab@synopsys.com>
8802
8803 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8804 when reg->group is empty and reggroup is not.
8805
fd9faca8
TT
88062020-01-31 Tom Tromey <tromey@adacore.com>
8807
8808 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8809 Call beneath target's mourn_inferior after unpushing.
8810
42330a68
AB
88112020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8812
8813 PR tui/9765
8814 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8815 have enough lines to fill the screen, still return the lowest
8816 address we found.
8817
7a27a45b
AB
88182020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8819
8820 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8821 '-', '<', and '>' commands.
8822
c47f70e2
PA
88232020-01-29 Pedro Alves <palves@redhat.com>
8824 Sergio Durigan Junior <sergiodj@redhat.com>
8825
8826 * infcmd.c (construct_inferior_arguments): Assert that
8827 'argc' is greater than 0.
8828
5133a315
LM
88292020-01-29 Luis Machado <luis.machado@linaro.org>
8830
8831 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8832 (BRK_INSN_MASK): Define to 0xd4200000.
8833 (aarch64_program_breakpoint_here_p): New function.
8834 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8835 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8836 breakpoint.c.
8837 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8838 breakpoint.h
8839 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8840 call gdbarch_program_breakpoint_here_p.
8841 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8842 default_program_breakpoint_here_p, changed return type to bool and
8843 simplified.
8844 * breakpoint.h (program_breakpoint_here): Moved prototype to
8845 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8846 return type to bool.
8847 * gdbarch.c: Regenerate.
8848 * gdbarch.h: Regenerate.
8849 * gdbarch.sh (program_breakpoint_here_p): New method.
8850 * infrun.c (handle_signal_stop): Call
8851 gdbarch_program_breakpoint_here_p.
8852
168f8c6b
TT
88532020-01-26 Tom Tromey <tom@tromey.com>
8854
8855 * ctfread.c (struct ctf_fp_info): Reindent.
8856 (_initialize_ctfread): Remove.
8857
128a391f
TT
88582020-01-26 Tom Tromey <tom@tromey.com>
8859
8860 * psymtab.c (partial_map_expand_apply)
8861 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8862 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8863 (psym_print_stats, psym_expand_symtabs_for_function)
8864 (psym_map_symbol_filenames, psym_map_matching_symbols)
8865 (psym_expand_symtabs_matching)
8866 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8867 (maintenance_check_psymtabs): Use new methods.
8868 * psympriv.h (struct partial_symtab) <readin_p,
8869 get_compunit_symtab>: New methods.
8870 <readin, compunit_symtab>: Remove members.
8871 (struct standard_psymtab): New.
8872 (struct legacy_psymtab): Derive from standard_psymtab.
8873 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8874 standard_psymtab.
8875 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8876
0494dbec
TT
88772020-01-26 Tom Tromey <tom@tromey.com>
8878
8879 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8880 read_dependencies. Add assert.
8881 * psymtab.c (partial_symtab::read_dependencies): New method.
8882 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8883 method.
8884 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8885 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8886 read_dependencies.
8887 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8888 Add assert.
8889
8566b89b
TT
88902020-01-26 Tom Tromey <tom@tromey.com>
8891
8892 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8893 Call expand_psymtab.
8894 (xcoff_read_symtab): Call expand_psymtab.
8895 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8896 legacy_expand_psymtab.
8897 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8898 method.
8899 (struct legacy_psymtab) <expand_psymtab>: Implement.
8900 <legacy_expand_psymtab>: New member.
8901 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8902 (parse_partial_symbols): Set legacy_expand_psymtab.
8903 (psymtab_to_symtab_1): Change argument order. Call
8904 expand_psymtab.
8905 (new_psymtab): Set legacy_expand_psymtab.
8906 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8907 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8908 expand_psymtab.
8909 (dwarf2_psymtab::expand_psymtab): Rename from
8910 psymtab_to_symtab_1. Call expand_psymtab.
8911 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8912 (dbx_end_psymtab): Likewise.
8913 (dbx_psymtab_to_symtab_1): Change argument order. Call
8914 expand_psymtab.
8915 (dbx_read_symtab): Call expand_psymtab.
8916 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8917 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8918 (ctf_psymtab::read_symtab): Call expand_psymtab.
8919
077cbab2
TT
89202020-01-26 Tom Tromey <tom@tromey.com>
8921
8922 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8923 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8924 messages.
8925 * mdebugread.c (mdebug_read_symtab): Remove prints.
8926 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8927 assert.
8928 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8929
891813be
TT
89302020-01-26 Tom Tromey <tom@tromey.com>
8931
8932 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8933 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8934 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8935 legacy_symtab.
8936 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8937 * psymtab.c (psymtab_to_symtab): Call method.
8938 (dump_psymtab): Update.
8939 * psympriv.h (struct partial_symtab): Add virtual destructor.
8940 <read_symtab>: New method.
8941 (struct legacy_symtab): New.
8942 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8943 (struct pst_map) <pst>: Now a legacy_psymtab.
8944 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8945 (new_psymtab): Use legacy_psymtab.
8946 * dwarf2read.h (struct dwarf2_psymtab): New.
8947 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8948 * dwarf2read.c (dwarf2_create_include_psymtab)
8949 (dwarf2_build_include_psymtabs, create_type_unit_group)
8950 (create_partial_symtab, process_psymtab_comp_unit_reader)
8951 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8952 (set_partial_user): Use dwarf2_psymtab.
8953 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8954 (psymtab_to_symtab_1, process_full_comp_unit)
8955 (process_full_type_unit, dwarf2_ranges_read)
8956 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8957 (dwarf_decode_lines): Use dwarf2_psymtab.
8958 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8959 (add_address_entry_worker, write_one_signatured_type)
8960 (recursively_count_psymbols, recursively_write_psymbols)
8961 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8962 (write_debug_names): Likewise.
8963 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8964 <pst>: Now a legacy_psymtab.
8965 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8966 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8967 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8968 * ctfread.c (struct ctf_psymtab): New.
8969 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8970 ctf_psymtab.
8971 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
8972 (create_partial_symtab): Return a ctf_psymtab.
8973 (scan_partial_symbols): Update.
8974
c3693a1d
TT
89752020-01-26 Tom Tromey <tom@tromey.com>
8976
8977 * xcoffread.c (xcoff_start_psymtab): Use new.
8978 * psymtab.c (partial_symtab::partial_symtab): New constructor,
8979 renamed from start_psymtab_common.
8980 * psympriv.h (struct partial_symtab): Add new constructor.
8981 (start_psymtab_common): Don't declare.
8982 * mdebugread.c (parse_partial_symbols): Use new.
8983 * dwarf2read.c (create_partial_symtab): Use new.
8984 * dbxread.c (start_psymtab): Use new.
8985 * ctfread.c (create_partial_symtab): Use new.
8986
32caafd0
TT
89872020-01-26 Tom Tromey <tom@tromey.com>
8988
8989 * xcoffread.c (xcoff_end_psymtab): Use new.
8990 * psymtab.c (start_psymtab_common): Use new.
8991 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
8992 Update.
8993 * psympriv.h (struct partial_symtab): Add parameters to
8994 constructor. Don't inline.
8995 (allocate_psymtab): Don't declare.
8996 * mdebugread.c (new_psymtab): Use new.
8997 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
8998 * dbxread.c (dbx_end_psymtab): Use new.
8999
abaa2f23
TT
90002020-01-26 Tom Tromey <tom@tromey.com>
9001
9002 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9003 allocate_psymtab. Update documentation.
9004 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9005 allocate_psymtab. Do not use new.
9006 (allocate_psymtab): Use new. Update.
9007
6d94535f
TT
90082020-01-26 Tom Tromey <tom@tromey.com>
9009
9010 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9011 * psymtab.c (psym_print_stats): Update.
9012 * psympriv.h (struct partial_symtab) <readin,
9013 psymtabs_addrmap_supported, anonymous>: Now bool.
9014 * mdebugread.c (psymtab_to_symtab_1): Update.
9015 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9016 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9017 (process_full_comp_unit, process_full_type_unit): Update.
9018 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9019 * ctfread.c (psymtab_to_symtab): Update.
9020
6f17252b
TT
90212020-01-26 Tom Tromey <tom@tromey.com>
9022
9023 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9024 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9025 * psymtab.c (psymtab_storage): Delete psymtabs.
9026 (psymtab_storage::allocate_psymtab): Use new.
9027 (psymtab_storage::discard_psymtab): Use delete.
9028 * psympriv.h (struct partial_symtab): Add constructor and
9029 initializers.
9030
f6f1cebc
TT
90312020-01-26 Tom Tromey <tom@tromey.com>
9032
9033 * machoread.c: Do not include psympriv.h.
9034
e47e48f6
PW
90352020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9036
9037 * NEWS: Mention the new option and the set/show commands.
9038
a2fedca9
PW
90392020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9040
9041 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9042 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9043 (validate_exec_file): New variables, enums, functions.
9044 (exec_file_locate_attach, print_section_info): Style the filenames.
9045 (_initialize_exec): Install show_exec_file_mismatch_command and
9046 set_exec_file_mismatch_command.
9047 * gdbcore.h (validate_exec_file): Declare.
9048 * infcmd.c (attach_command): Call validate_exec_file.
9049 * remote.c ( remote_target::remote_add_inferior): Likewise.
9050
7ffa82e1
AB
90512020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9052
9053 * frame.c (find_frame_sal): Move call to get_next_frame into more
9054 inner scope.
9055 * inline-frame.c (inilne_state) <inline_state>: Update argument
9056 types.
9057 (inilne_state) <skipped_symbol>: Rename to...
9058 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9059 (skip_inline_frames): Build vector of skipped symbols and use this
9060 to reate the inline_state.
9061 (inline_skipped_symbol): Add a comment and some assertions, fetch
9062 skipped symbol from the list.
9063
3d92a3e3
AB
90642020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9065
9066 * buildsym.c (lte_is_less_than): Delete.
9067 (buildsym_compunit::end_symtab_with_blockvector): Create local
9068 lambda function to sort line table entries, and use
9069 std::stable_sort instead of std::sort.
9070 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9071 markers when looking for a previous line.
9072
94a72be7
AB
90732020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9074
9075 * dwarf2read.c (lnp_state_machine::record_line): Include
9076 end_sequence parameter in debug print out. Record the line if we
9077 are at an end_sequence marker even if it's not the start of a
9078 statement.
9079 * symmisc.c (maintenance_print_one_line_table): Print end of
9080 sequence markers with 'END' not '0'.
9081
53af73bf
PA
90822020-01-24 Pedro Alves <palves@redhat.com>
9083
9084 PR gdb/25410
9085 * thread.c (scoped_restore_current_thread::restore): Use
9086 switch_to_inferior_no_thread.
9087 * exec.c: Include "progspace-and-thread.h".
9088 (add_target_sections, remove_target_sections):
9089 scoped_restore_current_pspace_and_thread instead of
9090 scoped_restore_current_thread.
9091 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9092 and aspace to the inferior before calling clone_program_space.
9093 Remove stale comment.
9094
3050c6f4
CB
90952020-01-24 Christian Biesinger <cbiesinger@google.com>
9096
9097 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9098 (arm_netbsd_nat_target::fetch_registers): ...this.
9099 (arm_nbsd_nat_target::store_registers): Rename to...
9100 (arm_netbsd_nat_target::store_registers): ...this.
9101
73685c7e
CB
91022020-01-24 Christian Biesinger <cbiesinger@google.com>
9103
9104 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9105 register_t.
9106
89203d40
CB
91072020-01-24 Christian Biesinger <cbiesinger@google.com>
9108
9109 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9110 Update comment.
9111 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9112 Likewise.
9113 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9114 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9115 the correct replacement (iterate_over_regset_sections).
9116 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9117 Update comment.
9118
1ba1ac88
AB
91192020-01-24 Graham Markall <graham.markall@embecosm.com>
9120
9121 PR gdb/23718
9122 * gdb/python/python.c (execute_gdb_command): Call
9123 async_enable_stdin in catch block.
9124
f3364a6d
AB
91252020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9126
9127 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9128 SWITCH_THRU_ALL_UIS.
9129
733d0a67
AB
91302020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9131
9132 PR tui/9765
9133 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9134 comment, add extra parameter, and update to store previous symbol
9135 when appropriate.
9136 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9137 add extra parameter.
9138 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9139 remove unneeded parameter, add try/catch around gdb_print_insn,
9140 rewrite to add items to asm_lines vector.
9141 (tui_find_backward_disassembly_start_address): New function.
9142 (tui_find_disassembly_address): Updated throughout.
9143 (tui_disasm_window::set_contents): Update for changes to
9144 tui_disassemble.
9145 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9146 number of lines to scroll.
9147
b3b3bada
SM
91482020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9149
9150 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9151 (SECT_OFF_DATA): Likewise.
9152 (SECT_OFF_RODATA): Likewise.
9153 (SECT_OFF_TEXT): Likewise.
9154 (SECT_OFF_BSS): Likewise.
9155 (struct objfile) <text_section_offset, data_section_offset>: New
9156 methods.
9157 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9158 objfile::text_section_offset.
9159 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9160 * coffread.c (coff_symtab_read): Likewise.
9161 (enter_linenos): Likewise.
9162 (process_coff_symbol): Likewise.
9163 * ctfread.c (get_objfile_text_range): Likewise.
9164 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9165 Use objfile::data_section_offset.
9166 * dwarf2-frame.c (execute_cfa_program): Use
9167 objfile::text_section_offset.
9168 (dwarf2_frame_find_fde): Likewise.
9169 * dwarf2read.c (create_addrmap_from_index): Likewise.
9170 (create_addrmap_from_aranges): Likewise.
9171 (dw2_find_pc_sect_compunit_symtab): Likewise.
9172 (process_psymtab_comp_unit_reader): Likewise.
9173 (add_partial_symbol): Likewise.
9174 (add_partial_subprogram): Likewise.
9175 (process_full_comp_unit): Likewise.
9176 (read_file_scope): Likewise.
9177 (read_func_scope): Likewise.
9178 (read_lexical_block_scope): Likewise.
9179 (read_call_site_scope): Likewise.
9180 (dwarf2_rnglists_process): Likewise.
9181 (dwarf2_ranges_process): Likewise.
9182 (dwarf2_ranges_read): Likewise.
9183 (dwarf_decode_lines_1): Likewise.
9184 (new_symbol): Likewise.
9185 (dwarf2_fetch_die_loc_sect_off): Likewise.
9186 (dwarf2_per_cu_text_offset): Likewise.
9187 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9188 * hppa-tdep.c (read_unwind_info): Likewise.
9189 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9190 * psympriv.h (struct partial_symtab): Likewise.
9191 * psymtab.c (find_pc_sect_psymtab): Likewise.
9192 * solib-svr4.c (enable_break): Likewise.
9193 * stap-probe.c (relocate_address): Use
9194 objfile::data_section_offset.
9195 * xcoffread.c (enter_line_range): Use
9196 objfile::text_section_offset.
9197 (read_xcoff_symtab): Likewise.
9198
ab53f382
SM
91992020-01-23 Simon Marchi <simon.marchi@efficios.com>
9200
9201 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9202 declaration to narrower scopes.
9203
e7eee665
SM
92042020-01-23 Simon Marchi <simon.marchi@efficios.com>
9205
9206 * darwin-nat.h (struct darwin_exception_msg, enum
9207 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9208 Move up.
9209 (class darwin_nat_target) <wait_1, check_new_threads,
9210 decode_exception_message, decode_message, stop_inferior,
9211 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9212 * darwin-nat.c (darwin_check_new_threads): Rename to...
9213 (darwin_nat_target::check_new_threads): ... this.
9214 (darwin_suspend_inferior_it): Remove.
9215 (darwin_decode_exception_message): Rename to...
9216 (darwin_nat_target::decode_exception_message): ... this.
9217 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9218 (darwin_decode_message): Rename to...
9219 (darwin_nat_target::decode_message): ... this.
9220 (cancel_breakpoint): Rename to...
9221 (darwin_nat_target::cancel_breakpoint): ... this.
9222 (darwin_wait): Rename to...
9223 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9224 instead of iterate_over_inferiors.
9225 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9226 (darwin_stop_inferior): Rename to...
9227 (darwin_nat_target::stop_inferior): ... this.
9228 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9229 (darwin_init_thread_list): Rename to...
9230 (darwin_nat_target::init_thread_list): ... this.
9231 (darwin_ptrace_him): Rename to...
9232 (darwin_nat_target::ptrace_him): ... this.
9233 (darwin_nat_target::create_inferior): Pass lambda function to
9234 fork_inferior.
9235 (darwin_nat_target::detach): Call stop_inferior instead of
9236 darwin_stop_inferior.
9237 * fork-inferior.h (fork_inferior): Change init_trace_fun
9238 parameter to gdb::function_view.
9239 * fork-inferior.c (fork_inferior): Likewise.
9240
c162ed3e
HD
92412020-01-23 Hannes Domani <ssbssa@yahoo.de>
9242
9243 * i386-cygwin-tdep.c (core_process_module_section): Update.
9244 * windows-nat.c (struct lm_info_windows): Add text_offset.
9245 (windows_xfer_shared_libraries): Update.
9246 * windows-tdep.c (windows_xfer_shared_library):
9247 Add text_offset_cached argument.
9248 * windows-tdep.h (windows_xfer_shared_library): Update.
9249
a1237872
SM
92502020-01-21 Simon Marchi <simon.marchi@efficios.com>
9251
9252 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9253
b3ee6dd9
SM
92542020-01-21 Simon Marchi <simon.marchi@efficios.com>
9255
9256 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9257 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9258 replace with range-based for.
9259 (gdbsim_interrupt_inferior): Remove.
9260 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9261 with a range-based for. Inline code from
9262 gdbsim_interrupt_inferior.
9263
f9fac3c8
SM
92642020-01-21 Simon Marchi <simon.marchi@efficios.com>
9265
9266 * infrun.c (proceed): Fix indentation.
9267
f6474de9
TT
92682020-01-21 Tom Tromey <tromey@adacore.com>
9269
9270 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9271 * python/python.c (python_extension_ops): Update.
9272 (gdbpy_colorize): New function.
9273 * python/lib/gdb/__init__.py (colorize): New function.
9274 * extension.h (ext_lang_colorize): Declare.
9275 * extension.c (ext_lang_colorize): New function.
9276 * extension-priv.h (struct extension_language_ops) <colorize>: New
9277 member.
9278 * cli/cli-style.c (_initialize_cli_style): Update help text.
9279
f0c702d4
LM
92802020-01-21 Luis Machado <luis.machado@linaro.org>
9281
9282 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9283 <cond>: Change type to bool.
9284 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9285 (aarch64_displaced_step_cb): Likewise.
9286 (aarch64_displaced_step_tb): Likewise.
9287
1ab139e5
LM
92882020-01-21 Luis Machado <luis.machado@linaro.org>
9289
9290 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9291 output.
9292
0c271889
LM
92932020-01-21 Luis Machado <luis.machado@linaro.org>
9294
9295 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9296 <pc_adjust>: Adjust the documentation.
9297 (aarch64_displaced_step_fixup): Check if PC really moved before
9298 adjusting it.
9299
4d89c1c7
TT
93002020-01-19 Tom Tromey <tom@tromey.com>
9301
9302 * disasm.c (~gdb_disassembler): New destructor.
9303 (gdb_buffered_insn_length): Call disassemble_free_target.
9304 * disasm.h (class gdb_disassembler): Declare destructor. Use
9305 DISABLE_COPY_AND_ASSIGN.
9306
c0ab21c2
TT
93072020-01-19 Tom Tromey <tom@tromey.com>
9308
9309 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9310 (die_reader_func_ftype): Remove.
9311 (cutu_reader): New class.
9312 (dw2_get_file_names_reader): Remove "data" parameter.
9313 (dw2_get_file_names): Use cutu_reader.
9314 (create_debug_type_hash_table): Update.
9315 (read_cutu_die_from_dwo): Update comment.
9316 (lookup_dwo_unit): Add dwo_name parameter.
9317 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9318 die_reader_func_ftype and data parameters.
9319 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9320 Remove die_reader_func_ftype and data parameters.
9321 (~cutu_reader): New; from init_cutu_and_read_dies.
9322 (cutu_reader::cutu_reader): Rename from
9323 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9324 and data parameters.
9325 (init_cutu_and_read_dies_simple): Remove.
9326 (struct process_psymtab_comp_unit_data): Remove.
9327 (process_psymtab_comp_unit_reader): Remove data parameter; add
9328 want_partial_unit and pretend_language parameters.
9329 (process_psymtab_comp_unit): Use cutu_reader.
9330 (build_type_psymtabs_reader): Remove data parameter.
9331 (build_type_psymtabs_1): Use cutu_reader.
9332 (process_skeletonless_type_unit): Likewise.
9333 (load_partial_comp_unit_reader): Remove.
9334 (load_partial_comp_unit): Use cutu_reader.
9335 (load_full_comp_unit_reader): Remove.
9336 (load_full_comp_unit): Use cutu_reader.
9337 (struct create_dwo_cu_data): Remove.
9338 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9339 dwo_unit parameters.
9340 (create_cus_hash_table): Use cutu_reader.
9341 (struct dwarf2_read_addr_index_data): Remove.
9342 (dwarf2_read_addr_index_reader): Remove.
9343 (dwarf2_read_addr_index): Use cutu_reader.
9344 (read_signatured_type_reader): Remove.
9345 (read_signatured_type): Use cutu_reader.
9346
45bbae5c
TT
93472020-01-19 Tom Tromey <tom@tromey.com>
9348
9349 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9350 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9351 (tui_wrefresh): Declare.
9352 * tui/tui-wingeneral.c (suppress_output): New global.
9353 (tui_suppress_output, ~tui_suppress_output): New constructor and
9354 destructor.
9355 (tui_wrefresh): New function.
9356 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9357 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9358 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9359 method.
9360 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9361 tui_wrefresh.
9362 (tui_data_window::no_refresh): New method.
9363 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9364 (tui_reg_command): Use tui_suppress_output
9365 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9366 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9367 method.
9368 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9369
4f13c1c0
TT
93702020-01-19 Tom Tromey <tom@tromey.com>
9371
9372 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9373 Handle case where symtab is null.
9374
fa47e446
SM
93752020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9376
9377 * linux-fork.c (one_fork_p): Simplify.
9378
26f42329
SM
93792020-01-17 Simon Marchi <simon.marchi@efficios.com>
9380
9381 * top.c (struct qt_args): Remove.
9382 (kill_or_detach): Change return type to void, replace `void *`
9383 parameter with a proper one.
9384 (print_inferior_quit_action): Likewise.
9385 (quit_confirm): Use range-based for loop to iterate over inferiors.
9386 (quit_force): Likewise.
9387
a9ac81b1
SM
93882020-01-17 Simon Marchi <simon.marchi@efficios.com>
9389
9390 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9391 `void *` parameter with proper parameters.
9392 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9393 (print_one_inferior): Change return type to void, replace `void *`
9394 parameter with proper parameters.
9395 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9396 inferiors.
9397 (get_other_inferior): Remove.
9398 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9399 inferiors.
9400
788eca49
SM
94012020-01-17 Simon Marchi <simon.marchi@efficios.com>
9402
9403 * mi/mi-interp.c (report_initial_inferior): Remove.
9404 (mi_interp::init): Use range-based for to iterate over inferiors.
9405
d9bc85b6
SM
94062020-01-17 Simon Marchi <simon.marchi@efficios.com>
9407
9408 * python/py-inferior.c (build_inferior_list): Remove.
9409 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9410
40c94099
CB
94112020-01-16 Christian Biesinger <cbiesinger@google.com>
9412
9413 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9414 (btrace_stitch_trace): Likewise.
9415 * charset.c (intermediate_encoding): Likewise (vaild).
9416 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9417 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9418 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9419
e0cdfe3c
HD
94202020-01-16 Hannes Domani <ssbssa@yahoo.de>
9421
9422 * windows-tdep.c (windows_get_tlb_type):
9423 Add rtl_user_process_parameters type.
9424
790f1718 94252020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9426 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9427
9428 PR build/24805
9429 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9430 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9431 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9432 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9433 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9434 (ps_plog): Redeclare exported functions with default visibility.
9435
3112ed97
NA
94362020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9437
9438 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9439 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9440
8dc3273e
SM
94412020-01-15 Simon Marchi <simon.marchi@efficios.com>
9442
9443 * infcmd.c (post_create_inferior): Use get_thread_regcache
9444 instead of get_current_regcache.
9445
ff47f4f0
TT
94462020-01-14 Tom Tromey <tom@tromey.com>
9447
9448 PR symtab/12535:
9449 * python/python.c (gdbpy_decode_line): Treat empty string the same
9450 as no argument.
9451
975f45b7
TT
94522020-01-14 Tom Tromey <tom@tromey.com>
9453
9454 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9455
25e57356
TT
94562020-01-14 Tom Tromey <tom@tromey.com>
9457
9458 * nat/linux-btrace.c: Don't include <config.h>.
9459 * nat/linux-ptrace.c: Don't include <config.h>.
9460 * nat/x86-linux-dregs.c: Don't include <config.h>.
9461
05ea2a05
TT
94622020-01-14 Tom Tromey <tom@tromey.com>
9463
9464 * configure: Rebuild.
9465 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9466
01027315
TT
94672020-01-14 Tom Tromey <tom@tromey.com>
9468
9469 * nat/x86-linux-dregs.c: Include configh.h.
9470 * nat/linux-ptrace.c: Include configh.h.
9471 * nat/linux-btrace.c: Include configh.h.
9472 * defs.h: Include config.h, bfd.h.
9473 * configure.ac: Don't source common.host.
9474 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9475 * configure: Rebuild.
9476 * acinclude.m4: Update path.
9477 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9478 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9479 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9480 (CLIBS): Add LIBSUPPORT.
9481 (CDEPS): Likewise.
9482 (COMMON_SFILES): Remove gdbsupport files.
9483 (HFILES_NO_SRCDIR): Likewise.
9484 (stamp-version): Update path to create-version.sh.
9485 (ALLDEPFILES): Remove gdbsupport files.
9486
b2ceabe8
TT
94872020-01-14 Tom Tromey <tom@tromey.com>
9488
9489 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9490 USE_WIN32API when needed.
9491 * configure.ac (USE_WIN32API): Don't define.
9492 (WIN32LIBS): Use WIN32APILIBS.
9493 * configure: Rebuild.
9494
25c51f71
TT
94952020-01-14 Tom Tromey <tom@tromey.com>
9496
9497 * configure: Rebuild.
9498 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9499
717c684d
BE
95002020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9501
9502 * skip.c (skip_function_command): Make skip w/o arguments use the
9503 name of the inlined function if pc is inside any inlined function.
9504
7da6a5b9
LM
95052020-01-14 Luis Machado <luis.machado@linaro.org>
9506
9507 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9508 * infrun.c (resume_1): Likewise.
9509 (handle_inferior_event): Remove stale comment.
9510 * linux-nat.c (linux_nat_target::resume): Update comments.
9511 (save_stop_reason): Likewise.
9512 (linux_nat_filter_event): Likewise.
9513 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9514
44e4c775
AB
95152020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9516
9517 * elfread.c (record_minimal_symbol): Set section index to 0 for
9518 non-allocatable sections.
9519
18a8505e
AT
9520
95212020-01-13 Ali Tamur <tamur@google.com>
9522
9523 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9524 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9525 to gdb::optional. Update comments.
9526 (dwo_file): Update comments.
9527 (read_attribute): Update API to take an additional out parameter,
9528 need_reprocess. This is used to mark attributes that need other
9529 attributes (e.g. str_offsets_base) for correct computation which may not
9530 have been read yet.
9531 (read_attribute_reprocess): New function declaration.
9532 (read_addr_index): Likewise.
9533 (read_dwo_str_index): Likewise.
9534 (read_stub_str_index): Likewise.
9535 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9536 (lookup_addr_base): New function definition.
9537 (lookup_ranges_base): Likewise.
9538 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9539 lookup_ranges_base.
9540 (init_cutu_and_read_dies): Update comments.
9541 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9542 unit. This is used to inherit parent's str_offsets_base and addr_base.
9543 Update comments.
9544 (init_cutu_and_read_dies_simple): Reflect API changes.
9545 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9546 (create_cus_hash_table): Change API to take parent compile unit.
9547 Reflect API changes.
9548 (open_and_init_dwo_file): Reflect API changes.
9549 (dwarf2_get_pc_bounds): Update comments.
9550 (dwarf2_record_block_ranges): Likewise.
9551 (read_full_die_1): Change implementation to reprocess attributes that
9552 need str_offsets_base and addr_base.
9553 (partial_die_info::read): Likewise.
9554 (read_attribute_reprocess): New function definition.
9555 (read_attribute_value): Change API to take an additional out parameter,
9556 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9557 when a non-dwo compile unit has index based attributes.
9558 (read_attribute): Reflect API changes.
9559 (read_addr_index_1): Reflect API changes. Update comments.
9560 (dwarf2_read_addr_index_data): Reflect API changes.
9561 (dwarf2_read_addr_index): Likewise.
9562 (read_str_index): Change API and implementation. This becomes a helper
9563 to be used by the new string index related methods. Update error
9564 message and comments.
9565 (read_dwo_str_index): New function definition.
9566 (read_stub_str_index): Likewise.
9567 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9568 * symfile.h (dwarf2_debug_sections): Likewise.
9569 * xcoffread.c (dwarf2_debug_sections): Likewise.
9570
0cac9354
SM
95712020-01-13 Simon Marchi <simon.marchi@efficios.com>
9572
9573 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9574 core_reg_sect type to gdb_byte *.
9575 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9576 * cris-tdep.c (fetch_core_registers): Likewise.
9577 * corelow.c (core_target::get_core_register_section): Change
9578 type of `contents` to gdb::byte_vector.
9579
9a6d629c
AB
95802020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9581
9582 * tui/tui-wingeneral.c (box_win): Position the title in the center
9583 of the border.
9584
d8b2f9e3
SM
95852020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9586
9587 * corelow.c (core_target::get_core_register_section): Use
9588 std::vector instead of alloca.
9589
bb564c58
SM
95902020-01-13 Simon Marchi <simon.marchi@efficios.com>
9591
9592 * warning.m4: Add -Wmissing-declarations to build_warnings.
9593 * configure: Re-generate.
9594
6b366111
SM
95952020-01-13 Simon Marchi <simon.marchi@efficios.com>
9596
9597 * python/python.c (init__gdb_module): Add declaration.
9598
6c265988
SM
95992020-01-13 Simon Marchi <simon.marchi@efficios.com>
9600
9601 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9602 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9603 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9604 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9605 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9606 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9607 * ada-exp.y (_initialize_ada_exp): Add declaration.
9608 * ada-lang.c (_initialize_ada_language): Add declaration.
9609 * ada-tasks.c (_initialize_tasks): Add declaration.
9610 * agent.c (_initialize_agent): Add declaration.
9611 * aix-thread.c (_initialize_aix_thread): Add declaration.
9612 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9613 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9614 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9615 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9616 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9617 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9618 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9619 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9620 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9621 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9622 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9623 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9624 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9625 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9626 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9627 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9628 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9629 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9630 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9631 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9632 * annotate.c (_initialize_annotate): Add declaration.
9633 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9634 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9635 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9636 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9637 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9638 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9639 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9640 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9641 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9642 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9643 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9644 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9645 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9646 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9647 * auto-load.c (_initialize_auto_load): Add declaration.
9648 * auxv.c (_initialize_auxv): Add declaration.
9649 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9650 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9651 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9652 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9653 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9654 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9655 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9656 * breakpoint.c (_initialize_breakpoint): Add declaration.
9657 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9658 * btrace.c (_initialize_btrace): Add declaration.
9659 * charset.c (_initialize_charset): Add declaration.
9660 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9661 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9662 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9663 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9664 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9665 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9666 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9667 * coffread.c (_initialize_coffread): Add declaration.
9668 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9669 * compile/compile.c (_initialize_compile): Add declaration.
9670 * complaints.c (_initialize_complaints): Add declaration.
9671 * completer.c (_initialize_completer): Add declaration.
9672 * copying.c (_initialize_copying): Add declaration.
9673 * corefile.c (_initialize_core): Add declaration.
9674 * corelow.c (_initialize_corelow): Add declaration.
9675 * cp-abi.c (_initialize_cp_abi): Add declaration.
9676 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9677 * cp-support.c (_initialize_cp_support): Add declaration.
9678 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9679 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9680 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9681 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9682 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9683 * ctfread.c (_initialize_ctfread): Add declaration.
9684 * d-lang.c (_initialize_d_language): Add declaration.
9685 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9686 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9687 * dbxread.c (_initialize_dbxread): Add declaration.
9688 * dcache.c (_initialize_dcache): Add declaration.
9689 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9690 * disasm.c (_initialize_disasm): Add declaration.
9691 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9692 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9693 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9694 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9695 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9696 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9697 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9698 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9699 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9700 * elfread.c (_initialize_elfread): Add declaration.
9701 * exec.c (_initialize_exec): Add declaration.
9702 * extension.c (_initialize_extension): Add declaration.
9703 * f-lang.c (_initialize_f_language): Add declaration.
9704 * f-valprint.c (_initialize_f_valprint): Add declaration.
9705 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9706 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9707 * filesystem.c (_initialize_filesystem): Add declaration.
9708 * findcmd.c (_initialize_mem_search): Add declaration.
9709 * findvar.c (_initialize_findvar): Add declaration.
9710 * fork-child.c (_initialize_fork_child): Add declaration.
9711 * frame-base.c (_initialize_frame_base): Add declaration.
9712 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9713 * frame.c (_initialize_frame): Add declaration.
9714 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9715 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9716 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9717 * gcore.c (_initialize_gcore): Add declaration.
9718 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9719 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9720 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9721 * gdbarch.c (_initialize_gdbarch): Add declaration.
9722 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9723 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9724 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9725 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9726 * go-lang.c (_initialize_go_language): Add declaration.
9727 * go32-nat.c (_initialize_go32_nat): Add declaration.
9728 * guile/guile.c (_initialize_guile): Add declaration.
9729 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9730 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9731 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9732 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9733 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9734 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9735 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9736 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9737 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9738 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9739 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9740 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9741 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9742 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9743 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9744 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9745 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9746 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9747 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9748 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9749 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9750 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9751 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9752 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9753 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9754 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9755 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9756 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9757 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9758 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9759 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9760 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9761 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9762 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9763 * infcall.c (_initialize_infcall): Add declaration.
9764 * infcmd.c (_initialize_infcmd): Add declaration.
9765 * inflow.c (_initialize_inflow): Add declaration.
9766 * infrun.c (_initialize_infrun): Add declaration.
9767 * interps.c (_initialize_interpreter): Add declaration.
9768 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9769 * jit.c (_initialize_jit): Add declaration.
9770 * language.c (_initialize_language): Add declaration.
9771 * linux-fork.c (_initialize_linux_fork): Add declaration.
9772 * linux-nat.c (_initialize_linux_nat): Add declaration.
9773 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9774 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9775 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9776 * m2-lang.c (_initialize_m2_language): Add declaration.
9777 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9778 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9779 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9780 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9781 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9782 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9783 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9784 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9785 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9786 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9787 * machoread.c (_initialize_machoread): Add declaration.
9788 * macrocmd.c (_initialize_macrocmd): Add declaration.
9789 * macroscope.c (_initialize_macroscope): Add declaration.
9790 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9791 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9792 * maint.c (_initialize_maint_cmds): Add declaration.
9793 * mdebugread.c (_initialize_mdebugread): Add declaration.
9794 * memattr.c (_initialize_mem): Add declaration.
9795 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9796 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9797 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9798 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9799 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9800 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9801 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9802 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9803 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9804 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9805 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9806 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9807 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9808 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9809 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9810 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9811 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9812 * mipsread.c (_initialize_mipsread): Add declaration.
9813 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9814 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9815 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9816 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9817 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9818 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9819 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9820 * nto-procfs.c (_initialize_procfs): Add declaration.
9821 * objc-lang.c (_initialize_objc_language): Add declaration.
9822 * observable.c (_initialize_observer): Add declaration.
9823 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9824 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9825 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9826 * osabi.c (_initialize_gdb_osabi): Add declaration.
9827 * osdata.c (_initialize_osdata): Add declaration.
9828 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9829 * parse.c (_initialize_parse): Add declaration.
9830 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9831 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9832 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9833 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9834 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9835 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9836 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9837 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9838 * printcmd.c (_initialize_printcmd): Add declaration.
9839 * probe.c (_initialize_probe): Add declaration.
9840 * proc-api.c (_initialize_proc_api): Add declaration.
9841 * proc-events.c (_initialize_proc_events): Add declaration.
9842 * proc-service.c (_initialize_proc_service): Add declaration.
9843 * procfs.c (_initialize_procfs): Add declaration.
9844 * producer.c (_initialize_producer): Add declaration.
9845 * psymtab.c (_initialize_psymtab): Add declaration.
9846 * python/python.c (_initialize_python): Add declaration.
9847 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9848 * record-btrace.c (_initialize_record_btrace): Add declaration.
9849 * record-full.c (_initialize_record_full): Add declaration.
9850 * record.c (_initialize_record): Add declaration.
9851 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9852 * regcache.c (_initialize_regcache): Add declaration.
9853 * reggroups.c (_initialize_reggroup): Add declaration.
9854 * remote-notif.c (_initialize_notif): Add declaration.
9855 * remote-sim.c (_initialize_remote_sim): Add declaration.
9856 * remote.c (_initialize_remote): Add declaration.
9857 * reverse.c (_initialize_reverse): Add declaration.
9858 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9859 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9860 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9861 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9862 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9863 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9864 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9865 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9866 Add declaration.
9867 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9868 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9869 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9870 * rust-exp.y (_initialize_rust_exp): Add declaration.
9871 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9872 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9873 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9874 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9875 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9876 * score-tdep.c (_initialize_score_tdep): Add declaration.
9877 * ser-go32.c (_initialize_ser_dos): Add declaration.
9878 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9879 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9880 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9881 * ser-uds.c (_initialize_ser_socket): Add declaration.
9882 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9883 * serial.c (_initialize_serial): Add declaration.
9884 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9885 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9886 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9887 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9888 * skip.c (_initialize_step_skip): Add declaration.
9889 * sol-thread.c (_initialize_sol_thread): Add declaration.
9890 * solib-aix.c (_initialize_solib_aix): Add declaration.
9891 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9892 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9893 * solib-frv.c (_initialize_frv_solib): Add declaration.
9894 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9895 * solib-target.c (_initialize_solib_target): Add declaration.
9896 * solib.c (_initialize_solib): Add declaration.
9897 * source-cache.c (_initialize_source_cache): Add declaration.
9898 * source.c (_initialize_source): Add declaration.
9899 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9900 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9901 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9902 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9903 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9904 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9905 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9906 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9907 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9908 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9909 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9910 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9911 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9912 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9913 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9914 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9915 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9916 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9917 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9918 * stabsread.c (_initialize_stabsread): Add declaration.
9919 * stack.c (_initialize_stack): Add declaration.
9920 * stap-probe.c (_initialize_stap_probe): Add declaration.
9921 * std-regs.c (_initialize_frame_reg): Add declaration.
9922 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9923 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9924 * symfile.c (_initialize_symfile): Add declaration.
9925 * symmisc.c (_initialize_symmisc): Add declaration.
9926 * symtab.c (_initialize_symtab): Add declaration.
9927 * target.c (_initialize_target): Add declaration.
9928 * target-connection.c (_initialize_target_connection): Add
9929 declaration.
9930 * target-dcache.c (_initialize_target_dcache): Add declaration.
9931 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9932 * thread.c (_initialize_thread): Add declaration.
9933 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9934 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9935 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9936 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9937 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9938 * tracectf.c (_initialize_ctf): Add declaration.
9939 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9940 * tracefile.c (_initialize_tracefile): Add declaration.
9941 * tracepoint.c (_initialize_tracepoint): Add declaration.
9942 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9943 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9944 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9945 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9946 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9947 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9948 * tui/tui.c (_initialize_tui): Add declaration.
9949 * typeprint.c (_initialize_typeprint): Add declaration.
9950 * ui-style.c (_initialize_ui_style): Add declaration.
9951 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9952 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9953 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9954 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9955 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9956 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9957 * unittests/filtered_iterator-selftests.c
9958 (_initialize_filtered_iterator_selftests): Add declaration.
9959 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9960 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9961 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9962 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9963 * unittests/main-thread-selftests.c
9964 (_initialize_main_thread_selftests): Add declaration.
9965 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9966 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9967 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9968 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9969 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9970 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9971 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
9972 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
9973 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
9974 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
9975 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
9976 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
9977 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
9978 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
9979 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
9980 declaration.
9981 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
9982 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
9983 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
9984 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
9985 * user-regs.c (_initialize_user_regs): Add declaration.
9986 * utils.c (_initialize_utils): Add declaration.
9987 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
9988 * valops.c (_initialize_valops): Add declaration.
9989 * valprint.c (_initialize_valprint): Add declaration.
9990 * value.c (_initialize_values): Add declaration.
9991 * varobj.c (_initialize_varobj): Add declaration.
9992 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
9993 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
9994 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
9995 * windows-nat.c (_initialize_windows_nat): Add declaration.
9996 (_initialize_check_for_gdb_ini): Add declaration.
9997 (_initialize_loadable): Add declaration.
9998 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
9999 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10000 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10001 * xcoffread.c (_initialize_xcoffread): Add declaration.
10002 * xml-support.c (_initialize_xml_support): Add declaration.
10003 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10004 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10005 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10006 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10007
e2de1eec
SM
100082020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10009
10010 * regformats/regdat.sh: Generate declaration for init function.
10011
e0037b4c
SM
100122020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10013
10014 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10015 up.
10016 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10017 close_one_inferior>: New methods.
10018 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10019 pass down target to find_inferior_pid.
10020 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10021 Pass down target to find_inferior_ptid.
10022 (gdbsim_target::create_inferior): Pass down target to
10023 add_thread_silent.
10024 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10025 target down to find_inferior_ptid and switch_to_thread.
10026 (gdbsim_target::close): Update to call close_one_inferior.
10027 (struct resume_data): Remove.
10028 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10029 directly, rather than through a void pointer.
10030 (gdbsim_target::resume): Update to call resume_one_inferior.
10031
58920b5b
SM
100322020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10033
10034 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10035
4ec89149
PA
100362020-01-12 Pedro Alves <palves@redhat.com>
10037
10038 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10039 directly for the current inferior instead of
10040 discard_all_inferiors.
10041 (discard_all_inferiors): Delete.
10042
7c392d1d
TT
100432020-01-11 Tom Tromey <tom@tromey.com>
10044
10045 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10046 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10047 deprecated_safe_get_selected_frame.
10048
d9ebdab7
TBA
100492020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10050
10051 * inferior.c (print_inferior): Switch inferior before printing it.
10052
f3c469b9
PA
100532020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10054 Pedro Alves <palves@redhat.com>
10055
10056 * progspace-and-thread.c (switch_to_program_space_and_thread):
10057 Assert there's an inferior for PSPACE. Use
10058 switch_to_inferior_no_thread to switch the inferior too.
10059 * progspace.c (program_space::~program_space): Call
10060 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10061 (program_space::free_all_objfiles): Don't call clear_symtab_users
10062 here.
10063 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10064
65c574f6
PA
100652020-01-10 Pedro Alves <palves@redhat.com>
10066
10067 * NEWS: Mention multi-target debugging, "info connections", and
10068 "add-inferior -no-connection".
10069
2f4fcf00
PA
100702020-01-10 Pedro Alves <palves@redhat.com>
10071
10072 * infrun.c: Include "target-connection.h".
10073 (check_multi_target_resumption): New.
10074 (proceed): Call it.
10075 * target-connection.c (make_target_connection_string): Make
10076 extern.
10077 * target-connection.h (make_target_connection_string): Declare.
10078
121b3efd
PA
100792020-01-10 Pedro Alves <palves@redhat.com>
10080
10081 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10082 * inferior.c (uiout_field_connection): New function.
10083 (print_inferior): Add new "connection-id" column.
10084 (add_inferior_command): Show connection number/string of added
10085 inferior.
10086 * process-stratum-target.h
10087 (process_stratum_target::connection_string): New virtual method.
10088 (process_stratum_target::connection_number): New field.
10089 * remote.c (remote_target::connection_string): New override.
10090 * target-connection.c: New file.
10091 * target-connection.h: New file.
10092 * target.c (decref_target): Remove process_stratum targets from
10093 the connection list.
10094 (target_stack::push): Add process_stratum targets to the
10095 connection list.
10096
4f837581
PA
100972020-01-10 Pedro Alves <palves@redhat.com>
10098
10099 Revert:
10100 2016-04-12 Pedro Alves <palves@redhat.com>
10101 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10102 Remove references to name.
10103 * serial.h (struct serial) <name>: Delete.
10104
f4ec508e
PA
101052020-01-10 Pedro Alves <palves@redhat.com>
10106
10107 * gdbarch-selftests.c (register_to_value_test): Remove "target
10108 already pushed" check.
10109
5b6d1e4f
PA
101102020-01-10 Pedro Alves <palves@redhat.com>
10111 John Baldwin <jhb@FreeBSD.org>
10112
10113 * aarch64-linux-nat.c
10114 (aarch64_linux_nat_target::thread_architecture): Adjust.
10115 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10116 (task_command_1): Likewise.
10117 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10118 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10119 (aix_thread_target::store_registers)
10120 (aix_thread_target::thread_alive): Adjust.
10121 * amd64-fbsd-tdep.c: Include "inferior.h".
10122 (amd64fbsd_get_thread_local_address): Pass down target.
10123 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10124 thread's gdbarch instead of target_gdbarch.
10125 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10126 get_last_target_status.
10127 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10128 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10129 inferiors.
10130 (update_inserted_breakpoint_locations): Skip if inferiors with no
10131 execution.
10132 (update_global_location_list): When handling moribund locations,
10133 find representative inferior for location's pspace, and use thread
10134 count of its process_stratum target.
10135 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10136 * bsd-uthread.c (bsd_uthread_target::wait): Use
10137 as_process_stratum_target and adjust thread_change_ptid and
10138 add_thread calls.
10139 (bsd_uthread_target::update_thread_list): Use
10140 as_process_stratum_target and adjust find_thread_ptid,
10141 thread_change_ptid and add_thread calls.
10142 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10143 find_thread_ptid call.
10144 * corelow.c (add_to_thread_list): Adjust add_thread call.
10145 (core_target_open): Adjust add_thread_silent and thread_count
10146 calls.
10147 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10148 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10149 * event-top.c (async_disconnect): Pop targets from all inferiors.
10150 * exec.c (add_target_sections): Push exec target on all inferiors
10151 sharing the program space.
10152 (remove_target_sections): Remove the exec target from all
10153 inferiors sharing the program space.
10154 (exec_on_vfork): New.
10155 * exec.h (exec_on_vfork): Declare.
10156 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10157 Pass it down.
10158 (fbsd_nat_target::update_thread_list): Adjust.
10159 (fbsd_nat_target::resume): Adjust.
10160 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10161 down.
10162 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10163 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10164 get_thread_arch_regcache call.
10165 * fork-child.c (gdb_startup_inferior): Pass target down to
10166 startup_inferior and set_executing.
10167 * gdbthread.h (struct process_stratum_target): Forward declare.
10168 (add_thread, add_thread_silent, add_thread_with_info)
10169 (in_thread_list): Add process_stratum_target parameter.
10170 (find_thread_ptid(inferior*, ptid_t)): New overload.
10171 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10172 parameter.
10173 (all_threads()): Delete overload.
10174 (all_threads, all_non_exited_threads): Add process_stratum_target
10175 parameter.
10176 (all_threads_safe): Use brace initialization.
10177 (thread_count): Add process_stratum_target parameter.
10178 (set_resumed, set_running, set_stop_requested, set_executing)
10179 (threads_are_executing, finish_thread_state): Add
10180 process_stratum_target parameter.
10181 (switch_to_thread): Use is_current_thread.
10182 * i386-fbsd-tdep.c: Include "inferior.h".
10183 (i386fbsd_get_thread_local_address): Pass down target.
10184 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10185 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10186 have_inferiors check.
10187 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10188 (inf_ptrace_target::attach): Adjust.
10189 * infcall.c (run_inferior_call): Adjust.
10190 * infcmd.c (run_command_1): Pass target to
10191 scoped_finish_thread_state.
10192 (proceed_thread_callback): Skip inferiors with no execution.
10193 (continue_command): Rename 'all_threads' local to avoid hiding
10194 'all_threads' function. Adjust get_last_target_status call.
10195 (prepare_one_step): Adjust set_running call.
10196 (signal_command): Use user_visible_resume_target. Compare thread
10197 pointers instead of inferior_ptid.
10198 (info_program_command): Adjust to pass down target.
10199 (attach_command): Mark target's 'thread_executing' flag.
10200 (stop_current_target_threads_ns): New, factored out from ...
10201 (interrupt_target_1): ... this. Switch inferior before making
10202 target calls.
10203 * inferior-iter.h
10204 (struct all_inferiors_iterator, struct all_inferiors_range)
10205 (struct all_inferiors_safe_range)
10206 (struct all_non_exited_inferiors_range): Filter on
10207 process_stratum_target too. Remove explicit.
10208 * inferior.c (inferior::inferior): Push dummy target on target
10209 stack.
10210 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10211 Add process_stratum_target parameter, and pass it down.
10212 (have_live_inferiors): Adjust.
10213 (switch_to_inferior_and_push_target): New.
10214 (add_inferior_command, clone_inferior_command): Handle
10215 "-no-connection" parameter. Use
10216 switch_to_inferior_and_push_target.
10217 (_initialize_inferior): Mention "-no-connection" option in
10218 the help of "add-inferior" and "clone-inferior" commands.
10219 * inferior.h: Include "process-stratum-target.h".
10220 (interrupt_target_1): Use bool.
10221 (struct inferior) <push_target, unpush_target, target_is_pushed,
10222 find_target_beneath, top_target, process_target, target_at,
10223 m_stack>: New.
10224 (discard_all_inferiors): Delete.
10225 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10226 (all_inferiors, all_non_exited_inferiors): Add
10227 process_stratum_target parameter.
10228 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10229 (target_last_proc_target): New global.
10230 (follow_fork_inferior): Push target on new inferior. Pass target
10231 to add_thread_silent. Call exec_on_vfork. Handle target's
10232 reference count.
10233 (follow_fork): Adjust get_last_target_status call. Also consider
10234 target.
10235 (follow_exec): Push target on new inferior.
10236 (struct execution_control_state) <target>: New field.
10237 (user_visible_resume_target): New.
10238 (do_target_resume): Call target_async.
10239 (resume_1): Set target's threads_executing flag. Consider resume
10240 target.
10241 (commit_resume_all_targets): New.
10242 (proceed): Also consider resume target. Skip threads of inferiors
10243 with no execution. Commit resumtion in all targets.
10244 (start_remote): Pass current inferior to wait_for_inferior.
10245 (infrun_thread_stop_requested): Consider target as well. Pass
10246 thread_info pointer to clear_inline_frame_state instead of ptid.
10247 (infrun_thread_thread_exit): Consider target as well.
10248 (random_pending_event_thread): New inferior parameter. Use it.
10249 (do_target_wait): Rename to ...
10250 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10251 down.
10252 (threads_are_resumed_pending_p, do_target_wait): New.
10253 (prepare_for_detach): Adjust calls.
10254 (wait_for_inferior): New inferior parameter. Handle it. Use
10255 do_target_wait_1 instead of do_target_wait.
10256 (fetch_inferior_event): Adjust. Switch to representative
10257 inferior. Pass target down.
10258 (set_last_target_status): Add process_stratum_target parameter.
10259 Save target in global.
10260 (get_last_target_status): Add process_stratum_target parameter and
10261 handle it.
10262 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10263 (context_switch): Check inferior_ptid == null_ptid before calling
10264 inferior_thread().
10265 (get_inferior_stop_soon): Pass down target.
10266 (wait_one): Rename to ...
10267 (poll_one_curr_target): ... this.
10268 (struct wait_one_event): New.
10269 (wait_one): New.
10270 (stop_all_threads): Adjust.
10271 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10272 event's target.
10273 (switch_back_to_stepped_thread): Also consider target.
10274 (print_stop_event): Update.
10275 (normal_stop): Update. Also consider the resume target.
10276 * infrun.h (wait_for_inferior): Remove declaration.
10277 (user_visible_resume_target): New declaration.
10278 (get_last_target_status, set_last_target_status): New
10279 process_stratum_target parameter.
10280 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10281 process_stratum_target parameter, and use it.
10282 (clear_inline_frame_state (thread_info*)): New.
10283 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10284 process_stratum_target parameter.
10285 (clear_inline_frame_state (thread_info*)): Declare.
10286 * linux-fork.c (delete_checkpoint_command): Pass target down to
10287 find_thread_ptid.
10288 (checkpoint_command): Adjust.
10289 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10290 instead of just tweaking inferior_ptid.
10291 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10292 (exit_lwp): Pass target down to find_thread_ptid.
10293 (attach_proc_task_lwp_callback): Pass target down to
10294 add_thread/set_running/set_executing.
10295 (linux_nat_target::attach): Pass target down to
10296 thread_change_ptid.
10297 (get_detach_signal): Pass target down to find_thread_ptid.
10298 Consider last target status's target.
10299 (linux_resume_one_lwp_throw, resume_lwp)
10300 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10301 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10302 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10303 (linux_nat_target::async_wait_fd): New.
10304 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10305 target down.
10306 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10307 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10308 * linux-thread-db.c (struct thread_db_info::process_target): New
10309 field.
10310 (add_thread_db_info): Save target.
10311 (get_thread_db_info): New process_stratum_target parameter. Also
10312 match target.
10313 (delete_thread_db_info): New process_stratum_target parameter.
10314 Also match target.
10315 (thread_from_lwp): Adjust to pass down target.
10316 (thread_db_notice_clone): Pass down target.
10317 (check_thread_db_callback): Pass down target.
10318 (try_thread_db_load_1): Always push the thread_db target.
10319 (try_thread_db_load, record_thread): Pass target down.
10320 (thread_db_target::detach): Pass target down. Always unpush the
10321 thread_db target.
10322 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10323 target down. Always unpush the thread_db target.
10324 (find_new_threads_callback, thread_db_find_new_threads_2)
10325 (thread_db_target::update_thread_list): Pass target down.
10326 (thread_db_target::pid_to_str): Pass current inferior down.
10327 (thread_db_target::get_thread_local_address): Pass target down.
10328 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10329 target down.
10330 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10331 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10332 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10333 (procfs_init_inferior): Rename to ...
10334 (procfs_target::procfs_init_inferior): ... this and adjust.
10335 (procfs_target::create_inferior, procfs_notice_thread)
10336 (procfs_do_thread_registers): Adjust.
10337 * ppc-fbsd-tdep.c: Include "inferior.h".
10338 (ppcfbsd_get_thread_local_address): Pass down target.
10339 * proc-service.c (ps_xfer_memory): Switch current inferior and
10340 program space as well.
10341 (get_ps_regcache): Pass target down.
10342 * process-stratum-target.c
10343 (process_stratum_target::thread_address_space)
10344 (process_stratum_target::thread_architecture): Pass target down.
10345 * process-stratum-target.h
10346 (process_stratum_target::threads_executing): New field.
10347 (as_process_stratum_target): New.
10348 * ravenscar-thread.c
10349 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10350 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10351 down.
10352 * record-btrace.c (record_btrace_target::info_record): Adjust.
10353 (record_btrace_target::record_method)
10354 (record_btrace_target::record_is_replaying)
10355 (record_btrace_target::fetch_registers)
10356 (get_thread_current_frame_id, record_btrace_target::resume)
10357 (record_btrace_target::wait, record_btrace_target::stop): Pass
10358 target down.
10359 * record-full.c (record_full_wait_1): Switch to event thread.
10360 Pass target down.
10361 * regcache.c (regcache::regcache)
10362 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10363 process_stratum_target parameter and handle it.
10364 (current_thread_target): New global.
10365 (get_thread_regcache): Add process_stratum_target parameter and
10366 handle it. Switch inferior before calling target method.
10367 (get_thread_regcache): Pass target down.
10368 (get_thread_regcache_for_ptid): Pass target down.
10369 (registers_changed_ptid): Add process_stratum_target parameter and
10370 handle it.
10371 (registers_changed_thread, registers_changed): Pass target down.
10372 (test_get_thread_arch_aspace_regcache): New.
10373 (current_regcache_test): Define a couple local test_target_ops
10374 instances and use them for testing.
10375 (readwrite_regcache): Pass process_stratum_target parameter.
10376 (cooked_read_test, cooked_write_test): Pass mock_target down.
10377 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10378 (get_thread_arch_aspace_regcache): Add process_stratum_target
10379 parameter.
10380 (regcache::target): New method.
10381 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10382 (regcache::registers_changed_ptid): Add process_stratum_target
10383 parameter.
10384 (regcache::m_target): New field.
10385 (registers_changed_ptid): Add process_stratum_target parameter.
10386 * remote.c (remote_state::supports_vCont_probed): New field.
10387 (remote_target::async_wait_fd): New method.
10388 (remote_unpush_and_throw): Add remote_target parameter.
10389 (get_current_remote_target): Adjust.
10390 (remote_target::remote_add_inferior): Push target.
10391 (remote_target::remote_add_thread)
10392 (remote_target::remote_notice_new_inferior)
10393 (get_remote_thread_info): Pass target down.
10394 (remote_target::update_thread_list): Skip threads of inferiors
10395 bound to other targets. (remote_target::close): Don't discard
10396 inferiors. (remote_target::add_current_inferior_and_thread)
10397 (remote_target::process_initial_stop_replies)
10398 (remote_target::start_remote)
10399 (remote_target::remote_serial_quit_handler): Pass down target.
10400 (remote_target::remote_unpush_target): New remote_target
10401 parameter. Unpush the target from all inferiors.
10402 (remote_target::remote_unpush_and_throw): New remote_target
10403 parameter. Pass it down.
10404 (remote_target::open_1): Check whether the current inferior has
10405 execution instead of checking whether any inferior is live. Pass
10406 target down.
10407 (remote_target::remote_detach_1): Pass down target. Use
10408 remote_unpush_target.
10409 (extended_remote_target::attach): Pass down target.
10410 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10411 (remote_target::append_resumption): Pass down target.
10412 (remote_target::append_pending_thread_resumptions)
10413 (remote_target::remote_resume_with_hc, remote_target::resume)
10414 (remote_target::commit_resume): Pass down target.
10415 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10416 (remote_target::interrupt_query)
10417 (remote_target::remove_new_fork_children)
10418 (remote_target::check_pending_events_prevent_wildcard_vcont)
10419 (remote_target::remote_parse_stop_reply)
10420 (remote_target::process_stop_reply): Pass down target.
10421 (first_remote_resumed_thread): New remote_target parameter. Pass
10422 it down.
10423 (remote_target::wait_as): Pass down target.
10424 (unpush_and_perror): New remote_target parameter. Pass it down.
10425 (remote_target::readchar, remote_target::remote_serial_write)
10426 (remote_target::getpkt_or_notif_sane_1)
10427 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10428 down target.
10429 (remote_target::mourn_inferior): Pass down target. Use
10430 remote_unpush_target.
10431 (remote_target::core_of_thread)
10432 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10433 (remote_target::pid_to_exec_file)
10434 (remote_target::thread_handle_to_thread_info): Pass down target.
10435 (remote_target::async_wait_fd): New.
10436 * riscv-fbsd-tdep.c: Include "inferior.h".
10437 (riscv_fbsd_get_thread_local_address): Pass down target.
10438 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10439 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10440 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10441 Adjust.
10442 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10443 * solib-svr4.c (enable_break): Pass down target.
10444 * spu-multiarch.c (parse_spufs_run): Pass down target.
10445 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10446 * target-delegates.c: Regenerate.
10447 * target.c (g_target_stack): Delete.
10448 (current_top_target): Return the current inferior's top target.
10449 (target_has_execution_1): Refer to the passed-in inferior's top
10450 target.
10451 (target_supports_terminal_ours): Check whether the initial
10452 inferior was already created.
10453 (decref_target): New.
10454 (target_stack::push): Incref/decref the target.
10455 (push_target, push_target, unpush_target): Adjust.
10456 (target_stack::unpush): Defref target.
10457 (target_is_pushed): Return bool. Adjust to refer to the current
10458 inferior's target stack.
10459 (dispose_inferior): Delete, and inline parts ...
10460 (target_preopen): ... here. Only dispose of the current inferior.
10461 (target_detach): Hold strong target reference while detaching.
10462 Pass target down.
10463 (target_thread_name): Add assertion.
10464 (target_resume): Pass down target.
10465 (target_ops::beneath, find_target_at): Adjust to refer to the
10466 current inferior's target stack.
10467 (get_dummy_target): New.
10468 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10469 has a thread running.
10470 (initialize_targets): Rename to ...
10471 (_initialize_target): ... this.
10472 * target.h: Include "gdbsupport/refcounted-object.h".
10473 (struct target_ops): Inherit refcounted_object.
10474 (target_ops::shortname, target_ops::longname): Make const.
10475 (target_ops::async_wait_fd): New method.
10476 (decref_target): Declare.
10477 (struct target_ops_ref_policy): New.
10478 (target_ops_ref): New typedef.
10479 (get_dummy_target): Declare function.
10480 (target_is_pushed): Return bool.
10481 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10482 (all_matching_threads_iterator::all_matching_threads_iterator):
10483 Handle filter target.
10484 * thread-iter.h (struct all_matching_threads_iterator, struct
10485 all_matching_threads_range, class all_non_exited_threads_range):
10486 Filter by target too. Remove explicit.
10487 * thread.c (threads_executing): Delete.
10488 (inferior_thread): Pass down current inferior.
10489 (clear_thread_inferior_resources): Pass down thread pointer
10490 instead of ptid_t.
10491 (add_thread_silent, add_thread_with_info, add_thread): Add
10492 process_stratum_target parameter. Use it for thread and inferior
10493 searches.
10494 (is_current_thread): New.
10495 (thread_info::deletable): Use it.
10496 (find_thread_ptid, thread_count, in_thread_list)
10497 (thread_change_ptid, set_resumed, set_running): New
10498 process_stratum_target parameter. Pass it down.
10499 (set_executing): New process_stratum_target parameter. Pass it
10500 down. Adjust reference to 'threads_executing'.
10501 (threads_are_executing): New process_stratum_target parameter.
10502 Adjust reference to 'threads_executing'.
10503 (set_stop_requested, finish_thread_state): New
10504 process_stratum_target parameter. Pass it down.
10505 (switch_to_thread): Also match inferior.
10506 (switch_to_thread): New process_stratum_target parameter. Pass it
10507 down.
10508 (update_threads_executing): Reimplement.
10509 * top.c (quit_force): Pop targets from all inferior.
10510 (gdb_init): Don't call initialize_targets.
10511 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10512 Declare.
10513 (windows_add_thread, windows_delete_thread): Adjust.
10514 (get_windows_debug_event): Rename to ...
10515 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10516 * tracefile-tfile.c (tfile_target_open): Pass down target.
10517 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10518 Forward declare.
10519 (switch_to_thread): Add process_stratum_target parameter.
10520 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10521 parameter. Use it.
10522 (mi_on_resume): Pass target down.
10523 * nat/fork-inferior.c (startup_inferior): Add
10524 process_stratum_target parameter. Pass it down.
10525 * nat/fork-inferior.h (startup_inferior): Add
10526 process_stratum_target parameter.
10527 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10528
75c6c844
PA
105292020-01-10 Pedro Alves <palves@redhat.com>
10530
10531 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10532 directly. Instead find the first thread in the thread list and
10533 use switch_to_thread.
10534
78f2c40a
PA
105352020-01-10 Pedro Alves <palves@redhat.com>
10536
10537 * remote.c (remote_target::remote_add_inferior): Don't bind a
10538 process to the current inferior if the current inferior is already
10539 bound to a process.
10540
e7af6c70
TBA
105412020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10542 Pedro Alves <palves@redhat.com>
10543
10544 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10545 If no process is specified, return null_ptid instead of
10546 inferior_ptid.
10547 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10548 TARGET_WAITKIND_SIGNALLED with no pid.
10549
31ba933e
PA
105502020-01-10 Pedro Alves <palves@redhat.com>
10551
10552 * remote.c (first_remote_resumed_thread): New.
10553 (remote_target::wait_as): Use it as default event_ptid instead of
10554 inferior_ptid.
10555
735fc2ca
PA
105562020-01-10 Pedro Alves <palves@redhat.com>
10557
10558 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10559
c17e02e1
PA
105602020-01-10 Pedro Alves <palves@redhat.com>
10561
10562 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10563 not -1.
10564
ab1ddbcf
PA
105652020-01-10 Pedro Alves <palves@redhat.com>
10566
10567 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10568 ptid to get_last_target_status.
10569 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10570 ptid to get_last_target_status.
10571 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10572 get_last_target_status.
10573 (info_program_command): Don't pass a target_waitstatus to
10574 get_last_target_status.
10575 * infrun.c (init_wait_for_inferior): Use
10576 nullify_last_target_wait_ptid.
10577 (get_last_target_status): Handle nullptr arguments.
10578 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10579 (print_stop_event): Don't pass a ptid to get_last_target_status.
10580 (normal_stop): Don't pass a ptid to get_last_target_status.
10581 * infrun.h (get_last_target_status, set_last_target_status): Move
10582 comments here and update.
10583 (nullify_last_target_wait_ptid): Declare.
10584 * linux-fork.c (fork_load_infrun_state): Remove local extern
10585 declaration of nullify_last_target_wait_ptid.
10586 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10587 to get_last_target_status.
10588
f3f8ece4
PA
105892020-01-10 Pedro Alves <palves@redhat.com>
10590
10591 * gdbthread.h (scoped_restore_current_thread)
10592 <dont_restore, restore, m_dont_restore>: Declare.
10593 * thread.c (thread_alive): Add assertion. Return bool.
10594 (switch_to_thread_if_alive): New.
10595 (prune_threads): Switch inferior/thread.
10596 (print_thread_info_1): Switch thread before calling target methods.
10597 (scoped_restore_current_thread::restore): New, factored out from
10598 ...
10599 (scoped_restore_current_thread::~scoped_restore_current_thread):
10600 ... this.
10601 (scoped_restore_current_thread::scoped_restore_current_thread):
10602 Add assertion.
10603 (thread_apply_all_command, thread_select): Use
10604 switch_to_thread_if_alive.
10605 * infrun.c (proceed, restart_threads, handle_signal_stop)
10606 (switch_back_to_stepped_thread): Switch current thread before
10607 calling target methods.
10608
db2d40f7
PA
106092020-01-10 Pedro Alves <palves@redhat.com>
10610
10611 * inferior.c (switch_to_inferior_no_thread): New function,
10612 factored out from ...
10613 (inferior_command): ... here.
10614 * inferior.h (switch_to_inferior_no_thread): Declare.
10615 * mi/mi-main.c (run_one_inferior): Use
10616 switch_to_inferior_no_thread.
10617
bd420a2d
PA
106182020-01-10 Pedro Alves <palves@redhat.com>
10619
10620 * infcmd.c (kill_command): Remove dead code.
10621
ddf5db90
PA
106222020-01-10 Pedro Alves <palves@redhat.com>
10623
10624 * remote.c (remote_target::mourn_inferior): No longer check
10625 whether the target is running.
10626
5018ce90
PA
106272020-01-10 Pedro Alves <palves@redhat.com>
10628
10629 * corelow.c (core_target::has_execution): Change parameter type to
10630 inferior pointer.
10631 * inferior.c (number_of_live_inferiors): Use
10632 inferior::has_execution instead of target_has_execution_1.
10633 * inferior.h (inferior::has_execution): New.
10634 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10635 inferior::has_execution instead of target_has_execution_1.
10636 * process-stratum-target.c
10637 (process_stratum_target::has_execution): Change parameter type to
10638 inferior pointer. Check the inferior's PID instead of
10639 inferior_ptid.
10640 * process-stratum-target.h
10641 (process_stratum_target::has_execution): Change parameter type to
10642 inferior pointer.
10643 * record-full.c (record_full_core_target::has_execution): Change
10644 parameter type to inferior pointer.
10645 * target.c (target_has_execution_1): Change parameter type to
10646 inferior pointer.
10647 (target_has_execution_current): Adjust.
10648 * target.h (target_ops::has_execution): Change parameter type to
10649 inferior pointer.
10650 (target_has_execution_1): Change parameter type to inferior
10651 pointer. Change return type to bool.
10652 * tracefile.h (tracefile_target::has_execution): Change parameter
10653 type to inferior pointer.
10654
74375d18
PA
106552020-01-10 Pedro Alves <palves@redhat.com>
10656
10657 * exceptions.c (print_flush): Remove current_top_target() check.
10658
acdf84a6
PA
106592020-01-10 Pedro Alves <palves@redhat.com>
10660
10661 * remote.c (show_remote_exec_file): Show the current inferior's
10662 exec-file instead of the command variable's value.
10663
ec506636
PA
106642020-01-10 Pedro Alves <palves@redhat.com>
10665
10666 * record-full.c (record_full_resume_ptid): New global.
10667 (record_full_target::resume): Set it.
10668 (record_full_wait_1): Use record_full_resume_ptid instead of
10669 inferior_ptid.
10670
873657b9
PA
106712020-01-10 Pedro Alves <palves@redhat.com>
10672
10673 * gdbthread.h (scoped_restore_current_thread)
10674 <dont_restore, restore, m_dont_restore>: Declare.
10675 * thread.c (thread_alive): Add assertion. Return bool.
10676 (switch_to_thread_if_alive): New.
10677 (prune_threads): Switch inferior/thread.
10678 (print_thread_info_1): Switch thread before calling target methods.
10679 (scoped_restore_current_thread::restore): New, factored out from
10680 ...
10681 (scoped_restore_current_thread::~scoped_restore_current_thread):
10682 ... this.
10683 (scoped_restore_current_thread::scoped_restore_current_thread):
10684 Add assertion.
10685 (thread_apply_all_command, thread_select): Use
10686 switch_to_thread_if_alive.
10687
7f0ae84c
GB
106882020-01-10 George Barrett <bob@bob131.so>
10689
10690 * stap-probe.c (stap_modify_semaphore): Don't check for null
10691 semaphores.
10692 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10693 for null semaphores.
10694
f5a7c406
AB
106952020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10696
10697 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10698 all source windows, and maintain horizontal scroll status while
10699 doing so.
10700
9ae6bf64
TT
107012020-01-09 Tom Tromey <tom@tromey.com>
10702
10703 PR tui/18932:
10704 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10705 update_source_window, not print_source_lines.
10706
b2efe70c
AB
107072020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10708
10709 * tui/tui.c (tui_enable): Register tui hooks after calling
10710 tui_display_main.
10711
5f23a082
CB
107122020-01-09 Christian Biesinger <cbiesinger@google.com>
10713
10714 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10715
3061113b
SM
107162020-01-08 Simon Marchi <simon.marchi@efficios.com>
10717
10718 * thread.c (print_thread_info_1): Fix indentation.
10719
57d75002
CB
107202020-01-09 Christian Biesinger <cbiesinger@google.com>
10721
10722 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10723 unique_xmalloc_ptr outside the if to always free the demangled name.
10724
6a053cb1
TT
107252020-01-08 Tom Tromey <tromey@adacore.com>
10726
10727 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10728 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10729 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10730 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10731 Remove.
10732 (section_offsets): New typedef.
10733 * symtab.c (fixup_section, get_msymbol_address): Update.
10734 * symmisc.c (dump_msymbols): Update.
10735 * symfile.h (relative_addr_info_to_section_offsets)
10736 (symfile_map_offsets_to_segments): Update.
10737 * symfile.c (build_section_addr_info_from_objfile)
10738 (init_objfile_sect_indices): Update.
10739 (struct place_section_arg): Change type of "offsets".
10740 (place_section): Update.
10741 (relative_addr_info_to_section_offsets): Change type of
10742 "section_offsets". Remove "num_sections" parameter.
10743 (default_symfile_offsets, syms_from_objfile_1)
10744 (set_objfile_default_section_offset): Update.
10745 (reread_symbols): No need to preserve section offsets by hand.
10746 (symfile_map_offsets_to_segments): Change type of "offsets".
10747 * stap-probe.c (relocate_address): Update.
10748 * stabsread.h (process_one_symbol): Update.
10749 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10750 (solib_target_relocate_section_addresses): Update.
10751 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10752 Update.
10753 * solib-frv.c (frv_relocate_main_executable): Update.
10754 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10755 * solib-aix.c (solib_aix_get_section_offsets): Change return
10756 type.
10757 (solib_aix_solib_create_inferior_hook): Update.
10758 * remote.c (remote_target::get_offsets): Update.
10759 * psymtab.c (find_pc_sect_psymtab): Update.
10760 * psympriv.h (struct partial_symbol) <address, text_low,
10761 text_high>: Update.
10762 * objfiles.h (obj_section_offset): Update.
10763 (struct objfile) <section_offsets>: Change type.
10764 <num_sections>: Remove.
10765 (objfile_relocate): Update.
10766 * objfiles.c (entry_point_address_query): Update
10767 (relocate_one_symbol): Change type of "section_offsets".
10768 (objfile_relocate1, objfile_relocate1): Change type of
10769 "new_offsets".
10770 (objfile_rebase1): Update.
10771 * mipsread.c (mipscoff_symfile_read): Update.
10772 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10773 parameter.
10774 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10775 (parse_external, psymtab_to_symtab_1): Update.
10776 * machoread.c (macho_symfile_offsets): Update.
10777 * ia64-tdep.c (ia64_find_unwind_table): Update.
10778 * hppa-tdep.c (read_unwind_info): Update.
10779 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10780 * dwarf2read.c (create_addrmap_from_index)
10781 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10782 (process_psymtab_comp_unit_reader, add_partial_symbol)
10783 (add_partial_subprogram, process_full_comp_unit)
10784 (read_file_scope, read_func_scope, read_lexical_block_scope)
10785 (read_call_site_scope, dwarf2_rnglists_process)
10786 (dwarf2_ranges_process, dwarf2_ranges_read)
10787 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10788 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10789 Update.
10790 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10791 Update.
10792 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10793 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10794 (process_one_symbol): Change type of "section_offsets".
10795 * ctfread.c (get_objfile_text_range): Update.
10796 * coffread.c (coff_symtab_read, enter_linenos)
10797 (process_coff_symbol): Update.
10798 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10799 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10800
456e800a
TT
108012020-01-08 Tom Tromey <tromey@adacore.com>
10802
10803 * dwarf2read.c (parse_macro_definition): Use std::string.
10804 (parse_macro_definition): Likewise.
10805
6dfa2fc2
TT
108062020-01-08 Tom Tromey <tromey@adacore.com>
10807
10808 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10809 (ATTR_ALLOC_CHUNK): Remove.
10810
421d1616
TT
108112020-01-08 Tom Tromey <tromey@adacore.com>
10812
10813 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10814
43816ebc
TT
108152020-01-08 Tom Tromey <tromey@adacore.com>
10816
10817 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10818 (dwarf2_compute_name, open_dwo_file): Likewise.
10819 (process_enumeration_scope): Use std::vector.
10820 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10821 (partial_die_info::fixup, dwarf2_start_subfile)
10822 (guess_full_die_structure_name, dwarf2_name): Likewise.
10823 (determine_prefix): Update.
10824 (guess_full_die_structure_name): Make return type const.
10825 (partial_die_full_name): Return unique_xmalloc_ptr.
10826 (DW_FIELD_ALLOC_CHUNK): Remove.
10827
4212d509
TT
108282020-01-07 Tom Tromey <tromey@adacore.com>
10829
10830 PR build/24937:
10831 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10832
06a6207a
JT
108332020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10834
10835 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10836
153d79c4
AB
108372020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10838
10839 * stack.c (print_frame_info): Move disassemble_next_line code
10840 inside source_print block.
10841
66182876
EZ
108422020-01-06 Eli Zaretskii <eliz@gnu.org>
10843
10844 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10845 gdb/signals.h, as we are now using native signal symbols.
10846
cbfa8581
SV
108472020-01-06 Shahab Vahedi <shahab@synopsys.com>
10848
10849 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10850 overflow by an early check of content vs threshold.
aac66a4c 10851 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10852 Likewise.
10853
3f602821
EZ
108542020-01-06 Eli Zaretskii <eliz@gnu.org>
10855
10856 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10857
a08c904d
JT
108582020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10859
10860 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10861 export table if no section contains it's RVA.
10862
89a65580
EZ
108632020-01-06 Eli Zaretskii <eliz@gnu.org>
10864
10865 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10866
8b7fcda2
HD
108672020-01-06 Hannes Domani <ssbssa@yahoo.de>
10868
10869 * source.c (print_source_lines_base): Set last_line_listed.
10870
a61b4f69
SV
108712020-01-06 Shahab Vahedi <shahab@synopsys.com>
10872
10873 * tui/tui-disasm.c: Remove trailing spaces.
10874
559e7e50
EZ
108752020-01-06 Eli Zaretskii <eliz@gnu.org>
10876 Pedro Alves <palves@redhat.com>
10877
10878 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10879 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10880 (windows_gdb_signal_to_target): New function, uses the above
10881 enumeration to convert GDB internal signal codes to equivalent
10882 Windows codes.
10883 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10884 * windows-nat.c: Include "gdb_wait.h".
10885 (get_windows_debug_event): Extract the fatal exception from the
10886 exit status and convert to the equivalent Posix signal number.
10887 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10888 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10889 * gdbsupport/gdb_wait.c: New file, implements
10890 windows_status_to_termsig.
10891 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10892 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10893
f2302a34
AB
108942020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10895
10896 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10897 show_layout.
10898
6a5206eb
LM
108992020-01-05 Luis Machado <luis.machado@linaro.org>
10900
10901 * aarch64-linux-nat.c
10902 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10903 and bfd_mach_aarch64.
10904
6ec1d75e
PW
109052020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10906
10907 * ui-file.c (stdio_file::can_emit_style_escape)
10908 (tee_file::can_emit_style_escape): Ensure style is used also on
10909 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10910 to gdb_stdout.
10911 * main.c (set_gdb_data_directory): Use file style to output the
10912 warning that the given pathname is not a directory.
10913 * top.c (show_history_filename, gdb_safe_append_history)
10914 (show_gdb_datadir): Use file style.
10915
44f81a76
HD
109162020-01-03 Hannes Domani <ssbssa@yahoo.de>
10917
10918 * solib-target.c (struct lm_info_target):
10919 Change offsets to be a unique_xmalloc_ptr.
10920 (solib_target_relocate_section_addresses): Update.
10921
25057eb0
HD
109222020-01-03 Hannes Domani <ssbssa@yahoo.de>
10923
10924 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10925
6e2118f5
BE
109262020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10927
10928 * MAINTAINERS (Write After Approval): Add myself.
10929
8133c7dc
LM
109302020-01-02 Luis Machado <luis.machado@linaro.org>
10931
10932 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10933 Cell BE architecture.
10934 * target.h (struct target_ops) <thread_architecture>: Likewise.
10935
48189bec
HD
109362020-01-01 Hannes Domani <ssbssa@yahoo.de>
10937
10938 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10939
ead1063b
HD
109402020-01-01 Hannes Domani <ssbssa@yahoo.de>
10941
10942 * MAINTAINERS (Write After Approval): Add myself.
10943
e5d78223
JB
109442020-01-01 Joel Brobecker <brobecker@adacore.com>
10945
10946 * gdbarch.sh: Update copyright year range of generated files.
10947
b811d2c2
JB
109482020-01-01 Joel Brobecker <brobecker@adacore.com>
10949
10950 Update copyright year range in all GDB files.
10951
5f4def5c
JB
109522020-01-01 Joel Brobecker <brobecker@adacore.com>
10953
10954 * copyright.py: Convert to Python 3.
10955
51fd4002
JB
109562020-01-01 Joel Brobecker <brobecker@adacore.com>
10957
10958 * copyright.py: Adapt after move of gnulib directory from gdb
10959 directory to toplevel directory.
10960
5fb651f2
JB
109612020-01-01 Joel Brobecker <brobecker@adacore.com>
10962
10963 * copyright.py (main): Exit if run from the wrong directory.
10964
5dd8bf88
JB
109652020-01-01 Joel Brobecker <brobecker@adacore.com>
10966
10967 * top.c (print_gdb_version): Change copyright year to 2020.
10968
9f71dacb 109692020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 10970
9f71dacb 10971 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 10972
9f71dacb 10973For older changes see ChangeLog-2019.
c906108c
SS
10974\f
10975Local Variables:
10976mode: change-log
10977left-margin: 8
10978fill-column: 74
10979version-control: never
57da7796 10980coding: utf-8
c906108c 10981End: