]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Rename the 'obfd' argument to fbsd_nat_target::find_memory_regions.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d1076c41
JB
12020-07-08 John Baldwin <jhb@FreeBSD.org>
2
3 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4 argument to 'data'.
5
15f3b077
TT
62020-07-08 Tom Tromey <tromey@adacore.com>
7
8 * ada-lang.c (ada_exception_message_1): Use read_memory.
9
9fc501fd
AB
102020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
11
12 PR python/22748
13 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
14 special handling for inline frames.
15 * findvar.c (value_of_register_lazy): Skip inline frames when
16 creating lazy register values.
17 * frame.c (frame_id_computed_p): Delete definition.
18 * frame.h (frame_id_computed_p): Delete declaration.
19
64cb3757
AB
202020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
21
22 * NEWS: Mention additions to Python API.
23 * python/py-arch.c (archpy_register_groups): New function.
24 (arch_object_methods): Add 'register_groups' method.
25 * python/py-registers.c (reggroup_iterator_object): New struct.
26 (reggroup_object): New struct.
27 (gdbpy_new_reggroup): New function.
28 (gdbpy_reggroup_to_string): New function.
29 (gdbpy_reggroup_name): New function.
30 (gdbpy_reggroup_iter): New function.
31 (gdbpy_reggroup_iter_next): New function.
32 (gdbpy_new_reggroup_iterator): New function
33 (gdbpy_initialize_registers): Register new types.
34 (reggroup_iterator_object_type): Define new Python type.
35 (gdbpy_reggroup_getset): New static global.
36 (reggroup_object_type): Define new Python type.
37 * python/python-internal.h
38
0f767f94
AB
392020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
40
41 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
42 * python/py-arch.c (archpy_registers): New function.
43 (arch_object_methods): Add 'registers' method.
44 * python/py-registers.c: New file.
45 * python/python-internal.h
46 (gdbpy_new_register_descriptor_iterator): Declare.
47 (gdbpy_initialize_registers): Declare.
48 * python/python.c (do_start_initialization): Call
49 gdbpy_initialize_registers.
50 * NEWS: Mention additions to the Python API.
51
87dbc774
AB
522020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
53
54 * NEWS: Mention new Python API method.
55 * python/py-unwind.c (pending_framepy_architecture): New function.
56 (pending_frame_object_methods): Add architecture method.
57
3bc98c0c
AB
582020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
59
60 * gdbarch.c: Regenerate.
61 * gdbarch.h: Regenerate.
62 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
63 (gdbarch_data): Use internal_error for the case where
64 deprecated_set_gdbarch_data was originally needed.
65 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
66 and use passed in obstack.
67 (libunwind_frame_set_descr): Should no longer get back NULL from
68 gdbarch_data.
69 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
70 type.
71 * user-regs.c (user_regs_init): Update parameters, and use passed
72 in obstack.
73 (user_reg_add): Should no longer get back NULL from gdbarch_data.
74 (_initialize_user_regs): Register as a pre-init gdbarch data type.
75
d8cc8af6
TV
762020-07-06 Tom de Vries <tdevries@suse.de>
77
78 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
79 End-Of-Sequence in lte_is_less_than.
80 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
81 "gdb: Don't reorder line table entries too much when sorting".
82
947f7597
TV
832020-07-06 Tom de Vries <tdevries@suse.de>
84
85 PR tui/26205
86 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
87
1e7c1b22
TV
882020-07-05 Tom de Vries <tdevries@suse.de>
89
90 PR build/26187
91 * inferior.h (struct infcall_suspend_state_deleter): If available, use
92 std::uncaught_exceptions instead of deprecated
93 std::uncaught_exception.
94
a36158ec
SM
952020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
96
97 * macroexp.h (macro_stringify): Return
98 gdb::unique_xmalloc_ptr<char>.
99 * macroexp.c (macro_stringify): Likewise.
100 * macrotab.c (fixup_definition): Update.
101
14d960c8
SM
1022020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
103
104 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
105 (lex_one_token): Update.
106 * macroexp.c (struct macro_buffer) <release>: Return
107 gdb::unique_xmalloc_ptr<char>.
108 (macro_stringify): Update.
109 (macro_expand): Update.
110 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
111 * macroexp.h (macro_expand_next): Likewise.
112
211d5b1c
SM
1132020-07-02 Simon Marchi <simon.marchi@efficios.com>
114
115 * macroexp.h (macro_lookup_ftype): Remove.
116 (macro_expand, macro_expand_once, macro_expand_next): Remove
117 lookup function parameters, add scope parameter.
118 * macroexp.c (scan, substitute_args, expand, maybe_expand,
119 macro_expand, macro_expand_once, macro_expand_next): Likewise.
120 * macroscope.h (standard_macro_lookup): Change parameter type
121 to macro_scope.
122 * macroscope.c (standard_macro_lookup): Likewise.
123 * c-exp.y (lex_one_token): Update.
124 * macrocmd.c (macro_expand_command): Likewise.
125 (macro_expand_once_command): Likewise.
126
b1a35af2
SM
1272020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
128
129 * inf-loop.c (inferior_event_handler): Remove client_data param.
130 * inf-loop.h (inferior_event_handler): Likewise.
131 * infcmd.c (step_1): Adjust.
132 * infrun.c (proceed): Adjust.
133 (fetch_inferior_event): Remove client_data param.
134 (infrun_async_inferior_event_handler): Adjust.
135 * infrun.h (fetch_inferior_event): Remove `void *` param.
136 * linux-nat.c (handle_target_event): Adjust.
137 * record-btrace.c (record_btrace_handle_async_inferior_event):
138 Adjust.
139 * record-full.c (record_full_async_inferior_event_handler):
140 Adjust.
141 * remote.c (remote_async_inferior_event_handler): Adjust.
142
1cdf9e33
TT
1432020-07-01 Tom Tromey <tom@tromey.com>
144
145 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
146 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
147
32c1e210
TT
1482020-07-01 Tom Tromey <tom@tromey.com>
149
150 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
151 tui_gen_win_info.
152 (tui_win_info::make_window): Merge with
153 tui_gen_win_info::make_window.
154 (tui_win_info::make_visible): Move from tui_gen_win_info.
155 * tui/tui-win.c (tui_win_info::max_width): Move from
156 tui_gen_win_info.
157 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
158 type.
159 <window_factory>: Likewise.
160 * tui/tui-layout.c (tui_win_info::resize): Move from
161 tui_gen_win_info.
162 (make_standard_window): Change return type.
163 (get_locator_window, tui_get_window_by_name): Likewise.
164 (tui_layout_window::apply): Remove a cast.
165 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
166 (struct tui_win_info): Merge with tui_gen_win_info.
167 (struct tui_gen_win_info): Remove.
168
a30cb6da
TT
1692020-07-01 Tom Tromey <tom@tromey.com>
170
171 * tui/tui-stack.h (struct tui_locator_window): Derive from
172 tui_win_info.
173 <do_scroll_horizontal, do_scroll_vertical>: New methods.
174 <can_box>: New method.
175
1eb2161f
TT
1762020-07-01 Tom Tromey <tom@tromey.com>
177
178 * tui/tui-stack.h (struct tui_locator_window): Remove body.
179
7134f2eb
TT
1802020-07-01 Tom Tromey <tom@tromey.com>
181
182 * tui/tui-regs.c (tui_data_window::display_registers_from)
183 (tui_data_window::display_registers_from)
184 (tui_data_window::first_data_item_displayed)
185 (tui_data_window::delete_data_content_windows): Update.
186 (tui_data_window::refresh_window, tui_data_window::no_refresh):
187 Remove.
188 (tui_data_window::check_register_values): Update.
189 (tui_data_item_window::rerender): Add parameters. Update.
190 (tui_data_item_window::refresh_window): Remove.
191 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
192 virtual.
193 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
194 tui_gen_win_info.
195 <refresh_window, max_height, min_height>: Remove.
196 <rerender>: Add parameters.
197 <x, y, visible>: New members.
198 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
199 <m_item_width>: New member.
200
22b7b041
TT
2012020-07-01 Tom Tromey <tom@tromey.com>
202
203 * tui/tui-regs.c (tui_data_window::show_register_group)
204 (tui_data_window::check_register_values): Update.
205 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
206 from item_no.
207
c9753adb
TT
2082020-07-01 Tom Tromey <tom@tromey.com>
209
210 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
211 useless "if".
212
9ab26b4a
TT
2132020-07-01 Tom Tromey <tom@tromey.com>
214
215 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
216 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
217
e555083f
TT
2182020-07-01 Tom Tromey <tom@tromey.com>
219
220 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
221 * tui/tui-winsource.h (enum tui_line_or_address_kind)
222 (struct tui_line_or_address): Move from tui-data.h.
223 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
224 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
225 (tui_cmd_window, tui_source_window_base, tui_source_window)
226 (tui_disasm_window): Don't declare.
227 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
228 to tui-winsource.h.
229 (SINGLE_KEY): Move to tui-stack.c.
230
7a02bab7
TT
2312020-07-01 Tom Tromey <tom@tromey.com>
232
233 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
234 std::string.
235 * tui/tui-regs.c (class tab_expansion_file): New.
236 (tab_expansion_file::write): New method.
237 (tui_register_format): Change return type. Use
238 tab_expansion_file.
239 (tui_get_register, tui_data_window::display_registers_from)
240 (tui_data_item_window::rerender): Update.
241 * tui/tui-io.h (tui_expand_tabs): Don't declare.
242 * tui/tui-io.c (tui_expand_tabs): Remove.
243
ea68593b
TT
2442020-07-01 Tom Tromey <tom@tromey.com>
245
246 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
247
a8caed5d
FS
2482020-07-01 Fangrui Song <maskray@google.com>
249
250 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
251
9cdf9820
AKS
2522020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
253
254 * dwarf2/read.c (set_die_type): Removed conditions to restrict
255 forms for DW_AT_associated and DW_AT_allocated attributes,
256 which is already checked in function attr_to_dynamic_prop.
257
a1520ad8
TT
2582020-06-30 Tom Tromey <tromey@adacore.com>
259
260 * dwarf2/read.c (quirk_rust_enum): Correctly call
261 alloc_rust_variant for default-less enum.
262
5ac58899
TT
2632020-06-30 Tom Tromey <tromey@adacore.com>
264
265 PR build/26183:
266 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
267 gdb::to_string.
268
19b187a9
SM
2692020-06-29 Simon Marchi <simon.marchi@efficios.com>
270
271 * gdbarch.sh (displaced_step_copy_insn): Update doc.
272 * gdbarch.h: Re-generate.
273
cd4c4c07
TT
2742020-06-28 Tom Tromey <tom@tromey.com>
275
276 * command.h (cmd_types): Remove.
277 (cmd_type): Don't declare.
278 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
279 typedef.
280 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
281 * cli/cli-decode.c (cmd_type): Remove.
282
05779d57
PA
2832020-06-27 Pedro Alves <palves@redhat.com>
284
285 * fork-child.c (prefork_hook): Adjust.
286 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
287 Delete.
288 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
289 * inferior.c (inferior::set_tty, inferior::tty): New methods.
290 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
291 Remove declarations.
292 (struct inferior) <set_tty, tty>: New methods.
293 (struct inferior) <terminal>: Rename to ...
294 (struct inferior) <m_terminal>: ... this and make private.
295 * main.c (captured_main_1): Adjust.
296 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
297 (mi_cmd_inferior_tty_show): Adjust.
298 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
299 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
300
1776e3e5
NA
3012020-06-26 Nick Alcock <nick.alcock@oracle.com>
302
303 * configure.ac: Add --enable-libctf: handle --disable-static
304 properly.
305 * acinclude.m4: sinclude ../config/enable.m4.
306 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
307 (LIBCTF): Substitute in.
308 (CTF_DEPS): New, likewise.
309 (CLIBS): libctf needs symbols from libbfd: move earlier.
310 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
311 flags.
312 * ctfread.c: Surround in ENABLE_LIBCTF.
313 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
314 * configure: Regenerate.
315 * config.in: Likewise.
316
58373b80
SM
3172020-06-25 Simon Marchi <simon.marchi@efficios.com>
318
319 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
320
277474ee
SM
3212020-06-25 Simon Marchi <simon.marchi@efficios.com>
322
323 * inferior.h (struct inferior) <terminal>: Change type to
324 gdb::unique_xmalloc_ptr<char>.
325 * inferior.c (inferior::~inferior): Don't free inf->terminal.
326 * infcmd.c (set_inferior_io_terminal): Don't free terminal
327 field, adjust to unique pointer.
328 (get_inferior_io_terminal): Adjust to unique pointer.
329
6d74da72
AB
3302020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
331
332 * riscv-tdep.c (riscv_print_registers_info): Loop over all
333 registers, not just the known core set of registers.
334
2e52d038
AB
3352020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
336
337 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
338 fflags, frm, and fcsr registers.
339 (riscv_register_reggroup_p): Remove unknown CSRs from save and
340 restore groups.
341 (riscv_tdesc_unknown_reg): New function.
342 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
343 tdesc_use_registers.
344 * riscv-tdep.h (struct gdbarch_tdep): Add
345 unknown_csrs_first_regnum, unknown_csrs_count,
346 duplicate_fflags_regnum, duplicate_frm_regnum, and
347 duplicate_fcsr_regnum fields.
348
be64fd07
AB
3492020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
350
351 * target-descriptions.c (tdesc_use_registers): Add new parameter a
352 callback, use the callback (when not null) to help number unknown
353 registers.
354 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
355 (tdesc_use_registers): Add extra parameter to declaration.
356
3b9fce96
AB
3572020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
358
359 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
360 in the file.
361 (class riscv_pending_register_alias): Likewise.
362 (riscv_register_feature::register_info): Change 'required_p' field
363 to 'required', and change its type. Add 'check' member function.
364 (riscv_register_feature::register_info::check): Define new member
365 function.
366 (riscv_xreg_feature): Change initialisation of 'required' field.
367 (riscv_freg_feature): Likewise.
368 (riscv_virtual_feature): Likewise.
369 (riscv_csr_feature): Likewise.
370 (riscv_check_tdesc_feature): Take extra parameter, the csr
371 tdesc_feature, rewrite the function to use the new
372 riscv_register_feature::register_info::check function.
373 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
374
865bad26
AB
3752020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
376
377 * features/Makefile: Remove all references to the deleted files
378 below.
379 * features/riscv/32bit-csr.c: Deleted.
380 * features/riscv/32bit-csr.xml: Deleted.
381 * features/riscv/64bit-csr.c: Deleted.
382 * features/riscv/64bit-csr.xml: Deleted.
383 * features/riscv/rebuild-csr-xml.sh: Deleted.
384
ed69cbc8
AB
3852020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
386
387 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
388 whitespace error for declaration of names member variable.
389 (struct riscv_register_feature): Add new prefer_first_name member
390 variable, and fix whitespace error in declaration of registers.
391 (riscv_xreg_feature): Initialize prefer_first_name field.
392 (riscv_freg_feature): Likewise.
393 (riscv_virtual_feature): Likewise.
394 (riscv_csr_feature): Likewise.
395 (riscv_register_name): Expand on comments. Remove register name
396 modifications for CSR and virtual registers.
397
4445e8f5
AB
3982020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
399
400 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
401 errors.
402
767a879e
AB
4032020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
404
405 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
406 riscv-opc.h.
407 (class riscv_pending_register_alias): New class.
408 (riscv_check_tdesc_feature): Take vector of pending aliases and
409 populate it as appropriate.
410 (riscv_setup_register_aliases): Delete.
411 (riscv_gdbarch_init): Create vector of pending aliases and pass it
412 to riscv_check_tdesc_feature in all cases. Use the vector to
413 create the register aliases.
414
bb6e55f3
RO
4152020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
416
417 * sol2-tdep.c (sol2_static_transform_name): Remove.
418 (sol2_init_abi): Don't register it.
419 * gdbarch.sh (static_transform_name): Remove.
420 * gdbarch.c, gdbarch.h: Regenerate.
421
422 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
423 gdbarch_static_transform_name.
424 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
425 * stabsread.c (define_symbol) <'X'>: Remove.
426 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
427 handling.
428 <'V'>: Likewise.
429 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
430 <'S'>: Remove call to gdbarch_static_transform_name.
431
c6d36836
RO
4322020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
433
434 * procfs.c (procfs_pre_trace): New function.
435 (procfs_target::create_inferior): Pass it to fork_inferior.
436
a7e6196b
RO
4372020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
438
439 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
440 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
441 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
442 sol2-tdep.o, sparc-sol2-tdep.o.
443 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
444 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
445 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
446 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
447
d412e696
RO
4482020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
449
450 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
451 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
452 Call sol2_init_abi.
453 Remove calls to set_gdbarch_skip_solib_resolver,
454 set_gdbarch_core_pid_to_str.
455 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
456 (i386_sol2_static_transform_name): Remove.
457 (i386_sol2_init_abi): Call sol2_init_abi.
458 Remove calls to set_gdbarch_sofun_address_maybe_missing,
459 set_gdbarch_static_transform_name,
460 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
461 Use sol2_sigtramp_p.
462 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
463 (sol2_sigtramp_p): New function.
464 (sol2_static_transform_name): New function.
465 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
466 (sol2_init_abi): New function.
467 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
468 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
469 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
470 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
471 (sparc_sol2_static_transform_name): Remove.
472 (sparc32_sol2_init_abi): Call sol2_init_abi.
473 Remove calls to set_gdbarch_sofun_address_maybe_missing,
474 set_gdbarch_static_transform_name,
475 set_gdbarch_skip_solib_resolver,
476 set_gdbarch_core_pid_to_str.
477 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
478 (sparc_sol2_static_transform_name): Remove
479 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
480 call sol2_sigtramp_p.
481 (sparc64_sol2_init_abi): Call sol2_init_abi.
482 Remove calls to set_gdbarch_sofun_address_maybe_missing,
483 set_gdbarch_static_transform_name,
484 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
485
a8654e7d
PW
4862020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
487
488 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
489 * exec.c (validate_exec_file): If from_tty, set both
490 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
491 * symfile.c (symbol_file_add_with_addrs): if always_confirm
492 and from_tty, unconditionally ask a confirmation.
493
caa7fd04
AB
4942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
495
496 * target-descriptions.c (tdesc_architecture_name): Protect against
497 NULL pointer dereference.
498 (maint_print_xml_tdesc_cmd): New function.
499 (_initialize_target_descriptions): Register new 'maint print
500 xml-tdesc' command and give it the filename completer.
501 * NEWS: Mention new 'maint print xml-tdesc' command.
502
fbf42f4e
AB
5032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
504
505 * target-descriptions.c (class tdesc_compatible_info): New class.
506 (struct target_desc): Change type of compatible vector.
507 (tdesc_compatible_p): Update for change in type of
508 target_desc::compatible.
509 (tdesc_compatible_info_list): New function.
510 (tdesc_compatible_info_arch_name): New function.
511 (tdesc_add_compatible): Update for change in type of
512 target_desc::compatible.
513 (print_c_tdesc::visit_pre): Likewise.
514
20821f4e
AB
5152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
516
517 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
518 whitespace to underscore.
519 (maint_print_c_tdesc_cmd): Use fake filename for target
520 descriptions that came from the target.
521 (_initialize_target_descriptions): Add filename command completion
522 for 'maint print c-tdesc'.
523
1fb5ee62
SM
5242020-06-23 Simon Marchi <simon.marchi@efficios.com>
525
526 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
527 lines.
528
fc3ecb3e
SM
5292020-06-23 Simon Marchi <simon.marchi@efficios.com>
530
531 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
532 lines.
533 (dwarf2_find_location_expression): Likewise.
534 (call_site_parameter_matches): Likewise.
535 (dwarf2_compile_expr_to_ax): Likewise.
536 (disassemble_dwarf_expression): Likewise.
537 (loclist_describe_location): Likewise.
538
236ef034
PA
5392020-06-23 Pedro Alves <palves@redhat.com>
540
541 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
542 progspace-and-thread.h. Include scoped-mock-context.h instead.
543 (register_to_value_test): Use scoped_mock_context.
544 * regcache.c: Include "scoped-mock-context.h".
545 (cooked_read_test): Don't error out if a target is already pushed.
546 Use scoped_mock_context. Adjust.
547 * scoped-mock-context.h: New file.
548
39e7ecca
AB
5492020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
550
551 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
552 initializer.
553 (ada_language::is_string_type_p): New member function.
554 * c-lang.c (c_language_data): Delete la_is_string_type_p
555 initializer.
556 (cplus_language_data): Likewise.
557 (asm_language_data): Likewise.
558 (minimal_language_data): Likewise.
559 * d-lang.c (d_language_data): Likewise.
560 * f-lang.c (f_is_string_type_p): Delete function, implementation
561 moved to f_language::is_string_type_p.
562 (f_language_data): Delete la_is_string_type_p initializer.
563 (f_language::is_string_type_p): New member function,
564 implementation from f_is_string_type_p.
565 * go-lang.c (go_is_string_type_p): Delete function, implementation
566 moved to go_language::is_string_type_p.
567 (go_language_data): Delete la_is_string_type_p initializer.
568 (go_language::is_string_type_p): New member function,
569 implementation from go_is_string_type_p.
570 * language.c (language_defn::is_string_type_p): Define new member
571 function.
572 (default_is_string_type_p): Make static, add comment copied from
573 header file.
574 (unknown_language_data): Delete la_is_string_type_p initializer.
575 (unknown_language::is_string_type_p): New member function.
576 (auto_language_data): Delete la_is_string_type_p initializer.
577 (auto_language::is_string_type_p): New member function.
578 * language.h (language_data): Delete la_is_string_type_p field.
579 (language_defn::is_string_type_p): Declare new function.
580 (default_is_string_type_p): Delete desclaration, move comment to
581 definition.
582 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
583 moved to m2_language::is_string_type_p.
584 (m2_language_data): Delete la_is_string_type_p initializer.
585 (m2_language::is_string_type_p): New member function,
586 implementation from m2_is_string_type_p.
587 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
588 initializer.
589 * opencl-lang.c (opencl_language_data): Likewise.
590 * p-lang.c (pascal_is_string_type_p): Delete function,
591 implementation moved to pascal_language::is_string_type_p.
592 (pascal_language_data): Delete la_is_string_type_p initializer.
593 (pascal_language::is_string_type_p): New member function,
594 implementation from pascal_is_string_type_p.
595 * rust-lang.c (rust_is_string_type_p): Delete function,
596 implementation moved to rust_language::is_string_type_p.
597 (rust_language_data): Delete la_is_string_type_p initializer.
598 (rust_language::is_string_type_p): New member function,
599 implementation from rust_is_string_type_p.
600 * valprint.c (val_print_scalar_or_string_type_p): Update call to
601 is_string_type_p.
602
4ffc13fb
AB
6032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
604
605 * ada-lang.c (ada_language_data): Delete la_print_typedef
606 initializer.
607 (ada_language::print_typedef): New member function.
608 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
609 (cplus_language_data): Likewise.
610 (asm_language_data): Likewise.
611 (minimal_language_data): Likewise.
612 * d-lang.c (d_language_data): Likewise.
613 * f-lang.c (f_language_data): Likewise.
614 (f_language::print_typedef): New member function.
615 * go-lang.c (go_language_data): Delete la_print_typedef
616 initializer.
617 * language.c (language_defn::print_typedef): Define member
618 function.
619 (unknown_language_data): Delete la_print_typedef initializer.
620 (unknown_language::print_typedef): New member function.
621 (auto_language_data): Delete la_print_typedef initializer.
622 (auto_language::print_typedef): New member function.
623 * language.h (language_data): Delete la_print_typedef field.
624 (language_defn::print_typedef): Declare new member function.
625 (LA_PRINT_TYPEDEF): Update call to print_typedef.
626 (default_print_typedef): Delete declaration.
627 * m2-lang.c (m2_language_data): Delete la_print_typedef
628 initializer.
629 (m2_language::print_typedef): New member function.
630 * objc-lang.c (objc_language_data): Delete la_print_typedef
631 initializer.
632 * opencl-lang.c (opencl_language_data): Likewise.
633 * p-lang.c (pascal_language_data): Likewise.
634 (pascal_language::print_typedef): New member function.
635 * rust-lang.c (rust_print_typedef): Delete function,
636 implementation moved to rust_language::print_typedef.
637 (rust_language): Delete la_print_typedef initializer.
638 (rust_language::print_typedef): New member function,
639 implementation from rust_print_typedef.
640 * typeprint.c (default_print_typedef): Delete.
641
d711ee67
AB
6422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
643
644 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
645 (ada_language::printstr): New member function.
646 * c-lang.c (c_language_data): Delete la_printstr initializer.
647 (cplus_language_data): Likewise.
648 (asm_language_data): Likewise.
649 (minimal_language_data): Likewise.
650 * d-lang.c (d_language_data): Likewise.
651 * f-lang.c (f_printstr): Rename to f_language::printstr.
652 (f_language_data): Delete la_printstr initializer.
653 (f_language::printstr): New member function, implementation from
654 f_printstr.
655 * go-lang.c (go_language_data): Delete la_printstr initializer.
656 * language.c (language_defn::printstr): Define new member
657 function.
658 (unk_lang_printstr): Delete.
659 (unknown_language_data): Delete la_printstr initializer.
660 (unknown_language::printstr): New member function.
661 (auto_language_data): Delete la_printstr initializer.
662 (auto_language::printstr): New member function.
663 * language.h (language_data): Delete la_printstr field.
664 (language_defn::printstr): Declare new member function.
665 (LA_PRINT_STRING): Update call to printstr.
666 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
667 (m2_language_data): Delete la_printstr initializer.
668 (m2_language::printstr): New member function, implementation from
669 m2_printstr.
670 * objc-lang.c (objc_language_data): Delete la_printstr
671 initializer.
672 * opencl-lang.c (opencl_language_data): Likewise.
673 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
674 (pascal_language_data): Delete la_printstr initializer.
675 (pascal_language::printstr): New member function, implementation
676 from pascal_printstr.
677 * p-lang.h (pascal_printstr): Delete declaration.
678 * rust-lang.c (rust_printstr): Update header comment.
679 (rust_language_data): Delete la_printstr initializer.
680 (rust_language::printstr): New member function.
681
52b50f2c
AB
6822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
683
684 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
685 (ada_language::printchar): New member function.
686 * c-lang.c (c_language_data): Delete la_printchar initializer.
687 (cplus_language_data): Likewise.
688 (asm_language_data): Likewise.
689 (minimal_language_data): Likewise.
690 * d-lang.c (d_language_data): Likewise.
691 * f-lang.c (f_printchar): Rename to f_language::printchar.
692 (f_language_data): Delete la_printchar initializer.
693 (f_language::printchar): New member function, implementation from
694 f_printchar.
695 * go-lang.c (go_language_data): Delete la_printchar initializer.
696 * language.c (unk_lang_printchar): Delete.
697 (language_defn::printchar): Define new member function.
698 (unknown_language_data): Delete la_printchar initializer.
699 (unknown_language::printchar): New member function.
700 (auto_language_data): Delete la_printchar initializer.
701 (auto_language::printchar): New member function.
702 * language.h (language_data): Delete la_printchar field.
703 (language_defn::printchar): Declare new member function.
704 (LA_PRINT_CHAR): Update call to printchar.
705 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
706 (m2_language::printchar): New member function.
707 * objc-lang.c (objc_language_data): Delete la_printchar
708 initializer.
709 * opencl-lang.c (opencl_language_data): Likewise.
710 * p-lang.c (pascal_language_data): Delete la_printchar
711 initializer.
712 (pascal_language::printchar): New member function.
713 * rust-lang.c (rust_printchar): Rename to
714 rust_language::printchar.
715 (rust_language_data): Delete la_printchar initializer.
716 (rust_language::printchar): New member function, implementation
717 from rust_printchar.
718
ec8cec5b
AB
7192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
720
721 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
722 (ada_language_data): Delete la_emitchar initializer.
723 (ada_language::emitchar): New member function, implementation from
724 emit_char.
725 * c-lang.c (c_language_data): Delete la_emitchar initializer.
726 (cplus_language_data): Likewise.
727 (asm_language_data): Likewise.
728 (minimal_language_data): Likewise.
729 * d-lang.c (d_language_data): Likewise.
730 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
731 (f_language_data): Delete la_emitchar initializer.
732 (f_language::emitchar): New member function, implementation from
733 f_emit_char.
734 * go-lang.c (go_language_data): Delete la_emitchar initializer.
735 * language.c (unk_lang_emit_char): Delete.
736 (language_defn::emitchar): New member function definition.
737 (unknown_language_data): Delete la_emitchar initializer.
738 (unknown_language::emitchar): New member function.
739 (auto_language_data): Delete la_emitchar initializer.
740 (auto_language::emitchar): New member function.
741 * language.h (language_data): Delete la_emitchar field.
742 (language_defn::emitchar): New member field declaration.
743 (LA_EMIT_CHAR): Update call to emitchar.
744 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
745 (m2_language_data): Delete la_emitchar initializer.
746 (m2_language::emitchar): New member function, implementation from
747 m2_emit_char.
748 * objc-lang.c (objc_language_data): Delete la_emitchar
749 initializer.
750 * opencl-lang.c (opencl_language_data): Likewise.
751 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
752 (pascal_language_data): Delete la_emitchar initializer.
753 (pascal_language::emitchar): New member function, implementation
754 from pascal_emit_char.
755 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
756 (rust_language_data): Delete la_emitchar initializer.
757 (rust_language::emitchar): New member function, implementation
758 from rust_emitchar.
759
1bf9c363
AB
7602020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
761
762 * ada-lang.c (resolve): Rename to ada_language::post_parser.
763 (ada_language_data): Delete la_post_parser initializer.
764 (ada_language::post_parser): New member function.
765 * c-lang.c (c_language_data): Delete la_post_parser initializer.
766 (cplus_language_data): Likewise.
767 (asm_language_data): Likewise.
768 (minimal_language_data): Likewise.
769 * d-lang.c (d_language_data): Likewise.
770 * f-lang.c (f_language_data): Likewise.
771 * go-lang.c (go_language_data): Likewise.
772 * language.c (unknown_language_data): Likewise.
773 (auto_language_data): Likewise.
774 * language.h (language_data): Delete la_post_parser field.
775 (language_defn::post_parser): New member function.
776 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
777 * objc-lang.c (objc_language_data): Likewise.
778 * opencl-lang.c (opencl_language_data): Likewise.
779 * p-lang.c (pascal_language_data): Likewise.
780 * parse.c (parse_exp_in_context): Update call to post_parser.
781 (null_post_parser): Delete definition.
782 * parser-defs.h (null_post_parser): Delete declaration.
783 * rust-lang.c (rust_language_data): Delete la_post_parser
784 initializer.
785
87afa652
AB
7862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
787
788 * ada-lang.c (parse): Rename to ada_language::parser.
789 (ada_language_data): Delete la_parser initializer.
790 (ada_language::parser): New member function, implementation from
791 parse.
792 * c-lang.c (c_language_data): Delete la_parser initializer.
793 (cplus_language_data): Likewise.
794 (asm_language_data): Likewise.
795 (minimal_language_data): Likewise.
796 * d-lang.c (d_language_data): Likewise.
797 (d_language::parser): New member function.
798 * f-lang.c (f_language_data): Delete la_parser initializer.
799 (f_language::parser): New member function.
800 * go-lang.c (go_language_data): Delete la_parser initializer.
801 (go_language::parser): New member function.
802 * language.c (unk_lang_parser): Delete.
803 (language_defn::parser): Define new member function.
804 (unknown_language_data): Delete la_parser initializer.
805 (unknown_language::parser): New member function.
806 (auto_language_data): Delete la_parser initializer.
807 (auto_language::parser): New member function.
808 * language.h (language_data): Delete la_parser field.
809 (language_defn::parser): Declare new member function.
810 * m2-lang.c (m2_language_data): Delete la_parser initializer.
811 (m2_language::parser): New member function.
812 * objc-lang.c (objc_language_data): Delete la_parser initializer.
813 * opencl-lang.c (opencl_language_data): Likewise.
814 * p-lang.c (pascal_language_data): Likewise.
815 (pascal_language::parser): New member function.
816 * parse.c (parse_exp_in_context): Update call to parser.
817 * rust-lang.c (rust_language_data): Delete la_parser initializer.
818 (rust_language::parser): New member function.
819
37825800
AB
8202020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
821
822 * top.c (print_gdb_configuration): Print --with-python-libdir
823 configuration value.
824
5b860c93
PW
8252020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
826
827 * NEWS: Mention change to the alias command.
828
cf00cd6f
PW
8292020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
830
831 * cli/cli-cmds.c (lookup_cmd_for_default_args)
832 (alias_command_completer)
833 (make_alias_options_def_group): New functions.
834 (alias_opts, alias_option_defs): New struct and array.
835 (alias_usage_error): Update usage.
836 (alias_command): Handles optional DEFAULT-ARGS... arguments.
837 Use option framework.
838 (_initialize_cli_cmds): Update alias command help.
839 Update aliases command help.
840 (show_user):
841 Add NULL for new default_args lookup_cmd argument.
842 (valid_command_p): Rename to validate_aliased_command.
843 Add NULL for new default_args lookup_cmd argument. Verify that the
844 aliased_command has no default args.
845 * cli/cli-decode.c (help_cmd): Show aliases definitions.
846 (lookup_cmd_1, lookup_cmd): New argument default_args.
847 (add_alias_cmd):
848 Add NULL for new default_args lookup_cmd argument.
849 (print_help_for_command): Show default args under the layout
850 alias some_alias = some_aliased_cmd some_alias_default_arg.
851 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
852 xfree default_args in destructor.
853 * cli/cli-script.c (process_next_line, do_define_command):
854 Add NULL for new default_args lookup_cmd argument.
855 * command.h: Declare new default_args argument in lookup_cmd
856 and lookup_cmd_1.
857 * completer.c (complete_line_internal_1):
858 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
859 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
860 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
861 Likewise.
862 * infcmd.c (_initialize_infcmd): Likewise.
863 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
864 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
865 * python/py-param.c (add_setshow_generic): Likewise.
866 * remote.c (_initialize_remote): Likewise.
867 * top.c (execute_command): Prepend default_args if command has some.
868 (set_verbose):
869 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
870 * tracepoint.c (validate_actionline, encode_actions_1):
871 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
872
bd920864
TBA
8732020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
874
875 * jit.c (jit_read_descriptor): Use bool as the return type.
876 (jit_breakpoint_re_set_internal): Use bool as the return type.
877 Invert the return value logic; return true if the jit breakpoint
878 has been successfully initialized.
879 (jit_inferior_init): Update the call to
880 jit_breakpoint_re_set_internal.
881
f8098322
PA
8822020-06-22 Pedro Alves <palves@redhat.com>
883
884 PR gdb/25939
885 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
886 Use the current inferior instead. Don't return
887 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
888 wait again.
889 * sol-thread.c (sol_thread_target::wait): Don't reference
890 inferior_ptid.
891 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
892 (sol_update_thread_list_callback): Use the current inferior's pid
893 instead of inferior_ptid.
894
196535a6
RO
8952020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
896
897 * procfs.c: Cleanup many comments.
898
899 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
900 (AFTER_WATCHFLAG): Replace by value.
901
902 (MAIN_PROC_NAME_FORMAT): Inline ...
903 (create_procinfo): ... here.
904
905 (procfs_debug_inferior): Remove SYS_exec handling.
906 (syscall_is_exec): Likewise.
907 (procfs_set_exec_trap): Likewise.
908
909 (syscall_is_lwp_exit): Inline in callers.
910 (syscall_is_exit): Likewise.
911 (syscall_is_exec): Likewise.
912 (syscall_is_lwp_create): Likewise.
913
914 (invalidate_cache): Remove #if 0 code.
915
916 (make_signal_thread_runnable): Remove.
917 (procfs_target::resume): Remove #if 0 code.
918
cf6f3e86
RO
9192020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
920
921 PR gdb/25939
922 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
923 call ...
924 (procfs_target::create_inferior): ... here.
925
48e9cc84
PW
9262020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
927
928 * exec.c (validate_exec_file): Ensure the build-id is up to
929 date by calling reopen_exec_file (that checks file timestamp
930 to decide to re-read the file).
931
3922b302
PA
9322020-06-18 Pedro Alves <palves@redhat.com>
933
934 PR gdb/25412
935 * gdbthread.h (delete_thread, delete_thread_silent)
936 (find_thread_ptid): Update comments.
937 * thread.c (current_thread_): New global.
938 (is_current_thread): Move higher, and reimplement.
939 (inferior_thread): Reimplement.
940 (set_thread_exited): Use bool. Add assertions.
941 (add_thread_silent): Simplify thread-reuse handling by always
942 calling delete_thread.
943 (delete_thread): Remove intro comment.
944 (find_thread_ptid): Skip exited threads.
945 (switch_to_thread_no_regs): Write to current_thread_.
946 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
947 INFERIOR_PTID. Clear current_thread_.
948
6dbdab44
PA
9492020-06-18 Pedro Alves <palves@redhat.com>
950
951 * aix-thread.c (pd_update): Use switch_to_thread.
952
2da4b788
PA
9532020-06-18 Pedro Alves <palves@redhat.com>
954
955 * ravenscar-thread.c (ravenscar_thread_target): Update.
956 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
957 (ravenscar_thread_target::add_active_thread): ... this. Don't
958 set m_base_ptid here. Update to avoid referencing inferior_ptid.
959 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
960
50838d1b
PA
9612020-06-18 Pedro Alves <palves@redhat.com>
962
963 * nat/windows-nat.c (current_windows_thread): Remove.
964 * nat/windows-nat.h (current_windows_thread): Remove.
965 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
966 Adjust.
967 (display_selectors): Adjust to fetch the current
968 windows_thread_info based on inferior_ptid.
969 (fake_create_process): No longer write to current_windows_thread.
970 (windows_nat_target::get_windows_debug_event):
971 Don't set inferior_ptid or current_windows_thread.
972 (windows_nat_target::wait): Adjust to not rely on
973 current_windows_thread.
974 (do_initial_windows_stuff): Now a method of windows_nat_target.
975 Switch to the last_ptid thread.
976 (windows_nat_target::attach): Adjust.
977 (windows_nat_target::detach): Use switch_to_no_thread instead of
978 writing to inferior_ptid directly.
979 (windows_nat_target::create_inferior): Adjust.
980
31ce04e9
PA
9812020-06-18 Pedro Alves <palves@redhat.com>
982
983 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
984
1ee1a363
PA
9852020-06-18 Pedro Alves <palves@redhat.com>
986
987 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
988 after creating it, instead of writing to inferior_ptid. Don't
989 write to inferior_ptid.
990
6d350754
PA
9912020-06-18 Pedro Alves <palves@redhat.com>
992
993 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
994
5d971d48
PA
9952020-06-18 Pedro Alves <palves@redhat.com>
996
997 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
998 it, instead of writing to inferior_ptid.
999
86e57d1b
PA
10002020-06-18 Pedro Alves <palves@redhat.com>
1001
1002 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1003 to inferior_ptid.
1004
f2e1c129
PA
10052020-06-18 Pedro Alves <palves@redhat.com>
1006
1007 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1008 instead of writing to inferior_ptid directly.
1009
60db1b85
PA
10102020-06-18 Pedro Alves <palves@redhat.com>
1011
1012 * corelow.c (core_target::close): Use switch_to_no_thread instead
1013 of writing to inferior_ptid directly.
1014 (add_to_thread_list, core_target_open): Use switch_to_thread
1015 instead of writing to inferior_ptid directly.
1016
fe7d6a8d
PA
10172020-06-18 Pedro Alves <palves@redhat.com>
1018
1019 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1020 inferior_ptid.
1021 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1022 inferior_ptid.
1023 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1024 inferior_ptid directly.
1025 (darwin_nat_target::init_thread_list): Switch to thread, instead
1026 of writing to inferior_ptid.
1027 (darwin_nat_target::attach): Don't write to inferior_ptid.
1028 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1029
975f8708
PA
10302020-06-18 Pedro Alves <palves@redhat.com>
1031
1032 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1033 thread.
1034 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1035 Instead use switch_to_thread.
1036 (gnu_nat_target::detach): Use switch_to_no_thread
1037 instead of writing to inferior_ptid directly. Used passed-in
1038 inferior instead of looking up the inferior by pid.
1039
1a204730
PA
10402020-06-18 Pedro Alves <palves@redhat.com>
1041
1042 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1043 inferior_ptid.
1044
ebe84f23
PA
10452020-06-18 Pedro Alves <palves@redhat.com>
1046
1047 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1048 inferior_ptid.
1049 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1050 thread.
1051 (nto_procfs_target::detach): Avoid referencing
1052 inferior_ptid. Use switch_to_no_thread instead of writing to
1053 inferior_ptid directly.
1054 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1055 instead of writing to inferior_ptid directly.
1056 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1057 to thread.
1058
191f02e5
PA
10592020-06-18 Pedro Alves <palves@redhat.com>
1060
1061 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1062 after creating it, instead of writing to inferior_ptid.
1063 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1064 to inferior_ptid directly.
1065 (gdbsim_target::wait): Don't write to inferior_ptid.
1066
0ac55310
PA
10672020-06-18 Pedro Alves <palves@redhat.com>
1068
1069 * remote.c (remote_target::remote_notice_new_inferior): Use
1070 switch_to_thread instead of writing to inferior_ptid directly.
1071 (remote_target::add_current_inferior_and_thread): Use
1072 switch_to_no_thread instead of writing to inferior_ptid directly.
1073 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1074 and switch_to_thread instead of using set_current_inferior or
1075 writing to inferior_ptid directly.
1076
5233f39b
PA
10772020-06-18 Pedro Alves <palves@redhat.com>
1078
1079 * tracectf.c (ctf_target_open): Switch to added thread instead of
1080 writing to inferior_ptid directly.
1081 (ctf_target::close): Use switch_to_no_thread instead of writing to
1082 inferior_ptid directly.
1083
087e161b
PA
10842020-06-18 Pedro Alves <palves@redhat.com>
1085
1086 * tracefile-tfile.c (tfile_target_open): Don't write to
1087 inferior_ptid directly, instead switch to added thread.
1088 (tfile_target::close): Use switch_to_no_thread instead of writing
1089 to inferior_ptid directly.
1090
7fb43e53
PA
10912020-06-18 Pedro Alves <palves@redhat.com>
1092
1093 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1094 (procfs_target::detach): Use switch_to_no_thread
1095 instead of writing to inferior_ptid directly.
1096 (do_attach): Change return type to void. Switch to the added
1097 thread.
1098 (procfs_target::create_inferior): Switch to the added thread.
1099 (procfs_do_thread_registers): Don't write to inferior_ptid.
1100
18493a00
PA
11012020-06-18 Pedro Alves <palves@redhat.com>
1102
1103 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1104 of writing to inferior_ptid.
1105 (scoped_restore_exited_inferior): Delete.
1106 (handle_vfork_child_exec_or_exit): Simplify using
1107 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1108 instead of writing to inferior_ptid.
1109 (THREAD_STOPPED_BY): Delete.
1110 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1111 (thread_stopped_by_hw_breakpoint): Delete.
1112 (save_waitstatus): Use
1113 scoped_restore_current_thread+switch_to_thread, and call
1114 target_stopped_by_watchpoint instead of
1115 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1116 instead of thread_stopped_by_sw_breakpoint, and
1117 target_stopped_by_hw_breakpoint instead of
1118 thread_stopped_by_hw_breakpoint.
1119 (handle_inferior_event)
1120 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1121 inferior_ptid directly, nor
1122 set_current_inferior/set_current_program_space. Use
1123 switch_to_thread / switch_to_inferior_no_thread instead.
1124
a0776b13
PA
11252020-06-18 Pedro Alves <palves@redhat.com>
1126
1127 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1128 instead of writing to inferior_ptid.
1129
6155c136
PA
11302020-06-18 Pedro Alves <palves@redhat.com>
1131
1132 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1133 added thread.
1134 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1135 to the added thread.
1136 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1137 instead of writing to inferior_ptid.
1138
c5316fc6
PA
11392020-06-18 Pedro Alves <palves@redhat.com>
1140
1141 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1142 (register_to_value_test): Mock a program_space too. Heap-allocate
1143 the address space. Don't write to inferior_ptid. Use
1144 switch_to_thread instead.
1145
8df01799
PA
11462020-06-18 Pedro Alves <palves@redhat.com>
1147
1148 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1149 Delete.
1150 (find_signalled_thread()): New, factored out from
1151 linux_make_corefile_notes and adjusted to handle exited threads.
1152 (linux_make_corefile_notes): Adjust to use the new
1153 find_signalled_thread.
1154
41792d68
PA
11552020-06-18 Pedro Alves <palves@redhat.com>
1156
1157 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1158 of saving/restoring inferior_ptid.
1159
612f258a
TT
11602020-06-17 Tom Tromey <tom@tromey.com>
1161
1162 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1163 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1164 declare.
1165 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1166
efb763a5
SM
11672020-06-15 Simon Marchi <simon.marchi@efficios.com>
1168
1169 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1170 of partial symtabs.
1171
2951f6c0
SM
11722020-06-17 Simon Marchi <simon.marchi@efficios.com>
1173
1174 * regformats/reg-arm.dat: Remove.
1175 * regformats/reg-bfin.dat: Remove.
1176 * regformats/reg-cris.dat: Remove.
1177 * regformats/reg-crisv32.dat: Remove.
1178 * regformats/reg-m32r.dat: Remove.
1179 * regformats/reg-tilegx.dat: Remove.
1180 * regformats/reg-tilegx32.dat: Remove.
1181
7d458ea5
SM
11822020-06-17 Simon Marchi <simon.marchi@efficios.com>
1183
1184 * features/Makefile (WHICH): Remove arm files.
1185 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1186 * regformats/arm/arm-with-neon.dat: Remove.
1187 * regformats/arm/arm-with-vfpv2.dat: Remove.
1188 * regformats/arm/arm-with-vfpv3.dat: Remove.
1189
3af96c0d
SM
11902020-06-17 Simon Marchi <simon.marchi@efficios.com>
1191
1192 * features/Makefile (XMLTOC): Remove rx.xml.
1193
b25e22fd
PA
11942020-06-17 Pedro Alves <palves@redhat.com>
1195
1196 * gdbthread.h (thread_control_state) <trap_expected> Update
1197 comments.
1198
a78a19b1
AB
11992020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1200
1201 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1202 ada_language::lookup_symbol_nonlocal.
1203 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1204 (ada_language::lookup_symbol_nonlocal): New member function,
1205 implementation from ada_lookup_symbol_nonlocal.
1206 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1207 initializer.
1208 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1209 initializer.
1210 (cplus_language::lookup_symbol_nonlocal): New member function.
1211 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1212 (minimal_language_data) Likewise.
1213 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1214 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1215 initializer.
1216 (d_language::lookup_symbol_nonlocal): New member function.
1217 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1218 initializer.
1219 (f_language::lookup_symbol_nonlocal): New member function.
1220 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1221 initializer.
1222 * language.c (unknown_language_data): Likewise.
1223 (auto_language_data): Likewise.
1224 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1225 field.
1226 (language_defn::lookup_symbol_nonlocal): New member function.
1227 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1228 initializer.
1229 * objc-lang.c (objc_language_data): Likewise.
1230 * opencl-lang.c (opencl_language_data): Likewise.
1231 * p-lang.c (pascal_language_data): Likewise.
1232 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1233 rust_language::lookup_symbol_nonlocal.
1234 (rust_language_data): Delete la_lookup_symbol_nonlocal
1235 initializer.
1236 (rust_language::lookup_symbol_nonlocal): New member function,
1237 implementation from rust_lookup_symbol_nonlocal.
1238 * symtab.c (lookup_symbol_aux): Update call to
1239 lookup_symbol_nonlocal.
1240 (basic_lookup_symbol_nonlocal): Rename to...
1241 (language_defn::lookup_symbol_nonlocal): ...this, and update
1242 header comment. Remove language_defn parameter, and replace with
1243 uses of `this'.
1244 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1245
ebe2334e
AB
12462020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1247
1248 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1249 initializer.
1250 (ada_language::value_print_inner): New member function.
1251 * c-lang.c (c_language_data): Delete la_value_print_inner
1252 initializer.
1253 (cplus_language_data): Likewise.
1254 (asm_language_data): Likewise.
1255 (minimal_language_data): Likewise.
1256 * d-lang.c (d_language_data): Likewise.
1257 (d_language::value_print_inner): New member function.
1258 * f-lang.c (f_language_data): Delete la_value_print_inner
1259 initializer.
1260 (f_language::value_print_inner): New member function.
1261 * f-lang.h (f_value_print_innner): Rename to...
1262 (f_value_print_inner): ...this (note spelling of 'inner').
1263 * f-valprint.c (f_value_print_innner): Rename to...
1264 (f_value_print_inner): ...this (note spelling of 'inner').
1265 * go-lang.c (go_language_data): Delete la_value_print_inner
1266 initializer.
1267 (go_language::value_print_inner): New member function.
1268 * language.c (language_defn::value_print_inner): Define new member
1269 function.
1270 (unk_lang_value_print_inner): Delete.
1271 (unknown_language_data): Delete la_value_print_inner initializer.
1272 (unknown_language::value_print_inner): New member function.
1273 (auto_language_data): Delete la_value_print_inner initializer.
1274 (auto_language::value_print_inner): New member function.
1275 * language.h (language_data): Delete la_value_print_inner field.
1276 (language_defn::value_print_inner): Delcare new member function.
1277 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1278 initializer.
1279 (m2_language::value_print_inner): New member function.
1280 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1281 initializer.
1282 * opencl-lang.c (opencl_language_data): Likewise.
1283 * p-lang.c (pascal_language_data): Likewise.
1284 (pascal_language::value_print_inner): New member function.
1285 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1286 initializer.
1287 (rust_language::value_print_inner): New member function.
1288 * valprint.c (do_val_print): Update call to value_print_inner.
1289
a1d1fa3e
AB
12902020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1291
1292 * ada-lang.c (ada_language_data): Delete la_value_print
1293 initializer.
1294 (ada_language::value_print): New member function.
1295 * c-lang.c (c_language_data): Delete la_value_print initializer.
1296 (cplus_language_data): Likewise.
1297 (asm_language_data): Likewise.
1298 (minimal_language_data): Likewise.
1299 * d-lang.c (d_language_data): Likewise.
1300 * f-lang.c (f_language_data): Likewise.
1301 * go-lang.c (go_language_data): Likewise.
1302 * language.c (unk_lang_value_print): Delete.
1303 (language_defn::value_print): Define new member function.
1304 (unknown_language_data): Delete la_value_print initializer.
1305 (unknown_language::value_print): New member function.
1306 (auto_language_data): Delete la_value_print initializer.
1307 (auto_language::value_print): New member function.
1308 * language.h (language_data): Delete la_value_print field.
1309 (language_defn::value_print): Declare new member function.
1310 (LA_VALUE_PRINT): Update call to value_print.
1311 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1312 * objc-lang.c (objc_language_data): Likewise.
1313 * opencl-lang.c (opencl_language_data): Likewise.
1314 * p-lang.c (pascal_language_data): Likewise.
1315 (pascal_language::value_print): New member function.
1316 * rust-lang.c (rust_language_data): Delete la_value_print
1317 initializer.
1318
f16a9f57
AB
13192020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1320
1321 * ada-lang.c (ada_watch_location_expression): Rename to
1322 ada_language::watch_location_expression.
1323 (ada_language_data): Delete la_watch_location_expression
1324 initializer.
1325 (ada_language::watch_location_expression): New member function,
1326 implementation from ada_watch_location_expression.
1327 * breakpoint.c (watch_command_1): Update call to
1328 watch_location_expression.
1329 * c-lang.c (c_watch_location_expression): Rename to
1330 language_defn::watch_location_expression.
1331 (c_language_data): Delete la_watch_location_expression
1332 initializer.
1333 (cplus_language_data): Likewise.
1334 (asm_language_data): Likewise.
1335 (minimal_language_data): Likewise.
1336 * c-lang.h (c_watch_location_expression): Delete declaration.
1337 * d-lang.c (d_language_data): Delete la_watch_location_expression
1338 initializer.
1339 * f-lang.c (f_language_data): Likewise.
1340 * go-lang.c (go_language_data): Likewise.
1341 * language.c (language_defn::watch_location_expression): Member
1342 function implementation from c_watch_location_expression.
1343 (unknown_language_data): Delete la_watch_location_expression
1344 initializer.
1345 (auto_language_data): Likewise.
1346 * language.h (language_data): Delete la_watch_location_expression
1347 field.
1348 (language_defn::watch_location_expression): Declare new member
1349 function.
1350 * m2-lang.c (m2_language_data): Delete
1351 la_watch_location_expression initializer.
1352 * objc-lang.c (objc_language_data): Likewise.
1353 * opencl-lang.c (opencl_language_data): Likewise.
1354 * p-lang.c (pascal_language_data): Likewise.
1355 * rust-lang.c (rust_watch_location_expression): Rename to
1356 rust_language::watch_location_expression.
1357 (rust_language_data): Delete la_watch_location_expression
1358 initializer.
1359 (rust_language::watch_location_expression): New member function,
1360 implementation from rust_watch_location_expression.
1361
7e56227d
AB
13622020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1363
1364 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1365 ada_language::collect_symbol_completion_matches.
1366 (ada_language_data): Delete la_collect_symbol_completion_matches
1367 initializer.
1368 (ada_language::collect_symbol_completion_matches): New member
1369 function, implementation from
1370 ada_collect_symbol_completion_matches.
1371 * c-lang.c (c_language_data): Delete
1372 la_collect_symbol_completion_matches initializer.
1373 (cplus_language_data): Likewise.
1374 (asm_language_data): Likewise.
1375 (minimal_language_data): Likewise.
1376 * d-lang.c (d_language_data): Likewise.
1377 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1378 f_language::collect_symbol_completion_matches.
1379 (f_language_data): Delete la_collect_symbol_completion_matches
1380 initializer.
1381 (f_language::collect_symbol_completion_matches) New member
1382 function, implementation from f_collect_symbol_completion_matches.
1383 * go-lang.c (go_language_data): Delete
1384 la_collect_symbol_completion_matches initializer.
1385 * language.c (unknown_language_data): Likewise.
1386 (auto_language_data): Likewise.
1387 * language.h (language_data): Delete
1388 la_collect_symbol_completion_matches field.
1389 (language_defn::collect_symbol_completion_matches): New member
1390 function.
1391 * m2-lang.c (m2_language_data): Delete
1392 la_collect_symbol_completion_matches initializer.
1393 * objc-lang.c (objc_language_data): Likewise.
1394 * opencl-lang.c (opencl_language_data): Likewise.
1395 * p-lang.c (pascal_language_data): Likewise.
1396 * rust-lang.c (rust_language_data): Likewise.
1397 * symtab.c (default_collect_symbol_completion_matches): Delete.
1398 (collect_symbol_completion_matches): Update call to
1399 collect_symbol_completion_matches.
1400 (collect_symbol_completion_matches_type): Likewise.
1401 * symtab.h (default_collect_symbol_completion_matches): Delete
1402 declaration.
1403
53fc67f8
AB
14042020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1405
1406 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1407 (ada_language_data): Delete la_word_break_characters initializer.
1408 (ada_language::word_break_characters): New member function.
1409 * c-lang.c (c_language_data): Delete la_word_break_characters
1410 initializer.
1411 (cplus_language_data): Likewise.
1412 (asm_language_data): Likewise.
1413 (minimal_language_data): Likewise.
1414 * completer.c: Update global comment.
1415 (advance_to_expression_complete_word_point): Update call to
1416 word_break_characters.
1417 (complete_files_symbols): Likewise.
1418 (complete_line_internal_1): Likewise.
1419 (default_completer_handle_brkchars): Likewise.
1420 (skip_quoted_chars): Likewise.
1421 * d-lang.c (d_language_data): Delete la_word_break_characters
1422 initializer.
1423 * f-lang.c (f_word_break_characters): Delete.
1424 (f_language_data): Delete la_word_break_characters initializer.
1425 (f_language::word_break_characters): New member function.
1426 * go-lang.c (go_language_data): Delete la_word_break_characters
1427 initializer.
1428 * language.c (unknown_language_data): Likewise.
1429 (auto_language_data): Likewise.
1430 * language.h (default_word_break_characters): Move declaration to
1431 earlier in the file.
1432 (language_data): Delete la_word_break_characters field.
1433 (language_defn::word_break_characters): New member function.
1434 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1435 initializer.
1436 * objc-lang.c (objc_language_data): Likewise.
1437 * opencl-lang.c (opencl_language_data): Likewise.
1438 * p-lang.c (pascal_language_data): Likewise.
1439 * rust-lang.c (rust_language_data): Likewise.
1440
c9debfb9
AB
14412020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1442
1443 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1444 (ada_language_data): Delete la_get_symbol_name_matcher
1445 initializer.
1446 (language_defn::get_symbol_name_matcher_inner): New member
1447 function.
1448 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1449 initializer.
1450 (cplus_language_data): Likewise.
1451 (cplus_language::get_symbol_name_matcher_inner): New member
1452 function.
1453 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1454 (minimal_language_data): Likewise.
1455 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1456 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1457 initializer.
1458 * dictionary.c (iter_match_first_hashed): Update call to
1459 get_symbol_name_matcher.
1460 (iter_match_next_hashed): Likewise.
1461 (iter_match_next_linear): Likewise.
1462 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1463 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1464 initializer.
1465 (f_language::get_symbol_name_matcher_inner): New member function.
1466 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1467 initializer.
1468 * language.c (default_symbol_name_matcher): Update header comment,
1469 make static.
1470 (language_defn::get_symbol_name_matcher): New definition.
1471 (language_defn::get_symbol_name_matcher_inner): Likewise.
1472 (get_symbol_name_matcher): Delete.
1473 (unknown_language_data): Delete la_get_symbol_name_matcher
1474 initializer.
1475 (auto_language_data): Likewise.
1476 * language.h (language_data): Delete la_get_symbol_name_matcher
1477 field.
1478 (language_defn::get_symbol_name_matcher): New member function.
1479 (language_defn::get_symbol_name_matcher_inner): Likewise.
1480 (default_symbol_name_matcher): Delete declaration.
1481 * linespec.c (find_methods): Update call to
1482 get_symbol_name_matcher.
1483 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1484 initializer.
1485 * minsyms.c (lookup_minimal_symbol): Update call to
1486 get_symbol_name_matcher.
1487 (iterate_over_minimal_symbols): Likewise.
1488 * objc-lang.c (objc_language_data): Delete
1489 la_get_symbol_name_matcher initializer.
1490 * opencl-lang.c (opencl_language_data): Likewise.
1491 * p-lang.c (pascal_language_data): Likewise.
1492 * psymtab.c (psymbol_name_matches): Update call to
1493 get_symbol_name_matcher.
1494 * rust-lang.c (rust_language_data): Delete
1495 la_get_symbol_name_matcher initializer.
1496 * symtab.c (symbol_matches_search_name): Update call to
1497 get_symbol_name_matcher.
1498 (compare_symbol_name): Likewise.
1499
9a49ad8c
AB
15002020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1501
1502 * ada-lang.c (ada_language_data): Delete la_compute_program
1503 initializer.
1504 * c-lang.c (c_language_data): Likewise.
1505 (c_language::compute_program): New member function.
1506 (cplus_language_data): Delete la_compute_program initializer.
1507 (cplus_language::compute_program): New member function.
1508 (asm_language_data): Delete la_compute_program initializer.
1509 (minimal_language_data): Likewise.
1510 * c-lang.h (c_compute_program): Update comment.
1511 (cplus_compute_program): Likewise.
1512 * compile/compile-c-support.c (c_compute_program): Likewise.
1513 (cplus_compute_program): Likewise.
1514 * compile/compile.c (compile_to_object): Update call to
1515 la_compute_program.
1516 * d-lang.c (d_language_data): Delete la_compute_program
1517 initializer.
1518 * f-lang.c (f_language_data): Likewise.
1519 * go-lang.c (go_language_data): Likewise.
1520 * language.c (unknown_language_data): Likewise.
1521 (auto_language_data): Likewise.
1522 * language.h (language_data): Delete la_compute_program field.
1523 (language_defn::compute_program): New member function.
1524 * m2-lang.c (m2_language_data): Delete la_compute_program
1525 initializer.
1526 * objc-lang.c (objc_language_data): Likewise.
1527 * opencl-lang.c (opencl_language_data): Likewise.
1528 * p-lang.c (pascal_language_data): Likewise.
1529 * rust-lang.c (rust_language_data): Likewise.
1530
eff93b4d
AB
15312020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1532
1533 * ada-lang.c (ada_language_data) Delete
1534 la_class_name_from_physname initializer.
1535 * c-lang.c (c_language_data): Likewise.
1536 (cplus_language_data): Likewise.
1537 (cplus_language::class_name_from_physname): New member function.
1538 (asm_language_data): Delete la_class_name_from_physname
1539 initializer.
1540 (minimal_language_data): Likewise.
1541 * d-lang.c (d_language_data): Likewise.
1542 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1543 method on language_defn class.
1544 (guess_full_die_structure_name): Likewise.
1545 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1546 initializer.
1547 * go-lang.c (go_language_data): Likewise.
1548 * language.c (language_class_name_from_physname): Delete.
1549 (unk_lang_class_name): Delete.
1550 (unknown_language_data): Delete la_class_name_from_physname
1551 initializer.
1552 (auto_language_data): Likewise.
1553 * language.h (language_data): Delete la_class_name_from_physname
1554 field.
1555 (language_defn::class_name_from_physname): New function.
1556 (language_class_name_from_physname): Delete declaration.
1557 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1558 initializer.
1559 * objc-lang.c (objc_language_data): Likewise.
1560 * opencl-lang.c (opencl_language_data): Likewise.
1561 * p-lang.c (pascal_language_data): Likewise.
1562 * rust-lang.c (rust_language_data): Likewise.
1563
de543742
TT
15642020-06-16 Tom Tromey <tom@tromey.com>
1565
1566 * tui/tui-data.h (STATUS_NAME): New macro.
1567 * tui/tui-layout.c (tui_remove_some_windows)
1568 (initialize_known_windows, tui_register_window)
1569 (tui_layout_split::remove_windows, initialize_layouts)
1570 (tui_new_layout_command): Don't use hard-coded window names.
1571
a350efd4
TT
15722020-06-16 Tom Tromey <tom@tromey.com>
1573
1574 PR tui/25348:
1575 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1576 tui_initialize_readline. Only run once. Call rl_initialize.
1577 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1578 tui_initialize_readline.
1579 * tui/tui-io.c (tui_setup_io): Call
1580 tui_ensure_readline_initialized.
1581 * tui/tui-interp.c (tui_interp::init): Update.
1582
39ec0490
TT
15832020-06-16 Tom Tromey <tom@tromey.com>
1584
1585 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1586 Also preserve the status window.
1587
d2d1ea20
TT
15882020-06-16 Tom Tromey <tom@tromey.com>
1589
1590 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1591 where m_window==nullptr.
1592
66920317
TT
15932020-06-15 Tom Tromey <tromey@adacore.com>
1594
1595 * windows-nat.c (windows_nat::handle_output_debug_string):
1596 Update.
1597 (windows_nat::handle_ms_vc_exception): Update.
1598 * target.h (target_read_string): Change API.
1599 * target.c (target_read_string): Change API.
1600 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1601 Update.
1602 * solib-frv.c (frv_current_sos): Update.
1603 * solib-dsbt.c (dsbt_current_sos): Update.
1604 * solib-darwin.c (darwin_current_sos): Update.
1605 * linux-thread-db.c (inferior_has_bug): Update.
1606 * expprint.c (print_subexp_standard): Update.
1607 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1608 (ada_exception_message_1): Update.
1609
a5d871dd
TT
16102020-06-15 Tom Tromey <tromey@adacore.com>
1611
1612 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1613
670e35fa
TT
16142020-06-15 Tom Tromey <tromey@adacore.com>
1615
1616 * valprint.c (read_string): Update comment.
1617 * target.c (MIN): Remove.
1618 (target_read_string): Rewrite.
1619
f5272a3b
TT
16202020-06-15 Tom Tromey <tromey@adacore.com>
1621
1622 * corefile.c (read_memory_string): Remove.
1623 * ada-valprint.c (ada_value_print_ptr): Update.
1624 * ada-lang.h (ada_tag_name): Change return type.
1625 * ada-lang.c (type_from_tag): Update.
1626 (ada_tag_name_from_tsd): Change return type. Use
1627 target_read_string.
1628 (ada_tag_name): Likewise.
1629 * gdbcore.h (read_memory_string): Don't declare.
1630
2c074f49
HD
16312020-06-14 Hannes Domani <ssbssa@yahoo.de>
1632
1633 * symtab.c (rbreak_command): Ignore Windows drive colon.
1634
6a17d503
SM
16352020-06-12 Simon Marchi <simon.marchi@efficios.com>
1636
1637 * NEWS: Mention removed GDBserver host support.
1638
453c733f
NC
16392020-06-12 Nelson Chu <nelson.chu@sifive.com>
1640
1641 * features/riscv/rebuild-csr-xml.sh: Updated.
1642
2b4e6a3f
TT
16432020-06-11 Tom Tromey <tom@tromey.com>
1644
1645 PR gdb/18318:
1646 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1647
4412332f
JG
16482020-06-09 Jonny Grant <jg@jguk.org>
16492020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1650
1651 * main.c (captured_main_1): Don't print new line after help.
1652 (print_gdb_help): add mailing list and IRC channel information
1653 to --help. Add new lines between items in the footer. Remove
1654 quotes around bug url.
1655
2f33032a
KS
16562020-06-11 Keith Seitz <keiths@redhat.com>
1657
1658 PR gdb/21356
1659 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1660 Resolve typedefs for type length calculations.
1661
7ab96794
TV
16622020-06-10 Tom de Vries <tdevries@suse.de>
1663
1664 PR ada/24713
1665 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1666 (write_psymbols): Enable .gdb_index for ada.
1667 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1668 ada.
1669
e5f3ece2
TV
16702020-06-10 Tom de Vries <tdevries@suse.de>
1671
1672 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1673 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1674 namei" instead of "const char *name" argument.
1675 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1676 dw2_symtab_iter_init.
1677
940da03e
SM
16782020-06-08 Simon Marchi <simon.marchi@efficios.com>
1679
1680 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1681 to use type::field and field::type instead.
1682
b6cdac4b
SM
16832020-06-08 Simon Marchi <simon.marchi@efficios.com>
1684
1685 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1686 to use field::type instead.
1687
5d14b6e5
SM
16882020-06-08 Simon Marchi <simon.marchi@efficios.com>
1689
1690 * gdbtypes.h (struct field) <type, set_type>: New methods.
1691 Rename `type` field to...
1692 <m_type>: ... this. Change references throughout to use type or
1693 set_type methods.
1694 (FIELD_TYPE): Use field::type. Change call sites that modify
1695 the field's type to use field::set_type instead.
1696
3d967001
SM
16972020-06-08 Simon Marchi <simon.marchi@efficios.com>
1698
1699 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1700 to use type::index_type instead.
1701
262abc0d
SM
17022020-06-08 Simon Marchi <simon.marchi@efficios.com>
1703
1704 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1705 methods.
1706 (TYPE_INDEX_TYPE): Use type::index_type.
1707 * gdbtypes.c (create_array_type_with_stride): Likewise.
1708
82836c92
TT
17092020-06-07 Tom Tromey <tom@tromey.com>
1710
1711 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1712 parameter.
1713 (generic_value_print): Update.
1714
940dace9
AB
17152020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1716
1717 Revert commit 982a38f60b0.
1718 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1719
982a38f6
AB
17202020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1721
1722 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1723 avoid use after free.
1724
82f06518
TV
17252020-06-05 Tom de Vries <tdevries@suse.de>
1726
1727 * NEWS: Fix typos.
1728
f8c41851
SM
17292020-06-04 Simon Marchi <simon.marchi@efficios.com>
1730
1731 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1732 the per_bfd object.
1733 (dwarf2_read_debug_names): Likewise.
1734 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1735 object when re-using a per_bfd object with an index.
1736
f9b5d5ea
TV
17372020-06-03 Tom de Vries <tdevries@suse.de>
1738
1739 PR symtab/26046
1740 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1741 children for C++.
1742 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1743 DW_TAG_subprogram.
1744
f6eee2d0
AB
17452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1746
1747 * ada-lang.c (ada_language_data): Delete skip_trampoline
1748 initializer.
1749 * c-lang.c (c_language_data): Likewise.
1750 (cplus_language_data): Likewise.
1751 (cplus_language::skip_trampoline): New member function.
1752 (asm_language_data): Delete skip_trampoline initializer.
1753 (minimal_language_data): Likewise.
1754 * d-lang.c (d_language_data): Likewise.
1755 * f-lang.c (f_language_data): Likewise.
1756 * go-lang.c (go_language_data): Likewise.
1757 * language.c (unk_lang_trampoline): Delete function.
1758 (skip_language_trampoline): Update.
1759 (unknown_language_data): Delete skip_trampoline initializer.
1760 (auto_language_data): Likewise.
1761 * language.h (language_data): Delete skip_trampoline field.
1762 (language_defn::skip_trampoline): New function.
1763 * m2-lang.c (m2_language_data): Delete skip_trampoline
1764 initializer.
1765 * objc-lang.c (objc_skip_trampoline): Delete function, move
1766 implementation to objc_language::skip_trampoline.
1767 (objc_language_data): Delete skip_trampoline initializer.
1768 (objc_language::skip_trampoline): New member function with
1769 implementation from objc_skip_trampoline.
1770 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1771 initializer.
1772 * p-lang.c (pascal_language_data): Likewise.
1773 * rust-lang.c (rust_language_data): Likewise.
1774
0a50df5d
AB
17752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1776
1777 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1778 (ada_language::demangle): New member function.
1779 * c-lang.c (c_language_data): Delete la_demangle initializer.
1780 (cplus_language_data): Delete la_demangle initializer.
1781 (cplus_language::demangle): New member function.
1782 (asm_language_data): Delete la_demangle initializer.
1783 (minimal_language_data): Delete la_demangle initializer.
1784 * d-lang.c (d_language_data): Delete la_demangle initializer.
1785 (d_language::demangle): New member function.
1786 * f-lang.c (f_language_data): Delete la_demangle initializer.
1787 (f_language::demangle): New member function.
1788 * go-lang.c (go_language_data): Delete la_demangle initializer.
1789 (go_language::demangle): New member function.
1790 * language.c (language_demangle): Update.
1791 (unk_lang_demangle): Delete.
1792 (unknown_language_data): Delete la_demangle initializer.
1793 (unknown_language::demangle): New member function.
1794 (auto_language_data): Delete la_demangle initializer.
1795 (auto_language::demangle): New member function.
1796 * language.h (language_data): Delete la_demangle field.
1797 (language_defn::demangle): New function.
1798 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1799 * objc-lang.c (objc_language_data): Delete la_demangle
1800 initializer.
1801 (objc_language::demangle): New member function.
1802 * opencl-lang.c (opencl_language_data): Delete la_demangle
1803 initializer.
1804 * p-lang.c (pascal_language_data): Likewise.
1805 * rust-lang.c (rust_language_data): Likewise.
1806 (rust_language::demangle): New member function.
1807
fbfb0a46
AB
18082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1809
1810 * ada-lang.c (ada_language_data): Delete la_print_type
1811 initializer.
1812 (ada_language::print_type): New member function.
1813 * c-lang.c (c_language_data): Delete la_print_type initializer.
1814 (c_language::print_type): New member function.
1815 (cplus_language_data): Delete la_print_type initializer.
1816 (cplus_language::print_type): New member function.
1817 (asm_language_data): Delete la_print_type initializer.
1818 (asm_language::print_type): New member function.
1819 (minimal_language_data): Delete la_print_type initializer.
1820 (minimal_language::print_type): New member function.
1821 * d-lang.c (d_language_data): Delete la_print_type initializer.
1822 (d_language::print_type): New member function.
1823 * f-lang.c (f_language_data): Delete la_print_type initializer.
1824 (f_language::print_type): New member function.
1825 * go-lang.c (go_language_data): Delete la_print_type initializer.
1826 (go_language::print_type): New member function.
1827 * language.c (unk_lang_print_type): Delete.
1828 (unknown_language_data): Delete la_print_type initializer.
1829 (unknown_language::print_type): New member function.
1830 (auto_language_data): Delete la_print_type initializer.
1831 (auto_language::print_type): New member function.
1832 * language.h (language_data): Delete la_print_type field.
1833 (language_defn::print_type): New function.
1834 (LA_PRINT_TYPE): Update.
1835 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1836 (m2_language::print_type): New member function.
1837 * objc-lang.c (objc_language_data): Delete la_print_type
1838 initializer.
1839 (objc_language::print_type): New member function.
1840 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1841 to opencl_language::print_type.
1842 (opencl_language_data): Delete la_print_type initializer.
1843 (opencl_language::print_type): New member function, implementation
1844 from opencl_print_type.
1845 * p-lang.c (pascal_language_data): Delete la_print_type
1846 initializer.
1847 (pascal_language::print_type): New member function.
1848 * rust-lang.c (rust_print_type): Delete, implementation moved to
1849 rust_language::print_type.
1850 (rust_language_data): Delete la_print_type initializer.
1851 (rust_language::print_type): New member function, implementation
1852 from rust_print_type.
1853
6f827019
AB
18542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1855
1856 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1857 implementation moves to...
1858 (ada_language::sniff_from_mangled_name): ...here. Update return
1859 type.
1860 (ada_language_data): Delete la_sniff_from_mangled_name
1861 initializer.
1862 * c-lang.c (c_language_data): Likewise.
1863 (cplus_language_data): Likewise.
1864 (cplus_language::sniff_from_mangled_name): New member function,
1865 implementation taken from gdb_sniff_from_mangled_name.
1866 (asm_language_data): Delete la_sniff_from_mangled_name
1867 initializer.
1868 (minimal_language_data): Likewise.
1869 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1870 implementation moves to cplus_language::sniff_from_mangled_name.
1871 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1872 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1873 moves to...
1874 (d_language::sniff_from_mangled_name): ...here.
1875 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1876 * f-lang.c (f_language_data): Likewise.
1877 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1878 moves to...
1879 (go_language::sniff_from_mangled_name): ...here.
1880 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1881 * language.c (language_sniff_from_mangled_name): Delete.
1882 (unknown_language_data): Delete la_sniff_from_mangled_name
1883 initializer.
1884 (auto_language_data): Likewise.
1885 * language.h (language_data): Delete la_sniff_from_mangled_name
1886 field.
1887 (language_defn::sniff_from_mangled_name): New function.
1888 (language_sniff_from_mangled_name): Delete declaration.
1889 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1890 field.
1891 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1892 implementation moves to...
1893 (objc_language::sniff_from_mangled_name): ...here.
1894 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1895 * opencl-lang.c (opencl_language_data): Likewise.
1896 * p-lang.c (pascal_language_data): Likewise.
1897 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1898 implementation moves to...
1899 (rust_language::sniff_from_mangled_name): ...here.
1900 (rust_language_data): Delete la_sniff_from_mangled_name
1901 initializer.
1902 * symtab.c (symbol_find_demangled_name): Call
1903 sniff_from_mangled_name member function.
1904
fb8006fd
AB
19052020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1906
1907 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1908 initializer.
1909 * c-lang.c (c_language_data): Likewise.
1910 (cplus_language_data): Likewise.
1911 (cplus_language::search_name_hash): New member function.
1912 (asm_language_data): Delete la_search_name_hash initializer.
1913 (minimal_language_data): Likewise.
1914 * d-lang.c (d_language_data): Likewise.
1915 * dictionary.c (default_search_name_hash): Rename to...
1916 (language_defn::search_name_hash): ...this.
1917 * f-lang.c (f_language_data): Likewise.
1918 (f_language::search_name_hash): New member function.
1919 * go-lang.c (go_language_data): Delete la_search_name_hash
1920 initializer.
1921 * language.c (unknown_language_data): Likewise.
1922 (auto_language_data): Likewise.
1923 * language.h (struct language_data): Delete la_search_name_hash
1924 field.
1925 (language_defn::search_name_hash): Declare new member function.
1926 (default_search_name_hash): Delete declaration.
1927 * m2-lang.c (m2_language_data): Delete la_search_name_hash
1928 initializer.
1929 * objc-lang.c (objc_language_data): Likewise.
1930 * opencl-lang.c (opencl_language_data): Likewise.
1931 * p-lang.c (pascal_language_data): Likewise.
1932 * rust-lang.c (rust_language_data): Likewise.
1933 * symtab.c (search_name_hash): Update call.
1934
8e25bafe
AB
19352020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1936
1937 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
1938 initializer.
1939 * c-lang.c (class compile_instance): Declare.
1940 (c_language_data): Delete la_get_compile_instance initializer.
1941 (c_language::get_compile_instance): New member function.
1942 (cplus_language_data): Delete la_get_compile_instance initializer.
1943 (cplus_language::get_compile_instance): New member function.
1944 (asm_language_data): Delete la_get_compile_instance initializer.
1945 (minimal_language_data): Likewise.
1946 * c-lang.h (c_get_compile_context): Update comment.
1947 (cplus_get_compile_context): Update comment.
1948 * compile/compile.c (compile_to_object): Update calls, don't rely
1949 on function pointer being NULL.
1950 * d-lang.c (d_language_data): Delete la_get_compile_instance
1951 initializer.
1952 * f-lang.c (f_language_data): Likewise.
1953 * go-lang.c (go_language_data): Likewise.
1954 * language.c (unknown_language_data): Likewise.
1955 (auto_language_data): Likewise.
1956 * language.h (language_data): Delete la_get_compile_instance field.
1957 (language_defn::get_compile_instance): New member function.
1958 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
1959 initializer.
1960 * objc-lang.c (objc_language_data): Likewise.
1961 * opencl-lang.c (opencl_language_data): Likewise.
1962 * p-lang.c (pascal_language_data): Likewise.
1963 * rust-lang.c (rust_language_data): Likewise.
1964
4009ee92
AB
19652020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1966
1967 * ada-lang.c (ada_add_all_symbols): Update comment.
1968 (ada_iterate_over_symbols): Delete, move implementation to...
1969 (ada_language::iterate_over_symbols): ...here, a new member
1970 function, rewrite to use range based for loop.
1971 (ada_language_data): Delete la_iterate_over_symbols initializer.
1972 * c-lang.c (c_language_data): Likewise.
1973 (cplus_language_data): Likewise.
1974 (asm_language_data): Likewise.
1975 (minimal_language_data): Likewise.
1976 * d-lang.c (d_language_data): Likewise.
1977 * f-lang.c (f_language_data): Likewise.
1978 * go-lang.c (go_language_data): Likewise.
1979 * language.c (unknown_language_data): Likewise.
1980 (auto_language_data): Likewise.
1981 * language.h (language_data): Delete la_iterate_over_symbols field.
1982 (language_defn::iterate_over_symbols): New member function.
1983 (LA_ITERATE_OVER_SYMBOLS): Update.
1984 * linespec.c (iterate_over_all_matching_symtabs): Update.
1985 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
1986 initializer.
1987 * objc-lang.c (objc_language_data): Likewise.
1988 * opencl-lang.c (opencl_language_data): Likewise.
1989 * p-lang.c (pascal_language_data): Likewise.
1990 * rust-lang.c (rust_language_data): Likewise.
1991
54f4ca46
AB
19922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1993
1994 * ada-lang.c (ada_language_data): Delete
1995 la_lookup_transparent_type initializer.
1996 * c-lang.c (c_language_data): Likewise.
1997 (cplus_language_data): Likewise.
1998 (cplus_language::lookup_transparent_type): New member function.
1999 (asm_language_data): Delete la_lookup_transparent_type
2000 initializer.
2001 (minimal_language_data): Likewise.
2002 * d-lang.c (d_language_data): Likewise.
2003 * f-lang.c (f_language_data): Likewise.
2004 * go-lang.c (go_language_data): Likewise.
2005 * language.c (unknown_language_data): Likewise.
2006 (auto_language_data): Likewise.
2007 * language.h (struct language_data): Delete
2008 la_lookup_transparent_type field.
2009 (language_defn::lookup_transparent_type): New member function.
2010 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2011 initializer.
2012 * objc-lang.c (objc_language_data): Likewise.
2013 * opencl-lang.c (opencl_language_data): Likewise.
2014 * p-lang.c (pascal_language_data): Likewise.
2015 * rust-lang.c (rust_language_data): Likewise.
2016 * symtab.c (symbol_matches_domain): Update call.
2017
1fb314aa
AB
20182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2019
2020 * ada-lang.c (ada_language_arch_info): Delete function, move
2021 implementation to...
2022 (ada_language::language_arch_info): ...here, a new member
2023 function.
2024 (ada_language_data): Delete la_language_arch_info.
2025 * c-lang.c (c_language_data): Likewise.
2026 (c_language::language_arch_info): New member function.
2027 (cplus_language_arch_info): Delete function, move
2028 implementation to...
2029 (cplus_language::language_arch_info): ...here, a new member
2030 function.
2031 (cplus_language_data): Delete la_language_arch_info.
2032 (asm_language_data): Likewise.
2033 (asm_language::language_arch_info): New member function.
2034 (minimal_language_data): Delete la_language_arch_info.
2035 (minimal_language::language_arch_info): New member function.
2036 * d-lang.c (d_language_arch_info): Delete function, move
2037 implementation to...
2038 (d_language::language_arch_info): ...here, a new member
2039 function.
2040 (d_language_data): Delete la_language_arch_info.
2041 * f-lang.c (f_language_arch_info): Delete function, move
2042 implementation to...
2043 (f_language::language_arch_info): ...here, a new member
2044 function.
2045 (f_language_data): Delete la_language_arch_info.
2046 * go-lang.c (go_language_arch_info): Delete function, move
2047 implementation to...
2048 (go_language::language_arch_info): ...here, a new member
2049 function.
2050 (go_language_data): Delete la_language_arch_info.
2051 * language.c (unknown_language_data): Likewise.
2052 (unknown_language::language_arch_info): New member function.
2053 (auto_language_data): Delete la_language_arch_info.
2054 (auto_language::language_arch_info): New member function.
2055 (language_gdbarch_post_init): Update call to
2056 la_language_arch_info.
2057 * language.h (language_data): Delete la_language_arch_info
2058 function pointer.
2059 (language_defn::language_arch_info): New function.
2060 * m2-lang.c (m2_language_arch_info): Delete function, move
2061 implementation to...
2062 (m2_language::language_arch_info): ...here, a new member
2063 function.
2064 (m2_language_data): Delete la_language_arch_info.
2065 * objc-lang.c (objc_language_arch_info): Delete function, move
2066 implementation to...
2067 (objc_language::language_arch_info): ...here, a new member
2068 function.
2069 (objc_language_data): Delete la_language_arch_info.
2070 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2071 implementation to...
2072 (opencl_language::language_arch_info): ...here, a new member
2073 function.
2074 (opencl_language_data): Delete la_language_arch_info.
2075 * p-lang.c (pascal_language_arch_info): Delete function, move
2076 implementation to...
2077 (pascal_language::language_arch_info): ...here, a new member
2078 function.
2079 (pascal_language_data): Delete la_language_arch_info.
2080 * rust-lang.c (rust_language_arch_info): Delete function, move
2081 implementation to...
2082 (rust_language::language_arch_info): ...here, a new member
2083 function.
2084 (rust_language_data): Delete la_language_arch_info.
2085
48448202
AB
20862020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2087
2088 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2089 initializer.
2090 * c-lang.c (c_language_data): Likewise.
2091 (cplus_language_data): Likewise.
2092 (cplus_language::pass_by_reference_info): New method.
2093 (asm_language_data): Delete la_pass_by_reference initializer.
2094 (minimal_language_data): Likewise.
2095 * cp-abi.c (cp_pass_by_reference): Remove use of
2096 default_pass_by_reference.
2097 * d-lang.c (d_language_data): Likewise.
2098 * f-lang.c (f_language_data): Likewise.
2099 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2100 default_pass_by_reference.
2101 * go-lang.c (go_language_data): Likewise.
2102 * language.c (language_pass_by_reference): Update.
2103 (default_pass_by_reference): Delete.
2104 (unknown_language_data): Delete la_pass_by_reference
2105 initializer.
2106 (auto_language_data): Likewise.
2107 * language.h (struct language_data): Delete la_pass_by_reference
2108 field.
2109 (language_defn::pass_by_reference_info): New member function.
2110 (default_pass_by_reference): Delete declaration.
2111 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2112 initializer.
2113 * objc-lang.c (objc_language_data): Likewise.
2114 * opencl-lang.c (opencl_language_data): Likewise.
2115 * p-lang.c (pascal_language_data): Likewise.
2116 * rust-lang.c (rust_language_data): Likewise.
2117
15e5fd35
AB
21182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2119
2120 * ada-lang.c (ada_read_var_value): Delete function, move
2121 implementation to...
2122 (ada_language::read_var_value): ...here.
2123 (ada_language_data): Delete la_read_var_value initializer.
2124 * c-lang.c (c_language_data): Likewise.
2125 (cplus_language_data): Likewise.
2126 (minimal_language_data): Likewise.
2127 * d-lang.c (d_language_data): Likewise.
2128 * f-lang.c (f_language_data): Likewise.
2129 * findvar.c (default_read_var_value): Rename to...
2130 (language_defn::read_var_value): ...this.
2131 * findvar.c (read_var_value): Update header comment, and change to
2132 call member function instead of function pointer.
2133 * go-lang.c (go_language_data): Likewise.
2134 * language.c (unknown_language_data): Delete la_read_var_value
2135 initializer.
2136 (auto_language_data): Likewise.
2137 * language.h (struct language_data): Delete la_read_var_value
2138 field.
2139 (language_defn::read_var_value): New member function.
2140 (default_read_var_value): Delete declaration.
2141 * m2-lang.c (m2_language_data): Delete la_read_var_value
2142 initializer.
2143 * objc-lang.c (objc_language_data): Likewise.
2144 * opencl-lang.c (opencl_language_data): Likewise.
2145 * p-lang.c (pascal_language_data): Likewise.
2146 * rust-lang.c (rust_language_data): Likewise.
2147 * value.h (default_read_var_value): Delete declaration.
2148
5bd40f2a
AB
21492020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2150
2151 * ada-lang.c (ada_print_array_index): Delete function, move
2152 implementation to...
2153 (ada_language::print_array_index): ...here.
2154 (ada_language_data): Delete la_print_array_index initializer.
2155 * c-lang.c (c_language_data): Likewise.
2156 (cplus_language_data): Likewise.
2157 (minimal_language_data): Likewise.
2158 * d-lang.c (d_language_data): Likewise.
2159 * f-lang.c (f_language_data): Likewise.
2160 * go-lang.c (go_language_data): Likewise.
2161 * language.c (default_print_array_index): Delete function, move
2162 implementation to...
2163 (language_defn::print_array_index): ...here.
2164 (unknown_language_data): Delete la_print_array_index initializer.
2165 (auto_language_data): Likewise.
2166 * language.h (struct language_data): Delete la_print_array_index
2167 field.
2168 (language_defn::print_array_index): New member function.
2169 (LA_PRINT_ARRAY_INDEX): Update.
2170 (default_print_array_index): Delete declaration.
2171 * m2-lang.c (m2_language_data): Delete la_print_array_index
2172 initializer.
2173 * objc-lang.c (objc_language_data): Likewise.
2174 * opencl-lang.c (opencl_language_data): Likewise.
2175 * p-lang.c (pascal_language_data): Likewise.
2176 * rust-lang.c (rust_language_data): Likewise.
2177
0874fd07
AB
21782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2179
2180 * gdb/ada-lang.c (ada_language_defn): Convert to...
2181 (ada_language_data): ...this.
2182 (class ada_language): New class.
2183 (ada_language_defn): New static global.
2184 * gdb/c-lang.c (c_language_defn): Convert to...
2185 (c_language_data): ...this.
2186 (class c_language): New class.
2187 (c_language_defn): New static global.
2188 (cplus_language_defn): Convert to...
2189 (cplus_language_data): ...this.
2190 (class cplus_language): New class.
2191 (cplus_language_defn): New static global.
2192 (asm_language_defn): Convert to...
2193 (asm_language_data): ...this.
2194 (class asm_language): New class.
2195 (asm_language_defn): New static global.
2196 (minimal_language_defn): Convert to...
2197 (minimal_language_data): ...this.
2198 (class minimal_language): New class.
2199 (minimal_language_defn): New static global.
2200 * gdb/d-lang.c (d_language_defn): Convert to...
2201 (d_language_data): ...this.
2202 (class d_language): New class.
2203 (d_language_defn): New static global.
2204 * gdb/f-lang.c (f_language_defn): Convert to...
2205 (f_language_data): ...this.
2206 (class f_language): New class.
2207 (f_language_defn): New static global.
2208 * gdb/go-lang.c (go_language_defn): Convert to...
2209 (go_language_data): ...this.
2210 (class go_language): New class.
2211 (go_language_defn): New static global.
2212 * gdb/language.c (unknown_language_defn): Remove declaration.
2213 (current_language): Initialize to nullptr, real initialization is
2214 moved to _initialize_language.
2215 (languages): Delete global.
2216 (language_defn::languages): Define.
2217 (set_language_command): Use language_defn::languages.
2218 (set_language): Likewise.
2219 (range_error): Likewise.
2220 (language_enum): Likewise.
2221 (language_def): Likewise.
2222 (add_set_language_command): Use language_def::languages for the
2223 language list, and language_def to lookup language pointers.
2224 (skip_language_trampoline): Use language_defn::languages.
2225 (unknown_language_defn): Convert to...
2226 (unknown_language_data): ...this.
2227 (class unknown_language): New class.
2228 (unknown_language_defn): New static global.
2229 (auto_language_defn): Convert to...
2230 (auto_language_data): ...this.
2231 (class auto_language): New class.
2232 (auto_language_defn): New static global.
2233 (language_gdbarch_post_init): Use language_defn::languages.
2234 (_initialize_language): Initialize current_language.
2235 * gdb/language.h (struct language_defn): Rename to...
2236 (struct language_data): ...this.
2237 (struct language_defn): New.
2238 (auto_language_defn): Delete.
2239 (unknown_language_defn): Delete.
2240 (minimal_language_defn): Delete.
2241 (ada_language_defn): Delete.
2242 (asm_language_defn): Delete.
2243 (c_language_defn): Delete.
2244 (cplus_language_defn): Delete.
2245 (d_language_defn): Delete.
2246 (f_language_defn): Delete.
2247 (go_language_defn): Delete.
2248 (m2_language_defn): Delete.
2249 (objc_language_defn): Delete.
2250 (opencl_language_defn): Delete.
2251 (pascal_language_defn): Delete.
2252 (rust_language_defn): Delete.
2253 * gdb/m2-lang.c (m2_language_defn): Convert to...
2254 (m2_language_data): ...this.
2255 (class m2_language): New class.
2256 (m2_language_defn): New static global.
2257 * gdb/objc-lang.c (objc_language_defn): Convert to...
2258 (objc_language_data): ...this.
2259 (class objc_language): New class.
2260 (objc_language_defn): New static global.
2261 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2262 (opencl_language_data): ...this.
2263 (class opencl_language): New class.
2264 (opencl_language_defn): New static global.
2265 * gdb/p-lang.c (pascal_language_defn): Convert to...
2266 (pascal_language_data): ...this.
2267 (class pascal_language): New class.
2268 (pascal_language_defn): New static global.
2269 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2270 language pointer, update comment format.
2271 * gdb/rust-lang.c (rust_language_defn): Convert to...
2272 (rust_language_data): ...this.
2273 (class rust_language): New class.
2274 (rust_language_defn): New static global.
2275
1313c56e
AB
22762020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2277
2278 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2279 member variable.
2280 <m_stmt_at_address>: New member variable.
2281 (lnp_state_machine::record_line): Don't record some lines, update
2282 tracking of is_stmt at the same address.
2283 (lnp_state_machine::lnp_state_machine): Initialise new member
2284 variables.
2285
b7ed9f3d
ST
22862020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2287
2288 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2289 "-include gnu-nat-mig.h".
2290 * gnu-nat-mig.h: New file.
2291 * gnu-nat.c: Include "gnu-nat-mig.h".
2292 (exc_server, msg_reply_server, notify_server,
2293 process_reply_server): Remove declarations.
2294
14a8ad62
ST
22952020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2296
2297 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2298 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2299 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2300 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2301 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2302 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2303 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2304 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2305 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2306 to gnu_nat_target class.
2307 * gnu-nat.c: Likewise.
2308 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2309 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2310 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2311 object.
2312 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2313 instead of `gnu_target'.
2314
0af5e106
ST
23152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2316
2317 * i386-gnu-tdep.c: Include "gdbcore.h"
2318 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2319 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2320 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2321 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2322 i386_gnu_sigcontext_addr): New functions
2323 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2324 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2325 tdep.
2326
078f2fc9
ST
23272020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2328
2329 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2330 before fork_inferior call. Avoid calling it if target_is_pushed returns
2331 true.
2332
53dff92c
ST
23332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2334
2335 * gnu-nat.h (gnu_target): New variable declaration.
2336 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2337 gnu_target.
2338 * gnu-nat.c (gnu_target): New variable.
2339 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2340 add_thread_silent, and add_thread calls.
2341 (gnu_nat_target::create_inferior): Pass gnu_target to
2342 add_thread_silent, thread_change_ptid call.
2343 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2344 call.
2345
5a8b8627
ST
23462020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2347
2348 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2349 (gnu_nat_target::find_memory_regions): Remove unused
2350 `old_address' variable.
2351
366f550a
ST
23522020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2353
2354 * gnu-nat.c: Include "gdbarch.h".
2355
f14871bf
ST
23562020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2357
2358 * reply_mig_hack.awk (Error return): Cast function through
2359 void *, to bypass compiler function call check.
2360
c6887cfb
ST
23612020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2362
2363 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2364 $(srcdir)/reply_mig_hack.awk.
2365
6930bffe
ST
23662020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2367
2368 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2369
112c22ed
JG
23702020-05-30 Jonny Grant <jg@jguk.org>
2371
2372 * configure.ac (ACX_BUGURL): change bug URL to https.
2373
f68f85b5
PA
23742020-05-30 Pedro Alves <palves@redhat.com>
2375
2376 * cp-support.c (replace_typedefs_template): New.
2377 (replace_typedefs_qualified_name): Handle
2378 DEMANGLE_COMPONENT_TEMPLATE.
2379
976ca316
SM
23802020-05-29 Simon Marchi <simon.marchi@efficios.com>
2381
2382 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2383 dwarf2/index-cache.h, dwarf2/index-write.c,
2384 dwarf2/index-write.h, dwarf2/line-header.c,
2385 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2386 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2387 variables and fields from `dwarf2_per_objfile` to just
2388 `per_objfile` throughout.
2389
989ade05
SM
23902020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2391
2392 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2393 <push_dwarf_reg_entry_value>: Add comment.
2394
c47bae85
KB
23952020-05-28 Kevin Buettner <kevinb@redhat.com>
2396 Keith Seitz <keiths@redhat.com>
2397
2398 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2399 instead of PyEval_ReleaseLock.
2400 (class gdbpy_gil): Move to earlier in file.
2401 (finalize_python): Set gdb_python_initialized.
2402 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2403 when not initialized.
2404
44486dcf
SM
24052020-05-28 Simon Marchi <simon.marchi@efficios.com>
2406
2407 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2408 <push_dwarf_reg_entry_value>: Remove assert. Override
2409 per_objfile with caller_per_objfile.
2410
f030440d
TV
24112020-05-28 Tom de Vries <tdevries@suse.de>
2412
2413 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2414 PR gold/15646 workaround to symbol kind "type".
2415
f0fbb768
TT
24162020-05-27 Tom Tromey <tromey@adacore.com>
2417
2418 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2419
af0b2a3e
TT
24202020-05-27 Tom Tromey <tromey@adacore.com>
2421
2422 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2423 Use htab_find_with_hash.
2424 <add_abbrev>: Remove "abbrev_number" parameter.
2425 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2426 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2427 (hash_abbrev): Add comment.
2428 (abbrev_table::lookup_abbrev): Move to header file.
2429 (abbrev_table::read): Update.
2430
7d00ffec
TT
24312020-05-27 Tom Tromey <tromey@adacore.com>
2432
2433 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2434 method.
2435 <canonical_name>: New member.
2436 <raw_name>: Rename from "name".
2437 (partial_die_info): Initialize canonical_name.
2438 (scan_partial_symbols): Check raw_name.
2439 (partial_die_parent_scope, partial_die_full_name)
2440 (add_partial_symbol, add_partial_subprogram)
2441 (add_partial_enumeration, load_partial_dies): Use "name" method.
2442 (partial_die_info::name): New method.
2443 (partial_die_info::read, guess_partial_die_structure_name)
2444 (partial_die_info::fixup): Update.
2445
697bba18
TT
24462020-05-27 Tom Tromey <tromey@adacore.com>
2447
2448 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2449 <get_ref_die_offset>: Inline.
2450 <get_ref_die_offset_complaint>: New method.
2451 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2452 (attribute::get_ref_die_offset_complaint): Rename from
2453 get_ref_die_offset. Just issue complaint.
2454
c17ace43
HD
24552020-05-27 Hannes Domani <ssbssa@yahoo.de>
2456
2457 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2458
96445f0b
HD
24592020-05-27 Hannes Domani <ssbssa@yahoo.de>
2460
2461 * exec.c (exec_file_attach): Use errno value of first openp failure.
2462
ac637ec3
HD
24632020-05-27 Hannes Domani <ssbssa@yahoo.de>
2464
2465 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2466 Don't close thread handle.
2467
17ee85fc
TT
24682020-05-27 Tom Tromey <tom@tromey.com>
2469 Simon Marchi <simon.marchi@efficios.com>
2470
2471 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2472 shared_ptr.
2473 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2474 member.
2475 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2476 dwarf2_per_bfd_objfile_data_key>: New globals.
2477 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2478 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2479 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2480 shared.
2481 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2482 short-circuit when sharing.
2483 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2484 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2485
39b16f87
SM
24862020-05-27 Simon Marchi <simon.marchi@efficios.com>
2487
2488 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2489 to...
2490 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2491 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2492
fcf23d5b
SM
24932020-05-27 Simon Marchi <simon.marchi@efficios.com>
2494
2495 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2496 build_name_components, find_name_components_bounds>:
2497 Add per_objfile parameter.
2498 (struct mapped_index) <symbol_name_at>: Likewise.
2499 (struct mapped_debug_names): Remove constructor.
2500 <dwarf2_per_objfile>: Remove field.
2501 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2502 (mapped_index_base::find_name_components_bounds,
2503 mapped_index_base::build_name_components,
2504 dw2_expand_symtabs_matching_symbol): Likewise.
2505 (class mock_mapped_index) <symbol_name_at>: Likewise.
2506 (check_match): Likewise.
2507 (check_find_bounds_finds): Likewise.
2508 (test_mapped_index_find_name_component_bounds): Update.
2509 (CHECK_MATCH): Update.
2510 (dw2_expand_symtabs_matching): Update.
2511 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2512 per_objfile parameter.
2513 <find_vec_in_debug_names>: Likewise.
2514 <m_per_objfile>: New field.
2515 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2516 parameter.
2517 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2518 (dw2_debug_names_iterator::next): Update.
2519 (dw2_debug_names_lookup_symbol): Update.
2520 (dw2_debug_names_expand_symtabs_for_function): Update.
2521 (dw2_debug_names_map_matching_symbols): Update.
2522 (dw2_debug_names_expand_symtabs_matching): Update.
2523 (dwarf2_read_debug_names): Update.
2524
7188ed02
SM
25252020-05-27 Simon Marchi <simon.marchi@efficios.com>
2526
2527 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2528 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2529 move to dwarf2_per_objfile.
2530 <read_in_chain>: Remove.
2531 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2532 remove_all_cus, age_comp_units>: New methods.
2533 <m_dwarf2_cus>: New member.
2534 (struct dwarf2_per_cu_data) <cu>: Remove.
2535 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2536 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2537 moved to methods of dwarf2_per_objfile.
2538 (dwarf2_clear_marks): Remove.
2539 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2540 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2541 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2542 (dwarf2_per_objfile::remove_all_cus): New.
2543 (class free_cached_comp_units) <~free_cached_comp_units>:
2544 Update.
2545 (load_cu): Update.
2546 (dw2_do_instantiate_symtab): Adjust.
2547 (fill_in_sig_entry_from_dwo_entry): Adjust.
2548 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2549 (cutu_reader::cutu_reader): Likewise.
2550 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2551 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2552 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2553 and dwarf2_per_objfile::age_comp_units.
2554 (load_partial_comp_unit): Update.
2555 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2556 (process_queue): Likewise.
2557 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2558 backlink.
2559 (dwarf2_read_addr_index): Likewise.
2560 (follow_die_offset): Likewise.
2561 (dwarf2_fetch_die_loc_sect_off): Likewise.
2562 (dwarf2_fetch_constant_bytes): Likewise.
2563 (dwarf2_fetch_die_type_sect_off): Likewise.
2564 (follow_die_sig_1): Likewise.
2565 (load_full_type_unit): Likewise.
2566 (read_signatured_type): Likewise.
2567 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2568 (dwarf2_cu::~dwarf2_cu): Remove.
2569 (dwarf2_per_objfile::get_cu): New.
2570 (dwarf2_per_objfile::set_cu): New.
2571 (age_cached_comp_units): Rename to...
2572 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2573 to std::unordered_map.
2574 (free_one_cached_comp_unit): Rename to...
2575 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2576 to std::unordered_map.
2577 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2578 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2579 a dwarf2_per_objfile in data.
2580 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2581 (dwarf2_clear_marks): Remove.
2582
2e671100
SM
25832020-05-27 Simon Marchi <simon.marchi@efficios.com>
2584
2585 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2586 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2587 (init_tu_and_read_dwo_dies): Likewise.
2588 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2589 (cutu_reader::cutu_reader): Likewise.
2590 (load_partial_comp_unit): Likewise.
2591 (process_psymtab_comp_unit): Update.
2592 (build_type_psymtabs_1): Update.
2593 (process_skeletonless_type_unit): Update.
2594 (load_full_comp_unit): Update.
2595 (find_partial_die): Update.
2596 (dwarf2_read_addr_index): Update.
2597 (read_signatured_type): Update.
2598
2e6a9f79
SM
25992020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2600
2601 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2602 m_header_read_in>: New fields.
2603 <get_header>: New method.
2604 * dwarf2/read.c (per_cu_header_read_in): Remove.
2605 (dwarf2_per_cu_data::get_header): New.
2606 (dwarf2_per_cu_data::addr_size): Update.
2607 (dwarf2_per_cu_data::offset_size): Update.
2608 (dwarf2_per_cu_data::ref_addr_size): Update.
2609
1b555f17
SM
26102020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2611
2612 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2613 (dw2_do_instantiate_symtab): Update.
2614 (queue_and_load_all_dwo_tus): Change parameter from
2615 dwarf2_per_cu_data to dwarf2_cu.
2616 (dwarf2_fetch_die_loc_sect_off): Update.
2617 (dwarf2_fetch_constant_bytes): Update.
2618 (dwarf2_fetch_die_type_sect_off): Update.
2619
8fc0b21d
SM
26202020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2621
2622 * dwarf2/read.c (process_full_comp_unit,
2623 process_full_type_unit): Remove per_cu, per_objfile paramters.
2624 Add dwarf2_cu parameter.
2625 (process_queue): Update.
2626
168c9250
SM
26272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2628
2629 * dwarf2/read.c (create_cu_from_index_list): Replace
2630 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2631 (create_cus_from_index_list): Likewise.
2632 (create_cus_from_index): Likewise.
2633 (create_signatured_type_table_from_index): Likewise.
2634 (create_cus_from_debug_names_list): Likewise.
2635 (create_cus_from_debug_names): Likewise.
2636 (dwarf2_read_gdb_index): Update.
2637 (dwarf2_read_debug_names): Update.
2638
e286671b
TT
26392020-05-27 Tom Tromey <tom@tromey.com>
2640 Simon Marchi <simon.marchi@efficios.com>
2641
2642 * dwarf2/read.h (struct dwarf2_per_objfile)
2643 <get_type_for_signatured_type, set_type_for_signatured_type>:
2644 New methods.
2645 <m_type_map>: New member.
2646 (struct signatured_type) <type>: Remove.
2647 * dwarf2/read.c
2648 (dwarf2_per_objfile::get_type_for_signatured_type,
2649 dwarf2_per_objfile::set_type_for_signatured_type): New.
2650 (get_signatured_type): Use new methods.
2651
8adb8487
TT
26522020-05-27 Tom Tromey <tom@tromey.com>
2653 Simon Marchi <simon.marchi@efficios.com>
2654
2655 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2656 (struct dwarf2_per_objfile) <type_units>: New member.
2657 <get_type_unit_group_unshareable>: New method.
2658 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2659 num_symtabs, symtabs>: Remove; move to
2660 type_unit_group_unshareable.
2661 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2662 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2663 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2664
127bbf4b
SM
26652020-05-27 Simon Marchi <simon.marchi@efficios.com>
2666
2667 * dwarf2/read.h (struct dwarf2_per_cu_data):
2668 <dwarf2_per_objfile>: Remove.
2669 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2670 dwarf2_per_objfile.
2671 (create_signatured_type_table_from_index): Likewise.
2672 (create_signatured_type_table_from_debug_names): Likewise.
2673 (create_debug_type_hash_table): Likewise.
2674 (fill_in_sig_entry_from_dwo_entry): Likewise.
2675 (create_type_unit_group): Likewise.
2676 (read_comp_units_from_section): Likewise.
2677 (create_cus_hash_table): Likewise.
2678
f6e649dd
SM
26792020-05-27 Simon Marchi <simon.marchi@efficios.com>
2680
2681 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2682 dwarf2_per_cu_data::dwarf2_per_objfile.
2683 (compute_compunit_symtab_includes): Likewise.
2684 (dwarf2_cu::start_symtab): Likewise.
2685
aa66c379
SM
26862020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2687
2688 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2689 parameter.
2690 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2691 (read_namespace_alias): Update.
2692 (lookup_die_type): Update.
2693 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2694 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2695 Update.
2696 (disassemble_dwarf_expression): Update.
2697
120ce1b5
SM
26982020-05-27 Simon Marchi <simon.marchi@efficios.com>
2699
2700 * dwarf2/read.h (struct dwarf2_queue_item): Add
2701 dwarf2_per_objfile parameter, assign new parameter.
2702 <per_objfile>: New field.
2703 * dwarf2/read.c (free_one_cached_comp_unit): Add
2704 dwarf2_per_objfile parameter.
2705 (queue_comp_unit): Likewise.
2706 (dw2_do_instantiate_symtab): Update.
2707 (process_psymtab_comp_unit): Update.
2708 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2709 (process_imported_unit_die): Update.
2710 (queue_and_load_dwo_tu): Update.
2711 (follow_die_offset): Update.
2712 (follow_die_sig_1): Update.
2713
9f47c707
SM
27142020-05-27 Simon Marchi <simon.marchi@efficios.com>
2715
2716 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2717 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2718 (read_call_site_scope): Assign per_objfile.
2719 (dwarf2_per_cu_data::objfile): Remove.
2720 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2721 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2722 dwarf2_per_objfile parameter.
2723 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2724 dwarf2_per_objfile parameter.
2725 (dwarf_expr_reg_to_entry_parameter): Add output
2726 dwarf2_per_objfile parameter.
2727 (locexpr_get_frame_base): Update.
2728 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2729 <push_dwarf_reg_entry_value>: Update.
2730 <call_site_to_target_addr>: Update.
2731 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2732 parameter.
2733 (value_of_dwarf_reg_entry): Update.
2734 (rw_pieced_value): Update.
2735 (indirect_synthetic_pointer): Update.
2736 (dwarf2_evaluate_property): Update.
2737 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2738 parameter.
2739 (locexpr_read_variable): Update.
2740 (locexpr_get_symbol_read_needs): Update.
2741 (loclist_read_variable): Update.
2742
14095eb3
SM
27432020-05-27 Simon Marchi <simon.marchi@efficios.com>
2744
2745 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2746 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2747 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2748 parameter.
2749 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2750 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2751 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2752 parameter.
2753 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2754 sect_variable_value): Add dwarf2_per_objfile parameter.
2755 (class dwarf_evaluate_loc_desc) <dwarf_call,
2756 dwarf_variable_value>: Update.
2757 (fetch_const_value_from_synthetic_pointer): Add
2758 dwarf2_per_objfile parameter.
2759 (fetch_const_value_from_synthetic_pointer): Update.
2760 (coerced_pieced_ref): Update.
2761 (class symbol_needs_eval_context) <dwarf_call,
2762 dwarf_variable_value>: Update.
2763 (dwarf2_compile_expr_to_ax): Update.
2764
3c3cd3d4
SM
27652020-05-27 Simon Marchi <simon.marchi@efficios.com>
2766
2767 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2768 parameter.
2769 (dwarf2_evaluate_loc_desc_full): Update.
2770
82ca3f51
SM
27712020-05-27 Simon Marchi <simon.marchi@efficios.com>
2772
2773 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2774 parameter.
2775 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2776 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2777 dwarf2_per_objfile parameter.
2778 (decode_debug_loc_dwo_addresses): Likewise.
2779 (dwarf2_find_location_expression): Update.
2780 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2781 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2782 parameter.
2783 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2784 parameter.
2785 (locexpr_describe_location_1): Likewise.
2786 (locexpr_describe_location): Update.
2787
4b167ea1
SM
27882020-05-27 Simon Marchi <simon.marchi@efficios.com>
2789
2790 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2791 Remove.
2792 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2793 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2794 (dwarf2_compile_property_to_c): Update.
2795 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2796 use text offset from objfile.
2797 (locexpr_tracepoint_var_ref): Update.
2798 (locexpr_generate_c_location): Update.
2799 (loclist_describe_location): Update.
2800 (loclist_tracepoint_var_ref): Update.
2801 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2802 dwarf2_per_objfile parameter.
2803 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2804 use text offset from objfile.
2805 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2806
89b07335
SM
28072020-05-27 Simon Marchi <simon.marchi@efficios.com>
2808
2809 * dwarf2/expr.h (struct dwarf_expr_context)
2810 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2811 <offset>: Remove.
2812 <per_objfile>: New member.
2813 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2814 dwarf2_per_objfile parameter. Don't set offset, set
2815 per_objfile.
2816 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2817 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2818 a dwarf2_per_objfile object instead of an offset.
2819 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2820 constructor.
2821 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2822 to dwarf2_expr_executor constructor. Don't set offset.
2823 (dwarf2_fetch_cfa_info): Update.
2824 (struct dwarf2_frame_cache) <text_offset>: Remove.
2825 <per_objfile>: New field.
2826 (dwarf2_frame_cache): Update.
2827 (dwarf2_frame_prev_register): Update.
2828 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2829 <dwarf_evaluate_loc_desc>: Add constructor.
2830 (dwarf2_evaluate_loc_desc_full): Update.
2831 (dwarf2_locexpr_baton_eval): Update.
2832 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2833 Add constructor.
2834 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2835
293e7e51
SM
28362020-05-27 Simon Marchi <simon.marchi@efficios.com>
2837
2838 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2839 addr_sized_int_type>: Move to dwarf2_cu.
2840 <int_type>: Move to dwarf2_per_objfile.
2841 (struct dwarf2_per_objfile) <int_type>: Move here.
2842 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2843 addr_sized_int_type>: Move here.
2844 (read_func_scope): Update.
2845 (read_array_type): Update.
2846 (read_tag_string_type): Update.
2847 (attr_to_dynamic_prop): Update.
2848 (dwarf2_per_cu_data::int_type): Rename to...
2849 (dwarf2_per_objfile::int_type): ... this.
2850 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2851 (dwarf2_cu::addr_sized_int_type): ... this.
2852 (read_subrange_type): Update.
2853 (dwarf2_per_cu_data::addr_type): Rename to...
2854 (dwarf2_cu::addr_type): ... this.
2855 (set_die_type): Update.
2856
64874a40
SM
28572020-05-27 Simon Marchi <simon.marchi@efficios.com>
2858
2859 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2860 data through per_cu->cu.
2861
4ab09049
SM
28622020-05-27 Simon Marchi <simon.marchi@efficios.com>
2863
2864 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2865 dwarf2_per_cu_data parameter fo dwarf2_cu.
2866 (lookup_dwo_type_unit): Likewise.
2867 (read_cutu_die_from_dwo): Likewise.
2868 (lookup_dwo_unit): Likewise.
2869 (open_and_init_dwo_file): Likewise.
2870 (lookup_dwo_cutu): Likewise.
2871 (lookup_dwo_comp_unit): Likewise.
2872 (lookup_dwo_type_unit): Likewise.
2873 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2874 (cutu_reader::cutu_reader): Update.
2875
47b14e86
SM
28762020-05-27 Simon Marchi <simon.marchi@efficios.com>
2877
2878 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2879 parameter.
2880 (process_full_type_unit): Likewise.
2881 (process_queue): Update.
2882
43182c09
SM
28832020-05-27 Simon Marchi <simon.marchi@efficios.com>
2884
2885 * dwarf2/read.c (recursively_compute_inclusions): Add
2886 dwarf2_per_objfile parameter.
2887 (compute_compunit_symtab_includes): Likewise.
2888 (process_cu_includes): Update.
2889
7aa104c4
SM
28902020-05-27 Simon Marchi <simon.marchi@efficios.com>
2891
2892 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2893 parameter.
2894 (create_type_unit_group): Update.
2895 (process_psymtab_comp_unit_reader): Update.
2896 (build_type_psymtabs_reader): Update.
2897
e3beb21d
SM
28982020-05-27 Simon Marchi <simon.marchi@efficios.com>
2899
2900 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2901 object through m_this_cu->cu.
2902
d460f660
SM
29032020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2904
2905 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2906 the info parameter.
2907 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2908
ab432490
SM
29092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2910
2911 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2912 per_objfile parameter.
2913 (load_full_type_unit): Add per_objfile parameter.
2914 (read_signatured_type): Likewise.
2915 (load_full_comp_unit): Likewise.
2916 (load_cu): Likewise.
2917 (dw2_do_instantiate_symtab): Likewise.
2918 (dw2_get_file_names): Likewise.
2919 (dw2_map_symtabs_matching_filename): Update.
2920 (dw_expand_symtabs_matching_file_matcher): Update.
2921 (dw2_map_symbol_filenames): Update.
2922 (process_psymtab_comp_unit): Add per_objfile parameter.
2923 (build_type_psymtabs_1): Update.
2924 (process_skeletonless_type_unit): Update.
2925 (dwarf2_build_psymtabs_hard): Update.
2926 (load_partial_comp_unit): Add per_objfile parameter.
2927 (scan_partial_symbols): Update.
2928 (load_full_comp_unit): Add per_objfile parameter.
2929 (process_imported_unit_die): Update.
2930 (create_cus_hash_table): Update.
2931 (find_partial_die): Update.
2932 (dwarf2_read_addr_index): Update.
2933 (follow_die_offset): Update.
2934 (dwarf2_fetch_die_loc_sect_off): Update.
2935 (dwarf2_fetch_constant_bytes): Update.
2936 (dwarf2_fetch_die_type_sect_off): Update.
2937 (follow_die_sig_1): Update.
2938 (load_full_type_unit): Add per_objfile parameter.
2939 (read_signatured_type): Likewise.
2940
313bad1b
SM
29412020-05-27 Simon Marchi <simon.marchi@efficios.com>
2942
2943 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
2944 of objfile_name.
2945
c3699833
SM
29462020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2947
2948 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
2949 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2950 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
2951 field.
2952 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2953 (create_cus_from_index): Update.
2954 (dwarf2_read_gdb_index): Update.
2955 (create_cus_from_debug_names): Update.
2956 (dwarf2_read_debug_names): Update.
2957 (get_abbrev_section_for_cu): Update.
2958 (create_all_comp_units): Update.
2959 (read_attribute_value): Update.
2960 (get_debug_line_section): Update.
2961 * dwarf2/index-cache.c (index_cache::store): Update.
2962 * dwarf2/index-write.c (save_gdb_index_command): Update.
2963 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2964
1859c670
SM
29652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2966
2967 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
2968 member.
2969 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
2970 dwarf2_per_cu_data::per_bfd.
2971 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
2972 (create_type_unit_group): Likewise.
2973 (queue_comp_unit): Remove reference to
2974 per_cu->dwarf2_per_objfile.
2975 (maybe_queue_comp_unit): Likewise.
2976 (fill_in_sig_entry_from_dwo_entry): Assign new field.
2977 (create_cus_hash_table): Assign new field.
2978
5e22e966
SM
29792020-05-27 Simon Marchi <simon.marchi@efficios.com>
2980
2981 * dwarf2/read.c: Replace
2982 dwarf2_cu->per_cu->dwarf2_per_objfile references with
2983 dwarf2_cu->per_objfile throughout.
2984
97a1449a
SM
29852020-05-27 Simon Marchi <simon.marchi@efficios.com>
2986
2987 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
2988 parameter, don't use per_cu->dwarf2_per_objfile.
2989 (dw2_instantiate_symtab): Likewise.
2990 (dw2_find_last_source_symtab): Update.
2991 (dw2_map_expand_apply): Update.
2992 (dw2_lookup_symbol): Update.
2993 (dw2_expand_symtabs_for_function): Update.
2994 (dw2_expand_all_symtabs): Update.
2995 (dw2_expand_symtabs_with_fullname): Update.
2996 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
2997 don't use per_cu->dwarf2_per_objfile.
2998 (dw2_expand_marked_cus): Update.
2999 (dw2_find_pc_sect_compunit_symtab): Update.
3000 (dw2_debug_names_lookup_symbol): Update.
3001 (dw2_debug_names_expand_symtabs_for_function): Update.
3002 (dw2_debug_names_map_matching_symbols): Update.
3003 (dwarf2_psymtab::expand_psymtab): Update.
3004
9e021579
SM
30052020-05-27 Simon Marchi <simon.marchi@efficios.com>
3006
3007 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3008 <per_objfile>: New member.
3009 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3010 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3011 call to dwarf2_cu.
3012 (cutu_reader::cutu_reader): Update.
3013 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3014
ae090bdb
SM
30152020-05-27 Simon Marchi <simon.marchi@efficios.com>
3016
3017 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3018 struct dwarf2_per_objfile.
3019 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3020 dwarf2_per_bfd.
3021 * dwarf2/read.c (set_die_type): Update.
3022 (get_die_type_at_offset): Update.
3023
af758d11
SM
30242020-05-27 Tom Tromey <tom@tromey.com>
3025 Simon Marchi <simon.marchi@efficios.com>
3026
3027 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3028 method.
3029 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3030 get_symtab, set_symtab>: New methods.
3031 <m_symtabs>: New field.
3032 (struct dwarf2_psymtab): Derive from partial_symtab.
3033 <readin_p, get_compunit_symtab>: Declare methods.
3034 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3035 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3036 New methods.
3037 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3038 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3039 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3040 (dw2_symtab_iter_next, dw2_print_stats)
3041 (dw2_expand_symtabs_with_fullname)
3042 (dw2_expand_symtabs_matching_one)
3043 (dw_expand_symtabs_matching_file_matcher)
3044 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3045 (dw2_debug_names_iterator::next)
3046 (dw2_debug_names_map_matching_symbols)
3047 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3048 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3049 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3050 New methods.
3051 (get_compunit_symtab, process_full_comp_unit)
3052 (process_full_type_unit): Update.
3053 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3054
5989a64e
SM
30552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3056
3057 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3058 then introduce a new dwarf2_per_objfile type.
3059 <read_line_string>: Move to the new dwarf2_per_objfile type.
3060 <objfile>: Likewise.
3061 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3062 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3063 dwarf2_per_objfile->per_bfd.
3064 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3065 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3066 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3067 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3068 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3069 (dwarf2_per_objfile::locate_sections): Rename to...
3070 (dwarf2_per_bfd::locate_sections): ... this.
3071 (dwarf2_per_objfile::get_cutu): Rename to...
3072 (dwarf2_per_bfd::get_cutu): ... this.
3073 (dwarf2_per_objfile::get_cu): Rename to...
3074 (dwarf2_per_bfd::get_cu): ... this.
3075 (dwarf2_per_objfile::get_tu): Rename to...
3076 (dwarf2_per_bfd::get_tu): ... this.
3077 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3078 (dwarf2_per_bfd::allocate_per_cu): ... this.
3079 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3080 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3081 (get_gdb_index_contents_ftype): Change parameter from
3082 dwarf2_per_objfile to dwarf2_per_bfd.
3083 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3084 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3085
a50264ba
TT
30862020-05-27 Tom Tromey <tom@tromey.com>
3087 Simon Marchi <simon.marchi@efficios.com>
3088
3089 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3090 (allocate_piece_closure): Set "per_objfile" member.
3091 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3092 (locexpr_describe_location, loclist_describe_location): Use new
3093 member.
3094 * dwarf2/read.c (read_call_site_scope)
3095 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3096 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3097 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3098 handle_data_member_location): Set per_objfile member.
3099 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3100 member.
3101 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3102
d3473f0c
TT
31032020-05-27 Tom Tromey <tom@tromey.com>
3104
3105 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3106 allocate_signatured_type>: Declare new methods.
3107 <m_num_psymtabs>: New member.
3108 (struct dwarf2_per_cu_data) <index>: New member.
3109 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3110 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3111 (create_cu_from_index_list): Use allocate_per_cu.
3112 (create_signatured_type_table_from_index)
3113 (create_signatured_type_table_from_debug_names)
3114 (create_debug_type_hash_table, add_type_unit)
3115 (read_comp_units_from_section): Use allocate_signatured_type.
3116
5717c425
TT
31172020-05-27 Tom Tromey <tom@tromey.com>
3118
3119 * psymtab.c (partial_map_expand_apply)
3120 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3121 (psym_lookup_global_symbol_language)
3122 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3123 (psym_print_stats, psym_expand_symtabs_for_function)
3124 (psym_map_symbol_filenames, psym_map_matching_symbols)
3125 (psym_expand_symtabs_matching)
3126 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3127 (maintenance_check_psymtabs): Update.
3128 * psympriv.h (struct partial_symtab) <readin_p,
3129 get_compunit_symtab>: Add objfile parameter.
3130 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3131 Likewise.
3132 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3133 get_compunit_symtab>: Likewise.
3134 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3135
45940949
TT
31362020-05-27 Tom Tromey <tom@tromey.com>
3137
3138 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3139 member.
3140 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3141 (create_cu_from_index_list)
3142 (create_signatured_type_table_from_index)
3143 (create_signatured_type_table_from_debug_names)
3144 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3145 (dwarf2_create_include_psymtab)
3146 (create_debug_type_hash_table, add_type_unit)
3147 (create_type_unit_group, read_comp_units_from_section)
3148 (dwarf2_compute_name, create_cus_hash_table)
3149 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3150 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3151 obstack.
3152 (dw2_get_real_path): Likewise. Change argument to
3153 dwarf2_per_objfile.
3154
f8c6d152
LM
31552020-05-27 Luis Machado <luis.machado@linaro.org>
3156
3157 PR tdep/26000
3158 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3159 for ldrd (immediate).
3160
e98d2e6d
PW
31612020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3162
3163 * command.h: Add comment giving the name of class_tui.
3164 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3165 create the fake command for the help for class_tui.
3166
53a47a3e
TT
31672020-05-26 Tom Tromey <tromey@adacore.com>
3168
3169 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3170 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3171 (val_atr): New function.
3172 (value_val_atr): Use it.
3173 * ada-valprint.c (print_optional_low_bound): Change low bound
3174 handling for enums.
3175 (val_print_packed_array_elements): Don't call discrete_position.
3176 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3177 discrete_position for enum types.
3178 * language.c (default_print_array_index): Change type.
3179 * language.h (struct language_defn) <la_print_array_index>: Add
3180 index_type parameter, change type of index_value.
3181 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3182 (default_print_array_index): Update.
3183 * valprint.c (maybe_print_array_index): Don't call
3184 value_from_longest. Update.
3185 (value_print_array_elements): Don't call discrete_position.
3186
0bc2354b
TT
31872020-05-26 Tom Tromey <tromey@adacore.com>
3188
3189 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3190 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3191
1218a4bf
CDA
31922020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3193
3194 PR gdb/13519
3195 * avr-tdep.c (avr_integer_to_address): Return data or code
3196 address accordingly to the second 'type' argument of the
3197 function.
3198
92651b1d
MW
31992020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3200
3201 * infcmd.c, inferior.h: (construct_inferior_arguments):
3202 Moved function from here to gdbsupport/common-inferior.{h,cc}
3203
0a4f5f8c
TT
32042020-05-23 Tom Tromey <tom@tromey.com>
3205
3206 Revert commit eca1f90c:
3207 * NEWS: Remove entry for completion styling.
3208 * completer.c (_rl_completion_prefix_display_length): Move
3209 declaration later.
3210 (gdb_fnprint): Revert.
3211 (gdb_display_match_list_1): Likewise.
3212 * cli/cli-style.c (completion_prefix_style)
3213 (completion_difference_style, completion_suffix_style): Remove.
3214 (_initialize_cli_style): Revert.
3215 * cli/cli-style.h (completion_prefix_style)
3216 (completion_difference_style, completion_suffix_style): Don't
3217 declare.
3218
e08bd6c5
PA
32192020-05-24 Pedro Alves <palves@redhat.com>
3220
3221 * symtab.c (completion_list_add_name): Return boolean indication
3222 of whether the symbol matched.
3223 (completion_list_add_symbol): Don't try to remove C++ aliases if
3224 the symbol didn't match in the first place.
3225 * symtab.h (completion_list_add_name): Return bool.
3226
ceacbf6e
SM
32272020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3228
3229 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3230 type::field.
3231
26f16254
JB
32322020-05-23 Joel Brobecker <brobecker@adacore.com>
3233
3234 GDB 9.2 released.
3235
eca1f90c
TT
32362020-05-23 Tom Tromey <tom@tromey.com>
3237
3238 * NEWS: Add entry for completion styling.
3239 * completer.c (_rl_completion_prefix_display_length): Move
3240 declaration earlier.
3241 (gdb_fnprint): Use completion_style.
3242 (gdb_display_match_list_1): Likewise.
3243 * cli/cli-style.c (completion_prefix_style)
3244 (completion_difference_style, completion_suffix_style): New
3245 globals.
3246 (_initialize_cli_style): Register new globals.
3247 * cli/cli-style.h (completion_prefix_style)
3248 (completion_difference_style, completion_suffix_style): Declare.
3249
51e2cfa2
PA
32502020-05-23 Pedro Alves <palves@redhat.com>
3251
3252 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3253 (parse_escape): Use ISDIGIT instead of isdigit.
3254 (puts_debug): Use gdb_isprint instead of isprint.
3255 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3256 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3257 ISSPACE instead of isspace.
3258 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3259 instead of isspace.
3260 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3261 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3262 instead of isxdigit and ISDIGIT instead of isdigit.
3263
80fc5e77
SM
32642020-05-22 Simon Marchi <simon.marchi@efficios.com>
3265
3266 * gdbtypes.h (struct type) <field>: New method.
3267 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3268 or type::field.
3269
3cabb6b0
SM
32702020-05-22 Simon Marchi <simon.marchi@efficios.com>
3271
3272 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3273 (TYPE_FIELDS): Use type::fields. Change all call sites that
3274 modify the propery to use type::set_fields instead.
3275
1f704f76
SM
32762020-05-22 Simon Marchi <simon.marchi@efficios.com>
3277
3278 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3279 type::num_fields instead.
3280
5e33d5f4
SM
32812020-05-22 Simon Marchi <simon.marchi@efficios.com>
3282
3283 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3284 methods.
3285 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3286 that modify the number of fields to use type::set_num_fields
3287 instead.
3288
9392ebb3
TT
32892020-05-22 Tom Tromey <tromey@adacore.com>
3290
3291 * compile/compile-object-load.h (munmap_list_free): Don't
3292 declare.
3293
7c13f4e8
AB
32942020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3295
3296 * annotate.c (annotate_source_line): Update return type, add call
3297 to update current symtab and line.
3298 * annotate.h (annotate_source_line): Update return type, and
3299 extend header comment.
3300 * source.c (info_line_command): Check annotation_level before
3301 calling annotate_source_line.
3302 * stack.c (print_frame_info): If calling annotate_source_line
3303 returns true, then don't print any other source line information.
3304
aa370940
SM
33052020-05-21 Simon Marchi <simon.marchi@efficios.com>
3306
3307 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3308
84d53fa9
SM
33092020-05-21 Simon Marchi <simon.marchi@efficios.com>
3310
3311 * coffread.c (patch_type): Remove NULL check before xfree.
3312 * corefile.c (set_gnutarget): Likewise.
3313 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3314 * exec.c (build_section_table): Likewise.
3315 * remote.c (remote_target::pass_signals): Likewise.
3316 * utils.c (n_spaces): Likewise.
3317 * cli/cli-script.c (document_command): Likewise.
3318 * i386-windows-tdep.c (core_process_module_section): Likewise.
3319 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3320
9d428aae
SM
33212020-05-20 Simon Marchi <simon.marchi@efficios.com>
3322
3323 * symfile.c (reread_symbols): Clear objfile's section_offsets
3324 vector and section indices, re-compute them by calling
3325 sym_offsets.
3326
250106a7
TT
33272020-05-20 Tom Tromey <tromey@adacore.com>
3328
3329 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3330 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3331
9a0bacfb
TV
33322020-05-20 Tom de Vries <tdevries@suse.de>
3333
3334 PR symtab/25833
3335 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3336
7b958a48
AM
33372020-05-20 Alan Modra <amodra@gmail.com>
3338
3339 PR 25993
3340 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3341 bfd_set_filename.
3342 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3343 passed to bfd_set_filename.
3344 * symfile-mem.c (add_vsyscall_page): Likewise for string
3345 passed to symbol_file_add_from_memory.
3346 (symbol_file_add_from_memory): Make name param a const char* and
3347 don't strdup.
3348
c7e97679
AM
33492020-05-20 Alan Modra <amodra@gmail.com>
3350
3351 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3352 rather than accessing bfd->filename directly.
3353 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3354 and use bfd_section_name.
3355 * dwarf2/frame.c (decode_frame_entry): Likewise.
3356 * exec.c (exec_set_section_address): Likewise.
3357 * solib-aix.c (solib_aix_bfd_open): Likewise.
3358 * stap-probe.c (get_stap_base_address): Likewise.
3359 * symfile.c (reread_symbols): Likewise.
3360
563c591b
TT
33612020-05-19 Tom Tromey <tromey@adacore.com>
3362
3363 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3364
f408d82c
SM
33652020-05-19 Simon Marchi <simon.marchi@efficios.com>
3366
3367 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3368
98c59b52
PA
33692020-05-19 Pedro Alves <palves@redhat.com>
3370
3371 * NEWS (set exec-file-mismatch): Adjust entry.
3372 * exec.c: Include "build-id.h".
3373 (validate_exec_file): Try to match build IDs instead of filenames.
3374 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3375 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3376 and pass down 'warn_if_slow'.
3377 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3378 gdb_bfd_open_closure to pass it down.
3379 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3380
4111f652
PA
33812020-05-19 Pedro Alves <palves@redhat.com>
3382
3383 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3384 * target.c (target_fileio_open_1): Rename to target_fileio_open
3385 and make extern. Use bool.
3386 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3387 (target_fileio_read_alloc_1): Adjust.
3388 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3389 (target_fileio_open_warn_if_slow): Delete declaration.
3390
ad80db5b
PA
33912020-05-19 Pedro Alves <palves@redhat.com>
3392
3393 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3394 Adjust all callers.
3395
1d6ce4d3
YS
33962020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3397
3398 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3399 whether disp is negative.
3400
9005fbbb
SM
34012020-05-19 Simon Marchi <simon.marchi@efficios.com>
3402
3403 * symfile.h (struct symfile_segment_data)
3404 <~symfile_segment_data>: Remove.
3405 <segment_info>: Change to std::vector.
3406 * symfile.c (default_symfile_segments): Update.
3407 * elfread.c (elf_symfile_segments): Update.
3408
68b888ff
SM
34092020-05-19 Simon Marchi <simon.marchi@efficios.com>
3410
3411 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3412 <segments>: New.
3413 <segment_bases, segment_sizes>: Remove.
3414 * symfile.c (default_symfile_segments): Update.
3415 * elfread.c (elf_symfile_segments): Update.
3416 * remote.c (remote_target::get_offsets): Update.
3417 * solib-target.c (solib_target_relocate_section_addresses):
3418 Update.
3419
62982abd
SM
34202020-05-19 Simon Marchi <simon.marchi@efficios.com>
3421
3422 * symfile.h (struct symfile_segment_data): Initialize fields.
3423 <~symfile_segment_data>: Add.
3424 (symfile_segment_data_up): New.
3425 (struct sym_fns) <sym_segments>: Return a
3426 symfile_segment_data_up.
3427 (default_symfile_segments): Return a symfile_segment_data_up.
3428 (free_symfile_segment_data): Remove.
3429 (get_symfile_segment_data): Return a symfile_segment_data_up.
3430 * symfile.c (default_symfile_segments): Likewise.
3431 (get_symfile_segment_data): Likewise.
3432 (free_symfile_segment_data): Remove.
3433 (symfile_find_segment_sections): Update.
3434 * elfread.c (elf_symfile_segments): Return a
3435 symfile_segment_data_up.
3436 * remote.c (remote_target::get_offsets): Update.
3437 * solib-target.c (solib_target_relocate_section_addresses):
3438 Update.
3439 * symfile-debug.c (debug_sym_segments): Return a
3440 symfile_segment_data_up.
3441
7f204339
RO
34422020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3443
e52a0f1b
RO
3444 PR build/25981
3445 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3446 Hardcode register numbers.
3447
7f204339
RO
3448 PR build/25981
3449 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3450 procfs_find_LDT_entry): Remove.
3451 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3452 procfs_find_LDT_entry): Remove.
3453 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3454 Remove.
3455
7f32a4d5
PA
34562020-05-17 Pedro Alves <palves@redhat.com>
3457 Andrew Burgess <andrew.burgess@embecosm.com>
3458 Keno Fischer <keno@juliacomputing.com>
3459
3460 PR gdb/25741
3461 * breakpoint.c (build_target_condition_list): Update comments.
3462 (build_target_command_list): Update comments and skip matching
3463 locations.
3464 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3465 a separate function. Simplify "set breakpoint auto-hw off"
3466 handling.
3467 (insert_breakpoints): Update comment.
3468 (tracepoint_locations_match): New parameter. For breakpoints,
3469 compare location types too, if the caller wants to.
3470 (handle_automatic_hardware_breakpoints): New functions.
3471 (bp_location_is_less_than): Also sort by location type and
3472 hardware breakpoint length.
3473 (update_global_location_list): Handle "set breakpoint auto-hw on"
3474 here.
3475 (update_breakpoint_locations): Ask breakpoint_locations_match to
3476 ignore location types.
3477
7d93a1e0
SM
34782020-05-16 Simon Marchi <simon.marchi@efficios.com>
3479
3480 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3481 type::name instead.
3482
d0e39ea2
SM
34832020-05-16 Simon Marchi <simon.marchi@efficios.com>
3484
3485 * gdbtypes.h (struct type) <name, set_name>: New methods.
3486 (TYPE_CODE): Use type::name. Change all call sites used to set
3487 the name to use type::set_name instead.
3488
2dab0c7b
TT
34892020-05-16 Tom Tromey <tom@tromey.com>
3490
3491 * top.c (quit_force): Update.
3492 * infrun.c (handle_no_resumed): Update.
3493 * top.h (all_uis): New function.
3494 (ALL_UIS): Remove.
3495
59f7bd8d
SM
34962020-05-16 Simon Marchi <simon.marchi@efficios.com>
3497
3498 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3499
9bf058f0
PA
35002020-05-16 Pedro Alves <palves@redhat.com>
3501
3502 * ia64-linux-nat.c
3503 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3504 Declare method.
3505 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3506
8f86ae1a
SM
35072020-05-15 Simon Marchi <simon.marchi@efficios.com>
3508
3509 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3510 (sparc64_adi_info): Likewise.
3511
d6bc0792
TT
35122020-05-15 Tom Tromey <tom@tromey.com>
3513
3514 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3515 block_objfile.
3516 (lookup_objfile_from_block): Remove.
3517 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3518 (lookup_global_symbol): Use block_objfile.
3519 * symtab.h (lookup_objfile_from_block): Don't declare.
3520 * printcmd.c (clear_dangling_display_expressions): Use
3521 block_objfile.
3522 * parse.c (operator_check_standard): Use block_objfile.
3523
8c14c3a3
TT
35242020-05-15 Tom Tromey <tom@tromey.com>
3525
3526 * language.c (language_alloc_type_symbol): Set
3527 SYMBOL_SECTION.
3528 * symtab.c (initialize_objfile_symbol): Remove.
3529 (allocate_symbol): Remove.
3530 (allocate_template_symbol): Remove.
3531 * dwarf2/read.c (fixup_go_packaging): Use "new".
3532 (new_symbol): Use "new".
3533 (read_variable): Don't call initialize_objfile_symbol. Use
3534 "new".
3535 (read_func_scope): Use "new".
3536 * xcoffread.c (process_xcoff_symbol): Don't call
3537 initialize_objfile_symbol.
3538 (SYMBOL_DUP): Remove.
3539 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3540 "new".
3541 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3542 (allocate_template_symbol): Don't declare.
3543 (struct symbol): Add copy constructor. Change defaults.
3544 * jit.c (finalize_symtab): Use "new".
3545 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3546 Use "new".
3547 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3548 (common_block_end): Use "new".
3549 * mdebugread.c (parse_symbol): Use "new".
3550 (new_symbol): Likewise.
3551
5b4a1a8d
PW
35522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3553
3554 * NEWS: Mention changes to help and apropos.
3555
57b4f16e
PW
35562020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3557
3558 * command.h (enum command_class): Improve comments, document
3559 that class_alias is for user-defined aliases, give the class
3560 name for each class, remove unused class_xdb.
3561 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3562 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3563 by a precise class.
3564 * infcmd.c (_initialize_infcmd): Likewise.
3565 * reverse.c (_initialize_reverse): Likewise.
3566 * stack.c (_initialize_stack): Likewise.
3567 * symfile.c (_initialize_symfile): Likewise.
3568 * tracepoint.c (_initialize_tracepoint): Likewise.
3569
7c05caf7
PW
35702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3571
3572 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3573 when their aliased command is traversed.
3574 (help_cmd): Add fput_command_names_styled call to
3575 output command name and aliases when command has an alias.
3576
3b3aaacb
PW
35772020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3578
3579 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3580 * cli/cli-decode.c (help_cmd_list): Declare as static,
3581 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3582 a command together with the command.
3583 (fput_command_name_styled, fput_command_names_styled): New functions.
3584 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3585 fput_command_name_styled.
3586 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3587 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3588
7aa1b46f
PW
35892020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3590
3591 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3592 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3593 * command.h (cmd_show_list): Likewise.
3594 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3595 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3596
89bcba74
PW
35972020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3598
3599 * unittests/command-def-selftests.c (traverse_command_structure):
3600 Verify all commands of a list have the same prefix command and
3601 that only the top cmdlist commands have a null prefix.
3602
3f4d92eb
PW
36032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3604
3605 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3606 as prefix, not one of its aliases.
3607 (set_cmd_prefix): Remove.
3608 (do_add_cmd): Centralize the setting of the prefix of a command, when
3609 command is defined after its full chain of prefix commands.
3610 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3611 (add_setshow_cmd_full): Likewise.
3612 (update_prefix_field_of_prefixed_commands): New function.
3613 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3614 update_prefix_field_of_prefixed_commands.
3615 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3616 addresses of remote_set_cmdlist and remote_show_cmdlist given
3617 as argument, not the address of an argument.
3618 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3619 * gdb/remote.c (_initialize_remote): Likewise.
3620
0605465f
PW
36212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3622
3623 * cli/cli-cmds.c (alias_command): Check for an existing alias
3624 using lookup_cmd_composition, as valid_command_p is too strict
3625 and forbids aliases that are the prefix of an existing alias
3626 or command.
3627 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3628 command is properly recognised as a valid command.
3629
58e6ac70
PW
36302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3631
3632 * unittests/help-doc-selftests.c: Rename to
3633 unittests/command-def-selftests.c
3634 * unittests/command-def-selftests.c (help_doc_tests): Update some
3635 comments.
3636 (command_structure_tests, traverse_command_structure): New namespace
3637 and function.
3638 (command_structure_invariants_tests): New function.
3639 (_initialize_command_def_selftests) Renamed from
3640 _initialize_help_doc_selftests, register command_structure_invariants
3641 selftest.
3642
a7b9ceb8
PW
36432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3644
3645 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3646 an alias of 'show'.
3647
b2188a06
JB
36482020-05-15 Joel Brobecker <brobecker@adacore.com>
3649
3650 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3651 ada_is_fixed_point_type. Update all callers.
3652 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3653 all callers.
3654 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3655 Update all callers.
3656 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3657 print_fixed_point_type. Update all callers.
3658 * ada-valprint.c (ada_value_print_num): Replace call to
3659 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3660
a51951c2
KB
36612020-05-14 Kevin Buettner <kevinb@redhat.com>
3662
3663 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3664 processors.
3665 (cpu_supports_bts): Add CV_AMD case.
3666
29d6859f
LM
36672020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3668 Simon Marchi <simon.marchi@efficios.com>
3669
3670 * infrun.c (stop_all_threads): Collect multiple wait events at
3671 each pass.
3672
78134374
SM
36732020-05-14 Simon Marchi <simon.marchi@efficios.com>
3674
3675 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3676 type::code instead.
3677
67607e24
SM
36782020-05-14 Simon Marchi <simon.marchi@efficios.com>
3679
3680 * gdbtypes.h (struct type) <code, set_code>: New methods.
3681 (TYPE_CODE): Use type::code. Change all call sites used to set
3682 the code to use type::set_code instead.
3683
a05575d3
TBA
36842020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3685 Tom de Vries <tdevries@suse.de>
3686 Pedro Alves <palves@redhat.com>
3687
3688 PR threads/25478
3689 * infrun.c (stop_all_threads): Do NOT ignore
3690 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3691 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3692 received.
3693 (handle_no_resumed): Remove code handling a live inferior with no
3694 threads.
3695 * remote.c (has_single_non_exited_thread): New.
3696 (remote_target::update_thread_list): Do not delete a thread if is
3697 the last thread of the process.
3698 * thread.c (thread_select): Call delete_exited_threads instead of
3699 prune_threads.
3700
6ad82919
TBA
37012020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3702
3703 * infrun.c (stop_all_threads): Enable/disable thread events of all
3704 targets. Move a debug message denoting the end of the function
3705 into the SCOPED_EXIT block.
3706
d890404b
TBA
37072020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3708
3709 * process-stratum-target.h: Include <set>.
3710 (all_non_exited_process_targets, switch_to_target_no_thread): New
3711 function declarations.
3712 * process-stratum-target.c (all_non_exited_process_targets)
3713 (switch_to_target_no_thread): New function implementations.
3714
293b3ebc
TBA
37152020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3716
3717 * infrun.c (handle_inferior_event): Extract out a piece of code
3718 into...
3719 (mark_non_executing_threads): ...this new function.
3720
7ca9b62a
TBA
37212020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3722
3723 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3724 use.
3725
fc75c28b
TBA
37262020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3727
3728 * regcache.c (regcache_read_pc_protected): New function
3729 implementation that returns 0 if the PC cannot read via
3730 'regcache_read_pc'.
3731 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3732 instead of 'regcache_read_pc'.
3733 (keep_going_pass_signal): Ditto.
3734
a89febbd
TT
37352020-05-13 Tom Tromey <tromey@adacore.com>
3736
3737 * ada-lang.c (align_value): Remove.
3738 (ada_template_to_fixed_record_type_1): Use align_up.
3739
f7e23710
TBA
37402020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3741
3742 * async-event.c: Update the copyright year.
3743 * async-event.h: Update the copyright year.
3744
02ff80c2
SM
37452020-05-12 Simon Marchi <simon.marchi@efficios.com>
3746
3747 * objfiles.h (is_addr_in_objfile,
3748 shared_objfile_contains_address_p): Return bool.
3749 * objfile.c (is_addr_in_objfile,
3750 shared_objfile_contains_address_p): Return bool.
3751
4fd6c7e8
TT
37522020-05-11 Tom Tromey <tromey@adacore.com>
3753
3754 * cli/cli-cmds.c (info_command): Restore.
3755 (_initialize_cli_cmds): Use add_prefix_command for "info".
3756 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3757
5eb68a39
TT
37582020-05-11 Tom Tromey <tromey@adacore.com>
3759
3760 * ada-lang.c (ada_value_primitive_field): Now public.
3761 * ada-lang.h (ada_value_primitive_field): Declare.
3762 * ada-valprint.c (print_field_values): Use
3763 ada_value_primitive_field for wrapper fields.
3764
7666722f
TV
37652020-05-11 Tom de Vries <tdevries@suse.de>
3766
3767 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3768 MODULE_DOMAIN.
3769
3ee6bb11
TV
37702020-05-11 Tom de Vries <tdevries@suse.de>
3771
3772 PR symtab/25941
3773 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3774 with length 0, if not gdb-produced.
3775 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3776
43434996
TV
37772020-05-09 Tom de Vries <tdevries@suse.de>
3778
3779 PR gdb/25955
3780 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3781 calculation.
3782
2f78cffc
TT
37832020-05-09 Tom Tromey <tom@tromey.com>
3784
3785 * top.c (server_command): Now bool.
3786 * top.h (server_command): Now bool.
3787
4f7bc5ed
TT
37882020-05-08 Tom Tromey <tromey@adacore.com>
3789
3790 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3791 already being processed.
3792
8be4b118
TT
37932020-05-08 Tom Tromey <tom@tromey.com>
3794
3795 * printcmd.c (struct display) <next>: Remove.
3796 <display>: New constructor.
3797 <exp_string>: Now a std::string.
3798 <enabled_p>: Now a bool.
3799 (display_number): Move definition earlier.
3800 (displays): Rename from display_chain. Now a std::vector.
3801 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3802 (display_command): Update.
3803 (do_one_display, disable_display)
3804 (enable_disable_display_command, do_enable_disable_display):
3805 Update.
3806 (free_display): Remove.
3807 (clear_displays): Rewrite.
3808 (delete_display): Update.
3809 (map_display_numbers): Use function_view. Remove "data"
3810 parameter. Update.
3811 (do_delete_display): Remove.
3812 (undisplay_command): Update.
3813 (do_one_display, do_displays, disable_display)
3814 (info_display_command): Update.
3815 (do_enable_disable_display): Remove.
3816 (enable_disable_display_command)
3817 (clear_dangling_display_expressions): Update.
3818
94c93c35
TT
38192020-05-08 Tom Tromey <tom@tromey.com>
3820
3821 * symtab.c (set_symbol_cache_size)
3822 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3823 (maintenance_print_symbol_cache_statistics): Update.
3824 * symmisc.c (print_symbol_bcache_statistics)
3825 (print_objfile_statistics, maintenance_print_objfiles)
3826 (maintenance_info_symtabs, maintenance_check_symtabs)
3827 (maintenance_expand_symtabs, maintenance_info_line_tables):
3828 Update.
3829 * symfile-debug.c (set_debug_symfile): Update.
3830 * source.c (forget_cached_source_info): Update.
3831 * python/python.c (gdbpy_progspaces): Update.
3832 * psymtab.c (maintenance_info_psymtabs): Update.
3833 * probe.c (parse_probes): Update.
3834 * linespec.c (iterate_over_all_matching_symtabs)
3835 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3836 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3837 * exec.c (exec_target::close): Update.
3838 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3839 * breakpoint.c (print_one_breakpoint_location)
3840 (create_longjmp_master_breakpoint)
3841 (create_std_terminate_master_breakpoint): Update.
3842 * progspace.c (program_spaces): Now a std::vector.
3843 (maybe_new_address_space): Update.
3844 (add_program_space): Remove.
3845 (program_space::program_space): Update.
3846 (remove_program_space): Update.
3847 (number_of_program_spaces): Remove.
3848 (print_program_space, update_address_spaces): Update.
3849 * progspace.h (program_spaces): Change type.
3850 (ALL_PSPACES): Remove.
3851 (number_of_program_spaces): Don't declare.
3852 (struct program_space) <next>: Remove.
3853
a1fd1ac9
TT
38542020-05-08 Tom Tromey <tom@tromey.com>
3855
3856 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3857 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3858 (enable_break): Update.
3859 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3860 (frv_fdpic_find_canonical_descriptor): Update.
3861 (frv_fetch_objfile_link_map): Update.
3862 * progspace.c (program_space::free_all_objfiles): Update.
3863 (program_space::solibs): New method.
3864 * progspace.h (struct program_space) <solibs>: New method.
3865 * solist.h (master_so_list): Don't declare.
3866 (ALL_SO_LIBS): Remove.
3867 * solib.h (so_list_head): Remove.
3868 (update_solib_list): Update comment.
3869 * solib.c (master_so_list): Remove.
3870 (solib_used, update_solib_list, solib_add)
3871 (info_sharedlibrary_command, clear_solib)
3872 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3873
38eae084
TT
38742020-05-08 Tom Tromey <tom@tromey.com>
3875
3876 * extension.c (extension_languages): Now a std::array.
3877 (ALL_EXTENSION_LANGUAGES): Remove.
3878 (get_ext_lang_defn, get_ext_lang_of_file)
3879 (eval_ext_lang_from_control_command): Update.
3880 (finish_ext_lang_initialization)
3881 (auto_load_ext_lang_scripts_for_objfile)
3882 (ext_lang_type_printers::ext_lang_type_printers)
3883 (apply_ext_lang_type_printers)
3884 (ext_lang_type_printers::~ext_lang_type_printers)
3885 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3886 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3887 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3888 (get_matching_xmethod_workers, ext_lang_colorize)
3889 (ext_lang_before_prompt): Update.
3890 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3891
596dc4ad
TT
38922020-05-08 Tom Tromey <tom@tromey.com>
3893
3894 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3895 overload.
3896 <swap_string, m_string>: Remove.
3897 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3898 Update.
3899 * stabsread.c (define_symbol, read_type): Update.
3900 * linespec.c (find_linespec_symbols): Update.
3901 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3902 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3903 * dbxread.c (read_dbx_symtab): Update.
3904 * cp-support.h (cp_canonicalize_string_full)
3905 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3906 Return unique_xmalloc_ptr.
3907 * cp-support.c (inspect_type): Update.
3908 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3909 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3910 Likewise.
3911 * c-typeprint.c (print_name_maybe_canonical): Update.
3912 * break-catch-throw.c (check_status_exception_catchpoint):
3913 Update.
3914
bf4cb9be
TV
39152020-05-08 Tom de Vries <tdevries@suse.de>
3916
3917 * infrun.c (follow_fork): Copy current_line and current_symtab to
3918 child thread.
3919
a1b68f28
SM
39202020-05-07 Simon Marchi <simon.marchi@efficios.com>
3921
3922 * async-event.c (struct async_signal_handler, struct
3923 async_event_handler): Reformat, remove typedef.
3924
98d48915
SM
39252020-05-07 Simon Marchi <simon.marchi@efficios.com>
3926
3927 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
3928 access thistype->main_type->dyn_prop_list directly.
3929
7aa91313
SM
39302020-05-07 Simon Marchi <simon.marchi@efficios.com>
3931
3932 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
3933 (remove_dyn_prop): Remove. Update all users to use
3934 type::remove_dyn_prop.
3935 * gdbtypes.c (remove_dyn_prop): Rename to...
3936 (type::remove_dyn_prop): ... this.
3937
5c54719c
SM
39382020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
3939
3940 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
3941 (add_dyn_prop): Remove. Update all users to use
3942 type::add_dyn_prop.
3943 * gdbtypes.c (add_dyn_prop): Rename to...
3944 (type::add_dyn_prop): ... this.
3945
24e99c6c
SM
39462020-05-07 Simon Marchi <simon.marchi@efficios.com>
3947
3948 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
3949 (get_dyn_prop): Remove. Update all users to use
3950 type::dyn_prop.
3951 * gdbtypes.c (get_dyn_prop): Rename to...
3952 (type::dyn_prop): ... this.
3953
0d4bf016
SM
39542020-05-06 Simon Marchi <simon.marchi@efficios.com>
3955
3956 * gdbtypes.h (struct main_type) <flag_static>: Remove.
3957
ac4a4f1c
SM
39582020-05-06 Simon Marchi <simon.marchi@efficios.com>
3959
3960 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
3961 instruction, skip it if it's there.
3962
a3bbacc1
SM
39632020-05-05 Simon Marchi <simon.marchi@efficios.com>
3964
3965 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
3966
c3236f84
SM
39672020-05-04 Simon Marchi <simon.marchi@efficios.com>
3968
3969 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
3970 * gdbtypes.c (recursive_dump_type): Remove use of
3971 TYPE_INCOMPLETE.
3972
3b6acaee
TT
39732020-05-03 Tom Tromey <tom@tromey.com>
3974
3975 * breakpoint.c (catch_command, tcatch_command): Remove.
3976 (_initialize_breakpoint): Use add_basic_prefix_cmd,
3977 add_show_prefix_cmd.
3978 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
3979 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
3980 Remove.
3981 (add_internal_problem_command): Use add_basic_prefix_cmd,
3982 add_show_prefix_cmd.
3983 * mips-tdep.c (set_mipsfpu_command): Remove.
3984 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
3985 * dwarf2/index-cache.c (set_index_cache_command): Remove.
3986 (_initialize_index_cache): Use add_basic_prefix_cmd.
3987 * memattr.c (dummy_cmd): Remove.
3988 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
3989 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
3990 (_initialize_tui_win): Use add_basic_prefix_cmd,
3991 add_show_prefix_cmd.
3992 * cli/cli-logging.c (set_logging_command): Remove.
3993 (_initialize_cli_logging): Use add_basic_prefix_cmd,
3994 add_show_prefix_cmd.
3995 (show_logging_command): Remove.
3996 * target.c (target_command): Remove.
3997 (add_target): Use add_basic_prefix_cmd.
3998
a51119cd
HD
39992020-05-02 Hannes Domani <ssbssa@yahoo.de>
4000
4001 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4002
652fc23a 40032020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4004
652fc23a
PW
4005 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4006 info_command.
4007
117539e6
KR
40082020-04-30 Kamil Rytarowski <n54@gmx.com>
4009
4010 * nbsd-nat.c (nbsd_enable_proc_events)
4011 (nbsd_nat_target::post_startup_inferior): Add.
4012 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4013 (nbsd_nat_target::update_thread_list): Rewrite.
4014 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4015 "PTRACE_LWP_CREATE".
4016 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4017
102e38eb 40182020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4019
102e38eb
PW
4020 * stack.c (_initialize_stack): Remove duplicated creation
4021 of "frame" command and "f" alias.
4022
ee9d1e5f
HD
40232020-04-30 Hannes Domani <ssbssa@yahoo.de>
4024
4025 PR gdb/18706
4026 * gdbtypes.c (check_typedef): Calculate size of array of
4027 stubbed type.
4028
627c7fb8
HD
40292020-04-30 Hannes Domani <ssbssa@yahoo.de>
4030
4031 PR gdb/15559
4032 * i386-tdep.c (i386_push_dummy_call): Call
4033 i386_thiscall_push_dummy_call.
4034 (i386_thiscall_push_dummy_call): New function.
4035 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4036 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4037 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4038
ffc2844e
SM
40392020-04-29 Simon Marchi <simon.marchi@efficios.com>
4040
4041 * gdbarch.sh (do_read): Add shellcheck disable directive for
4042 warning SC2162.
4043
1207375d
SM
40442020-04-29 Simon Marchi <simon.marchi@efficios.com>
4045
4046 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4047 "referenced but not assigned" warning.
4048
9fdb2916
SM
40492020-04-29 Simon Marchi <simon.marchi@efficios.com>
4050
4051 * gdbarch.sh: Remove code that sets fallbackdefault.
4052
759cea5e
SM
40532020-04-29 Simon Marchi <simon.marchi@efficios.com>
4054
4055 * gdbarch.sh: Use shell operators && and || instead of
4056 -a and -o.
4057
cb02ab24
SM
40582020-04-29 Simon Marchi <simon.marchi@efficios.com>
4059
4060 * gdbarch.sh: Use $(...) instead of `...`.
4061
a6fc5ffc
SM
40622020-04-29 Simon Marchi <simon.marchi@efficios.com>
4063
4064 * gdbarch.sh: Use double quotes around variables.
4065
8d113d13
SM
40662020-04-29 Simon Marchi <simon.marchi@efficios.com>
4067
4068 * gdbarch.sh: Use %s with printf, instead of variables in the
4069 format string.
4070
ed6acedd
TT
40712020-04-29 Tom Tromey <tromey@adacore.com>
4072
4073 PR ada/25875:
4074 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4075 type fields here.
4076 (read_enumeration_type): Call
4077 update_enumeration_type_from_children later. Update comments.
4078 (process_enumeration_scope): Don't create type fields.
4079
b68b1b58
KR
40802020-04-29 Kamil Rytarowski <n54@gmx.com>
4081
4082 * nbsd-tdep.c: Include "xml-syscall.h".
4083 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4084
f94b2e03
KR
40852020-04-29 Kamil Rytarowski <n54@gmx.com>
4086
4087 * nbsd-nat.c: Include "sys/wait.h".
4088 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4089 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4090 (nbsd_nat_target::remove_exec_catchpoint)
4091 (nbsd_nat_target::set_syscall_catchpoint): Add.
4092 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4093 (nbsd_nat_target::insert_exec_catchpoint)
4094 (nbsd_nat_target::remove_exec_catchpoint)
4095 (nbsd_nat_target::set_syscall_catchpoint): Add.
4096 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4097 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4098 `nbsd_get_syscall_number'.
4099
fc49bc72
TT
41002020-04-29 Tom Tromey <tom@tromey.com>
4101
4102 * stack.c (print_block_frame_labels): Remove.
4103
d642b692
HD
41042020-04-29 Hannes Domani <ssbssa@yahoo.de>
4105
4106 PR gdb/17320
4107 * ada-valprint.c (val_print_packed_array_elements): Move array
4108 end bracket to new line.
4109 (ada_val_print_string): Remove extra spaces before first array
4110 element.
4111 * c-valprint.c (c_value_print_array): Likewise.
4112 * m2-valprint.c (m2_print_array_contents): Likewise.
4113 (m2_value_print_inner): Likewise.
4114 * p-valprint.c (pascal_value_print_inner): Likewise.
4115 * valprint.c (generic_val_print_array): Likewise.
4116 (value_print_array_elements): Move first array element and array
4117 end bracket to new line.
4118
ea90f227
TV
41192020-04-29 Tom de Vries <tdevries@suse.de>
4120
4121 PR symtab/25889
4122 * linespec.c (find_method): Fix ix calculation.
4123
4498ef4f
KR
41242020-04-28 Kamil Rytarowski <n54@gmx.com>
4125
4126 * syscalls/update-netbsd.sh: New file.
4127 * syscalls/netbsd.xml: Regenerate.
4128 * data-directory/Makefile.in: Register `netbsd.xml' in
4129 `SYSCALLS_FILES'.
4130
a55e30b5
SM
41312020-04-28 Simon Marchi <simon.marchi@efficios.com>
4132
4133 * syscalls/update-freebsd.sh: Add double quotes.
4134
2b2fbab8
TT
41352020-04-28 Tom Tromey <tom@tromey.com>
4136
4137 * NEWS: Update.
4138 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4139 (cmdpy_init): Allow class_tui.
4140
a65189c9
TV
41412020-04-28 Mark Williams <mark@myosotissp.com>
4142
4143 PR gdb/24480
4144 * dwarf2read.c: Add missing assingments to list_in_scope when
4145 start_symtab was already called.
4146
1b95cdb7
SM
41472020-04-28 Simon Marchi <simon.marchi@efficios.com>
4148
4149 PR gdb/25881
4150 * dwarf2/read.c (offset_map_type): Use
4151 gdb:hash_enum<sect_offset> as hash function.
4152
15cd93d0
TV
41532020-04-28 Tom de Vries <tdevries@suse.de>
4154
4155 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4156 with DW_AT_signature.
4157
1eb39914
SM
41582020-04-27 Simon Marchi <simon.marchi@efficios.com>
4159
4160 * configure.ac: Remove check for fs_base/gs_base in
4161 user_regs_struct.
4162 * configure: Re-generate.
4163 * config.in: Re-generate.
4164 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4165 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4166 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4167
991a3e2e
LM
41682020-04-27 Luis Machado <luis.machado@linaro.org>
4169
4170 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4171 problematic inline frame unwinding situation.
4172 * frame.c (frame_id_computed_p): New function.
4173 * frame.h (frame_id_computed_p): New prototype.
4174
361ba0e8
TT
41752020-04-26 Tom Tromey <tom@tromey.com>
4176
4177 * command.h (enum command_class) <class_pseudo>: Remove.
4178
bc3609fd
PW
41792020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4180
4181 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4182 and whitespace.
4183
b9771db7
KR
41842020-04-25 Kamil Rytarowski <n54@gmx.com>
4185
ec16513e
SM
4186 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4187 `PT_GET_PROCESS_STATE' block.
b9771db7 4188
7151c1af
TT
41892020-04-24 Tom Tromey <tom@tromey.com>
4190
4191 * symtab.h (symbol_get_demangled_name): Don't declare.
4192 * symtab.c (symbol_get_demangled_name): Remove.
4193 (general_symbol_info::natural_name)
4194 (general_symbol_info::demangled_name): Update.
4195
906bb4c5
TT
41962020-04-24 Tom Tromey <tom@tromey.com>
4197
4198 PR rust/25025:
4199 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4200
bcfe6157
TT
42012020-04-24 Tom Tromey <tom@tromey.com>
4202
4203 PR symtab/12707:
4204 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4205 exists.
4206 (new_symbol): Likewise.
4207 * compile/compile-object-load.c (get_out_value_type): Use
4208 symbol_matches_search_name.
4209
f049a313
TT
42102020-04-24 Tom Tromey <tom@tromey.com>
4211
4212 * dwarf2/read.c (add_partial_symbol): Do not call
4213 compute_and_set_names.
4214
76e288d1
TT
42152020-04-24 Tom Tromey <tom@tromey.com>
4216
4217 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4218 overload.
4219
2467f4f6
TT
42202020-04-24 Tom Tromey <tom@tromey.com>
4221
4222 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4223 (add_psymbol_to_list): New overload. Make old overload call new
4224 one.
4225 * psympriv.h (add_psymbol_to_list): New overload.
4226
e61108c9
TT
42272020-04-24 Tom Tromey <tom@tromey.com>
4228
4229 * dwarf2/read.c (partial_die_info::read) <case
4230 DW_AT_linkage_name>: Use value_as_string.
4231 (dwarf2_string_attr): Use value_as_string.
4232 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4233 method.
4234 * dwarf2/attribute.c (attribute::value_as_string): New method.
4235
8c87a452
TT
42362020-04-24 Tom Tromey <tom@tromey.com>
4237
4238 * symtab.c (general_symbol_info::natural_name)
4239 (general_symbol_info::demangled_name): Check for language_rust.
4240
787de330
TT
42412020-04-24 Tom Tromey <tom@tromey.com>
4242
4243 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4244 (dwarf2_physname): ... from here.
4245 (partial_die_info::read): Add Rust "{" hack.
4246
ff985671
TT
42472020-04-24 Tom Tromey <tom@tromey.com>
4248
4249 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4250 method.
4251 (symbol_set_demangled_name): Don't declare.
4252 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4253 symbol_set_demangled_name.
4254 (general_symbol_info::set_language)
4255 (general_symbol_info::compute_and_set_names): Update.
4256 * minsyms.c (minimal_symbol_reader::install): Update.
4257 * dwarf2/read.c (new_symbol): Update.
4258
1acda803
TT
42592020-04-24 Tom Tromey <tromey@adacore.com>
4260
4261 PR python/23662:
4262 * python/py-type.c (convert_field): Handle
4263 FIELD_LOC_KIND_DWARF_BLOCK.
4264 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4265 (typy_get_dynamic): Nw function.
4266 (type_object_getset): Add "dynamic".
4267 * NEWS: Add entry.
4268
d656f129
TT
42692020-04-24 Tom Tromey <tromey@adacore.com>
4270
4271 * ada-typeprint.c (print_choices, print_variant_part)
4272 (print_record_field_types_dynamic): New functions.
4273 (print_record_field_types): Use print_record_field_types_dynamic.
4274
7d79de9a
TT
42752020-04-24 Tom Tromey <tromey@adacore.com>
4276
4277 * dwarf2/read.c (handle_data_member_location): New overload.
4278 (dwarf2_add_field): Use it.
4279 (decode_locdesc): Add "computed" parameter. Update comment.
4280 * gdbtypes.c (is_dynamic_type_internal): Also look for
4281 FIELD_LOC_KIND_DWARF_BLOCK.
4282 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4283 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4284 virtual base classes.
4285 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4286 FIELD_LOC_KIND_DWARF_BLOCK.
4287
f8e89861
TT
42882020-04-24 Tom Tromey <tromey@adacore.com>
4289
4290 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4291 * gdbtypes.c (is_dynamic_type_internal): Check
4292 TYPE_HAS_DYNAMIC_LENGTH.
4293 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4294 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4295 New macros.
4296 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4297 constant.
4298
9c6a1327
TT
42992020-04-24 Tom Tromey <tromey@adacore.com>
4300
4301 * dwarf2/read.c (struct variant_field): Rewrite.
4302 (struct variant_part_builder): New.
4303 (struct nextfield): Remove "variant" field. Add "offset".
4304 (struct field_info): Add "current_variant_part" and
4305 "variant_parts".
4306 (alloc_discriminant_info): Remove.
4307 (alloc_rust_variant): New function.
4308 (quirk_rust_enum): Update.
4309 (dwarf2_add_field): Set "offset" member. Don't handle
4310 DW_TAG_variant_part.
4311 (offset_map_type): New typedef.
4312 (convert_variant_range, create_one_variant)
4313 (create_one_variant_part, create_variant_parts)
4314 (add_variant_property): New functions.
4315 (dwarf2_attach_fields_to_type): Call add_variant_property.
4316 (read_structure_type): Don't handle DW_TAG_variant_part.
4317 (handle_variant_part, handle_variant): New functions.
4318 (handle_struct_member_die): Use them.
4319 (process_structure_scope): Don't handle variant parts.
4320 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4321 (struct discriminant_info): Remove.
4322 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4323 (struct main_type) <flag_discriminated_union>: Remove.
4324 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4325 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4326 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4327 Update.
4328 * valops.c (value_union_variant): Remove.
4329 * value.h (value_union_variant): Don't declare.
4330
b249d2c2
TT
43312020-04-24 Tom Tromey <tromey@adacore.com>
4332
4333 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4334 (ada_value_primitive_packed_val): Update.
4335 * ada-valprint.c (ada_value_print_1): Update.
4336 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4337 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4338 just an address. Use evaluate_for_locexpr_baton.
4339 (dwarf2_evaluate_property): Update.
4340 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4341 array_view.
4342 * findvar.c (default_read_var_value): Update.
4343 * gdbtypes.c (compute_variant_fields_inner)
4344 (resolve_dynamic_type_internal): Update.
4345 (resolve_dynamic_type): Change type of valaddr parameter.
4346 * gdbtypes.h (resolve_dynamic_type): Update.
4347 * valarith.c (value_subscripted_rvalue): Update.
4348 * value.c (value_from_contents_and_address): Update.
4349
61122aa9
TT
43502020-04-24 Tom Tromey <tromey@adacore.com>
4351
4352 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4353 "push_initial_value" parameter.
4354 (dwarf2_evaluate_property): Likewise.
4355 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4356
ef83a141
TT
43572020-04-24 Tom Tromey <tromey@adacore.com>
4358
4359 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4360 (variant::matches, compute_variant_fields_recurse)
4361 (compute_variant_fields_inner, compute_variant_fields): New
4362 functions.
4363 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4364 Use resolved_type after type is made.
4365 (operator==): Add new cases.
4366 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4367 (struct discriminant_range, struct variant, struct variant_part):
4368 New.
4369 (union dynamic_prop_data) <variant_parts, original_type>: New
4370 members.
4371 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4372 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4373 constants.
4374 * value.c (unpack_bits_as_long): Now public.
4375 * value.h (unpack_bits_as_long): Declare.
4376
675127ec
TT
43772020-04-24 Tom Tromey <tromey@adacore.com>
4378
4379 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4380 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4381
9852ceef
HD
43822020-04-24 Hannes Domani <ssbssa@yahoo.de>
4383
4384 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4385
7632c6ce
KR
43862020-04-24 Kamil Rytarowski <n54@gmx.com>
4387
4388 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4389 (remove_fork_catchpoint, post_startup_inferior)
4390 (post_attach): Move...
4391 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4392 (remove_fork_catchpoint, post_startup_inferior)
4393 (post_attach): ...here.
4394 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4395 (remove_fork_catchpoint, post_startup_inferior)
4396 (post_attach): Move...
4397 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4398 (remove_fork_catchpoint, post_startup_inferior)
4399 (post_attach): ...here.
4400
7be2bb4f
TT
44012020-04-24 Tom Tromey <tromey@adacore.com>
4402
4403 * nat/windows-nat.h (struct windows_thread_info)
4404 <pc_adjusted>: New member.
4405 * windows-nat.c (windows_fetch_one_register): Check
4406 pc_adjusted.
4407 (windows_nat_target::get_windows_debug_event)
4408 (windows_nat_target::wait): Set pc_adjusted.
4409
f80cb3b4
TV
44102020-04-24 Tom de Vries <tdevries@suse.de>
4411
4412 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4413 Run gdb-add-index inside temp dir.
4414
29514b87
TT
44152020-04-23 Tom Tromey <tromey@adacore.com>
4416
4417 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4418 in loop.
4419
5939967b
LM
44202020-04-23 Luis Machado <luis.machado@linaro.org>
4421
4422 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4423 get_frame_register instead of gdbarch_unwind_pc.
4424
70bc38f5
TV
44252020-04-23 Tom de Vries <tdevries@suse.de>
4426
4427 * symtab.c (lookup_global_symbol): Prefer def over decl.
4428
de82891c
TV
44292020-04-23 Tom de Vries <tdevries@suse.de>
4430
4431 PR symtab/25807
4432 * block.c (best_symbol, better_symbol): Promote to external.
4433 * block.h (best_symbol, better_symbol): Declare.
4434 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4435 decl.
4436
ecc6c606
TT
44372020-04-23 Tom Tromey <tromey@adacore.com>
4438
4439 PR ada/25837:
4440 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4441 "const char *", not a "const std::string &".
4442 <name_and_matcher::operator==>: Update.
4443 * unittests/lookup_name_info-selftests.c: Change type of
4444 "result".
4445
740480b8
TT
44462020-04-23 Tom Tromey <tom@tromey.com>
4447
4448 * inferior.h (iterate_over_inferiors): Don't declare.
4449 * inferior.c (iterate_over_inferiors): Remove.
4450 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4451 Remove.
4452 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4453 use iterate_over_inferiors.
4454 (darwin_resume_inferior_it)
4455 (struct resume_inferior_threads_param)
4456 (darwin_resume_inferior_threads_it): Remove.
4457 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4458
ae3ab1f0
TV
44592020-04-23 Tom de Vries <tdevries@suse.de>
4460
4461 * blockframe.c (find_pc_partial_function): Use
4462 find_pc_sect_compunit_symtab rather than
4463 objfile->sf->qf->find_pc_sect_compunit_symtab.
4464
317d2668
TV
44652020-04-22 Tom de Vries <tdevries@suse.de>
4466
4467 PR symtab/25764
4468 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4469 in psymtabs.
4470
eea9e357
TV
44712020-04-22 Tom de Vries <tdevries@suse.de>
4472
4473 PR symtab/25801
4474 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4475 symtabs.
4476
3d5afab3
TV
44772020-04-22 Tom de Vries <tdevries@suse.de>
4478
4479 PR symtab/25700
4480 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4481 CU if already created.
4482
d43b7a2d
TBA
44832020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4484
4485 * infrun.c (displaced_step_fixup): Switch to the event_thread
4486 before calling displaced_step_restore, not after.
4487
d89edf9b
MM
44882020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4489
4490 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4491 its inferior is not recorded by us.
4492 (record_btrace_target_open): Replace call to
4493 all_non_exited_threads () with call to current_inferior
4494 ()->non_exited_threads ().
4495 (record_btrace_target::stop_recording): Likewise.
4496 (record_btrace_target::close): Likewise.
4497 (record_btrace_target::wait): Likewise.
4498 (record_btrace_target::record_stop_replaying): Likewise.
4499
5897fd49
MM
45002020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4501
4502 * btrace.c (btrace_enable): Throw an error on double enables and
4503 when enabling recording fails.
4504 (btrace_disable): Throw an error if the thread is not recorded.
4505
1a476b6d
MM
45062020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4507
4508 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4509 request if we do not have a thread_info.
4510
4778a5f8
TV
45112020-04-21 Tom de Vries <tdevries@suse.de>
4512
4513 PR gdb/25471
4514 * thread.c
4515 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4516 exception in get_frame_id.
4517
0fa7617d
TT
45182020-04-20 Tom Tromey <tromey@adacore.com>
4519
4520 * python/python.c (struct gdbpy_event): Mark move constructor as
4521 noexcept.
4522 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4523 constructor as noexcept.
4524 * completer.h (struct completion_result): Mark move constructor as
4525 noexcept.
4526 * completer.c (completion_result::completion_result): Use
4527 initialization style. Don't call reset_match_list.
4528
ad23bda0
MS
45292020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4530
4531 * MAINTAINERS (Write After Approval): Add myself.
4532
45e1f031
TT
45332020-04-18 Tom Tromey <tom@tromey.com>
4534
4535 * windows-tdep.c (init_w32_command_list)
4536 (w32_prefix_command_valid): Restore.
4537 (_initialize_windows_tdep): Call init_w32_command_list.
4538
08feed99
TT
45392020-04-18 Tom Tromey <tom@tromey.com>
4540
4541 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4542 * value.c (value_fn_field): Update.
4543 * valops.c (find_function_in_inferior)
4544 (value_allocate_space_in_inferior): Update.
4545 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4546 Update.
4547 * tui/tui-source.c (tui_source_window::set_contents): Update.
4548 * symtab.c (lookup_global_or_static_symbol)
4549 (find_function_start_sal_1, skip_prologue_sal)
4550 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4551 * symmisc.c (dump_msymbols, dump_symtab_1)
4552 (maintenance_print_one_line_table): Update.
4553 * symfile.c (init_entry_point_info, section_is_mapped)
4554 (list_overlays_command, simple_read_overlay_table)
4555 (simple_overlay_update_1): Update.
4556 * stap-probe.c (handle_stap_probe): Update.
4557 * stabsread.c (dbx_init_float_type, define_symbol)
4558 (read_one_struct_field, read_enum_type, read_range_type): Update.
4559 * source.c (info_line_command): Update.
4560 * python/python.c (gdbpy_source_objfile_script)
4561 (gdbpy_execute_objfile_script): Update.
4562 * python/py-type.c (save_objfile_types): Update.
4563 * python/py-objfile.c (py_free_objfile): Update.
4564 * python/py-inferior.c (python_new_objfile): Update.
4565 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4566 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4567 (maintenance_check_psymtabs): Update.
4568 * printcmd.c (info_address_command): Update.
4569 * objfiles.h (struct objfile) <arch>: New method, from
4570 get_objfile_arch.
4571 (get_objfile_arch): Don't declare.
4572 * objfiles.c (get_objfile_arch): Remove.
4573 (filter_overlapping_sections): Update.
4574 * minsyms.c (msymbol_is_function): Update.
4575 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4576 (output_nondebug_symbol): Update.
4577 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4578 (mdebug_expand_psymtab): Update.
4579 * machoread.c (macho_add_oso_symfile): Update.
4580 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4581 Update.
4582 * linux-fork.c (checkpoint_command): Update.
4583 * linespec.c (convert_linespec_to_sals): Update.
4584 * jit.c (finalize_symtab): Update.
4585 * infrun.c (insert_exception_resume_from_probe): Update.
4586 * ia64-tdep.c (ia64_find_unwind_table): Update.
4587 * hppa-tdep.c (internalize_unwinds): Update.
4588 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4589 Update.
4590 * gcore.c (call_target_sbrk): Update.
4591 * elfread.c (record_minimal_symbol, elf_symtab_read)
4592 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4593 (elf_gnu_ifunc_resolve_by_got): Update.
4594 * dwarf2/read.c (create_addrmap_from_index)
4595 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4596 (read_debug_names_from_section)
4597 (process_psymtab_comp_unit_reader, add_partial_symbol)
4598 (add_partial_subprogram, process_full_comp_unit)
4599 (read_file_scope, read_func_scope, read_lexical_block_scope)
4600 (read_call_site_scope, dwarf2_ranges_read)
4601 (dwarf2_record_block_ranges, dwarf2_add_field)
4602 (mark_common_block_symbol_computed, read_tag_pointer_type)
4603 (read_tag_string_type, dwarf2_init_float_type)
4604 (dwarf2_init_complex_target_type, read_base_type)
4605 (partial_die_info::read, partial_die_info::read)
4606 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4607 (dwarf2_fetch_die_loc_sect_off): Update.
4608 * dwarf2/loc.c (dwarf2_find_location_expression)
4609 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4610 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4611 (dwarf2_loc_desc_get_symbol_read_needs)
4612 (locexpr_describe_location_piece, locexpr_describe_location_1)
4613 (loclist_describe_location): Update.
4614 * dwarf2/index-write.c (write_debug_names): Update.
4615 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4616 * dtrace-probe.c (dtrace_process_dof): Update.
4617 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4618 (process_one_symbol): Update.
4619 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4620 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4621 (coff_read_enum_type): Update.
4622 * cli/cli-cmds.c (edit_command, list_command): Update.
4623 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4624 * breakpoint.c (create_overlay_event_breakpoint)
4625 (create_longjmp_master_breakpoint)
4626 (create_std_terminate_master_breakpoint)
4627 (create_exception_master_breakpoint, get_sal_arch): Update.
4628 * block.c (block_gdbarch): Update.
4629 * annotate.c (annotate_source_line): Update.
4630
0743fc83
TT
46312020-04-17 Tom Tromey <tromey@adacore.com>
4632
4633 * auto-load.c (show_auto_load_cmd): Remove.
4634 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4635 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4636 (maintenance_print_arc_command): Remove.
4637 * tui/tui-win.c (tui_command): Remove.
4638 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4639 * tui/tui-layout.c (tui_layout_command): Remove.
4640 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4641 * python/python.c (user_set_python, user_show_python): Remove.
4642 (_initialize_python): Use add_basic_prefix_cmd,
4643 add_show_prefix_cmd.
4644 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4645 (install_gdb_commands): Use add_basic_prefix_cmd,
4646 add_show_prefix_cmd.
4647 (info_guile_command): Remove.
4648 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4649 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4650 add_show_prefix_cmd.
4651 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4652 Remove do_set and do_show parameters.
4653 * cli/cli-style.c (set_style, show_style): Remove.
4654 (_initialize_cli_style): Use add_basic_prefix_cmd,
4655 add_show_prefix_cmd.
4656 (cli_style_option::add_setshow_commands): Remove do_set and
4657 do_show parameters.
4658 (cli_style_option::add_setshow_commands): Use
4659 add_basic_prefix_cmd, add_show_prefix_cmd.
4660 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4661 (set_style_name): Remove.
4662 * cli/cli-dump.c (dump_command, append_command): Remove.
4663 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4664 (tekhex_dump_command, binary_dump_command)
4665 (binary_append_command): Remove.
4666 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4667 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4668 (init_w32_command_list): Remove; move into ...
4669 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4670 * valprint.c (set_print, show_print, set_print_raw)
4671 (show_print_raw): Remove.
4672 (_initialize_valprint): Use add_basic_prefix_cmd,
4673 add_show_prefix_cmd.
4674 * typeprint.c (set_print_type, show_print_type): Remove.
4675 (_initialize_typeprint): Use add_basic_prefix_cmd,
4676 add_show_prefix_cmd.
4677 * record.c (set_record_command, show_record_command): Remove.
4678 (_initialize_record): Use add_basic_prefix_cmd,
4679 add_show_prefix_cmd.
4680 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4681 add_show_prefix_cmd.
4682 (info_command, show_command, set_debug, show_debug): Remove.
4683 * top.h (set_history, show_history): Don't declare.
4684 * top.c (set_history, show_history): Remove.
4685 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4686 (unset_tdesc_cmd): Remove.
4687 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4688 add_show_prefix_cmd.
4689 * symtab.c (info_module_command): Remove.
4690 (_initialize_symtab): Use add_basic_prefix_cmd.
4691 * symfile.c (overlay_command): Remove.
4692 (_initialize_symfile): Use add_basic_prefix_cmd.
4693 * sparc64-tdep.c (info_adi_command): Remove.
4694 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4695 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4696 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4697 add_show_prefix_cmd.
4698 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4699 (_initialize_serial): Use add_basic_prefix_cmd,
4700 add_show_prefix_cmd.
4701 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4702 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4703 add_show_prefix_cmd.
4704 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4705 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4706 add_show_prefix_cmd.
4707 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4708 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4709 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4710 add_show_prefix_cmd.
4711 * remote.c (remote_command, set_remote_cmd): Remove.
4712 (_initialize_remote): Use add_basic_prefix_cmd.
4713 * record-full.c (set_record_full_command)
4714 (show_record_full_command): Remove.
4715 (_initialize_record_full): Use add_basic_prefix_cmd,
4716 add_show_prefix_cmd.
4717 * record-btrace.c (cmd_set_record_btrace)
4718 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4719 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4720 (cmd_show_record_btrace_pt): Remove.
4721 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4722 add_show_prefix_cmd.
4723 * ravenscar-thread.c (set_ravenscar_command)
4724 (show_ravenscar_command): Remove.
4725 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4726 add_show_prefix_cmd.
4727 * mips-tdep.c (show_mips_command, set_mips_command)
4728 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4729 add_show_prefix_cmd.
4730 * maint.c (maintenance_command, maintenance_info_command)
4731 (maintenance_check_command, maintenance_print_command)
4732 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4733 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4734 add_show_prefix_cmd.
4735 (show_per_command_cmd): Remove.
4736 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4737 Remove.
4738 (maintenance_show_test_settings_cmd): Remove.
4739 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4740 add_show_prefix_cmd.
4741 * maint-test-options.c (maintenance_test_options_command):
4742 Remove.
4743 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4744 * macrocmd.c (macro_command): Remove
4745 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4746 * language.c (set_check, show_check): Remove.
4747 (_initialize_language): Use add_basic_prefix_cmd,
4748 add_show_prefix_cmd.
4749 * infcmd.c (unset_command): Remove.
4750 (_initialize_infcmd): Use add_basic_prefix_cmd.
4751 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4752 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4753 add_show_prefix_cmd.
4754 * go32-nat.c (go32_info_dos_command): Remove.
4755 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4756 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4757 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4758 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4759 (_initialize_frame): Use add_basic_prefix_cmd,
4760 add_show_prefix_cmd.
4761 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4762 (_initialize_dcache): Use add_basic_prefix_cmd,
4763 add_show_prefix_cmd.
4764 * cp-support.c (maint_cplus_command): Remove.
4765 (_initialize_cp_support): Use add_basic_prefix_cmd.
4766 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4767 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4768 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4769 add_basic_prefix_cmd, add_show_prefix_cmd.
4770 * breakpoint.c (save_command): Remove.
4771 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4772 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4773 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4774 add_show_prefix_cmd.
4775 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4776 (set_ada_command, show_ada_command): Remove.
4777 (_initialize_ada_language): Use add_basic_prefix_cmd,
4778 add_show_prefix_cmd.
4779 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4780
3557f442
KR
47812020-04-16 Kamil Rytarowski <n54@gmx.com>
4782
4783 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4784 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4785
16197208
SM
47862020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4787
4788 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4789 warning messages.
4790
00ac85d3
SM
47912020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4792
4793 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4794 import table is not at beginning of .idata section.
4795
381ce63f
PA
47962020-04-16 Pedro Alves <palves@redhat.com>
4797
4798 * inferior.c (delete_inferior): Use delete operator directly
4799 instead of delete_program_space.
4800 * progspace.c (add_program_space): New, factored out from
4801 program_space::program_space.
4802 (remove_program_space): New, factored out from
4803 delete_program_space.
4804 (program_space::program_space): Remove intro comment. Rewrite.
4805 (program_space::~program_space): Remove intro comment. Call
4806 remove_program_space.
4807 (delete_program_space): Delete.
4808 * progspace.h (program_space::program_space): Make explicit. Move
4809 intro comment here, adjusted.
4810 (program_space::~program_space): Move intro comment here,
4811 adjusted.
4812 (delete_program_space): Remove.
4813
a010605f
TT
48142020-04-16 Tom Tromey <tromey@adacore.com>
4815
4816 * windows-nat.c (windows_nat::handle_access_violation): New
4817 function.
4818 * nat/windows-nat.h (handle_access_violation): Declare.
4819 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4820 windows-nat.c. Call handle_access_violation.
4821
efba5c23
TV
48222020-04-16 Tom de Vries <tdevries@suse.de>
4823
4824 PR symtab/25791
4825 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4826 CUs without psymtab.
4827
97ed802d
KB
48282020-04-16 Kevin Buettner <kevinb@redhat.com>
4829
4830 * python/python.c (do_start_initialization): Don't call
4831 PyEval_InitThreads for Python 3.9 and beyond.
4832
c7d64809
KR
48332020-04-15 Kamil Rytarowski <n54@gmx.com>
4834
4835 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4836 thread functions.
4837 (obsd_nat_target::wait): Likewise.
4838
ce127a96
TT
48392020-04-15 Tom Tromey <tromey@adacore.com>
4840
4841 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4842 (DEBUG_EXCEPT): Use debug_printf.
4843
99f1bc6a
AB
48442020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4845
4846 * completer.c (class completion_tracker::completion_hash_entry)
4847 <hash_name>: New member function.
4848 (completion_tracker::discard_completions): New callback to hash a
4849 completion_hash_entry, pass this to htab_create_alloc.
4850
a0e9b532
JT
48512016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4852
4853 * windows-nat.c (windows_make_so): Warn rather than stopping with
4854 an error if realpath() fails.
4855
06ca5dd4
KR
48562020-04-14 Kamil Rytarowski <n54@gmx.com>
4857
4858 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4859 (nbsd_nat_target::info_proc): Add do_status.
4860
194d088f
TV
48612020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4862 Tom de Vries <tdevries@suse.de>
4863
4864 PR symtab/25718
4865 * psympriv.h (struct partial_symtab::read_symtab)
4866 (struct partial_symtab::expand_psymtab)
4867 (struct partial_symtab::read_dependencies): Update comments.
4868 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4869 read_symtab for includer.
4870 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4871 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4872 (struct dwarf2_include_psymtab::m_readin): Remove.
4873 (struct dwarf2_include_psymtab::includer): New member function.
4874 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4875
c1a66c06
TV
48762020-04-14 Tom de Vries <tdevries@suse.de>
4877
4878 PR symtab/25720
4879 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4880 with NULL symbol_matcher and lookup_name.
4881 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4882 and lookup_name.
4883 * dwarf2/read.c (dw2_expand_symtabs_matching)
4884 (dw2_debug_names_expand_symtabs_matching): Same.
4885 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4886 Make lookup_name a pointer. Update comment.
4887 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4888 lookup_name being a pointer.
4889 * symfile.c (expand_symtabs_matching): Same.
4890 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4891 * linespec.c (iterate_over_all_matching_symtabs): Same.
4892
400b5eca
TT
48932020-04-13 Tom Tromey <tom@tromey.com>
4894
4895 * run-on-main-thread.c: Update include.
4896 * unittests/main-thread-selftests.c: Update include.
4897 * tui/tui-win.c: Update include.
4898 * tui/tui-io.c: Update include.
4899 * tui/tui-interp.c: Update include.
4900 * tui/tui-hooks.c: Update include.
4901 * top.h: Update include.
4902 * top.c: Update include.
4903 * ser-base.c: Update include.
4904 * remote.c: Update include.
4905 * remote-notif.c: Update include.
4906 * remote-fileio.c: Update include.
4907 * record-full.c: Update include.
4908 * record-btrace.c: Update include.
4909 * python/python.c: Update include.
4910 * posix-hdep.c: Update include.
4911 * mingw-hdep.c: Update include.
4912 * mi/mi-main.c: Update include.
4913 * mi/mi-interp.c: Update include.
4914 * main.c: Update include.
4915 * linux-nat.c: Update include.
4916 * interps.c: Update include.
4917 * infrun.c: Update include.
4918 * inf-loop.c: Update include.
4919 * event-top.c: Update include.
4920 * event-loop.c: Move to ../gdbsupport/.
4921 * event-loop.h: Move to ../gdbsupport/.
4922 * async-event.h: Update include.
4923 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4924
93b54c8e
TT
49252020-04-13 Tom Tromey <tom@tromey.com>
4926
4927 * tui/tui-win.c: Include async-event.h.
4928 * remote.c: Include async-event.h.
4929 * remote-notif.c: Include async-event.h.
4930 * record-full.c: Include async-event.h.
4931 * record-btrace.c: Include async-event.h.
4932 * infrun.c: Include async-event.h.
4933 * event-top.c: Include async-event.h.
4934 * event-loop.h: Move some declarations to async-event.h.
4935 * event-loop.c: Don't include ser-event.h or top.h. Move some
4936 code to async-event.c.
4937 * async-event.h: New file.
4938 * async-event.c: New file.
4939 * Makefile.in (COMMON_SFILES): Add async-event.c.
4940 (HFILES_NO_SRCDIR): Add async-event.h.
4941
c1cd3163
TT
49422020-04-13 Tom Tromey <tom@tromey.com>
4943
4944 * utils.c (flush_streams): New function.
4945 * event-loop.c (gdb_wait_for_event): Call flush_streams.
4946
29f2bf4f
TT
49472020-04-13 Tom Tromey <tom@tromey.com>
4948
4949 * event-loop.c (handle_file_event): Use warning, not
4950 printf_unfiltered.
4951
98029d02
TT
49522020-04-13 Tom Tromey <tom@tromey.com>
4953
4954 * event-loop.c: Include <chrono>.
4955
06cc9596
TT
49562020-04-13 Tom Tromey <tom@tromey.com>
4957
4958 * gdb_select.h: Move to ../gdbsupport/.
4959 * event-loop.c: Update include path.
4960 * top.c: Update include path.
4961 * ser-base.c: Update include path.
4962 * ui-file.c: Update include path.
4963 * ser-tcp.c: Update include path.
4964 * guile/scm-ports.c: Update include path.
4965 * posix-hdep.c: Update include path.
4966 * ser-unix.c: Update include path.
4967 * gdb_usleep.c: Update include path.
4968 * mingw-hdep.c: Update include path.
4969 * inflow.c: Update include path.
4970 * infrun.c: Update include path.
4971 * event-top.c: Update include path.
4972
8ae8e197
TT
49732020-04-13 Tom Tromey <tom@tromey.com>
4974
4975 * configure: Rebuild.
4976 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
4977
58cf28e8
TT
49782020-04-13 Tom Tromey <tom@tromey.com>
4979
4980 * event-loop.h (start_event_loop): Don't declare.
4981 * event-loop.c (start_event_loop): Move...
4982 * main.c (start_event_loop): ...here. Now static.
4983
b7f999ae
SDJ
49842020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
4985
4986 * MAINTAINERS: Update my email address.
4987
1085dfd4
KR
49882020-04-12 Kamil Rytarowski <n54@gmx.com>
4989
4990 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
4991 IP_ALL.
4992
49d1d1f5
KR
49932020-04-12 Kamil Rytarowski <n54@gmx.com>
4994
4995 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 4996 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 4997
b4848d2a
KR
49982020-04-12 Kamil Rytarowski <n54@gmx.com>
4999
5000 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5001 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5002
51c133d5
KR
50032020-04-12 Kamil Rytarowski <n54@gmx.com>
5004
5005 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5006
54b8cbd0
KR
50072020-04-11 Kamil Rytarowski <n54@gmx.com>
5008
5009 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5010 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5011 (nbsd_nat_target::info_proc): New functions.
5012 * nbsd-nat.c (kinfo_get_vmmap): New function.
5013 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5014 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5015 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5016 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5017 functions.
5018 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5019 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5020 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5021 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5022 (KINFO_VME_FLAG_GROWS_DOWN): New.
5023
cf83625d
AS
50242020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5025
5026 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5027 bit shift.
5028
0c4311ab
TT
50292020-04-10 Tom Tromey <tromey@adacore.com>
5030
5031 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5032
3e65b3e9
TT
50332020-04-10 Tom Tromey <tromey@adacore.com>
5034
5035 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5036 separate debug files.
5037
13302e95
HD
50382020-04-10 Hannes Domani <ssbssa@yahoo.de>
5039
5040 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5041 Move to...
5042 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5043 ... here.
5044 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5045 Check for STATUS_WX86_BREAKPOINT.
5046 (windows_nat_target::wait): Same.
5047
bdfc1e8a
TV
50482020-04-10 Tom de Vries <tdevries@suse.de>
5049
5050 PR cli/25808
5051 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5052
f4460aec
SM
50532020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5054
5055 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5056 (Write After Approval): Remove Tom de Vries.
5057
a25198bb
BE
50582020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5059
5060 revert partially:
5061 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5062
aac66a4c
SM
5063 * buildsym.c (record_line): Fix undefined behavior and preserve
5064 lines at eof.
a25198bb 5065
206c98a6
KR
50662020-04-09 Kamil Rytarowski <n54@gmx.com>
5067
5068 * auxv.h (svr4_auxv_parse): New.
5069 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5070 and generic_auxv_parse.
5071 (svr4_auxv_parse): Add.
5072 * obsd-tdep.c: Include "auxv.h".
5073 (obsd_auxv_parse): Remove.
5074 (obsd_init_abi): Remove comment.
5075 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5076 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5077 * nbsd-tdep.c: Include "auxv.h".
5078 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5079
71fbdbaf
TT
50802020-04-08 Tom Tromey <tromey@adacore.com>
5081
5082 * nat/windows-nat.h (last_wait_event): Don't declare.
5083 (wait_for_debug_event): Update comment.
5084 * nat/windows-nat.c (last_wait_event): Now static.
5085
2c1d95e8
TT
50862020-04-08 Tom Tromey <tromey@adacore.com>
5087
5088 * windows-nat.c (wait_for_debug_event): Move to
5089 nat/windows-nat.c.
5090 * nat/windows-nat.h (wait_for_debug_event): Declare.
5091 * nat/windows-nat.c (wait_for_debug_event): Move from
5092 windows-nat.c. No longer static.
5093
d2977bc4
TT
50942020-04-08 Tom Tromey <tromey@adacore.com>
5095
5096 * windows-nat.c (get_windows_debug_event): Use
5097 fetch_pending_stop.
5098 * nat/windows-nat.h (fetch_pending_stop): Declare.
5099 * nat/windows-nat.c (fetch_pending_stop): New function.
5100
e758e19c
TT
51012020-04-08 Tom Tromey <tromey@adacore.com>
5102
5103 * windows-nat.c (windows_continue): Use matching_pending_stop and
5104 continue_last_debug_event.
5105 * nat/windows-nat.h (matching_pending_stop)
5106 (continue_last_debug_event): Declare.
5107 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5108 (matching_pending_stop, continue_last_debug_event): New
5109 functions.
5110
8d30e395
TT
51112020-04-08 Tom Tromey <tromey@adacore.com>
5112
5113 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5114 (handle_exception_result): Move to nat/windows-nat.h.
5115 (DEBUG_EXCEPTION_SIMPLE): Remove.
5116 (windows_nat::handle_ms_vc_exception): New function.
5117 (handle_exception): Move to nat/windows-nat.c.
5118 (get_windows_debug_event): Update.
5119 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5120 nat/windows-nat.c.
5121 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5122 (handle_exception_result): Move from windows-nat.c.
5123 (handle_exception): Declare.
5124 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5125 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5126 windows-nat.c.
5127
29de418d
TT
51282020-04-08 Tom Tromey <tromey@adacore.com>
5129
5130 * windows-nat.c (exception_count, event_count): Remove.
5131 (handle_exception, get_windows_debug_event)
5132 (do_initial_windows_stuff): Update.
5133
a816ba18
TT
51342020-04-08 Tom Tromey <tromey@adacore.com>
5135
5136 * windows-nat.c (windows_nat::handle_load_dll)
5137 (windows_nat::handle_unload_dll): Rename. No longer static.
5138 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5139 Declare.
5140
a00caa12
TT
51412020-04-08 Tom Tromey <tromey@adacore.com>
5142
5143 * complaints.h (stop_whining): Declare at top-level.
5144 (complaint): Don't declare stop_whining.
5145
d41b524f
TT
51462020-04-08 Tom Tromey <tromey@adacore.com>
5147
5148 * windows-nat.c (windows_nat::handle_output_debug_string):
5149 Rename. No longer static.
5150 * nat/windows-nat.h (handle_output_debug_string): Declare.
5151
3c76026d
TT
51522020-04-08 Tom Tromey <tromey@adacore.com>
5153
5154 * windows-nat.c (current_process_handle, current_process_id)
5155 (main_thread_id, last_sig, current_event, last_wait_event)
5156 (current_windows_thread, desired_stop_thread_id, pending_stops)
5157 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5158 (display_selectors, fake_create_process)
5159 (get_windows_debug_event): Update.
5160 * nat/windows-nat.h (current_process_handle, current_process_id)
5161 (main_thread_id, last_sig, current_event, last_wait_event)
5162 (current_windows_thread, desired_stop_thread_id, pending_stops)
5163 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5164 * nat/windows-nat.c (current_process_handle, current_process_id)
5165 (main_thread_id, last_sig, current_event, last_wait_event)
5166 (current_windows_thread, desired_stop_thread_id, pending_stops)
5167 (siginfo_er): New globals. Move from windows-nat.c.
5168
9d8679cc
TT
51692020-04-08 Tom Tromey <tromey@adacore.com>
5170
5171 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5172 (handle_load_dll): Update.
5173 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5174
28688adf
TT
51752020-04-08 Tom Tromey <tromey@adacore.com>
5176
5177 * windows-nat.c (enum thread_disposition_type): Move to
5178 nat/windows-nat.h.
5179 (windows_nat::thread_rec): Rename from thread_rec. No longer
5180 static.
5181 (windows_add_thread, windows_nat_target::fetch_registers)
5182 (windows_nat_target::store_registers, handle_exception)
5183 (windows_nat_target::resume, get_windows_debug_event)
5184 (windows_nat_target::get_tib_address)
5185 (windows_nat_target::thread_name)
5186 (windows_nat_target::thread_alive): Update.
5187 * nat/windows-nat.h (enum thread_disposition_type): Move from
5188 windows-nat.c.
5189 (thread_rec): Declare.
5190
4834dad0
TT
51912020-04-08 Tom Tromey <tromey@adacore.com>
5192
5193 * windows-nat.c: Add "using namespace".
5194 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5195 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5196
65bafd5b
TT
51972020-04-08 Tom Tromey <tromey@adacore.com>
5198
5199 * nat/windows-nat.h (struct windows_thread_info): Declare
5200 destructor.
5201 * nat/windows-nat.c (~windows_thread_info): New.
5202
0a4afda3
TT
52032020-04-08 Tom Tromey <tromey@adacore.com>
5204
5205 PR gdb/22992
5206 * windows-nat.c (current_event): Update comment.
5207 (last_wait_event, desired_stop_thread_id): New globals.
5208 (struct pending_stop): New.
5209 (pending_stops): New global.
5210 (windows_nat_target) <stopped_by_sw_breakpoint>
5211 <supports_stopped_by_sw_breakpoint>: New methods.
5212 (windows_fetch_one_register): Add assertions. Adjust PC.
5213 (windows_continue): Handle pending stops. Suspend other threads
5214 when stepping. Use last_wait_event
5215 (wait_for_debug_event): New function.
5216 (get_windows_debug_event): Use wait_for_debug_event. Handle
5217 pending stops. Queue spurious stops.
5218 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5219 (windows_nat_target::kill): Use wait_for_debug_event.
5220 * nat/windows-nat.h (struct windows_thread_info)
5221 <stopped_at_software_breakpoint>: New field.
5222 * nat/windows-nat.c (windows_thread_info::resume): Clear
5223 stopped_at_software_breakpoint.
5224
8e61ebec
TT
52252020-04-08 Tom Tromey <tromey@adacore.com>
5226
5227 * windows-nat.c (enum thread_disposition_type): New.
5228 (thread_rec): Replace "get_context" parameter with "disposition";
5229 change type.
5230 (windows_add_thread, windows_nat_target::fetch_registers)
5231 (windows_nat_target::store_registers, handle_exception)
5232 (windows_nat_target::resume, get_windows_debug_event)
5233 (windows_nat_target::get_tib_address)
5234 (windows_nat_target::thread_name)
5235 (windows_nat_target::thread_alive): Update.
5236
98a03287
TT
52372020-04-08 Tom Tromey <tromey@adacore.com>
5238
5239 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5240 (windows_continue): Use windows_continue::resume.
5241 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5242 resume>: Declare new methods.
5243 * nat/windows-nat.c: New file.
5244 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5245
7c7411bc
TT
52462020-04-08 Tom Tromey <tromey@adacore.com>
5247
5248 * windows-nat.c (windows_add_thread, windows_delete_thread)
5249 (windows_nat_target::fetch_registers)
5250 (windows_nat_target::store_registers, fake_create_process)
5251 (windows_nat_target::resume, windows_nat_target::resume)
5252 (get_windows_debug_event, windows_nat_target::wait)
5253 (windows_nat_target::pid_to_str)
5254 (windows_nat_target::get_tib_address)
5255 (windows_nat_target::get_ada_task_ptid)
5256 (windows_nat_target::thread_name)
5257 (windows_nat_target::thread_alive): Use lwp, not tid.
5258
2950fdf7
TT
52592020-04-08 Tom Tromey <tromey@adacore.com>
5260
5261 * windows-nat.c (handle_exception)
5262 (windows_nat_target::thread_name): Update.
5263 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5264 <name>: Now unique_xmalloc_ptr.
5265
62fe396b
TT
52662020-04-08 Tom Tromey <tromey@adacore.com>
5267
5268 * windows-nat.c (thread_rec)
5269 (windows_nat_target::fetch_registers): Update.
5270 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5271 Update comment.
5272 <debug_registers_changed, reload_context>: Now bool.
5273
e9534bd2
TT
52742020-04-08 Tom Tromey <tromey@adacore.com>
5275
5276 * windows-nat.c (windows_add_thread): Use new.
5277 (windows_init_thread_list, windows_delete_thread): Use delete.
5278 (get_windows_debug_event): Update.
5279 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5280 destructor, and initializers.
5281
ae1f8880
TT
52822020-04-08 Tom Tromey <tromey@adacore.com>
5283
5284 * windows-nat.c (struct windows_thread_info): Remove.
5285 * nat/windows-nat.h: New file.
5286
55a1e039
TT
52872020-04-08 Tom Tromey <tromey@adacore.com>
5288
5289 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5290 (thread_rec, windows_add_thread, windows_delete_thread)
5291 (windows_continue): Update.
5292
93366324
TT
52932020-04-08 Tom Tromey <tromey@adacore.com>
5294
5295 * windows-nat.c (struct windows_thread_info): Remove typedef.
5296 (thread_head): Remove.
5297 (thread_list): New global.
5298 (thread_rec, windows_add_thread, windows_init_thread_list)
5299 (windows_delete_thread, windows_continue): Update.
5300
0f2265e2
SM
53012020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5302
5303 * windows-tdep.h (windows_init_abi): Add comment.
5304 (cygwin_init_abi): New declaration.
5305 * windows-tdep.c: Split signal enumeration in two, one for
5306 Windows and one for Cygwin.
5307 (windows_gdb_signal_to_target): Only deal with signal of the
5308 Windows OS ABI.
5309 (cygwin_gdb_signal_to_target): New function.
5310 (windows_init_abi): Rename to windows_init_abi_common, don't set
5311 gdb_signal_to_target gdbarch method. Add new new function with
5312 this name.
5313 (cygwin_init_abi): New function.
5314 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5315 comment. Don't call windows_init_abi.
5316 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5317 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5318 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5319 i386_windows_init_abi_common, don't call windows_init_abi. Add
5320 a new function of this name.
5321 (i386_cygwin_init_abi): New function.
5322 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5323 OS ABI Cygwin.
5324
3810f182
SM
53252020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5326
5327 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5328 parameter.c.
5329 (dwarf2_read_gdb_index): Update.
5330
063f8e80
KR
53312020-04-07 Kamil Rytarowski <n54@gmx.com>
5332
5333 * nbsd-tdep.c: Include "objfiles.h".
5334 (nbsd_skip_solib_resolver): New.
5335 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5336
85a9510c 53372020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5338
5339 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5340 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5341 with DW_LLE_base_addressx are being emitted in DWARFv5.
5342 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5343 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5344 unsigned integer.
5345
9fc3eaae 53462020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5347
5348 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5349 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5350 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5351 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5352 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5353 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5354 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5355
5356
41144253 53572020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5358
5359 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5360 (read_loclist_index): New function definition.
5361 (lookup_loclist_base): New function definition.
5362 (read_loclist_header): New function definition.
5363 (dwarf2_cu): Add loclist_base and loclist_header field.
5364 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5365 (read_full_die_1): Read the value of DW_AT_loclists_base.
5366 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5367 (read_attribute_value): Handle DW_FORM_loclistx.
5368 (skip_one_die): Handle DW_FORM_loclistx.
5369 (loclist_header): New structure declaration.
5370 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5371
9f4e76a4
SM
53722020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5373
5374 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5375 constructor. Remove `addr` parameter from other constructor and
5376 add `per_cu` parameter.
5377 * dwarf2/read.c (create_partial_symtab): Update.
5378
25c11aca
TV
53792020-04-07 Tom de Vries <tdevries@suse.de>
5380
5381 PR symtab/25796
5382 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5383 (partial_die_info::fixup): Inherit has_const_value.
5384
5707e24b
TV
53852020-04-07 Tom de Vries <tdevries@suse.de>
5386
5387 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5388 symbols without address.
5389
05f00e22
KR
53902020-04-06 Kamil Rytarowski <n54@gmx.com>
5391
5392 * nbsd-nat.h (struct thread_info): Add forward declaration.
5393 (nbsd_nat_target::thread_alive): Add.
5394 (nbsd_nat_target::thread_name): Likewise.
5395 (nbsd_nat_target::update_thread_list): Likewise.
5396 (update_thread_list::post_attach): Likewise.
5397 (post_attach::pid_to_str): Likewise.
5398 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5399 (nbsd_thread_lister): Add.
5400 (nbsd_nat_target::thread_alive): Likewise.
5401 (nbsd_nat_target::thread_name): Likewise.
5402 (nbsd_add_threads): Likewise.
5403 (update_thread_list::post_attach): Likewise.
5404 (nbsd_nat_target::update_thread_list): Likewise.
5405 (post_attach::pid_to_str): Likewise.
5406
6ee448cc
TT
54072020-04-06 Tom Tromey <tromey@adacore.com>
5408
5409 * ada-valprint.c (print_variant_part): Extract the variant field.
5410 (print_field_values): Use the field as the outer value when
5411 recursing.
5412
dea34e8c
TT
54132020-04-06 Tom Tromey <tromey@adacore.com>
5414
5415 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5416 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5417 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5418 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5419 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5420
93689ce9
TT
54212020-04-06 Tom Tromey <tromey@adacore.com>
5422
5423 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5424 TYPE_CODE_ERROR.
5425
79743962
KR
54262020-04-06 Kamil Rytarowski <n54@gmx.com>
5427
5428 * nbsd-tdep.c: Include "gdbarch.h".
5429 Define enum with NetBSD signal numbers.
5430 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5431 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5432 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5433 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5434 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5435 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5436 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5437 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5438 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5439 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5440 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5441 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5442
9e7c9a03
HD
54432020-04-03 Hannes Domani <ssbssa@yahoo.de>
5444
5445 PR gdb/25325
5446 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5447
d9e49b61
TT
54482020-04-03 Tom Tromey <tromey@adacore.com>
5449
5450 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5451 Read constant block.
5452
e0fc5c3f
SM
54532020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5454
5455 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5456 (gdb_bfd_get_full_section_contents): New declaration.
5457 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5458 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5459 gdb_bfd_get_full_section_contents.
5460
e2ff18a0
SM
54612020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5462
5463 * exec.c (build_section_table): Replace internal_error with
5464 gdb_assert.
5465 (section_table_xfer_memory_partial): Likewise.
5466 * mdebugread.c (parse_partial_symbols): Likewise.
5467 * psymtab.c (lookup_partial_symbol): Likewise.
5468 * utils.c (wrap_here): Likewise.
5469
0830d301
TT
54702020-04-02 Tom Tromey <tromey@adacore.com>
5471
5472 * f-lang.c (build_fortran_types): Use arch_type to initialize
5473 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5474
e7da7f8f
TT
54752020-04-02 Tom Tromey <tromey@adacore.com>
5476
5477 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5478 of attributes.
5479
c90d28ac
AB
54802020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5481 Bernd Edlinger <bernd.edlinger@hotmail.de>
5482 Tom Tromey <tromey@adacore.com>
5483
5484 * buildsym.c (buildsym_compunit::record_line): Remove
5485 deduplication code.
5486
1aa98955
TV
54872020-04-02 Tom de Vries <tdevries@suse.de>
5488
5489 PR ada/24671
5490 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5491
d3214198
TV
54922020-04-02 Tom de Vries <tdevries@suse.de>
5493
5494 * dwarf2/read.c (dwarf2_gdb_index_functions,
5495 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5496 NULL.
5497 * psymtab.c (psym_lookup_global_symbol_language): New function.
5498 (psym_functions): Init psym_lookup_global_symbol_language with
5499 psym_lookup_global_symbol_language.
5500 * symfile-debug.c (debug_sym_quick_functions): Init
5501 lookup_global_symbol_language with NULL.
5502 * symfile.c (set_initial_language): Remove fixme comment.
5503 * symfile.h (struct quick_symbol_functions): Add
5504 lookup_global_symbol_language.
5505 * symtab.c (find_quick_global_symbol_language): New function.
5506 (find_main_name): Use find_quick_global_symbol_language.
5507
2836752f
SM
55082020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5509
5510 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5511
64dc2d4b
BE
55122020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5513
5514 * buildsym.c (record_line): Fix undefined behavior and preserve
5515 lines at eof.
5516
bbe3dc41
BE
55172020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5518
5519 * buildsym.c (record_line): Fix the resizing condition.
5520
6b4a335b
TT
55212020-04-01 Tom Tromey <tom@tromey.com>
5522
5523 * value.h (value_literal_complex): Add comment.
5524 * valops.c (value_literal_complex): Refer to value.h.
5525
3638a098
TT
55262020-04-01 Tom Tromey <tom@tromey.com>
5527
5528 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5529 (scalar_type): New rule, from typebase.
5530 (typebase): Use scalar_type. Recognize complex types.
5531 (field_name): Handle FLOAT_KEYWORD.
5532 (ident_tokens): Add _Complex and __complex__.
5533
c34e8714
TT
55342020-04-01 Tom Tromey <tom@tromey.com>
5535
5536 PR exp/25299:
5537 * valarith.c (promotion_type, complex_binop): New functions.
5538 (scalar_binop): Handle complex numbers. Use promotion_type.
5539 (value_pos, value_neg, value_complement): Handle complex numbers.
5540
fa649bb7
TT
55412020-04-01 Tom Tromey <tom@tromey.com>
5542
5543 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5544 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5545 (parse_number): Handle complex numbers.
5546
981c08ce
TT
55472020-04-01 Tom Tromey <tom@tromey.com>
5548
5549 * c-valprint.c (c_decorations): Change complex suffix to "i".
5550
4c99290d
TT
55512020-04-01 Tom Tromey <tom@tromey.com>
5552
5553 * valprint.c (generic_value_print_complex): Use accessors.
5554 * value.h (value_real_part, value_imaginary_part): Declare.
5555 * valops.c (value_real_part, value_imaginary_part): New
5556 functions.
5557 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5558
5b930b45
TT
55592020-04-01 Tom Tromey <tom@tromey.com>
5560
5561 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5562 (read_range_type): Update.
5563 * mdebugread.c (basic_type): Update.
5564 * go-lang.c (build_go_types): Use init_complex_type.
5565 * gdbtypes.h (struct main_type) <complex_type>: New member.
5566 (init_complex_type): Update.
5567 (arch_complex_type): Don't declare.
5568 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5569 Make name if none given. Use alloc_type_copy. Look for cached
5570 complex type.
5571 (arch_complex_type): Remove.
5572 (gdbtypes_post_init): Use init_complex_type.
5573 * f-lang.c (build_fortran_types): Use init_complex_type.
5574 * dwarf2/read.c (read_base_type): Update.
5575 * d-lang.c (build_d_types): Use init_complex_type.
5576 * ctfread.c (read_base_type): Update.
5577
53cccef1
TBA
55782020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5579
5580 * infrun.c (stop_all_threads): Update assertion, plus when
5581 stopping threads, take into account that we might be trying
5582 to stop an all-stop target.
5583 (stop_waiting): Call 'stop_all_threads' if there exists a
5584 non-stop target.
5585
a0714d30
TBA
55862020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5587
5588 * target.h (exists_non_stop_target): New function declaration.
5589 * target.c (exists_non_stop_target): New function.
5590
60e22c1e
HD
55912020-04-01 Hannes Domani <ssbssa@yahoo.de>
5592
5593 PR gdb/24789
5594 * eval.c (is_integral_or_integral_reference): New function.
5595 (evaluate_subexp_standard): Allow integer references in
5596 pointer arithmetic.
5597
e139a727
TBA
55982020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5599
5600 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5601 check for no ptid in the stop reply when the target is non-stop.
5602
e0802d59
TT
56032020-04-01 Tom Tromey <tromey@adacore.com>
5604
5605 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5606 "name" parameter to rvalue reference. Initialize m_name_holder.
5607 <lookup_name_info>: New overloads.
5608 <name>: Return gdb::string_view.
5609 <c_str>: New method.
5610 <make_ignore_params>: Update.
5611 <search_name_hash>: Update.
5612 <language_lookup_name>: Return const char *.
5613 <m_name>: Change type.
5614 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5615 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5616 (lookup_name_info::match_any): Update.
5617 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5618 Update.
5619 * minsyms.c (linkage_name_str): Update.
5620 * language.c (default_symbol_name_matcher): Update.
5621 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5622 Update.
5623 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5624 (ada_lookup_name_info::ada_lookup_name_info): Update.
5625 (literal_symbol_name_matcher): Update.
5626
8c072cb6
TT
56272020-04-01 Tom Tromey <tromey@adacore.com>
5628
5629 * psymtab.c (psymtab_search_name): Remove function.
5630 (psym_lookup_symbol): Create search name and lookup name here.
5631 (lookup_partial_symbol): Remove "name" parameter; add
5632 lookup_name.
5633 (psym_expand_symtabs_for_function): Update.
5634
6f29a534
TT
56352020-03-31 Joel Jones <joelkevinjones@gmail.com>
5636
5637 PR tui/25597:
5638 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5639
af62665e
TT
56402020-03-31 Tom Tromey <tromey@adacore.com>
5641
5642 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5643 memcpy.
5644
d1a89da5
NC
56452020-03-30 Nelson Chu <nelson.chu@sifive.com>
5646
5647 * features/riscv/32bit-csr.xml: Regenerated.
5648 * features/riscv/64bit-csr.xml: Regenerated.
5649
d8af9068
TT
56502020-03-30 Tom Tromey <tromey@adacore.com>
5651
5652 * ada-valprint.c (print_variant_part): Update.
5653 * ada-lang.h (ada_which_variant_applies): Update.
5654 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5655 outer_valaddr parameters; replace with "outer" value parameter.
5656 (to_fixed_variant_branch_type): Update.
5657
227c0bf4
PFC
56582020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5659
5660 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5661 <list>. Remove inclusion of observable.h.
5662 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5663 (struct arch_lwp_info): New struct.
5664 (class ppc_linux_dreg_interface): New class.
5665 (struct ppc_linux_process_info): New struct.
5666 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5667 <low_new_clone, low_forget_process, low_prepare_to_resume>
5668 <copy_thread_dreg_state, mark_thread_stale>
5669 <mark_debug_registers_changed, register_hw_breakpoint>
5670 <clear_hw_breakpoint, register_wp, clear_wp>
5671 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5672 <num_memory_accesses, get_trigger_type>
5673 <create_watchpoint_request, hwdebug_point_cmp>
5674 <init_arch_lwp_info, get_arch_lwp_info>
5675 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5676 methods.
5677 <struct ptid_hash>: New inner struct.
5678 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5679 members.
5680 (saved_dabr_value, hwdebug_info, max_slots_number)
5681 (struct hw_break_tuple, struct thread_points, ppc_threads)
5682 (have_ptrace_hwdebug_interface)
5683 (hwdebug_find_thread_points_by_tid)
5684 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5685 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5686 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5687 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5688 use m_dreg_interface.
5689 (hwdebug_point_cmp): Change to...
5690 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5691 reference arguments instead of pointers.
5692 (ppc_linux_nat_target::ranged_break_num_registers): Use
5693 m_dreg_interface.
5694 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5695 m_dreg_interface. Call register_hw_breakpoint.
5696 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5697 m_dreg_interface. Call clear_hw_breakpoint.
5698 (get_trigger_type): Change to...
5699 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5700 comment.
5701 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5702 use m_dreg_interface. Call register_hw_breakpoint.
5703 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5704 use m_dreg_interface. Call clear_hw_breakpoint.
5705 (can_use_watchpoint_cond_accel): Change to...
5706 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5707 method. Update comment, use m_dreg_interface and
5708 m_process_info.
5709 (calculate_dvc): Change to...
5710 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5711 m_dreg_interface.
5712 (num_memory_accesses): Change to...
5713 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5714 (check_condition): Change to...
5715 (ppc_linux_nat_target::check_condition): ...this method.
5716 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5717 comment, use m_dreg_interface.
5718 (create_watchpoint_request): Change to...
5719 (ppc_linux_nat_target::create_watchpoint_request): ...this
5720 method. Use m_dreg_interface.
5721 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5722 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5723 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5724 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5725 (ppc_linux_nat_target::low_forget_process)
5726 (ppc_linux_nat_target::low_new_fork)
5727 (ppc_linux_nat_target::low_new_clone)
5728 (ppc_linux_nat_target::low_delete_thread)
5729 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5730 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5731 only call mark_thread_stale.
5732 (ppc_linux_thread_exit): Remove.
5733 (ppc_linux_nat_target::stopped_data_address): Change to...
5734 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5735 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5736 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5737 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5738 comment. Call low_stopped_data_address.
5739 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5740 m_dreg_interface.
5741 (ppc_linux_nat_target::masked_watch_num_registers): Use
5742 m_dreg_interface.
5743 (ppc_linux_nat_target::copy_thread_dreg_state)
5744 (ppc_linux_nat_target::mark_thread_stale)
5745 (ppc_linux_nat_target::mark_debug_registers_changed)
5746 (ppc_linux_nat_target::register_hw_breakpoint)
5747 (ppc_linux_nat_target::clear_hw_breakpoint)
5748 (ppc_linux_nat_target::register_wp)
5749 (ppc_linux_nat_target::clear_wp)
5750 (ppc_linux_nat_target::init_arch_lwp_info)
5751 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5752 (_initialize_ppc_linux_nat): Remove observer callback.
5753
4db10d8f
PFC
57542020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5755
5756 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5757 (ppc_linux_nat_target::auxv_parse)
5758 (ppc_linux_nat_target::read_description)
5759 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5760 Move up.
5761
1310c1b0
PFC
57622020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5763
5764 * linux-nat.h (low_new_clone): New method.
5765 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5766
69b037c3
SM
57672020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5768
5769 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5770 (dbx_expand_psymtab): ... this.
5771 (start_psymtab): Update.
5772 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5773 (mdebug_expand_psymtab): ... this.
5774 (parse_partial_symbols): Update.
5775 (new_psymtab): Update.
5776 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5777 (xcoff_expand_psymtab): ... this.
5778 (xcoff_start_psymtab): Update.
5779
48993951
SM
57802020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5781
5782 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5783 <expand_dependencies>: ... this.
5784 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5785 (partial_symtab::expand_dependencies): ... this.
5786 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5787 Update.
5788 (dwarf2_psymtab::expand_psymtab): Update.
5789 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5790 * mdebugread.c (psymtab_to_symtab_1): Update.
5791 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5792
3ad83046
SM
57932020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5794
5795 * psympriv.h (discard_psymtab): Remove.
5796 * dbxread.c (dbx_end_psymtab): Update.
5797 * xcoffread.c (xcoff_end_psymtab): Update.
5798
4d1b9ab6
TT
57992020-03-28 Tom Tromey <tom@tromey.com>
5800
5801 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5802 comment.
5803
f1749218
TT
58042020-03-28 Tom Tromey <tom@tromey.com>
5805
5806 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5807
ebea7626
HD
58082020-03-27 Hannes Domani <ssbssa@yahoo.de>
5809
5810 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5811
a879b4d5
JB
58122020-03-26 John Baldwin <jhb@FreeBSD.org>
5813
5814 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5815
0826b30a
TT
58162020-03-26 Tom Tromey <tom@tromey.com>
5817
5818 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5819 (mark_common_block_symbol_computed, read_tag_string_type)
5820 (attr_to_dynamic_prop, read_subrange_type): Update.
5821 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5822 to be methods on struct attribute.
5823 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5824 (read_call_site_scope, partial_die_info::read)
5825 (partial_die_info::read, lookup_die_type, follow_die_ref):
5826 Update.
5827 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5828 from dwarf2_get_ref_die_offset.
5829 (attribute::constant_value): New method, from
5830 dwarf2_get_attr_constant_value.
5831 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5832 Declare method.
5833 <constant_value>: New method.
5834
2b2558bf
TT
58352020-03-26 Tom Tromey <tom@tromey.com>
5836
5837 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5838 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5839 (dwarf_type_encoding_name): Move to stringify.c.
5840 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5841 * dwarf2/stringify.c: New file.
5842 * dwarf2/stringify.h: New file.
5843
eeb64781
TT
58442020-03-26 Tom Tromey <tom@tromey.com>
5845
5846 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5847 Rewrite.
5848
a39fdb41
TT
58492020-03-26 Tom Tromey <tom@tromey.com>
5850
5851 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5852 methods.
5853 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5854 (lookup_ranges_base): Likewise.
5855 (read_cutu_die_from_dwo, read_full_die_1): Update.
5856
436c571c
TT
58572020-03-26 Tom Tromey <tom@tromey.com>
5858
5859 * dwarf2/read.c (read_import_statement, read_file_scope)
5860 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5861 (read_lexical_block_scope, read_call_site_scope)
5862 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5863 (handle_struct_member_die, process_structure_scope)
5864 (update_enumeration_type_from_children)
5865 (process_enumeration_scope, read_array_type, read_common_block)
5866 (read_namespace, read_module, read_subroutine_type): Update.
5867 (sibling_die): Remove.
5868
052c8bb8
TT
58692020-03-26 Tom Tromey <tom@tromey.com>
5870
5871 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5872 (build_type_psymtabs_reader, read_structure_type)
5873 (read_enumeration_type, read_full_die_1): Update.
5874 (dwarf2_attr_no_follow): Move to die.h.
5875 * dwarf2/die.h (struct die_info) <attr>: New method.
5876
2b24b6e4
TT
58772020-03-26 Tom Tromey <tom@tromey.com>
5878
5879 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5880 <base_address>: Now an optional.
5881 (dwarf2_find_base_address, dwarf2_rnglists_process)
5882 (dwarf2_ranges_process, fill_in_loclist_baton)
5883 (dwarf2_symbol_mark_computed): Update.
5884
c2d50fd0
TT
58852020-03-26 Tom Tromey <tom@tromey.com>
5886
5887 * dwarf2/read.c (struct die_info): Move to die.h.
5888 * dwarf2/die.h: New file.
5889
0df7ad3a
TT
58902020-03-26 Tom Tromey <tom@tromey.com>
5891
5892 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5893 * dwarf2/read.c
5894 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5895 Move to line-header.c.
5896 (read_checked_initial_length_and_offset, read_formatted_entries):
5897 Likewise.
5898 (dwarf_decode_line_header): Split into two.
5899 * dwarf2/line-header.c
5900 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5901 Move from read.c.
5902 (read_checked_initial_length_and_offset, read_formatted_entries):
5903 Likewise.
5904 (dwarf_decode_line_header): New function, split from read.c.
5905
86c0bb4c
TT
59062020-03-26 Tom Tromey <tom@tromey.com>
5907
5908 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5909 Declare method.
5910 * dwarf2/read.c (read_attribute_value): Update.
5911 (dwarf2_per_objfile::read_line_string): Rename from
5912 read_indirect_line_string.
5913 (read_formatted_entries): Update.
5914
2ef46c2f
TT
59152020-03-26 Tom Tromey <tom@tromey.com>
5916
5917 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5918 variable.
5919
4f9c1eda
TT
59202020-03-26 Tom Tromey <tom@tromey.com>
5921
5922 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5923 const.
5924 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5925 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5926 parameter const.
5927
5a0e026f
TT
59282020-03-26 Tom Tromey <tom@tromey.com>
5929
5930 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
5931 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
5932 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
5933 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
5934
8844c11b
TT
59352020-03-26 Tom Tromey <tom@tromey.com>
5936
5937 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
5938 file_names_size, file_full_name, file_file_name>: Use const.
5939 <file_name_at, file_names>: Add const overload.
5940 * dwarf2/line-header.c (line_header::file_file_name)
5941 (line_header::file_full_name): Update.
5942
c90ec28a
TT
59432020-03-26 Tom Tromey <tom@tromey.com>
5944
5945 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
5946 (macro_start_file, consume_improper_spaces)
5947 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
5948 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
5949 (dwarf_decode_macros): Move to macro.c.
5950 * dwarf2/macro.c: New file.
5951 * dwarf2/macro.h: New file.
5952 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
5953
4f44ae6c
TT
59542020-03-26 Tom Tromey <tom@tromey.com>
5955
5956 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
5957 method.
5958 * dwarf2/section.c: New method. From
5959 read_indirect_string_at_offset_from.
5960 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
5961 (read_indirect_string_at_offset_from): Move to section.c.
5962 (read_indirect_string_at_offset): Rewrite.
5963 (read_indirect_line_string_at_offset): Remove.
5964 (read_indirect_string, read_indirect_line_string)
5965 (dwarf_decode_macro_bytes): Update.
5966
a0194fa8
TT
59672020-03-26 Tom Tromey <tom@tromey.com>
5968
5969 * dwarf2/section.h (struct dwarf2_section_info)
5970 <overload_complaint>: Declare.
5971 (dwarf2_section_buffer_overflow_complaint): Don't declare.
5972 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
5973 Rename from dwarf2_section_buffer_overflow_complaint.
5974 * dwarf2/read.c (skip_one_die, partial_die_info::read)
5975 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
5976
3d27bbdb
TT
59772020-03-26 Tom Tromey <tom@tromey.com>
5978
5979 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
5980 Declare.
5981 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
5982 Move from read.c.
5983 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
5984 to section.c.
5985
9eac9650
TT
59862020-03-26 Tom Tromey <tom@tromey.com>
5987
5988 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
5989
bf80d710
TT
59902020-03-26 Tom Tromey <tom@tromey.com>
5991
5992 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
5993 "builder".
5994 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
5995 parameter.
5996 (dwarf_decode_macros): Update.
5997
0314b390
TT
59982020-03-26 Tom Tromey <tom@tromey.com>
5999
6000 * dwarf2/read.c (read_attribute_value): Update.
6001 (read_indirect_string_from_dwz): Move to dwz.c; change into
6002 method.
6003 (dwarf_decode_macro_bytes): Update.
6004 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6005 * dwarf2/dwz.c: New file.
6006 * Makefile.in (COMMON_SFILES): Add dwz.c.
6007
9fda78b6
TT
60082020-03-26 Tom Tromey <tom@tromey.com>
6009
6010 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6011 * dwarf2/read.c: Add include.
6012 * dwarf2/index-write.c: Add include.
6013 * dwarf2/index-cache.c: Add include.
6014 * dwarf2/dwz.h: New file.
6015
33aa3c10
TT
60162020-03-25 Tom Tromey <tom@tromey.com>
6017
6018 * compile/compile-object-load.c (get_out_value_type): Mention
6019 correct symbol name in error message.
6020
d503b685
HD
60212020-03-25 Hannes Domani <ssbssa@yahoo.de>
6022
6023 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6024
7b1eff95
TV
60252020-03-25 Tom de Vries <tdevries@suse.de>
6026
6027 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6028 * symmisc.c (dump_symtab_1): Print user and includes fields.
6029 (maintenance_info_symtabs): Same.
6030
dd895392
AB
60312020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6032
6033 PR gdb/25534
6034 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6035 (riscv_regcache_cooked_write): New function.
6036 (riscv_push_dummy_call): Use new function.
6037 (riscv_return_value): Likewise.
6038
5ab2fbf1
SM
60392020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6040
6041 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6042 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6043 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6044 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6045 * infrun.c (follow_fork): Likewise.
6046 (follow_fork_inferior): Likewise.
6047 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6048 * linux-nat.h (class linux_nat_target): Likewise.
6049 * remote.c (class remote_target) <follow_fork>: Likewise.
6050 (remote_target::follow_fork): Likewise.
6051 * target-delegates.c: Re-generate.
6052 * target.c (default_follow_fork): Likewise.
6053 (target_follow_fork): Likewise.
6054 * target.h (struct target_ops) <follow_fork>: Likewise.
6055 (target_follow_fork): Likewise.
6056
a64fafb5
TV
60572020-03-24 Tom de Vries <tdevries@suse.de>
6058
6059 * psymtab.c (maintenance_info_psymtabs): Print user field.
6060
fe26d3a3
TT
60612020-03-20 Tom Tromey <tromey@adacore.com>
6062
6063 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6064 const.
6065 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6066 const.
6067
c884cc46
SM
60682020-03-20 Simon Marchi <simon.marchi@efficios.com>
6069
6070 * ptrace.m4: Don't check for ptrace declaration.
6071 * config.in: Re-generate.
6072 * configure: Re-generate.
6073 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6074 not defined.
6075
1ff700c2
KR
60762020-03-20 Kamil Rytarowski <n54@gmx.com>
6077
6078 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6079 `PTRACE_TYPE_RET'.
6080 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6081 * sparc-nat.c (gdb_ptrace): Likewise.
6082 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6083
f7d4f0b1
TT
60842020-03-20 Tom Tromey <tromey@adacore.com>
6085
6086 * c-exp.y (lex_one_token): Fix assert.
6087
f67210ff
TT
60882020-03-20 Tom Tromey <tromey@adacore.com>
6089
6090 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6091 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6092 strncpy call.
6093
1773be9e
TT
60942020-03-20 Tom Tromey <tromey@adacore.com>
6095
6096 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6097
70304be9
TT
60982020-03-20 Tom Tromey <tromey@adacore.com>
6099
6100 * ada-valprint.c (print_variant_part): Remove parameters; switch
6101 to value-based API.
6102 (print_field_values): Likewise.
6103 (ada_val_print_struct_union): Likewise.
6104 (ada_value_print_1): Update.
6105
9faa006d
KR
61062020-03-20 Kamil Rytarowski <n54@gmx.com>
6107
6108 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6109 nbsd_nat_target instead of inf_ptrace_target.
6110 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6111 nbsd_nat_target.
6112
4a90f062
KR
61132020-03-20 Kamil Rytarowski <n54@gmx.com>
6114
6115 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6116 it to the ptrace call.
6117 * (store_registers): Likewise.
6118
61192020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6120
6121 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6122 it to the ptrace call.
6123 * (store_registers): Likewise.
6124
2d07da27
LM
61252020-03-19 Luis Machado <luis.machado@linaro.org>
6126
6127 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6128 valid, fetch vg value from ptrace.
6129
f09db380
KR
61302020-03-19 Kamil Rytarowski <n54@gmx.com>
6131 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6132 * inf-ptrace.c: Likewise.
6133 * (gdb_ptrace): Add.
6134 * (inf_ptrace_target::resume): Update.
6135 * (inf_ptrace_target::xfer_partial): Likewise.
6136 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6137 * (inf_ptrace_peek_poke): Update.
6138
fcc7376e
KR
61392020-03-19 Kamil Rytarowski <n54@gmx.com>
6140
6141 * x86-bsd-nat.c (gdb_ptrace): New.
6142 * (x86bsd_dr_set): Add new argument `ptid'.
6143 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6144 x86bsd_dr_set_addr): Update.
6145
cada5fc9
AB
61462020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6147
6148 * remote.c (remote_target::process_stop_reply): Handle events for
6149 all threads differently.
6150
19a2740f
AB
61512020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6152
6153 * completer.c (completion_tracker::remove_completion): Define new
6154 function.
6155 * completer.h (completion_tracker::remove_completion): Declare new
6156 function.
6157 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6158 when adding a C++ function symbol.
6159
724fd9ba
AB
61602020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6161
6162 * completer.c (completion_tracker::completion_hash_entry): Define
6163 new class.
6164 (advance_to_filename_complete_word_point): Call
6165 recompute_lowest_common_denominator.
6166 (completion_tracker::completion_tracker): Call discard_completions
6167 to setup the hash table.
6168 (completion_tracker::discard_completions): Allow for being called
6169 from the constructor, pass new equal function, and element deleter
6170 when constructing the hash table. Initialise new class member
6171 variables.
6172 (completion_tracker::maybe_add_completion): Remove use of
6173 m_entries_vec, and store more information into m_entries_hash.
6174 (completion_tracker::recompute_lcd_visitor): New function, most
6175 content taken from...
6176 (completion_tracker::recompute_lowest_common_denominator):
6177 ...here, this now just visits each item in the hash calling the
6178 above visitor.
6179 (completion_tracker::build_completion_result): Remove use of
6180 m_entries_vec, call recompute_lowest_common_denominator.
6181 * completer.h (completion_tracker::have_completions): Remove use
6182 of m_entries_vec.
6183 (completion_tracker::completion_hash_entry): Declare new class.
6184 (completion_tracker::recompute_lowest_common_denominator): Change
6185 function signature.
6186 (completion_tracker::recompute_lcd_visitor): Declare new function.
6187 (completion_tracker::m_entries_vec): Delete.
6188 (completion_tracker::m_entries_hash): Initialize to NULL.
6189 (completion_tracker::m_lowest_common_denominator_valid): New
6190 member variable.
6191 (completion_tracker::m_lowest_common_denominator_max_length): New
6192 member variable.
6193
5a82b8a1
KR
61942020-03-17 Kamil Rytarowski <n54@gmx.com>
6195
6196 * regformats/regdef.h: Put reg in gdb namespace.
6197
fb516a69
KR
61982020-03-17 Kamil Rytarowski <n54@gmx.com>
6199
6200 * i386-bsd-nat.c (gdb_ptrace): New.
6201 * (i386bsd_fetch_inferior_registers,
6202 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6203 * (i386bsd_fetch_inferior_registers,
6204 i386bsd_store_inferior_registers) Use gdb_ptrace.
6205
1c0aa1fb
KR
62062020-03-17 Kamil Rytarowski <n54@gmx.com>
6207
6208 * amd64-bsd-nat.c (gdb_ptrace): New.
6209 * (amd64bsd_fetch_inferior_registers,
6210 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6211 * (amd64bsd_fetch_inferior_registers,
6212 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6213
5ccd2fb7
KR
62142020-03-17 Kamil Rytarowski <n54@gmx.com>
6215
6216 * user-regs.c (user_reg::read): Rename to...
6217 (user_reg::xread): ...this.
6218 * (append_user_reg): Rename argument `read' to `xread'.
6219 * (user_reg_add_builtin): Likewise.
6220 * (user_reg_add): Likewise.
6221 * (value_of_user_reg): Likewise.
6222
2108a63a
KR
62232020-03-17 Kamil Rytarowski <n54@gmx.com>
6224
6225 * sparc-nat.c (gdb_ptrace): New.
6226 * sparc-nat.c (sparc_fetch_inferior_registers)
6227 (sparc_store_inferior_registers) Remove obsolete comment.
6228 * sparc-nat.c (sparc_fetch_inferior_registers)
6229 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6230 * sparc-nat.c (sparc_fetch_inferior_registers)
6231 (sparc_store_inferior_registers) Use gdb_ptrace.
6232
a225c9a8
KR
62332020-03-17 Kamil Rytarowski <n54@gmx.com>
6234
6235 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6236 it to the ptrace call.
6237 * sh-nbsd-nat.c (store_registers): Likewise.
6238
98097623
KR
62392020-03-17 Kamil Rytarowski <n54@gmx.com>
6240
6241 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6242 nbsd_nat_target instead of inf_ptrace_target.
6243 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6244 nbsd_nat_target.
6245
9e38d619
KR
62462020-03-17 Kamil Rytarowski <n54@gmx.com>
6247
6248 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6249
a2ecbe9f
KR
62502020-03-17 Kamil Rytarowski <n54@gmx.com>
6251
6252 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6253 <sys/sysctl.h>.
6254 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6255
58990295
TV
62562020-03-17 Tom de Vries <tdevries@suse.de>
6257
6258 PR gdb/23710
6259 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6260 fields.
6261 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6262 fields.
6263 (process_imported_unit_die): Skip import of c++ CUs.
6264
771dd3a8
TT
62652020-03-16 Tom Tromey <tom@tromey.com>
6266
6267 * p-valprint.c (pascal_object_print_value): Initialize
6268 base_value.
6269
817a7585
AK
62702020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6271 Shahab Vahedi <shahab@synopsys.com>
6272
6273 * Makefile.in: Add arch/arc.o
6274 * configure.tgt: Likewise.
6275 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6276 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6277 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6278 * arc-tdep.h (arc_read_description): Add proto type.
6279 * arch/arc.c: New file.
6280 * arch/arc.h: Likewise.
6281 * features/Makefile: Replace old target descriptions with new.
6282 * features/arc-arcompact.c: Remove.
6283 * features/arc-arcompact.xml: Likewise.
6284 * features/arc-v2.c: Likewise
6285 * features/arc-v2.xml: Likewise
6286 * features/arc/aux-arcompact.xml: New file.
6287 * features/arc/aux-v2.xml: Likewise.
6288 * features/arc/core-arcompact.xml: Likewise.
6289 * features/arc/core-v2.xml: Likewise.
6290 * features/arc/aux-arcompact.c: Generate.
6291 * features/arc/aux-v2.c: Likewise.
6292 * features/arc/core-arcompact.c: Likewise.
6293 * features/arc/core-v2.c: Likewise.
6294 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6295
67430cd0
TT
62962020-03-16 Tom Tromey <tromey@adacore.com>
6297
6298 PR gdb/25663:
6299 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6300 putting value into bcache.
6301
30efb6c7
SM
63022020-03-16 Simon Marchi <simon.marchi@efficios.com>
6303
6304 PR gdb/21500
6305 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6306 to...
6307 (amd64_windows_init_abi_common): ... this. Don't set size of
6308 long type.
6309 (amd64_windows_init_abi): New function.
6310 (amd64_cygwin_init_abi): New function.
6311 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6312 the Cygwin OS ABI.
6313 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6314 comment.
6315
8db52437
SM
63162020-03-16 Simon Marchi <simon.marchi@efficios.com>
6317
6318 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6319 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6320 (pe_import_directory_entry): New struct type.
6321 (is_linked_with_cygwin_dll): New function.
6322 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6323 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6324 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6325
5982a56a
SM
63262020-03-16 Simon Marchi <simon.marchi@efficios.com>
6327
6328 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6329 i386_cygwin_core_osabi_sniffer.
6330
7a1998df
SM
63312020-03-16 Simon Marchi <simon.marchi@efficios.com>
6332
6333 * i386-cygwin-tdep.c: Rename to...
6334 * i386-windows-tdep.c: ... this.
6335 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6336 i386-windows-tdep.c.
6337 * configure.tgt: Likewise.
6338
053205cc
SM
63392020-03-16 Simon Marchi <simon.marchi@efficios.com>
6340
6341 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6342 * osabi.c (gdb_osabi_names): Add "Windows".
6343 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6344 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6345 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6346 i386_cygwin_osabi_sniffer.
6347 (_initialize_i386_cygwin_tdep): Register OS ABI
6348 GDB_OSABI_WINDOWS for i386.
6349 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6350 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6351 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6352 for x86-64.
6353 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6354 when the target matches '*-*-mingw*'.
6355
fe4b2ee6
SM
63562020-03-16 Simon Marchi <simon.marchi@efficios.com>
6357
6358 * defs.h (enum gdb_osabi): Move to...
6359 * osabi.h (enum gdb_osabi): ... here.
6360 * gdbarch.sh: Include osabi.h in gdbarch.h.
6361 * gdbarch.h: Re-generate.
6362
cb9b645d
SM
63632020-03-16 Simon Marchi <simon.marchi@efficios.com>
6364
6365 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6366 function.
6367 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6368
3293bbaf
TT
63692020-03-14 Tom Tromey <tom@tromey.com>
6370
6371 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6372 for C++.
6373 (c_type_print_modifier): Likewise. Add "language" parameter.
6374 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6375 (c_type_print_base_1): Update.
6376 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6377 constants.
6378 * type-stack.c (type_stack::insert): Handle tp_atomic and
6379 tp_restrict.
6380 (type_stack::follow_type_instance_flags): Likewise.
6381 (type_stack::follow_types): Likewise. Merge type-following code.
6382 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6383 (space_identifier, cv_with_space_id)
6384 (const_or_volatile_or_space_identifier_noopt)
6385 (const_or_volatile_or_space_identifier): Remove.
6386 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6387 rules.
6388 (ptr_operator, typebase): Update.
6389 (enum token_flag) <FLAG_C>: New constant.
6390 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6391 "_Atomic".
6392 (lex_one_token): Handle FLAG_C.
6393
154151a6
KR
63942020-03-14 Kamil Rytarowski <n54@gmx.com>
6395
6396 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6397 it to the ptrace call.
6398 * m68k-bsd-nat.c (store_registers): Likewise.
6399
bc107784
KR
64002020-03-14 Kamil Rytarowski <n54@gmx.com>
6401
6402 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6403 gdb_byte *.
6404 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6405 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6406 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6407
01a80117
KR
64082020-03-14 Kamil Rytarowski <n54@gmx.com>
6409
6410 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6411 nbsd_nat_target instead of inf_ptrace_target.
6412 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6413 nbsd_nat_target.
6414
f90280ca
KR
64152020-03-14 Kamil Rytarowski <n54@gmx.com>
6416
6417 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6418 register_t.
6419
6def66f1
KR
64202020-03-14 Kamil Rytarowski <n54@gmx.com>
6421
6422 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6423 it to the ptrace call.
6424 * alpha-bsd-nat.c (store_registers): Likewise.
6425
66eaca97
KR
64262020-03-14 Kamil Rytarowski <n54@gmx.com>
6427
6428 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6429 includes.
6430 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6431 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6432 fill_fpregset): Likewise.
6433
4fed520b
KR
64342020-03-14 Kamil Rytarowski <n54@gmx.com>
6435
6436 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6437 nbsd_nat_target instead of inf_ptrace_target.
6438 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6439 nbsd_nat_target.
6440
2190cf06
KR
64412020-03-14 Kamil Rytarowski <n54@gmx.com>
6442
6443 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6444 register_t.
6445
75c56d3d
KR
64462020-03-14 Kamil Rytarowski <n54@gmx.com>
6447
6448 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6449 it to the ptrace call.
6450 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6451 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6452 * arm-nbsd-nat.c (store_register): Likewise.
6453 * arm-nbsd-nat.c (store_regs): Likewise.
6454 * arm-nbsd-nat.c (store_fp_register): Likewise.
6455 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6456
6018d381
KR
64572020-03-14 Kamil Rytarowski <n54@gmx.com>
6458
6459 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6460 nbsd_nat_target instead of inf_ptrace_target.
6461 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6462 nbsd_nat_target.
6463
013f99f0
KR
64642020-03-14 Kamil Rytarowski <n54@gmx.com>
6465
6466 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6467 it to the ptrace call.
6468 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6469
12753073
KR
64702020-03-14 Kamil Rytarowski <n54@gmx.com>
6471
6227b330
KR
6472 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6473 it to the ptrace call.
6474 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6475
64762020-03-14 Kamil Rytarowski <n54@gmx.com>
6477
6478 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6479 gdb_byte *.
12753073
KR
6480 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6481
d5be5fa4
KR
64822020-03-14 Kamil Rytarowski <n54@gmx.com>
6483
6484 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6485 instead of inf_ptrace_target.
6486 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6487 nbsd_nat_target.
6488
8110f842
KR
64892020-03-14 Kamil Rytarowski <n54@gmx.com>
6490
6491 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6492 register_t.
6493
52feded7
KR
64942020-03-14 Kamil Rytarowski <n54@gmx.com>
6495
6496 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6497 register_t.
6498
25567eee
KR
64992020-03-14 Kamil Rytarowski <n54@gmx.com>
6500
6501 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6502 register_t.
6503
426a9c18
TT
65042020-03-13 Tom Tromey <tom@tromey.com>
6505
6506 * value.h (val_print): Don't declare.
6507 * valprint.h (val_print_array_elements)
6508 (val_print_scalar_formatted, generic_val_print): Don't declare.
6509 * valprint.c (generic_val_print_array): Take a struct value.
6510 (generic_val_print_ptr, generic_val_print_memberptr)
6511 (generic_val_print_bool, generic_val_print_int)
6512 (generic_val_print_char, generic_val_print_complex)
6513 (generic_val_print): Remove.
6514 (generic_value_print): Update.
6515 (do_val_print): Remove unused parameters. Don't call
6516 la_val_print.
6517 (val_print): Remove.
6518 (common_val_print): Update. Don't call value_check_printable.
6519 (val_print_scalar_formatted, val_print_array_elements): Remove.
6520 * rust-lang.c (rust_val_print): Remove.
6521 (rust_language_defn): Update.
6522 * p-valprint.c (pascal_val_print): Remove.
6523 (pascal_value_print_inner): Update.
6524 (pascal_object_print_val_fields, pascal_object_print_val):
6525 Remove.
6526 (pascal_object_print_static_field): Update.
6527 * p-lang.h (pascal_val_print): Don't declare.
6528 * p-lang.c (pascal_language_defn): Update.
6529 * opencl-lang.c (opencl_language_defn): Update.
6530 * objc-lang.c (objc_language_defn): Update.
6531 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6532 * m2-lang.h (m2_val_print): Don't declare.
6533 * m2-lang.c (m2_language_defn): Update.
6534 * language.h (struct language_defn) <la_val_print>: Remove.
6535 * language.c (unk_lang_value_print_inner): Rename. Change
6536 argument types.
6537 (unknown_language_defn, auto_language_defn): Update.
6538 * go-valprint.c (go_val_print): Remove.
6539 * go-lang.h (go_val_print): Don't declare.
6540 * go-lang.c (go_language_defn): Update.
6541 * f-valprint.c (f_val_print): Remove.
6542 * f-lang.h (f_value_print): Don't declare.
6543 * f-lang.c (f_language_defn): Update.
6544 * d-valprint.c (d_val_print): Remove.
6545 * d-lang.h (d_value_print): Don't declare.
6546 * d-lang.c (d_language_defn): Update.
6547 * cp-valprint.c (cp_print_value_fields)
6548 (cp_print_value_fields_rtti, cp_print_value): Remove.
6549 (cp_print_static_field): Update.
6550 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6551 (c_val_print_struct, c_val_print_union, c_val_print_int)
6552 (c_val_print_memberptr, c_val_print): Remove.
6553 * c-lang.h (c_val_print_array, cp_print_value_fields)
6554 (cp_print_value_fields_rtti): Don't declare.
6555 * c-lang.c (c_language_defn, cplus_language_defn)
6556 (asm_language_defn, minimal_language_defn): Update.
6557 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6558 (ada_val_print_enum): Take a struct value.
6559 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6560 (ada_val_print): Remove.
6561 (ada_value_print_1): Update.
6562 (printable_val_type): Remove.
6563 * ada-lang.h (ada_val_print): Don't declare.
6564 * ada-lang.c (ada_language_defn): Update.
6565
42331a1e
TT
65662020-03-13 Tom Tromey <tom@tromey.com>
6567
6568 * valprint.c (do_val_print): Update.
6569 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6570 a struct value.
6571 (value_to_value_object_no_release): Declare.
6572 * python/py-value.c (value_to_value_object_no_release): New
6573 function.
6574 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6575 struct value.
6576 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6577 function.
6578 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6579 a struct value.
6580 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6581 Declare.
6582 (gdbscm_apply_val_pretty_printer): Take a struct value.
6583 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6584 value.
6585 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6586 value.
6587 * extension-priv.h (struct extension_language_ops)
6588 <apply_val_pretty_printer>: Take a struct value.
6589 * cp-valprint.c (cp_print_value): Create a struct value.
6590 (cp_print_value): Update.
6591
3a916a97
TT
65922020-03-13 Tom Tromey <tom@tromey.com>
6593
6594 * ada-valprint.c (print_field_values): Call common_val_print.
6595
b59eac37
TT
65962020-03-13 Tom Tromey <tom@tromey.com>
6597
6598 * ada-valprint.c (val_print_packed_array_elements): Remove
6599 bitoffset and val parameters. Call common_val_print.
6600 (ada_val_print_string): Remove offset, address, and original_value
6601 parameters.
6602 (ada_val_print_array): Update.
6603 (ada_value_print_array): New function.
6604 (ada_value_print_1): Call it.
6605
03371129
TT
66062020-03-13 Tom Tromey <tom@tromey.com>
6607
6608 * ada-valprint.c (ada_value_print): Use common_val_print.
6609
2e088f8b
TT
66102020-03-13 Tom Tromey <tom@tromey.com>
6611
6612 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6613
39ef85a8
TT
66142020-03-13 Tom Tromey <tom@tromey.com>
6615
6616 * ada-valprint.c (ada_value_print_num): New function.
6617 (ada_value_print_1): Use it.
6618
b9fa6e07
TT
66192020-03-13 Tom Tromey <tom@tromey.com>
6620
6621 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6622
416595d6
TT
66232020-03-13 Tom Tromey <tom@tromey.com>
6624
6625 * ada-valprint.c (ada_value_print_ptr): New function.
6626 (ada_value_print_1): Use it.
6627
5b5e15ec
TT
66282020-03-13 Tom Tromey <tom@tromey.com>
6629
6630 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6631 call common_val_print.
6632 (ada_val_print_1): Update.
6633 (ada_value_print_1): New function.
6634 (ada_value_print_inner): Rewrite.
6635
fbf54e75
TT
66362020-03-13 Tom Tromey <tom@tromey.com>
6637
6638 * cp-valprint.c (cp_print_value_fields): Update.
6639 (cp_print_value): New function.
6640
64b653ca
TT
66412020-03-13 Tom Tromey <tom@tromey.com>
6642
6643 * m2-valprint.c (m2_value_print_inner): Use
6644 cp_print_value_fields.
6645 * cp-valprint.c (cp_print_value_fields): New function.
6646 * c-valprint.c (c_value_print_struct): New function.
6647 (c_value_print_inner): Use c_value_print_struct.
6648 * c-lang.h (cp_print_value_fields): Declare.
6649
6999f067
TT
66502020-03-13 Tom Tromey <tom@tromey.com>
6651
6652 * c-valprint.c (c_value_print_array): New function.
6653 (c_value_print_inner): Use it.
6654
ce80b8bd
TT
66552020-03-13 Tom Tromey <tom@tromey.com>
6656
6657 * c-valprint.c (c_value_print_memberptr): New function.
6658 (c_value_print_inner): Use it.
6659
2faac269
TT
66602020-03-13 Tom Tromey <tom@tromey.com>
6661
6662 * c-valprint.c (c_value_print_int): New function.
6663 (c_value_print_inner): Use it.
6664
da3e2c29
TT
66652020-03-13 Tom Tromey <tom@tromey.com>
6666
6667 * c-valprint.c (c_value_print_ptr): New function.
6668 (c_value_print_inner): Use it.
6669
50836231
TT
66702020-03-13 Tom Tromey <tom@tromey.com>
6671
6672 * c-valprint.c (c_value_print_inner): Rewrite.
6673
4f412b6e
TT
66742020-03-13 Tom Tromey <tom@tromey.com>
6675
6676 * valprint.c (generic_value_print_complex): New function.
6677 (generic_value_print): Use it.
6678
f5354008
TT
66792020-03-13 Tom Tromey <tom@tromey.com>
6680
6681 * valprint.c (generic_val_print_float): Don't call
6682 val_print_scalar_formatted.
6683 (generic_val_print, generic_value_print): Update.
6684
3eec3b05
TT
66852020-03-13 Tom Tromey <tom@tromey.com>
6686
6687 * valprint.c (generic_value_print_char): New function
6688 (generic_value_print): Use it.
6689
fdddfccb
TT
66902020-03-13 Tom Tromey <tom@tromey.com>
6691
6692 * valprint.c (generic_value_print_int): New function.
6693 (generic_value_print): Use it.
6694
6dde7521
TT
66952020-03-13 Tom Tromey <tom@tromey.com>
6696
6697 * valprint.c (generic_value_print_bool): New function.
6698 (generic_value_print): Use it.
6699
4112d2e6
TT
67002020-03-13 Tom Tromey <tom@tromey.com>
6701
6702 * valprint.c (generic_val_print_func): Simplify.
6703 (generic_val_print, generic_value_print): Update.
6704
65786af6
TT
67052020-03-13 Tom Tromey <tom@tromey.com>
6706
6707 * valprint.c (generic_val_print_flags): Remove.
6708 (generic_val_print, generic_value_print): Update.
6709 (val_print_type_code_flags): Add original_value parameter.
6710
40f3ce18
TT
67112020-03-13 Tom Tromey <tom@tromey.com>
6712
6713 * valprint.c (generic_val_print): Update.
6714 (generic_value_print): Update.
6715 * valprint.c (generic_val_print_enum): Don't call
6716 val_print_scalar_formatted.
6717
2a5b130b
TT
67182020-03-13 Tom Tromey <tom@tromey.com>
6719
6720 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6721 * valprint.c (generic_value_print_ptr): New function.
6722
abc66ce9
TT
67232020-03-13 Tom Tromey <tom@tromey.com>
6724
6725 * valprint.c (generic_value_print): Rewrite.
6726
07a32858
TT
67272020-03-13 Tom Tromey <tom@tromey.com>
6728
6729 * p-valprint.c (pascal_object_print_value_fields)
6730 (pascal_object_print_value): New functions.
6731
64d64d3a
TT
67322020-03-13 Tom Tromey <tom@tromey.com>
6733
6734 * p-valprint.c (pascal_value_print_inner): Rewrite.
6735
6a95a1f5
TT
67362020-03-13 Tom Tromey <tom@tromey.com>
6737
6738 * f-valprint.c (f_value_print_innner): Rewrite.
6739
59fcdac6
TT
67402020-03-13 Tom Tromey <tom@tromey.com>
6741
6742 * m2-valprint.c (m2_print_unbounded_array): New overload.
6743 (m2_print_unbounded_array): Update.
6744 (m2_print_array_contents): Take a struct value.
6745 (m2_value_print_inner): Rewrite.
6746
d133c3e1
TT
67472020-03-13 Tom Tromey <tom@tromey.com>
6748
6749 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6750 (d_value_print_inner): New function.
6751 * d-lang.h (d_value_print_inner): Declare.
6752 * d-lang.c (d_language_defn): Use d_value_print_inner.
6753
23b0f06b
TT
67542020-03-13 Tom Tromey <tom@tromey.com>
6755
6756 * go-valprint.c (go_value_print_inner): New function.
6757 * go-lang.h (go_value_print_inner): Declare.
6758 * go-lang.c (go_language_defn): Use go_value_print_inner.
6759
5f56f7cb
TT
67602020-03-13 Tom Tromey <tom@tromey.com>
6761
6762 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6763 API.
6764 (rust_val_print): Rewrite.
6765 (rust_value_print_inner): New function, from rust_val_print.
6766 (rust_language_defn): Use rust_value_print_inner.
6767
26792ee0
TT
67682020-03-13 Tom Tromey <tom@tromey.com>
6769
6770 * ada-valprint.c (ada_value_print_inner): New function.
6771 * ada-lang.h (ada_value_print_inner): Declare.
6772 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6773
24051bbe
TT
67742020-03-13 Tom Tromey <tom@tromey.com>
6775
6776 * f-valprint.c (f_value_print_innner): New function.
6777 * f-lang.h (f_value_print_innner): Declare.
6778 * f-lang.c (f_language_defn): Use f_value_print_innner.
6779
c0941be6
TT
67802020-03-13 Tom Tromey <tom@tromey.com>
6781
6782 * p-valprint.c (pascal_value_print_inner): New function.
6783 * p-lang.h (pascal_value_print_inner): Declare.
6784 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6785
62c4663d
TT
67862020-03-13 Tom Tromey <tom@tromey.com>
6787
6788 * m2-valprint.c (m2_value_print_inner): New function.
6789 * m2-lang.h (m2_value_print_inner): Declare.
6790 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6791
62182190
TT
67922020-03-13 Tom Tromey <tom@tromey.com>
6793
6794 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6795 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6796 * c-valprint.c (c_value_print_inner): New function.
6797 * c-lang.h (c_value_print_inner): Declare.
6798 * c-lang.c (c_language_defn, cplus_language_defn)
6799 (asm_language_defn, minimal_language_defn): Use
6800 c_value_print_inner.
6801
1e592a8a
TT
68022020-03-13 Tom Tromey <tom@tromey.com>
6803
6804 * p-valprint.c (pascal_object_print_value_fields): Now static.
6805 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6806
7fe471e9
TT
68072020-03-13 Tom Tromey <tom@tromey.com>
6808
6809 * c-valprint.c (c_val_print_array): Simplify.
6810
d121c6ce
TT
68112020-03-13 Tom Tromey <tom@tromey.com>
6812
6813 * valprint.c (value_print_array_elements): New function.
6814 * valprint.h (value_print_array_elements): Declare.
6815
4dba70ee
TT
68162020-03-13 Tom Tromey <tom@tromey.com>
6817
6818 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6819 * mips-tdep.c (mips_print_register): Use
6820 value_print_scalar_formatted.
6821
4f9ae810
TT
68222020-03-13 Tom Tromey <tom@tromey.com>
6823
6824 * valprint.h (value_print_scalar_formatted): Declare.
6825 * valprint.c (value_print_scalar_formatted): New function.
6826
156bfec9
TT
68272020-03-13 Tom Tromey <tom@tromey.com>
6828
6829 * valprint.h (generic_value_print): Declare.
6830 * valprint.c (generic_value_print): New function.
6831
2b4e573d
TT
68322020-03-13 Tom Tromey <tom@tromey.com>
6833
6834 * valprint.c (do_val_print): Call la_value_print_inner, if
6835 available.
6836 * rust-lang.c (rust_language_defn): Update.
6837 * p-lang.c (pascal_language_defn): Update.
6838 * opencl-lang.c (opencl_language_defn): Update.
6839 * objc-lang.c (objc_language_defn): Update.
6840 * m2-lang.c (m2_language_defn): Update.
6841 * language.h (struct language_defn) <la_value_print_inner>: New
6842 member.
6843 * language.c (unknown_language_defn, auto_language_defn): Update.
6844 * go-lang.c (go_language_defn): Update.
6845 * f-lang.c (f_language_defn): Update.
6846 * d-lang.c (d_language_defn): Update.
6847 * c-lang.c (c_language_defn, cplus_language_defn)
6848 (asm_language_defn, minimal_language_defn): Update.
6849 * ada-lang.c (ada_language_defn): Update.
6850
a1f6a07c
TT
68512020-03-13 Tom Tromey <tom@tromey.com>
6852
6853 * c-valprint.c (c_value_print): Use common_val_print.
6854
410cf315
TT
68552020-03-13 Tom Tromey <tom@tromey.com>
6856
6857 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6858
72a45c93
TT
68592020-03-13 Tom Tromey <tom@tromey.com>
6860
6861 * f-valprint.c (f77_print_array_1, f_val_print): Use
6862 common_val_print.
6863
040f66bd
TT
68642020-03-13 Tom Tromey <tom@tromey.com>
6865
6866 * riscv-tdep.c (riscv_print_one_register_info): Use
6867 common_val_print.
6868
a6e05a6c
TT
68692020-03-13 Tom Tromey <tom@tromey.com>
6870
6871 * mi/mi-main.c (output_register): Use common_val_print.
6872
3444c526
TT
68732020-03-13 Tom Tromey <tom@tromey.com>
6874
6875 * infcmd.c (default_print_one_register_info): Use
6876 common_val_print.
6877
c2a44efe
TT
68782020-03-13 Tom Tromey <tom@tromey.com>
6879
6880 * valprint.h (common_val_print_checked): Declare.
6881 * valprint.c (common_val_print_checked): New function.
6882 * stack.c (print_frame_arg): Use common_val_print_checked.
6883
b0c26e99
TT
68842020-03-13 Tom Tromey <tom@tromey.com>
6885
6886 * valprint.c (do_val_print): New function, from val_print.
6887 (val_print): Use do_val_print.
6888 (common_val_print): Use do_val_print.
6889
ce3acbe9
TT
68902020-03-13 Tom Tromey <tom@tromey.com>
6891
6892 * valprint.c (value_print): Use scoped_value_mark.
6893
96c7f873
TV
68942020-03-13 Tom de Vries <tdevries@suse.de>
6895
6896 PR symtab/25646
6897 * psymtab.c (partial_symtab::partial_symtab): Don't set
6898 globals_offset and statics_offset. Push element onto
6899 current_global_psymbols and current_static_psymbols stacks.
6900 (concat): New function.
6901 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6902 element from current_global_psymbols and current_static_psymbols
6903 stacks. Concat popped elements to global_psymbols and
6904 static_symbols.
6905 (add_psymbol_to_list): Use current_global_psymbols and
6906 current_static_psymbols stacks.
6907 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6908 current_static_psymbols fields.
6909
6ba0a321
CB
69102020-03-12 Christian Biesinger <cbiesinger@google.com>
6911
6912 * corelow.c (sniff_core_bfd): Remove.
6913 (class core_target) <m_core_vec>: Remove.
6914 (core_target::core_target): Update.
6915 (core_file_fns): Remove.
6916 (deprecated_add_core_fns): Remove.
6917 (default_core_sniffer): Remove.
6918 (sniff_core_bfd): Remove.
6919 (default_check_format): Remove.
6920 (gdb_check_format): Remove.
6921 (core_target_open): Update.
6922 (core_target::get_core_register_section): Update.
6923 (get_core_registers_cb): Update.
6924 (core_target::fetch_registers): Update.
6925 * gdbcore.h (struct core_fns): Remove.
6926 (deprecated_add_core_fns): Remove.
6927 (default_core_sniffer): Remove.
6928 (default_check_format): Remove.
6929
227031b2
TT
69302020-03-12 Tom Tromey <tom@tromey.com>
6931
6932 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
6933 CORE_ADDR.
6934 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
6935
53807e9f
TT
69362020-03-12 Tom Tromey <tom@tromey.com>
6937
6938 * remote.c (remote_target::download_tracepoint)
6939 (remote_target::enable_tracepoint)
6940 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
6941 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
6942 sprintf_vma.
6943
64f25102
TT
69442020-03-12 Tom Tromey <tom@tromey.com>
6945
6946 * symfile-mem.c: Update CORE_ADDR size assert.
6947
272cd5a3
SM
69482020-03-12 Simon Marchi <simon.marchi@efficios.com>
6949
6950 * selftest.m4: Move to gdbsupport/.
6951 * acinclude.m4: Update path to selftest.m4.
6952
74cd3f9d
SM
69532020-03-12 Simon Marchi <simon.marchi@efficios.com>
6954
6955 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
6956 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
6957 gdbarch-selfselftests.c and selftest-arch.c.
6958 (SUBDIR_UNITTESTS_OBS): Rename to...
6959 (SELFTESTS_OBS): ... this.
6960 (COMMON_SFILES): Remove disasm-selftests.c and
6961 gdbarch-selftests.c.
6962 * configure.ac: Don't add selftest-arch.{c,o} to
6963 CONFIG_{SRCS,OBS}.
6964 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
6965 preprocessor conditions.
6966
db6878ac
SM
69672020-03-12 Simon Marchi <simon.marchi@efficios.com>
6968
6969 * configure.ac: Don't source bfd/development.sh.
6970 * selftest.m4: Modify comment.
6971 * configure: Re-generate.
6972
4d696a5c
SM
69732020-03-12 Simon Marchi <simon.marchi@efficios.com>
6974
6975 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
6976 not "true" or "false".
6977 * configure: Re-generate.
6978
8dd8e1c7
CB
69792020-03-12 Christian Biesinger <cbiesinger@google.com>
6980
6981 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
6982 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
6983 renamed to arm_nbsd_supply_gregset.
6984 (fetch_register): Update to call arm_nbsd_supply_gregset.
6985 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
6986 (arm_netbsd_nat_target::fetch_registers): Update.
6987 (fetch_elfcore_registers): Removed.
6988 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
6989 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
6990 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
6991 not require NetBSD system headers.
6992 (arm_nbsd_regset): New struct.
6993 (arm_nbsd_iterate_over_regset_sections): New function.
6994 (arm_netbsd_init_abi_common): Updated to call
6995 set_gdbarch_iterate_over_regset_sections.
6996 * arm-nbsd-tdep.h: New file.
6997
dd69bf7a
KB
69982020-03-11 Kevin Buettner <kevinb@redhat.com>
6999
7000 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7001 recursion.
7002
a0761e34
SM
70032020-03-11 Simon Marchi <simon.marchi@efficios.com>
7004
7005 * configure: Re-generate.
7006
e7a82140
TT
70072020-03-11 Tom Tromey <tromey@adacore.com>
7008
7009 * ada-typeprint.c (print_choices): Fix comment.
7010
dcc050c8
AB
70112020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7012
7013 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7014 previous item in the list, when the list has no items.
7015
1c33af77
TV
70162020-03-11 Tom de Vries <tdevries@suse.de>
7017
7018 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7019 PROP_LOCLIST handling code.
7020
8c95582d
AB
70212020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7022
7023 * buildsym-legacy.c (record_line): Pass extra parameter to
7024 record_line.
7025 * buildsym.c (buildsym_compunit::record_line): Take an extra
7026 parameter, reduce duplication in the line table, and record the
7027 is_stmt flag in the line table.
7028 * buildsym.h (buildsym_compunit::record_line): Add extra
7029 parameter.
7030 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7031 non-statement lines.
7032 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7033 this to the symtab builder.
7034 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7035 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7036 through to dwarf_record_line_1.
7037 * infrun.c (process_event_stop_test): When stepping, don't stop at
7038 a non-statement instruction, and only refresh the step info when
7039 we land in the middle of a line's range. Also add an extra
7040 comment.
7041 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7042 field.
7043 * record-btrace.c (btrace_find_line_range): Only record lines
7044 marked as is-statement.
7045 * stack.c (frame_show_address): Show the frame address if we are
7046 in a non-statement sal.
7047 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7048 (maintenance_print_one_line_table): Print a header for the is_stmt
7049 column, and include is_stmt information in the output.
7050 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7051 preference to non-statements.
7052 (find_pcs_for_symtab_line): Prefer is-statement entries.
7053 (find_line_common): Likewise.
7054 * symtab.h (struct linetable_entry): Add is_stmt field.
7055 (struct symtab_and_line): Likewise.
7056 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7057 arranging the line table.
7058
e4003a34
TV
70592020-03-07 Tom de Vries <tdevries@suse.de>
7060
7061 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7062 DIE.
7063
e8932576
TT
70642020-03-07 Tom Tromey <tom@tromey.com>
7065
7066 * valops.c (value_literal_complex): Remove obsolete comment.
7067 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7068 comment.
7069
29734269
SM
70702020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7071
7072 * infrun.h: Forward-declare thread_info.
7073 (set_step_info): Add thread_info parameter, add doc.
7074 * infrun.c (set_step_info): Add thread_info parameter, move doc
7075 to header.
7076 * infrun.c (process_event_stop_test): Pass thread to
7077 set_step_info call.
7078 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7079 set_step_info.
7080 (prepare_one_step): Add thread_info parameter, pass it to
7081 set_step_frame and prepare_one_step (recursive) call.
7082 (step_1): Pass thread to prepare_one_step call.
7083 (step_command_fsm::should_stop): Pass thread to
7084 prepare_one_step.
7085 (until_next_fsm): Pass thread to set_step_frame call.
7086 (finish_command): Pass thread to set_step_info call.
7087
b7d64b29
HD
70882020-03-06 Hannes Domani <ssbssa@yahoo.de>
7089
7090 * windows-tdep.c (windows_solib_create_inferior_hook):
7091 Check if inferior is running.
7092
09f2921c
TV
70932020-03-06 Tom de Vries <tdevries@suse.de>
7094
7095 * NEWS: Fix "the the".
7096 * ctfread.c: Same.
7097
fd760e79
TV
70982020-03-06 Tom de Vries <tdevries@suse.de>
7099
7100 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7101
20ea4a60
AB
71022020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7103
7104 * .dir-locals.el: Add a comment referencing the other copies of
7105 this file.
7106
0afbabf0
JB
71072020-03-05 John Baldwin <jhb@FreeBSD.org>
7108
7109 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7110 psargs.
7111
842806cb
TBA
71122020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7113
7114 * .gitattributes: New file.
7115
be1e3d3e
TT
71162020-03-04 Tom Tromey <tom@tromey.com>
7117
7118 * symmisc.c (print_symbol_bcache_statistics)
7119 (print_objfile_statistics): Update.
7120 * symfile.c (allocate_symtab): Use intern.
7121 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7122 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7123 macro_cache>: Remove.
7124 <string_cache>: New member.
7125 (struct objfile) <intern>: New methods.
7126 * elfread.c (elf_symtab_read): Use intern.
7127 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7128 (dwarf2_compute_name, dwarf2_physname)
7129 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7130 names.
7131 (guess_partial_die_structure_name): Update.
7132 (partial_die_info::fixup): Intern name.
7133 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7134 name.
7135 (dwarf2_name): Intern name. Update.
7136 * buildsym.c (buildsym_compunit::get_macro_table): Use
7137 string_cache.
7138
4e7625fd
TT
71392020-03-04 Tom Tromey <tom@tromey.com>
7140
7141 * jit.c (bfd_open_from_target_memory): Make "target" const.
7142 * corefile.c (gnutarget): Now const.
7143 * gdbcore.h (gnutarget): Now const.
7144
46f9f931
HD
71452020-03-04 Hannes Domani <ssbssa@yahoo.de>
7146
7147 * NEWS: Mention support for WOW64 processes.
7148 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7149 (amd64_windows_segment_register_p): Remove static.
7150 (_initialize_amd64_windows_nat): Update.
7151 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7152 * i386-windows-nat.c (context_offset): Update.
7153 (i386_mappings): Rename and remove static.
7154 (i386_windows_segment_register_p): Remove static.
7155 (_initialize_i386_windows_nat): Update.
7156 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7157 (STATUS_WX86_SINGLE_STEP): New macro.
7158 (EnumProcessModulesEx): New macro.
7159 (Wow64SuspendThread): New macro.
7160 (Wow64GetThreadContext): New macro.
7161 (Wow64SetThreadContext): New macro.
7162 (Wow64GetThreadSelectorEntry): New macro.
7163 (windows_set_context_register_offsets): Add static.
7164 (windows_set_segment_register_p): Likewise.
7165 (windows_add_thread): Adapt for WOW64 processes.
7166 (windows_fetch_one_register): Likewise.
7167 (windows_nat_target::fetch_registers): Likewise.
7168 (windows_store_one_register): Likewise.
7169 (display_selector): Likewise.
7170 (display_selectors): Likewise.
7171 (handle_exception): Likewise.
7172 (windows_continue): Likewise.
7173 (windows_nat_target::resume): Likewise.
7174 (windows_add_all_dlls): Likewise.
7175 (do_initial_windows_stuff): Likewise.
7176 (windows_nat_target::attach): Likewise.
7177 (windows_get_exec_module_filename): Likewise.
7178 (windows_nat_target::create_inferior): Likewise.
7179 (windows_xfer_siginfo): Likewise.
7180 (_initialize_loadable): Initialize Wow64SuspendThread,
7181 Wow64GetThreadContext, Wow64SetThreadContext,
7182 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7183 * windows-nat.h (windows_set_context_register_offsets):
7184 Remove declaration.
7185 (windows_set_segment_register_p): Likewise.
7186 (i386_windows_segment_register_p): Add declaration.
7187 (amd64_windows_segment_register_p): Likewise.
7188
440cf44e
LM
71892020-03-04 Luis Machado <luis.machado@linaro.org>
7190
7191 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7192 in "info registers" for AArch64/ARM.
7193
7194 The change caused "info registers" to not print GPR's.
7195
7196 gdb/ChangeLog:
7197
7198 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7199
7200 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7201 when reg->group is empty and reggroup is not.
7202
1009d92f
TT
72032020-03-03 Tom Tromey <tromey@adacore.com>
7204
7205 * dwarf2/frame.c (struct dwarf2_frame_cache)
7206 <checked_tailcall_bottom, entry_cfa_sp_offset,
7207 entry_cfa_sp_offset_p>: Remove members.
7208 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7209 (dwarf2_frame_prev_register): Don't call
7210 dwarf2_tailcall_sniffer_first.
7211 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7212 * frame-unwind.c (add_unwinder): New fuction.
7213 (frame_unwind_init): Use it. Add tailcall unwinder.
7214
5e5d66b6
AB
72152020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7216 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7217
7218 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7219 value should be printed as true.
7220
584cf46d
HD
72212020-03-03 Hannes Domani <ssbssa@yahoo.de>
7222
7223 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7224 (windows_init_abi): Set and use windows_so_ops.
7225
7b973adc
SDJ
72262020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7227
7228 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7229 when verifying if dealing with a convenience variable.
7230
bb7b70ab
LM
72312020-03-03 Luis Machado <luis.machado@linaro.org>
7232
7233 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7234
9822cb57
SM
72352020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7236
7237 * infrun.c (gdbarch_supports_displaced_stepping): New.
7238 (use_displaced_stepping): Break up conditions in smaller pieces.
7239 Use gdbarch_supports_displaced_stepping.
7240 (displaced_step_prepare_throw): Use
7241 gdbarch_supports_displaced_stepping.
7242
63e163f2
AB
72432020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7244
7245 * NEWS: Mention new behaviour of the history filename.
7246 * top.c (write_history_p): Add comment.
7247 (show_write_history_p): Add header comment, give a different
7248 message when history writing is on, but the history filename is
7249 empty.
7250 (history_filename): Add comment.
7251 (history_filename_empty): New function.
7252 (show_history_filename): Add header comment, give a different
7253 message when the filename is empty.
7254 (init_history): Compare history_filename against nullptr, and only
7255 read history if the filename is not empty.
7256 (set_history_filename): Add header comment, and only make
7257 non-empty filenames absolute.
7258 (init_main): Make the filename argument to 'set history filename'
7259 optional.
7260
81b86b97
CB
72612020-03-02 Christian Biesinger <cbiesinger@google.com>
7262
7263 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7264 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7265 (fetch_fp_register): Update.
7266 (fetch_fp_regs): Update.
7267 (store_fp_register): Update.
7268 (store_fp_regs): Update.
7269 (arm_netbsd_nat_target::read_description): New function.
7270 (fetch_elfcore_registers): Update.
7271
24ed6739
AB
72722020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7273
7274 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7275 general_thread if the stop reply is missing a thread-id.
7276 (remote_target::process_stop_reply): Use the first non-exited
7277 thread if the target didn't pass a thread-id.
7278 * infrun.c (do_target_wait): Move call to
7279 switch_to_inferior_no_thread to ....
7280 (do_target_wait_1): ... here.
7281
a84bb2a0
JT
72822020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7283
7284 * debuginfod-support.c: Include defs.h first.
7285
658dadf0
TV
72862020-02-28 Tom de Vries <tdevries@suse.de>
7287
7288 * symfile.c (set_initial_language): Use default language for lookup.
7289
4ebe4877
SM
72902020-02-28 Simon Marchi <simon.marchi@efficios.com>
7291
7292 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7293 reader variable, pass `this` to read_cutu_die_from_dwo.
7294
e5da1139
AM
72952020-02-27 Aaron Merey <amerey@redhat.com>
7296
7297 * source.c (open_source_file): Check for nullptr when computing
7298 srcpath.
7299
317f7127
TT
73002020-02-27 Tom Tromey <tromey@adacore.com>
7301
7302 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7303 member.
7304 (dwarf2_add_field): Don't update nfields.
7305 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7306
3104d9ee
AB
73072020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7308
7309 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7310 abs.
7311
b83470bf
TT
73122020-02-26 Tom Tromey <tom@tromey.com>
7313
7314 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7315 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7316 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7317 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7318 per_cu_data.
7319
edfe0a0c
TT
73202020-02-26 Tom Tromey <tom@tromey.com>
7321
7322 * dwarf2/index-write.c (psym_index_map): Change type.
7323 (add_address_entry_worker, write_one_signatured_type)
7324 (recursively_count_psymbols, recursively_write_psymbols)
7325 (class debug_names, psyms_seen_size, write_gdbindex)
7326 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7327
0d79cdc4
AM
73282020-02-26 Aaron Merey <amerey@redhat.com>
7329
7330 * Makefile.in: Handle optional debuginfod support.
7331 * NEWS: Update.
7332 * README: Add --with-debuginfod summary.
7333 * config.in: Regenerate.
7334 * configure: Regenerate.
7335 * configure.ac: Handle optional debuginfod support.
7336 * debuginfod-support.c: debuginfod helper functions.
7337 * debuginfod-support.h: Ditto.
7338 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7339 summary.
7340 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7341 when a dwz file cannot be found.
7342 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7343 debuginfo file cannot be found.
7344 * source.c (open_source_file): Query debuginfod servers when a
7345 source file cannot be found.
7346 * top.c (print_gdb_configuration): Include
7347 --{with,without}-debuginfod in the output.
7348
b65ce565
JG
73492020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7350
7351 * thread.c (thr_try_catch_cmd): Print thread name.
7352
d4c9a4f8
SM
73532020-02-26 Simon Marchi <simon.marchi@efficios.com>
7354
7355 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7356 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7357 dwarf2_fetch_die_type_sect_off): Move to...
7358 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7359 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7360 dwarf2_fetch_die_type_sect_off): ... here.
7361 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7362 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7363 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7364
0dce4280
TV
73652020-02-26 Tom de Vries <tdevries@suse.de>
7366
7367 PR gdb/25603
7368 * symfile.c (set_initial_language): Exit-early if
7369 language_mode == language_mode_manual.
7370
450a1bfc
SM
73712020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7372
7373 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7374 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7375 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7376
9e80cfa1
AB
73772020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7378
7379 * gdbtypes.c (create_array_type_with_stride): Handle negative
7380 array strides.
7381 * valarith.c (value_subscripted_rvalue): Likewise.
7382
09624f1f
LM
73832020-02-25 Luis Machado <luis.machado@linaro.org>
7384
7385 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7386
8cb5117c
SM
73872020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7388
7389 * loc.h (dwarf2_get_die_type): Move to...
7390 * read.h (dwarf2_get_die_type): ... here.
7391 * read.c (dwarf2_get_die_type): Move doc to header.
7392
c325c44e
JB
73932020-02-25 Joel Brobecker <brobecker@adacore.com>
7394
7395 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7396 'gnulib/Makefile.in' to the list.
7397
4ac93832
TT
73982020-02-24 Tom Tromey <tom@tromey.com>
7399
7400 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7401 Remove.
7402 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7403 XOBNEWVEC.
7404
197400e8
TT
74052020-02-24 Tom Tromey <tom@tromey.com>
7406
7407 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7408 New method.
7409 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7410 (dw2_do_instantiate_symtab, dw2_get_file_names)
7411 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7412
76935768
TT
74132020-02-24 Tom Tromey <tom@tromey.com>
7414
7415 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7416 make_scoped_restore.
7417 (dwarf2_psymtab::read_symtab): Don't clear
7418 reading_partial_symbols.
7419
a88ef40d
TV
74202020-02-24 Tom de Vries <tdevries@suse.de>
7421
7422 PR gdb/25592
7423 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7424
c9af6521
TV
74252020-02-24 Tom de Vries <tdevries@suse.de>
7426
7427 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7428 commands layout next/prev/regs.
7429
5707a07a
TT
74302020-02-22 Tom Tromey <tom@tromey.com>
7431
7432 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7433 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7434
3b0fb49e
TT
74352020-02-22 Tom Tromey <tom@tromey.com>
7436
7437 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7438
283be8bf
TT
74392020-02-22 Tom Tromey <tom@tromey.com>
7440
7441 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7442 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7443 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7444 * tui/tui.c (_initialize_tui): Add usage text.
7445
ca793b96
TT
74462020-02-22 Tom Tromey <tom@tromey.com>
7447
7448 * tui/tui-win.c (tui_set_focus_command)
7449 (tui_set_win_height_command): Use error_no_arg.
7450 (_initialize_tui_win): Update help text.
7451 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7452
432b5c40
TT
74532020-02-22 Tom Tromey <tom@tromey.com>
7454
7455 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7456 * tui/tui-disasm.h (struct tui_disasm_window)
7457 <display_start_addr>: Declare.
7458 * tui/tui-source.h (struct tui_source_window)
7459 <display_start_addr>: Declare.
7460 * tui/tui-winsource.h (struct tui_source_window_base)
7461 <show_source_line, display_start_addr>: New methods.
7462 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7463 Rename and move to protected section.
7464 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7465 (tui_source_window_base::do_erase_source_content): Update.
7466 (tui_source_window_base::show_source_line): Now a method.
7467 (tui_source_window_base::show_source_content)
7468 (tui_source_window_base::tui_source_window_base)
7469 (tui_source_window_base::rerender)
7470 (tui_source_window_base::refill)
7471 (tui_source_window_base::do_scroll_horizontal)
7472 (tui_source_window_base::set_is_exec_point_at)
7473 (tui_source_window_base::update_breakpoint_info)
7474 (tui_source_window_base::update_exec_info): Update.
7475 * tui/tui-source.c (tui_source_window::set_contents)
7476 (tui_source_window::showing_source_p)
7477 (tui_source_window::do_scroll_vertical)
7478 (tui_source_window::location_matches_p)
7479 (tui_source_window::line_is_displayed): Update.
7480 (tui_source_window::display_start_addr): New method.
7481 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7482 (tui_disasm_window::do_scroll_vertical)
7483 (tui_disasm_window::location_matches_p): Update.
7484 (tui_disasm_window::display_start_addr): New method.
7485
01b1af32
TT
74862020-02-22 Tom Tromey <tom@tromey.com>
7487
7488 * NEWS: Add entry for gdb.register_window_type.
7489 * tui/tui-layout.h (window_factory): New typedef.
7490 (tui_register_window): Declare.
7491 * tui/tui-layout.c (saved_tui_windows): New global.
7492 (tui_apply_current_layout): Use it.
7493 (tui_register_window): New function.
7494 * python/python.c (do_start_initialization): Call
7495 gdbpy_initialize_tui.
7496 (python_GdbMethods): Add "register_window_type" function.
7497 * python/python-internal.h (gdbpy_register_tui_window)
7498 (gdbpy_initialize_tui): Declare.
7499 * python/py-tui.c: New file.
7500 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7501
fc96d20b
TT
75022020-02-22 Tom Tromey <tom@tromey.com>
7503
7504 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7505
935c78c0
TT
75062020-02-22 Tom Tromey <tom@tromey.com>
7507
7508 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7509 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7510 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7511 (tui_set_win_focus_to): Move from tui-win.c.
7512
0240c8f1
TT
75132020-02-22 Tom Tromey <tom@tromey.com>
7514
7515 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7516 functions.
7517 (known_window_types): New global.
7518 (tui_get_window_by_name): Reimplement.
7519 (initialize_known_windows): New function.
7520 (validate_window_name): Rewrite.
7521 (_initialize_tui_layout): Call initialize_known_windows.
7522
fdb01f0c
TT
75232020-02-22 Tom Tromey <tom@tromey.com>
7524
7525 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7526 Remove constants.
7527 * tui/tui-winsource.h (struct tui_source_window_base)
7528 <tui_source_window_base>: Remove parameter.
7529 * tui/tui-winsource.c
7530 (tui_source_window_base::tui_source_window_base): Remove
7531 parameter.
7532 (tui_source_window_base::refill): Update.
7533 * tui/tui-stack.h (struct tui_locator_window)
7534 <tui_locator_window>: Update.
7535 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7536 Default the constructor.
7537 * tui/tui-regs.h (struct tui_data_item_window)
7538 <tui_data_item_window>: Default the constructor.
7539 (struct tui_data_window) <tui_data_window>: Likewise.
7540 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7541 Default the constructor.
7542 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7543 Default the constructor.
7544 <type>: Remove.
7545 (struct tui_win_info) <tui_win_info>: Default the constructor.
7546 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7547 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7548 Default the constructor.
7549
865a5aec
TT
75502020-02-22 Tom Tromey <tom@tromey.com>
7551
7552 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7553 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7554 * tui/tui-win.c (tui_resize_all): Don't call
7555 tui_delete_invisible_windows.
7556 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7557 done.
7558 (tui_set_layout): Update.
7559 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7560 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7561 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7562
e098d18c
TT
75632020-02-22 Tom Tromey <tom@tromey.com>
7564
7565 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7566 correctly.
7567
eb9c8874
TT
75682020-02-22 Tom Tromey <tom@tromey.com>
7569
7570 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7571
7eed1a8e
TT
75722020-02-22 Tom Tromey <tom@tromey.com>
7573
7574 * tui/tui-winsource.h (struct tui_source_window_iterator)
7575 <inner_iterator>: New etytypedef.
7576 <tui_source_window_iterator>: Take "end" parameter.
7577 <tui_source_window_iterator>: Take iterator.
7578 <operator*, advance>: Update.
7579 <m_iter>: Change type.
7580 <m_end>: New field.
7581 (struct tui_source_windows) <begin, end>: Update.
7582 * tui/tui-layout.c (tui_windows): New global.
7583 (tui_apply_current_layout): Clear tui_windows.
7584 (tui_layout_window::apply): Update tui_windows.
7585 * tui/tui-data.h (tui_windows): Declare.
7586 (all_tui_windows): Now inline function.
7587 (class tui_window_iterator, struct all_tui_windows): Remove.
7588
7c043ba6
TT
75892020-02-22 Tom Tromey <tom@tromey.com>
7590
7591 PR tui/17850:
7592 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7593 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7594 "height" argument.
7595 (class tui_layout_window) <get_sizes>: Likewise.
7596 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7597 argument.
7598 <get_sizes>: Add "height" argument.
7599 <m_vertical>: New field.
7600 * tui/tui-layout.c (tui_layout_split::clone): Update.
7601 (tui_layout_split::get_sizes): Add "height" argument.
7602 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7603 (tui_new_layout_command): Parse "-horizontal".
7604 (_initialize_tui_layout): Update help string.
7605 (tui_layout_split::specification): Add "-horizontal" when needed.
7606 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7607 argument.
7608 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7609 New methods.
7610
6bc56648
TT
76112020-02-22 Tom Tromey <tom@tromey.com>
7612
7613 * tui/tui-layout.h (enum tui_adjust_result): New.
7614 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7615 (class tui_layout_window) <adjust_size>: Return
7616 tui_adjust_result. Rewrite.
7617 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7618 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7619
c22fef7e
TT
76202020-02-22 Tom Tromey <tom@tromey.com>
7621
7622 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7623 parameter and return types.
7624 (class tui_layout_base) <specification>: Add "depth".
7625 (class tui_layout_window) <specification>: Add "depth".
7626 (class tui_layout_split) <specification>: Add "depth".
7627 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7628 and return types.
7629 (tui_new_layout_command): Parse sub-layouts.
7630 (_initialize_tui_layout): Update help string.
7631 (tui_layout_window::specification): Add "depth".
7632 (add_layout_command): Update.
7633
ee325b61
TT
76342020-02-22 Tom Tromey <tom@tromey.com>
7635
7636 * NEWS: Add "tui new-layout" item.
7637 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7638 Add new-layout command to help text.
7639 (validate_window_name): New function.
7640 (tui_new_layout_command): New function.
7641 (_initialize_tui_layout): Register "new-layout".
7642 (tui_layout_window::specification): New method.
7643 (tui_layout_window::specification): New method.
7644 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7645 method.
7646 (class tui_layout_window) <specification>: New method.
7647 (class tui_layout_split) <specification>: New method.
7648
416eb92d
TT
76492020-02-22 Tom Tromey <tom@tromey.com>
7650
7651 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7652 * tui/tui-win.c (window_name_completer): Update comment.
7653 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7654 Declare method.
7655 (class tui_layout_window) <replace_window>: Likewise.
7656 (class tui_layout_split) <replace_window>: Likewise.
7657 (tui_set_layout): Don't declare.
7658 (tui_set_initial_layout): Declare function.
7659 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7660 (asm_regs_layout): New globals.
7661 (tui_current_layout, show_layout): Remove.
7662 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7663 (find_layout, tui_apply_layout): New function.
7664 (layout_completer): Remove.
7665 (tui_next_layout): Reimplement.
7666 (tui_next_layout_command): New function.
7667 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7668 (tui_regs_layout): Reimplement.
7669 (tui_regs_layout_command): New function.
7670 (extract_display_start_addr): Rewrite.
7671 (next_layout, prev_layout): Remove.
7672 (tui_layout_window::replace_window): New method.
7673 (tui_layout_split::replace_window): New method.
7674 (destroy_layout): New function.
7675 (layout_list): New global.
7676 (add_layout_command): New function.
7677 (initialize_layouts): Update.
7678 (tui_layout_command): New function.
7679 (_initialize_tui_layout): Install "layout" commands.
7680 * tui/tui-data.h (enum tui_layout_type): Remove.
7681 (tui_current_layout): Don't declare.
7682
0dbc2fc7
TT
76832020-02-22 Tom Tromey <tom@tromey.com>
7684
7685 * tui/tui-regs.c (tui_reg_layout): Remove.
7686 (tui_reg_command): Use tui_regs_layout.
7687 * tui/tui-layout.h (tui_reg_command): Declare.
7688 * tui/tui-layout.c (tui_reg_command): New function.
7689
5afe342e
TT
76902020-02-22 Tom Tromey <tom@tromey.com>
7691
7692 * tui/tui.c (tui_rl_delete_other_windows): Call
7693 tui_remove_some_windows.
7694 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7695 Declare method.
7696 (class tui_layout_window) <remove_windows>: New method.
7697 (class tui_layout_split) <remove_windows>: Declare.
7698 (tui_remove_some_windows): Declare.
7699 * tui/tui-layout.c (tui_remove_some_windows): New function.
7700 (tui_layout_split::remove_windows): New method.
7701
427326a8
TT
77022020-02-22 Tom Tromey <tom@tromey.com>
7703
7704 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7705 * tui/tui-layout.h (tui_next_layout): Declare.
7706 * tui/tui-layout.c (tui_next_layout): New function.
7707
3fe12b6d
TT
77082020-02-22 Tom Tromey <tom@tromey.com>
7709
7710 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7711 correct coordinates.
7712
59b8b5d2
TT
77132020-02-22 Tom Tromey <tom@tromey.com>
7714
7715 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7716 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7717 DATA_WIN case.
7718
2a3d458b
TT
77192020-02-22 Tom Tromey <tom@tromey.com>
7720
7721 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7722 TUI_DISASM_WIN, not tui_win_list.
7723
3f0cbb04
TT
77242020-02-22 Tom Tromey <tom@tromey.com>
7725
7726 * valprint.c (generic_val_print_enum_1)
7727 (val_print_type_code_flags): Style member names.
7728 * rust-lang.c (val_print_struct, rust_print_enum)
7729 (rust_print_struct_def, rust_internal_print_type): Style member
7730 names.
7731 * p-valprint.c (pascal_object_print_value_fields): Style member
7732 names. Only call fprintf_symbol_filtered for static members.
7733 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7734 * f-valprint.c (f_val_print): Style member names.
7735 * f-typeprint.c (f_type_print_base): Style member names.
7736 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7737 call fprintf_symbol_filtered for static members.
7738 (cp_print_class_member): Style member names.
7739 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7740 member names.
7741 * ada-valprint.c (ada_print_scalar): Style enum names.
7742 (ada_val_print_enum): Likewise.
7743 * ada-typeprint.c (print_enum_type): Style enum names.
7744
d4d947ae
TT
77452020-02-21 Tom Tromey <tom@tromey.com>
7746
7747 * psympriv.h (struct partial_symtab): Update comment.
7748
e94e944b
TT
77492020-02-21 Tom Tromey <tromey@adacore.com>
7750
7751 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7752 type is CORE_ADDR.
7753
1eb73179
TV
77542020-02-21 Tom de Vries <tdevries@suse.de>
7755
7756 PR gdb/25534
7757 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7758 if dependencies[i]->user != NULL.
7759
4f180d53
AT
77602020-02-21 Ali Tamur <tamur@google.com>
7761
7762 * dwarf2/read.c (dwarf2_name): Add null check.
7763
22b6cd70
TT
77642020-02-20 Tom Tromey <tom@tromey.com>
7765
7766 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7767 ">=", in binary search.
7768 (dwarf2_find_containing_comp_unit): New overload.
7769 (run_test): New self-test.
7770 (_initialize_dwarf2_read): Register new test.
7771
bd0cf5a6
NC
77722020-02-20 Nelson Chu <nelson.chu@sifive.com>
7773
7774 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7775 * riscv-tdep.h: Likewise.
7776 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7777 rv32-only CSR.
7778 * features/riscv/64bit-csr.xml: Regenerated.
7779
3f702acd
SDJ
77802020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7781 Tom Tromey <tom@tromey.com>
7782
7783 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7784 of 'fputc_unfiltered'.
7785 (putchar_unfiltered): Call 'fputc_unfiltered'.
7786 (fputc_unfiltered): Call 'fputs_unfiltered'.
7787
d13c7322
AB
77882020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7789
7790 * config.in: Regenerate.
7791 * configure: Regenerate.
7792 * configure.ac: Add --with-python-libdir option.
7793 * main.c: Use WITH_PYTHON_LIBDIR.
7794
869d8950
TT
77952020-02-19 Tom Tromey <tom@tromey.com>
7796
7797 * symtab.c (general_symbol_info::compute_and_set_names): Use
7798 obstack_strndup. Simplify call to symbol_set_demangled_name.
7799
298e9637
SM
78002020-02-19 Simon Marchi <simon.marchi@efficios.com>
7801
7802 * dwarf2/read.c (allocate_signatured_type_table,
7803 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7804 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7805 Remove objfile parameter, update all callers.
7806
08410482
DE
78072020-02-19 Doug Evans <dje@google.com>
7808
7809 PR rust/25535
7810 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7811 rust_enum_variant calculation.
7812
dfdeeca1
TT
78132020-02-19 Tom Tromey <tromey@adacore.com>
7814
7815 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7816
2ef5453b
TT
78172020-02-19 Tom Tromey <tromey@adacore.com>
7818
7819 * ada-lang.c (cache_symbol): Use obstack_strdup.
7820
9f1528a1
AB
78212020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7822
7823 * configure: Regenerate.
7824
d3c22fa8
TT
78252020-02-19 Tom Tromey <tromey@adacore.com>
7826
7827 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7828 NULL check.
7829
bf84f706
MR
78302020-02-19 Maciej W. Rozycki <macro@wdc.com>
7831
7832 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7833
d1c9b20f
AB
78342020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7835
7836 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7837 if GDBSERVER is not defined.
7838 (riscv_tdesc_cache): Likewise, also store const target_desc.
7839 (STATIC_IN_GDB): Define.
7840 (riscv_create_target_description): Update declaration with
7841 STATIC_IN_GDB.
7842 (riscv_lookup_target_description): New function, only define if
7843 GDBSERVER is not defined.
7844 * arch/riscv.h (riscv_create_target_description): Declare only
7845 when GDBSERVER is defined.
7846 (riscv_lookup_target_description): New declaration when GDBSERVER
7847 is not defined.
7848 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7849 (riscv_linux_read_features): ...this, and return
7850 riscv_gdbarch_features instead of target_desc.
7851 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7852 (riscv_linux_read_description): Rename to...
7853 (riscv_linux_read_features): ...this.
7854 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7855 Update to use riscv_gdbarch_features and
7856 riscv_lookup_target_description.
7857 * riscv-tdep.c (riscv_find_default_target_description): Use
7858 riscv_lookup_target_description instead of
7859 riscv_create_target_description.
7860
373d7ac0
SM
78612020-02-18 Simon Marchi <simon.marchi@efficios.com>
7862
7863 * valprint.c (generic_val_print_enum_1): When printing a flag
7864 enum with value 0 and there is no enumerator with value 0, print
7865 just "0" instead of "(unknown: 0x0)".
7866
b29a2df0
SM
78672020-02-18 Simon Marchi <simon.marchi@efficios.com>
7868
7869 * valprint.c (generic_val_print_enum_1): Print unknown part of
7870 flag enum in hex.
7871
6740f0cc
SM
78722020-02-18 Simon Marchi <simon.marchi@efficios.com>
7873
7874 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7875 flag enums to contain duplicate enumerators.
7876 * valprint.c (generic_val_print_enum_1): Update comment.
7877
edd45eb0
SM
78782020-02-18 Simon Marchi <simon.marchi@efficios.com>
7879
7880 * dwarf2/read.c: Include "count-one-bits.h".
7881 (update_enumeration_type_from_children): If an enumerator has
7882 multiple bits set, don't treat the enumeration as a "flag enum".
7883 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7884 of flag enums have 0 or 1 bit set.
7885
6d0cf446
BE
78862020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7887
7888 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7889 conversion.
7890 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7891 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7892 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7893 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7894 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7895
7001c1b7
SM
78962020-02-18 Simon Marchi <simon.marchi@efficios.com>
7897
7898 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7899
fdb61c6c
SM
79002020-02-14 Simon Marchi <simon.marchi@efficios.com>
7901
7902 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7903 displaced_step_closure_up.
7904 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7905 (struct displaced_step_closure_up):
7906 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7907 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7908 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7909 Likewise.
7910 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7911 * gdbarch.c, gdbarch.h: Re-generate.
7912 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7913 displaced_step_closure_up.
7914 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7915 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7916 * infrun.h (displaced_step_closure_up): New type alias.
7917 (struct displaced_step_inferior_state) <step_closure>: Change
7918 type to displaced_step_closure_up.
7919 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7920 displaced_step_closure_up.
7921 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7922
a4a38eb4
TT
79232020-02-14 Tom Tromey <tom@tromey.com>
7924
7925 * minidebug.c (gnu_debug_key): New global.
7926 (find_separate_debug_file_in_section): Use it.
7927
e8217e61
SM
79282020-02-14 Simon Marchi <simon.marchi@efficios.com>
7929
7930 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
7931 std::unique_ptr.
7932 * gdbarch.c: Re-generate.
7933 * gdbarch.h: Re-generate.
7934 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
7935 change.
7936 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
7937 type to std::unique_ptr.
7938 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7939 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7940 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7941 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7942 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
7943 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7944 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7945 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7946 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7947
d8d83535
SM
79482020-02-14 Simon Marchi <simon.marchi@efficios.com>
7949
7950 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
7951 std::unique_ptr.
7952 (displaced_step_clear): Rename to...
7953 (displaced_step_reset): ... this. Just call displaced->reset ().
7954 (displaced_step_clear_cleanup): Rename to...
7955 (displaced_step_reset_cleanup): ... this.
7956 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
7957 (displaced_step_fixup): Likewise.
7958 (resume_1): Likewise.
7959 (handle_inferior_event): Restore child's memory before calling
7960 displaced_step_fixup on the parent.
7961 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
7962 to std::unique_ptr.
7963 <step_closure>: Change type to std::unique_ptr.
7964
5f661e03
SM
79652020-02-14 Simon Marchi <simon.marchi@efficios.com>
7966
7967 * arm-tdep.c: Include count-one-bits.h.
7968 (cleanup_block_store_pc): Use count_one_bits.
7969 (cleanup_block_load_pc): Use count_one_bits.
7970 (arm_copy_block_xfer): Use count_one_bits.
7971 (thumb2_copy_block_xfer): Use count_one_bits.
7972 (thumb_copy_pop_pc_16bit): Use count_one_bits.
7973 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
7974 (thumb_get_next_pcs_raw): Use count_one_bits.
7975 (arm_get_next_pcs_raw): Use count_one_bits_l.
7976 * arch/arm.c (bitcount): Remove.
7977 * arch/arm.h (bitcount): Remove.
7978
8084e579
TT
79792020-02-14 Tom Tromey <tromey@adacore.com>
7980
7981 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
7982 Update.
7983 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
7984 * dwarf2/loc.c (call_site_find_chain_1): Return
7985 unique_xmalloc_ptr.
7986 (call_site_find_chain): Likewise.
7987
258bf0ee
RB
79882020-02-14 Richard Biener <rguenther@suse.de>
7989
7990 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
7991 on expression with division operators.
7992
f98a8458
AKS
79932020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7994
7995 * MAINTAINERS (Write After Approval): Adding myself.
7996
d1437c0e
TT
79972020-02-12 Tom Tromey <tom@tromey.com>
7998
7999 * event-loop.c (event_data, gdb_event, event_handler_func):
8000 Remove.
8001
3d4560f7
TT
80022020-02-12 Tom Tromey <tom@tromey.com>
8003
8004 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8005 (dwarf2_frame_objfile_data): Add comment.
8006 (find_comp_unit, set_comp_unit): New functions.
8007 (dwarf2_frame_find_fde): Use find_comp_unit.
8008 (dwarf2_build_frame_info): Use set_comp_unit.
8009
21982304
TT
80102020-02-12 Tom Tromey <tom@tromey.com>
8011
8012 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8013 (comp_unit): Don't initialize objfile.
8014 (execute_cfa_program): Add text_offset parameter.
8015 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8016 (dwarf2_frame_cache): Update.
8017 (dwarf2_build_frame_info): Don't set "objfile" member.
8018
4debb237
TT
80192020-02-12 Tom Tromey <tom@tromey.com>
8020
8021 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8022 (decode_frame_entry): Likewise.
8023 (dwarf2_build_frame_info): Update.
8024
0d404d44
TT
80252020-02-12 Tom Tromey <tom@tromey.com>
8026
8027 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8028 (decode_frame_entry_1): Use the comp_unit obstack.
8029
a7a3ae5c
TT
80302020-02-12 Tom Tromey <tom@tromey.com>
8031
8032 * dwarf2/frame.c (struct comp_unit): Add initializers and
8033 constructor.
8034 (dwarf2_frame_objfile_data): Store a comp_unit.
8035 (dwarf2_frame_find_fde): Update.
8036 (dwarf2_build_frame_info): Use "new".
8037
a9d65418
TT
80382020-02-12 Tom Tromey <tom@tromey.com>
8039
8040 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8041 (dwarf2_fde_table): Typedef for std::vector.
8042 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8043 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8044 (decode_frame_entry): Update.
8045 (dwarf2_build_frame_info): Use "new".
8046
7559c217
CB
80472020-02-12 Christian Biesinger <cbiesinger@google.com>
8048
8049 * arm-tdep.c (arm_gdbarch_init): Update.
8050 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8051 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8052 have_neon, is_m>: Change to bool.
8053
aeefc73c
CB
80542020-02-12 Christian Biesinger <cbiesinger@google.com>
8055
8056 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8057
d27b8e5f
TT
80582020-02-12 Tom Tromey <tom@tromey.com>
8059
8060 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8061
cd5900f3
HD
80622020-02-12 Hannes Domani <ssbssa@yahoo.de>
8063
8064 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8065 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8066
f056b22b
TT
80672020-02-11 Tom Tromey <tom@tromey.com>
8068
8069 * psymtab.h: Update comment.
8070
f92ff6b5
TT
80712020-02-11 Tom Tromey <tom@tromey.com>
8072
8073 * gdb_obstack.h (struct auto_obstack): Use
8074 DISABLE_COPY_AND_ASSIGN.
8075
3fd6912b
TT
80762020-02-11 Tom Tromey <tom@tromey.com>
8077
8078 * dwarf2/frame.h (struct objfile): Don't forward declare.
8079
69ed9b74
CB
80802020-02-11 Christian Biesinger <cbiesinger@google.com>
8081
8082 * cris-tdep.c (cris_supply_gregset): Change signature to match
8083 what struct regset expects.
8084 (cris_regset): New struct.
8085 (fetch_core_registers): Remove.
8086 (cris_iterate_over_regset_sections): New function.
8087 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8088 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8089
bda874f6
CB
80902020-02-11 Christian Biesinger <cbiesinger@google.com>
8091
8092 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8093 registers.
8094
754e1564
CB
80952020-02-11 Christian Biesinger <cbiesinger@google.com>
8096
8097 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8098
8ddd8e0e
SM
80992020-02-11 Simon Marchi <simon.marchi@efficios.com>
8100
8101 * configure: Re-generate.
8102
898e7f60
SM
81032020-02-11 Simon Marchi <simon.marchi@efficios.com>
8104
8105 * configure: Re-generate.
8106
58df732b
SM
81072020-02-11 Simon Marchi <simon.marchi@efficios.com>
8108
8109 * acinclude: Update warning.m4 path.
8110 * warning.m4: Move to gdbsupport.
8111
da5bd37e
TT
81122020-02-11 Tom Tromey <tromey@adacore.com>
8113
8114 * remote.c (remote_console_output): Update.
8115 * printcmd.c (printf_command): Update.
8116 * event-loop.c (gdb_wait_for_event): Update.
8117 * linux-nat.c (sigchld_handler): Update.
8118 * remote-sim.c (gdb_os_write_stdout): Update.
8119 (gdb_os_flush_stdout): Update.
8120 (gdb_os_flush_stderr): Update.
8121 (gdb_os_write_stderr): Update.
8122 * exceptions.c (print_exception): Update.
8123 * remote-fileio.c (remote_fileio_func_read): Update.
8124 (remote_fileio_func_write): Update.
8125 * tui/tui.c (tui_enable): Update.
8126 * tui/tui-interp.c (tui_interp::init): Update.
8127 * utils.c (init_page_info): Update.
8128 (putchar_unfiltered, fputc_unfiltered): Update.
8129 (gdb_flush): Update.
8130 (emit_style_escape): Update.
8131 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8132 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8133 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8134 (stderr_file::write): Update.
8135 (stderr_file::puts): Update.
8136 * ui-file.h (ui_file_isatty, ui_file_write)
8137 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8138 (ui_file_puts): Don't declare.
8139
85f0dd3c
TV
81402020-02-10 Tom de Vries <tdevries@suse.de>
8141
8142 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8143 sentinel to char *.
8144
2e927613
TV
81452020-02-09 Tom de Vries <tdevries@suse.de>
8146
8147 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8148 filename if it matches "<artificial>".
8149
6bafc845
HD
81502020-02-09 Hannes Domani <ssbssa@yahoo.de>
8151
8152 * windows-tdep.c (struct enum_value_name): New struct.
8153 (create_enum): New function.
8154 (windows_get_siginfo_type): Create and use enum types.
8155
7928d571
HD
81562020-02-09 Hannes Domani <ssbssa@yahoo.de>
8157
8158 * NEWS: Mention $_siginfo support for Windows.
8159 * windows-nat.c (handle_exception): Set siginfo_er.
8160 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8161 (windows_xfer_siginfo): New function.
8162 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8163 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8164 (init_windows_gdbarch_data): New function.
8165 (get_windows_gdbarch_data): New function.
8166 (windows_get_siginfo_type): New function.
8167 (windows_init_abi): Register windows_get_siginfo_type.
8168 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8169
6751ebae
TT
81702020-02-08 Tom Tromey <tom@tromey.com>
8171
8172 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8173 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8174 <keep>: Declare method.
8175 <m_keep>: Remove member.
8176 <~cutu_reader>: Remove.
8177 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8178 (cutu_reader::cutu_reader): Update.
8179 (cutu_reader::keep): Rename from ~cutu_reader.
8180 (process_psymtab_comp_unit, build_type_psymtabs_1)
8181 (process_skeletonless_type_unit, load_partial_comp_unit)
8182 (load_full_comp_unit, dwarf2_read_addr_index)
8183 (read_signatured_type): Update.
8184
135f5437
TT
81852020-02-08 Tom Tromey <tom@tromey.com>
8186
8187 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8188 "want_partial_unit" parameter.
8189 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8190 Inline check for DW_TAG_partial_unit.
8191 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8192
9f66ff1c
TT
81932020-02-08 Tom Tromey <tom@tromey.com>
8194
8195 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8196 read.c.
8197 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8198 read.c.
8199
c8a7a66f
TT
82002020-02-08 Tom Tromey <tom@tromey.com>
8201
8202 * dwarf2/read.c (read_address): Move to comp-unit.c.
8203 (dwarf2_rnglists_process, dwarf2_ranges_process)
8204 (read_attribute_value, dwarf_decode_lines_1)
8205 (var_decode_location, decode_locdesc): Update.
8206 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8207 read.c. Remove "cu" parameter.
8208 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8209 method.
8210
8266302d
TT
82112020-02-08 Tom Tromey <tom@tromey.com>
8212
8213 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8214 (read_indirect_line_string): Update.
8215 * dwarf2/comp-unit.c (read_offset): Remove.
8216 (read_comp_unit_head): Update.
8217 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8218 method.
8219 (read_offset): Don't declare.
8220
4057dfde
TT
82212020-02-08 Tom Tromey <tom@tromey.com>
8222
8223 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8224 * dwarf2/read.c (struct comp_unit_head): Move to
8225 dwarf2/comp-unit.h.
8226 (enum class rcuh_kind): Move to comp-unit.h.
8227 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8228 (read_comp_unit_head, error_check_comp_unit_head)
8229 (read_and_check_comp_unit_head): Move to comp-unit.c.
8230 (read_offset, dwarf_unit_type_name): Likewise.
8231 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8232 (cutu_reader::cutu_reader, read_call_site_scope)
8233 (find_partial_die, follow_die_offset): Update.
8234 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8235
24aa364d
TT
82362020-02-08 Tom Tromey <tom@tromey.com>
8237
8238 * dwarf2/read.c (read_offset_1): Move to leb.c.
8239 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8240 (dwarf_decode_macro_bytes): Update.
8241 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8242 * dwarf2/leb.h (read_offset): Declare.
8243
2c7d5afc
TT
82442020-02-08 Tom Tromey <tom@tromey.com>
8245
8246 * dwarf2/read.c (dwarf2_section_size): Remove.
8247 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8248 Update.
8249 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8250
4075cb26
TT
82512020-02-08 Tom Tromey <tom@tromey.com>
8252
8253 * dwarf2/read.c (read_initial_length): Move to leb.c.
8254 * dwarf2/leb.h (read_initial_length): Declare.
8255 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8256 handle_nonstd parameter.
8257 * dwarf2/frame.c (read_initial_length): Remove.
8258 (decode_frame_entry_1): Update.
8259
09ba997f
TT
82602020-02-08 Tom Tromey <tom@tromey.com>
8261
8262 * dwarf2/loc.c (dwarf2_find_location_expression)
8263 (dwarf_evaluate_loc_desc::get_tls_address)
8264 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8265 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8266 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8267 (dwarf2_compile_property_to_c)
8268 (dwarf2_loc_desc_get_symbol_read_needs)
8269 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8270 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8271 (loclist_describe_location, loclist_tracepoint_var_ref)
8272 (loclist_generate_c_location): Update.
8273 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8274 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8275 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8276 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8277 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8278 (dwarf2_per_cu_data::addr_size)
8279 (dwarf2_per_cu_data::ref_addr_size)
8280 (dwarf2_per_cu_data::text_offset)
8281 (dwarf2_per_cu_data::addr_type): Now methods.
8282 (per_cu_header_read_in): Make per_cu "const".
8283 (dwarf2_version): Remove.
8284 (dwarf2_per_cu_data::int_type): Now a method.
8285 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8286 (set_die_type, read_array_type, read_subrange_index_type)
8287 (read_tag_string_type, read_subrange_type): Update.
8288 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8289 offset_size, ref_addr_size, text_offset, addr_type, version,
8290 objfile, int_type, addr_sized_int_type>: Declare methods.
8291
96c738c0
TT
82922020-02-08 Tom Tromey <tom@tromey.com>
8293
8294 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8295 Move earlier.
8296
8fdd972c
TT
82972020-02-08 Tom Tromey <tom@tromey.com>
8298
8299 * dwarf2/read.h (dwarf_line_debug): Declare.
8300 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8301 * dwarf2/read.c: Move line_header code to new files.
8302 (dwarf_line_debug): No longer static.
8303 * dwarf2/line-header.c: New file.
8304 * dwarf2/line-header.h: New file.
8305
03075812
TT
83062020-02-08 Tom Tromey <tom@tromey.com>
8307
8308 * dwarf2/read.c (struct line_header) <file_full_name,
8309 file_file_name>: Return unique_xmalloc_ptr.
8310 (line_header::file_file_name): Update.
8311 (line_header::file_full_name): Update.
8312 (dw2_get_file_names_reader): Update.
8313 (macro_start_file): Update.
8314
bb822404
TT
83152020-02-08 Tom Tromey <tom@tromey.com>
8316
8317 * dwarf2/read.c (struct line_header) <file_full_name,
8318 file_file_name>: Declare methods.
8319 (dw2_get_file_names_reader): Update.
8320 (file_file_name): Now a method.
8321 (file_full_name): Likewise.
8322 (macro_start_file): Update.
8323
009b64fc
TT
83242020-02-08 Tom Tromey <tom@tromey.com>
8325
8326 * dwarf2/read.c (dwarf_always_disassemble)
8327 (show_dwarf_always_disassemble): Move to loc.c.
8328 (_initialize_dwarf2_read): Move "always-disassemble" registration
8329 to loc.c.
8330 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8331 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8332 static.
8333 (show_dwarf_always_disassemble): Move from read.c.
8334 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8335
5895093f
TT
83362020-02-08 Tom Tromey <tom@tromey.com>
8337
8338 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8339 (create_quick_file_names_table): Return htab_up.
8340 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8341 Update.
8342 * dwarf2/read.h (struct dwarf2_per_objfile)
8343 <quick_file_names_table>: Now htab_up.
8344
b3b32279
TT
83452020-02-08 Tom Tromey <tom@tromey.com>
8346
8347 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8348
1d33d811
TT
83492020-02-08 Tom Tromey <tom@tromey.com>
8350
8351 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8352 Rewrite.
8353 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8354 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8355 (abbrev_table::abbrev_table): No longer inline.
8356 (ABBREV_HASH_SIZE): Remove.
8357 (abbrev_table::m_abbrevs): Now an htab_up.
8358
86de1d91
TT
83592020-02-08 Tom Tromey <tom@tromey.com>
8360
8361 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8362 (cutu_reader): Update.
8363 (build_type_psymtabs_1): Update.
8364 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8365 (abbrev_table::alloc_abbrev): Update.
8366 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8367 (abbrev_table::read): New static method, renamed from
8368 abbrev_table_read_table.
8369 (abbrev_table::alloc_abbrev)
8370 (abbrev_table::add_abbrev): Now private.
8371 (abbrev_table::abbrev_table): Now private.
8372 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8373
0335378b
TT
83742020-02-08 Tom Tromey <tom@tromey.com>
8375
8376 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8377 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8378 htab_up.
8379
48b490f2
TT
83802020-02-08 Tom Tromey <tom@tromey.com>
8381
8382 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8383 htab_up.
8384 (lookup_dwo_unit_in_dwp): Update.
8385 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8386 on obstack.
8387
bc68fb19
TT
83882020-02-08 Tom Tromey <tom@tromey.com>
8389
8390 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8391 obstack.
8392
d15acc42
TT
83932020-02-08 Tom Tromey <tom@tromey.com>
8394
8395 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8396 line_header_hash.
8397 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8398 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8399 Change type to htab_up.
8400
eaa5fa8b
TT
84012020-02-08 Tom Tromey <tom@tromey.com>
8402
8403 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8404 htab_up. Don't allocate on obstack.
8405 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8406 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8407 Change type to htab_up.
8408
b0b6a987
TT
84092020-02-08 Tom Tromey <tom@tromey.com>
8410
8411 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8412 Change type to htab_up.
8413 * dwarf2/read.c (create_signatured_type_table_from_index)
8414 (create_signatured_type_table_from_debug_names)
8415 (create_all_type_units, add_type_unit)
8416 (lookup_dwo_signatured_type, lookup_signatured_type)
8417 (process_skeletonless_type_unit): Update.
8418 (create_debug_type_hash_table, create_debug_types_hash_table):
8419 Change type of types_htab.
8420 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8421 htab_up. Don't allocate on obstack.
8422 (create_cus_hash_table): Change type of cus_htab parameter.
8423 (struct dwo_file) <cus, tus>: Now htab_up.
8424 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8425 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8426 (queue_and_load_all_dwo_tus): Update.
8427 * dwarf2/index-write.c (write_gdbindex): Update.
8428 (write_debug_names): Update.
8429
39856def
TT
84302020-02-08 Tom Tromey <tom@tromey.com>
8431
8432 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8433 dwarf2/read.c. Remove "next" member. Add constructor ntad
8434 destructor.
8435 (struct dwarf2_per_objfile) <queue>: New member.
8436 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8437 dwarf2/read.h.
8438 (dwarf2_queue, dwarf2_queue_tail): Remove.
8439 (class dwarf2_queue_guard): Add parameter to constructor. Use
8440 DISABLE_COPY_AND_ASSIGN.
8441 <m_per_objfile>: New member.
8442 <~dwarf2_queue_guard>: Rewrite.
8443 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8444 Update.
8445 (~dwarf2_queue_item): New.
8446
3e225074
TT
84472020-02-08 Tom Tromey <tom@tromey.com>
8448
8449 * dwarf2/read.c (struct die_info) <has_children>: New member.
8450 (dw2_get_file_names_reader): Remove has_children.
8451 (dw2_get_file_names): Update.
8452 (read_cutu_die_from_dwo): Remove has_children.
8453 (cutu_reader::init_tu_and_read_dwo_dies)
8454 (cutu_reader::cutu_reader): Update.
8455 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8456 Remove has_children.
8457 (build_type_psymtabs_1, process_skeletonless_type_unit)
8458 (load_partial_comp_unit, load_full_comp_unit): Update.
8459 (create_dwo_cu_reader): Remove has_children.
8460 (create_cus_hash_table, read_die_and_children): Update.
8461 (read_full_die_1,read_full_die): Remove has_children.
8462 (read_signatured_type): Update.
8463 (class cutu_reader) <has_children>: Remove.
8464
82ca8957
TT
84652020-02-08 Tom Tromey <tom@tromey.com>
8466
8467 * dwarf2/expr.c: Rename from dwarf2expr.c.
8468 * dwarf2/expr.h: Rename from dwarf2expr.h.
8469 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8470 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8471 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8472 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8473 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8474 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8475 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8476 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8477 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8478 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8479 * dwarf2/loc.c: Rename from dwarf2loc.c.
8480 * dwarf2/loc.h: Rename from dwarf2loc.h.
8481 * dwarf2/read.c: Rename from dwarf2read.c.
8482 * dwarf2/read.h: Rename from dwarf2read.h.
8483 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8484 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8485 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8486 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8487 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8488 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8489 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8490 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8491 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8492 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8493 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8494 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8495 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8496 Update.
8497 * Makefile.in (COMMON_SFILES): Update.
8498 (HFILES_NO_SRCDIR): Update.
8499
9e35d499
TT
85002020-02-08 Tom Tromey <tom@tromey.com>
8501
8502 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8503 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8504
1eba2311
TT
85052020-02-08 Tom Tromey <tom@tromey.com>
8506
8507 * dwarf2read.h (struct die_info): Don't declare.
8508
e41c2da2
TT
85092020-02-08 Tom Tromey <tom@tromey.com>
8510
8511 * dwarf2read.h (die_info_ptr): Remove typedef.
8512
4fc6c0d5
TT
85132020-02-08 Tom Tromey <tom@tromey.com>
8514
8515 * dwarf2read.c (read_call_site_scope)
8516 (handle_data_member_location, dwarf2_add_member_fn)
8517 (mark_common_block_symbol_computed, read_common_block)
8518 (attr_to_dynamic_prop, partial_die_info::read)
8519 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8520 (dwarf2_symbol_mark_computed, set_die_type): Update.
8521 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8522 method.
8523 (attr_form_is_block): Don't declare.
8524 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8525
cd6c91b4
TT
85262020-02-08 Tom Tromey <tom@tromey.com>
8527
8528 * dwarf2read.c (dwarf2_find_base_address, )
8529 (read_call_site_scope, rust_containing_type)
8530 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8531 (handle_data_member_location, dwarf2_add_member_fn)
8532 (get_alignment, read_structure_type, process_structure_scope)
8533 (mark_common_block_symbol_computed, read_common_block)
8534 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8535 (partial_die_info::read, read_attribute_value, new_symbol)
8536 (lookup_die_type, dwarf2_get_ref_die_offset)
8537 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8538 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8539 (dwarf2_symbol_mark_computed): Update.
8540 * dwarf2/attribute.h (struct attribute) <value_as_address,
8541 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8542 methods.
8543 (value_as_address, attr_form_is_section_offset)
8544 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8545 * dwarf2/attribute.c (attribute::value_as_address)
8546 (attribute::form_is_section_offset, attribute::form_is_constant)
8547 (attribute::form_is_ref): Now methods.
8548
162dce55
TT
85492020-02-08 Tom Tromey <tom@tromey.com>
8550
8551 * dwarf2read.c (struct attribute, DW_STRING)
8552 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8553 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8554 (attr_form_is_block, attr_form_is_section_offset)
8555 (attr_form_is_constant, attr_form_is_ref): Move.
8556 * dwarf2/attribute.h: New file.
8557 * dwarf2/attribute.c: New file, from dwarf2read.c.
8558 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8559
3054dd54
TT
85602020-02-08 Tom Tromey <tom@tromey.com>
8561
8562 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8563 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8564 Move.
8565 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8566 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8567 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8568 abbrev.c.
8569 * dwarf2/abbrev.h: New file.
8570 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8571 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8572
96b79293
TT
85732020-02-08 Tom Tromey <tom@tromey.com>
8574
8575 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8576 (dwarf2_section_size, dwarf2_get_section_info)
8577 (create_signatured_type_table_from_debug_names)
8578 (create_addrmap_from_aranges, read_debug_names_from_section)
8579 (get_gdb_index_contents_from_section, read_comp_unit_head)
8580 (error_check_comp_unit_head, read_abbrev_offset)
8581 (create_debug_type_hash_table, init_cu_die_reader)
8582 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8583 (read_comp_units_from_section, create_cus_hash_table)
8584 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8585 (create_dwp_v2_section, dwarf2_rnglists_process)
8586 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8587 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8588 (read_indirect_string_from_dwz, read_addr_index_1)
8589 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8590 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8591 (fill_in_loclist_baton): Update.
8592 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8593 get_containing_section, get_bfd_owner, get_bfd_section,
8594 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8595 (dwarf2_read_section, get_section_name, get_section_file_name)
8596 (get_containing_section, get_section_bfd_owner)
8597 (get_section_bfd_section, get_section_name, get_section_file_name)
8598 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8599 declare.
8600 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8601 (dwarf2_section_info::get_bfd_owner)
8602 (dwarf2_section_info::get_bfd_section)
8603 (dwarf2_section_info::get_name)
8604 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8605 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8606 (dwarf2_section_info::read): Now methods.
8607 * dwarf-index-write.c (class debug_names): Update.
8608
2c86cff9
TT
86092020-02-08 Tom Tromey <tom@tromey.com>
8610
8611 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8612 Move to dwarf2/section.h.
8613 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8614 (get_section_bfd_section, get_section_name)
8615 (get_section_file_name, get_section_id, get_section_flags)
8616 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8617 dwarf2/section.c.
8618 * dwarf2/section.h: New file.
8619 * dwarf2/section.c: New file, from dwarf2read.c.
8620 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8621
f4382c45
TT
86222020-02-08 Tom Tromey <tom@tromey.com>
8623
8624 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8625 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8626 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8627 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8628 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8629 * dwarf2/leb.h: New file, from dwarf2read.c.
8630 * dwarf2/leb.c: New file, from dwarf2read.c.
8631 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8632 Remove.
8633 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8634 (COMMON_SFILES): Add dwarf2/leb.c.
8635
01840b7a
JB
86362020-02-08 Joel Brobecker <brobecker@adacore.com>
8637
8638 GDB 9.1 released.
8639
dfcb27e4
IB
86402020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8641
8642 PR gdb/25190:
aac66a4c
SM
8643 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8644 * gdb/remote.c (remote_console_output): Update.
8645 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8646 (ui_file_puts): ...this.
8647 * gdb/ui-file.h (ui_file_puts): Add declaration.
8648 * gdb/utils.c (emit_style_escape): Update.
8649 (flush_wrap_buffer): Update.
8650 (fputs_maybe_filtered): Update.
8651 (fputs_unfiltered): Add function.
dfcb27e4 8652
faa17681
IB
86532020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8654
aac66a4c
SM
8655 * gdb/event-loop.c (gdb_wait_for_event): Update.
8656 * gdb/printcmd.c (printf_command): Update.
8657 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8658 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8659 (gdb_os_flush_stderr): Update.
8660 * gdb/remote.c (remote_console_output): Update.
8661 * gdb/ui-file.c (gdb_flush): Rename to...
8662 (ui_file_flush): ...this.
8663 (stderr_file::write): Update.
8664 (stderr_file::puts): Update.
8665 * gdb/ui-file.h (gdb_flush): Rename to...
8666 (ui_file_flush): ...this.
8667 * gdb/utils.c (gdb_flush): Add function.
8668 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8669
5abbbe1d
TT
86702020-02-07 Tom Tromey <tromey@adacore.com>
8671
8672 PR breakpoints/24915:
8673 * source.c (find_and_open_source): Do not check basenames_may_differ.
8674
919adfe8
TT
86752020-02-07 Tom Tromey <tom@tromey.com>
8676
8677 * README: Update gdbserver documentation.
8678 * gdbserver: Move to top level.
8679 * configure.tgt (build_gdbserver): Remove.
8680 * configure.ac: Remove --enable-gdbserver.
8681 * configure: Rebuild.
8682 * Makefile.in (distclean): Don't mention gdbserver.
8683
1d5d29e7
SV
86842020-02-06 Shahab Vahedi <shahab@synopsys.com>
8685
8686 * source-cache.c (source_cache::ensure): Surround
8687 get_plain_source_lines with a try/catch.
8688 (source_cache::get_line_charpos): Get rid of try/catch
8689 and only check for the return value of "ensure".
8690 * tui/tui-source.c (tui_source_window::set_contents):
8691 Simplify "nlines" calculation.
8692
6eb1129c
SV
86932020-02-06 Shahab Vahedi <shahab@synopsys.com>
8694
8695 * MAINTAINERS (Write After Approval): Add myself.
8696
c6a42d11
CB
86972020-02-05 Christian Biesinger <cbiesinger@google.com>
8698
8699 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8700 function call.
8701
c8ecdda6
CB
87022020-02-05 Christian Biesinger <cbiesinger@google.com>
8703
8704 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8705
f6480e70
MR
87062020-02-05 Maciej W. Rozycki <macro@wdc.com>
8707
8708 * nat/riscv-linux-tdesc.h: New file.
8709 * nat/riscv-linux-tdesc.c: New file, taking code from...
8710 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8711 ... here.
8712 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8713 NATDEPFILES.
8714
dcc9fbc6
AB
87152020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8716
8717 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8718 we don't set the fake simulator ptid to the null_ptid.
8719
719546c4
SM
87202020-02-03 Simon Marchi <simon.marchi@efficios.com>
8721
8722 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8723 * gdbthread.h (class thread_info) <resumed>: Likewise.
8724 * infrun.c (resume_1): Likewise.
8725 (proceed): Likewise.
8726 (infrun_thread_stop_requested): Likewise.
8727 (stop_all_threads): Likewise.
8728 (handle_inferior_event): Likewise.
8729 (restart_threads): Likewise.
8730 (finish_step_over): Likewise.
8731 (keep_going_stepped_thread): Likewise.
8732 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8733 (linux_handle_extended_wait): Likewise.
8734 * record-btrace.c (get_thread_current_frame_id): Likewise.
8735 * record-full.c (record_full_wait_1): Likewise.
8736 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8737 * target.c (target_resume): Likewise.
8738 * thread.c (set_running_thread): Likewise.
8739
e409c542
AKS
87402020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8741
8742 * f-valprint.c (f77_print_array_1): Changed datatype of index
8743 variable to LONGEST from int to enable it to contain bound
8744 values correctly.
8745
ee98c0da
MR
87462020-02-03 Maciej W. Rozycki <macro@wdc.com>
8747
8748 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8749 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8750 offsets according to FLEN determined.
8751 (riscv_linux_nat_target::read_description): Determine FLEN
8752 dynamically.
8753 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8754 according to FLEN determined.
8755 (riscv_linux_nat_target::store_registers): Likewise.
8756
aa66aac4
SV
87572020-02-01 Shahab Vahedi <shahab@synopsys.com>
8758
8759 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8760 when reg->group is empty and reggroup is not.
8761
fd9faca8
TT
87622020-01-31 Tom Tromey <tromey@adacore.com>
8763
8764 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8765 Call beneath target's mourn_inferior after unpushing.
8766
42330a68
AB
87672020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8768
8769 PR tui/9765
8770 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8771 have enough lines to fill the screen, still return the lowest
8772 address we found.
8773
7a27a45b
AB
87742020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8775
8776 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8777 '-', '<', and '>' commands.
8778
c47f70e2
PA
87792020-01-29 Pedro Alves <palves@redhat.com>
8780 Sergio Durigan Junior <sergiodj@redhat.com>
8781
8782 * infcmd.c (construct_inferior_arguments): Assert that
8783 'argc' is greater than 0.
8784
5133a315
LM
87852020-01-29 Luis Machado <luis.machado@linaro.org>
8786
8787 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8788 (BRK_INSN_MASK): Define to 0xd4200000.
8789 (aarch64_program_breakpoint_here_p): New function.
8790 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8791 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8792 breakpoint.c.
8793 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8794 breakpoint.h
8795 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8796 call gdbarch_program_breakpoint_here_p.
8797 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8798 default_program_breakpoint_here_p, changed return type to bool and
8799 simplified.
8800 * breakpoint.h (program_breakpoint_here): Moved prototype to
8801 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8802 return type to bool.
8803 * gdbarch.c: Regenerate.
8804 * gdbarch.h: Regenerate.
8805 * gdbarch.sh (program_breakpoint_here_p): New method.
8806 * infrun.c (handle_signal_stop): Call
8807 gdbarch_program_breakpoint_here_p.
8808
168f8c6b
TT
88092020-01-26 Tom Tromey <tom@tromey.com>
8810
8811 * ctfread.c (struct ctf_fp_info): Reindent.
8812 (_initialize_ctfread): Remove.
8813
128a391f
TT
88142020-01-26 Tom Tromey <tom@tromey.com>
8815
8816 * psymtab.c (partial_map_expand_apply)
8817 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8818 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8819 (psym_print_stats, psym_expand_symtabs_for_function)
8820 (psym_map_symbol_filenames, psym_map_matching_symbols)
8821 (psym_expand_symtabs_matching)
8822 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8823 (maintenance_check_psymtabs): Use new methods.
8824 * psympriv.h (struct partial_symtab) <readin_p,
8825 get_compunit_symtab>: New methods.
8826 <readin, compunit_symtab>: Remove members.
8827 (struct standard_psymtab): New.
8828 (struct legacy_psymtab): Derive from standard_psymtab.
8829 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8830 standard_psymtab.
8831 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8832
0494dbec
TT
88332020-01-26 Tom Tromey <tom@tromey.com>
8834
8835 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8836 read_dependencies. Add assert.
8837 * psymtab.c (partial_symtab::read_dependencies): New method.
8838 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8839 method.
8840 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8841 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8842 read_dependencies.
8843 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8844 Add assert.
8845
8566b89b
TT
88462020-01-26 Tom Tromey <tom@tromey.com>
8847
8848 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8849 Call expand_psymtab.
8850 (xcoff_read_symtab): Call expand_psymtab.
8851 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8852 legacy_expand_psymtab.
8853 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8854 method.
8855 (struct legacy_psymtab) <expand_psymtab>: Implement.
8856 <legacy_expand_psymtab>: New member.
8857 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8858 (parse_partial_symbols): Set legacy_expand_psymtab.
8859 (psymtab_to_symtab_1): Change argument order. Call
8860 expand_psymtab.
8861 (new_psymtab): Set legacy_expand_psymtab.
8862 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8863 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8864 expand_psymtab.
8865 (dwarf2_psymtab::expand_psymtab): Rename from
8866 psymtab_to_symtab_1. Call expand_psymtab.
8867 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8868 (dbx_end_psymtab): Likewise.
8869 (dbx_psymtab_to_symtab_1): Change argument order. Call
8870 expand_psymtab.
8871 (dbx_read_symtab): Call expand_psymtab.
8872 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8873 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8874 (ctf_psymtab::read_symtab): Call expand_psymtab.
8875
077cbab2
TT
88762020-01-26 Tom Tromey <tom@tromey.com>
8877
8878 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8879 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8880 messages.
8881 * mdebugread.c (mdebug_read_symtab): Remove prints.
8882 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8883 assert.
8884 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8885
891813be
TT
88862020-01-26 Tom Tromey <tom@tromey.com>
8887
8888 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8889 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8890 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8891 legacy_symtab.
8892 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8893 * psymtab.c (psymtab_to_symtab): Call method.
8894 (dump_psymtab): Update.
8895 * psympriv.h (struct partial_symtab): Add virtual destructor.
8896 <read_symtab>: New method.
8897 (struct legacy_symtab): New.
8898 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8899 (struct pst_map) <pst>: Now a legacy_psymtab.
8900 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8901 (new_psymtab): Use legacy_psymtab.
8902 * dwarf2read.h (struct dwarf2_psymtab): New.
8903 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8904 * dwarf2read.c (dwarf2_create_include_psymtab)
8905 (dwarf2_build_include_psymtabs, create_type_unit_group)
8906 (create_partial_symtab, process_psymtab_comp_unit_reader)
8907 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8908 (set_partial_user): Use dwarf2_psymtab.
8909 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8910 (psymtab_to_symtab_1, process_full_comp_unit)
8911 (process_full_type_unit, dwarf2_ranges_read)
8912 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8913 (dwarf_decode_lines): Use dwarf2_psymtab.
8914 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8915 (add_address_entry_worker, write_one_signatured_type)
8916 (recursively_count_psymbols, recursively_write_psymbols)
8917 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8918 (write_debug_names): Likewise.
8919 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8920 <pst>: Now a legacy_psymtab.
8921 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8922 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8923 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8924 * ctfread.c (struct ctf_psymtab): New.
8925 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8926 ctf_psymtab.
8927 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
8928 (create_partial_symtab): Return a ctf_psymtab.
8929 (scan_partial_symbols): Update.
8930
c3693a1d
TT
89312020-01-26 Tom Tromey <tom@tromey.com>
8932
8933 * xcoffread.c (xcoff_start_psymtab): Use new.
8934 * psymtab.c (partial_symtab::partial_symtab): New constructor,
8935 renamed from start_psymtab_common.
8936 * psympriv.h (struct partial_symtab): Add new constructor.
8937 (start_psymtab_common): Don't declare.
8938 * mdebugread.c (parse_partial_symbols): Use new.
8939 * dwarf2read.c (create_partial_symtab): Use new.
8940 * dbxread.c (start_psymtab): Use new.
8941 * ctfread.c (create_partial_symtab): Use new.
8942
32caafd0
TT
89432020-01-26 Tom Tromey <tom@tromey.com>
8944
8945 * xcoffread.c (xcoff_end_psymtab): Use new.
8946 * psymtab.c (start_psymtab_common): Use new.
8947 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
8948 Update.
8949 * psympriv.h (struct partial_symtab): Add parameters to
8950 constructor. Don't inline.
8951 (allocate_psymtab): Don't declare.
8952 * mdebugread.c (new_psymtab): Use new.
8953 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
8954 * dbxread.c (dbx_end_psymtab): Use new.
8955
abaa2f23
TT
89562020-01-26 Tom Tromey <tom@tromey.com>
8957
8958 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
8959 allocate_psymtab. Update documentation.
8960 * psymtab.c (psymtab_storage::install_psymtab): Rename from
8961 allocate_psymtab. Do not use new.
8962 (allocate_psymtab): Use new. Update.
8963
6d94535f
TT
89642020-01-26 Tom Tromey <tom@tromey.com>
8965
8966 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8967 * psymtab.c (psym_print_stats): Update.
8968 * psympriv.h (struct partial_symtab) <readin,
8969 psymtabs_addrmap_supported, anonymous>: Now bool.
8970 * mdebugread.c (psymtab_to_symtab_1): Update.
8971 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
8972 (build_type_psymtabs_reader, psymtab_to_symtab_1)
8973 (process_full_comp_unit, process_full_type_unit): Update.
8974 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8975 * ctfread.c (psymtab_to_symtab): Update.
8976
6f17252b
TT
89772020-01-26 Tom Tromey <tom@tromey.com>
8978
8979 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
8980 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
8981 * psymtab.c (psymtab_storage): Delete psymtabs.
8982 (psymtab_storage::allocate_psymtab): Use new.
8983 (psymtab_storage::discard_psymtab): Use delete.
8984 * psympriv.h (struct partial_symtab): Add constructor and
8985 initializers.
8986
f6f1cebc
TT
89872020-01-26 Tom Tromey <tom@tromey.com>
8988
8989 * machoread.c: Do not include psympriv.h.
8990
e47e48f6
PW
89912020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8992
8993 * NEWS: Mention the new option and the set/show commands.
8994
a2fedca9
PW
89952020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8996
8997 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
8998 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
8999 (validate_exec_file): New variables, enums, functions.
9000 (exec_file_locate_attach, print_section_info): Style the filenames.
9001 (_initialize_exec): Install show_exec_file_mismatch_command and
9002 set_exec_file_mismatch_command.
9003 * gdbcore.h (validate_exec_file): Declare.
9004 * infcmd.c (attach_command): Call validate_exec_file.
9005 * remote.c ( remote_target::remote_add_inferior): Likewise.
9006
7ffa82e1
AB
90072020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9008
9009 * frame.c (find_frame_sal): Move call to get_next_frame into more
9010 inner scope.
9011 * inline-frame.c (inilne_state) <inline_state>: Update argument
9012 types.
9013 (inilne_state) <skipped_symbol>: Rename to...
9014 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9015 (skip_inline_frames): Build vector of skipped symbols and use this
9016 to reate the inline_state.
9017 (inline_skipped_symbol): Add a comment and some assertions, fetch
9018 skipped symbol from the list.
9019
3d92a3e3
AB
90202020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9021
9022 * buildsym.c (lte_is_less_than): Delete.
9023 (buildsym_compunit::end_symtab_with_blockvector): Create local
9024 lambda function to sort line table entries, and use
9025 std::stable_sort instead of std::sort.
9026 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9027 markers when looking for a previous line.
9028
94a72be7
AB
90292020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9030
9031 * dwarf2read.c (lnp_state_machine::record_line): Include
9032 end_sequence parameter in debug print out. Record the line if we
9033 are at an end_sequence marker even if it's not the start of a
9034 statement.
9035 * symmisc.c (maintenance_print_one_line_table): Print end of
9036 sequence markers with 'END' not '0'.
9037
53af73bf
PA
90382020-01-24 Pedro Alves <palves@redhat.com>
9039
9040 PR gdb/25410
9041 * thread.c (scoped_restore_current_thread::restore): Use
9042 switch_to_inferior_no_thread.
9043 * exec.c: Include "progspace-and-thread.h".
9044 (add_target_sections, remove_target_sections):
9045 scoped_restore_current_pspace_and_thread instead of
9046 scoped_restore_current_thread.
9047 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9048 and aspace to the inferior before calling clone_program_space.
9049 Remove stale comment.
9050
3050c6f4
CB
90512020-01-24 Christian Biesinger <cbiesinger@google.com>
9052
9053 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9054 (arm_netbsd_nat_target::fetch_registers): ...this.
9055 (arm_nbsd_nat_target::store_registers): Rename to...
9056 (arm_netbsd_nat_target::store_registers): ...this.
9057
73685c7e
CB
90582020-01-24 Christian Biesinger <cbiesinger@google.com>
9059
9060 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9061 register_t.
9062
89203d40
CB
90632020-01-24 Christian Biesinger <cbiesinger@google.com>
9064
9065 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9066 Update comment.
9067 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9068 Likewise.
9069 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9070 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9071 the correct replacement (iterate_over_regset_sections).
9072 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9073 Update comment.
9074
1ba1ac88
AB
90752020-01-24 Graham Markall <graham.markall@embecosm.com>
9076
9077 PR gdb/23718
9078 * gdb/python/python.c (execute_gdb_command): Call
9079 async_enable_stdin in catch block.
9080
f3364a6d
AB
90812020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9082
9083 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9084 SWITCH_THRU_ALL_UIS.
9085
733d0a67
AB
90862020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9087
9088 PR tui/9765
9089 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9090 comment, add extra parameter, and update to store previous symbol
9091 when appropriate.
9092 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9093 add extra parameter.
9094 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9095 remove unneeded parameter, add try/catch around gdb_print_insn,
9096 rewrite to add items to asm_lines vector.
9097 (tui_find_backward_disassembly_start_address): New function.
9098 (tui_find_disassembly_address): Updated throughout.
9099 (tui_disasm_window::set_contents): Update for changes to
9100 tui_disassemble.
9101 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9102 number of lines to scroll.
9103
b3b3bada
SM
91042020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9105
9106 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9107 (SECT_OFF_DATA): Likewise.
9108 (SECT_OFF_RODATA): Likewise.
9109 (SECT_OFF_TEXT): Likewise.
9110 (SECT_OFF_BSS): Likewise.
9111 (struct objfile) <text_section_offset, data_section_offset>: New
9112 methods.
9113 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9114 objfile::text_section_offset.
9115 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9116 * coffread.c (coff_symtab_read): Likewise.
9117 (enter_linenos): Likewise.
9118 (process_coff_symbol): Likewise.
9119 * ctfread.c (get_objfile_text_range): Likewise.
9120 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9121 Use objfile::data_section_offset.
9122 * dwarf2-frame.c (execute_cfa_program): Use
9123 objfile::text_section_offset.
9124 (dwarf2_frame_find_fde): Likewise.
9125 * dwarf2read.c (create_addrmap_from_index): Likewise.
9126 (create_addrmap_from_aranges): Likewise.
9127 (dw2_find_pc_sect_compunit_symtab): Likewise.
9128 (process_psymtab_comp_unit_reader): Likewise.
9129 (add_partial_symbol): Likewise.
9130 (add_partial_subprogram): Likewise.
9131 (process_full_comp_unit): Likewise.
9132 (read_file_scope): Likewise.
9133 (read_func_scope): Likewise.
9134 (read_lexical_block_scope): Likewise.
9135 (read_call_site_scope): Likewise.
9136 (dwarf2_rnglists_process): Likewise.
9137 (dwarf2_ranges_process): Likewise.
9138 (dwarf2_ranges_read): Likewise.
9139 (dwarf_decode_lines_1): Likewise.
9140 (new_symbol): Likewise.
9141 (dwarf2_fetch_die_loc_sect_off): Likewise.
9142 (dwarf2_per_cu_text_offset): Likewise.
9143 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9144 * hppa-tdep.c (read_unwind_info): Likewise.
9145 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9146 * psympriv.h (struct partial_symtab): Likewise.
9147 * psymtab.c (find_pc_sect_psymtab): Likewise.
9148 * solib-svr4.c (enable_break): Likewise.
9149 * stap-probe.c (relocate_address): Use
9150 objfile::data_section_offset.
9151 * xcoffread.c (enter_line_range): Use
9152 objfile::text_section_offset.
9153 (read_xcoff_symtab): Likewise.
9154
ab53f382
SM
91552020-01-23 Simon Marchi <simon.marchi@efficios.com>
9156
9157 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9158 declaration to narrower scopes.
9159
e7eee665
SM
91602020-01-23 Simon Marchi <simon.marchi@efficios.com>
9161
9162 * darwin-nat.h (struct darwin_exception_msg, enum
9163 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9164 Move up.
9165 (class darwin_nat_target) <wait_1, check_new_threads,
9166 decode_exception_message, decode_message, stop_inferior,
9167 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9168 * darwin-nat.c (darwin_check_new_threads): Rename to...
9169 (darwin_nat_target::check_new_threads): ... this.
9170 (darwin_suspend_inferior_it): Remove.
9171 (darwin_decode_exception_message): Rename to...
9172 (darwin_nat_target::decode_exception_message): ... this.
9173 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9174 (darwin_decode_message): Rename to...
9175 (darwin_nat_target::decode_message): ... this.
9176 (cancel_breakpoint): Rename to...
9177 (darwin_nat_target::cancel_breakpoint): ... this.
9178 (darwin_wait): Rename to...
9179 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9180 instead of iterate_over_inferiors.
9181 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9182 (darwin_stop_inferior): Rename to...
9183 (darwin_nat_target::stop_inferior): ... this.
9184 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9185 (darwin_init_thread_list): Rename to...
9186 (darwin_nat_target::init_thread_list): ... this.
9187 (darwin_ptrace_him): Rename to...
9188 (darwin_nat_target::ptrace_him): ... this.
9189 (darwin_nat_target::create_inferior): Pass lambda function to
9190 fork_inferior.
9191 (darwin_nat_target::detach): Call stop_inferior instead of
9192 darwin_stop_inferior.
9193 * fork-inferior.h (fork_inferior): Change init_trace_fun
9194 parameter to gdb::function_view.
9195 * fork-inferior.c (fork_inferior): Likewise.
9196
c162ed3e
HD
91972020-01-23 Hannes Domani <ssbssa@yahoo.de>
9198
9199 * i386-cygwin-tdep.c (core_process_module_section): Update.
9200 * windows-nat.c (struct lm_info_windows): Add text_offset.
9201 (windows_xfer_shared_libraries): Update.
9202 * windows-tdep.c (windows_xfer_shared_library):
9203 Add text_offset_cached argument.
9204 * windows-tdep.h (windows_xfer_shared_library): Update.
9205
a1237872
SM
92062020-01-21 Simon Marchi <simon.marchi@efficios.com>
9207
9208 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9209
b3ee6dd9
SM
92102020-01-21 Simon Marchi <simon.marchi@efficios.com>
9211
9212 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9213 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9214 replace with range-based for.
9215 (gdbsim_interrupt_inferior): Remove.
9216 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9217 with a range-based for. Inline code from
9218 gdbsim_interrupt_inferior.
9219
f9fac3c8
SM
92202020-01-21 Simon Marchi <simon.marchi@efficios.com>
9221
9222 * infrun.c (proceed): Fix indentation.
9223
f6474de9
TT
92242020-01-21 Tom Tromey <tromey@adacore.com>
9225
9226 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9227 * python/python.c (python_extension_ops): Update.
9228 (gdbpy_colorize): New function.
9229 * python/lib/gdb/__init__.py (colorize): New function.
9230 * extension.h (ext_lang_colorize): Declare.
9231 * extension.c (ext_lang_colorize): New function.
9232 * extension-priv.h (struct extension_language_ops) <colorize>: New
9233 member.
9234 * cli/cli-style.c (_initialize_cli_style): Update help text.
9235
f0c702d4
LM
92362020-01-21 Luis Machado <luis.machado@linaro.org>
9237
9238 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9239 <cond>: Change type to bool.
9240 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9241 (aarch64_displaced_step_cb): Likewise.
9242 (aarch64_displaced_step_tb): Likewise.
9243
1ab139e5
LM
92442020-01-21 Luis Machado <luis.machado@linaro.org>
9245
9246 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9247 output.
9248
0c271889
LM
92492020-01-21 Luis Machado <luis.machado@linaro.org>
9250
9251 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9252 <pc_adjust>: Adjust the documentation.
9253 (aarch64_displaced_step_fixup): Check if PC really moved before
9254 adjusting it.
9255
4d89c1c7
TT
92562020-01-19 Tom Tromey <tom@tromey.com>
9257
9258 * disasm.c (~gdb_disassembler): New destructor.
9259 (gdb_buffered_insn_length): Call disassemble_free_target.
9260 * disasm.h (class gdb_disassembler): Declare destructor. Use
9261 DISABLE_COPY_AND_ASSIGN.
9262
c0ab21c2
TT
92632020-01-19 Tom Tromey <tom@tromey.com>
9264
9265 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9266 (die_reader_func_ftype): Remove.
9267 (cutu_reader): New class.
9268 (dw2_get_file_names_reader): Remove "data" parameter.
9269 (dw2_get_file_names): Use cutu_reader.
9270 (create_debug_type_hash_table): Update.
9271 (read_cutu_die_from_dwo): Update comment.
9272 (lookup_dwo_unit): Add dwo_name parameter.
9273 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9274 die_reader_func_ftype and data parameters.
9275 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9276 Remove die_reader_func_ftype and data parameters.
9277 (~cutu_reader): New; from init_cutu_and_read_dies.
9278 (cutu_reader::cutu_reader): Rename from
9279 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9280 and data parameters.
9281 (init_cutu_and_read_dies_simple): Remove.
9282 (struct process_psymtab_comp_unit_data): Remove.
9283 (process_psymtab_comp_unit_reader): Remove data parameter; add
9284 want_partial_unit and pretend_language parameters.
9285 (process_psymtab_comp_unit): Use cutu_reader.
9286 (build_type_psymtabs_reader): Remove data parameter.
9287 (build_type_psymtabs_1): Use cutu_reader.
9288 (process_skeletonless_type_unit): Likewise.
9289 (load_partial_comp_unit_reader): Remove.
9290 (load_partial_comp_unit): Use cutu_reader.
9291 (load_full_comp_unit_reader): Remove.
9292 (load_full_comp_unit): Use cutu_reader.
9293 (struct create_dwo_cu_data): Remove.
9294 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9295 dwo_unit parameters.
9296 (create_cus_hash_table): Use cutu_reader.
9297 (struct dwarf2_read_addr_index_data): Remove.
9298 (dwarf2_read_addr_index_reader): Remove.
9299 (dwarf2_read_addr_index): Use cutu_reader.
9300 (read_signatured_type_reader): Remove.
9301 (read_signatured_type): Use cutu_reader.
9302
45bbae5c
TT
93032020-01-19 Tom Tromey <tom@tromey.com>
9304
9305 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9306 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9307 (tui_wrefresh): Declare.
9308 * tui/tui-wingeneral.c (suppress_output): New global.
9309 (tui_suppress_output, ~tui_suppress_output): New constructor and
9310 destructor.
9311 (tui_wrefresh): New function.
9312 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9313 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9314 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9315 method.
9316 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9317 tui_wrefresh.
9318 (tui_data_window::no_refresh): New method.
9319 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9320 (tui_reg_command): Use tui_suppress_output
9321 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9322 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9323 method.
9324 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9325
4f13c1c0
TT
93262020-01-19 Tom Tromey <tom@tromey.com>
9327
9328 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9329 Handle case where symtab is null.
9330
fa47e446
SM
93312020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9332
9333 * linux-fork.c (one_fork_p): Simplify.
9334
26f42329
SM
93352020-01-17 Simon Marchi <simon.marchi@efficios.com>
9336
9337 * top.c (struct qt_args): Remove.
9338 (kill_or_detach): Change return type to void, replace `void *`
9339 parameter with a proper one.
9340 (print_inferior_quit_action): Likewise.
9341 (quit_confirm): Use range-based for loop to iterate over inferiors.
9342 (quit_force): Likewise.
9343
a9ac81b1
SM
93442020-01-17 Simon Marchi <simon.marchi@efficios.com>
9345
9346 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9347 `void *` parameter with proper parameters.
9348 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9349 (print_one_inferior): Change return type to void, replace `void *`
9350 parameter with proper parameters.
9351 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9352 inferiors.
9353 (get_other_inferior): Remove.
9354 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9355 inferiors.
9356
788eca49
SM
93572020-01-17 Simon Marchi <simon.marchi@efficios.com>
9358
9359 * mi/mi-interp.c (report_initial_inferior): Remove.
9360 (mi_interp::init): Use range-based for to iterate over inferiors.
9361
d9bc85b6
SM
93622020-01-17 Simon Marchi <simon.marchi@efficios.com>
9363
9364 * python/py-inferior.c (build_inferior_list): Remove.
9365 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9366
40c94099
CB
93672020-01-16 Christian Biesinger <cbiesinger@google.com>
9368
9369 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9370 (btrace_stitch_trace): Likewise.
9371 * charset.c (intermediate_encoding): Likewise (vaild).
9372 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9373 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9374 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9375
e0cdfe3c
HD
93762020-01-16 Hannes Domani <ssbssa@yahoo.de>
9377
9378 * windows-tdep.c (windows_get_tlb_type):
9379 Add rtl_user_process_parameters type.
9380
790f1718 93812020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9382 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9383
9384 PR build/24805
9385 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9386 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9387 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9388 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9389 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9390 (ps_plog): Redeclare exported functions with default visibility.
9391
3112ed97
NA
93922020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9393
9394 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9395 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9396
8dc3273e
SM
93972020-01-15 Simon Marchi <simon.marchi@efficios.com>
9398
9399 * infcmd.c (post_create_inferior): Use get_thread_regcache
9400 instead of get_current_regcache.
9401
ff47f4f0
TT
94022020-01-14 Tom Tromey <tom@tromey.com>
9403
9404 PR symtab/12535:
9405 * python/python.c (gdbpy_decode_line): Treat empty string the same
9406 as no argument.
9407
975f45b7
TT
94082020-01-14 Tom Tromey <tom@tromey.com>
9409
9410 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9411
25e57356
TT
94122020-01-14 Tom Tromey <tom@tromey.com>
9413
9414 * nat/linux-btrace.c: Don't include <config.h>.
9415 * nat/linux-ptrace.c: Don't include <config.h>.
9416 * nat/x86-linux-dregs.c: Don't include <config.h>.
9417
05ea2a05
TT
94182020-01-14 Tom Tromey <tom@tromey.com>
9419
9420 * configure: Rebuild.
9421 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9422
01027315
TT
94232020-01-14 Tom Tromey <tom@tromey.com>
9424
9425 * nat/x86-linux-dregs.c: Include configh.h.
9426 * nat/linux-ptrace.c: Include configh.h.
9427 * nat/linux-btrace.c: Include configh.h.
9428 * defs.h: Include config.h, bfd.h.
9429 * configure.ac: Don't source common.host.
9430 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9431 * configure: Rebuild.
9432 * acinclude.m4: Update path.
9433 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9434 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9435 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9436 (CLIBS): Add LIBSUPPORT.
9437 (CDEPS): Likewise.
9438 (COMMON_SFILES): Remove gdbsupport files.
9439 (HFILES_NO_SRCDIR): Likewise.
9440 (stamp-version): Update path to create-version.sh.
9441 (ALLDEPFILES): Remove gdbsupport files.
9442
b2ceabe8
TT
94432020-01-14 Tom Tromey <tom@tromey.com>
9444
9445 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9446 USE_WIN32API when needed.
9447 * configure.ac (USE_WIN32API): Don't define.
9448 (WIN32LIBS): Use WIN32APILIBS.
9449 * configure: Rebuild.
9450
25c51f71
TT
94512020-01-14 Tom Tromey <tom@tromey.com>
9452
9453 * configure: Rebuild.
9454 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9455
717c684d
BE
94562020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9457
9458 * skip.c (skip_function_command): Make skip w/o arguments use the
9459 name of the inlined function if pc is inside any inlined function.
9460
7da6a5b9
LM
94612020-01-14 Luis Machado <luis.machado@linaro.org>
9462
9463 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9464 * infrun.c (resume_1): Likewise.
9465 (handle_inferior_event): Remove stale comment.
9466 * linux-nat.c (linux_nat_target::resume): Update comments.
9467 (save_stop_reason): Likewise.
9468 (linux_nat_filter_event): Likewise.
9469 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9470
44e4c775
AB
94712020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9472
9473 * elfread.c (record_minimal_symbol): Set section index to 0 for
9474 non-allocatable sections.
9475
18a8505e
AT
9476
94772020-01-13 Ali Tamur <tamur@google.com>
9478
9479 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9480 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9481 to gdb::optional. Update comments.
9482 (dwo_file): Update comments.
9483 (read_attribute): Update API to take an additional out parameter,
9484 need_reprocess. This is used to mark attributes that need other
9485 attributes (e.g. str_offsets_base) for correct computation which may not
9486 have been read yet.
9487 (read_attribute_reprocess): New function declaration.
9488 (read_addr_index): Likewise.
9489 (read_dwo_str_index): Likewise.
9490 (read_stub_str_index): Likewise.
9491 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9492 (lookup_addr_base): New function definition.
9493 (lookup_ranges_base): Likewise.
9494 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9495 lookup_ranges_base.
9496 (init_cutu_and_read_dies): Update comments.
9497 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9498 unit. This is used to inherit parent's str_offsets_base and addr_base.
9499 Update comments.
9500 (init_cutu_and_read_dies_simple): Reflect API changes.
9501 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9502 (create_cus_hash_table): Change API to take parent compile unit.
9503 Reflect API changes.
9504 (open_and_init_dwo_file): Reflect API changes.
9505 (dwarf2_get_pc_bounds): Update comments.
9506 (dwarf2_record_block_ranges): Likewise.
9507 (read_full_die_1): Change implementation to reprocess attributes that
9508 need str_offsets_base and addr_base.
9509 (partial_die_info::read): Likewise.
9510 (read_attribute_reprocess): New function definition.
9511 (read_attribute_value): Change API to take an additional out parameter,
9512 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9513 when a non-dwo compile unit has index based attributes.
9514 (read_attribute): Reflect API changes.
9515 (read_addr_index_1): Reflect API changes. Update comments.
9516 (dwarf2_read_addr_index_data): Reflect API changes.
9517 (dwarf2_read_addr_index): Likewise.
9518 (read_str_index): Change API and implementation. This becomes a helper
9519 to be used by the new string index related methods. Update error
9520 message and comments.
9521 (read_dwo_str_index): New function definition.
9522 (read_stub_str_index): Likewise.
9523 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9524 * symfile.h (dwarf2_debug_sections): Likewise.
9525 * xcoffread.c (dwarf2_debug_sections): Likewise.
9526
0cac9354
SM
95272020-01-13 Simon Marchi <simon.marchi@efficios.com>
9528
9529 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9530 core_reg_sect type to gdb_byte *.
9531 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9532 * cris-tdep.c (fetch_core_registers): Likewise.
9533 * corelow.c (core_target::get_core_register_section): Change
9534 type of `contents` to gdb::byte_vector.
9535
9a6d629c
AB
95362020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9537
9538 * tui/tui-wingeneral.c (box_win): Position the title in the center
9539 of the border.
9540
d8b2f9e3
SM
95412020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9542
9543 * corelow.c (core_target::get_core_register_section): Use
9544 std::vector instead of alloca.
9545
bb564c58
SM
95462020-01-13 Simon Marchi <simon.marchi@efficios.com>
9547
9548 * warning.m4: Add -Wmissing-declarations to build_warnings.
9549 * configure: Re-generate.
9550
6b366111
SM
95512020-01-13 Simon Marchi <simon.marchi@efficios.com>
9552
9553 * python/python.c (init__gdb_module): Add declaration.
9554
6c265988
SM
95552020-01-13 Simon Marchi <simon.marchi@efficios.com>
9556
9557 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9558 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9559 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9560 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9561 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9562 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9563 * ada-exp.y (_initialize_ada_exp): Add declaration.
9564 * ada-lang.c (_initialize_ada_language): Add declaration.
9565 * ada-tasks.c (_initialize_tasks): Add declaration.
9566 * agent.c (_initialize_agent): Add declaration.
9567 * aix-thread.c (_initialize_aix_thread): Add declaration.
9568 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9569 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9570 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9571 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9572 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9573 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9574 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9575 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9576 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9577 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9578 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9579 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9580 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9581 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9582 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9583 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9584 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9585 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9586 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9587 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9588 * annotate.c (_initialize_annotate): Add declaration.
9589 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9590 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9591 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9592 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9593 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9594 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9595 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9596 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9597 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9598 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9599 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9600 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9601 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9602 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9603 * auto-load.c (_initialize_auto_load): Add declaration.
9604 * auxv.c (_initialize_auxv): Add declaration.
9605 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9606 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9607 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9608 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9609 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9610 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9611 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9612 * breakpoint.c (_initialize_breakpoint): Add declaration.
9613 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9614 * btrace.c (_initialize_btrace): Add declaration.
9615 * charset.c (_initialize_charset): Add declaration.
9616 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9617 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9618 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9619 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9620 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9621 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9622 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9623 * coffread.c (_initialize_coffread): Add declaration.
9624 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9625 * compile/compile.c (_initialize_compile): Add declaration.
9626 * complaints.c (_initialize_complaints): Add declaration.
9627 * completer.c (_initialize_completer): Add declaration.
9628 * copying.c (_initialize_copying): Add declaration.
9629 * corefile.c (_initialize_core): Add declaration.
9630 * corelow.c (_initialize_corelow): Add declaration.
9631 * cp-abi.c (_initialize_cp_abi): Add declaration.
9632 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9633 * cp-support.c (_initialize_cp_support): Add declaration.
9634 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9635 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9636 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9637 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9638 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9639 * ctfread.c (_initialize_ctfread): Add declaration.
9640 * d-lang.c (_initialize_d_language): Add declaration.
9641 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9642 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9643 * dbxread.c (_initialize_dbxread): Add declaration.
9644 * dcache.c (_initialize_dcache): Add declaration.
9645 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9646 * disasm.c (_initialize_disasm): Add declaration.
9647 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9648 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9649 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9650 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9651 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9652 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9653 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9654 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9655 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9656 * elfread.c (_initialize_elfread): Add declaration.
9657 * exec.c (_initialize_exec): Add declaration.
9658 * extension.c (_initialize_extension): Add declaration.
9659 * f-lang.c (_initialize_f_language): Add declaration.
9660 * f-valprint.c (_initialize_f_valprint): Add declaration.
9661 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9662 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9663 * filesystem.c (_initialize_filesystem): Add declaration.
9664 * findcmd.c (_initialize_mem_search): Add declaration.
9665 * findvar.c (_initialize_findvar): Add declaration.
9666 * fork-child.c (_initialize_fork_child): Add declaration.
9667 * frame-base.c (_initialize_frame_base): Add declaration.
9668 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9669 * frame.c (_initialize_frame): Add declaration.
9670 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9671 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9672 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9673 * gcore.c (_initialize_gcore): Add declaration.
9674 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9675 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9676 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9677 * gdbarch.c (_initialize_gdbarch): Add declaration.
9678 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9679 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9680 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9681 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9682 * go-lang.c (_initialize_go_language): Add declaration.
9683 * go32-nat.c (_initialize_go32_nat): Add declaration.
9684 * guile/guile.c (_initialize_guile): Add declaration.
9685 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9686 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9687 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9688 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9689 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9690 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9691 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9692 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9693 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9694 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9695 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9696 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9697 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9698 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9699 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9700 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9701 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9702 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9703 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9704 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9705 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9706 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9707 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9708 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9709 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9710 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9711 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9712 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9713 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9714 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9715 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9716 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9717 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9718 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9719 * infcall.c (_initialize_infcall): Add declaration.
9720 * infcmd.c (_initialize_infcmd): Add declaration.
9721 * inflow.c (_initialize_inflow): Add declaration.
9722 * infrun.c (_initialize_infrun): Add declaration.
9723 * interps.c (_initialize_interpreter): Add declaration.
9724 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9725 * jit.c (_initialize_jit): Add declaration.
9726 * language.c (_initialize_language): Add declaration.
9727 * linux-fork.c (_initialize_linux_fork): Add declaration.
9728 * linux-nat.c (_initialize_linux_nat): Add declaration.
9729 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9730 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9731 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9732 * m2-lang.c (_initialize_m2_language): Add declaration.
9733 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9734 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9735 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9736 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9737 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9738 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9739 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9740 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9741 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9742 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9743 * machoread.c (_initialize_machoread): Add declaration.
9744 * macrocmd.c (_initialize_macrocmd): Add declaration.
9745 * macroscope.c (_initialize_macroscope): Add declaration.
9746 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9747 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9748 * maint.c (_initialize_maint_cmds): Add declaration.
9749 * mdebugread.c (_initialize_mdebugread): Add declaration.
9750 * memattr.c (_initialize_mem): Add declaration.
9751 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9752 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9753 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9754 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9755 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9756 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9757 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9758 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9759 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9760 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9761 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9762 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9763 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9764 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9765 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9766 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9767 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9768 * mipsread.c (_initialize_mipsread): Add declaration.
9769 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9770 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9771 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9772 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9773 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9774 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9775 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9776 * nto-procfs.c (_initialize_procfs): Add declaration.
9777 * objc-lang.c (_initialize_objc_language): Add declaration.
9778 * observable.c (_initialize_observer): Add declaration.
9779 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9780 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9781 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9782 * osabi.c (_initialize_gdb_osabi): Add declaration.
9783 * osdata.c (_initialize_osdata): Add declaration.
9784 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9785 * parse.c (_initialize_parse): Add declaration.
9786 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9787 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9788 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9789 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9790 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9791 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9792 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9793 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9794 * printcmd.c (_initialize_printcmd): Add declaration.
9795 * probe.c (_initialize_probe): Add declaration.
9796 * proc-api.c (_initialize_proc_api): Add declaration.
9797 * proc-events.c (_initialize_proc_events): Add declaration.
9798 * proc-service.c (_initialize_proc_service): Add declaration.
9799 * procfs.c (_initialize_procfs): Add declaration.
9800 * producer.c (_initialize_producer): Add declaration.
9801 * psymtab.c (_initialize_psymtab): Add declaration.
9802 * python/python.c (_initialize_python): Add declaration.
9803 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9804 * record-btrace.c (_initialize_record_btrace): Add declaration.
9805 * record-full.c (_initialize_record_full): Add declaration.
9806 * record.c (_initialize_record): Add declaration.
9807 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9808 * regcache.c (_initialize_regcache): Add declaration.
9809 * reggroups.c (_initialize_reggroup): Add declaration.
9810 * remote-notif.c (_initialize_notif): Add declaration.
9811 * remote-sim.c (_initialize_remote_sim): Add declaration.
9812 * remote.c (_initialize_remote): Add declaration.
9813 * reverse.c (_initialize_reverse): Add declaration.
9814 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9815 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9816 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9817 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9818 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9819 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9820 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9821 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9822 Add declaration.
9823 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9824 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9825 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9826 * rust-exp.y (_initialize_rust_exp): Add declaration.
9827 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9828 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9829 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9830 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9831 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9832 * score-tdep.c (_initialize_score_tdep): Add declaration.
9833 * ser-go32.c (_initialize_ser_dos): Add declaration.
9834 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9835 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9836 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9837 * ser-uds.c (_initialize_ser_socket): Add declaration.
9838 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9839 * serial.c (_initialize_serial): Add declaration.
9840 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9841 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9842 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9843 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9844 * skip.c (_initialize_step_skip): Add declaration.
9845 * sol-thread.c (_initialize_sol_thread): Add declaration.
9846 * solib-aix.c (_initialize_solib_aix): Add declaration.
9847 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9848 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9849 * solib-frv.c (_initialize_frv_solib): Add declaration.
9850 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9851 * solib-target.c (_initialize_solib_target): Add declaration.
9852 * solib.c (_initialize_solib): Add declaration.
9853 * source-cache.c (_initialize_source_cache): Add declaration.
9854 * source.c (_initialize_source): Add declaration.
9855 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9856 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9857 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9858 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9859 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9860 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9861 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9862 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9863 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9864 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9865 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9866 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9867 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9868 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9869 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9870 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9871 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9872 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9873 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9874 * stabsread.c (_initialize_stabsread): Add declaration.
9875 * stack.c (_initialize_stack): Add declaration.
9876 * stap-probe.c (_initialize_stap_probe): Add declaration.
9877 * std-regs.c (_initialize_frame_reg): Add declaration.
9878 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9879 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9880 * symfile.c (_initialize_symfile): Add declaration.
9881 * symmisc.c (_initialize_symmisc): Add declaration.
9882 * symtab.c (_initialize_symtab): Add declaration.
9883 * target.c (_initialize_target): Add declaration.
9884 * target-connection.c (_initialize_target_connection): Add
9885 declaration.
9886 * target-dcache.c (_initialize_target_dcache): Add declaration.
9887 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9888 * thread.c (_initialize_thread): Add declaration.
9889 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9890 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9891 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9892 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9893 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9894 * tracectf.c (_initialize_ctf): Add declaration.
9895 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9896 * tracefile.c (_initialize_tracefile): Add declaration.
9897 * tracepoint.c (_initialize_tracepoint): Add declaration.
9898 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9899 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9900 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9901 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9902 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9903 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9904 * tui/tui.c (_initialize_tui): Add declaration.
9905 * typeprint.c (_initialize_typeprint): Add declaration.
9906 * ui-style.c (_initialize_ui_style): Add declaration.
9907 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9908 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9909 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9910 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9911 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9912 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9913 * unittests/filtered_iterator-selftests.c
9914 (_initialize_filtered_iterator_selftests): Add declaration.
9915 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9916 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9917 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9918 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9919 * unittests/main-thread-selftests.c
9920 (_initialize_main_thread_selftests): Add declaration.
9921 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9922 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9923 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9924 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9925 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9926 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9927 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
9928 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
9929 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
9930 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
9931 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
9932 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
9933 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
9934 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
9935 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
9936 declaration.
9937 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
9938 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
9939 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
9940 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
9941 * user-regs.c (_initialize_user_regs): Add declaration.
9942 * utils.c (_initialize_utils): Add declaration.
9943 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
9944 * valops.c (_initialize_valops): Add declaration.
9945 * valprint.c (_initialize_valprint): Add declaration.
9946 * value.c (_initialize_values): Add declaration.
9947 * varobj.c (_initialize_varobj): Add declaration.
9948 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
9949 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
9950 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
9951 * windows-nat.c (_initialize_windows_nat): Add declaration.
9952 (_initialize_check_for_gdb_ini): Add declaration.
9953 (_initialize_loadable): Add declaration.
9954 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
9955 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
9956 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
9957 * xcoffread.c (_initialize_xcoffread): Add declaration.
9958 * xml-support.c (_initialize_xml_support): Add declaration.
9959 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
9960 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
9961 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
9962 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
9963
e2de1eec
SM
99642020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9965
9966 * regformats/regdat.sh: Generate declaration for init function.
9967
e0037b4c
SM
99682020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9969
9970 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
9971 up.
9972 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
9973 close_one_inferior>: New methods.
9974 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
9975 pass down target to find_inferior_pid.
9976 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
9977 Pass down target to find_inferior_ptid.
9978 (gdbsim_target::create_inferior): Pass down target to
9979 add_thread_silent.
9980 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
9981 target down to find_inferior_ptid and switch_to_thread.
9982 (gdbsim_target::close): Update to call close_one_inferior.
9983 (struct resume_data): Remove.
9984 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
9985 directly, rather than through a void pointer.
9986 (gdbsim_target::resume): Update to call resume_one_inferior.
9987
58920b5b
SM
99882020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
9989
9990 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
9991
4ec89149
PA
99922020-01-12 Pedro Alves <palves@redhat.com>
9993
9994 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
9995 directly for the current inferior instead of
9996 discard_all_inferiors.
9997 (discard_all_inferiors): Delete.
9998
7c392d1d
TT
99992020-01-11 Tom Tromey <tom@tromey.com>
10000
10001 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10002 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10003 deprecated_safe_get_selected_frame.
10004
d9ebdab7
TBA
100052020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10006
10007 * inferior.c (print_inferior): Switch inferior before printing it.
10008
f3c469b9
PA
100092020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10010 Pedro Alves <palves@redhat.com>
10011
10012 * progspace-and-thread.c (switch_to_program_space_and_thread):
10013 Assert there's an inferior for PSPACE. Use
10014 switch_to_inferior_no_thread to switch the inferior too.
10015 * progspace.c (program_space::~program_space): Call
10016 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10017 (program_space::free_all_objfiles): Don't call clear_symtab_users
10018 here.
10019 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10020
65c574f6
PA
100212020-01-10 Pedro Alves <palves@redhat.com>
10022
10023 * NEWS: Mention multi-target debugging, "info connections", and
10024 "add-inferior -no-connection".
10025
2f4fcf00
PA
100262020-01-10 Pedro Alves <palves@redhat.com>
10027
10028 * infrun.c: Include "target-connection.h".
10029 (check_multi_target_resumption): New.
10030 (proceed): Call it.
10031 * target-connection.c (make_target_connection_string): Make
10032 extern.
10033 * target-connection.h (make_target_connection_string): Declare.
10034
121b3efd
PA
100352020-01-10 Pedro Alves <palves@redhat.com>
10036
10037 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10038 * inferior.c (uiout_field_connection): New function.
10039 (print_inferior): Add new "connection-id" column.
10040 (add_inferior_command): Show connection number/string of added
10041 inferior.
10042 * process-stratum-target.h
10043 (process_stratum_target::connection_string): New virtual method.
10044 (process_stratum_target::connection_number): New field.
10045 * remote.c (remote_target::connection_string): New override.
10046 * target-connection.c: New file.
10047 * target-connection.h: New file.
10048 * target.c (decref_target): Remove process_stratum targets from
10049 the connection list.
10050 (target_stack::push): Add process_stratum targets to the
10051 connection list.
10052
4f837581
PA
100532020-01-10 Pedro Alves <palves@redhat.com>
10054
10055 Revert:
10056 2016-04-12 Pedro Alves <palves@redhat.com>
10057 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10058 Remove references to name.
10059 * serial.h (struct serial) <name>: Delete.
10060
f4ec508e
PA
100612020-01-10 Pedro Alves <palves@redhat.com>
10062
10063 * gdbarch-selftests.c (register_to_value_test): Remove "target
10064 already pushed" check.
10065
5b6d1e4f
PA
100662020-01-10 Pedro Alves <palves@redhat.com>
10067 John Baldwin <jhb@FreeBSD.org>
10068
10069 * aarch64-linux-nat.c
10070 (aarch64_linux_nat_target::thread_architecture): Adjust.
10071 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10072 (task_command_1): Likewise.
10073 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10074 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10075 (aix_thread_target::store_registers)
10076 (aix_thread_target::thread_alive): Adjust.
10077 * amd64-fbsd-tdep.c: Include "inferior.h".
10078 (amd64fbsd_get_thread_local_address): Pass down target.
10079 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10080 thread's gdbarch instead of target_gdbarch.
10081 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10082 get_last_target_status.
10083 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10084 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10085 inferiors.
10086 (update_inserted_breakpoint_locations): Skip if inferiors with no
10087 execution.
10088 (update_global_location_list): When handling moribund locations,
10089 find representative inferior for location's pspace, and use thread
10090 count of its process_stratum target.
10091 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10092 * bsd-uthread.c (bsd_uthread_target::wait): Use
10093 as_process_stratum_target and adjust thread_change_ptid and
10094 add_thread calls.
10095 (bsd_uthread_target::update_thread_list): Use
10096 as_process_stratum_target and adjust find_thread_ptid,
10097 thread_change_ptid and add_thread calls.
10098 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10099 find_thread_ptid call.
10100 * corelow.c (add_to_thread_list): Adjust add_thread call.
10101 (core_target_open): Adjust add_thread_silent and thread_count
10102 calls.
10103 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10104 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10105 * event-top.c (async_disconnect): Pop targets from all inferiors.
10106 * exec.c (add_target_sections): Push exec target on all inferiors
10107 sharing the program space.
10108 (remove_target_sections): Remove the exec target from all
10109 inferiors sharing the program space.
10110 (exec_on_vfork): New.
10111 * exec.h (exec_on_vfork): Declare.
10112 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10113 Pass it down.
10114 (fbsd_nat_target::update_thread_list): Adjust.
10115 (fbsd_nat_target::resume): Adjust.
10116 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10117 down.
10118 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10119 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10120 get_thread_arch_regcache call.
10121 * fork-child.c (gdb_startup_inferior): Pass target down to
10122 startup_inferior and set_executing.
10123 * gdbthread.h (struct process_stratum_target): Forward declare.
10124 (add_thread, add_thread_silent, add_thread_with_info)
10125 (in_thread_list): Add process_stratum_target parameter.
10126 (find_thread_ptid(inferior*, ptid_t)): New overload.
10127 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10128 parameter.
10129 (all_threads()): Delete overload.
10130 (all_threads, all_non_exited_threads): Add process_stratum_target
10131 parameter.
10132 (all_threads_safe): Use brace initialization.
10133 (thread_count): Add process_stratum_target parameter.
10134 (set_resumed, set_running, set_stop_requested, set_executing)
10135 (threads_are_executing, finish_thread_state): Add
10136 process_stratum_target parameter.
10137 (switch_to_thread): Use is_current_thread.
10138 * i386-fbsd-tdep.c: Include "inferior.h".
10139 (i386fbsd_get_thread_local_address): Pass down target.
10140 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10141 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10142 have_inferiors check.
10143 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10144 (inf_ptrace_target::attach): Adjust.
10145 * infcall.c (run_inferior_call): Adjust.
10146 * infcmd.c (run_command_1): Pass target to
10147 scoped_finish_thread_state.
10148 (proceed_thread_callback): Skip inferiors with no execution.
10149 (continue_command): Rename 'all_threads' local to avoid hiding
10150 'all_threads' function. Adjust get_last_target_status call.
10151 (prepare_one_step): Adjust set_running call.
10152 (signal_command): Use user_visible_resume_target. Compare thread
10153 pointers instead of inferior_ptid.
10154 (info_program_command): Adjust to pass down target.
10155 (attach_command): Mark target's 'thread_executing' flag.
10156 (stop_current_target_threads_ns): New, factored out from ...
10157 (interrupt_target_1): ... this. Switch inferior before making
10158 target calls.
10159 * inferior-iter.h
10160 (struct all_inferiors_iterator, struct all_inferiors_range)
10161 (struct all_inferiors_safe_range)
10162 (struct all_non_exited_inferiors_range): Filter on
10163 process_stratum_target too. Remove explicit.
10164 * inferior.c (inferior::inferior): Push dummy target on target
10165 stack.
10166 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10167 Add process_stratum_target parameter, and pass it down.
10168 (have_live_inferiors): Adjust.
10169 (switch_to_inferior_and_push_target): New.
10170 (add_inferior_command, clone_inferior_command): Handle
10171 "-no-connection" parameter. Use
10172 switch_to_inferior_and_push_target.
10173 (_initialize_inferior): Mention "-no-connection" option in
10174 the help of "add-inferior" and "clone-inferior" commands.
10175 * inferior.h: Include "process-stratum-target.h".
10176 (interrupt_target_1): Use bool.
10177 (struct inferior) <push_target, unpush_target, target_is_pushed,
10178 find_target_beneath, top_target, process_target, target_at,
10179 m_stack>: New.
10180 (discard_all_inferiors): Delete.
10181 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10182 (all_inferiors, all_non_exited_inferiors): Add
10183 process_stratum_target parameter.
10184 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10185 (target_last_proc_target): New global.
10186 (follow_fork_inferior): Push target on new inferior. Pass target
10187 to add_thread_silent. Call exec_on_vfork. Handle target's
10188 reference count.
10189 (follow_fork): Adjust get_last_target_status call. Also consider
10190 target.
10191 (follow_exec): Push target on new inferior.
10192 (struct execution_control_state) <target>: New field.
10193 (user_visible_resume_target): New.
10194 (do_target_resume): Call target_async.
10195 (resume_1): Set target's threads_executing flag. Consider resume
10196 target.
10197 (commit_resume_all_targets): New.
10198 (proceed): Also consider resume target. Skip threads of inferiors
10199 with no execution. Commit resumtion in all targets.
10200 (start_remote): Pass current inferior to wait_for_inferior.
10201 (infrun_thread_stop_requested): Consider target as well. Pass
10202 thread_info pointer to clear_inline_frame_state instead of ptid.
10203 (infrun_thread_thread_exit): Consider target as well.
10204 (random_pending_event_thread): New inferior parameter. Use it.
10205 (do_target_wait): Rename to ...
10206 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10207 down.
10208 (threads_are_resumed_pending_p, do_target_wait): New.
10209 (prepare_for_detach): Adjust calls.
10210 (wait_for_inferior): New inferior parameter. Handle it. Use
10211 do_target_wait_1 instead of do_target_wait.
10212 (fetch_inferior_event): Adjust. Switch to representative
10213 inferior. Pass target down.
10214 (set_last_target_status): Add process_stratum_target parameter.
10215 Save target in global.
10216 (get_last_target_status): Add process_stratum_target parameter and
10217 handle it.
10218 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10219 (context_switch): Check inferior_ptid == null_ptid before calling
10220 inferior_thread().
10221 (get_inferior_stop_soon): Pass down target.
10222 (wait_one): Rename to ...
10223 (poll_one_curr_target): ... this.
10224 (struct wait_one_event): New.
10225 (wait_one): New.
10226 (stop_all_threads): Adjust.
10227 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10228 event's target.
10229 (switch_back_to_stepped_thread): Also consider target.
10230 (print_stop_event): Update.
10231 (normal_stop): Update. Also consider the resume target.
10232 * infrun.h (wait_for_inferior): Remove declaration.
10233 (user_visible_resume_target): New declaration.
10234 (get_last_target_status, set_last_target_status): New
10235 process_stratum_target parameter.
10236 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10237 process_stratum_target parameter, and use it.
10238 (clear_inline_frame_state (thread_info*)): New.
10239 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10240 process_stratum_target parameter.
10241 (clear_inline_frame_state (thread_info*)): Declare.
10242 * linux-fork.c (delete_checkpoint_command): Pass target down to
10243 find_thread_ptid.
10244 (checkpoint_command): Adjust.
10245 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10246 instead of just tweaking inferior_ptid.
10247 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10248 (exit_lwp): Pass target down to find_thread_ptid.
10249 (attach_proc_task_lwp_callback): Pass target down to
10250 add_thread/set_running/set_executing.
10251 (linux_nat_target::attach): Pass target down to
10252 thread_change_ptid.
10253 (get_detach_signal): Pass target down to find_thread_ptid.
10254 Consider last target status's target.
10255 (linux_resume_one_lwp_throw, resume_lwp)
10256 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10257 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10258 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10259 (linux_nat_target::async_wait_fd): New.
10260 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10261 target down.
10262 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10263 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10264 * linux-thread-db.c (struct thread_db_info::process_target): New
10265 field.
10266 (add_thread_db_info): Save target.
10267 (get_thread_db_info): New process_stratum_target parameter. Also
10268 match target.
10269 (delete_thread_db_info): New process_stratum_target parameter.
10270 Also match target.
10271 (thread_from_lwp): Adjust to pass down target.
10272 (thread_db_notice_clone): Pass down target.
10273 (check_thread_db_callback): Pass down target.
10274 (try_thread_db_load_1): Always push the thread_db target.
10275 (try_thread_db_load, record_thread): Pass target down.
10276 (thread_db_target::detach): Pass target down. Always unpush the
10277 thread_db target.
10278 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10279 target down. Always unpush the thread_db target.
10280 (find_new_threads_callback, thread_db_find_new_threads_2)
10281 (thread_db_target::update_thread_list): Pass target down.
10282 (thread_db_target::pid_to_str): Pass current inferior down.
10283 (thread_db_target::get_thread_local_address): Pass target down.
10284 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10285 target down.
10286 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10287 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10288 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10289 (procfs_init_inferior): Rename to ...
10290 (procfs_target::procfs_init_inferior): ... this and adjust.
10291 (procfs_target::create_inferior, procfs_notice_thread)
10292 (procfs_do_thread_registers): Adjust.
10293 * ppc-fbsd-tdep.c: Include "inferior.h".
10294 (ppcfbsd_get_thread_local_address): Pass down target.
10295 * proc-service.c (ps_xfer_memory): Switch current inferior and
10296 program space as well.
10297 (get_ps_regcache): Pass target down.
10298 * process-stratum-target.c
10299 (process_stratum_target::thread_address_space)
10300 (process_stratum_target::thread_architecture): Pass target down.
10301 * process-stratum-target.h
10302 (process_stratum_target::threads_executing): New field.
10303 (as_process_stratum_target): New.
10304 * ravenscar-thread.c
10305 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10306 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10307 down.
10308 * record-btrace.c (record_btrace_target::info_record): Adjust.
10309 (record_btrace_target::record_method)
10310 (record_btrace_target::record_is_replaying)
10311 (record_btrace_target::fetch_registers)
10312 (get_thread_current_frame_id, record_btrace_target::resume)
10313 (record_btrace_target::wait, record_btrace_target::stop): Pass
10314 target down.
10315 * record-full.c (record_full_wait_1): Switch to event thread.
10316 Pass target down.
10317 * regcache.c (regcache::regcache)
10318 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10319 process_stratum_target parameter and handle it.
10320 (current_thread_target): New global.
10321 (get_thread_regcache): Add process_stratum_target parameter and
10322 handle it. Switch inferior before calling target method.
10323 (get_thread_regcache): Pass target down.
10324 (get_thread_regcache_for_ptid): Pass target down.
10325 (registers_changed_ptid): Add process_stratum_target parameter and
10326 handle it.
10327 (registers_changed_thread, registers_changed): Pass target down.
10328 (test_get_thread_arch_aspace_regcache): New.
10329 (current_regcache_test): Define a couple local test_target_ops
10330 instances and use them for testing.
10331 (readwrite_regcache): Pass process_stratum_target parameter.
10332 (cooked_read_test, cooked_write_test): Pass mock_target down.
10333 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10334 (get_thread_arch_aspace_regcache): Add process_stratum_target
10335 parameter.
10336 (regcache::target): New method.
10337 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10338 (regcache::registers_changed_ptid): Add process_stratum_target
10339 parameter.
10340 (regcache::m_target): New field.
10341 (registers_changed_ptid): Add process_stratum_target parameter.
10342 * remote.c (remote_state::supports_vCont_probed): New field.
10343 (remote_target::async_wait_fd): New method.
10344 (remote_unpush_and_throw): Add remote_target parameter.
10345 (get_current_remote_target): Adjust.
10346 (remote_target::remote_add_inferior): Push target.
10347 (remote_target::remote_add_thread)
10348 (remote_target::remote_notice_new_inferior)
10349 (get_remote_thread_info): Pass target down.
10350 (remote_target::update_thread_list): Skip threads of inferiors
10351 bound to other targets. (remote_target::close): Don't discard
10352 inferiors. (remote_target::add_current_inferior_and_thread)
10353 (remote_target::process_initial_stop_replies)
10354 (remote_target::start_remote)
10355 (remote_target::remote_serial_quit_handler): Pass down target.
10356 (remote_target::remote_unpush_target): New remote_target
10357 parameter. Unpush the target from all inferiors.
10358 (remote_target::remote_unpush_and_throw): New remote_target
10359 parameter. Pass it down.
10360 (remote_target::open_1): Check whether the current inferior has
10361 execution instead of checking whether any inferior is live. Pass
10362 target down.
10363 (remote_target::remote_detach_1): Pass down target. Use
10364 remote_unpush_target.
10365 (extended_remote_target::attach): Pass down target.
10366 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10367 (remote_target::append_resumption): Pass down target.
10368 (remote_target::append_pending_thread_resumptions)
10369 (remote_target::remote_resume_with_hc, remote_target::resume)
10370 (remote_target::commit_resume): Pass down target.
10371 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10372 (remote_target::interrupt_query)
10373 (remote_target::remove_new_fork_children)
10374 (remote_target::check_pending_events_prevent_wildcard_vcont)
10375 (remote_target::remote_parse_stop_reply)
10376 (remote_target::process_stop_reply): Pass down target.
10377 (first_remote_resumed_thread): New remote_target parameter. Pass
10378 it down.
10379 (remote_target::wait_as): Pass down target.
10380 (unpush_and_perror): New remote_target parameter. Pass it down.
10381 (remote_target::readchar, remote_target::remote_serial_write)
10382 (remote_target::getpkt_or_notif_sane_1)
10383 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10384 down target.
10385 (remote_target::mourn_inferior): Pass down target. Use
10386 remote_unpush_target.
10387 (remote_target::core_of_thread)
10388 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10389 (remote_target::pid_to_exec_file)
10390 (remote_target::thread_handle_to_thread_info): Pass down target.
10391 (remote_target::async_wait_fd): New.
10392 * riscv-fbsd-tdep.c: Include "inferior.h".
10393 (riscv_fbsd_get_thread_local_address): Pass down target.
10394 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10395 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10396 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10397 Adjust.
10398 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10399 * solib-svr4.c (enable_break): Pass down target.
10400 * spu-multiarch.c (parse_spufs_run): Pass down target.
10401 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10402 * target-delegates.c: Regenerate.
10403 * target.c (g_target_stack): Delete.
10404 (current_top_target): Return the current inferior's top target.
10405 (target_has_execution_1): Refer to the passed-in inferior's top
10406 target.
10407 (target_supports_terminal_ours): Check whether the initial
10408 inferior was already created.
10409 (decref_target): New.
10410 (target_stack::push): Incref/decref the target.
10411 (push_target, push_target, unpush_target): Adjust.
10412 (target_stack::unpush): Defref target.
10413 (target_is_pushed): Return bool. Adjust to refer to the current
10414 inferior's target stack.
10415 (dispose_inferior): Delete, and inline parts ...
10416 (target_preopen): ... here. Only dispose of the current inferior.
10417 (target_detach): Hold strong target reference while detaching.
10418 Pass target down.
10419 (target_thread_name): Add assertion.
10420 (target_resume): Pass down target.
10421 (target_ops::beneath, find_target_at): Adjust to refer to the
10422 current inferior's target stack.
10423 (get_dummy_target): New.
10424 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10425 has a thread running.
10426 (initialize_targets): Rename to ...
10427 (_initialize_target): ... this.
10428 * target.h: Include "gdbsupport/refcounted-object.h".
10429 (struct target_ops): Inherit refcounted_object.
10430 (target_ops::shortname, target_ops::longname): Make const.
10431 (target_ops::async_wait_fd): New method.
10432 (decref_target): Declare.
10433 (struct target_ops_ref_policy): New.
10434 (target_ops_ref): New typedef.
10435 (get_dummy_target): Declare function.
10436 (target_is_pushed): Return bool.
10437 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10438 (all_matching_threads_iterator::all_matching_threads_iterator):
10439 Handle filter target.
10440 * thread-iter.h (struct all_matching_threads_iterator, struct
10441 all_matching_threads_range, class all_non_exited_threads_range):
10442 Filter by target too. Remove explicit.
10443 * thread.c (threads_executing): Delete.
10444 (inferior_thread): Pass down current inferior.
10445 (clear_thread_inferior_resources): Pass down thread pointer
10446 instead of ptid_t.
10447 (add_thread_silent, add_thread_with_info, add_thread): Add
10448 process_stratum_target parameter. Use it for thread and inferior
10449 searches.
10450 (is_current_thread): New.
10451 (thread_info::deletable): Use it.
10452 (find_thread_ptid, thread_count, in_thread_list)
10453 (thread_change_ptid, set_resumed, set_running): New
10454 process_stratum_target parameter. Pass it down.
10455 (set_executing): New process_stratum_target parameter. Pass it
10456 down. Adjust reference to 'threads_executing'.
10457 (threads_are_executing): New process_stratum_target parameter.
10458 Adjust reference to 'threads_executing'.
10459 (set_stop_requested, finish_thread_state): New
10460 process_stratum_target parameter. Pass it down.
10461 (switch_to_thread): Also match inferior.
10462 (switch_to_thread): New process_stratum_target parameter. Pass it
10463 down.
10464 (update_threads_executing): Reimplement.
10465 * top.c (quit_force): Pop targets from all inferior.
10466 (gdb_init): Don't call initialize_targets.
10467 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10468 Declare.
10469 (windows_add_thread, windows_delete_thread): Adjust.
10470 (get_windows_debug_event): Rename to ...
10471 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10472 * tracefile-tfile.c (tfile_target_open): Pass down target.
10473 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10474 Forward declare.
10475 (switch_to_thread): Add process_stratum_target parameter.
10476 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10477 parameter. Use it.
10478 (mi_on_resume): Pass target down.
10479 * nat/fork-inferior.c (startup_inferior): Add
10480 process_stratum_target parameter. Pass it down.
10481 * nat/fork-inferior.h (startup_inferior): Add
10482 process_stratum_target parameter.
10483 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10484
75c6c844
PA
104852020-01-10 Pedro Alves <palves@redhat.com>
10486
10487 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10488 directly. Instead find the first thread in the thread list and
10489 use switch_to_thread.
10490
78f2c40a
PA
104912020-01-10 Pedro Alves <palves@redhat.com>
10492
10493 * remote.c (remote_target::remote_add_inferior): Don't bind a
10494 process to the current inferior if the current inferior is already
10495 bound to a process.
10496
e7af6c70
TBA
104972020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10498 Pedro Alves <palves@redhat.com>
10499
10500 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10501 If no process is specified, return null_ptid instead of
10502 inferior_ptid.
10503 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10504 TARGET_WAITKIND_SIGNALLED with no pid.
10505
31ba933e
PA
105062020-01-10 Pedro Alves <palves@redhat.com>
10507
10508 * remote.c (first_remote_resumed_thread): New.
10509 (remote_target::wait_as): Use it as default event_ptid instead of
10510 inferior_ptid.
10511
735fc2ca
PA
105122020-01-10 Pedro Alves <palves@redhat.com>
10513
10514 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10515
c17e02e1
PA
105162020-01-10 Pedro Alves <palves@redhat.com>
10517
10518 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10519 not -1.
10520
ab1ddbcf
PA
105212020-01-10 Pedro Alves <palves@redhat.com>
10522
10523 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10524 ptid to get_last_target_status.
10525 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10526 ptid to get_last_target_status.
10527 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10528 get_last_target_status.
10529 (info_program_command): Don't pass a target_waitstatus to
10530 get_last_target_status.
10531 * infrun.c (init_wait_for_inferior): Use
10532 nullify_last_target_wait_ptid.
10533 (get_last_target_status): Handle nullptr arguments.
10534 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10535 (print_stop_event): Don't pass a ptid to get_last_target_status.
10536 (normal_stop): Don't pass a ptid to get_last_target_status.
10537 * infrun.h (get_last_target_status, set_last_target_status): Move
10538 comments here and update.
10539 (nullify_last_target_wait_ptid): Declare.
10540 * linux-fork.c (fork_load_infrun_state): Remove local extern
10541 declaration of nullify_last_target_wait_ptid.
10542 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10543 to get_last_target_status.
10544
f3f8ece4
PA
105452020-01-10 Pedro Alves <palves@redhat.com>
10546
10547 * gdbthread.h (scoped_restore_current_thread)
10548 <dont_restore, restore, m_dont_restore>: Declare.
10549 * thread.c (thread_alive): Add assertion. Return bool.
10550 (switch_to_thread_if_alive): New.
10551 (prune_threads): Switch inferior/thread.
10552 (print_thread_info_1): Switch thread before calling target methods.
10553 (scoped_restore_current_thread::restore): New, factored out from
10554 ...
10555 (scoped_restore_current_thread::~scoped_restore_current_thread):
10556 ... this.
10557 (scoped_restore_current_thread::scoped_restore_current_thread):
10558 Add assertion.
10559 (thread_apply_all_command, thread_select): Use
10560 switch_to_thread_if_alive.
10561 * infrun.c (proceed, restart_threads, handle_signal_stop)
10562 (switch_back_to_stepped_thread): Switch current thread before
10563 calling target methods.
10564
db2d40f7
PA
105652020-01-10 Pedro Alves <palves@redhat.com>
10566
10567 * inferior.c (switch_to_inferior_no_thread): New function,
10568 factored out from ...
10569 (inferior_command): ... here.
10570 * inferior.h (switch_to_inferior_no_thread): Declare.
10571 * mi/mi-main.c (run_one_inferior): Use
10572 switch_to_inferior_no_thread.
10573
bd420a2d
PA
105742020-01-10 Pedro Alves <palves@redhat.com>
10575
10576 * infcmd.c (kill_command): Remove dead code.
10577
ddf5db90
PA
105782020-01-10 Pedro Alves <palves@redhat.com>
10579
10580 * remote.c (remote_target::mourn_inferior): No longer check
10581 whether the target is running.
10582
5018ce90
PA
105832020-01-10 Pedro Alves <palves@redhat.com>
10584
10585 * corelow.c (core_target::has_execution): Change parameter type to
10586 inferior pointer.
10587 * inferior.c (number_of_live_inferiors): Use
10588 inferior::has_execution instead of target_has_execution_1.
10589 * inferior.h (inferior::has_execution): New.
10590 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10591 inferior::has_execution instead of target_has_execution_1.
10592 * process-stratum-target.c
10593 (process_stratum_target::has_execution): Change parameter type to
10594 inferior pointer. Check the inferior's PID instead of
10595 inferior_ptid.
10596 * process-stratum-target.h
10597 (process_stratum_target::has_execution): Change parameter type to
10598 inferior pointer.
10599 * record-full.c (record_full_core_target::has_execution): Change
10600 parameter type to inferior pointer.
10601 * target.c (target_has_execution_1): Change parameter type to
10602 inferior pointer.
10603 (target_has_execution_current): Adjust.
10604 * target.h (target_ops::has_execution): Change parameter type to
10605 inferior pointer.
10606 (target_has_execution_1): Change parameter type to inferior
10607 pointer. Change return type to bool.
10608 * tracefile.h (tracefile_target::has_execution): Change parameter
10609 type to inferior pointer.
10610
74375d18
PA
106112020-01-10 Pedro Alves <palves@redhat.com>
10612
10613 * exceptions.c (print_flush): Remove current_top_target() check.
10614
acdf84a6
PA
106152020-01-10 Pedro Alves <palves@redhat.com>
10616
10617 * remote.c (show_remote_exec_file): Show the current inferior's
10618 exec-file instead of the command variable's value.
10619
ec506636
PA
106202020-01-10 Pedro Alves <palves@redhat.com>
10621
10622 * record-full.c (record_full_resume_ptid): New global.
10623 (record_full_target::resume): Set it.
10624 (record_full_wait_1): Use record_full_resume_ptid instead of
10625 inferior_ptid.
10626
873657b9
PA
106272020-01-10 Pedro Alves <palves@redhat.com>
10628
10629 * gdbthread.h (scoped_restore_current_thread)
10630 <dont_restore, restore, m_dont_restore>: Declare.
10631 * thread.c (thread_alive): Add assertion. Return bool.
10632 (switch_to_thread_if_alive): New.
10633 (prune_threads): Switch inferior/thread.
10634 (print_thread_info_1): Switch thread before calling target methods.
10635 (scoped_restore_current_thread::restore): New, factored out from
10636 ...
10637 (scoped_restore_current_thread::~scoped_restore_current_thread):
10638 ... this.
10639 (scoped_restore_current_thread::scoped_restore_current_thread):
10640 Add assertion.
10641 (thread_apply_all_command, thread_select): Use
10642 switch_to_thread_if_alive.
10643
7f0ae84c
GB
106442020-01-10 George Barrett <bob@bob131.so>
10645
10646 * stap-probe.c (stap_modify_semaphore): Don't check for null
10647 semaphores.
10648 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10649 for null semaphores.
10650
f5a7c406
AB
106512020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10652
10653 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10654 all source windows, and maintain horizontal scroll status while
10655 doing so.
10656
9ae6bf64
TT
106572020-01-09 Tom Tromey <tom@tromey.com>
10658
10659 PR tui/18932:
10660 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10661 update_source_window, not print_source_lines.
10662
b2efe70c
AB
106632020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10664
10665 * tui/tui.c (tui_enable): Register tui hooks after calling
10666 tui_display_main.
10667
5f23a082
CB
106682020-01-09 Christian Biesinger <cbiesinger@google.com>
10669
10670 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10671
3061113b
SM
106722020-01-08 Simon Marchi <simon.marchi@efficios.com>
10673
10674 * thread.c (print_thread_info_1): Fix indentation.
10675
57d75002
CB
106762020-01-09 Christian Biesinger <cbiesinger@google.com>
10677
10678 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10679 unique_xmalloc_ptr outside the if to always free the demangled name.
10680
6a053cb1
TT
106812020-01-08 Tom Tromey <tromey@adacore.com>
10682
10683 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10684 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10685 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10686 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10687 Remove.
10688 (section_offsets): New typedef.
10689 * symtab.c (fixup_section, get_msymbol_address): Update.
10690 * symmisc.c (dump_msymbols): Update.
10691 * symfile.h (relative_addr_info_to_section_offsets)
10692 (symfile_map_offsets_to_segments): Update.
10693 * symfile.c (build_section_addr_info_from_objfile)
10694 (init_objfile_sect_indices): Update.
10695 (struct place_section_arg): Change type of "offsets".
10696 (place_section): Update.
10697 (relative_addr_info_to_section_offsets): Change type of
10698 "section_offsets". Remove "num_sections" parameter.
10699 (default_symfile_offsets, syms_from_objfile_1)
10700 (set_objfile_default_section_offset): Update.
10701 (reread_symbols): No need to preserve section offsets by hand.
10702 (symfile_map_offsets_to_segments): Change type of "offsets".
10703 * stap-probe.c (relocate_address): Update.
10704 * stabsread.h (process_one_symbol): Update.
10705 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10706 (solib_target_relocate_section_addresses): Update.
10707 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10708 Update.
10709 * solib-frv.c (frv_relocate_main_executable): Update.
10710 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10711 * solib-aix.c (solib_aix_get_section_offsets): Change return
10712 type.
10713 (solib_aix_solib_create_inferior_hook): Update.
10714 * remote.c (remote_target::get_offsets): Update.
10715 * psymtab.c (find_pc_sect_psymtab): Update.
10716 * psympriv.h (struct partial_symbol) <address, text_low,
10717 text_high>: Update.
10718 * objfiles.h (obj_section_offset): Update.
10719 (struct objfile) <section_offsets>: Change type.
10720 <num_sections>: Remove.
10721 (objfile_relocate): Update.
10722 * objfiles.c (entry_point_address_query): Update
10723 (relocate_one_symbol): Change type of "section_offsets".
10724 (objfile_relocate1, objfile_relocate1): Change type of
10725 "new_offsets".
10726 (objfile_rebase1): Update.
10727 * mipsread.c (mipscoff_symfile_read): Update.
10728 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10729 parameter.
10730 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10731 (parse_external, psymtab_to_symtab_1): Update.
10732 * machoread.c (macho_symfile_offsets): Update.
10733 * ia64-tdep.c (ia64_find_unwind_table): Update.
10734 * hppa-tdep.c (read_unwind_info): Update.
10735 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10736 * dwarf2read.c (create_addrmap_from_index)
10737 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10738 (process_psymtab_comp_unit_reader, add_partial_symbol)
10739 (add_partial_subprogram, process_full_comp_unit)
10740 (read_file_scope, read_func_scope, read_lexical_block_scope)
10741 (read_call_site_scope, dwarf2_rnglists_process)
10742 (dwarf2_ranges_process, dwarf2_ranges_read)
10743 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10744 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10745 Update.
10746 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10747 Update.
10748 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10749 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10750 (process_one_symbol): Change type of "section_offsets".
10751 * ctfread.c (get_objfile_text_range): Update.
10752 * coffread.c (coff_symtab_read, enter_linenos)
10753 (process_coff_symbol): Update.
10754 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10755 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10756
456e800a
TT
107572020-01-08 Tom Tromey <tromey@adacore.com>
10758
10759 * dwarf2read.c (parse_macro_definition): Use std::string.
10760 (parse_macro_definition): Likewise.
10761
6dfa2fc2
TT
107622020-01-08 Tom Tromey <tromey@adacore.com>
10763
10764 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10765 (ATTR_ALLOC_CHUNK): Remove.
10766
421d1616
TT
107672020-01-08 Tom Tromey <tromey@adacore.com>
10768
10769 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10770
43816ebc
TT
107712020-01-08 Tom Tromey <tromey@adacore.com>
10772
10773 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10774 (dwarf2_compute_name, open_dwo_file): Likewise.
10775 (process_enumeration_scope): Use std::vector.
10776 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10777 (partial_die_info::fixup, dwarf2_start_subfile)
10778 (guess_full_die_structure_name, dwarf2_name): Likewise.
10779 (determine_prefix): Update.
10780 (guess_full_die_structure_name): Make return type const.
10781 (partial_die_full_name): Return unique_xmalloc_ptr.
10782 (DW_FIELD_ALLOC_CHUNK): Remove.
10783
4212d509
TT
107842020-01-07 Tom Tromey <tromey@adacore.com>
10785
10786 PR build/24937:
10787 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10788
06a6207a
JT
107892020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10790
10791 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10792
153d79c4
AB
107932020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10794
10795 * stack.c (print_frame_info): Move disassemble_next_line code
10796 inside source_print block.
10797
66182876
EZ
107982020-01-06 Eli Zaretskii <eliz@gnu.org>
10799
10800 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10801 gdb/signals.h, as we are now using native signal symbols.
10802
cbfa8581
SV
108032020-01-06 Shahab Vahedi <shahab@synopsys.com>
10804
10805 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10806 overflow by an early check of content vs threshold.
aac66a4c 10807 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10808 Likewise.
10809
3f602821
EZ
108102020-01-06 Eli Zaretskii <eliz@gnu.org>
10811
10812 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10813
a08c904d
JT
108142020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10815
10816 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10817 export table if no section contains it's RVA.
10818
89a65580
EZ
108192020-01-06 Eli Zaretskii <eliz@gnu.org>
10820
10821 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10822
8b7fcda2
HD
108232020-01-06 Hannes Domani <ssbssa@yahoo.de>
10824
10825 * source.c (print_source_lines_base): Set last_line_listed.
10826
a61b4f69
SV
108272020-01-06 Shahab Vahedi <shahab@synopsys.com>
10828
10829 * tui/tui-disasm.c: Remove trailing spaces.
10830
559e7e50
EZ
108312020-01-06 Eli Zaretskii <eliz@gnu.org>
10832 Pedro Alves <palves@redhat.com>
10833
10834 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10835 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10836 (windows_gdb_signal_to_target): New function, uses the above
10837 enumeration to convert GDB internal signal codes to equivalent
10838 Windows codes.
10839 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10840 * windows-nat.c: Include "gdb_wait.h".
10841 (get_windows_debug_event): Extract the fatal exception from the
10842 exit status and convert to the equivalent Posix signal number.
10843 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10844 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10845 * gdbsupport/gdb_wait.c: New file, implements
10846 windows_status_to_termsig.
10847 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10848 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10849
f2302a34
AB
108502020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10851
10852 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10853 show_layout.
10854
6a5206eb
LM
108552020-01-05 Luis Machado <luis.machado@linaro.org>
10856
10857 * aarch64-linux-nat.c
10858 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10859 and bfd_mach_aarch64.
10860
6ec1d75e
PW
108612020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10862
10863 * ui-file.c (stdio_file::can_emit_style_escape)
10864 (tee_file::can_emit_style_escape): Ensure style is used also on
10865 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10866 to gdb_stdout.
10867 * main.c (set_gdb_data_directory): Use file style to output the
10868 warning that the given pathname is not a directory.
10869 * top.c (show_history_filename, gdb_safe_append_history)
10870 (show_gdb_datadir): Use file style.
10871
44f81a76
HD
108722020-01-03 Hannes Domani <ssbssa@yahoo.de>
10873
10874 * solib-target.c (struct lm_info_target):
10875 Change offsets to be a unique_xmalloc_ptr.
10876 (solib_target_relocate_section_addresses): Update.
10877
25057eb0
HD
108782020-01-03 Hannes Domani <ssbssa@yahoo.de>
10879
10880 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10881
6e2118f5
BE
108822020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10883
10884 * MAINTAINERS (Write After Approval): Add myself.
10885
8133c7dc
LM
108862020-01-02 Luis Machado <luis.machado@linaro.org>
10887
10888 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10889 Cell BE architecture.
10890 * target.h (struct target_ops) <thread_architecture>: Likewise.
10891
48189bec
HD
108922020-01-01 Hannes Domani <ssbssa@yahoo.de>
10893
10894 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10895
ead1063b
HD
108962020-01-01 Hannes Domani <ssbssa@yahoo.de>
10897
10898 * MAINTAINERS (Write After Approval): Add myself.
10899
e5d78223
JB
109002020-01-01 Joel Brobecker <brobecker@adacore.com>
10901
10902 * gdbarch.sh: Update copyright year range of generated files.
10903
b811d2c2
JB
109042020-01-01 Joel Brobecker <brobecker@adacore.com>
10905
10906 Update copyright year range in all GDB files.
10907
5f4def5c
JB
109082020-01-01 Joel Brobecker <brobecker@adacore.com>
10909
10910 * copyright.py: Convert to Python 3.
10911
51fd4002
JB
109122020-01-01 Joel Brobecker <brobecker@adacore.com>
10913
10914 * copyright.py: Adapt after move of gnulib directory from gdb
10915 directory to toplevel directory.
10916
5fb651f2
JB
109172020-01-01 Joel Brobecker <brobecker@adacore.com>
10918
10919 * copyright.py (main): Exit if run from the wrong directory.
10920
5dd8bf88
JB
109212020-01-01 Joel Brobecker <brobecker@adacore.com>
10922
10923 * top.c (print_gdb_version): Change copyright year to 2020.
10924
9f71dacb 109252020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 10926
9f71dacb 10927 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 10928
9f71dacb 10929For older changes see ChangeLog-2019.
c906108c
SS
10930\f
10931Local Variables:
10932mode: change-log
10933left-margin: 8
10934fill-column: 74
10935version-control: never
57da7796 10936coding: utf-8
c906108c 10937End: