]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: Remove deprecated_set_gdbarch_data
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3bc98c0c
AB
12020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * gdbarch.c: Regenerate.
4 * gdbarch.h: Regenerate.
5 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6 (gdbarch_data): Use internal_error for the case where
7 deprecated_set_gdbarch_data was originally needed.
8 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
9 and use passed in obstack.
10 (libunwind_frame_set_descr): Should no longer get back NULL from
11 gdbarch_data.
12 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
13 type.
14 * user-regs.c (user_regs_init): Update parameters, and use passed
15 in obstack.
16 (user_reg_add): Should no longer get back NULL from gdbarch_data.
17 (_initialize_user_regs): Register as a pre-init gdbarch data type.
18
d8cc8af6
TV
192020-07-06 Tom de Vries <tdevries@suse.de>
20
21 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
22 End-Of-Sequence in lte_is_less_than.
23 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
24 "gdb: Don't reorder line table entries too much when sorting".
25
947f7597
TV
262020-07-06 Tom de Vries <tdevries@suse.de>
27
28 PR tui/26205
29 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
30
1e7c1b22
TV
312020-07-05 Tom de Vries <tdevries@suse.de>
32
33 PR build/26187
34 * inferior.h (struct infcall_suspend_state_deleter): If available, use
35 std::uncaught_exceptions instead of deprecated
36 std::uncaught_exception.
37
a36158ec
SM
382020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
39
40 * macroexp.h (macro_stringify): Return
41 gdb::unique_xmalloc_ptr<char>.
42 * macroexp.c (macro_stringify): Likewise.
43 * macrotab.c (fixup_definition): Update.
44
14d960c8
SM
452020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
46
47 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
48 (lex_one_token): Update.
49 * macroexp.c (struct macro_buffer) <release>: Return
50 gdb::unique_xmalloc_ptr<char>.
51 (macro_stringify): Update.
52 (macro_expand): Update.
53 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
54 * macroexp.h (macro_expand_next): Likewise.
55
211d5b1c
SM
562020-07-02 Simon Marchi <simon.marchi@efficios.com>
57
58 * macroexp.h (macro_lookup_ftype): Remove.
59 (macro_expand, macro_expand_once, macro_expand_next): Remove
60 lookup function parameters, add scope parameter.
61 * macroexp.c (scan, substitute_args, expand, maybe_expand,
62 macro_expand, macro_expand_once, macro_expand_next): Likewise.
63 * macroscope.h (standard_macro_lookup): Change parameter type
64 to macro_scope.
65 * macroscope.c (standard_macro_lookup): Likewise.
66 * c-exp.y (lex_one_token): Update.
67 * macrocmd.c (macro_expand_command): Likewise.
68 (macro_expand_once_command): Likewise.
69
b1a35af2
SM
702020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
71
72 * inf-loop.c (inferior_event_handler): Remove client_data param.
73 * inf-loop.h (inferior_event_handler): Likewise.
74 * infcmd.c (step_1): Adjust.
75 * infrun.c (proceed): Adjust.
76 (fetch_inferior_event): Remove client_data param.
77 (infrun_async_inferior_event_handler): Adjust.
78 * infrun.h (fetch_inferior_event): Remove `void *` param.
79 * linux-nat.c (handle_target_event): Adjust.
80 * record-btrace.c (record_btrace_handle_async_inferior_event):
81 Adjust.
82 * record-full.c (record_full_async_inferior_event_handler):
83 Adjust.
84 * remote.c (remote_async_inferior_event_handler): Adjust.
85
1cdf9e33
TT
862020-07-01 Tom Tromey <tom@tromey.com>
87
88 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
89 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
90
32c1e210
TT
912020-07-01 Tom Tromey <tom@tromey.com>
92
93 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
94 tui_gen_win_info.
95 (tui_win_info::make_window): Merge with
96 tui_gen_win_info::make_window.
97 (tui_win_info::make_visible): Move from tui_gen_win_info.
98 * tui/tui-win.c (tui_win_info::max_width): Move from
99 tui_gen_win_info.
100 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
101 type.
102 <window_factory>: Likewise.
103 * tui/tui-layout.c (tui_win_info::resize): Move from
104 tui_gen_win_info.
105 (make_standard_window): Change return type.
106 (get_locator_window, tui_get_window_by_name): Likewise.
107 (tui_layout_window::apply): Remove a cast.
108 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
109 (struct tui_win_info): Merge with tui_gen_win_info.
110 (struct tui_gen_win_info): Remove.
111
a30cb6da
TT
1122020-07-01 Tom Tromey <tom@tromey.com>
113
114 * tui/tui-stack.h (struct tui_locator_window): Derive from
115 tui_win_info.
116 <do_scroll_horizontal, do_scroll_vertical>: New methods.
117 <can_box>: New method.
118
1eb2161f
TT
1192020-07-01 Tom Tromey <tom@tromey.com>
120
121 * tui/tui-stack.h (struct tui_locator_window): Remove body.
122
7134f2eb
TT
1232020-07-01 Tom Tromey <tom@tromey.com>
124
125 * tui/tui-regs.c (tui_data_window::display_registers_from)
126 (tui_data_window::display_registers_from)
127 (tui_data_window::first_data_item_displayed)
128 (tui_data_window::delete_data_content_windows): Update.
129 (tui_data_window::refresh_window, tui_data_window::no_refresh):
130 Remove.
131 (tui_data_window::check_register_values): Update.
132 (tui_data_item_window::rerender): Add parameters. Update.
133 (tui_data_item_window::refresh_window): Remove.
134 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
135 virtual.
136 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
137 tui_gen_win_info.
138 <refresh_window, max_height, min_height>: Remove.
139 <rerender>: Add parameters.
140 <x, y, visible>: New members.
141 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
142 <m_item_width>: New member.
143
22b7b041
TT
1442020-07-01 Tom Tromey <tom@tromey.com>
145
146 * tui/tui-regs.c (tui_data_window::show_register_group)
147 (tui_data_window::check_register_values): Update.
148 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
149 from item_no.
150
c9753adb
TT
1512020-07-01 Tom Tromey <tom@tromey.com>
152
153 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
154 useless "if".
155
9ab26b4a
TT
1562020-07-01 Tom Tromey <tom@tromey.com>
157
158 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
159 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
160
e555083f
TT
1612020-07-01 Tom Tromey <tom@tromey.com>
162
163 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
164 * tui/tui-winsource.h (enum tui_line_or_address_kind)
165 (struct tui_line_or_address): Move from tui-data.h.
166 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
167 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
168 (tui_cmd_window, tui_source_window_base, tui_source_window)
169 (tui_disasm_window): Don't declare.
170 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
171 to tui-winsource.h.
172 (SINGLE_KEY): Move to tui-stack.c.
173
7a02bab7
TT
1742020-07-01 Tom Tromey <tom@tromey.com>
175
176 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
177 std::string.
178 * tui/tui-regs.c (class tab_expansion_file): New.
179 (tab_expansion_file::write): New method.
180 (tui_register_format): Change return type. Use
181 tab_expansion_file.
182 (tui_get_register, tui_data_window::display_registers_from)
183 (tui_data_item_window::rerender): Update.
184 * tui/tui-io.h (tui_expand_tabs): Don't declare.
185 * tui/tui-io.c (tui_expand_tabs): Remove.
186
ea68593b
TT
1872020-07-01 Tom Tromey <tom@tromey.com>
188
189 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
190
a8caed5d
FS
1912020-07-01 Fangrui Song <maskray@google.com>
192
193 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
194
9cdf9820
AKS
1952020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
196
197 * dwarf2/read.c (set_die_type): Removed conditions to restrict
198 forms for DW_AT_associated and DW_AT_allocated attributes,
199 which is already checked in function attr_to_dynamic_prop.
200
a1520ad8
TT
2012020-06-30 Tom Tromey <tromey@adacore.com>
202
203 * dwarf2/read.c (quirk_rust_enum): Correctly call
204 alloc_rust_variant for default-less enum.
205
5ac58899
TT
2062020-06-30 Tom Tromey <tromey@adacore.com>
207
208 PR build/26183:
209 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
210 gdb::to_string.
211
19b187a9
SM
2122020-06-29 Simon Marchi <simon.marchi@efficios.com>
213
214 * gdbarch.sh (displaced_step_copy_insn): Update doc.
215 * gdbarch.h: Re-generate.
216
cd4c4c07
TT
2172020-06-28 Tom Tromey <tom@tromey.com>
218
219 * command.h (cmd_types): Remove.
220 (cmd_type): Don't declare.
221 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
222 typedef.
223 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
224 * cli/cli-decode.c (cmd_type): Remove.
225
05779d57
PA
2262020-06-27 Pedro Alves <palves@redhat.com>
227
228 * fork-child.c (prefork_hook): Adjust.
229 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
230 Delete.
231 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
232 * inferior.c (inferior::set_tty, inferior::tty): New methods.
233 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
234 Remove declarations.
235 (struct inferior) <set_tty, tty>: New methods.
236 (struct inferior) <terminal>: Rename to ...
237 (struct inferior) <m_terminal>: ... this and make private.
238 * main.c (captured_main_1): Adjust.
239 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
240 (mi_cmd_inferior_tty_show): Adjust.
241 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
242 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
243
1776e3e5
NA
2442020-06-26 Nick Alcock <nick.alcock@oracle.com>
245
246 * configure.ac: Add --enable-libctf: handle --disable-static
247 properly.
248 * acinclude.m4: sinclude ../config/enable.m4.
249 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
250 (LIBCTF): Substitute in.
251 (CTF_DEPS): New, likewise.
252 (CLIBS): libctf needs symbols from libbfd: move earlier.
253 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
254 flags.
255 * ctfread.c: Surround in ENABLE_LIBCTF.
256 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
257 * configure: Regenerate.
258 * config.in: Likewise.
259
58373b80
SM
2602020-06-25 Simon Marchi <simon.marchi@efficios.com>
261
262 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
263
277474ee
SM
2642020-06-25 Simon Marchi <simon.marchi@efficios.com>
265
266 * inferior.h (struct inferior) <terminal>: Change type to
267 gdb::unique_xmalloc_ptr<char>.
268 * inferior.c (inferior::~inferior): Don't free inf->terminal.
269 * infcmd.c (set_inferior_io_terminal): Don't free terminal
270 field, adjust to unique pointer.
271 (get_inferior_io_terminal): Adjust to unique pointer.
272
6d74da72
AB
2732020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
274
275 * riscv-tdep.c (riscv_print_registers_info): Loop over all
276 registers, not just the known core set of registers.
277
2e52d038
AB
2782020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
279
280 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
281 fflags, frm, and fcsr registers.
282 (riscv_register_reggroup_p): Remove unknown CSRs from save and
283 restore groups.
284 (riscv_tdesc_unknown_reg): New function.
285 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
286 tdesc_use_registers.
287 * riscv-tdep.h (struct gdbarch_tdep): Add
288 unknown_csrs_first_regnum, unknown_csrs_count,
289 duplicate_fflags_regnum, duplicate_frm_regnum, and
290 duplicate_fcsr_regnum fields.
291
be64fd07
AB
2922020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
293
294 * target-descriptions.c (tdesc_use_registers): Add new parameter a
295 callback, use the callback (when not null) to help number unknown
296 registers.
297 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
298 (tdesc_use_registers): Add extra parameter to declaration.
299
3b9fce96
AB
3002020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
301
302 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
303 in the file.
304 (class riscv_pending_register_alias): Likewise.
305 (riscv_register_feature::register_info): Change 'required_p' field
306 to 'required', and change its type. Add 'check' member function.
307 (riscv_register_feature::register_info::check): Define new member
308 function.
309 (riscv_xreg_feature): Change initialisation of 'required' field.
310 (riscv_freg_feature): Likewise.
311 (riscv_virtual_feature): Likewise.
312 (riscv_csr_feature): Likewise.
313 (riscv_check_tdesc_feature): Take extra parameter, the csr
314 tdesc_feature, rewrite the function to use the new
315 riscv_register_feature::register_info::check function.
316 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
317
865bad26
AB
3182020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
319
320 * features/Makefile: Remove all references to the deleted files
321 below.
322 * features/riscv/32bit-csr.c: Deleted.
323 * features/riscv/32bit-csr.xml: Deleted.
324 * features/riscv/64bit-csr.c: Deleted.
325 * features/riscv/64bit-csr.xml: Deleted.
326 * features/riscv/rebuild-csr-xml.sh: Deleted.
327
ed69cbc8
AB
3282020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
329
330 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
331 whitespace error for declaration of names member variable.
332 (struct riscv_register_feature): Add new prefer_first_name member
333 variable, and fix whitespace error in declaration of registers.
334 (riscv_xreg_feature): Initialize prefer_first_name field.
335 (riscv_freg_feature): Likewise.
336 (riscv_virtual_feature): Likewise.
337 (riscv_csr_feature): Likewise.
338 (riscv_register_name): Expand on comments. Remove register name
339 modifications for CSR and virtual registers.
340
4445e8f5
AB
3412020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
342
343 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
344 errors.
345
767a879e
AB
3462020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
347
348 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
349 riscv-opc.h.
350 (class riscv_pending_register_alias): New class.
351 (riscv_check_tdesc_feature): Take vector of pending aliases and
352 populate it as appropriate.
353 (riscv_setup_register_aliases): Delete.
354 (riscv_gdbarch_init): Create vector of pending aliases and pass it
355 to riscv_check_tdesc_feature in all cases. Use the vector to
356 create the register aliases.
357
bb6e55f3
RO
3582020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
359
360 * sol2-tdep.c (sol2_static_transform_name): Remove.
361 (sol2_init_abi): Don't register it.
362 * gdbarch.sh (static_transform_name): Remove.
363 * gdbarch.c, gdbarch.h: Regenerate.
364
365 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
366 gdbarch_static_transform_name.
367 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
368 * stabsread.c (define_symbol) <'X'>: Remove.
369 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
370 handling.
371 <'V'>: Likewise.
372 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
373 <'S'>: Remove call to gdbarch_static_transform_name.
374
c6d36836
RO
3752020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
376
377 * procfs.c (procfs_pre_trace): New function.
378 (procfs_target::create_inferior): Pass it to fork_inferior.
379
a7e6196b
RO
3802020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
381
382 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
383 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
384 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
385 sol2-tdep.o, sparc-sol2-tdep.o.
386 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
387 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
388 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
389 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
390
d412e696
RO
3912020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
392
393 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
394 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
395 Call sol2_init_abi.
396 Remove calls to set_gdbarch_skip_solib_resolver,
397 set_gdbarch_core_pid_to_str.
398 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
399 (i386_sol2_static_transform_name): Remove.
400 (i386_sol2_init_abi): Call sol2_init_abi.
401 Remove calls to set_gdbarch_sofun_address_maybe_missing,
402 set_gdbarch_static_transform_name,
403 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
404 Use sol2_sigtramp_p.
405 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
406 (sol2_sigtramp_p): New function.
407 (sol2_static_transform_name): New function.
408 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
409 (sol2_init_abi): New function.
410 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
411 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
412 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
413 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
414 (sparc_sol2_static_transform_name): Remove.
415 (sparc32_sol2_init_abi): Call sol2_init_abi.
416 Remove calls to set_gdbarch_sofun_address_maybe_missing,
417 set_gdbarch_static_transform_name,
418 set_gdbarch_skip_solib_resolver,
419 set_gdbarch_core_pid_to_str.
420 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
421 (sparc_sol2_static_transform_name): Remove
422 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
423 call sol2_sigtramp_p.
424 (sparc64_sol2_init_abi): Call sol2_init_abi.
425 Remove calls to set_gdbarch_sofun_address_maybe_missing,
426 set_gdbarch_static_transform_name,
427 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
428
a8654e7d
PW
4292020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
430
431 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
432 * exec.c (validate_exec_file): If from_tty, set both
433 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
434 * symfile.c (symbol_file_add_with_addrs): if always_confirm
435 and from_tty, unconditionally ask a confirmation.
436
caa7fd04
AB
4372020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
438
439 * target-descriptions.c (tdesc_architecture_name): Protect against
440 NULL pointer dereference.
441 (maint_print_xml_tdesc_cmd): New function.
442 (_initialize_target_descriptions): Register new 'maint print
443 xml-tdesc' command and give it the filename completer.
444 * NEWS: Mention new 'maint print xml-tdesc' command.
445
fbf42f4e
AB
4462020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
447
448 * target-descriptions.c (class tdesc_compatible_info): New class.
449 (struct target_desc): Change type of compatible vector.
450 (tdesc_compatible_p): Update for change in type of
451 target_desc::compatible.
452 (tdesc_compatible_info_list): New function.
453 (tdesc_compatible_info_arch_name): New function.
454 (tdesc_add_compatible): Update for change in type of
455 target_desc::compatible.
456 (print_c_tdesc::visit_pre): Likewise.
457
20821f4e
AB
4582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
459
460 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
461 whitespace to underscore.
462 (maint_print_c_tdesc_cmd): Use fake filename for target
463 descriptions that came from the target.
464 (_initialize_target_descriptions): Add filename command completion
465 for 'maint print c-tdesc'.
466
1fb5ee62
SM
4672020-06-23 Simon Marchi <simon.marchi@efficios.com>
468
469 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
470 lines.
471
fc3ecb3e
SM
4722020-06-23 Simon Marchi <simon.marchi@efficios.com>
473
474 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
475 lines.
476 (dwarf2_find_location_expression): Likewise.
477 (call_site_parameter_matches): Likewise.
478 (dwarf2_compile_expr_to_ax): Likewise.
479 (disassemble_dwarf_expression): Likewise.
480 (loclist_describe_location): Likewise.
481
236ef034
PA
4822020-06-23 Pedro Alves <palves@redhat.com>
483
484 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
485 progspace-and-thread.h. Include scoped-mock-context.h instead.
486 (register_to_value_test): Use scoped_mock_context.
487 * regcache.c: Include "scoped-mock-context.h".
488 (cooked_read_test): Don't error out if a target is already pushed.
489 Use scoped_mock_context. Adjust.
490 * scoped-mock-context.h: New file.
491
39e7ecca
AB
4922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
493
494 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
495 initializer.
496 (ada_language::is_string_type_p): New member function.
497 * c-lang.c (c_language_data): Delete la_is_string_type_p
498 initializer.
499 (cplus_language_data): Likewise.
500 (asm_language_data): Likewise.
501 (minimal_language_data): Likewise.
502 * d-lang.c (d_language_data): Likewise.
503 * f-lang.c (f_is_string_type_p): Delete function, implementation
504 moved to f_language::is_string_type_p.
505 (f_language_data): Delete la_is_string_type_p initializer.
506 (f_language::is_string_type_p): New member function,
507 implementation from f_is_string_type_p.
508 * go-lang.c (go_is_string_type_p): Delete function, implementation
509 moved to go_language::is_string_type_p.
510 (go_language_data): Delete la_is_string_type_p initializer.
511 (go_language::is_string_type_p): New member function,
512 implementation from go_is_string_type_p.
513 * language.c (language_defn::is_string_type_p): Define new member
514 function.
515 (default_is_string_type_p): Make static, add comment copied from
516 header file.
517 (unknown_language_data): Delete la_is_string_type_p initializer.
518 (unknown_language::is_string_type_p): New member function.
519 (auto_language_data): Delete la_is_string_type_p initializer.
520 (auto_language::is_string_type_p): New member function.
521 * language.h (language_data): Delete la_is_string_type_p field.
522 (language_defn::is_string_type_p): Declare new function.
523 (default_is_string_type_p): Delete desclaration, move comment to
524 definition.
525 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
526 moved to m2_language::is_string_type_p.
527 (m2_language_data): Delete la_is_string_type_p initializer.
528 (m2_language::is_string_type_p): New member function,
529 implementation from m2_is_string_type_p.
530 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
531 initializer.
532 * opencl-lang.c (opencl_language_data): Likewise.
533 * p-lang.c (pascal_is_string_type_p): Delete function,
534 implementation moved to pascal_language::is_string_type_p.
535 (pascal_language_data): Delete la_is_string_type_p initializer.
536 (pascal_language::is_string_type_p): New member function,
537 implementation from pascal_is_string_type_p.
538 * rust-lang.c (rust_is_string_type_p): Delete function,
539 implementation moved to rust_language::is_string_type_p.
540 (rust_language_data): Delete la_is_string_type_p initializer.
541 (rust_language::is_string_type_p): New member function,
542 implementation from rust_is_string_type_p.
543 * valprint.c (val_print_scalar_or_string_type_p): Update call to
544 is_string_type_p.
545
4ffc13fb
AB
5462020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
547
548 * ada-lang.c (ada_language_data): Delete la_print_typedef
549 initializer.
550 (ada_language::print_typedef): New member function.
551 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
552 (cplus_language_data): Likewise.
553 (asm_language_data): Likewise.
554 (minimal_language_data): Likewise.
555 * d-lang.c (d_language_data): Likewise.
556 * f-lang.c (f_language_data): Likewise.
557 (f_language::print_typedef): New member function.
558 * go-lang.c (go_language_data): Delete la_print_typedef
559 initializer.
560 * language.c (language_defn::print_typedef): Define member
561 function.
562 (unknown_language_data): Delete la_print_typedef initializer.
563 (unknown_language::print_typedef): New member function.
564 (auto_language_data): Delete la_print_typedef initializer.
565 (auto_language::print_typedef): New member function.
566 * language.h (language_data): Delete la_print_typedef field.
567 (language_defn::print_typedef): Declare new member function.
568 (LA_PRINT_TYPEDEF): Update call to print_typedef.
569 (default_print_typedef): Delete declaration.
570 * m2-lang.c (m2_language_data): Delete la_print_typedef
571 initializer.
572 (m2_language::print_typedef): New member function.
573 * objc-lang.c (objc_language_data): Delete la_print_typedef
574 initializer.
575 * opencl-lang.c (opencl_language_data): Likewise.
576 * p-lang.c (pascal_language_data): Likewise.
577 (pascal_language::print_typedef): New member function.
578 * rust-lang.c (rust_print_typedef): Delete function,
579 implementation moved to rust_language::print_typedef.
580 (rust_language): Delete la_print_typedef initializer.
581 (rust_language::print_typedef): New member function,
582 implementation from rust_print_typedef.
583 * typeprint.c (default_print_typedef): Delete.
584
d711ee67
AB
5852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
586
587 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
588 (ada_language::printstr): New member function.
589 * c-lang.c (c_language_data): Delete la_printstr initializer.
590 (cplus_language_data): Likewise.
591 (asm_language_data): Likewise.
592 (minimal_language_data): Likewise.
593 * d-lang.c (d_language_data): Likewise.
594 * f-lang.c (f_printstr): Rename to f_language::printstr.
595 (f_language_data): Delete la_printstr initializer.
596 (f_language::printstr): New member function, implementation from
597 f_printstr.
598 * go-lang.c (go_language_data): Delete la_printstr initializer.
599 * language.c (language_defn::printstr): Define new member
600 function.
601 (unk_lang_printstr): Delete.
602 (unknown_language_data): Delete la_printstr initializer.
603 (unknown_language::printstr): New member function.
604 (auto_language_data): Delete la_printstr initializer.
605 (auto_language::printstr): New member function.
606 * language.h (language_data): Delete la_printstr field.
607 (language_defn::printstr): Declare new member function.
608 (LA_PRINT_STRING): Update call to printstr.
609 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
610 (m2_language_data): Delete la_printstr initializer.
611 (m2_language::printstr): New member function, implementation from
612 m2_printstr.
613 * objc-lang.c (objc_language_data): Delete la_printstr
614 initializer.
615 * opencl-lang.c (opencl_language_data): Likewise.
616 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
617 (pascal_language_data): Delete la_printstr initializer.
618 (pascal_language::printstr): New member function, implementation
619 from pascal_printstr.
620 * p-lang.h (pascal_printstr): Delete declaration.
621 * rust-lang.c (rust_printstr): Update header comment.
622 (rust_language_data): Delete la_printstr initializer.
623 (rust_language::printstr): New member function.
624
52b50f2c
AB
6252020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
626
627 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
628 (ada_language::printchar): New member function.
629 * c-lang.c (c_language_data): Delete la_printchar initializer.
630 (cplus_language_data): Likewise.
631 (asm_language_data): Likewise.
632 (minimal_language_data): Likewise.
633 * d-lang.c (d_language_data): Likewise.
634 * f-lang.c (f_printchar): Rename to f_language::printchar.
635 (f_language_data): Delete la_printchar initializer.
636 (f_language::printchar): New member function, implementation from
637 f_printchar.
638 * go-lang.c (go_language_data): Delete la_printchar initializer.
639 * language.c (unk_lang_printchar): Delete.
640 (language_defn::printchar): Define new member function.
641 (unknown_language_data): Delete la_printchar initializer.
642 (unknown_language::printchar): New member function.
643 (auto_language_data): Delete la_printchar initializer.
644 (auto_language::printchar): New member function.
645 * language.h (language_data): Delete la_printchar field.
646 (language_defn::printchar): Declare new member function.
647 (LA_PRINT_CHAR): Update call to printchar.
648 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
649 (m2_language::printchar): New member function.
650 * objc-lang.c (objc_language_data): Delete la_printchar
651 initializer.
652 * opencl-lang.c (opencl_language_data): Likewise.
653 * p-lang.c (pascal_language_data): Delete la_printchar
654 initializer.
655 (pascal_language::printchar): New member function.
656 * rust-lang.c (rust_printchar): Rename to
657 rust_language::printchar.
658 (rust_language_data): Delete la_printchar initializer.
659 (rust_language::printchar): New member function, implementation
660 from rust_printchar.
661
ec8cec5b
AB
6622020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
663
664 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
665 (ada_language_data): Delete la_emitchar initializer.
666 (ada_language::emitchar): New member function, implementation from
667 emit_char.
668 * c-lang.c (c_language_data): Delete la_emitchar initializer.
669 (cplus_language_data): Likewise.
670 (asm_language_data): Likewise.
671 (minimal_language_data): Likewise.
672 * d-lang.c (d_language_data): Likewise.
673 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
674 (f_language_data): Delete la_emitchar initializer.
675 (f_language::emitchar): New member function, implementation from
676 f_emit_char.
677 * go-lang.c (go_language_data): Delete la_emitchar initializer.
678 * language.c (unk_lang_emit_char): Delete.
679 (language_defn::emitchar): New member function definition.
680 (unknown_language_data): Delete la_emitchar initializer.
681 (unknown_language::emitchar): New member function.
682 (auto_language_data): Delete la_emitchar initializer.
683 (auto_language::emitchar): New member function.
684 * language.h (language_data): Delete la_emitchar field.
685 (language_defn::emitchar): New member field declaration.
686 (LA_EMIT_CHAR): Update call to emitchar.
687 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
688 (m2_language_data): Delete la_emitchar initializer.
689 (m2_language::emitchar): New member function, implementation from
690 m2_emit_char.
691 * objc-lang.c (objc_language_data): Delete la_emitchar
692 initializer.
693 * opencl-lang.c (opencl_language_data): Likewise.
694 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
695 (pascal_language_data): Delete la_emitchar initializer.
696 (pascal_language::emitchar): New member function, implementation
697 from pascal_emit_char.
698 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
699 (rust_language_data): Delete la_emitchar initializer.
700 (rust_language::emitchar): New member function, implementation
701 from rust_emitchar.
702
1bf9c363
AB
7032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
704
705 * ada-lang.c (resolve): Rename to ada_language::post_parser.
706 (ada_language_data): Delete la_post_parser initializer.
707 (ada_language::post_parser): New member function.
708 * c-lang.c (c_language_data): Delete la_post_parser initializer.
709 (cplus_language_data): Likewise.
710 (asm_language_data): Likewise.
711 (minimal_language_data): Likewise.
712 * d-lang.c (d_language_data): Likewise.
713 * f-lang.c (f_language_data): Likewise.
714 * go-lang.c (go_language_data): Likewise.
715 * language.c (unknown_language_data): Likewise.
716 (auto_language_data): Likewise.
717 * language.h (language_data): Delete la_post_parser field.
718 (language_defn::post_parser): New member function.
719 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
720 * objc-lang.c (objc_language_data): Likewise.
721 * opencl-lang.c (opencl_language_data): Likewise.
722 * p-lang.c (pascal_language_data): Likewise.
723 * parse.c (parse_exp_in_context): Update call to post_parser.
724 (null_post_parser): Delete definition.
725 * parser-defs.h (null_post_parser): Delete declaration.
726 * rust-lang.c (rust_language_data): Delete la_post_parser
727 initializer.
728
87afa652
AB
7292020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
730
731 * ada-lang.c (parse): Rename to ada_language::parser.
732 (ada_language_data): Delete la_parser initializer.
733 (ada_language::parser): New member function, implementation from
734 parse.
735 * c-lang.c (c_language_data): Delete la_parser initializer.
736 (cplus_language_data): Likewise.
737 (asm_language_data): Likewise.
738 (minimal_language_data): Likewise.
739 * d-lang.c (d_language_data): Likewise.
740 (d_language::parser): New member function.
741 * f-lang.c (f_language_data): Delete la_parser initializer.
742 (f_language::parser): New member function.
743 * go-lang.c (go_language_data): Delete la_parser initializer.
744 (go_language::parser): New member function.
745 * language.c (unk_lang_parser): Delete.
746 (language_defn::parser): Define new member function.
747 (unknown_language_data): Delete la_parser initializer.
748 (unknown_language::parser): New member function.
749 (auto_language_data): Delete la_parser initializer.
750 (auto_language::parser): New member function.
751 * language.h (language_data): Delete la_parser field.
752 (language_defn::parser): Declare new member function.
753 * m2-lang.c (m2_language_data): Delete la_parser initializer.
754 (m2_language::parser): New member function.
755 * objc-lang.c (objc_language_data): Delete la_parser initializer.
756 * opencl-lang.c (opencl_language_data): Likewise.
757 * p-lang.c (pascal_language_data): Likewise.
758 (pascal_language::parser): New member function.
759 * parse.c (parse_exp_in_context): Update call to parser.
760 * rust-lang.c (rust_language_data): Delete la_parser initializer.
761 (rust_language::parser): New member function.
762
37825800
AB
7632020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
764
765 * top.c (print_gdb_configuration): Print --with-python-libdir
766 configuration value.
767
5b860c93
PW
7682020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
769
770 * NEWS: Mention change to the alias command.
771
cf00cd6f
PW
7722020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
773
774 * cli/cli-cmds.c (lookup_cmd_for_default_args)
775 (alias_command_completer)
776 (make_alias_options_def_group): New functions.
777 (alias_opts, alias_option_defs): New struct and array.
778 (alias_usage_error): Update usage.
779 (alias_command): Handles optional DEFAULT-ARGS... arguments.
780 Use option framework.
781 (_initialize_cli_cmds): Update alias command help.
782 Update aliases command help.
783 (show_user):
784 Add NULL for new default_args lookup_cmd argument.
785 (valid_command_p): Rename to validate_aliased_command.
786 Add NULL for new default_args lookup_cmd argument. Verify that the
787 aliased_command has no default args.
788 * cli/cli-decode.c (help_cmd): Show aliases definitions.
789 (lookup_cmd_1, lookup_cmd): New argument default_args.
790 (add_alias_cmd):
791 Add NULL for new default_args lookup_cmd argument.
792 (print_help_for_command): Show default args under the layout
793 alias some_alias = some_aliased_cmd some_alias_default_arg.
794 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
795 xfree default_args in destructor.
796 * cli/cli-script.c (process_next_line, do_define_command):
797 Add NULL for new default_args lookup_cmd argument.
798 * command.h: Declare new default_args argument in lookup_cmd
799 and lookup_cmd_1.
800 * completer.c (complete_line_internal_1):
801 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
802 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
803 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
804 Likewise.
805 * infcmd.c (_initialize_infcmd): Likewise.
806 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
807 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
808 * python/py-param.c (add_setshow_generic): Likewise.
809 * remote.c (_initialize_remote): Likewise.
810 * top.c (execute_command): Prepend default_args if command has some.
811 (set_verbose):
812 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
813 * tracepoint.c (validate_actionline, encode_actions_1):
814 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
815
bd920864
TBA
8162020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
817
818 * jit.c (jit_read_descriptor): Use bool as the return type.
819 (jit_breakpoint_re_set_internal): Use bool as the return type.
820 Invert the return value logic; return true if the jit breakpoint
821 has been successfully initialized.
822 (jit_inferior_init): Update the call to
823 jit_breakpoint_re_set_internal.
824
f8098322
PA
8252020-06-22 Pedro Alves <palves@redhat.com>
826
827 PR gdb/25939
828 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
829 Use the current inferior instead. Don't return
830 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
831 wait again.
832 * sol-thread.c (sol_thread_target::wait): Don't reference
833 inferior_ptid.
834 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
835 (sol_update_thread_list_callback): Use the current inferior's pid
836 instead of inferior_ptid.
837
196535a6
RO
8382020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
839
840 * procfs.c: Cleanup many comments.
841
842 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
843 (AFTER_WATCHFLAG): Replace by value.
844
845 (MAIN_PROC_NAME_FORMAT): Inline ...
846 (create_procinfo): ... here.
847
848 (procfs_debug_inferior): Remove SYS_exec handling.
849 (syscall_is_exec): Likewise.
850 (procfs_set_exec_trap): Likewise.
851
852 (syscall_is_lwp_exit): Inline in callers.
853 (syscall_is_exit): Likewise.
854 (syscall_is_exec): Likewise.
855 (syscall_is_lwp_create): Likewise.
856
857 (invalidate_cache): Remove #if 0 code.
858
859 (make_signal_thread_runnable): Remove.
860 (procfs_target::resume): Remove #if 0 code.
861
cf6f3e86
RO
8622020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
863
864 PR gdb/25939
865 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
866 call ...
867 (procfs_target::create_inferior): ... here.
868
48e9cc84
PW
8692020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
870
871 * exec.c (validate_exec_file): Ensure the build-id is up to
872 date by calling reopen_exec_file (that checks file timestamp
873 to decide to re-read the file).
874
3922b302
PA
8752020-06-18 Pedro Alves <palves@redhat.com>
876
877 PR gdb/25412
878 * gdbthread.h (delete_thread, delete_thread_silent)
879 (find_thread_ptid): Update comments.
880 * thread.c (current_thread_): New global.
881 (is_current_thread): Move higher, and reimplement.
882 (inferior_thread): Reimplement.
883 (set_thread_exited): Use bool. Add assertions.
884 (add_thread_silent): Simplify thread-reuse handling by always
885 calling delete_thread.
886 (delete_thread): Remove intro comment.
887 (find_thread_ptid): Skip exited threads.
888 (switch_to_thread_no_regs): Write to current_thread_.
889 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
890 INFERIOR_PTID. Clear current_thread_.
891
6dbdab44
PA
8922020-06-18 Pedro Alves <palves@redhat.com>
893
894 * aix-thread.c (pd_update): Use switch_to_thread.
895
2da4b788
PA
8962020-06-18 Pedro Alves <palves@redhat.com>
897
898 * ravenscar-thread.c (ravenscar_thread_target): Update.
899 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
900 (ravenscar_thread_target::add_active_thread): ... this. Don't
901 set m_base_ptid here. Update to avoid referencing inferior_ptid.
902 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
903
50838d1b
PA
9042020-06-18 Pedro Alves <palves@redhat.com>
905
906 * nat/windows-nat.c (current_windows_thread): Remove.
907 * nat/windows-nat.h (current_windows_thread): Remove.
908 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
909 Adjust.
910 (display_selectors): Adjust to fetch the current
911 windows_thread_info based on inferior_ptid.
912 (fake_create_process): No longer write to current_windows_thread.
913 (windows_nat_target::get_windows_debug_event):
914 Don't set inferior_ptid or current_windows_thread.
915 (windows_nat_target::wait): Adjust to not rely on
916 current_windows_thread.
917 (do_initial_windows_stuff): Now a method of windows_nat_target.
918 Switch to the last_ptid thread.
919 (windows_nat_target::attach): Adjust.
920 (windows_nat_target::detach): Use switch_to_no_thread instead of
921 writing to inferior_ptid directly.
922 (windows_nat_target::create_inferior): Adjust.
923
31ce04e9
PA
9242020-06-18 Pedro Alves <palves@redhat.com>
925
926 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
927
1ee1a363
PA
9282020-06-18 Pedro Alves <palves@redhat.com>
929
930 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
931 after creating it, instead of writing to inferior_ptid. Don't
932 write to inferior_ptid.
933
6d350754
PA
9342020-06-18 Pedro Alves <palves@redhat.com>
935
936 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
937
5d971d48
PA
9382020-06-18 Pedro Alves <palves@redhat.com>
939
940 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
941 it, instead of writing to inferior_ptid.
942
86e57d1b
PA
9432020-06-18 Pedro Alves <palves@redhat.com>
944
945 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
946 to inferior_ptid.
947
f2e1c129
PA
9482020-06-18 Pedro Alves <palves@redhat.com>
949
950 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
951 instead of writing to inferior_ptid directly.
952
60db1b85
PA
9532020-06-18 Pedro Alves <palves@redhat.com>
954
955 * corelow.c (core_target::close): Use switch_to_no_thread instead
956 of writing to inferior_ptid directly.
957 (add_to_thread_list, core_target_open): Use switch_to_thread
958 instead of writing to inferior_ptid directly.
959
fe7d6a8d
PA
9602020-06-18 Pedro Alves <palves@redhat.com>
961
962 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
963 inferior_ptid.
964 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
965 inferior_ptid.
966 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
967 inferior_ptid directly.
968 (darwin_nat_target::init_thread_list): Switch to thread, instead
969 of writing to inferior_ptid.
970 (darwin_nat_target::attach): Don't write to inferior_ptid.
971 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
972
975f8708
PA
9732020-06-18 Pedro Alves <palves@redhat.com>
974
975 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
976 thread.
977 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
978 Instead use switch_to_thread.
979 (gnu_nat_target::detach): Use switch_to_no_thread
980 instead of writing to inferior_ptid directly. Used passed-in
981 inferior instead of looking up the inferior by pid.
982
1a204730
PA
9832020-06-18 Pedro Alves <palves@redhat.com>
984
985 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
986 inferior_ptid.
987
ebe84f23
PA
9882020-06-18 Pedro Alves <palves@redhat.com>
989
990 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
991 inferior_ptid.
992 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
993 thread.
994 (nto_procfs_target::detach): Avoid referencing
995 inferior_ptid. Use switch_to_no_thread instead of writing to
996 inferior_ptid directly.
997 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
998 instead of writing to inferior_ptid directly.
999 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1000 to thread.
1001
191f02e5
PA
10022020-06-18 Pedro Alves <palves@redhat.com>
1003
1004 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1005 after creating it, instead of writing to inferior_ptid.
1006 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1007 to inferior_ptid directly.
1008 (gdbsim_target::wait): Don't write to inferior_ptid.
1009
0ac55310
PA
10102020-06-18 Pedro Alves <palves@redhat.com>
1011
1012 * remote.c (remote_target::remote_notice_new_inferior): Use
1013 switch_to_thread instead of writing to inferior_ptid directly.
1014 (remote_target::add_current_inferior_and_thread): Use
1015 switch_to_no_thread instead of writing to inferior_ptid directly.
1016 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1017 and switch_to_thread instead of using set_current_inferior or
1018 writing to inferior_ptid directly.
1019
5233f39b
PA
10202020-06-18 Pedro Alves <palves@redhat.com>
1021
1022 * tracectf.c (ctf_target_open): Switch to added thread instead of
1023 writing to inferior_ptid directly.
1024 (ctf_target::close): Use switch_to_no_thread instead of writing to
1025 inferior_ptid directly.
1026
087e161b
PA
10272020-06-18 Pedro Alves <palves@redhat.com>
1028
1029 * tracefile-tfile.c (tfile_target_open): Don't write to
1030 inferior_ptid directly, instead switch to added thread.
1031 (tfile_target::close): Use switch_to_no_thread instead of writing
1032 to inferior_ptid directly.
1033
7fb43e53
PA
10342020-06-18 Pedro Alves <palves@redhat.com>
1035
1036 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1037 (procfs_target::detach): Use switch_to_no_thread
1038 instead of writing to inferior_ptid directly.
1039 (do_attach): Change return type to void. Switch to the added
1040 thread.
1041 (procfs_target::create_inferior): Switch to the added thread.
1042 (procfs_do_thread_registers): Don't write to inferior_ptid.
1043
18493a00
PA
10442020-06-18 Pedro Alves <palves@redhat.com>
1045
1046 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1047 of writing to inferior_ptid.
1048 (scoped_restore_exited_inferior): Delete.
1049 (handle_vfork_child_exec_or_exit): Simplify using
1050 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1051 instead of writing to inferior_ptid.
1052 (THREAD_STOPPED_BY): Delete.
1053 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1054 (thread_stopped_by_hw_breakpoint): Delete.
1055 (save_waitstatus): Use
1056 scoped_restore_current_thread+switch_to_thread, and call
1057 target_stopped_by_watchpoint instead of
1058 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1059 instead of thread_stopped_by_sw_breakpoint, and
1060 target_stopped_by_hw_breakpoint instead of
1061 thread_stopped_by_hw_breakpoint.
1062 (handle_inferior_event)
1063 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1064 inferior_ptid directly, nor
1065 set_current_inferior/set_current_program_space. Use
1066 switch_to_thread / switch_to_inferior_no_thread instead.
1067
a0776b13
PA
10682020-06-18 Pedro Alves <palves@redhat.com>
1069
1070 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1071 instead of writing to inferior_ptid.
1072
6155c136
PA
10732020-06-18 Pedro Alves <palves@redhat.com>
1074
1075 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1076 added thread.
1077 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1078 to the added thread.
1079 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1080 instead of writing to inferior_ptid.
1081
c5316fc6
PA
10822020-06-18 Pedro Alves <palves@redhat.com>
1083
1084 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1085 (register_to_value_test): Mock a program_space too. Heap-allocate
1086 the address space. Don't write to inferior_ptid. Use
1087 switch_to_thread instead.
1088
8df01799
PA
10892020-06-18 Pedro Alves <palves@redhat.com>
1090
1091 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1092 Delete.
1093 (find_signalled_thread()): New, factored out from
1094 linux_make_corefile_notes and adjusted to handle exited threads.
1095 (linux_make_corefile_notes): Adjust to use the new
1096 find_signalled_thread.
1097
41792d68
PA
10982020-06-18 Pedro Alves <palves@redhat.com>
1099
1100 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1101 of saving/restoring inferior_ptid.
1102
612f258a
TT
11032020-06-17 Tom Tromey <tom@tromey.com>
1104
1105 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1106 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1107 declare.
1108 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1109
efb763a5
SM
11102020-06-15 Simon Marchi <simon.marchi@efficios.com>
1111
1112 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1113 of partial symtabs.
1114
2951f6c0
SM
11152020-06-17 Simon Marchi <simon.marchi@efficios.com>
1116
1117 * regformats/reg-arm.dat: Remove.
1118 * regformats/reg-bfin.dat: Remove.
1119 * regformats/reg-cris.dat: Remove.
1120 * regformats/reg-crisv32.dat: Remove.
1121 * regformats/reg-m32r.dat: Remove.
1122 * regformats/reg-tilegx.dat: Remove.
1123 * regformats/reg-tilegx32.dat: Remove.
1124
7d458ea5
SM
11252020-06-17 Simon Marchi <simon.marchi@efficios.com>
1126
1127 * features/Makefile (WHICH): Remove arm files.
1128 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1129 * regformats/arm/arm-with-neon.dat: Remove.
1130 * regformats/arm/arm-with-vfpv2.dat: Remove.
1131 * regformats/arm/arm-with-vfpv3.dat: Remove.
1132
3af96c0d
SM
11332020-06-17 Simon Marchi <simon.marchi@efficios.com>
1134
1135 * features/Makefile (XMLTOC): Remove rx.xml.
1136
b25e22fd
PA
11372020-06-17 Pedro Alves <palves@redhat.com>
1138
1139 * gdbthread.h (thread_control_state) <trap_expected> Update
1140 comments.
1141
a78a19b1
AB
11422020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1143
1144 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1145 ada_language::lookup_symbol_nonlocal.
1146 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1147 (ada_language::lookup_symbol_nonlocal): New member function,
1148 implementation from ada_lookup_symbol_nonlocal.
1149 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1150 initializer.
1151 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1152 initializer.
1153 (cplus_language::lookup_symbol_nonlocal): New member function.
1154 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1155 (minimal_language_data) Likewise.
1156 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1157 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1158 initializer.
1159 (d_language::lookup_symbol_nonlocal): New member function.
1160 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1161 initializer.
1162 (f_language::lookup_symbol_nonlocal): New member function.
1163 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1164 initializer.
1165 * language.c (unknown_language_data): Likewise.
1166 (auto_language_data): Likewise.
1167 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1168 field.
1169 (language_defn::lookup_symbol_nonlocal): New member function.
1170 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1171 initializer.
1172 * objc-lang.c (objc_language_data): Likewise.
1173 * opencl-lang.c (opencl_language_data): Likewise.
1174 * p-lang.c (pascal_language_data): Likewise.
1175 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1176 rust_language::lookup_symbol_nonlocal.
1177 (rust_language_data): Delete la_lookup_symbol_nonlocal
1178 initializer.
1179 (rust_language::lookup_symbol_nonlocal): New member function,
1180 implementation from rust_lookup_symbol_nonlocal.
1181 * symtab.c (lookup_symbol_aux): Update call to
1182 lookup_symbol_nonlocal.
1183 (basic_lookup_symbol_nonlocal): Rename to...
1184 (language_defn::lookup_symbol_nonlocal): ...this, and update
1185 header comment. Remove language_defn parameter, and replace with
1186 uses of `this'.
1187 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1188
ebe2334e
AB
11892020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1190
1191 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1192 initializer.
1193 (ada_language::value_print_inner): New member function.
1194 * c-lang.c (c_language_data): Delete la_value_print_inner
1195 initializer.
1196 (cplus_language_data): Likewise.
1197 (asm_language_data): Likewise.
1198 (minimal_language_data): Likewise.
1199 * d-lang.c (d_language_data): Likewise.
1200 (d_language::value_print_inner): New member function.
1201 * f-lang.c (f_language_data): Delete la_value_print_inner
1202 initializer.
1203 (f_language::value_print_inner): New member function.
1204 * f-lang.h (f_value_print_innner): Rename to...
1205 (f_value_print_inner): ...this (note spelling of 'inner').
1206 * f-valprint.c (f_value_print_innner): Rename to...
1207 (f_value_print_inner): ...this (note spelling of 'inner').
1208 * go-lang.c (go_language_data): Delete la_value_print_inner
1209 initializer.
1210 (go_language::value_print_inner): New member function.
1211 * language.c (language_defn::value_print_inner): Define new member
1212 function.
1213 (unk_lang_value_print_inner): Delete.
1214 (unknown_language_data): Delete la_value_print_inner initializer.
1215 (unknown_language::value_print_inner): New member function.
1216 (auto_language_data): Delete la_value_print_inner initializer.
1217 (auto_language::value_print_inner): New member function.
1218 * language.h (language_data): Delete la_value_print_inner field.
1219 (language_defn::value_print_inner): Delcare new member function.
1220 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1221 initializer.
1222 (m2_language::value_print_inner): New member function.
1223 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1224 initializer.
1225 * opencl-lang.c (opencl_language_data): Likewise.
1226 * p-lang.c (pascal_language_data): Likewise.
1227 (pascal_language::value_print_inner): New member function.
1228 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1229 initializer.
1230 (rust_language::value_print_inner): New member function.
1231 * valprint.c (do_val_print): Update call to value_print_inner.
1232
a1d1fa3e
AB
12332020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1234
1235 * ada-lang.c (ada_language_data): Delete la_value_print
1236 initializer.
1237 (ada_language::value_print): New member function.
1238 * c-lang.c (c_language_data): Delete la_value_print initializer.
1239 (cplus_language_data): Likewise.
1240 (asm_language_data): Likewise.
1241 (minimal_language_data): Likewise.
1242 * d-lang.c (d_language_data): Likewise.
1243 * f-lang.c (f_language_data): Likewise.
1244 * go-lang.c (go_language_data): Likewise.
1245 * language.c (unk_lang_value_print): Delete.
1246 (language_defn::value_print): Define new member function.
1247 (unknown_language_data): Delete la_value_print initializer.
1248 (unknown_language::value_print): New member function.
1249 (auto_language_data): Delete la_value_print initializer.
1250 (auto_language::value_print): New member function.
1251 * language.h (language_data): Delete la_value_print field.
1252 (language_defn::value_print): Declare new member function.
1253 (LA_VALUE_PRINT): Update call to value_print.
1254 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1255 * objc-lang.c (objc_language_data): Likewise.
1256 * opencl-lang.c (opencl_language_data): Likewise.
1257 * p-lang.c (pascal_language_data): Likewise.
1258 (pascal_language::value_print): New member function.
1259 * rust-lang.c (rust_language_data): Delete la_value_print
1260 initializer.
1261
f16a9f57
AB
12622020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1263
1264 * ada-lang.c (ada_watch_location_expression): Rename to
1265 ada_language::watch_location_expression.
1266 (ada_language_data): Delete la_watch_location_expression
1267 initializer.
1268 (ada_language::watch_location_expression): New member function,
1269 implementation from ada_watch_location_expression.
1270 * breakpoint.c (watch_command_1): Update call to
1271 watch_location_expression.
1272 * c-lang.c (c_watch_location_expression): Rename to
1273 language_defn::watch_location_expression.
1274 (c_language_data): Delete la_watch_location_expression
1275 initializer.
1276 (cplus_language_data): Likewise.
1277 (asm_language_data): Likewise.
1278 (minimal_language_data): Likewise.
1279 * c-lang.h (c_watch_location_expression): Delete declaration.
1280 * d-lang.c (d_language_data): Delete la_watch_location_expression
1281 initializer.
1282 * f-lang.c (f_language_data): Likewise.
1283 * go-lang.c (go_language_data): Likewise.
1284 * language.c (language_defn::watch_location_expression): Member
1285 function implementation from c_watch_location_expression.
1286 (unknown_language_data): Delete la_watch_location_expression
1287 initializer.
1288 (auto_language_data): Likewise.
1289 * language.h (language_data): Delete la_watch_location_expression
1290 field.
1291 (language_defn::watch_location_expression): Declare new member
1292 function.
1293 * m2-lang.c (m2_language_data): Delete
1294 la_watch_location_expression initializer.
1295 * objc-lang.c (objc_language_data): Likewise.
1296 * opencl-lang.c (opencl_language_data): Likewise.
1297 * p-lang.c (pascal_language_data): Likewise.
1298 * rust-lang.c (rust_watch_location_expression): Rename to
1299 rust_language::watch_location_expression.
1300 (rust_language_data): Delete la_watch_location_expression
1301 initializer.
1302 (rust_language::watch_location_expression): New member function,
1303 implementation from rust_watch_location_expression.
1304
7e56227d
AB
13052020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1306
1307 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1308 ada_language::collect_symbol_completion_matches.
1309 (ada_language_data): Delete la_collect_symbol_completion_matches
1310 initializer.
1311 (ada_language::collect_symbol_completion_matches): New member
1312 function, implementation from
1313 ada_collect_symbol_completion_matches.
1314 * c-lang.c (c_language_data): Delete
1315 la_collect_symbol_completion_matches initializer.
1316 (cplus_language_data): Likewise.
1317 (asm_language_data): Likewise.
1318 (minimal_language_data): Likewise.
1319 * d-lang.c (d_language_data): Likewise.
1320 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1321 f_language::collect_symbol_completion_matches.
1322 (f_language_data): Delete la_collect_symbol_completion_matches
1323 initializer.
1324 (f_language::collect_symbol_completion_matches) New member
1325 function, implementation from f_collect_symbol_completion_matches.
1326 * go-lang.c (go_language_data): Delete
1327 la_collect_symbol_completion_matches initializer.
1328 * language.c (unknown_language_data): Likewise.
1329 (auto_language_data): Likewise.
1330 * language.h (language_data): Delete
1331 la_collect_symbol_completion_matches field.
1332 (language_defn::collect_symbol_completion_matches): New member
1333 function.
1334 * m2-lang.c (m2_language_data): Delete
1335 la_collect_symbol_completion_matches initializer.
1336 * objc-lang.c (objc_language_data): Likewise.
1337 * opencl-lang.c (opencl_language_data): Likewise.
1338 * p-lang.c (pascal_language_data): Likewise.
1339 * rust-lang.c (rust_language_data): Likewise.
1340 * symtab.c (default_collect_symbol_completion_matches): Delete.
1341 (collect_symbol_completion_matches): Update call to
1342 collect_symbol_completion_matches.
1343 (collect_symbol_completion_matches_type): Likewise.
1344 * symtab.h (default_collect_symbol_completion_matches): Delete
1345 declaration.
1346
53fc67f8
AB
13472020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1348
1349 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1350 (ada_language_data): Delete la_word_break_characters initializer.
1351 (ada_language::word_break_characters): New member function.
1352 * c-lang.c (c_language_data): Delete la_word_break_characters
1353 initializer.
1354 (cplus_language_data): Likewise.
1355 (asm_language_data): Likewise.
1356 (minimal_language_data): Likewise.
1357 * completer.c: Update global comment.
1358 (advance_to_expression_complete_word_point): Update call to
1359 word_break_characters.
1360 (complete_files_symbols): Likewise.
1361 (complete_line_internal_1): Likewise.
1362 (default_completer_handle_brkchars): Likewise.
1363 (skip_quoted_chars): Likewise.
1364 * d-lang.c (d_language_data): Delete la_word_break_characters
1365 initializer.
1366 * f-lang.c (f_word_break_characters): Delete.
1367 (f_language_data): Delete la_word_break_characters initializer.
1368 (f_language::word_break_characters): New member function.
1369 * go-lang.c (go_language_data): Delete la_word_break_characters
1370 initializer.
1371 * language.c (unknown_language_data): Likewise.
1372 (auto_language_data): Likewise.
1373 * language.h (default_word_break_characters): Move declaration to
1374 earlier in the file.
1375 (language_data): Delete la_word_break_characters field.
1376 (language_defn::word_break_characters): New member function.
1377 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1378 initializer.
1379 * objc-lang.c (objc_language_data): Likewise.
1380 * opencl-lang.c (opencl_language_data): Likewise.
1381 * p-lang.c (pascal_language_data): Likewise.
1382 * rust-lang.c (rust_language_data): Likewise.
1383
c9debfb9
AB
13842020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1385
1386 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1387 (ada_language_data): Delete la_get_symbol_name_matcher
1388 initializer.
1389 (language_defn::get_symbol_name_matcher_inner): New member
1390 function.
1391 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1392 initializer.
1393 (cplus_language_data): Likewise.
1394 (cplus_language::get_symbol_name_matcher_inner): New member
1395 function.
1396 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1397 (minimal_language_data): Likewise.
1398 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1399 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1400 initializer.
1401 * dictionary.c (iter_match_first_hashed): Update call to
1402 get_symbol_name_matcher.
1403 (iter_match_next_hashed): Likewise.
1404 (iter_match_next_linear): Likewise.
1405 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1406 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1407 initializer.
1408 (f_language::get_symbol_name_matcher_inner): New member function.
1409 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1410 initializer.
1411 * language.c (default_symbol_name_matcher): Update header comment,
1412 make static.
1413 (language_defn::get_symbol_name_matcher): New definition.
1414 (language_defn::get_symbol_name_matcher_inner): Likewise.
1415 (get_symbol_name_matcher): Delete.
1416 (unknown_language_data): Delete la_get_symbol_name_matcher
1417 initializer.
1418 (auto_language_data): Likewise.
1419 * language.h (language_data): Delete la_get_symbol_name_matcher
1420 field.
1421 (language_defn::get_symbol_name_matcher): New member function.
1422 (language_defn::get_symbol_name_matcher_inner): Likewise.
1423 (default_symbol_name_matcher): Delete declaration.
1424 * linespec.c (find_methods): Update call to
1425 get_symbol_name_matcher.
1426 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1427 initializer.
1428 * minsyms.c (lookup_minimal_symbol): Update call to
1429 get_symbol_name_matcher.
1430 (iterate_over_minimal_symbols): Likewise.
1431 * objc-lang.c (objc_language_data): Delete
1432 la_get_symbol_name_matcher initializer.
1433 * opencl-lang.c (opencl_language_data): Likewise.
1434 * p-lang.c (pascal_language_data): Likewise.
1435 * psymtab.c (psymbol_name_matches): Update call to
1436 get_symbol_name_matcher.
1437 * rust-lang.c (rust_language_data): Delete
1438 la_get_symbol_name_matcher initializer.
1439 * symtab.c (symbol_matches_search_name): Update call to
1440 get_symbol_name_matcher.
1441 (compare_symbol_name): Likewise.
1442
9a49ad8c
AB
14432020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1444
1445 * ada-lang.c (ada_language_data): Delete la_compute_program
1446 initializer.
1447 * c-lang.c (c_language_data): Likewise.
1448 (c_language::compute_program): New member function.
1449 (cplus_language_data): Delete la_compute_program initializer.
1450 (cplus_language::compute_program): New member function.
1451 (asm_language_data): Delete la_compute_program initializer.
1452 (minimal_language_data): Likewise.
1453 * c-lang.h (c_compute_program): Update comment.
1454 (cplus_compute_program): Likewise.
1455 * compile/compile-c-support.c (c_compute_program): Likewise.
1456 (cplus_compute_program): Likewise.
1457 * compile/compile.c (compile_to_object): Update call to
1458 la_compute_program.
1459 * d-lang.c (d_language_data): Delete la_compute_program
1460 initializer.
1461 * f-lang.c (f_language_data): Likewise.
1462 * go-lang.c (go_language_data): Likewise.
1463 * language.c (unknown_language_data): Likewise.
1464 (auto_language_data): Likewise.
1465 * language.h (language_data): Delete la_compute_program field.
1466 (language_defn::compute_program): New member function.
1467 * m2-lang.c (m2_language_data): Delete la_compute_program
1468 initializer.
1469 * objc-lang.c (objc_language_data): Likewise.
1470 * opencl-lang.c (opencl_language_data): Likewise.
1471 * p-lang.c (pascal_language_data): Likewise.
1472 * rust-lang.c (rust_language_data): Likewise.
1473
eff93b4d
AB
14742020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1475
1476 * ada-lang.c (ada_language_data) Delete
1477 la_class_name_from_physname initializer.
1478 * c-lang.c (c_language_data): Likewise.
1479 (cplus_language_data): Likewise.
1480 (cplus_language::class_name_from_physname): New member function.
1481 (asm_language_data): Delete la_class_name_from_physname
1482 initializer.
1483 (minimal_language_data): Likewise.
1484 * d-lang.c (d_language_data): Likewise.
1485 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1486 method on language_defn class.
1487 (guess_full_die_structure_name): Likewise.
1488 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1489 initializer.
1490 * go-lang.c (go_language_data): Likewise.
1491 * language.c (language_class_name_from_physname): Delete.
1492 (unk_lang_class_name): Delete.
1493 (unknown_language_data): Delete la_class_name_from_physname
1494 initializer.
1495 (auto_language_data): Likewise.
1496 * language.h (language_data): Delete la_class_name_from_physname
1497 field.
1498 (language_defn::class_name_from_physname): New function.
1499 (language_class_name_from_physname): Delete declaration.
1500 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1501 initializer.
1502 * objc-lang.c (objc_language_data): Likewise.
1503 * opencl-lang.c (opencl_language_data): Likewise.
1504 * p-lang.c (pascal_language_data): Likewise.
1505 * rust-lang.c (rust_language_data): Likewise.
1506
de543742
TT
15072020-06-16 Tom Tromey <tom@tromey.com>
1508
1509 * tui/tui-data.h (STATUS_NAME): New macro.
1510 * tui/tui-layout.c (tui_remove_some_windows)
1511 (initialize_known_windows, tui_register_window)
1512 (tui_layout_split::remove_windows, initialize_layouts)
1513 (tui_new_layout_command): Don't use hard-coded window names.
1514
a350efd4
TT
15152020-06-16 Tom Tromey <tom@tromey.com>
1516
1517 PR tui/25348:
1518 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1519 tui_initialize_readline. Only run once. Call rl_initialize.
1520 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1521 tui_initialize_readline.
1522 * tui/tui-io.c (tui_setup_io): Call
1523 tui_ensure_readline_initialized.
1524 * tui/tui-interp.c (tui_interp::init): Update.
1525
39ec0490
TT
15262020-06-16 Tom Tromey <tom@tromey.com>
1527
1528 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1529 Also preserve the status window.
1530
d2d1ea20
TT
15312020-06-16 Tom Tromey <tom@tromey.com>
1532
1533 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1534 where m_window==nullptr.
1535
66920317
TT
15362020-06-15 Tom Tromey <tromey@adacore.com>
1537
1538 * windows-nat.c (windows_nat::handle_output_debug_string):
1539 Update.
1540 (windows_nat::handle_ms_vc_exception): Update.
1541 * target.h (target_read_string): Change API.
1542 * target.c (target_read_string): Change API.
1543 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1544 Update.
1545 * solib-frv.c (frv_current_sos): Update.
1546 * solib-dsbt.c (dsbt_current_sos): Update.
1547 * solib-darwin.c (darwin_current_sos): Update.
1548 * linux-thread-db.c (inferior_has_bug): Update.
1549 * expprint.c (print_subexp_standard): Update.
1550 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1551 (ada_exception_message_1): Update.
1552
a5d871dd
TT
15532020-06-15 Tom Tromey <tromey@adacore.com>
1554
1555 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1556
670e35fa
TT
15572020-06-15 Tom Tromey <tromey@adacore.com>
1558
1559 * valprint.c (read_string): Update comment.
1560 * target.c (MIN): Remove.
1561 (target_read_string): Rewrite.
1562
f5272a3b
TT
15632020-06-15 Tom Tromey <tromey@adacore.com>
1564
1565 * corefile.c (read_memory_string): Remove.
1566 * ada-valprint.c (ada_value_print_ptr): Update.
1567 * ada-lang.h (ada_tag_name): Change return type.
1568 * ada-lang.c (type_from_tag): Update.
1569 (ada_tag_name_from_tsd): Change return type. Use
1570 target_read_string.
1571 (ada_tag_name): Likewise.
1572 * gdbcore.h (read_memory_string): Don't declare.
1573
2c074f49
HD
15742020-06-14 Hannes Domani <ssbssa@yahoo.de>
1575
1576 * symtab.c (rbreak_command): Ignore Windows drive colon.
1577
6a17d503
SM
15782020-06-12 Simon Marchi <simon.marchi@efficios.com>
1579
1580 * NEWS: Mention removed GDBserver host support.
1581
453c733f
NC
15822020-06-12 Nelson Chu <nelson.chu@sifive.com>
1583
1584 * features/riscv/rebuild-csr-xml.sh: Updated.
1585
2b4e6a3f
TT
15862020-06-11 Tom Tromey <tom@tromey.com>
1587
1588 PR gdb/18318:
1589 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1590
4412332f
JG
15912020-06-09 Jonny Grant <jg@jguk.org>
15922020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1593
1594 * main.c (captured_main_1): Don't print new line after help.
1595 (print_gdb_help): add mailing list and IRC channel information
1596 to --help. Add new lines between items in the footer. Remove
1597 quotes around bug url.
1598
2f33032a
KS
15992020-06-11 Keith Seitz <keiths@redhat.com>
1600
1601 PR gdb/21356
1602 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1603 Resolve typedefs for type length calculations.
1604
7ab96794
TV
16052020-06-10 Tom de Vries <tdevries@suse.de>
1606
1607 PR ada/24713
1608 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1609 (write_psymbols): Enable .gdb_index for ada.
1610 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1611 ada.
1612
e5f3ece2
TV
16132020-06-10 Tom de Vries <tdevries@suse.de>
1614
1615 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1616 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1617 namei" instead of "const char *name" argument.
1618 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1619 dw2_symtab_iter_init.
1620
940da03e
SM
16212020-06-08 Simon Marchi <simon.marchi@efficios.com>
1622
1623 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1624 to use type::field and field::type instead.
1625
b6cdac4b
SM
16262020-06-08 Simon Marchi <simon.marchi@efficios.com>
1627
1628 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1629 to use field::type instead.
1630
5d14b6e5
SM
16312020-06-08 Simon Marchi <simon.marchi@efficios.com>
1632
1633 * gdbtypes.h (struct field) <type, set_type>: New methods.
1634 Rename `type` field to...
1635 <m_type>: ... this. Change references throughout to use type or
1636 set_type methods.
1637 (FIELD_TYPE): Use field::type. Change call sites that modify
1638 the field's type to use field::set_type instead.
1639
3d967001
SM
16402020-06-08 Simon Marchi <simon.marchi@efficios.com>
1641
1642 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1643 to use type::index_type instead.
1644
262abc0d
SM
16452020-06-08 Simon Marchi <simon.marchi@efficios.com>
1646
1647 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1648 methods.
1649 (TYPE_INDEX_TYPE): Use type::index_type.
1650 * gdbtypes.c (create_array_type_with_stride): Likewise.
1651
82836c92
TT
16522020-06-07 Tom Tromey <tom@tromey.com>
1653
1654 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1655 parameter.
1656 (generic_value_print): Update.
1657
940dace9
AB
16582020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1659
1660 Revert commit 982a38f60b0.
1661 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1662
982a38f6
AB
16632020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1664
1665 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1666 avoid use after free.
1667
82f06518
TV
16682020-06-05 Tom de Vries <tdevries@suse.de>
1669
1670 * NEWS: Fix typos.
1671
f8c41851
SM
16722020-06-04 Simon Marchi <simon.marchi@efficios.com>
1673
1674 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1675 the per_bfd object.
1676 (dwarf2_read_debug_names): Likewise.
1677 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1678 object when re-using a per_bfd object with an index.
1679
f9b5d5ea
TV
16802020-06-03 Tom de Vries <tdevries@suse.de>
1681
1682 PR symtab/26046
1683 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1684 children for C++.
1685 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1686 DW_TAG_subprogram.
1687
f6eee2d0
AB
16882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1689
1690 * ada-lang.c (ada_language_data): Delete skip_trampoline
1691 initializer.
1692 * c-lang.c (c_language_data): Likewise.
1693 (cplus_language_data): Likewise.
1694 (cplus_language::skip_trampoline): New member function.
1695 (asm_language_data): Delete skip_trampoline initializer.
1696 (minimal_language_data): Likewise.
1697 * d-lang.c (d_language_data): Likewise.
1698 * f-lang.c (f_language_data): Likewise.
1699 * go-lang.c (go_language_data): Likewise.
1700 * language.c (unk_lang_trampoline): Delete function.
1701 (skip_language_trampoline): Update.
1702 (unknown_language_data): Delete skip_trampoline initializer.
1703 (auto_language_data): Likewise.
1704 * language.h (language_data): Delete skip_trampoline field.
1705 (language_defn::skip_trampoline): New function.
1706 * m2-lang.c (m2_language_data): Delete skip_trampoline
1707 initializer.
1708 * objc-lang.c (objc_skip_trampoline): Delete function, move
1709 implementation to objc_language::skip_trampoline.
1710 (objc_language_data): Delete skip_trampoline initializer.
1711 (objc_language::skip_trampoline): New member function with
1712 implementation from objc_skip_trampoline.
1713 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1714 initializer.
1715 * p-lang.c (pascal_language_data): Likewise.
1716 * rust-lang.c (rust_language_data): Likewise.
1717
0a50df5d
AB
17182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1719
1720 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1721 (ada_language::demangle): New member function.
1722 * c-lang.c (c_language_data): Delete la_demangle initializer.
1723 (cplus_language_data): Delete la_demangle initializer.
1724 (cplus_language::demangle): New member function.
1725 (asm_language_data): Delete la_demangle initializer.
1726 (minimal_language_data): Delete la_demangle initializer.
1727 * d-lang.c (d_language_data): Delete la_demangle initializer.
1728 (d_language::demangle): New member function.
1729 * f-lang.c (f_language_data): Delete la_demangle initializer.
1730 (f_language::demangle): New member function.
1731 * go-lang.c (go_language_data): Delete la_demangle initializer.
1732 (go_language::demangle): New member function.
1733 * language.c (language_demangle): Update.
1734 (unk_lang_demangle): Delete.
1735 (unknown_language_data): Delete la_demangle initializer.
1736 (unknown_language::demangle): New member function.
1737 (auto_language_data): Delete la_demangle initializer.
1738 (auto_language::demangle): New member function.
1739 * language.h (language_data): Delete la_demangle field.
1740 (language_defn::demangle): New function.
1741 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1742 * objc-lang.c (objc_language_data): Delete la_demangle
1743 initializer.
1744 (objc_language::demangle): New member function.
1745 * opencl-lang.c (opencl_language_data): Delete la_demangle
1746 initializer.
1747 * p-lang.c (pascal_language_data): Likewise.
1748 * rust-lang.c (rust_language_data): Likewise.
1749 (rust_language::demangle): New member function.
1750
fbfb0a46
AB
17512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1752
1753 * ada-lang.c (ada_language_data): Delete la_print_type
1754 initializer.
1755 (ada_language::print_type): New member function.
1756 * c-lang.c (c_language_data): Delete la_print_type initializer.
1757 (c_language::print_type): New member function.
1758 (cplus_language_data): Delete la_print_type initializer.
1759 (cplus_language::print_type): New member function.
1760 (asm_language_data): Delete la_print_type initializer.
1761 (asm_language::print_type): New member function.
1762 (minimal_language_data): Delete la_print_type initializer.
1763 (minimal_language::print_type): New member function.
1764 * d-lang.c (d_language_data): Delete la_print_type initializer.
1765 (d_language::print_type): New member function.
1766 * f-lang.c (f_language_data): Delete la_print_type initializer.
1767 (f_language::print_type): New member function.
1768 * go-lang.c (go_language_data): Delete la_print_type initializer.
1769 (go_language::print_type): New member function.
1770 * language.c (unk_lang_print_type): Delete.
1771 (unknown_language_data): Delete la_print_type initializer.
1772 (unknown_language::print_type): New member function.
1773 (auto_language_data): Delete la_print_type initializer.
1774 (auto_language::print_type): New member function.
1775 * language.h (language_data): Delete la_print_type field.
1776 (language_defn::print_type): New function.
1777 (LA_PRINT_TYPE): Update.
1778 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1779 (m2_language::print_type): New member function.
1780 * objc-lang.c (objc_language_data): Delete la_print_type
1781 initializer.
1782 (objc_language::print_type): New member function.
1783 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1784 to opencl_language::print_type.
1785 (opencl_language_data): Delete la_print_type initializer.
1786 (opencl_language::print_type): New member function, implementation
1787 from opencl_print_type.
1788 * p-lang.c (pascal_language_data): Delete la_print_type
1789 initializer.
1790 (pascal_language::print_type): New member function.
1791 * rust-lang.c (rust_print_type): Delete, implementation moved to
1792 rust_language::print_type.
1793 (rust_language_data): Delete la_print_type initializer.
1794 (rust_language::print_type): New member function, implementation
1795 from rust_print_type.
1796
6f827019
AB
17972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1798
1799 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1800 implementation moves to...
1801 (ada_language::sniff_from_mangled_name): ...here. Update return
1802 type.
1803 (ada_language_data): Delete la_sniff_from_mangled_name
1804 initializer.
1805 * c-lang.c (c_language_data): Likewise.
1806 (cplus_language_data): Likewise.
1807 (cplus_language::sniff_from_mangled_name): New member function,
1808 implementation taken from gdb_sniff_from_mangled_name.
1809 (asm_language_data): Delete la_sniff_from_mangled_name
1810 initializer.
1811 (minimal_language_data): Likewise.
1812 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1813 implementation moves to cplus_language::sniff_from_mangled_name.
1814 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1815 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1816 moves to...
1817 (d_language::sniff_from_mangled_name): ...here.
1818 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1819 * f-lang.c (f_language_data): Likewise.
1820 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1821 moves to...
1822 (go_language::sniff_from_mangled_name): ...here.
1823 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1824 * language.c (language_sniff_from_mangled_name): Delete.
1825 (unknown_language_data): Delete la_sniff_from_mangled_name
1826 initializer.
1827 (auto_language_data): Likewise.
1828 * language.h (language_data): Delete la_sniff_from_mangled_name
1829 field.
1830 (language_defn::sniff_from_mangled_name): New function.
1831 (language_sniff_from_mangled_name): Delete declaration.
1832 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1833 field.
1834 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1835 implementation moves to...
1836 (objc_language::sniff_from_mangled_name): ...here.
1837 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1838 * opencl-lang.c (opencl_language_data): Likewise.
1839 * p-lang.c (pascal_language_data): Likewise.
1840 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1841 implementation moves to...
1842 (rust_language::sniff_from_mangled_name): ...here.
1843 (rust_language_data): Delete la_sniff_from_mangled_name
1844 initializer.
1845 * symtab.c (symbol_find_demangled_name): Call
1846 sniff_from_mangled_name member function.
1847
fb8006fd
AB
18482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1849
1850 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1851 initializer.
1852 * c-lang.c (c_language_data): Likewise.
1853 (cplus_language_data): Likewise.
1854 (cplus_language::search_name_hash): New member function.
1855 (asm_language_data): Delete la_search_name_hash initializer.
1856 (minimal_language_data): Likewise.
1857 * d-lang.c (d_language_data): Likewise.
1858 * dictionary.c (default_search_name_hash): Rename to...
1859 (language_defn::search_name_hash): ...this.
1860 * f-lang.c (f_language_data): Likewise.
1861 (f_language::search_name_hash): New member function.
1862 * go-lang.c (go_language_data): Delete la_search_name_hash
1863 initializer.
1864 * language.c (unknown_language_data): Likewise.
1865 (auto_language_data): Likewise.
1866 * language.h (struct language_data): Delete la_search_name_hash
1867 field.
1868 (language_defn::search_name_hash): Declare new member function.
1869 (default_search_name_hash): Delete declaration.
1870 * m2-lang.c (m2_language_data): Delete la_search_name_hash
1871 initializer.
1872 * objc-lang.c (objc_language_data): Likewise.
1873 * opencl-lang.c (opencl_language_data): Likewise.
1874 * p-lang.c (pascal_language_data): Likewise.
1875 * rust-lang.c (rust_language_data): Likewise.
1876 * symtab.c (search_name_hash): Update call.
1877
8e25bafe
AB
18782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1879
1880 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
1881 initializer.
1882 * c-lang.c (class compile_instance): Declare.
1883 (c_language_data): Delete la_get_compile_instance initializer.
1884 (c_language::get_compile_instance): New member function.
1885 (cplus_language_data): Delete la_get_compile_instance initializer.
1886 (cplus_language::get_compile_instance): New member function.
1887 (asm_language_data): Delete la_get_compile_instance initializer.
1888 (minimal_language_data): Likewise.
1889 * c-lang.h (c_get_compile_context): Update comment.
1890 (cplus_get_compile_context): Update comment.
1891 * compile/compile.c (compile_to_object): Update calls, don't rely
1892 on function pointer being NULL.
1893 * d-lang.c (d_language_data): Delete la_get_compile_instance
1894 initializer.
1895 * f-lang.c (f_language_data): Likewise.
1896 * go-lang.c (go_language_data): Likewise.
1897 * language.c (unknown_language_data): Likewise.
1898 (auto_language_data): Likewise.
1899 * language.h (language_data): Delete la_get_compile_instance field.
1900 (language_defn::get_compile_instance): New member function.
1901 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
1902 initializer.
1903 * objc-lang.c (objc_language_data): Likewise.
1904 * opencl-lang.c (opencl_language_data): Likewise.
1905 * p-lang.c (pascal_language_data): Likewise.
1906 * rust-lang.c (rust_language_data): Likewise.
1907
4009ee92
AB
19082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1909
1910 * ada-lang.c (ada_add_all_symbols): Update comment.
1911 (ada_iterate_over_symbols): Delete, move implementation to...
1912 (ada_language::iterate_over_symbols): ...here, a new member
1913 function, rewrite to use range based for loop.
1914 (ada_language_data): Delete la_iterate_over_symbols initializer.
1915 * c-lang.c (c_language_data): Likewise.
1916 (cplus_language_data): Likewise.
1917 (asm_language_data): Likewise.
1918 (minimal_language_data): Likewise.
1919 * d-lang.c (d_language_data): Likewise.
1920 * f-lang.c (f_language_data): Likewise.
1921 * go-lang.c (go_language_data): Likewise.
1922 * language.c (unknown_language_data): Likewise.
1923 (auto_language_data): Likewise.
1924 * language.h (language_data): Delete la_iterate_over_symbols field.
1925 (language_defn::iterate_over_symbols): New member function.
1926 (LA_ITERATE_OVER_SYMBOLS): Update.
1927 * linespec.c (iterate_over_all_matching_symtabs): Update.
1928 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
1929 initializer.
1930 * objc-lang.c (objc_language_data): Likewise.
1931 * opencl-lang.c (opencl_language_data): Likewise.
1932 * p-lang.c (pascal_language_data): Likewise.
1933 * rust-lang.c (rust_language_data): Likewise.
1934
54f4ca46
AB
19352020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1936
1937 * ada-lang.c (ada_language_data): Delete
1938 la_lookup_transparent_type initializer.
1939 * c-lang.c (c_language_data): Likewise.
1940 (cplus_language_data): Likewise.
1941 (cplus_language::lookup_transparent_type): New member function.
1942 (asm_language_data): Delete la_lookup_transparent_type
1943 initializer.
1944 (minimal_language_data): Likewise.
1945 * d-lang.c (d_language_data): Likewise.
1946 * f-lang.c (f_language_data): Likewise.
1947 * go-lang.c (go_language_data): Likewise.
1948 * language.c (unknown_language_data): Likewise.
1949 (auto_language_data): Likewise.
1950 * language.h (struct language_data): Delete
1951 la_lookup_transparent_type field.
1952 (language_defn::lookup_transparent_type): New member function.
1953 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
1954 initializer.
1955 * objc-lang.c (objc_language_data): Likewise.
1956 * opencl-lang.c (opencl_language_data): Likewise.
1957 * p-lang.c (pascal_language_data): Likewise.
1958 * rust-lang.c (rust_language_data): Likewise.
1959 * symtab.c (symbol_matches_domain): Update call.
1960
1fb314aa
AB
19612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1962
1963 * ada-lang.c (ada_language_arch_info): Delete function, move
1964 implementation to...
1965 (ada_language::language_arch_info): ...here, a new member
1966 function.
1967 (ada_language_data): Delete la_language_arch_info.
1968 * c-lang.c (c_language_data): Likewise.
1969 (c_language::language_arch_info): New member function.
1970 (cplus_language_arch_info): Delete function, move
1971 implementation to...
1972 (cplus_language::language_arch_info): ...here, a new member
1973 function.
1974 (cplus_language_data): Delete la_language_arch_info.
1975 (asm_language_data): Likewise.
1976 (asm_language::language_arch_info): New member function.
1977 (minimal_language_data): Delete la_language_arch_info.
1978 (minimal_language::language_arch_info): New member function.
1979 * d-lang.c (d_language_arch_info): Delete function, move
1980 implementation to...
1981 (d_language::language_arch_info): ...here, a new member
1982 function.
1983 (d_language_data): Delete la_language_arch_info.
1984 * f-lang.c (f_language_arch_info): Delete function, move
1985 implementation to...
1986 (f_language::language_arch_info): ...here, a new member
1987 function.
1988 (f_language_data): Delete la_language_arch_info.
1989 * go-lang.c (go_language_arch_info): Delete function, move
1990 implementation to...
1991 (go_language::language_arch_info): ...here, a new member
1992 function.
1993 (go_language_data): Delete la_language_arch_info.
1994 * language.c (unknown_language_data): Likewise.
1995 (unknown_language::language_arch_info): New member function.
1996 (auto_language_data): Delete la_language_arch_info.
1997 (auto_language::language_arch_info): New member function.
1998 (language_gdbarch_post_init): Update call to
1999 la_language_arch_info.
2000 * language.h (language_data): Delete la_language_arch_info
2001 function pointer.
2002 (language_defn::language_arch_info): New function.
2003 * m2-lang.c (m2_language_arch_info): Delete function, move
2004 implementation to...
2005 (m2_language::language_arch_info): ...here, a new member
2006 function.
2007 (m2_language_data): Delete la_language_arch_info.
2008 * objc-lang.c (objc_language_arch_info): Delete function, move
2009 implementation to...
2010 (objc_language::language_arch_info): ...here, a new member
2011 function.
2012 (objc_language_data): Delete la_language_arch_info.
2013 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2014 implementation to...
2015 (opencl_language::language_arch_info): ...here, a new member
2016 function.
2017 (opencl_language_data): Delete la_language_arch_info.
2018 * p-lang.c (pascal_language_arch_info): Delete function, move
2019 implementation to...
2020 (pascal_language::language_arch_info): ...here, a new member
2021 function.
2022 (pascal_language_data): Delete la_language_arch_info.
2023 * rust-lang.c (rust_language_arch_info): Delete function, move
2024 implementation to...
2025 (rust_language::language_arch_info): ...here, a new member
2026 function.
2027 (rust_language_data): Delete la_language_arch_info.
2028
48448202
AB
20292020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2030
2031 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2032 initializer.
2033 * c-lang.c (c_language_data): Likewise.
2034 (cplus_language_data): Likewise.
2035 (cplus_language::pass_by_reference_info): New method.
2036 (asm_language_data): Delete la_pass_by_reference initializer.
2037 (minimal_language_data): Likewise.
2038 * cp-abi.c (cp_pass_by_reference): Remove use of
2039 default_pass_by_reference.
2040 * d-lang.c (d_language_data): Likewise.
2041 * f-lang.c (f_language_data): Likewise.
2042 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2043 default_pass_by_reference.
2044 * go-lang.c (go_language_data): Likewise.
2045 * language.c (language_pass_by_reference): Update.
2046 (default_pass_by_reference): Delete.
2047 (unknown_language_data): Delete la_pass_by_reference
2048 initializer.
2049 (auto_language_data): Likewise.
2050 * language.h (struct language_data): Delete la_pass_by_reference
2051 field.
2052 (language_defn::pass_by_reference_info): New member function.
2053 (default_pass_by_reference): Delete declaration.
2054 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2055 initializer.
2056 * objc-lang.c (objc_language_data): Likewise.
2057 * opencl-lang.c (opencl_language_data): Likewise.
2058 * p-lang.c (pascal_language_data): Likewise.
2059 * rust-lang.c (rust_language_data): Likewise.
2060
15e5fd35
AB
20612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2062
2063 * ada-lang.c (ada_read_var_value): Delete function, move
2064 implementation to...
2065 (ada_language::read_var_value): ...here.
2066 (ada_language_data): Delete la_read_var_value initializer.
2067 * c-lang.c (c_language_data): Likewise.
2068 (cplus_language_data): Likewise.
2069 (minimal_language_data): Likewise.
2070 * d-lang.c (d_language_data): Likewise.
2071 * f-lang.c (f_language_data): Likewise.
2072 * findvar.c (default_read_var_value): Rename to...
2073 (language_defn::read_var_value): ...this.
2074 * findvar.c (read_var_value): Update header comment, and change to
2075 call member function instead of function pointer.
2076 * go-lang.c (go_language_data): Likewise.
2077 * language.c (unknown_language_data): Delete la_read_var_value
2078 initializer.
2079 (auto_language_data): Likewise.
2080 * language.h (struct language_data): Delete la_read_var_value
2081 field.
2082 (language_defn::read_var_value): New member function.
2083 (default_read_var_value): Delete declaration.
2084 * m2-lang.c (m2_language_data): Delete la_read_var_value
2085 initializer.
2086 * objc-lang.c (objc_language_data): Likewise.
2087 * opencl-lang.c (opencl_language_data): Likewise.
2088 * p-lang.c (pascal_language_data): Likewise.
2089 * rust-lang.c (rust_language_data): Likewise.
2090 * value.h (default_read_var_value): Delete declaration.
2091
5bd40f2a
AB
20922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2093
2094 * ada-lang.c (ada_print_array_index): Delete function, move
2095 implementation to...
2096 (ada_language::print_array_index): ...here.
2097 (ada_language_data): Delete la_print_array_index initializer.
2098 * c-lang.c (c_language_data): Likewise.
2099 (cplus_language_data): Likewise.
2100 (minimal_language_data): Likewise.
2101 * d-lang.c (d_language_data): Likewise.
2102 * f-lang.c (f_language_data): Likewise.
2103 * go-lang.c (go_language_data): Likewise.
2104 * language.c (default_print_array_index): Delete function, move
2105 implementation to...
2106 (language_defn::print_array_index): ...here.
2107 (unknown_language_data): Delete la_print_array_index initializer.
2108 (auto_language_data): Likewise.
2109 * language.h (struct language_data): Delete la_print_array_index
2110 field.
2111 (language_defn::print_array_index): New member function.
2112 (LA_PRINT_ARRAY_INDEX): Update.
2113 (default_print_array_index): Delete declaration.
2114 * m2-lang.c (m2_language_data): Delete la_print_array_index
2115 initializer.
2116 * objc-lang.c (objc_language_data): Likewise.
2117 * opencl-lang.c (opencl_language_data): Likewise.
2118 * p-lang.c (pascal_language_data): Likewise.
2119 * rust-lang.c (rust_language_data): Likewise.
2120
0874fd07
AB
21212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2122
2123 * gdb/ada-lang.c (ada_language_defn): Convert to...
2124 (ada_language_data): ...this.
2125 (class ada_language): New class.
2126 (ada_language_defn): New static global.
2127 * gdb/c-lang.c (c_language_defn): Convert to...
2128 (c_language_data): ...this.
2129 (class c_language): New class.
2130 (c_language_defn): New static global.
2131 (cplus_language_defn): Convert to...
2132 (cplus_language_data): ...this.
2133 (class cplus_language): New class.
2134 (cplus_language_defn): New static global.
2135 (asm_language_defn): Convert to...
2136 (asm_language_data): ...this.
2137 (class asm_language): New class.
2138 (asm_language_defn): New static global.
2139 (minimal_language_defn): Convert to...
2140 (minimal_language_data): ...this.
2141 (class minimal_language): New class.
2142 (minimal_language_defn): New static global.
2143 * gdb/d-lang.c (d_language_defn): Convert to...
2144 (d_language_data): ...this.
2145 (class d_language): New class.
2146 (d_language_defn): New static global.
2147 * gdb/f-lang.c (f_language_defn): Convert to...
2148 (f_language_data): ...this.
2149 (class f_language): New class.
2150 (f_language_defn): New static global.
2151 * gdb/go-lang.c (go_language_defn): Convert to...
2152 (go_language_data): ...this.
2153 (class go_language): New class.
2154 (go_language_defn): New static global.
2155 * gdb/language.c (unknown_language_defn): Remove declaration.
2156 (current_language): Initialize to nullptr, real initialization is
2157 moved to _initialize_language.
2158 (languages): Delete global.
2159 (language_defn::languages): Define.
2160 (set_language_command): Use language_defn::languages.
2161 (set_language): Likewise.
2162 (range_error): Likewise.
2163 (language_enum): Likewise.
2164 (language_def): Likewise.
2165 (add_set_language_command): Use language_def::languages for the
2166 language list, and language_def to lookup language pointers.
2167 (skip_language_trampoline): Use language_defn::languages.
2168 (unknown_language_defn): Convert to...
2169 (unknown_language_data): ...this.
2170 (class unknown_language): New class.
2171 (unknown_language_defn): New static global.
2172 (auto_language_defn): Convert to...
2173 (auto_language_data): ...this.
2174 (class auto_language): New class.
2175 (auto_language_defn): New static global.
2176 (language_gdbarch_post_init): Use language_defn::languages.
2177 (_initialize_language): Initialize current_language.
2178 * gdb/language.h (struct language_defn): Rename to...
2179 (struct language_data): ...this.
2180 (struct language_defn): New.
2181 (auto_language_defn): Delete.
2182 (unknown_language_defn): Delete.
2183 (minimal_language_defn): Delete.
2184 (ada_language_defn): Delete.
2185 (asm_language_defn): Delete.
2186 (c_language_defn): Delete.
2187 (cplus_language_defn): Delete.
2188 (d_language_defn): Delete.
2189 (f_language_defn): Delete.
2190 (go_language_defn): Delete.
2191 (m2_language_defn): Delete.
2192 (objc_language_defn): Delete.
2193 (opencl_language_defn): Delete.
2194 (pascal_language_defn): Delete.
2195 (rust_language_defn): Delete.
2196 * gdb/m2-lang.c (m2_language_defn): Convert to...
2197 (m2_language_data): ...this.
2198 (class m2_language): New class.
2199 (m2_language_defn): New static global.
2200 * gdb/objc-lang.c (objc_language_defn): Convert to...
2201 (objc_language_data): ...this.
2202 (class objc_language): New class.
2203 (objc_language_defn): New static global.
2204 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2205 (opencl_language_data): ...this.
2206 (class opencl_language): New class.
2207 (opencl_language_defn): New static global.
2208 * gdb/p-lang.c (pascal_language_defn): Convert to...
2209 (pascal_language_data): ...this.
2210 (class pascal_language): New class.
2211 (pascal_language_defn): New static global.
2212 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2213 language pointer, update comment format.
2214 * gdb/rust-lang.c (rust_language_defn): Convert to...
2215 (rust_language_data): ...this.
2216 (class rust_language): New class.
2217 (rust_language_defn): New static global.
2218
1313c56e
AB
22192020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2220
2221 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2222 member variable.
2223 <m_stmt_at_address>: New member variable.
2224 (lnp_state_machine::record_line): Don't record some lines, update
2225 tracking of is_stmt at the same address.
2226 (lnp_state_machine::lnp_state_machine): Initialise new member
2227 variables.
2228
b7ed9f3d
ST
22292020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2230
2231 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2232 "-include gnu-nat-mig.h".
2233 * gnu-nat-mig.h: New file.
2234 * gnu-nat.c: Include "gnu-nat-mig.h".
2235 (exc_server, msg_reply_server, notify_server,
2236 process_reply_server): Remove declarations.
2237
14a8ad62
ST
22382020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2239
2240 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2241 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2242 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2243 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2244 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2245 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2246 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2247 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2248 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2249 to gnu_nat_target class.
2250 * gnu-nat.c: Likewise.
2251 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2252 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2253 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2254 object.
2255 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2256 instead of `gnu_target'.
2257
0af5e106
ST
22582020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2259
2260 * i386-gnu-tdep.c: Include "gdbcore.h"
2261 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2262 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2263 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2264 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2265 i386_gnu_sigcontext_addr): New functions
2266 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2267 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2268 tdep.
2269
078f2fc9
ST
22702020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2271
2272 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2273 before fork_inferior call. Avoid calling it if target_is_pushed returns
2274 true.
2275
53dff92c
ST
22762020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2277
2278 * gnu-nat.h (gnu_target): New variable declaration.
2279 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2280 gnu_target.
2281 * gnu-nat.c (gnu_target): New variable.
2282 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2283 add_thread_silent, and add_thread calls.
2284 (gnu_nat_target::create_inferior): Pass gnu_target to
2285 add_thread_silent, thread_change_ptid call.
2286 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2287 call.
2288
5a8b8627
ST
22892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2290
2291 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2292 (gnu_nat_target::find_memory_regions): Remove unused
2293 `old_address' variable.
2294
366f550a
ST
22952020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2296
2297 * gnu-nat.c: Include "gdbarch.h".
2298
f14871bf
ST
22992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2300
2301 * reply_mig_hack.awk (Error return): Cast function through
2302 void *, to bypass compiler function call check.
2303
c6887cfb
ST
23042020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2305
2306 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2307 $(srcdir)/reply_mig_hack.awk.
2308
6930bffe
ST
23092020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2310
2311 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2312
112c22ed
JG
23132020-05-30 Jonny Grant <jg@jguk.org>
2314
2315 * configure.ac (ACX_BUGURL): change bug URL to https.
2316
f68f85b5
PA
23172020-05-30 Pedro Alves <palves@redhat.com>
2318
2319 * cp-support.c (replace_typedefs_template): New.
2320 (replace_typedefs_qualified_name): Handle
2321 DEMANGLE_COMPONENT_TEMPLATE.
2322
976ca316
SM
23232020-05-29 Simon Marchi <simon.marchi@efficios.com>
2324
2325 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2326 dwarf2/index-cache.h, dwarf2/index-write.c,
2327 dwarf2/index-write.h, dwarf2/line-header.c,
2328 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2329 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2330 variables and fields from `dwarf2_per_objfile` to just
2331 `per_objfile` throughout.
2332
989ade05
SM
23332020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2334
2335 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2336 <push_dwarf_reg_entry_value>: Add comment.
2337
c47bae85
KB
23382020-05-28 Kevin Buettner <kevinb@redhat.com>
2339 Keith Seitz <keiths@redhat.com>
2340
2341 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2342 instead of PyEval_ReleaseLock.
2343 (class gdbpy_gil): Move to earlier in file.
2344 (finalize_python): Set gdb_python_initialized.
2345 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2346 when not initialized.
2347
44486dcf
SM
23482020-05-28 Simon Marchi <simon.marchi@efficios.com>
2349
2350 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2351 <push_dwarf_reg_entry_value>: Remove assert. Override
2352 per_objfile with caller_per_objfile.
2353
f030440d
TV
23542020-05-28 Tom de Vries <tdevries@suse.de>
2355
2356 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2357 PR gold/15646 workaround to symbol kind "type".
2358
f0fbb768
TT
23592020-05-27 Tom Tromey <tromey@adacore.com>
2360
2361 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2362
af0b2a3e
TT
23632020-05-27 Tom Tromey <tromey@adacore.com>
2364
2365 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2366 Use htab_find_with_hash.
2367 <add_abbrev>: Remove "abbrev_number" parameter.
2368 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2369 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2370 (hash_abbrev): Add comment.
2371 (abbrev_table::lookup_abbrev): Move to header file.
2372 (abbrev_table::read): Update.
2373
7d00ffec
TT
23742020-05-27 Tom Tromey <tromey@adacore.com>
2375
2376 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2377 method.
2378 <canonical_name>: New member.
2379 <raw_name>: Rename from "name".
2380 (partial_die_info): Initialize canonical_name.
2381 (scan_partial_symbols): Check raw_name.
2382 (partial_die_parent_scope, partial_die_full_name)
2383 (add_partial_symbol, add_partial_subprogram)
2384 (add_partial_enumeration, load_partial_dies): Use "name" method.
2385 (partial_die_info::name): New method.
2386 (partial_die_info::read, guess_partial_die_structure_name)
2387 (partial_die_info::fixup): Update.
2388
697bba18
TT
23892020-05-27 Tom Tromey <tromey@adacore.com>
2390
2391 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2392 <get_ref_die_offset>: Inline.
2393 <get_ref_die_offset_complaint>: New method.
2394 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2395 (attribute::get_ref_die_offset_complaint): Rename from
2396 get_ref_die_offset. Just issue complaint.
2397
c17ace43
HD
23982020-05-27 Hannes Domani <ssbssa@yahoo.de>
2399
2400 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2401
96445f0b
HD
24022020-05-27 Hannes Domani <ssbssa@yahoo.de>
2403
2404 * exec.c (exec_file_attach): Use errno value of first openp failure.
2405
ac637ec3
HD
24062020-05-27 Hannes Domani <ssbssa@yahoo.de>
2407
2408 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2409 Don't close thread handle.
2410
17ee85fc
TT
24112020-05-27 Tom Tromey <tom@tromey.com>
2412 Simon Marchi <simon.marchi@efficios.com>
2413
2414 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2415 shared_ptr.
2416 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2417 member.
2418 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2419 dwarf2_per_bfd_objfile_data_key>: New globals.
2420 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2421 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2422 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2423 shared.
2424 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2425 short-circuit when sharing.
2426 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2427 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2428
39b16f87
SM
24292020-05-27 Simon Marchi <simon.marchi@efficios.com>
2430
2431 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2432 to...
2433 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2434 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2435
fcf23d5b
SM
24362020-05-27 Simon Marchi <simon.marchi@efficios.com>
2437
2438 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2439 build_name_components, find_name_components_bounds>:
2440 Add per_objfile parameter.
2441 (struct mapped_index) <symbol_name_at>: Likewise.
2442 (struct mapped_debug_names): Remove constructor.
2443 <dwarf2_per_objfile>: Remove field.
2444 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2445 (mapped_index_base::find_name_components_bounds,
2446 mapped_index_base::build_name_components,
2447 dw2_expand_symtabs_matching_symbol): Likewise.
2448 (class mock_mapped_index) <symbol_name_at>: Likewise.
2449 (check_match): Likewise.
2450 (check_find_bounds_finds): Likewise.
2451 (test_mapped_index_find_name_component_bounds): Update.
2452 (CHECK_MATCH): Update.
2453 (dw2_expand_symtabs_matching): Update.
2454 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2455 per_objfile parameter.
2456 <find_vec_in_debug_names>: Likewise.
2457 <m_per_objfile>: New field.
2458 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2459 parameter.
2460 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2461 (dw2_debug_names_iterator::next): Update.
2462 (dw2_debug_names_lookup_symbol): Update.
2463 (dw2_debug_names_expand_symtabs_for_function): Update.
2464 (dw2_debug_names_map_matching_symbols): Update.
2465 (dw2_debug_names_expand_symtabs_matching): Update.
2466 (dwarf2_read_debug_names): Update.
2467
7188ed02
SM
24682020-05-27 Simon Marchi <simon.marchi@efficios.com>
2469
2470 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2471 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2472 move to dwarf2_per_objfile.
2473 <read_in_chain>: Remove.
2474 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2475 remove_all_cus, age_comp_units>: New methods.
2476 <m_dwarf2_cus>: New member.
2477 (struct dwarf2_per_cu_data) <cu>: Remove.
2478 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2479 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2480 moved to methods of dwarf2_per_objfile.
2481 (dwarf2_clear_marks): Remove.
2482 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2483 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2484 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2485 (dwarf2_per_objfile::remove_all_cus): New.
2486 (class free_cached_comp_units) <~free_cached_comp_units>:
2487 Update.
2488 (load_cu): Update.
2489 (dw2_do_instantiate_symtab): Adjust.
2490 (fill_in_sig_entry_from_dwo_entry): Adjust.
2491 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2492 (cutu_reader::cutu_reader): Likewise.
2493 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2494 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2495 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2496 and dwarf2_per_objfile::age_comp_units.
2497 (load_partial_comp_unit): Update.
2498 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2499 (process_queue): Likewise.
2500 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2501 backlink.
2502 (dwarf2_read_addr_index): Likewise.
2503 (follow_die_offset): Likewise.
2504 (dwarf2_fetch_die_loc_sect_off): Likewise.
2505 (dwarf2_fetch_constant_bytes): Likewise.
2506 (dwarf2_fetch_die_type_sect_off): Likewise.
2507 (follow_die_sig_1): Likewise.
2508 (load_full_type_unit): Likewise.
2509 (read_signatured_type): Likewise.
2510 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2511 (dwarf2_cu::~dwarf2_cu): Remove.
2512 (dwarf2_per_objfile::get_cu): New.
2513 (dwarf2_per_objfile::set_cu): New.
2514 (age_cached_comp_units): Rename to...
2515 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2516 to std::unordered_map.
2517 (free_one_cached_comp_unit): Rename to...
2518 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2519 to std::unordered_map.
2520 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2521 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2522 a dwarf2_per_objfile in data.
2523 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2524 (dwarf2_clear_marks): Remove.
2525
2e671100
SM
25262020-05-27 Simon Marchi <simon.marchi@efficios.com>
2527
2528 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2529 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2530 (init_tu_and_read_dwo_dies): Likewise.
2531 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2532 (cutu_reader::cutu_reader): Likewise.
2533 (load_partial_comp_unit): Likewise.
2534 (process_psymtab_comp_unit): Update.
2535 (build_type_psymtabs_1): Update.
2536 (process_skeletonless_type_unit): Update.
2537 (load_full_comp_unit): Update.
2538 (find_partial_die): Update.
2539 (dwarf2_read_addr_index): Update.
2540 (read_signatured_type): Update.
2541
2e6a9f79
SM
25422020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2543
2544 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2545 m_header_read_in>: New fields.
2546 <get_header>: New method.
2547 * dwarf2/read.c (per_cu_header_read_in): Remove.
2548 (dwarf2_per_cu_data::get_header): New.
2549 (dwarf2_per_cu_data::addr_size): Update.
2550 (dwarf2_per_cu_data::offset_size): Update.
2551 (dwarf2_per_cu_data::ref_addr_size): Update.
2552
1b555f17
SM
25532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2554
2555 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2556 (dw2_do_instantiate_symtab): Update.
2557 (queue_and_load_all_dwo_tus): Change parameter from
2558 dwarf2_per_cu_data to dwarf2_cu.
2559 (dwarf2_fetch_die_loc_sect_off): Update.
2560 (dwarf2_fetch_constant_bytes): Update.
2561 (dwarf2_fetch_die_type_sect_off): Update.
2562
8fc0b21d
SM
25632020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2564
2565 * dwarf2/read.c (process_full_comp_unit,
2566 process_full_type_unit): Remove per_cu, per_objfile paramters.
2567 Add dwarf2_cu parameter.
2568 (process_queue): Update.
2569
168c9250
SM
25702020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2571
2572 * dwarf2/read.c (create_cu_from_index_list): Replace
2573 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2574 (create_cus_from_index_list): Likewise.
2575 (create_cus_from_index): Likewise.
2576 (create_signatured_type_table_from_index): Likewise.
2577 (create_cus_from_debug_names_list): Likewise.
2578 (create_cus_from_debug_names): Likewise.
2579 (dwarf2_read_gdb_index): Update.
2580 (dwarf2_read_debug_names): Update.
2581
e286671b
TT
25822020-05-27 Tom Tromey <tom@tromey.com>
2583 Simon Marchi <simon.marchi@efficios.com>
2584
2585 * dwarf2/read.h (struct dwarf2_per_objfile)
2586 <get_type_for_signatured_type, set_type_for_signatured_type>:
2587 New methods.
2588 <m_type_map>: New member.
2589 (struct signatured_type) <type>: Remove.
2590 * dwarf2/read.c
2591 (dwarf2_per_objfile::get_type_for_signatured_type,
2592 dwarf2_per_objfile::set_type_for_signatured_type): New.
2593 (get_signatured_type): Use new methods.
2594
8adb8487
TT
25952020-05-27 Tom Tromey <tom@tromey.com>
2596 Simon Marchi <simon.marchi@efficios.com>
2597
2598 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2599 (struct dwarf2_per_objfile) <type_units>: New member.
2600 <get_type_unit_group_unshareable>: New method.
2601 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2602 num_symtabs, symtabs>: Remove; move to
2603 type_unit_group_unshareable.
2604 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2605 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2606 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2607
127bbf4b
SM
26082020-05-27 Simon Marchi <simon.marchi@efficios.com>
2609
2610 * dwarf2/read.h (struct dwarf2_per_cu_data):
2611 <dwarf2_per_objfile>: Remove.
2612 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2613 dwarf2_per_objfile.
2614 (create_signatured_type_table_from_index): Likewise.
2615 (create_signatured_type_table_from_debug_names): Likewise.
2616 (create_debug_type_hash_table): Likewise.
2617 (fill_in_sig_entry_from_dwo_entry): Likewise.
2618 (create_type_unit_group): Likewise.
2619 (read_comp_units_from_section): Likewise.
2620 (create_cus_hash_table): Likewise.
2621
f6e649dd
SM
26222020-05-27 Simon Marchi <simon.marchi@efficios.com>
2623
2624 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2625 dwarf2_per_cu_data::dwarf2_per_objfile.
2626 (compute_compunit_symtab_includes): Likewise.
2627 (dwarf2_cu::start_symtab): Likewise.
2628
aa66c379
SM
26292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2630
2631 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2632 parameter.
2633 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2634 (read_namespace_alias): Update.
2635 (lookup_die_type): Update.
2636 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2637 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2638 Update.
2639 (disassemble_dwarf_expression): Update.
2640
120ce1b5
SM
26412020-05-27 Simon Marchi <simon.marchi@efficios.com>
2642
2643 * dwarf2/read.h (struct dwarf2_queue_item): Add
2644 dwarf2_per_objfile parameter, assign new parameter.
2645 <per_objfile>: New field.
2646 * dwarf2/read.c (free_one_cached_comp_unit): Add
2647 dwarf2_per_objfile parameter.
2648 (queue_comp_unit): Likewise.
2649 (dw2_do_instantiate_symtab): Update.
2650 (process_psymtab_comp_unit): Update.
2651 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2652 (process_imported_unit_die): Update.
2653 (queue_and_load_dwo_tu): Update.
2654 (follow_die_offset): Update.
2655 (follow_die_sig_1): Update.
2656
9f47c707
SM
26572020-05-27 Simon Marchi <simon.marchi@efficios.com>
2658
2659 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2660 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2661 (read_call_site_scope): Assign per_objfile.
2662 (dwarf2_per_cu_data::objfile): Remove.
2663 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2664 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2665 dwarf2_per_objfile parameter.
2666 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2667 dwarf2_per_objfile parameter.
2668 (dwarf_expr_reg_to_entry_parameter): Add output
2669 dwarf2_per_objfile parameter.
2670 (locexpr_get_frame_base): Update.
2671 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2672 <push_dwarf_reg_entry_value>: Update.
2673 <call_site_to_target_addr>: Update.
2674 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2675 parameter.
2676 (value_of_dwarf_reg_entry): Update.
2677 (rw_pieced_value): Update.
2678 (indirect_synthetic_pointer): Update.
2679 (dwarf2_evaluate_property): Update.
2680 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2681 parameter.
2682 (locexpr_read_variable): Update.
2683 (locexpr_get_symbol_read_needs): Update.
2684 (loclist_read_variable): Update.
2685
14095eb3
SM
26862020-05-27 Simon Marchi <simon.marchi@efficios.com>
2687
2688 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2689 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2690 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2691 parameter.
2692 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2693 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2694 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2695 parameter.
2696 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2697 sect_variable_value): Add dwarf2_per_objfile parameter.
2698 (class dwarf_evaluate_loc_desc) <dwarf_call,
2699 dwarf_variable_value>: Update.
2700 (fetch_const_value_from_synthetic_pointer): Add
2701 dwarf2_per_objfile parameter.
2702 (fetch_const_value_from_synthetic_pointer): Update.
2703 (coerced_pieced_ref): Update.
2704 (class symbol_needs_eval_context) <dwarf_call,
2705 dwarf_variable_value>: Update.
2706 (dwarf2_compile_expr_to_ax): Update.
2707
3c3cd3d4
SM
27082020-05-27 Simon Marchi <simon.marchi@efficios.com>
2709
2710 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2711 parameter.
2712 (dwarf2_evaluate_loc_desc_full): Update.
2713
82ca3f51
SM
27142020-05-27 Simon Marchi <simon.marchi@efficios.com>
2715
2716 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2717 parameter.
2718 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2719 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2720 dwarf2_per_objfile parameter.
2721 (decode_debug_loc_dwo_addresses): Likewise.
2722 (dwarf2_find_location_expression): Update.
2723 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2724 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2725 parameter.
2726 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2727 parameter.
2728 (locexpr_describe_location_1): Likewise.
2729 (locexpr_describe_location): Update.
2730
4b167ea1
SM
27312020-05-27 Simon Marchi <simon.marchi@efficios.com>
2732
2733 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2734 Remove.
2735 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2736 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2737 (dwarf2_compile_property_to_c): Update.
2738 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2739 use text offset from objfile.
2740 (locexpr_tracepoint_var_ref): Update.
2741 (locexpr_generate_c_location): Update.
2742 (loclist_describe_location): Update.
2743 (loclist_tracepoint_var_ref): Update.
2744 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2745 dwarf2_per_objfile parameter.
2746 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2747 use text offset from objfile.
2748 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2749
89b07335
SM
27502020-05-27 Simon Marchi <simon.marchi@efficios.com>
2751
2752 * dwarf2/expr.h (struct dwarf_expr_context)
2753 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2754 <offset>: Remove.
2755 <per_objfile>: New member.
2756 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2757 dwarf2_per_objfile parameter. Don't set offset, set
2758 per_objfile.
2759 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2760 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2761 a dwarf2_per_objfile object instead of an offset.
2762 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2763 constructor.
2764 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2765 to dwarf2_expr_executor constructor. Don't set offset.
2766 (dwarf2_fetch_cfa_info): Update.
2767 (struct dwarf2_frame_cache) <text_offset>: Remove.
2768 <per_objfile>: New field.
2769 (dwarf2_frame_cache): Update.
2770 (dwarf2_frame_prev_register): Update.
2771 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2772 <dwarf_evaluate_loc_desc>: Add constructor.
2773 (dwarf2_evaluate_loc_desc_full): Update.
2774 (dwarf2_locexpr_baton_eval): Update.
2775 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2776 Add constructor.
2777 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2778
293e7e51
SM
27792020-05-27 Simon Marchi <simon.marchi@efficios.com>
2780
2781 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2782 addr_sized_int_type>: Move to dwarf2_cu.
2783 <int_type>: Move to dwarf2_per_objfile.
2784 (struct dwarf2_per_objfile) <int_type>: Move here.
2785 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2786 addr_sized_int_type>: Move here.
2787 (read_func_scope): Update.
2788 (read_array_type): Update.
2789 (read_tag_string_type): Update.
2790 (attr_to_dynamic_prop): Update.
2791 (dwarf2_per_cu_data::int_type): Rename to...
2792 (dwarf2_per_objfile::int_type): ... this.
2793 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2794 (dwarf2_cu::addr_sized_int_type): ... this.
2795 (read_subrange_type): Update.
2796 (dwarf2_per_cu_data::addr_type): Rename to...
2797 (dwarf2_cu::addr_type): ... this.
2798 (set_die_type): Update.
2799
64874a40
SM
28002020-05-27 Simon Marchi <simon.marchi@efficios.com>
2801
2802 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2803 data through per_cu->cu.
2804
4ab09049
SM
28052020-05-27 Simon Marchi <simon.marchi@efficios.com>
2806
2807 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2808 dwarf2_per_cu_data parameter fo dwarf2_cu.
2809 (lookup_dwo_type_unit): Likewise.
2810 (read_cutu_die_from_dwo): Likewise.
2811 (lookup_dwo_unit): Likewise.
2812 (open_and_init_dwo_file): Likewise.
2813 (lookup_dwo_cutu): Likewise.
2814 (lookup_dwo_comp_unit): Likewise.
2815 (lookup_dwo_type_unit): Likewise.
2816 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2817 (cutu_reader::cutu_reader): Update.
2818
47b14e86
SM
28192020-05-27 Simon Marchi <simon.marchi@efficios.com>
2820
2821 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2822 parameter.
2823 (process_full_type_unit): Likewise.
2824 (process_queue): Update.
2825
43182c09
SM
28262020-05-27 Simon Marchi <simon.marchi@efficios.com>
2827
2828 * dwarf2/read.c (recursively_compute_inclusions): Add
2829 dwarf2_per_objfile parameter.
2830 (compute_compunit_symtab_includes): Likewise.
2831 (process_cu_includes): Update.
2832
7aa104c4
SM
28332020-05-27 Simon Marchi <simon.marchi@efficios.com>
2834
2835 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2836 parameter.
2837 (create_type_unit_group): Update.
2838 (process_psymtab_comp_unit_reader): Update.
2839 (build_type_psymtabs_reader): Update.
2840
e3beb21d
SM
28412020-05-27 Simon Marchi <simon.marchi@efficios.com>
2842
2843 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2844 object through m_this_cu->cu.
2845
d460f660
SM
28462020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2847
2848 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2849 the info parameter.
2850 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2851
ab432490
SM
28522020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2853
2854 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2855 per_objfile parameter.
2856 (load_full_type_unit): Add per_objfile parameter.
2857 (read_signatured_type): Likewise.
2858 (load_full_comp_unit): Likewise.
2859 (load_cu): Likewise.
2860 (dw2_do_instantiate_symtab): Likewise.
2861 (dw2_get_file_names): Likewise.
2862 (dw2_map_symtabs_matching_filename): Update.
2863 (dw_expand_symtabs_matching_file_matcher): Update.
2864 (dw2_map_symbol_filenames): Update.
2865 (process_psymtab_comp_unit): Add per_objfile parameter.
2866 (build_type_psymtabs_1): Update.
2867 (process_skeletonless_type_unit): Update.
2868 (dwarf2_build_psymtabs_hard): Update.
2869 (load_partial_comp_unit): Add per_objfile parameter.
2870 (scan_partial_symbols): Update.
2871 (load_full_comp_unit): Add per_objfile parameter.
2872 (process_imported_unit_die): Update.
2873 (create_cus_hash_table): Update.
2874 (find_partial_die): Update.
2875 (dwarf2_read_addr_index): Update.
2876 (follow_die_offset): Update.
2877 (dwarf2_fetch_die_loc_sect_off): Update.
2878 (dwarf2_fetch_constant_bytes): Update.
2879 (dwarf2_fetch_die_type_sect_off): Update.
2880 (follow_die_sig_1): Update.
2881 (load_full_type_unit): Add per_objfile parameter.
2882 (read_signatured_type): Likewise.
2883
313bad1b
SM
28842020-05-27 Simon Marchi <simon.marchi@efficios.com>
2885
2886 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
2887 of objfile_name.
2888
c3699833
SM
28892020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2890
2891 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
2892 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2893 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
2894 field.
2895 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2896 (create_cus_from_index): Update.
2897 (dwarf2_read_gdb_index): Update.
2898 (create_cus_from_debug_names): Update.
2899 (dwarf2_read_debug_names): Update.
2900 (get_abbrev_section_for_cu): Update.
2901 (create_all_comp_units): Update.
2902 (read_attribute_value): Update.
2903 (get_debug_line_section): Update.
2904 * dwarf2/index-cache.c (index_cache::store): Update.
2905 * dwarf2/index-write.c (save_gdb_index_command): Update.
2906 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2907
1859c670
SM
29082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2909
2910 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
2911 member.
2912 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
2913 dwarf2_per_cu_data::per_bfd.
2914 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
2915 (create_type_unit_group): Likewise.
2916 (queue_comp_unit): Remove reference to
2917 per_cu->dwarf2_per_objfile.
2918 (maybe_queue_comp_unit): Likewise.
2919 (fill_in_sig_entry_from_dwo_entry): Assign new field.
2920 (create_cus_hash_table): Assign new field.
2921
5e22e966
SM
29222020-05-27 Simon Marchi <simon.marchi@efficios.com>
2923
2924 * dwarf2/read.c: Replace
2925 dwarf2_cu->per_cu->dwarf2_per_objfile references with
2926 dwarf2_cu->per_objfile throughout.
2927
97a1449a
SM
29282020-05-27 Simon Marchi <simon.marchi@efficios.com>
2929
2930 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
2931 parameter, don't use per_cu->dwarf2_per_objfile.
2932 (dw2_instantiate_symtab): Likewise.
2933 (dw2_find_last_source_symtab): Update.
2934 (dw2_map_expand_apply): Update.
2935 (dw2_lookup_symbol): Update.
2936 (dw2_expand_symtabs_for_function): Update.
2937 (dw2_expand_all_symtabs): Update.
2938 (dw2_expand_symtabs_with_fullname): Update.
2939 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
2940 don't use per_cu->dwarf2_per_objfile.
2941 (dw2_expand_marked_cus): Update.
2942 (dw2_find_pc_sect_compunit_symtab): Update.
2943 (dw2_debug_names_lookup_symbol): Update.
2944 (dw2_debug_names_expand_symtabs_for_function): Update.
2945 (dw2_debug_names_map_matching_symbols): Update.
2946 (dwarf2_psymtab::expand_psymtab): Update.
2947
9e021579
SM
29482020-05-27 Simon Marchi <simon.marchi@efficios.com>
2949
2950 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
2951 <per_objfile>: New member.
2952 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
2953 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
2954 call to dwarf2_cu.
2955 (cutu_reader::cutu_reader): Update.
2956 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
2957
ae090bdb
SM
29582020-05-27 Simon Marchi <simon.marchi@efficios.com>
2959
2960 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
2961 struct dwarf2_per_objfile.
2962 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
2963 dwarf2_per_bfd.
2964 * dwarf2/read.c (set_die_type): Update.
2965 (get_die_type_at_offset): Update.
2966
af758d11
SM
29672020-05-27 Tom Tromey <tom@tromey.com>
2968 Simon Marchi <simon.marchi@efficios.com>
2969
2970 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
2971 method.
2972 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
2973 get_symtab, set_symtab>: New methods.
2974 <m_symtabs>: New field.
2975 (struct dwarf2_psymtab): Derive from partial_symtab.
2976 <readin_p, get_compunit_symtab>: Declare methods.
2977 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
2978 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
2979 New methods.
2980 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
2981 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
2982 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
2983 (dw2_symtab_iter_next, dw2_print_stats)
2984 (dw2_expand_symtabs_with_fullname)
2985 (dw2_expand_symtabs_matching_one)
2986 (dw_expand_symtabs_matching_file_matcher)
2987 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
2988 (dw2_debug_names_iterator::next)
2989 (dw2_debug_names_map_matching_symbols)
2990 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
2991 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
2992 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
2993 New methods.
2994 (get_compunit_symtab, process_full_comp_unit)
2995 (process_full_type_unit): Update.
2996 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
2997
5989a64e
SM
29982020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2999
3000 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3001 then introduce a new dwarf2_per_objfile type.
3002 <read_line_string>: Move to the new dwarf2_per_objfile type.
3003 <objfile>: Likewise.
3004 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3005 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3006 dwarf2_per_objfile->per_bfd.
3007 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3008 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3009 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3010 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3011 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3012 (dwarf2_per_objfile::locate_sections): Rename to...
3013 (dwarf2_per_bfd::locate_sections): ... this.
3014 (dwarf2_per_objfile::get_cutu): Rename to...
3015 (dwarf2_per_bfd::get_cutu): ... this.
3016 (dwarf2_per_objfile::get_cu): Rename to...
3017 (dwarf2_per_bfd::get_cu): ... this.
3018 (dwarf2_per_objfile::get_tu): Rename to...
3019 (dwarf2_per_bfd::get_tu): ... this.
3020 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3021 (dwarf2_per_bfd::allocate_per_cu): ... this.
3022 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3023 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3024 (get_gdb_index_contents_ftype): Change parameter from
3025 dwarf2_per_objfile to dwarf2_per_bfd.
3026 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3027 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3028
a50264ba
TT
30292020-05-27 Tom Tromey <tom@tromey.com>
3030 Simon Marchi <simon.marchi@efficios.com>
3031
3032 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3033 (allocate_piece_closure): Set "per_objfile" member.
3034 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3035 (locexpr_describe_location, loclist_describe_location): Use new
3036 member.
3037 * dwarf2/read.c (read_call_site_scope)
3038 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3039 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3040 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3041 handle_data_member_location): Set per_objfile member.
3042 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3043 member.
3044 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3045
d3473f0c
TT
30462020-05-27 Tom Tromey <tom@tromey.com>
3047
3048 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3049 allocate_signatured_type>: Declare new methods.
3050 <m_num_psymtabs>: New member.
3051 (struct dwarf2_per_cu_data) <index>: New member.
3052 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3053 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3054 (create_cu_from_index_list): Use allocate_per_cu.
3055 (create_signatured_type_table_from_index)
3056 (create_signatured_type_table_from_debug_names)
3057 (create_debug_type_hash_table, add_type_unit)
3058 (read_comp_units_from_section): Use allocate_signatured_type.
3059
5717c425
TT
30602020-05-27 Tom Tromey <tom@tromey.com>
3061
3062 * psymtab.c (partial_map_expand_apply)
3063 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3064 (psym_lookup_global_symbol_language)
3065 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3066 (psym_print_stats, psym_expand_symtabs_for_function)
3067 (psym_map_symbol_filenames, psym_map_matching_symbols)
3068 (psym_expand_symtabs_matching)
3069 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3070 (maintenance_check_psymtabs): Update.
3071 * psympriv.h (struct partial_symtab) <readin_p,
3072 get_compunit_symtab>: Add objfile parameter.
3073 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3074 Likewise.
3075 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3076 get_compunit_symtab>: Likewise.
3077 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3078
45940949
TT
30792020-05-27 Tom Tromey <tom@tromey.com>
3080
3081 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3082 member.
3083 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3084 (create_cu_from_index_list)
3085 (create_signatured_type_table_from_index)
3086 (create_signatured_type_table_from_debug_names)
3087 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3088 (dwarf2_create_include_psymtab)
3089 (create_debug_type_hash_table, add_type_unit)
3090 (create_type_unit_group, read_comp_units_from_section)
3091 (dwarf2_compute_name, create_cus_hash_table)
3092 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3093 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3094 obstack.
3095 (dw2_get_real_path): Likewise. Change argument to
3096 dwarf2_per_objfile.
3097
f8c6d152
LM
30982020-05-27 Luis Machado <luis.machado@linaro.org>
3099
3100 PR tdep/26000
3101 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3102 for ldrd (immediate).
3103
e98d2e6d
PW
31042020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3105
3106 * command.h: Add comment giving the name of class_tui.
3107 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3108 create the fake command for the help for class_tui.
3109
53a47a3e
TT
31102020-05-26 Tom Tromey <tromey@adacore.com>
3111
3112 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3113 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3114 (val_atr): New function.
3115 (value_val_atr): Use it.
3116 * ada-valprint.c (print_optional_low_bound): Change low bound
3117 handling for enums.
3118 (val_print_packed_array_elements): Don't call discrete_position.
3119 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3120 discrete_position for enum types.
3121 * language.c (default_print_array_index): Change type.
3122 * language.h (struct language_defn) <la_print_array_index>: Add
3123 index_type parameter, change type of index_value.
3124 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3125 (default_print_array_index): Update.
3126 * valprint.c (maybe_print_array_index): Don't call
3127 value_from_longest. Update.
3128 (value_print_array_elements): Don't call discrete_position.
3129
0bc2354b
TT
31302020-05-26 Tom Tromey <tromey@adacore.com>
3131
3132 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3133 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3134
1218a4bf
CDA
31352020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3136
3137 PR gdb/13519
3138 * avr-tdep.c (avr_integer_to_address): Return data or code
3139 address accordingly to the second 'type' argument of the
3140 function.
3141
92651b1d
MW
31422020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3143
3144 * infcmd.c, inferior.h: (construct_inferior_arguments):
3145 Moved function from here to gdbsupport/common-inferior.{h,cc}
3146
0a4f5f8c
TT
31472020-05-23 Tom Tromey <tom@tromey.com>
3148
3149 Revert commit eca1f90c:
3150 * NEWS: Remove entry for completion styling.
3151 * completer.c (_rl_completion_prefix_display_length): Move
3152 declaration later.
3153 (gdb_fnprint): Revert.
3154 (gdb_display_match_list_1): Likewise.
3155 * cli/cli-style.c (completion_prefix_style)
3156 (completion_difference_style, completion_suffix_style): Remove.
3157 (_initialize_cli_style): Revert.
3158 * cli/cli-style.h (completion_prefix_style)
3159 (completion_difference_style, completion_suffix_style): Don't
3160 declare.
3161
e08bd6c5
PA
31622020-05-24 Pedro Alves <palves@redhat.com>
3163
3164 * symtab.c (completion_list_add_name): Return boolean indication
3165 of whether the symbol matched.
3166 (completion_list_add_symbol): Don't try to remove C++ aliases if
3167 the symbol didn't match in the first place.
3168 * symtab.h (completion_list_add_name): Return bool.
3169
ceacbf6e
SM
31702020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3171
3172 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3173 type::field.
3174
26f16254
JB
31752020-05-23 Joel Brobecker <brobecker@adacore.com>
3176
3177 GDB 9.2 released.
3178
eca1f90c
TT
31792020-05-23 Tom Tromey <tom@tromey.com>
3180
3181 * NEWS: Add entry for completion styling.
3182 * completer.c (_rl_completion_prefix_display_length): Move
3183 declaration earlier.
3184 (gdb_fnprint): Use completion_style.
3185 (gdb_display_match_list_1): Likewise.
3186 * cli/cli-style.c (completion_prefix_style)
3187 (completion_difference_style, completion_suffix_style): New
3188 globals.
3189 (_initialize_cli_style): Register new globals.
3190 * cli/cli-style.h (completion_prefix_style)
3191 (completion_difference_style, completion_suffix_style): Declare.
3192
51e2cfa2
PA
31932020-05-23 Pedro Alves <palves@redhat.com>
3194
3195 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3196 (parse_escape): Use ISDIGIT instead of isdigit.
3197 (puts_debug): Use gdb_isprint instead of isprint.
3198 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3199 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3200 ISSPACE instead of isspace.
3201 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3202 instead of isspace.
3203 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3204 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3205 instead of isxdigit and ISDIGIT instead of isdigit.
3206
80fc5e77
SM
32072020-05-22 Simon Marchi <simon.marchi@efficios.com>
3208
3209 * gdbtypes.h (struct type) <field>: New method.
3210 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3211 or type::field.
3212
3cabb6b0
SM
32132020-05-22 Simon Marchi <simon.marchi@efficios.com>
3214
3215 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3216 (TYPE_FIELDS): Use type::fields. Change all call sites that
3217 modify the propery to use type::set_fields instead.
3218
1f704f76
SM
32192020-05-22 Simon Marchi <simon.marchi@efficios.com>
3220
3221 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3222 type::num_fields instead.
3223
5e33d5f4
SM
32242020-05-22 Simon Marchi <simon.marchi@efficios.com>
3225
3226 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3227 methods.
3228 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3229 that modify the number of fields to use type::set_num_fields
3230 instead.
3231
9392ebb3
TT
32322020-05-22 Tom Tromey <tromey@adacore.com>
3233
3234 * compile/compile-object-load.h (munmap_list_free): Don't
3235 declare.
3236
7c13f4e8
AB
32372020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3238
3239 * annotate.c (annotate_source_line): Update return type, add call
3240 to update current symtab and line.
3241 * annotate.h (annotate_source_line): Update return type, and
3242 extend header comment.
3243 * source.c (info_line_command): Check annotation_level before
3244 calling annotate_source_line.
3245 * stack.c (print_frame_info): If calling annotate_source_line
3246 returns true, then don't print any other source line information.
3247
aa370940
SM
32482020-05-21 Simon Marchi <simon.marchi@efficios.com>
3249
3250 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3251
84d53fa9
SM
32522020-05-21 Simon Marchi <simon.marchi@efficios.com>
3253
3254 * coffread.c (patch_type): Remove NULL check before xfree.
3255 * corefile.c (set_gnutarget): Likewise.
3256 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3257 * exec.c (build_section_table): Likewise.
3258 * remote.c (remote_target::pass_signals): Likewise.
3259 * utils.c (n_spaces): Likewise.
3260 * cli/cli-script.c (document_command): Likewise.
3261 * i386-windows-tdep.c (core_process_module_section): Likewise.
3262 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3263
9d428aae
SM
32642020-05-20 Simon Marchi <simon.marchi@efficios.com>
3265
3266 * symfile.c (reread_symbols): Clear objfile's section_offsets
3267 vector and section indices, re-compute them by calling
3268 sym_offsets.
3269
250106a7
TT
32702020-05-20 Tom Tromey <tromey@adacore.com>
3271
3272 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3273 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3274
9a0bacfb
TV
32752020-05-20 Tom de Vries <tdevries@suse.de>
3276
3277 PR symtab/25833
3278 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3279
7b958a48
AM
32802020-05-20 Alan Modra <amodra@gmail.com>
3281
3282 PR 25993
3283 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3284 bfd_set_filename.
3285 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3286 passed to bfd_set_filename.
3287 * symfile-mem.c (add_vsyscall_page): Likewise for string
3288 passed to symbol_file_add_from_memory.
3289 (symbol_file_add_from_memory): Make name param a const char* and
3290 don't strdup.
3291
c7e97679
AM
32922020-05-20 Alan Modra <amodra@gmail.com>
3293
3294 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3295 rather than accessing bfd->filename directly.
3296 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3297 and use bfd_section_name.
3298 * dwarf2/frame.c (decode_frame_entry): Likewise.
3299 * exec.c (exec_set_section_address): Likewise.
3300 * solib-aix.c (solib_aix_bfd_open): Likewise.
3301 * stap-probe.c (get_stap_base_address): Likewise.
3302 * symfile.c (reread_symbols): Likewise.
3303
563c591b
TT
33042020-05-19 Tom Tromey <tromey@adacore.com>
3305
3306 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3307
f408d82c
SM
33082020-05-19 Simon Marchi <simon.marchi@efficios.com>
3309
3310 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3311
98c59b52
PA
33122020-05-19 Pedro Alves <palves@redhat.com>
3313
3314 * NEWS (set exec-file-mismatch): Adjust entry.
3315 * exec.c: Include "build-id.h".
3316 (validate_exec_file): Try to match build IDs instead of filenames.
3317 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3318 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3319 and pass down 'warn_if_slow'.
3320 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3321 gdb_bfd_open_closure to pass it down.
3322 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3323
4111f652
PA
33242020-05-19 Pedro Alves <palves@redhat.com>
3325
3326 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3327 * target.c (target_fileio_open_1): Rename to target_fileio_open
3328 and make extern. Use bool.
3329 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3330 (target_fileio_read_alloc_1): Adjust.
3331 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3332 (target_fileio_open_warn_if_slow): Delete declaration.
3333
ad80db5b
PA
33342020-05-19 Pedro Alves <palves@redhat.com>
3335
3336 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3337 Adjust all callers.
3338
1d6ce4d3
YS
33392020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3340
3341 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3342 whether disp is negative.
3343
9005fbbb
SM
33442020-05-19 Simon Marchi <simon.marchi@efficios.com>
3345
3346 * symfile.h (struct symfile_segment_data)
3347 <~symfile_segment_data>: Remove.
3348 <segment_info>: Change to std::vector.
3349 * symfile.c (default_symfile_segments): Update.
3350 * elfread.c (elf_symfile_segments): Update.
3351
68b888ff
SM
33522020-05-19 Simon Marchi <simon.marchi@efficios.com>
3353
3354 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3355 <segments>: New.
3356 <segment_bases, segment_sizes>: Remove.
3357 * symfile.c (default_symfile_segments): Update.
3358 * elfread.c (elf_symfile_segments): Update.
3359 * remote.c (remote_target::get_offsets): Update.
3360 * solib-target.c (solib_target_relocate_section_addresses):
3361 Update.
3362
62982abd
SM
33632020-05-19 Simon Marchi <simon.marchi@efficios.com>
3364
3365 * symfile.h (struct symfile_segment_data): Initialize fields.
3366 <~symfile_segment_data>: Add.
3367 (symfile_segment_data_up): New.
3368 (struct sym_fns) <sym_segments>: Return a
3369 symfile_segment_data_up.
3370 (default_symfile_segments): Return a symfile_segment_data_up.
3371 (free_symfile_segment_data): Remove.
3372 (get_symfile_segment_data): Return a symfile_segment_data_up.
3373 * symfile.c (default_symfile_segments): Likewise.
3374 (get_symfile_segment_data): Likewise.
3375 (free_symfile_segment_data): Remove.
3376 (symfile_find_segment_sections): Update.
3377 * elfread.c (elf_symfile_segments): Return a
3378 symfile_segment_data_up.
3379 * remote.c (remote_target::get_offsets): Update.
3380 * solib-target.c (solib_target_relocate_section_addresses):
3381 Update.
3382 * symfile-debug.c (debug_sym_segments): Return a
3383 symfile_segment_data_up.
3384
7f204339
RO
33852020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3386
e52a0f1b
RO
3387 PR build/25981
3388 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3389 Hardcode register numbers.
3390
7f204339
RO
3391 PR build/25981
3392 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3393 procfs_find_LDT_entry): Remove.
3394 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3395 procfs_find_LDT_entry): Remove.
3396 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3397 Remove.
3398
7f32a4d5
PA
33992020-05-17 Pedro Alves <palves@redhat.com>
3400 Andrew Burgess <andrew.burgess@embecosm.com>
3401 Keno Fischer <keno@juliacomputing.com>
3402
3403 PR gdb/25741
3404 * breakpoint.c (build_target_condition_list): Update comments.
3405 (build_target_command_list): Update comments and skip matching
3406 locations.
3407 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3408 a separate function. Simplify "set breakpoint auto-hw off"
3409 handling.
3410 (insert_breakpoints): Update comment.
3411 (tracepoint_locations_match): New parameter. For breakpoints,
3412 compare location types too, if the caller wants to.
3413 (handle_automatic_hardware_breakpoints): New functions.
3414 (bp_location_is_less_than): Also sort by location type and
3415 hardware breakpoint length.
3416 (update_global_location_list): Handle "set breakpoint auto-hw on"
3417 here.
3418 (update_breakpoint_locations): Ask breakpoint_locations_match to
3419 ignore location types.
3420
7d93a1e0
SM
34212020-05-16 Simon Marchi <simon.marchi@efficios.com>
3422
3423 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3424 type::name instead.
3425
d0e39ea2
SM
34262020-05-16 Simon Marchi <simon.marchi@efficios.com>
3427
3428 * gdbtypes.h (struct type) <name, set_name>: New methods.
3429 (TYPE_CODE): Use type::name. Change all call sites used to set
3430 the name to use type::set_name instead.
3431
2dab0c7b
TT
34322020-05-16 Tom Tromey <tom@tromey.com>
3433
3434 * top.c (quit_force): Update.
3435 * infrun.c (handle_no_resumed): Update.
3436 * top.h (all_uis): New function.
3437 (ALL_UIS): Remove.
3438
59f7bd8d
SM
34392020-05-16 Simon Marchi <simon.marchi@efficios.com>
3440
3441 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3442
9bf058f0
PA
34432020-05-16 Pedro Alves <palves@redhat.com>
3444
3445 * ia64-linux-nat.c
3446 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3447 Declare method.
3448 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3449
8f86ae1a
SM
34502020-05-15 Simon Marchi <simon.marchi@efficios.com>
3451
3452 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3453 (sparc64_adi_info): Likewise.
3454
d6bc0792
TT
34552020-05-15 Tom Tromey <tom@tromey.com>
3456
3457 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3458 block_objfile.
3459 (lookup_objfile_from_block): Remove.
3460 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3461 (lookup_global_symbol): Use block_objfile.
3462 * symtab.h (lookup_objfile_from_block): Don't declare.
3463 * printcmd.c (clear_dangling_display_expressions): Use
3464 block_objfile.
3465 * parse.c (operator_check_standard): Use block_objfile.
3466
8c14c3a3
TT
34672020-05-15 Tom Tromey <tom@tromey.com>
3468
3469 * language.c (language_alloc_type_symbol): Set
3470 SYMBOL_SECTION.
3471 * symtab.c (initialize_objfile_symbol): Remove.
3472 (allocate_symbol): Remove.
3473 (allocate_template_symbol): Remove.
3474 * dwarf2/read.c (fixup_go_packaging): Use "new".
3475 (new_symbol): Use "new".
3476 (read_variable): Don't call initialize_objfile_symbol. Use
3477 "new".
3478 (read_func_scope): Use "new".
3479 * xcoffread.c (process_xcoff_symbol): Don't call
3480 initialize_objfile_symbol.
3481 (SYMBOL_DUP): Remove.
3482 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3483 "new".
3484 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3485 (allocate_template_symbol): Don't declare.
3486 (struct symbol): Add copy constructor. Change defaults.
3487 * jit.c (finalize_symtab): Use "new".
3488 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3489 Use "new".
3490 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3491 (common_block_end): Use "new".
3492 * mdebugread.c (parse_symbol): Use "new".
3493 (new_symbol): Likewise.
3494
5b4a1a8d
PW
34952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3496
3497 * NEWS: Mention changes to help and apropos.
3498
57b4f16e
PW
34992020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3500
3501 * command.h (enum command_class): Improve comments, document
3502 that class_alias is for user-defined aliases, give the class
3503 name for each class, remove unused class_xdb.
3504 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3505 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3506 by a precise class.
3507 * infcmd.c (_initialize_infcmd): Likewise.
3508 * reverse.c (_initialize_reverse): Likewise.
3509 * stack.c (_initialize_stack): Likewise.
3510 * symfile.c (_initialize_symfile): Likewise.
3511 * tracepoint.c (_initialize_tracepoint): Likewise.
3512
7c05caf7
PW
35132020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3514
3515 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3516 when their aliased command is traversed.
3517 (help_cmd): Add fput_command_names_styled call to
3518 output command name and aliases when command has an alias.
3519
3b3aaacb
PW
35202020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3521
3522 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3523 * cli/cli-decode.c (help_cmd_list): Declare as static,
3524 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3525 a command together with the command.
3526 (fput_command_name_styled, fput_command_names_styled): New functions.
3527 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3528 fput_command_name_styled.
3529 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3530 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3531
7aa1b46f
PW
35322020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3533
3534 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3535 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3536 * command.h (cmd_show_list): Likewise.
3537 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3538 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3539
89bcba74
PW
35402020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3541
3542 * unittests/command-def-selftests.c (traverse_command_structure):
3543 Verify all commands of a list have the same prefix command and
3544 that only the top cmdlist commands have a null prefix.
3545
3f4d92eb
PW
35462020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3547
3548 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3549 as prefix, not one of its aliases.
3550 (set_cmd_prefix): Remove.
3551 (do_add_cmd): Centralize the setting of the prefix of a command, when
3552 command is defined after its full chain of prefix commands.
3553 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3554 (add_setshow_cmd_full): Likewise.
3555 (update_prefix_field_of_prefixed_commands): New function.
3556 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3557 update_prefix_field_of_prefixed_commands.
3558 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3559 addresses of remote_set_cmdlist and remote_show_cmdlist given
3560 as argument, not the address of an argument.
3561 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3562 * gdb/remote.c (_initialize_remote): Likewise.
3563
0605465f
PW
35642020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3565
3566 * cli/cli-cmds.c (alias_command): Check for an existing alias
3567 using lookup_cmd_composition, as valid_command_p is too strict
3568 and forbids aliases that are the prefix of an existing alias
3569 or command.
3570 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3571 command is properly recognised as a valid command.
3572
58e6ac70
PW
35732020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3574
3575 * unittests/help-doc-selftests.c: Rename to
3576 unittests/command-def-selftests.c
3577 * unittests/command-def-selftests.c (help_doc_tests): Update some
3578 comments.
3579 (command_structure_tests, traverse_command_structure): New namespace
3580 and function.
3581 (command_structure_invariants_tests): New function.
3582 (_initialize_command_def_selftests) Renamed from
3583 _initialize_help_doc_selftests, register command_structure_invariants
3584 selftest.
3585
a7b9ceb8
PW
35862020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3587
3588 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3589 an alias of 'show'.
3590
b2188a06
JB
35912020-05-15 Joel Brobecker <brobecker@adacore.com>
3592
3593 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3594 ada_is_fixed_point_type. Update all callers.
3595 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3596 all callers.
3597 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3598 Update all callers.
3599 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3600 print_fixed_point_type. Update all callers.
3601 * ada-valprint.c (ada_value_print_num): Replace call to
3602 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3603
a51951c2
KB
36042020-05-14 Kevin Buettner <kevinb@redhat.com>
3605
3606 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3607 processors.
3608 (cpu_supports_bts): Add CV_AMD case.
3609
29d6859f
LM
36102020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3611 Simon Marchi <simon.marchi@efficios.com>
3612
3613 * infrun.c (stop_all_threads): Collect multiple wait events at
3614 each pass.
3615
78134374
SM
36162020-05-14 Simon Marchi <simon.marchi@efficios.com>
3617
3618 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3619 type::code instead.
3620
67607e24
SM
36212020-05-14 Simon Marchi <simon.marchi@efficios.com>
3622
3623 * gdbtypes.h (struct type) <code, set_code>: New methods.
3624 (TYPE_CODE): Use type::code. Change all call sites used to set
3625 the code to use type::set_code instead.
3626
a05575d3
TBA
36272020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3628 Tom de Vries <tdevries@suse.de>
3629 Pedro Alves <palves@redhat.com>
3630
3631 PR threads/25478
3632 * infrun.c (stop_all_threads): Do NOT ignore
3633 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3634 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3635 received.
3636 (handle_no_resumed): Remove code handling a live inferior with no
3637 threads.
3638 * remote.c (has_single_non_exited_thread): New.
3639 (remote_target::update_thread_list): Do not delete a thread if is
3640 the last thread of the process.
3641 * thread.c (thread_select): Call delete_exited_threads instead of
3642 prune_threads.
3643
6ad82919
TBA
36442020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3645
3646 * infrun.c (stop_all_threads): Enable/disable thread events of all
3647 targets. Move a debug message denoting the end of the function
3648 into the SCOPED_EXIT block.
3649
d890404b
TBA
36502020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3651
3652 * process-stratum-target.h: Include <set>.
3653 (all_non_exited_process_targets, switch_to_target_no_thread): New
3654 function declarations.
3655 * process-stratum-target.c (all_non_exited_process_targets)
3656 (switch_to_target_no_thread): New function implementations.
3657
293b3ebc
TBA
36582020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3659
3660 * infrun.c (handle_inferior_event): Extract out a piece of code
3661 into...
3662 (mark_non_executing_threads): ...this new function.
3663
7ca9b62a
TBA
36642020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3665
3666 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3667 use.
3668
fc75c28b
TBA
36692020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3670
3671 * regcache.c (regcache_read_pc_protected): New function
3672 implementation that returns 0 if the PC cannot read via
3673 'regcache_read_pc'.
3674 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3675 instead of 'regcache_read_pc'.
3676 (keep_going_pass_signal): Ditto.
3677
a89febbd
TT
36782020-05-13 Tom Tromey <tromey@adacore.com>
3679
3680 * ada-lang.c (align_value): Remove.
3681 (ada_template_to_fixed_record_type_1): Use align_up.
3682
f7e23710
TBA
36832020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3684
3685 * async-event.c: Update the copyright year.
3686 * async-event.h: Update the copyright year.
3687
02ff80c2
SM
36882020-05-12 Simon Marchi <simon.marchi@efficios.com>
3689
3690 * objfiles.h (is_addr_in_objfile,
3691 shared_objfile_contains_address_p): Return bool.
3692 * objfile.c (is_addr_in_objfile,
3693 shared_objfile_contains_address_p): Return bool.
3694
4fd6c7e8
TT
36952020-05-11 Tom Tromey <tromey@adacore.com>
3696
3697 * cli/cli-cmds.c (info_command): Restore.
3698 (_initialize_cli_cmds): Use add_prefix_command for "info".
3699 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3700
5eb68a39
TT
37012020-05-11 Tom Tromey <tromey@adacore.com>
3702
3703 * ada-lang.c (ada_value_primitive_field): Now public.
3704 * ada-lang.h (ada_value_primitive_field): Declare.
3705 * ada-valprint.c (print_field_values): Use
3706 ada_value_primitive_field for wrapper fields.
3707
7666722f
TV
37082020-05-11 Tom de Vries <tdevries@suse.de>
3709
3710 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3711 MODULE_DOMAIN.
3712
3ee6bb11
TV
37132020-05-11 Tom de Vries <tdevries@suse.de>
3714
3715 PR symtab/25941
3716 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3717 with length 0, if not gdb-produced.
3718 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3719
43434996
TV
37202020-05-09 Tom de Vries <tdevries@suse.de>
3721
3722 PR gdb/25955
3723 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3724 calculation.
3725
2f78cffc
TT
37262020-05-09 Tom Tromey <tom@tromey.com>
3727
3728 * top.c (server_command): Now bool.
3729 * top.h (server_command): Now bool.
3730
4f7bc5ed
TT
37312020-05-08 Tom Tromey <tromey@adacore.com>
3732
3733 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3734 already being processed.
3735
8be4b118
TT
37362020-05-08 Tom Tromey <tom@tromey.com>
3737
3738 * printcmd.c (struct display) <next>: Remove.
3739 <display>: New constructor.
3740 <exp_string>: Now a std::string.
3741 <enabled_p>: Now a bool.
3742 (display_number): Move definition earlier.
3743 (displays): Rename from display_chain. Now a std::vector.
3744 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3745 (display_command): Update.
3746 (do_one_display, disable_display)
3747 (enable_disable_display_command, do_enable_disable_display):
3748 Update.
3749 (free_display): Remove.
3750 (clear_displays): Rewrite.
3751 (delete_display): Update.
3752 (map_display_numbers): Use function_view. Remove "data"
3753 parameter. Update.
3754 (do_delete_display): Remove.
3755 (undisplay_command): Update.
3756 (do_one_display, do_displays, disable_display)
3757 (info_display_command): Update.
3758 (do_enable_disable_display): Remove.
3759 (enable_disable_display_command)
3760 (clear_dangling_display_expressions): Update.
3761
94c93c35
TT
37622020-05-08 Tom Tromey <tom@tromey.com>
3763
3764 * symtab.c (set_symbol_cache_size)
3765 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3766 (maintenance_print_symbol_cache_statistics): Update.
3767 * symmisc.c (print_symbol_bcache_statistics)
3768 (print_objfile_statistics, maintenance_print_objfiles)
3769 (maintenance_info_symtabs, maintenance_check_symtabs)
3770 (maintenance_expand_symtabs, maintenance_info_line_tables):
3771 Update.
3772 * symfile-debug.c (set_debug_symfile): Update.
3773 * source.c (forget_cached_source_info): Update.
3774 * python/python.c (gdbpy_progspaces): Update.
3775 * psymtab.c (maintenance_info_psymtabs): Update.
3776 * probe.c (parse_probes): Update.
3777 * linespec.c (iterate_over_all_matching_symtabs)
3778 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3779 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3780 * exec.c (exec_target::close): Update.
3781 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3782 * breakpoint.c (print_one_breakpoint_location)
3783 (create_longjmp_master_breakpoint)
3784 (create_std_terminate_master_breakpoint): Update.
3785 * progspace.c (program_spaces): Now a std::vector.
3786 (maybe_new_address_space): Update.
3787 (add_program_space): Remove.
3788 (program_space::program_space): Update.
3789 (remove_program_space): Update.
3790 (number_of_program_spaces): Remove.
3791 (print_program_space, update_address_spaces): Update.
3792 * progspace.h (program_spaces): Change type.
3793 (ALL_PSPACES): Remove.
3794 (number_of_program_spaces): Don't declare.
3795 (struct program_space) <next>: Remove.
3796
a1fd1ac9
TT
37972020-05-08 Tom Tromey <tom@tromey.com>
3798
3799 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3800 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3801 (enable_break): Update.
3802 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3803 (frv_fdpic_find_canonical_descriptor): Update.
3804 (frv_fetch_objfile_link_map): Update.
3805 * progspace.c (program_space::free_all_objfiles): Update.
3806 (program_space::solibs): New method.
3807 * progspace.h (struct program_space) <solibs>: New method.
3808 * solist.h (master_so_list): Don't declare.
3809 (ALL_SO_LIBS): Remove.
3810 * solib.h (so_list_head): Remove.
3811 (update_solib_list): Update comment.
3812 * solib.c (master_so_list): Remove.
3813 (solib_used, update_solib_list, solib_add)
3814 (info_sharedlibrary_command, clear_solib)
3815 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3816
38eae084
TT
38172020-05-08 Tom Tromey <tom@tromey.com>
3818
3819 * extension.c (extension_languages): Now a std::array.
3820 (ALL_EXTENSION_LANGUAGES): Remove.
3821 (get_ext_lang_defn, get_ext_lang_of_file)
3822 (eval_ext_lang_from_control_command): Update.
3823 (finish_ext_lang_initialization)
3824 (auto_load_ext_lang_scripts_for_objfile)
3825 (ext_lang_type_printers::ext_lang_type_printers)
3826 (apply_ext_lang_type_printers)
3827 (ext_lang_type_printers::~ext_lang_type_printers)
3828 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3829 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3830 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3831 (get_matching_xmethod_workers, ext_lang_colorize)
3832 (ext_lang_before_prompt): Update.
3833 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3834
596dc4ad
TT
38352020-05-08 Tom Tromey <tom@tromey.com>
3836
3837 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3838 overload.
3839 <swap_string, m_string>: Remove.
3840 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3841 Update.
3842 * stabsread.c (define_symbol, read_type): Update.
3843 * linespec.c (find_linespec_symbols): Update.
3844 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3845 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3846 * dbxread.c (read_dbx_symtab): Update.
3847 * cp-support.h (cp_canonicalize_string_full)
3848 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3849 Return unique_xmalloc_ptr.
3850 * cp-support.c (inspect_type): Update.
3851 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3852 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3853 Likewise.
3854 * c-typeprint.c (print_name_maybe_canonical): Update.
3855 * break-catch-throw.c (check_status_exception_catchpoint):
3856 Update.
3857
bf4cb9be
TV
38582020-05-08 Tom de Vries <tdevries@suse.de>
3859
3860 * infrun.c (follow_fork): Copy current_line and current_symtab to
3861 child thread.
3862
a1b68f28
SM
38632020-05-07 Simon Marchi <simon.marchi@efficios.com>
3864
3865 * async-event.c (struct async_signal_handler, struct
3866 async_event_handler): Reformat, remove typedef.
3867
98d48915
SM
38682020-05-07 Simon Marchi <simon.marchi@efficios.com>
3869
3870 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
3871 access thistype->main_type->dyn_prop_list directly.
3872
7aa91313
SM
38732020-05-07 Simon Marchi <simon.marchi@efficios.com>
3874
3875 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
3876 (remove_dyn_prop): Remove. Update all users to use
3877 type::remove_dyn_prop.
3878 * gdbtypes.c (remove_dyn_prop): Rename to...
3879 (type::remove_dyn_prop): ... this.
3880
5c54719c
SM
38812020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
3882
3883 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
3884 (add_dyn_prop): Remove. Update all users to use
3885 type::add_dyn_prop.
3886 * gdbtypes.c (add_dyn_prop): Rename to...
3887 (type::add_dyn_prop): ... this.
3888
24e99c6c
SM
38892020-05-07 Simon Marchi <simon.marchi@efficios.com>
3890
3891 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
3892 (get_dyn_prop): Remove. Update all users to use
3893 type::dyn_prop.
3894 * gdbtypes.c (get_dyn_prop): Rename to...
3895 (type::dyn_prop): ... this.
3896
0d4bf016
SM
38972020-05-06 Simon Marchi <simon.marchi@efficios.com>
3898
3899 * gdbtypes.h (struct main_type) <flag_static>: Remove.
3900
ac4a4f1c
SM
39012020-05-06 Simon Marchi <simon.marchi@efficios.com>
3902
3903 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
3904 instruction, skip it if it's there.
3905
a3bbacc1
SM
39062020-05-05 Simon Marchi <simon.marchi@efficios.com>
3907
3908 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
3909
c3236f84
SM
39102020-05-04 Simon Marchi <simon.marchi@efficios.com>
3911
3912 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
3913 * gdbtypes.c (recursive_dump_type): Remove use of
3914 TYPE_INCOMPLETE.
3915
3b6acaee
TT
39162020-05-03 Tom Tromey <tom@tromey.com>
3917
3918 * breakpoint.c (catch_command, tcatch_command): Remove.
3919 (_initialize_breakpoint): Use add_basic_prefix_cmd,
3920 add_show_prefix_cmd.
3921 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
3922 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
3923 Remove.
3924 (add_internal_problem_command): Use add_basic_prefix_cmd,
3925 add_show_prefix_cmd.
3926 * mips-tdep.c (set_mipsfpu_command): Remove.
3927 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
3928 * dwarf2/index-cache.c (set_index_cache_command): Remove.
3929 (_initialize_index_cache): Use add_basic_prefix_cmd.
3930 * memattr.c (dummy_cmd): Remove.
3931 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
3932 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
3933 (_initialize_tui_win): Use add_basic_prefix_cmd,
3934 add_show_prefix_cmd.
3935 * cli/cli-logging.c (set_logging_command): Remove.
3936 (_initialize_cli_logging): Use add_basic_prefix_cmd,
3937 add_show_prefix_cmd.
3938 (show_logging_command): Remove.
3939 * target.c (target_command): Remove.
3940 (add_target): Use add_basic_prefix_cmd.
3941
a51119cd
HD
39422020-05-02 Hannes Domani <ssbssa@yahoo.de>
3943
3944 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
3945
652fc23a 39462020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3947
652fc23a
PW
3948 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
3949 info_command.
3950
117539e6
KR
39512020-04-30 Kamil Rytarowski <n54@gmx.com>
3952
3953 * nbsd-nat.c (nbsd_enable_proc_events)
3954 (nbsd_nat_target::post_startup_inferior): Add.
3955 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
3956 (nbsd_nat_target::update_thread_list): Rewrite.
3957 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
3958 "PTRACE_LWP_CREATE".
3959 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
3960
102e38eb 39612020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3962
102e38eb
PW
3963 * stack.c (_initialize_stack): Remove duplicated creation
3964 of "frame" command and "f" alias.
3965
ee9d1e5f
HD
39662020-04-30 Hannes Domani <ssbssa@yahoo.de>
3967
3968 PR gdb/18706
3969 * gdbtypes.c (check_typedef): Calculate size of array of
3970 stubbed type.
3971
627c7fb8
HD
39722020-04-30 Hannes Domani <ssbssa@yahoo.de>
3973
3974 PR gdb/15559
3975 * i386-tdep.c (i386_push_dummy_call): Call
3976 i386_thiscall_push_dummy_call.
3977 (i386_thiscall_push_dummy_call): New function.
3978 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
3979 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
3980 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
3981
ffc2844e
SM
39822020-04-29 Simon Marchi <simon.marchi@efficios.com>
3983
3984 * gdbarch.sh (do_read): Add shellcheck disable directive for
3985 warning SC2162.
3986
1207375d
SM
39872020-04-29 Simon Marchi <simon.marchi@efficios.com>
3988
3989 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
3990 "referenced but not assigned" warning.
3991
9fdb2916
SM
39922020-04-29 Simon Marchi <simon.marchi@efficios.com>
3993
3994 * gdbarch.sh: Remove code that sets fallbackdefault.
3995
759cea5e
SM
39962020-04-29 Simon Marchi <simon.marchi@efficios.com>
3997
3998 * gdbarch.sh: Use shell operators && and || instead of
3999 -a and -o.
4000
cb02ab24
SM
40012020-04-29 Simon Marchi <simon.marchi@efficios.com>
4002
4003 * gdbarch.sh: Use $(...) instead of `...`.
4004
a6fc5ffc
SM
40052020-04-29 Simon Marchi <simon.marchi@efficios.com>
4006
4007 * gdbarch.sh: Use double quotes around variables.
4008
8d113d13
SM
40092020-04-29 Simon Marchi <simon.marchi@efficios.com>
4010
4011 * gdbarch.sh: Use %s with printf, instead of variables in the
4012 format string.
4013
ed6acedd
TT
40142020-04-29 Tom Tromey <tromey@adacore.com>
4015
4016 PR ada/25875:
4017 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4018 type fields here.
4019 (read_enumeration_type): Call
4020 update_enumeration_type_from_children later. Update comments.
4021 (process_enumeration_scope): Don't create type fields.
4022
b68b1b58
KR
40232020-04-29 Kamil Rytarowski <n54@gmx.com>
4024
4025 * nbsd-tdep.c: Include "xml-syscall.h".
4026 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4027
f94b2e03
KR
40282020-04-29 Kamil Rytarowski <n54@gmx.com>
4029
4030 * nbsd-nat.c: Include "sys/wait.h".
4031 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4032 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4033 (nbsd_nat_target::remove_exec_catchpoint)
4034 (nbsd_nat_target::set_syscall_catchpoint): Add.
4035 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4036 (nbsd_nat_target::insert_exec_catchpoint)
4037 (nbsd_nat_target::remove_exec_catchpoint)
4038 (nbsd_nat_target::set_syscall_catchpoint): Add.
4039 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4040 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4041 `nbsd_get_syscall_number'.
4042
fc49bc72
TT
40432020-04-29 Tom Tromey <tom@tromey.com>
4044
4045 * stack.c (print_block_frame_labels): Remove.
4046
d642b692
HD
40472020-04-29 Hannes Domani <ssbssa@yahoo.de>
4048
4049 PR gdb/17320
4050 * ada-valprint.c (val_print_packed_array_elements): Move array
4051 end bracket to new line.
4052 (ada_val_print_string): Remove extra spaces before first array
4053 element.
4054 * c-valprint.c (c_value_print_array): Likewise.
4055 * m2-valprint.c (m2_print_array_contents): Likewise.
4056 (m2_value_print_inner): Likewise.
4057 * p-valprint.c (pascal_value_print_inner): Likewise.
4058 * valprint.c (generic_val_print_array): Likewise.
4059 (value_print_array_elements): Move first array element and array
4060 end bracket to new line.
4061
ea90f227
TV
40622020-04-29 Tom de Vries <tdevries@suse.de>
4063
4064 PR symtab/25889
4065 * linespec.c (find_method): Fix ix calculation.
4066
4498ef4f
KR
40672020-04-28 Kamil Rytarowski <n54@gmx.com>
4068
4069 * syscalls/update-netbsd.sh: New file.
4070 * syscalls/netbsd.xml: Regenerate.
4071 * data-directory/Makefile.in: Register `netbsd.xml' in
4072 `SYSCALLS_FILES'.
4073
a55e30b5
SM
40742020-04-28 Simon Marchi <simon.marchi@efficios.com>
4075
4076 * syscalls/update-freebsd.sh: Add double quotes.
4077
2b2fbab8
TT
40782020-04-28 Tom Tromey <tom@tromey.com>
4079
4080 * NEWS: Update.
4081 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4082 (cmdpy_init): Allow class_tui.
4083
a65189c9
TV
40842020-04-28 Mark Williams <mark@myosotissp.com>
4085
4086 PR gdb/24480
4087 * dwarf2read.c: Add missing assingments to list_in_scope when
4088 start_symtab was already called.
4089
1b95cdb7
SM
40902020-04-28 Simon Marchi <simon.marchi@efficios.com>
4091
4092 PR gdb/25881
4093 * dwarf2/read.c (offset_map_type): Use
4094 gdb:hash_enum<sect_offset> as hash function.
4095
15cd93d0
TV
40962020-04-28 Tom de Vries <tdevries@suse.de>
4097
4098 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4099 with DW_AT_signature.
4100
1eb39914
SM
41012020-04-27 Simon Marchi <simon.marchi@efficios.com>
4102
4103 * configure.ac: Remove check for fs_base/gs_base in
4104 user_regs_struct.
4105 * configure: Re-generate.
4106 * config.in: Re-generate.
4107 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4108 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4109 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4110
991a3e2e
LM
41112020-04-27 Luis Machado <luis.machado@linaro.org>
4112
4113 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4114 problematic inline frame unwinding situation.
4115 * frame.c (frame_id_computed_p): New function.
4116 * frame.h (frame_id_computed_p): New prototype.
4117
361ba0e8
TT
41182020-04-26 Tom Tromey <tom@tromey.com>
4119
4120 * command.h (enum command_class) <class_pseudo>: Remove.
4121
bc3609fd
PW
41222020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4123
4124 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4125 and whitespace.
4126
b9771db7
KR
41272020-04-25 Kamil Rytarowski <n54@gmx.com>
4128
ec16513e
SM
4129 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4130 `PT_GET_PROCESS_STATE' block.
b9771db7 4131
7151c1af
TT
41322020-04-24 Tom Tromey <tom@tromey.com>
4133
4134 * symtab.h (symbol_get_demangled_name): Don't declare.
4135 * symtab.c (symbol_get_demangled_name): Remove.
4136 (general_symbol_info::natural_name)
4137 (general_symbol_info::demangled_name): Update.
4138
906bb4c5
TT
41392020-04-24 Tom Tromey <tom@tromey.com>
4140
4141 PR rust/25025:
4142 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4143
bcfe6157
TT
41442020-04-24 Tom Tromey <tom@tromey.com>
4145
4146 PR symtab/12707:
4147 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4148 exists.
4149 (new_symbol): Likewise.
4150 * compile/compile-object-load.c (get_out_value_type): Use
4151 symbol_matches_search_name.
4152
f049a313
TT
41532020-04-24 Tom Tromey <tom@tromey.com>
4154
4155 * dwarf2/read.c (add_partial_symbol): Do not call
4156 compute_and_set_names.
4157
76e288d1
TT
41582020-04-24 Tom Tromey <tom@tromey.com>
4159
4160 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4161 overload.
4162
2467f4f6
TT
41632020-04-24 Tom Tromey <tom@tromey.com>
4164
4165 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4166 (add_psymbol_to_list): New overload. Make old overload call new
4167 one.
4168 * psympriv.h (add_psymbol_to_list): New overload.
4169
e61108c9
TT
41702020-04-24 Tom Tromey <tom@tromey.com>
4171
4172 * dwarf2/read.c (partial_die_info::read) <case
4173 DW_AT_linkage_name>: Use value_as_string.
4174 (dwarf2_string_attr): Use value_as_string.
4175 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4176 method.
4177 * dwarf2/attribute.c (attribute::value_as_string): New method.
4178
8c87a452
TT
41792020-04-24 Tom Tromey <tom@tromey.com>
4180
4181 * symtab.c (general_symbol_info::natural_name)
4182 (general_symbol_info::demangled_name): Check for language_rust.
4183
787de330
TT
41842020-04-24 Tom Tromey <tom@tromey.com>
4185
4186 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4187 (dwarf2_physname): ... from here.
4188 (partial_die_info::read): Add Rust "{" hack.
4189
ff985671
TT
41902020-04-24 Tom Tromey <tom@tromey.com>
4191
4192 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4193 method.
4194 (symbol_set_demangled_name): Don't declare.
4195 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4196 symbol_set_demangled_name.
4197 (general_symbol_info::set_language)
4198 (general_symbol_info::compute_and_set_names): Update.
4199 * minsyms.c (minimal_symbol_reader::install): Update.
4200 * dwarf2/read.c (new_symbol): Update.
4201
1acda803
TT
42022020-04-24 Tom Tromey <tromey@adacore.com>
4203
4204 PR python/23662:
4205 * python/py-type.c (convert_field): Handle
4206 FIELD_LOC_KIND_DWARF_BLOCK.
4207 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4208 (typy_get_dynamic): Nw function.
4209 (type_object_getset): Add "dynamic".
4210 * NEWS: Add entry.
4211
d656f129
TT
42122020-04-24 Tom Tromey <tromey@adacore.com>
4213
4214 * ada-typeprint.c (print_choices, print_variant_part)
4215 (print_record_field_types_dynamic): New functions.
4216 (print_record_field_types): Use print_record_field_types_dynamic.
4217
7d79de9a
TT
42182020-04-24 Tom Tromey <tromey@adacore.com>
4219
4220 * dwarf2/read.c (handle_data_member_location): New overload.
4221 (dwarf2_add_field): Use it.
4222 (decode_locdesc): Add "computed" parameter. Update comment.
4223 * gdbtypes.c (is_dynamic_type_internal): Also look for
4224 FIELD_LOC_KIND_DWARF_BLOCK.
4225 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4226 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4227 virtual base classes.
4228 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4229 FIELD_LOC_KIND_DWARF_BLOCK.
4230
f8e89861
TT
42312020-04-24 Tom Tromey <tromey@adacore.com>
4232
4233 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4234 * gdbtypes.c (is_dynamic_type_internal): Check
4235 TYPE_HAS_DYNAMIC_LENGTH.
4236 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4237 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4238 New macros.
4239 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4240 constant.
4241
9c6a1327
TT
42422020-04-24 Tom Tromey <tromey@adacore.com>
4243
4244 * dwarf2/read.c (struct variant_field): Rewrite.
4245 (struct variant_part_builder): New.
4246 (struct nextfield): Remove "variant" field. Add "offset".
4247 (struct field_info): Add "current_variant_part" and
4248 "variant_parts".
4249 (alloc_discriminant_info): Remove.
4250 (alloc_rust_variant): New function.
4251 (quirk_rust_enum): Update.
4252 (dwarf2_add_field): Set "offset" member. Don't handle
4253 DW_TAG_variant_part.
4254 (offset_map_type): New typedef.
4255 (convert_variant_range, create_one_variant)
4256 (create_one_variant_part, create_variant_parts)
4257 (add_variant_property): New functions.
4258 (dwarf2_attach_fields_to_type): Call add_variant_property.
4259 (read_structure_type): Don't handle DW_TAG_variant_part.
4260 (handle_variant_part, handle_variant): New functions.
4261 (handle_struct_member_die): Use them.
4262 (process_structure_scope): Don't handle variant parts.
4263 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4264 (struct discriminant_info): Remove.
4265 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4266 (struct main_type) <flag_discriminated_union>: Remove.
4267 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4268 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4269 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4270 Update.
4271 * valops.c (value_union_variant): Remove.
4272 * value.h (value_union_variant): Don't declare.
4273
b249d2c2
TT
42742020-04-24 Tom Tromey <tromey@adacore.com>
4275
4276 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4277 (ada_value_primitive_packed_val): Update.
4278 * ada-valprint.c (ada_value_print_1): Update.
4279 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4280 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4281 just an address. Use evaluate_for_locexpr_baton.
4282 (dwarf2_evaluate_property): Update.
4283 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4284 array_view.
4285 * findvar.c (default_read_var_value): Update.
4286 * gdbtypes.c (compute_variant_fields_inner)
4287 (resolve_dynamic_type_internal): Update.
4288 (resolve_dynamic_type): Change type of valaddr parameter.
4289 * gdbtypes.h (resolve_dynamic_type): Update.
4290 * valarith.c (value_subscripted_rvalue): Update.
4291 * value.c (value_from_contents_and_address): Update.
4292
61122aa9
TT
42932020-04-24 Tom Tromey <tromey@adacore.com>
4294
4295 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4296 "push_initial_value" parameter.
4297 (dwarf2_evaluate_property): Likewise.
4298 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4299
ef83a141
TT
43002020-04-24 Tom Tromey <tromey@adacore.com>
4301
4302 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4303 (variant::matches, compute_variant_fields_recurse)
4304 (compute_variant_fields_inner, compute_variant_fields): New
4305 functions.
4306 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4307 Use resolved_type after type is made.
4308 (operator==): Add new cases.
4309 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4310 (struct discriminant_range, struct variant, struct variant_part):
4311 New.
4312 (union dynamic_prop_data) <variant_parts, original_type>: New
4313 members.
4314 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4315 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4316 constants.
4317 * value.c (unpack_bits_as_long): Now public.
4318 * value.h (unpack_bits_as_long): Declare.
4319
675127ec
TT
43202020-04-24 Tom Tromey <tromey@adacore.com>
4321
4322 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4323 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4324
9852ceef
HD
43252020-04-24 Hannes Domani <ssbssa@yahoo.de>
4326
4327 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4328
7632c6ce
KR
43292020-04-24 Kamil Rytarowski <n54@gmx.com>
4330
4331 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4332 (remove_fork_catchpoint, post_startup_inferior)
4333 (post_attach): Move...
4334 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4335 (remove_fork_catchpoint, post_startup_inferior)
4336 (post_attach): ...here.
4337 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4338 (remove_fork_catchpoint, post_startup_inferior)
4339 (post_attach): Move...
4340 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4341 (remove_fork_catchpoint, post_startup_inferior)
4342 (post_attach): ...here.
4343
7be2bb4f
TT
43442020-04-24 Tom Tromey <tromey@adacore.com>
4345
4346 * nat/windows-nat.h (struct windows_thread_info)
4347 <pc_adjusted>: New member.
4348 * windows-nat.c (windows_fetch_one_register): Check
4349 pc_adjusted.
4350 (windows_nat_target::get_windows_debug_event)
4351 (windows_nat_target::wait): Set pc_adjusted.
4352
f80cb3b4
TV
43532020-04-24 Tom de Vries <tdevries@suse.de>
4354
4355 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4356 Run gdb-add-index inside temp dir.
4357
29514b87
TT
43582020-04-23 Tom Tromey <tromey@adacore.com>
4359
4360 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4361 in loop.
4362
5939967b
LM
43632020-04-23 Luis Machado <luis.machado@linaro.org>
4364
4365 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4366 get_frame_register instead of gdbarch_unwind_pc.
4367
70bc38f5
TV
43682020-04-23 Tom de Vries <tdevries@suse.de>
4369
4370 * symtab.c (lookup_global_symbol): Prefer def over decl.
4371
de82891c
TV
43722020-04-23 Tom de Vries <tdevries@suse.de>
4373
4374 PR symtab/25807
4375 * block.c (best_symbol, better_symbol): Promote to external.
4376 * block.h (best_symbol, better_symbol): Declare.
4377 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4378 decl.
4379
ecc6c606
TT
43802020-04-23 Tom Tromey <tromey@adacore.com>
4381
4382 PR ada/25837:
4383 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4384 "const char *", not a "const std::string &".
4385 <name_and_matcher::operator==>: Update.
4386 * unittests/lookup_name_info-selftests.c: Change type of
4387 "result".
4388
740480b8
TT
43892020-04-23 Tom Tromey <tom@tromey.com>
4390
4391 * inferior.h (iterate_over_inferiors): Don't declare.
4392 * inferior.c (iterate_over_inferiors): Remove.
4393 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4394 Remove.
4395 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4396 use iterate_over_inferiors.
4397 (darwin_resume_inferior_it)
4398 (struct resume_inferior_threads_param)
4399 (darwin_resume_inferior_threads_it): Remove.
4400 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4401
ae3ab1f0
TV
44022020-04-23 Tom de Vries <tdevries@suse.de>
4403
4404 * blockframe.c (find_pc_partial_function): Use
4405 find_pc_sect_compunit_symtab rather than
4406 objfile->sf->qf->find_pc_sect_compunit_symtab.
4407
317d2668
TV
44082020-04-22 Tom de Vries <tdevries@suse.de>
4409
4410 PR symtab/25764
4411 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4412 in psymtabs.
4413
eea9e357
TV
44142020-04-22 Tom de Vries <tdevries@suse.de>
4415
4416 PR symtab/25801
4417 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4418 symtabs.
4419
3d5afab3
TV
44202020-04-22 Tom de Vries <tdevries@suse.de>
4421
4422 PR symtab/25700
4423 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4424 CU if already created.
4425
d43b7a2d
TBA
44262020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4427
4428 * infrun.c (displaced_step_fixup): Switch to the event_thread
4429 before calling displaced_step_restore, not after.
4430
d89edf9b
MM
44312020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4432
4433 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4434 its inferior is not recorded by us.
4435 (record_btrace_target_open): Replace call to
4436 all_non_exited_threads () with call to current_inferior
4437 ()->non_exited_threads ().
4438 (record_btrace_target::stop_recording): Likewise.
4439 (record_btrace_target::close): Likewise.
4440 (record_btrace_target::wait): Likewise.
4441 (record_btrace_target::record_stop_replaying): Likewise.
4442
5897fd49
MM
44432020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4444
4445 * btrace.c (btrace_enable): Throw an error on double enables and
4446 when enabling recording fails.
4447 (btrace_disable): Throw an error if the thread is not recorded.
4448
1a476b6d
MM
44492020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4450
4451 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4452 request if we do not have a thread_info.
4453
4778a5f8
TV
44542020-04-21 Tom de Vries <tdevries@suse.de>
4455
4456 PR gdb/25471
4457 * thread.c
4458 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4459 exception in get_frame_id.
4460
0fa7617d
TT
44612020-04-20 Tom Tromey <tromey@adacore.com>
4462
4463 * python/python.c (struct gdbpy_event): Mark move constructor as
4464 noexcept.
4465 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4466 constructor as noexcept.
4467 * completer.h (struct completion_result): Mark move constructor as
4468 noexcept.
4469 * completer.c (completion_result::completion_result): Use
4470 initialization style. Don't call reset_match_list.
4471
ad23bda0
MS
44722020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4473
4474 * MAINTAINERS (Write After Approval): Add myself.
4475
45e1f031
TT
44762020-04-18 Tom Tromey <tom@tromey.com>
4477
4478 * windows-tdep.c (init_w32_command_list)
4479 (w32_prefix_command_valid): Restore.
4480 (_initialize_windows_tdep): Call init_w32_command_list.
4481
08feed99
TT
44822020-04-18 Tom Tromey <tom@tromey.com>
4483
4484 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4485 * value.c (value_fn_field): Update.
4486 * valops.c (find_function_in_inferior)
4487 (value_allocate_space_in_inferior): Update.
4488 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4489 Update.
4490 * tui/tui-source.c (tui_source_window::set_contents): Update.
4491 * symtab.c (lookup_global_or_static_symbol)
4492 (find_function_start_sal_1, skip_prologue_sal)
4493 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4494 * symmisc.c (dump_msymbols, dump_symtab_1)
4495 (maintenance_print_one_line_table): Update.
4496 * symfile.c (init_entry_point_info, section_is_mapped)
4497 (list_overlays_command, simple_read_overlay_table)
4498 (simple_overlay_update_1): Update.
4499 * stap-probe.c (handle_stap_probe): Update.
4500 * stabsread.c (dbx_init_float_type, define_symbol)
4501 (read_one_struct_field, read_enum_type, read_range_type): Update.
4502 * source.c (info_line_command): Update.
4503 * python/python.c (gdbpy_source_objfile_script)
4504 (gdbpy_execute_objfile_script): Update.
4505 * python/py-type.c (save_objfile_types): Update.
4506 * python/py-objfile.c (py_free_objfile): Update.
4507 * python/py-inferior.c (python_new_objfile): Update.
4508 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4509 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4510 (maintenance_check_psymtabs): Update.
4511 * printcmd.c (info_address_command): Update.
4512 * objfiles.h (struct objfile) <arch>: New method, from
4513 get_objfile_arch.
4514 (get_objfile_arch): Don't declare.
4515 * objfiles.c (get_objfile_arch): Remove.
4516 (filter_overlapping_sections): Update.
4517 * minsyms.c (msymbol_is_function): Update.
4518 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4519 (output_nondebug_symbol): Update.
4520 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4521 (mdebug_expand_psymtab): Update.
4522 * machoread.c (macho_add_oso_symfile): Update.
4523 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4524 Update.
4525 * linux-fork.c (checkpoint_command): Update.
4526 * linespec.c (convert_linespec_to_sals): Update.
4527 * jit.c (finalize_symtab): Update.
4528 * infrun.c (insert_exception_resume_from_probe): Update.
4529 * ia64-tdep.c (ia64_find_unwind_table): Update.
4530 * hppa-tdep.c (internalize_unwinds): Update.
4531 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4532 Update.
4533 * gcore.c (call_target_sbrk): Update.
4534 * elfread.c (record_minimal_symbol, elf_symtab_read)
4535 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4536 (elf_gnu_ifunc_resolve_by_got): Update.
4537 * dwarf2/read.c (create_addrmap_from_index)
4538 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4539 (read_debug_names_from_section)
4540 (process_psymtab_comp_unit_reader, add_partial_symbol)
4541 (add_partial_subprogram, process_full_comp_unit)
4542 (read_file_scope, read_func_scope, read_lexical_block_scope)
4543 (read_call_site_scope, dwarf2_ranges_read)
4544 (dwarf2_record_block_ranges, dwarf2_add_field)
4545 (mark_common_block_symbol_computed, read_tag_pointer_type)
4546 (read_tag_string_type, dwarf2_init_float_type)
4547 (dwarf2_init_complex_target_type, read_base_type)
4548 (partial_die_info::read, partial_die_info::read)
4549 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4550 (dwarf2_fetch_die_loc_sect_off): Update.
4551 * dwarf2/loc.c (dwarf2_find_location_expression)
4552 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4553 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4554 (dwarf2_loc_desc_get_symbol_read_needs)
4555 (locexpr_describe_location_piece, locexpr_describe_location_1)
4556 (loclist_describe_location): Update.
4557 * dwarf2/index-write.c (write_debug_names): Update.
4558 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4559 * dtrace-probe.c (dtrace_process_dof): Update.
4560 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4561 (process_one_symbol): Update.
4562 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4563 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4564 (coff_read_enum_type): Update.
4565 * cli/cli-cmds.c (edit_command, list_command): Update.
4566 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4567 * breakpoint.c (create_overlay_event_breakpoint)
4568 (create_longjmp_master_breakpoint)
4569 (create_std_terminate_master_breakpoint)
4570 (create_exception_master_breakpoint, get_sal_arch): Update.
4571 * block.c (block_gdbarch): Update.
4572 * annotate.c (annotate_source_line): Update.
4573
0743fc83
TT
45742020-04-17 Tom Tromey <tromey@adacore.com>
4575
4576 * auto-load.c (show_auto_load_cmd): Remove.
4577 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4578 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4579 (maintenance_print_arc_command): Remove.
4580 * tui/tui-win.c (tui_command): Remove.
4581 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4582 * tui/tui-layout.c (tui_layout_command): Remove.
4583 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4584 * python/python.c (user_set_python, user_show_python): Remove.
4585 (_initialize_python): Use add_basic_prefix_cmd,
4586 add_show_prefix_cmd.
4587 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4588 (install_gdb_commands): Use add_basic_prefix_cmd,
4589 add_show_prefix_cmd.
4590 (info_guile_command): Remove.
4591 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4592 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4593 add_show_prefix_cmd.
4594 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4595 Remove do_set and do_show parameters.
4596 * cli/cli-style.c (set_style, show_style): Remove.
4597 (_initialize_cli_style): Use add_basic_prefix_cmd,
4598 add_show_prefix_cmd.
4599 (cli_style_option::add_setshow_commands): Remove do_set and
4600 do_show parameters.
4601 (cli_style_option::add_setshow_commands): Use
4602 add_basic_prefix_cmd, add_show_prefix_cmd.
4603 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4604 (set_style_name): Remove.
4605 * cli/cli-dump.c (dump_command, append_command): Remove.
4606 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4607 (tekhex_dump_command, binary_dump_command)
4608 (binary_append_command): Remove.
4609 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4610 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4611 (init_w32_command_list): Remove; move into ...
4612 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4613 * valprint.c (set_print, show_print, set_print_raw)
4614 (show_print_raw): Remove.
4615 (_initialize_valprint): Use add_basic_prefix_cmd,
4616 add_show_prefix_cmd.
4617 * typeprint.c (set_print_type, show_print_type): Remove.
4618 (_initialize_typeprint): Use add_basic_prefix_cmd,
4619 add_show_prefix_cmd.
4620 * record.c (set_record_command, show_record_command): Remove.
4621 (_initialize_record): Use add_basic_prefix_cmd,
4622 add_show_prefix_cmd.
4623 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4624 add_show_prefix_cmd.
4625 (info_command, show_command, set_debug, show_debug): Remove.
4626 * top.h (set_history, show_history): Don't declare.
4627 * top.c (set_history, show_history): Remove.
4628 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4629 (unset_tdesc_cmd): Remove.
4630 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4631 add_show_prefix_cmd.
4632 * symtab.c (info_module_command): Remove.
4633 (_initialize_symtab): Use add_basic_prefix_cmd.
4634 * symfile.c (overlay_command): Remove.
4635 (_initialize_symfile): Use add_basic_prefix_cmd.
4636 * sparc64-tdep.c (info_adi_command): Remove.
4637 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4638 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4639 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4640 add_show_prefix_cmd.
4641 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4642 (_initialize_serial): Use add_basic_prefix_cmd,
4643 add_show_prefix_cmd.
4644 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4645 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4646 add_show_prefix_cmd.
4647 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4648 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4649 add_show_prefix_cmd.
4650 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4651 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4652 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4653 add_show_prefix_cmd.
4654 * remote.c (remote_command, set_remote_cmd): Remove.
4655 (_initialize_remote): Use add_basic_prefix_cmd.
4656 * record-full.c (set_record_full_command)
4657 (show_record_full_command): Remove.
4658 (_initialize_record_full): Use add_basic_prefix_cmd,
4659 add_show_prefix_cmd.
4660 * record-btrace.c (cmd_set_record_btrace)
4661 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4662 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4663 (cmd_show_record_btrace_pt): Remove.
4664 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4665 add_show_prefix_cmd.
4666 * ravenscar-thread.c (set_ravenscar_command)
4667 (show_ravenscar_command): Remove.
4668 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4669 add_show_prefix_cmd.
4670 * mips-tdep.c (show_mips_command, set_mips_command)
4671 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4672 add_show_prefix_cmd.
4673 * maint.c (maintenance_command, maintenance_info_command)
4674 (maintenance_check_command, maintenance_print_command)
4675 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4676 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4677 add_show_prefix_cmd.
4678 (show_per_command_cmd): Remove.
4679 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4680 Remove.
4681 (maintenance_show_test_settings_cmd): Remove.
4682 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4683 add_show_prefix_cmd.
4684 * maint-test-options.c (maintenance_test_options_command):
4685 Remove.
4686 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4687 * macrocmd.c (macro_command): Remove
4688 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4689 * language.c (set_check, show_check): Remove.
4690 (_initialize_language): Use add_basic_prefix_cmd,
4691 add_show_prefix_cmd.
4692 * infcmd.c (unset_command): Remove.
4693 (_initialize_infcmd): Use add_basic_prefix_cmd.
4694 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4695 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4696 add_show_prefix_cmd.
4697 * go32-nat.c (go32_info_dos_command): Remove.
4698 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4699 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4700 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4701 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4702 (_initialize_frame): Use add_basic_prefix_cmd,
4703 add_show_prefix_cmd.
4704 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4705 (_initialize_dcache): Use add_basic_prefix_cmd,
4706 add_show_prefix_cmd.
4707 * cp-support.c (maint_cplus_command): Remove.
4708 (_initialize_cp_support): Use add_basic_prefix_cmd.
4709 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4710 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4711 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4712 add_basic_prefix_cmd, add_show_prefix_cmd.
4713 * breakpoint.c (save_command): Remove.
4714 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4715 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4716 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4717 add_show_prefix_cmd.
4718 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4719 (set_ada_command, show_ada_command): Remove.
4720 (_initialize_ada_language): Use add_basic_prefix_cmd,
4721 add_show_prefix_cmd.
4722 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4723
3557f442
KR
47242020-04-16 Kamil Rytarowski <n54@gmx.com>
4725
4726 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4727 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4728
16197208
SM
47292020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4730
4731 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4732 warning messages.
4733
00ac85d3
SM
47342020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4735
4736 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4737 import table is not at beginning of .idata section.
4738
381ce63f
PA
47392020-04-16 Pedro Alves <palves@redhat.com>
4740
4741 * inferior.c (delete_inferior): Use delete operator directly
4742 instead of delete_program_space.
4743 * progspace.c (add_program_space): New, factored out from
4744 program_space::program_space.
4745 (remove_program_space): New, factored out from
4746 delete_program_space.
4747 (program_space::program_space): Remove intro comment. Rewrite.
4748 (program_space::~program_space): Remove intro comment. Call
4749 remove_program_space.
4750 (delete_program_space): Delete.
4751 * progspace.h (program_space::program_space): Make explicit. Move
4752 intro comment here, adjusted.
4753 (program_space::~program_space): Move intro comment here,
4754 adjusted.
4755 (delete_program_space): Remove.
4756
a010605f
TT
47572020-04-16 Tom Tromey <tromey@adacore.com>
4758
4759 * windows-nat.c (windows_nat::handle_access_violation): New
4760 function.
4761 * nat/windows-nat.h (handle_access_violation): Declare.
4762 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4763 windows-nat.c. Call handle_access_violation.
4764
efba5c23
TV
47652020-04-16 Tom de Vries <tdevries@suse.de>
4766
4767 PR symtab/25791
4768 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4769 CUs without psymtab.
4770
97ed802d
KB
47712020-04-16 Kevin Buettner <kevinb@redhat.com>
4772
4773 * python/python.c (do_start_initialization): Don't call
4774 PyEval_InitThreads for Python 3.9 and beyond.
4775
c7d64809
KR
47762020-04-15 Kamil Rytarowski <n54@gmx.com>
4777
4778 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4779 thread functions.
4780 (obsd_nat_target::wait): Likewise.
4781
ce127a96
TT
47822020-04-15 Tom Tromey <tromey@adacore.com>
4783
4784 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4785 (DEBUG_EXCEPT): Use debug_printf.
4786
99f1bc6a
AB
47872020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4788
4789 * completer.c (class completion_tracker::completion_hash_entry)
4790 <hash_name>: New member function.
4791 (completion_tracker::discard_completions): New callback to hash a
4792 completion_hash_entry, pass this to htab_create_alloc.
4793
a0e9b532
JT
47942016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4795
4796 * windows-nat.c (windows_make_so): Warn rather than stopping with
4797 an error if realpath() fails.
4798
06ca5dd4
KR
47992020-04-14 Kamil Rytarowski <n54@gmx.com>
4800
4801 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4802 (nbsd_nat_target::info_proc): Add do_status.
4803
194d088f
TV
48042020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4805 Tom de Vries <tdevries@suse.de>
4806
4807 PR symtab/25718
4808 * psympriv.h (struct partial_symtab::read_symtab)
4809 (struct partial_symtab::expand_psymtab)
4810 (struct partial_symtab::read_dependencies): Update comments.
4811 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4812 read_symtab for includer.
4813 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4814 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4815 (struct dwarf2_include_psymtab::m_readin): Remove.
4816 (struct dwarf2_include_psymtab::includer): New member function.
4817 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4818
c1a66c06
TV
48192020-04-14 Tom de Vries <tdevries@suse.de>
4820
4821 PR symtab/25720
4822 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4823 with NULL symbol_matcher and lookup_name.
4824 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4825 and lookup_name.
4826 * dwarf2/read.c (dw2_expand_symtabs_matching)
4827 (dw2_debug_names_expand_symtabs_matching): Same.
4828 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4829 Make lookup_name a pointer. Update comment.
4830 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4831 lookup_name being a pointer.
4832 * symfile.c (expand_symtabs_matching): Same.
4833 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4834 * linespec.c (iterate_over_all_matching_symtabs): Same.
4835
400b5eca
TT
48362020-04-13 Tom Tromey <tom@tromey.com>
4837
4838 * run-on-main-thread.c: Update include.
4839 * unittests/main-thread-selftests.c: Update include.
4840 * tui/tui-win.c: Update include.
4841 * tui/tui-io.c: Update include.
4842 * tui/tui-interp.c: Update include.
4843 * tui/tui-hooks.c: Update include.
4844 * top.h: Update include.
4845 * top.c: Update include.
4846 * ser-base.c: Update include.
4847 * remote.c: Update include.
4848 * remote-notif.c: Update include.
4849 * remote-fileio.c: Update include.
4850 * record-full.c: Update include.
4851 * record-btrace.c: Update include.
4852 * python/python.c: Update include.
4853 * posix-hdep.c: Update include.
4854 * mingw-hdep.c: Update include.
4855 * mi/mi-main.c: Update include.
4856 * mi/mi-interp.c: Update include.
4857 * main.c: Update include.
4858 * linux-nat.c: Update include.
4859 * interps.c: Update include.
4860 * infrun.c: Update include.
4861 * inf-loop.c: Update include.
4862 * event-top.c: Update include.
4863 * event-loop.c: Move to ../gdbsupport/.
4864 * event-loop.h: Move to ../gdbsupport/.
4865 * async-event.h: Update include.
4866 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4867
93b54c8e
TT
48682020-04-13 Tom Tromey <tom@tromey.com>
4869
4870 * tui/tui-win.c: Include async-event.h.
4871 * remote.c: Include async-event.h.
4872 * remote-notif.c: Include async-event.h.
4873 * record-full.c: Include async-event.h.
4874 * record-btrace.c: Include async-event.h.
4875 * infrun.c: Include async-event.h.
4876 * event-top.c: Include async-event.h.
4877 * event-loop.h: Move some declarations to async-event.h.
4878 * event-loop.c: Don't include ser-event.h or top.h. Move some
4879 code to async-event.c.
4880 * async-event.h: New file.
4881 * async-event.c: New file.
4882 * Makefile.in (COMMON_SFILES): Add async-event.c.
4883 (HFILES_NO_SRCDIR): Add async-event.h.
4884
c1cd3163
TT
48852020-04-13 Tom Tromey <tom@tromey.com>
4886
4887 * utils.c (flush_streams): New function.
4888 * event-loop.c (gdb_wait_for_event): Call flush_streams.
4889
29f2bf4f
TT
48902020-04-13 Tom Tromey <tom@tromey.com>
4891
4892 * event-loop.c (handle_file_event): Use warning, not
4893 printf_unfiltered.
4894
98029d02
TT
48952020-04-13 Tom Tromey <tom@tromey.com>
4896
4897 * event-loop.c: Include <chrono>.
4898
06cc9596
TT
48992020-04-13 Tom Tromey <tom@tromey.com>
4900
4901 * gdb_select.h: Move to ../gdbsupport/.
4902 * event-loop.c: Update include path.
4903 * top.c: Update include path.
4904 * ser-base.c: Update include path.
4905 * ui-file.c: Update include path.
4906 * ser-tcp.c: Update include path.
4907 * guile/scm-ports.c: Update include path.
4908 * posix-hdep.c: Update include path.
4909 * ser-unix.c: Update include path.
4910 * gdb_usleep.c: Update include path.
4911 * mingw-hdep.c: Update include path.
4912 * inflow.c: Update include path.
4913 * infrun.c: Update include path.
4914 * event-top.c: Update include path.
4915
8ae8e197
TT
49162020-04-13 Tom Tromey <tom@tromey.com>
4917
4918 * configure: Rebuild.
4919 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
4920
58cf28e8
TT
49212020-04-13 Tom Tromey <tom@tromey.com>
4922
4923 * event-loop.h (start_event_loop): Don't declare.
4924 * event-loop.c (start_event_loop): Move...
4925 * main.c (start_event_loop): ...here. Now static.
4926
b7f999ae
SDJ
49272020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
4928
4929 * MAINTAINERS: Update my email address.
4930
1085dfd4
KR
49312020-04-12 Kamil Rytarowski <n54@gmx.com>
4932
4933 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
4934 IP_ALL.
4935
49d1d1f5
KR
49362020-04-12 Kamil Rytarowski <n54@gmx.com>
4937
4938 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 4939 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 4940
b4848d2a
KR
49412020-04-12 Kamil Rytarowski <n54@gmx.com>
4942
4943 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 4944 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 4945
51c133d5
KR
49462020-04-12 Kamil Rytarowski <n54@gmx.com>
4947
4948 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
4949
54b8cbd0
KR
49502020-04-11 Kamil Rytarowski <n54@gmx.com>
4951
4952 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
4953 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
4954 (nbsd_nat_target::info_proc): New functions.
4955 * nbsd-nat.c (kinfo_get_vmmap): New function.
4956 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
4957 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
4958 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
4959 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
4960 functions.
4961 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
4962 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
4963 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
4964 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
4965 (KINFO_VME_FLAG_GROWS_DOWN): New.
4966
cf83625d
AS
49672020-04-10 Artur Shepilko <nomadbyte@gmail.com>
4968
4969 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
4970 bit shift.
4971
0c4311ab
TT
49722020-04-10 Tom Tromey <tromey@adacore.com>
4973
4974 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
4975
3e65b3e9
TT
49762020-04-10 Tom Tromey <tromey@adacore.com>
4977
4978 * symtab.c (get_symbol_address, get_msymbol_address): Skip
4979 separate debug files.
4980
13302e95
HD
49812020-04-10 Hannes Domani <ssbssa@yahoo.de>
4982
4983 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4984 Move to...
4985 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4986 ... here.
4987 * windows-nat.c (windows_nat_target::get_windows_debug_event):
4988 Check for STATUS_WX86_BREAKPOINT.
4989 (windows_nat_target::wait): Same.
4990
bdfc1e8a
TV
49912020-04-10 Tom de Vries <tdevries@suse.de>
4992
4993 PR cli/25808
4994 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
4995
f4460aec
SM
49962020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
4997
4998 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
4999 (Write After Approval): Remove Tom de Vries.
5000
a25198bb
BE
50012020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5002
5003 revert partially:
5004 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5005
aac66a4c
SM
5006 * buildsym.c (record_line): Fix undefined behavior and preserve
5007 lines at eof.
a25198bb 5008
206c98a6
KR
50092020-04-09 Kamil Rytarowski <n54@gmx.com>
5010
5011 * auxv.h (svr4_auxv_parse): New.
5012 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5013 and generic_auxv_parse.
5014 (svr4_auxv_parse): Add.
5015 * obsd-tdep.c: Include "auxv.h".
5016 (obsd_auxv_parse): Remove.
5017 (obsd_init_abi): Remove comment.
5018 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5019 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5020 * nbsd-tdep.c: Include "auxv.h".
5021 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5022
71fbdbaf
TT
50232020-04-08 Tom Tromey <tromey@adacore.com>
5024
5025 * nat/windows-nat.h (last_wait_event): Don't declare.
5026 (wait_for_debug_event): Update comment.
5027 * nat/windows-nat.c (last_wait_event): Now static.
5028
2c1d95e8
TT
50292020-04-08 Tom Tromey <tromey@adacore.com>
5030
5031 * windows-nat.c (wait_for_debug_event): Move to
5032 nat/windows-nat.c.
5033 * nat/windows-nat.h (wait_for_debug_event): Declare.
5034 * nat/windows-nat.c (wait_for_debug_event): Move from
5035 windows-nat.c. No longer static.
5036
d2977bc4
TT
50372020-04-08 Tom Tromey <tromey@adacore.com>
5038
5039 * windows-nat.c (get_windows_debug_event): Use
5040 fetch_pending_stop.
5041 * nat/windows-nat.h (fetch_pending_stop): Declare.
5042 * nat/windows-nat.c (fetch_pending_stop): New function.
5043
e758e19c
TT
50442020-04-08 Tom Tromey <tromey@adacore.com>
5045
5046 * windows-nat.c (windows_continue): Use matching_pending_stop and
5047 continue_last_debug_event.
5048 * nat/windows-nat.h (matching_pending_stop)
5049 (continue_last_debug_event): Declare.
5050 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5051 (matching_pending_stop, continue_last_debug_event): New
5052 functions.
5053
8d30e395
TT
50542020-04-08 Tom Tromey <tromey@adacore.com>
5055
5056 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5057 (handle_exception_result): Move to nat/windows-nat.h.
5058 (DEBUG_EXCEPTION_SIMPLE): Remove.
5059 (windows_nat::handle_ms_vc_exception): New function.
5060 (handle_exception): Move to nat/windows-nat.c.
5061 (get_windows_debug_event): Update.
5062 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5063 nat/windows-nat.c.
5064 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5065 (handle_exception_result): Move from windows-nat.c.
5066 (handle_exception): Declare.
5067 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5068 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5069 windows-nat.c.
5070
29de418d
TT
50712020-04-08 Tom Tromey <tromey@adacore.com>
5072
5073 * windows-nat.c (exception_count, event_count): Remove.
5074 (handle_exception, get_windows_debug_event)
5075 (do_initial_windows_stuff): Update.
5076
a816ba18
TT
50772020-04-08 Tom Tromey <tromey@adacore.com>
5078
5079 * windows-nat.c (windows_nat::handle_load_dll)
5080 (windows_nat::handle_unload_dll): Rename. No longer static.
5081 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5082 Declare.
5083
a00caa12
TT
50842020-04-08 Tom Tromey <tromey@adacore.com>
5085
5086 * complaints.h (stop_whining): Declare at top-level.
5087 (complaint): Don't declare stop_whining.
5088
d41b524f
TT
50892020-04-08 Tom Tromey <tromey@adacore.com>
5090
5091 * windows-nat.c (windows_nat::handle_output_debug_string):
5092 Rename. No longer static.
5093 * nat/windows-nat.h (handle_output_debug_string): Declare.
5094
3c76026d
TT
50952020-04-08 Tom Tromey <tromey@adacore.com>
5096
5097 * windows-nat.c (current_process_handle, current_process_id)
5098 (main_thread_id, last_sig, current_event, last_wait_event)
5099 (current_windows_thread, desired_stop_thread_id, pending_stops)
5100 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5101 (display_selectors, fake_create_process)
5102 (get_windows_debug_event): Update.
5103 * nat/windows-nat.h (current_process_handle, current_process_id)
5104 (main_thread_id, last_sig, current_event, last_wait_event)
5105 (current_windows_thread, desired_stop_thread_id, pending_stops)
5106 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5107 * nat/windows-nat.c (current_process_handle, current_process_id)
5108 (main_thread_id, last_sig, current_event, last_wait_event)
5109 (current_windows_thread, desired_stop_thread_id, pending_stops)
5110 (siginfo_er): New globals. Move from windows-nat.c.
5111
9d8679cc
TT
51122020-04-08 Tom Tromey <tromey@adacore.com>
5113
5114 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5115 (handle_load_dll): Update.
5116 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5117
28688adf
TT
51182020-04-08 Tom Tromey <tromey@adacore.com>
5119
5120 * windows-nat.c (enum thread_disposition_type): Move to
5121 nat/windows-nat.h.
5122 (windows_nat::thread_rec): Rename from thread_rec. No longer
5123 static.
5124 (windows_add_thread, windows_nat_target::fetch_registers)
5125 (windows_nat_target::store_registers, handle_exception)
5126 (windows_nat_target::resume, get_windows_debug_event)
5127 (windows_nat_target::get_tib_address)
5128 (windows_nat_target::thread_name)
5129 (windows_nat_target::thread_alive): Update.
5130 * nat/windows-nat.h (enum thread_disposition_type): Move from
5131 windows-nat.c.
5132 (thread_rec): Declare.
5133
4834dad0
TT
51342020-04-08 Tom Tromey <tromey@adacore.com>
5135
5136 * windows-nat.c: Add "using namespace".
5137 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5138 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5139
65bafd5b
TT
51402020-04-08 Tom Tromey <tromey@adacore.com>
5141
5142 * nat/windows-nat.h (struct windows_thread_info): Declare
5143 destructor.
5144 * nat/windows-nat.c (~windows_thread_info): New.
5145
0a4afda3
TT
51462020-04-08 Tom Tromey <tromey@adacore.com>
5147
5148 PR gdb/22992
5149 * windows-nat.c (current_event): Update comment.
5150 (last_wait_event, desired_stop_thread_id): New globals.
5151 (struct pending_stop): New.
5152 (pending_stops): New global.
5153 (windows_nat_target) <stopped_by_sw_breakpoint>
5154 <supports_stopped_by_sw_breakpoint>: New methods.
5155 (windows_fetch_one_register): Add assertions. Adjust PC.
5156 (windows_continue): Handle pending stops. Suspend other threads
5157 when stepping. Use last_wait_event
5158 (wait_for_debug_event): New function.
5159 (get_windows_debug_event): Use wait_for_debug_event. Handle
5160 pending stops. Queue spurious stops.
5161 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5162 (windows_nat_target::kill): Use wait_for_debug_event.
5163 * nat/windows-nat.h (struct windows_thread_info)
5164 <stopped_at_software_breakpoint>: New field.
5165 * nat/windows-nat.c (windows_thread_info::resume): Clear
5166 stopped_at_software_breakpoint.
5167
8e61ebec
TT
51682020-04-08 Tom Tromey <tromey@adacore.com>
5169
5170 * windows-nat.c (enum thread_disposition_type): New.
5171 (thread_rec): Replace "get_context" parameter with "disposition";
5172 change type.
5173 (windows_add_thread, windows_nat_target::fetch_registers)
5174 (windows_nat_target::store_registers, handle_exception)
5175 (windows_nat_target::resume, get_windows_debug_event)
5176 (windows_nat_target::get_tib_address)
5177 (windows_nat_target::thread_name)
5178 (windows_nat_target::thread_alive): Update.
5179
98a03287
TT
51802020-04-08 Tom Tromey <tromey@adacore.com>
5181
5182 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5183 (windows_continue): Use windows_continue::resume.
5184 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5185 resume>: Declare new methods.
5186 * nat/windows-nat.c: New file.
5187 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5188
7c7411bc
TT
51892020-04-08 Tom Tromey <tromey@adacore.com>
5190
5191 * windows-nat.c (windows_add_thread, windows_delete_thread)
5192 (windows_nat_target::fetch_registers)
5193 (windows_nat_target::store_registers, fake_create_process)
5194 (windows_nat_target::resume, windows_nat_target::resume)
5195 (get_windows_debug_event, windows_nat_target::wait)
5196 (windows_nat_target::pid_to_str)
5197 (windows_nat_target::get_tib_address)
5198 (windows_nat_target::get_ada_task_ptid)
5199 (windows_nat_target::thread_name)
5200 (windows_nat_target::thread_alive): Use lwp, not tid.
5201
2950fdf7
TT
52022020-04-08 Tom Tromey <tromey@adacore.com>
5203
5204 * windows-nat.c (handle_exception)
5205 (windows_nat_target::thread_name): Update.
5206 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5207 <name>: Now unique_xmalloc_ptr.
5208
62fe396b
TT
52092020-04-08 Tom Tromey <tromey@adacore.com>
5210
5211 * windows-nat.c (thread_rec)
5212 (windows_nat_target::fetch_registers): Update.
5213 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5214 Update comment.
5215 <debug_registers_changed, reload_context>: Now bool.
5216
e9534bd2
TT
52172020-04-08 Tom Tromey <tromey@adacore.com>
5218
5219 * windows-nat.c (windows_add_thread): Use new.
5220 (windows_init_thread_list, windows_delete_thread): Use delete.
5221 (get_windows_debug_event): Update.
5222 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5223 destructor, and initializers.
5224
ae1f8880
TT
52252020-04-08 Tom Tromey <tromey@adacore.com>
5226
5227 * windows-nat.c (struct windows_thread_info): Remove.
5228 * nat/windows-nat.h: New file.
5229
55a1e039
TT
52302020-04-08 Tom Tromey <tromey@adacore.com>
5231
5232 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5233 (thread_rec, windows_add_thread, windows_delete_thread)
5234 (windows_continue): Update.
5235
93366324
TT
52362020-04-08 Tom Tromey <tromey@adacore.com>
5237
5238 * windows-nat.c (struct windows_thread_info): Remove typedef.
5239 (thread_head): Remove.
5240 (thread_list): New global.
5241 (thread_rec, windows_add_thread, windows_init_thread_list)
5242 (windows_delete_thread, windows_continue): Update.
5243
0f2265e2
SM
52442020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5245
5246 * windows-tdep.h (windows_init_abi): Add comment.
5247 (cygwin_init_abi): New declaration.
5248 * windows-tdep.c: Split signal enumeration in two, one for
5249 Windows and one for Cygwin.
5250 (windows_gdb_signal_to_target): Only deal with signal of the
5251 Windows OS ABI.
5252 (cygwin_gdb_signal_to_target): New function.
5253 (windows_init_abi): Rename to windows_init_abi_common, don't set
5254 gdb_signal_to_target gdbarch method. Add new new function with
5255 this name.
5256 (cygwin_init_abi): New function.
5257 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5258 comment. Don't call windows_init_abi.
5259 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5260 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5261 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5262 i386_windows_init_abi_common, don't call windows_init_abi. Add
5263 a new function of this name.
5264 (i386_cygwin_init_abi): New function.
5265 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5266 OS ABI Cygwin.
5267
3810f182
SM
52682020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5269
5270 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5271 parameter.c.
5272 (dwarf2_read_gdb_index): Update.
5273
063f8e80
KR
52742020-04-07 Kamil Rytarowski <n54@gmx.com>
5275
5276 * nbsd-tdep.c: Include "objfiles.h".
5277 (nbsd_skip_solib_resolver): New.
5278 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5279
85a9510c 52802020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5281
5282 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5283 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5284 with DW_LLE_base_addressx are being emitted in DWARFv5.
5285 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5286 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5287 unsigned integer.
5288
9fc3eaae 52892020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5290
5291 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5292 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5293 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5294 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5295 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5296 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5297 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5298
5299
41144253 53002020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5301
5302 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5303 (read_loclist_index): New function definition.
5304 (lookup_loclist_base): New function definition.
5305 (read_loclist_header): New function definition.
5306 (dwarf2_cu): Add loclist_base and loclist_header field.
5307 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5308 (read_full_die_1): Read the value of DW_AT_loclists_base.
5309 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5310 (read_attribute_value): Handle DW_FORM_loclistx.
5311 (skip_one_die): Handle DW_FORM_loclistx.
5312 (loclist_header): New structure declaration.
5313 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5314
9f4e76a4
SM
53152020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5316
5317 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5318 constructor. Remove `addr` parameter from other constructor and
5319 add `per_cu` parameter.
5320 * dwarf2/read.c (create_partial_symtab): Update.
5321
25c11aca
TV
53222020-04-07 Tom de Vries <tdevries@suse.de>
5323
5324 PR symtab/25796
5325 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5326 (partial_die_info::fixup): Inherit has_const_value.
5327
5707e24b
TV
53282020-04-07 Tom de Vries <tdevries@suse.de>
5329
5330 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5331 symbols without address.
5332
05f00e22
KR
53332020-04-06 Kamil Rytarowski <n54@gmx.com>
5334
5335 * nbsd-nat.h (struct thread_info): Add forward declaration.
5336 (nbsd_nat_target::thread_alive): Add.
5337 (nbsd_nat_target::thread_name): Likewise.
5338 (nbsd_nat_target::update_thread_list): Likewise.
5339 (update_thread_list::post_attach): Likewise.
5340 (post_attach::pid_to_str): Likewise.
5341 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5342 (nbsd_thread_lister): Add.
5343 (nbsd_nat_target::thread_alive): Likewise.
5344 (nbsd_nat_target::thread_name): Likewise.
5345 (nbsd_add_threads): Likewise.
5346 (update_thread_list::post_attach): Likewise.
5347 (nbsd_nat_target::update_thread_list): Likewise.
5348 (post_attach::pid_to_str): Likewise.
5349
6ee448cc
TT
53502020-04-06 Tom Tromey <tromey@adacore.com>
5351
5352 * ada-valprint.c (print_variant_part): Extract the variant field.
5353 (print_field_values): Use the field as the outer value when
5354 recursing.
5355
dea34e8c
TT
53562020-04-06 Tom Tromey <tromey@adacore.com>
5357
5358 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5359 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5360 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5361 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5362 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5363
93689ce9
TT
53642020-04-06 Tom Tromey <tromey@adacore.com>
5365
5366 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5367 TYPE_CODE_ERROR.
5368
79743962
KR
53692020-04-06 Kamil Rytarowski <n54@gmx.com>
5370
5371 * nbsd-tdep.c: Include "gdbarch.h".
5372 Define enum with NetBSD signal numbers.
5373 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5374 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5375 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5376 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5377 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5378 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5379 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5380 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5381 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5382 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5383 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5384 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5385
9e7c9a03
HD
53862020-04-03 Hannes Domani <ssbssa@yahoo.de>
5387
5388 PR gdb/25325
5389 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5390
d9e49b61
TT
53912020-04-03 Tom Tromey <tromey@adacore.com>
5392
5393 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5394 Read constant block.
5395
e0fc5c3f
SM
53962020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5397
5398 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5399 (gdb_bfd_get_full_section_contents): New declaration.
5400 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5401 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5402 gdb_bfd_get_full_section_contents.
5403
e2ff18a0
SM
54042020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5405
5406 * exec.c (build_section_table): Replace internal_error with
5407 gdb_assert.
5408 (section_table_xfer_memory_partial): Likewise.
5409 * mdebugread.c (parse_partial_symbols): Likewise.
5410 * psymtab.c (lookup_partial_symbol): Likewise.
5411 * utils.c (wrap_here): Likewise.
5412
0830d301
TT
54132020-04-02 Tom Tromey <tromey@adacore.com>
5414
5415 * f-lang.c (build_fortran_types): Use arch_type to initialize
5416 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5417
e7da7f8f
TT
54182020-04-02 Tom Tromey <tromey@adacore.com>
5419
5420 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5421 of attributes.
5422
c90d28ac
AB
54232020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5424 Bernd Edlinger <bernd.edlinger@hotmail.de>
5425 Tom Tromey <tromey@adacore.com>
5426
5427 * buildsym.c (buildsym_compunit::record_line): Remove
5428 deduplication code.
5429
1aa98955
TV
54302020-04-02 Tom de Vries <tdevries@suse.de>
5431
5432 PR ada/24671
5433 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5434
d3214198
TV
54352020-04-02 Tom de Vries <tdevries@suse.de>
5436
5437 * dwarf2/read.c (dwarf2_gdb_index_functions,
5438 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5439 NULL.
5440 * psymtab.c (psym_lookup_global_symbol_language): New function.
5441 (psym_functions): Init psym_lookup_global_symbol_language with
5442 psym_lookup_global_symbol_language.
5443 * symfile-debug.c (debug_sym_quick_functions): Init
5444 lookup_global_symbol_language with NULL.
5445 * symfile.c (set_initial_language): Remove fixme comment.
5446 * symfile.h (struct quick_symbol_functions): Add
5447 lookup_global_symbol_language.
5448 * symtab.c (find_quick_global_symbol_language): New function.
5449 (find_main_name): Use find_quick_global_symbol_language.
5450
2836752f
SM
54512020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5452
5453 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5454
64dc2d4b
BE
54552020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5456
5457 * buildsym.c (record_line): Fix undefined behavior and preserve
5458 lines at eof.
5459
bbe3dc41
BE
54602020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5461
5462 * buildsym.c (record_line): Fix the resizing condition.
5463
6b4a335b
TT
54642020-04-01 Tom Tromey <tom@tromey.com>
5465
5466 * value.h (value_literal_complex): Add comment.
5467 * valops.c (value_literal_complex): Refer to value.h.
5468
3638a098
TT
54692020-04-01 Tom Tromey <tom@tromey.com>
5470
5471 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5472 (scalar_type): New rule, from typebase.
5473 (typebase): Use scalar_type. Recognize complex types.
5474 (field_name): Handle FLOAT_KEYWORD.
5475 (ident_tokens): Add _Complex and __complex__.
5476
c34e8714
TT
54772020-04-01 Tom Tromey <tom@tromey.com>
5478
5479 PR exp/25299:
5480 * valarith.c (promotion_type, complex_binop): New functions.
5481 (scalar_binop): Handle complex numbers. Use promotion_type.
5482 (value_pos, value_neg, value_complement): Handle complex numbers.
5483
fa649bb7
TT
54842020-04-01 Tom Tromey <tom@tromey.com>
5485
5486 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5487 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5488 (parse_number): Handle complex numbers.
5489
981c08ce
TT
54902020-04-01 Tom Tromey <tom@tromey.com>
5491
5492 * c-valprint.c (c_decorations): Change complex suffix to "i".
5493
4c99290d
TT
54942020-04-01 Tom Tromey <tom@tromey.com>
5495
5496 * valprint.c (generic_value_print_complex): Use accessors.
5497 * value.h (value_real_part, value_imaginary_part): Declare.
5498 * valops.c (value_real_part, value_imaginary_part): New
5499 functions.
5500 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5501
5b930b45
TT
55022020-04-01 Tom Tromey <tom@tromey.com>
5503
5504 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5505 (read_range_type): Update.
5506 * mdebugread.c (basic_type): Update.
5507 * go-lang.c (build_go_types): Use init_complex_type.
5508 * gdbtypes.h (struct main_type) <complex_type>: New member.
5509 (init_complex_type): Update.
5510 (arch_complex_type): Don't declare.
5511 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5512 Make name if none given. Use alloc_type_copy. Look for cached
5513 complex type.
5514 (arch_complex_type): Remove.
5515 (gdbtypes_post_init): Use init_complex_type.
5516 * f-lang.c (build_fortran_types): Use init_complex_type.
5517 * dwarf2/read.c (read_base_type): Update.
5518 * d-lang.c (build_d_types): Use init_complex_type.
5519 * ctfread.c (read_base_type): Update.
5520
53cccef1
TBA
55212020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5522
5523 * infrun.c (stop_all_threads): Update assertion, plus when
5524 stopping threads, take into account that we might be trying
5525 to stop an all-stop target.
5526 (stop_waiting): Call 'stop_all_threads' if there exists a
5527 non-stop target.
5528
a0714d30
TBA
55292020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5530
5531 * target.h (exists_non_stop_target): New function declaration.
5532 * target.c (exists_non_stop_target): New function.
5533
60e22c1e
HD
55342020-04-01 Hannes Domani <ssbssa@yahoo.de>
5535
5536 PR gdb/24789
5537 * eval.c (is_integral_or_integral_reference): New function.
5538 (evaluate_subexp_standard): Allow integer references in
5539 pointer arithmetic.
5540
e139a727
TBA
55412020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5542
5543 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5544 check for no ptid in the stop reply when the target is non-stop.
5545
e0802d59
TT
55462020-04-01 Tom Tromey <tromey@adacore.com>
5547
5548 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5549 "name" parameter to rvalue reference. Initialize m_name_holder.
5550 <lookup_name_info>: New overloads.
5551 <name>: Return gdb::string_view.
5552 <c_str>: New method.
5553 <make_ignore_params>: Update.
5554 <search_name_hash>: Update.
5555 <language_lookup_name>: Return const char *.
5556 <m_name>: Change type.
5557 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5558 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5559 (lookup_name_info::match_any): Update.
5560 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5561 Update.
5562 * minsyms.c (linkage_name_str): Update.
5563 * language.c (default_symbol_name_matcher): Update.
5564 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5565 Update.
5566 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5567 (ada_lookup_name_info::ada_lookup_name_info): Update.
5568 (literal_symbol_name_matcher): Update.
5569
8c072cb6
TT
55702020-04-01 Tom Tromey <tromey@adacore.com>
5571
5572 * psymtab.c (psymtab_search_name): Remove function.
5573 (psym_lookup_symbol): Create search name and lookup name here.
5574 (lookup_partial_symbol): Remove "name" parameter; add
5575 lookup_name.
5576 (psym_expand_symtabs_for_function): Update.
5577
6f29a534
TT
55782020-03-31 Joel Jones <joelkevinjones@gmail.com>
5579
5580 PR tui/25597:
5581 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5582
af62665e
TT
55832020-03-31 Tom Tromey <tromey@adacore.com>
5584
5585 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5586 memcpy.
5587
d1a89da5
NC
55882020-03-30 Nelson Chu <nelson.chu@sifive.com>
5589
5590 * features/riscv/32bit-csr.xml: Regenerated.
5591 * features/riscv/64bit-csr.xml: Regenerated.
5592
d8af9068
TT
55932020-03-30 Tom Tromey <tromey@adacore.com>
5594
5595 * ada-valprint.c (print_variant_part): Update.
5596 * ada-lang.h (ada_which_variant_applies): Update.
5597 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5598 outer_valaddr parameters; replace with "outer" value parameter.
5599 (to_fixed_variant_branch_type): Update.
5600
227c0bf4
PFC
56012020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5602
5603 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5604 <list>. Remove inclusion of observable.h.
5605 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5606 (struct arch_lwp_info): New struct.
5607 (class ppc_linux_dreg_interface): New class.
5608 (struct ppc_linux_process_info): New struct.
5609 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5610 <low_new_clone, low_forget_process, low_prepare_to_resume>
5611 <copy_thread_dreg_state, mark_thread_stale>
5612 <mark_debug_registers_changed, register_hw_breakpoint>
5613 <clear_hw_breakpoint, register_wp, clear_wp>
5614 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5615 <num_memory_accesses, get_trigger_type>
5616 <create_watchpoint_request, hwdebug_point_cmp>
5617 <init_arch_lwp_info, get_arch_lwp_info>
5618 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5619 methods.
5620 <struct ptid_hash>: New inner struct.
5621 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5622 members.
5623 (saved_dabr_value, hwdebug_info, max_slots_number)
5624 (struct hw_break_tuple, struct thread_points, ppc_threads)
5625 (have_ptrace_hwdebug_interface)
5626 (hwdebug_find_thread_points_by_tid)
5627 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5628 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5629 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5630 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5631 use m_dreg_interface.
5632 (hwdebug_point_cmp): Change to...
5633 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5634 reference arguments instead of pointers.
5635 (ppc_linux_nat_target::ranged_break_num_registers): Use
5636 m_dreg_interface.
5637 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5638 m_dreg_interface. Call register_hw_breakpoint.
5639 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5640 m_dreg_interface. Call clear_hw_breakpoint.
5641 (get_trigger_type): Change to...
5642 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5643 comment.
5644 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5645 use m_dreg_interface. Call register_hw_breakpoint.
5646 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5647 use m_dreg_interface. Call clear_hw_breakpoint.
5648 (can_use_watchpoint_cond_accel): Change to...
5649 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5650 method. Update comment, use m_dreg_interface and
5651 m_process_info.
5652 (calculate_dvc): Change to...
5653 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5654 m_dreg_interface.
5655 (num_memory_accesses): Change to...
5656 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5657 (check_condition): Change to...
5658 (ppc_linux_nat_target::check_condition): ...this method.
5659 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5660 comment, use m_dreg_interface.
5661 (create_watchpoint_request): Change to...
5662 (ppc_linux_nat_target::create_watchpoint_request): ...this
5663 method. Use m_dreg_interface.
5664 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5665 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5666 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5667 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5668 (ppc_linux_nat_target::low_forget_process)
5669 (ppc_linux_nat_target::low_new_fork)
5670 (ppc_linux_nat_target::low_new_clone)
5671 (ppc_linux_nat_target::low_delete_thread)
5672 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5673 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5674 only call mark_thread_stale.
5675 (ppc_linux_thread_exit): Remove.
5676 (ppc_linux_nat_target::stopped_data_address): Change to...
5677 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5678 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5679 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5680 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5681 comment. Call low_stopped_data_address.
5682 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5683 m_dreg_interface.
5684 (ppc_linux_nat_target::masked_watch_num_registers): Use
5685 m_dreg_interface.
5686 (ppc_linux_nat_target::copy_thread_dreg_state)
5687 (ppc_linux_nat_target::mark_thread_stale)
5688 (ppc_linux_nat_target::mark_debug_registers_changed)
5689 (ppc_linux_nat_target::register_hw_breakpoint)
5690 (ppc_linux_nat_target::clear_hw_breakpoint)
5691 (ppc_linux_nat_target::register_wp)
5692 (ppc_linux_nat_target::clear_wp)
5693 (ppc_linux_nat_target::init_arch_lwp_info)
5694 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5695 (_initialize_ppc_linux_nat): Remove observer callback.
5696
4db10d8f
PFC
56972020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5698
5699 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5700 (ppc_linux_nat_target::auxv_parse)
5701 (ppc_linux_nat_target::read_description)
5702 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5703 Move up.
5704
1310c1b0
PFC
57052020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5706
5707 * linux-nat.h (low_new_clone): New method.
5708 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5709
69b037c3
SM
57102020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5711
5712 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5713 (dbx_expand_psymtab): ... this.
5714 (start_psymtab): Update.
5715 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5716 (mdebug_expand_psymtab): ... this.
5717 (parse_partial_symbols): Update.
5718 (new_psymtab): Update.
5719 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5720 (xcoff_expand_psymtab): ... this.
5721 (xcoff_start_psymtab): Update.
5722
48993951
SM
57232020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5724
5725 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5726 <expand_dependencies>: ... this.
5727 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5728 (partial_symtab::expand_dependencies): ... this.
5729 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5730 Update.
5731 (dwarf2_psymtab::expand_psymtab): Update.
5732 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5733 * mdebugread.c (psymtab_to_symtab_1): Update.
5734 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5735
3ad83046
SM
57362020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5737
5738 * psympriv.h (discard_psymtab): Remove.
5739 * dbxread.c (dbx_end_psymtab): Update.
5740 * xcoffread.c (xcoff_end_psymtab): Update.
5741
4d1b9ab6
TT
57422020-03-28 Tom Tromey <tom@tromey.com>
5743
5744 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5745 comment.
5746
f1749218
TT
57472020-03-28 Tom Tromey <tom@tromey.com>
5748
5749 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5750
ebea7626
HD
57512020-03-27 Hannes Domani <ssbssa@yahoo.de>
5752
5753 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5754
a879b4d5
JB
57552020-03-26 John Baldwin <jhb@FreeBSD.org>
5756
5757 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5758
0826b30a
TT
57592020-03-26 Tom Tromey <tom@tromey.com>
5760
5761 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5762 (mark_common_block_symbol_computed, read_tag_string_type)
5763 (attr_to_dynamic_prop, read_subrange_type): Update.
5764 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5765 to be methods on struct attribute.
5766 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5767 (read_call_site_scope, partial_die_info::read)
5768 (partial_die_info::read, lookup_die_type, follow_die_ref):
5769 Update.
5770 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5771 from dwarf2_get_ref_die_offset.
5772 (attribute::constant_value): New method, from
5773 dwarf2_get_attr_constant_value.
5774 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5775 Declare method.
5776 <constant_value>: New method.
5777
2b2558bf
TT
57782020-03-26 Tom Tromey <tom@tromey.com>
5779
5780 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5781 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5782 (dwarf_type_encoding_name): Move to stringify.c.
5783 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5784 * dwarf2/stringify.c: New file.
5785 * dwarf2/stringify.h: New file.
5786
eeb64781
TT
57872020-03-26 Tom Tromey <tom@tromey.com>
5788
5789 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5790 Rewrite.
5791
a39fdb41
TT
57922020-03-26 Tom Tromey <tom@tromey.com>
5793
5794 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5795 methods.
5796 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5797 (lookup_ranges_base): Likewise.
5798 (read_cutu_die_from_dwo, read_full_die_1): Update.
5799
436c571c
TT
58002020-03-26 Tom Tromey <tom@tromey.com>
5801
5802 * dwarf2/read.c (read_import_statement, read_file_scope)
5803 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5804 (read_lexical_block_scope, read_call_site_scope)
5805 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5806 (handle_struct_member_die, process_structure_scope)
5807 (update_enumeration_type_from_children)
5808 (process_enumeration_scope, read_array_type, read_common_block)
5809 (read_namespace, read_module, read_subroutine_type): Update.
5810 (sibling_die): Remove.
5811
052c8bb8
TT
58122020-03-26 Tom Tromey <tom@tromey.com>
5813
5814 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5815 (build_type_psymtabs_reader, read_structure_type)
5816 (read_enumeration_type, read_full_die_1): Update.
5817 (dwarf2_attr_no_follow): Move to die.h.
5818 * dwarf2/die.h (struct die_info) <attr>: New method.
5819
2b24b6e4
TT
58202020-03-26 Tom Tromey <tom@tromey.com>
5821
5822 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5823 <base_address>: Now an optional.
5824 (dwarf2_find_base_address, dwarf2_rnglists_process)
5825 (dwarf2_ranges_process, fill_in_loclist_baton)
5826 (dwarf2_symbol_mark_computed): Update.
5827
c2d50fd0
TT
58282020-03-26 Tom Tromey <tom@tromey.com>
5829
5830 * dwarf2/read.c (struct die_info): Move to die.h.
5831 * dwarf2/die.h: New file.
5832
0df7ad3a
TT
58332020-03-26 Tom Tromey <tom@tromey.com>
5834
5835 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5836 * dwarf2/read.c
5837 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5838 Move to line-header.c.
5839 (read_checked_initial_length_and_offset, read_formatted_entries):
5840 Likewise.
5841 (dwarf_decode_line_header): Split into two.
5842 * dwarf2/line-header.c
5843 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5844 Move from read.c.
5845 (read_checked_initial_length_and_offset, read_formatted_entries):
5846 Likewise.
5847 (dwarf_decode_line_header): New function, split from read.c.
5848
86c0bb4c
TT
58492020-03-26 Tom Tromey <tom@tromey.com>
5850
5851 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5852 Declare method.
5853 * dwarf2/read.c (read_attribute_value): Update.
5854 (dwarf2_per_objfile::read_line_string): Rename from
5855 read_indirect_line_string.
5856 (read_formatted_entries): Update.
5857
2ef46c2f
TT
58582020-03-26 Tom Tromey <tom@tromey.com>
5859
5860 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5861 variable.
5862
4f9c1eda
TT
58632020-03-26 Tom Tromey <tom@tromey.com>
5864
5865 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5866 const.
5867 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5868 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5869 parameter const.
5870
5a0e026f
TT
58712020-03-26 Tom Tromey <tom@tromey.com>
5872
5873 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
5874 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
5875 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
5876 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
5877
8844c11b
TT
58782020-03-26 Tom Tromey <tom@tromey.com>
5879
5880 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
5881 file_names_size, file_full_name, file_file_name>: Use const.
5882 <file_name_at, file_names>: Add const overload.
5883 * dwarf2/line-header.c (line_header::file_file_name)
5884 (line_header::file_full_name): Update.
5885
c90ec28a
TT
58862020-03-26 Tom Tromey <tom@tromey.com>
5887
5888 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
5889 (macro_start_file, consume_improper_spaces)
5890 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
5891 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
5892 (dwarf_decode_macros): Move to macro.c.
5893 * dwarf2/macro.c: New file.
5894 * dwarf2/macro.h: New file.
5895 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
5896
4f44ae6c
TT
58972020-03-26 Tom Tromey <tom@tromey.com>
5898
5899 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
5900 method.
5901 * dwarf2/section.c: New method. From
5902 read_indirect_string_at_offset_from.
5903 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
5904 (read_indirect_string_at_offset_from): Move to section.c.
5905 (read_indirect_string_at_offset): Rewrite.
5906 (read_indirect_line_string_at_offset): Remove.
5907 (read_indirect_string, read_indirect_line_string)
5908 (dwarf_decode_macro_bytes): Update.
5909
a0194fa8
TT
59102020-03-26 Tom Tromey <tom@tromey.com>
5911
5912 * dwarf2/section.h (struct dwarf2_section_info)
5913 <overload_complaint>: Declare.
5914 (dwarf2_section_buffer_overflow_complaint): Don't declare.
5915 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
5916 Rename from dwarf2_section_buffer_overflow_complaint.
5917 * dwarf2/read.c (skip_one_die, partial_die_info::read)
5918 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
5919
3d27bbdb
TT
59202020-03-26 Tom Tromey <tom@tromey.com>
5921
5922 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
5923 Declare.
5924 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
5925 Move from read.c.
5926 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
5927 to section.c.
5928
9eac9650
TT
59292020-03-26 Tom Tromey <tom@tromey.com>
5930
5931 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
5932
bf80d710
TT
59332020-03-26 Tom Tromey <tom@tromey.com>
5934
5935 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
5936 "builder".
5937 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
5938 parameter.
5939 (dwarf_decode_macros): Update.
5940
0314b390
TT
59412020-03-26 Tom Tromey <tom@tromey.com>
5942
5943 * dwarf2/read.c (read_attribute_value): Update.
5944 (read_indirect_string_from_dwz): Move to dwz.c; change into
5945 method.
5946 (dwarf_decode_macro_bytes): Update.
5947 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
5948 * dwarf2/dwz.c: New file.
5949 * Makefile.in (COMMON_SFILES): Add dwz.c.
5950
9fda78b6
TT
59512020-03-26 Tom Tromey <tom@tromey.com>
5952
5953 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
5954 * dwarf2/read.c: Add include.
5955 * dwarf2/index-write.c: Add include.
5956 * dwarf2/index-cache.c: Add include.
5957 * dwarf2/dwz.h: New file.
5958
33aa3c10
TT
59592020-03-25 Tom Tromey <tom@tromey.com>
5960
5961 * compile/compile-object-load.c (get_out_value_type): Mention
5962 correct symbol name in error message.
5963
d503b685
HD
59642020-03-25 Hannes Domani <ssbssa@yahoo.de>
5965
5966 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5967
7b1eff95
TV
59682020-03-25 Tom de Vries <tdevries@suse.de>
5969
5970 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
5971 * symmisc.c (dump_symtab_1): Print user and includes fields.
5972 (maintenance_info_symtabs): Same.
5973
dd895392
AB
59742020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
5975
5976 PR gdb/25534
5977 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
5978 (riscv_regcache_cooked_write): New function.
5979 (riscv_push_dummy_call): Use new function.
5980 (riscv_return_value): Likewise.
5981
5ab2fbf1
SM
59822020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
5983
5984 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
5985 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
5986 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
5987 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
5988 * infrun.c (follow_fork): Likewise.
5989 (follow_fork_inferior): Likewise.
5990 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
5991 * linux-nat.h (class linux_nat_target): Likewise.
5992 * remote.c (class remote_target) <follow_fork>: Likewise.
5993 (remote_target::follow_fork): Likewise.
5994 * target-delegates.c: Re-generate.
5995 * target.c (default_follow_fork): Likewise.
5996 (target_follow_fork): Likewise.
5997 * target.h (struct target_ops) <follow_fork>: Likewise.
5998 (target_follow_fork): Likewise.
5999
a64fafb5
TV
60002020-03-24 Tom de Vries <tdevries@suse.de>
6001
6002 * psymtab.c (maintenance_info_psymtabs): Print user field.
6003
fe26d3a3
TT
60042020-03-20 Tom Tromey <tromey@adacore.com>
6005
6006 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6007 const.
6008 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6009 const.
6010
c884cc46
SM
60112020-03-20 Simon Marchi <simon.marchi@efficios.com>
6012
6013 * ptrace.m4: Don't check for ptrace declaration.
6014 * config.in: Re-generate.
6015 * configure: Re-generate.
6016 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6017 not defined.
6018
1ff700c2
KR
60192020-03-20 Kamil Rytarowski <n54@gmx.com>
6020
6021 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6022 `PTRACE_TYPE_RET'.
6023 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6024 * sparc-nat.c (gdb_ptrace): Likewise.
6025 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6026
f7d4f0b1
TT
60272020-03-20 Tom Tromey <tromey@adacore.com>
6028
6029 * c-exp.y (lex_one_token): Fix assert.
6030
f67210ff
TT
60312020-03-20 Tom Tromey <tromey@adacore.com>
6032
6033 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6034 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6035 strncpy call.
6036
1773be9e
TT
60372020-03-20 Tom Tromey <tromey@adacore.com>
6038
6039 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6040
70304be9
TT
60412020-03-20 Tom Tromey <tromey@adacore.com>
6042
6043 * ada-valprint.c (print_variant_part): Remove parameters; switch
6044 to value-based API.
6045 (print_field_values): Likewise.
6046 (ada_val_print_struct_union): Likewise.
6047 (ada_value_print_1): Update.
6048
9faa006d
KR
60492020-03-20 Kamil Rytarowski <n54@gmx.com>
6050
6051 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6052 nbsd_nat_target instead of inf_ptrace_target.
6053 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6054 nbsd_nat_target.
6055
4a90f062
KR
60562020-03-20 Kamil Rytarowski <n54@gmx.com>
6057
6058 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6059 it to the ptrace call.
6060 * (store_registers): Likewise.
6061
60622020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6063
6064 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6065 it to the ptrace call.
6066 * (store_registers): Likewise.
6067
2d07da27
LM
60682020-03-19 Luis Machado <luis.machado@linaro.org>
6069
6070 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6071 valid, fetch vg value from ptrace.
6072
f09db380
KR
60732020-03-19 Kamil Rytarowski <n54@gmx.com>
6074 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6075 * inf-ptrace.c: Likewise.
6076 * (gdb_ptrace): Add.
6077 * (inf_ptrace_target::resume): Update.
6078 * (inf_ptrace_target::xfer_partial): Likewise.
6079 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6080 * (inf_ptrace_peek_poke): Update.
6081
fcc7376e
KR
60822020-03-19 Kamil Rytarowski <n54@gmx.com>
6083
6084 * x86-bsd-nat.c (gdb_ptrace): New.
6085 * (x86bsd_dr_set): Add new argument `ptid'.
6086 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6087 x86bsd_dr_set_addr): Update.
6088
cada5fc9
AB
60892020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6090
6091 * remote.c (remote_target::process_stop_reply): Handle events for
6092 all threads differently.
6093
19a2740f
AB
60942020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6095
6096 * completer.c (completion_tracker::remove_completion): Define new
6097 function.
6098 * completer.h (completion_tracker::remove_completion): Declare new
6099 function.
6100 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6101 when adding a C++ function symbol.
6102
724fd9ba
AB
61032020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6104
6105 * completer.c (completion_tracker::completion_hash_entry): Define
6106 new class.
6107 (advance_to_filename_complete_word_point): Call
6108 recompute_lowest_common_denominator.
6109 (completion_tracker::completion_tracker): Call discard_completions
6110 to setup the hash table.
6111 (completion_tracker::discard_completions): Allow for being called
6112 from the constructor, pass new equal function, and element deleter
6113 when constructing the hash table. Initialise new class member
6114 variables.
6115 (completion_tracker::maybe_add_completion): Remove use of
6116 m_entries_vec, and store more information into m_entries_hash.
6117 (completion_tracker::recompute_lcd_visitor): New function, most
6118 content taken from...
6119 (completion_tracker::recompute_lowest_common_denominator):
6120 ...here, this now just visits each item in the hash calling the
6121 above visitor.
6122 (completion_tracker::build_completion_result): Remove use of
6123 m_entries_vec, call recompute_lowest_common_denominator.
6124 * completer.h (completion_tracker::have_completions): Remove use
6125 of m_entries_vec.
6126 (completion_tracker::completion_hash_entry): Declare new class.
6127 (completion_tracker::recompute_lowest_common_denominator): Change
6128 function signature.
6129 (completion_tracker::recompute_lcd_visitor): Declare new function.
6130 (completion_tracker::m_entries_vec): Delete.
6131 (completion_tracker::m_entries_hash): Initialize to NULL.
6132 (completion_tracker::m_lowest_common_denominator_valid): New
6133 member variable.
6134 (completion_tracker::m_lowest_common_denominator_max_length): New
6135 member variable.
6136
5a82b8a1
KR
61372020-03-17 Kamil Rytarowski <n54@gmx.com>
6138
6139 * regformats/regdef.h: Put reg in gdb namespace.
6140
fb516a69
KR
61412020-03-17 Kamil Rytarowski <n54@gmx.com>
6142
6143 * i386-bsd-nat.c (gdb_ptrace): New.
6144 * (i386bsd_fetch_inferior_registers,
6145 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6146 * (i386bsd_fetch_inferior_registers,
6147 i386bsd_store_inferior_registers) Use gdb_ptrace.
6148
1c0aa1fb
KR
61492020-03-17 Kamil Rytarowski <n54@gmx.com>
6150
6151 * amd64-bsd-nat.c (gdb_ptrace): New.
6152 * (amd64bsd_fetch_inferior_registers,
6153 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6154 * (amd64bsd_fetch_inferior_registers,
6155 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6156
5ccd2fb7
KR
61572020-03-17 Kamil Rytarowski <n54@gmx.com>
6158
6159 * user-regs.c (user_reg::read): Rename to...
6160 (user_reg::xread): ...this.
6161 * (append_user_reg): Rename argument `read' to `xread'.
6162 * (user_reg_add_builtin): Likewise.
6163 * (user_reg_add): Likewise.
6164 * (value_of_user_reg): Likewise.
6165
2108a63a
KR
61662020-03-17 Kamil Rytarowski <n54@gmx.com>
6167
6168 * sparc-nat.c (gdb_ptrace): New.
6169 * sparc-nat.c (sparc_fetch_inferior_registers)
6170 (sparc_store_inferior_registers) Remove obsolete comment.
6171 * sparc-nat.c (sparc_fetch_inferior_registers)
6172 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6173 * sparc-nat.c (sparc_fetch_inferior_registers)
6174 (sparc_store_inferior_registers) Use gdb_ptrace.
6175
a225c9a8
KR
61762020-03-17 Kamil Rytarowski <n54@gmx.com>
6177
6178 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6179 it to the ptrace call.
6180 * sh-nbsd-nat.c (store_registers): Likewise.
6181
98097623
KR
61822020-03-17 Kamil Rytarowski <n54@gmx.com>
6183
6184 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6185 nbsd_nat_target instead of inf_ptrace_target.
6186 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6187 nbsd_nat_target.
6188
9e38d619
KR
61892020-03-17 Kamil Rytarowski <n54@gmx.com>
6190
6191 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6192
a2ecbe9f
KR
61932020-03-17 Kamil Rytarowski <n54@gmx.com>
6194
6195 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6196 <sys/sysctl.h>.
6197 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6198
58990295
TV
61992020-03-17 Tom de Vries <tdevries@suse.de>
6200
6201 PR gdb/23710
6202 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6203 fields.
6204 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6205 fields.
6206 (process_imported_unit_die): Skip import of c++ CUs.
6207
771dd3a8
TT
62082020-03-16 Tom Tromey <tom@tromey.com>
6209
6210 * p-valprint.c (pascal_object_print_value): Initialize
6211 base_value.
6212
817a7585
AK
62132020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6214 Shahab Vahedi <shahab@synopsys.com>
6215
6216 * Makefile.in: Add arch/arc.o
6217 * configure.tgt: Likewise.
6218 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6219 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6220 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6221 * arc-tdep.h (arc_read_description): Add proto type.
6222 * arch/arc.c: New file.
6223 * arch/arc.h: Likewise.
6224 * features/Makefile: Replace old target descriptions with new.
6225 * features/arc-arcompact.c: Remove.
6226 * features/arc-arcompact.xml: Likewise.
6227 * features/arc-v2.c: Likewise
6228 * features/arc-v2.xml: Likewise
6229 * features/arc/aux-arcompact.xml: New file.
6230 * features/arc/aux-v2.xml: Likewise.
6231 * features/arc/core-arcompact.xml: Likewise.
6232 * features/arc/core-v2.xml: Likewise.
6233 * features/arc/aux-arcompact.c: Generate.
6234 * features/arc/aux-v2.c: Likewise.
6235 * features/arc/core-arcompact.c: Likewise.
6236 * features/arc/core-v2.c: Likewise.
6237 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6238
67430cd0
TT
62392020-03-16 Tom Tromey <tromey@adacore.com>
6240
6241 PR gdb/25663:
6242 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6243 putting value into bcache.
6244
30efb6c7
SM
62452020-03-16 Simon Marchi <simon.marchi@efficios.com>
6246
6247 PR gdb/21500
6248 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6249 to...
6250 (amd64_windows_init_abi_common): ... this. Don't set size of
6251 long type.
6252 (amd64_windows_init_abi): New function.
6253 (amd64_cygwin_init_abi): New function.
6254 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6255 the Cygwin OS ABI.
6256 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6257 comment.
6258
8db52437
SM
62592020-03-16 Simon Marchi <simon.marchi@efficios.com>
6260
6261 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6262 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6263 (pe_import_directory_entry): New struct type.
6264 (is_linked_with_cygwin_dll): New function.
6265 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6266 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6267 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6268
5982a56a
SM
62692020-03-16 Simon Marchi <simon.marchi@efficios.com>
6270
6271 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6272 i386_cygwin_core_osabi_sniffer.
6273
7a1998df
SM
62742020-03-16 Simon Marchi <simon.marchi@efficios.com>
6275
6276 * i386-cygwin-tdep.c: Rename to...
6277 * i386-windows-tdep.c: ... this.
6278 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6279 i386-windows-tdep.c.
6280 * configure.tgt: Likewise.
6281
053205cc
SM
62822020-03-16 Simon Marchi <simon.marchi@efficios.com>
6283
6284 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6285 * osabi.c (gdb_osabi_names): Add "Windows".
6286 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6287 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6288 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6289 i386_cygwin_osabi_sniffer.
6290 (_initialize_i386_cygwin_tdep): Register OS ABI
6291 GDB_OSABI_WINDOWS for i386.
6292 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6293 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6294 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6295 for x86-64.
6296 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6297 when the target matches '*-*-mingw*'.
6298
fe4b2ee6
SM
62992020-03-16 Simon Marchi <simon.marchi@efficios.com>
6300
6301 * defs.h (enum gdb_osabi): Move to...
6302 * osabi.h (enum gdb_osabi): ... here.
6303 * gdbarch.sh: Include osabi.h in gdbarch.h.
6304 * gdbarch.h: Re-generate.
6305
cb9b645d
SM
63062020-03-16 Simon Marchi <simon.marchi@efficios.com>
6307
6308 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6309 function.
6310 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6311
3293bbaf
TT
63122020-03-14 Tom Tromey <tom@tromey.com>
6313
6314 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6315 for C++.
6316 (c_type_print_modifier): Likewise. Add "language" parameter.
6317 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6318 (c_type_print_base_1): Update.
6319 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6320 constants.
6321 * type-stack.c (type_stack::insert): Handle tp_atomic and
6322 tp_restrict.
6323 (type_stack::follow_type_instance_flags): Likewise.
6324 (type_stack::follow_types): Likewise. Merge type-following code.
6325 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6326 (space_identifier, cv_with_space_id)
6327 (const_or_volatile_or_space_identifier_noopt)
6328 (const_or_volatile_or_space_identifier): Remove.
6329 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6330 rules.
6331 (ptr_operator, typebase): Update.
6332 (enum token_flag) <FLAG_C>: New constant.
6333 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6334 "_Atomic".
6335 (lex_one_token): Handle FLAG_C.
6336
154151a6
KR
63372020-03-14 Kamil Rytarowski <n54@gmx.com>
6338
6339 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6340 it to the ptrace call.
6341 * m68k-bsd-nat.c (store_registers): Likewise.
6342
bc107784
KR
63432020-03-14 Kamil Rytarowski <n54@gmx.com>
6344
6345 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6346 gdb_byte *.
6347 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6348 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6349 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6350
01a80117
KR
63512020-03-14 Kamil Rytarowski <n54@gmx.com>
6352
6353 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6354 nbsd_nat_target instead of inf_ptrace_target.
6355 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6356 nbsd_nat_target.
6357
f90280ca
KR
63582020-03-14 Kamil Rytarowski <n54@gmx.com>
6359
6360 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6361 register_t.
6362
6def66f1
KR
63632020-03-14 Kamil Rytarowski <n54@gmx.com>
6364
6365 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6366 it to the ptrace call.
6367 * alpha-bsd-nat.c (store_registers): Likewise.
6368
66eaca97
KR
63692020-03-14 Kamil Rytarowski <n54@gmx.com>
6370
6371 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6372 includes.
6373 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6374 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6375 fill_fpregset): Likewise.
6376
4fed520b
KR
63772020-03-14 Kamil Rytarowski <n54@gmx.com>
6378
6379 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6380 nbsd_nat_target instead of inf_ptrace_target.
6381 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6382 nbsd_nat_target.
6383
2190cf06
KR
63842020-03-14 Kamil Rytarowski <n54@gmx.com>
6385
6386 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6387 register_t.
6388
75c56d3d
KR
63892020-03-14 Kamil Rytarowski <n54@gmx.com>
6390
6391 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6392 it to the ptrace call.
6393 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6394 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6395 * arm-nbsd-nat.c (store_register): Likewise.
6396 * arm-nbsd-nat.c (store_regs): Likewise.
6397 * arm-nbsd-nat.c (store_fp_register): Likewise.
6398 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6399
6018d381
KR
64002020-03-14 Kamil Rytarowski <n54@gmx.com>
6401
6402 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6403 nbsd_nat_target instead of inf_ptrace_target.
6404 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6405 nbsd_nat_target.
6406
013f99f0
KR
64072020-03-14 Kamil Rytarowski <n54@gmx.com>
6408
6409 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6410 it to the ptrace call.
6411 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6412
12753073
KR
64132020-03-14 Kamil Rytarowski <n54@gmx.com>
6414
6227b330
KR
6415 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6416 it to the ptrace call.
6417 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6418
64192020-03-14 Kamil Rytarowski <n54@gmx.com>
6420
6421 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6422 gdb_byte *.
12753073
KR
6423 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6424
d5be5fa4
KR
64252020-03-14 Kamil Rytarowski <n54@gmx.com>
6426
6427 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6428 instead of inf_ptrace_target.
6429 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6430 nbsd_nat_target.
6431
8110f842
KR
64322020-03-14 Kamil Rytarowski <n54@gmx.com>
6433
6434 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6435 register_t.
6436
52feded7
KR
64372020-03-14 Kamil Rytarowski <n54@gmx.com>
6438
6439 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6440 register_t.
6441
25567eee
KR
64422020-03-14 Kamil Rytarowski <n54@gmx.com>
6443
6444 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6445 register_t.
6446
426a9c18
TT
64472020-03-13 Tom Tromey <tom@tromey.com>
6448
6449 * value.h (val_print): Don't declare.
6450 * valprint.h (val_print_array_elements)
6451 (val_print_scalar_formatted, generic_val_print): Don't declare.
6452 * valprint.c (generic_val_print_array): Take a struct value.
6453 (generic_val_print_ptr, generic_val_print_memberptr)
6454 (generic_val_print_bool, generic_val_print_int)
6455 (generic_val_print_char, generic_val_print_complex)
6456 (generic_val_print): Remove.
6457 (generic_value_print): Update.
6458 (do_val_print): Remove unused parameters. Don't call
6459 la_val_print.
6460 (val_print): Remove.
6461 (common_val_print): Update. Don't call value_check_printable.
6462 (val_print_scalar_formatted, val_print_array_elements): Remove.
6463 * rust-lang.c (rust_val_print): Remove.
6464 (rust_language_defn): Update.
6465 * p-valprint.c (pascal_val_print): Remove.
6466 (pascal_value_print_inner): Update.
6467 (pascal_object_print_val_fields, pascal_object_print_val):
6468 Remove.
6469 (pascal_object_print_static_field): Update.
6470 * p-lang.h (pascal_val_print): Don't declare.
6471 * p-lang.c (pascal_language_defn): Update.
6472 * opencl-lang.c (opencl_language_defn): Update.
6473 * objc-lang.c (objc_language_defn): Update.
6474 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6475 * m2-lang.h (m2_val_print): Don't declare.
6476 * m2-lang.c (m2_language_defn): Update.
6477 * language.h (struct language_defn) <la_val_print>: Remove.
6478 * language.c (unk_lang_value_print_inner): Rename. Change
6479 argument types.
6480 (unknown_language_defn, auto_language_defn): Update.
6481 * go-valprint.c (go_val_print): Remove.
6482 * go-lang.h (go_val_print): Don't declare.
6483 * go-lang.c (go_language_defn): Update.
6484 * f-valprint.c (f_val_print): Remove.
6485 * f-lang.h (f_value_print): Don't declare.
6486 * f-lang.c (f_language_defn): Update.
6487 * d-valprint.c (d_val_print): Remove.
6488 * d-lang.h (d_value_print): Don't declare.
6489 * d-lang.c (d_language_defn): Update.
6490 * cp-valprint.c (cp_print_value_fields)
6491 (cp_print_value_fields_rtti, cp_print_value): Remove.
6492 (cp_print_static_field): Update.
6493 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6494 (c_val_print_struct, c_val_print_union, c_val_print_int)
6495 (c_val_print_memberptr, c_val_print): Remove.
6496 * c-lang.h (c_val_print_array, cp_print_value_fields)
6497 (cp_print_value_fields_rtti): Don't declare.
6498 * c-lang.c (c_language_defn, cplus_language_defn)
6499 (asm_language_defn, minimal_language_defn): Update.
6500 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6501 (ada_val_print_enum): Take a struct value.
6502 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6503 (ada_val_print): Remove.
6504 (ada_value_print_1): Update.
6505 (printable_val_type): Remove.
6506 * ada-lang.h (ada_val_print): Don't declare.
6507 * ada-lang.c (ada_language_defn): Update.
6508
42331a1e
TT
65092020-03-13 Tom Tromey <tom@tromey.com>
6510
6511 * valprint.c (do_val_print): Update.
6512 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6513 a struct value.
6514 (value_to_value_object_no_release): Declare.
6515 * python/py-value.c (value_to_value_object_no_release): New
6516 function.
6517 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6518 struct value.
6519 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6520 function.
6521 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6522 a struct value.
6523 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6524 Declare.
6525 (gdbscm_apply_val_pretty_printer): Take a struct value.
6526 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6527 value.
6528 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6529 value.
6530 * extension-priv.h (struct extension_language_ops)
6531 <apply_val_pretty_printer>: Take a struct value.
6532 * cp-valprint.c (cp_print_value): Create a struct value.
6533 (cp_print_value): Update.
6534
3a916a97
TT
65352020-03-13 Tom Tromey <tom@tromey.com>
6536
6537 * ada-valprint.c (print_field_values): Call common_val_print.
6538
b59eac37
TT
65392020-03-13 Tom Tromey <tom@tromey.com>
6540
6541 * ada-valprint.c (val_print_packed_array_elements): Remove
6542 bitoffset and val parameters. Call common_val_print.
6543 (ada_val_print_string): Remove offset, address, and original_value
6544 parameters.
6545 (ada_val_print_array): Update.
6546 (ada_value_print_array): New function.
6547 (ada_value_print_1): Call it.
6548
03371129
TT
65492020-03-13 Tom Tromey <tom@tromey.com>
6550
6551 * ada-valprint.c (ada_value_print): Use common_val_print.
6552
2e088f8b
TT
65532020-03-13 Tom Tromey <tom@tromey.com>
6554
6555 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6556
39ef85a8
TT
65572020-03-13 Tom Tromey <tom@tromey.com>
6558
6559 * ada-valprint.c (ada_value_print_num): New function.
6560 (ada_value_print_1): Use it.
6561
b9fa6e07
TT
65622020-03-13 Tom Tromey <tom@tromey.com>
6563
6564 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6565
416595d6
TT
65662020-03-13 Tom Tromey <tom@tromey.com>
6567
6568 * ada-valprint.c (ada_value_print_ptr): New function.
6569 (ada_value_print_1): Use it.
6570
5b5e15ec
TT
65712020-03-13 Tom Tromey <tom@tromey.com>
6572
6573 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6574 call common_val_print.
6575 (ada_val_print_1): Update.
6576 (ada_value_print_1): New function.
6577 (ada_value_print_inner): Rewrite.
6578
fbf54e75
TT
65792020-03-13 Tom Tromey <tom@tromey.com>
6580
6581 * cp-valprint.c (cp_print_value_fields): Update.
6582 (cp_print_value): New function.
6583
64b653ca
TT
65842020-03-13 Tom Tromey <tom@tromey.com>
6585
6586 * m2-valprint.c (m2_value_print_inner): Use
6587 cp_print_value_fields.
6588 * cp-valprint.c (cp_print_value_fields): New function.
6589 * c-valprint.c (c_value_print_struct): New function.
6590 (c_value_print_inner): Use c_value_print_struct.
6591 * c-lang.h (cp_print_value_fields): Declare.
6592
6999f067
TT
65932020-03-13 Tom Tromey <tom@tromey.com>
6594
6595 * c-valprint.c (c_value_print_array): New function.
6596 (c_value_print_inner): Use it.
6597
ce80b8bd
TT
65982020-03-13 Tom Tromey <tom@tromey.com>
6599
6600 * c-valprint.c (c_value_print_memberptr): New function.
6601 (c_value_print_inner): Use it.
6602
2faac269
TT
66032020-03-13 Tom Tromey <tom@tromey.com>
6604
6605 * c-valprint.c (c_value_print_int): New function.
6606 (c_value_print_inner): Use it.
6607
da3e2c29
TT
66082020-03-13 Tom Tromey <tom@tromey.com>
6609
6610 * c-valprint.c (c_value_print_ptr): New function.
6611 (c_value_print_inner): Use it.
6612
50836231
TT
66132020-03-13 Tom Tromey <tom@tromey.com>
6614
6615 * c-valprint.c (c_value_print_inner): Rewrite.
6616
4f412b6e
TT
66172020-03-13 Tom Tromey <tom@tromey.com>
6618
6619 * valprint.c (generic_value_print_complex): New function.
6620 (generic_value_print): Use it.
6621
f5354008
TT
66222020-03-13 Tom Tromey <tom@tromey.com>
6623
6624 * valprint.c (generic_val_print_float): Don't call
6625 val_print_scalar_formatted.
6626 (generic_val_print, generic_value_print): Update.
6627
3eec3b05
TT
66282020-03-13 Tom Tromey <tom@tromey.com>
6629
6630 * valprint.c (generic_value_print_char): New function
6631 (generic_value_print): Use it.
6632
fdddfccb
TT
66332020-03-13 Tom Tromey <tom@tromey.com>
6634
6635 * valprint.c (generic_value_print_int): New function.
6636 (generic_value_print): Use it.
6637
6dde7521
TT
66382020-03-13 Tom Tromey <tom@tromey.com>
6639
6640 * valprint.c (generic_value_print_bool): New function.
6641 (generic_value_print): Use it.
6642
4112d2e6
TT
66432020-03-13 Tom Tromey <tom@tromey.com>
6644
6645 * valprint.c (generic_val_print_func): Simplify.
6646 (generic_val_print, generic_value_print): Update.
6647
65786af6
TT
66482020-03-13 Tom Tromey <tom@tromey.com>
6649
6650 * valprint.c (generic_val_print_flags): Remove.
6651 (generic_val_print, generic_value_print): Update.
6652 (val_print_type_code_flags): Add original_value parameter.
6653
40f3ce18
TT
66542020-03-13 Tom Tromey <tom@tromey.com>
6655
6656 * valprint.c (generic_val_print): Update.
6657 (generic_value_print): Update.
6658 * valprint.c (generic_val_print_enum): Don't call
6659 val_print_scalar_formatted.
6660
2a5b130b
TT
66612020-03-13 Tom Tromey <tom@tromey.com>
6662
6663 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6664 * valprint.c (generic_value_print_ptr): New function.
6665
abc66ce9
TT
66662020-03-13 Tom Tromey <tom@tromey.com>
6667
6668 * valprint.c (generic_value_print): Rewrite.
6669
07a32858
TT
66702020-03-13 Tom Tromey <tom@tromey.com>
6671
6672 * p-valprint.c (pascal_object_print_value_fields)
6673 (pascal_object_print_value): New functions.
6674
64d64d3a
TT
66752020-03-13 Tom Tromey <tom@tromey.com>
6676
6677 * p-valprint.c (pascal_value_print_inner): Rewrite.
6678
6a95a1f5
TT
66792020-03-13 Tom Tromey <tom@tromey.com>
6680
6681 * f-valprint.c (f_value_print_innner): Rewrite.
6682
59fcdac6
TT
66832020-03-13 Tom Tromey <tom@tromey.com>
6684
6685 * m2-valprint.c (m2_print_unbounded_array): New overload.
6686 (m2_print_unbounded_array): Update.
6687 (m2_print_array_contents): Take a struct value.
6688 (m2_value_print_inner): Rewrite.
6689
d133c3e1
TT
66902020-03-13 Tom Tromey <tom@tromey.com>
6691
6692 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6693 (d_value_print_inner): New function.
6694 * d-lang.h (d_value_print_inner): Declare.
6695 * d-lang.c (d_language_defn): Use d_value_print_inner.
6696
23b0f06b
TT
66972020-03-13 Tom Tromey <tom@tromey.com>
6698
6699 * go-valprint.c (go_value_print_inner): New function.
6700 * go-lang.h (go_value_print_inner): Declare.
6701 * go-lang.c (go_language_defn): Use go_value_print_inner.
6702
5f56f7cb
TT
67032020-03-13 Tom Tromey <tom@tromey.com>
6704
6705 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6706 API.
6707 (rust_val_print): Rewrite.
6708 (rust_value_print_inner): New function, from rust_val_print.
6709 (rust_language_defn): Use rust_value_print_inner.
6710
26792ee0
TT
67112020-03-13 Tom Tromey <tom@tromey.com>
6712
6713 * ada-valprint.c (ada_value_print_inner): New function.
6714 * ada-lang.h (ada_value_print_inner): Declare.
6715 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6716
24051bbe
TT
67172020-03-13 Tom Tromey <tom@tromey.com>
6718
6719 * f-valprint.c (f_value_print_innner): New function.
6720 * f-lang.h (f_value_print_innner): Declare.
6721 * f-lang.c (f_language_defn): Use f_value_print_innner.
6722
c0941be6
TT
67232020-03-13 Tom Tromey <tom@tromey.com>
6724
6725 * p-valprint.c (pascal_value_print_inner): New function.
6726 * p-lang.h (pascal_value_print_inner): Declare.
6727 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6728
62c4663d
TT
67292020-03-13 Tom Tromey <tom@tromey.com>
6730
6731 * m2-valprint.c (m2_value_print_inner): New function.
6732 * m2-lang.h (m2_value_print_inner): Declare.
6733 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6734
62182190
TT
67352020-03-13 Tom Tromey <tom@tromey.com>
6736
6737 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6738 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6739 * c-valprint.c (c_value_print_inner): New function.
6740 * c-lang.h (c_value_print_inner): Declare.
6741 * c-lang.c (c_language_defn, cplus_language_defn)
6742 (asm_language_defn, minimal_language_defn): Use
6743 c_value_print_inner.
6744
1e592a8a
TT
67452020-03-13 Tom Tromey <tom@tromey.com>
6746
6747 * p-valprint.c (pascal_object_print_value_fields): Now static.
6748 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6749
7fe471e9
TT
67502020-03-13 Tom Tromey <tom@tromey.com>
6751
6752 * c-valprint.c (c_val_print_array): Simplify.
6753
d121c6ce
TT
67542020-03-13 Tom Tromey <tom@tromey.com>
6755
6756 * valprint.c (value_print_array_elements): New function.
6757 * valprint.h (value_print_array_elements): Declare.
6758
4dba70ee
TT
67592020-03-13 Tom Tromey <tom@tromey.com>
6760
6761 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6762 * mips-tdep.c (mips_print_register): Use
6763 value_print_scalar_formatted.
6764
4f9ae810
TT
67652020-03-13 Tom Tromey <tom@tromey.com>
6766
6767 * valprint.h (value_print_scalar_formatted): Declare.
6768 * valprint.c (value_print_scalar_formatted): New function.
6769
156bfec9
TT
67702020-03-13 Tom Tromey <tom@tromey.com>
6771
6772 * valprint.h (generic_value_print): Declare.
6773 * valprint.c (generic_value_print): New function.
6774
2b4e573d
TT
67752020-03-13 Tom Tromey <tom@tromey.com>
6776
6777 * valprint.c (do_val_print): Call la_value_print_inner, if
6778 available.
6779 * rust-lang.c (rust_language_defn): Update.
6780 * p-lang.c (pascal_language_defn): Update.
6781 * opencl-lang.c (opencl_language_defn): Update.
6782 * objc-lang.c (objc_language_defn): Update.
6783 * m2-lang.c (m2_language_defn): Update.
6784 * language.h (struct language_defn) <la_value_print_inner>: New
6785 member.
6786 * language.c (unknown_language_defn, auto_language_defn): Update.
6787 * go-lang.c (go_language_defn): Update.
6788 * f-lang.c (f_language_defn): Update.
6789 * d-lang.c (d_language_defn): Update.
6790 * c-lang.c (c_language_defn, cplus_language_defn)
6791 (asm_language_defn, minimal_language_defn): Update.
6792 * ada-lang.c (ada_language_defn): Update.
6793
a1f6a07c
TT
67942020-03-13 Tom Tromey <tom@tromey.com>
6795
6796 * c-valprint.c (c_value_print): Use common_val_print.
6797
410cf315
TT
67982020-03-13 Tom Tromey <tom@tromey.com>
6799
6800 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6801
72a45c93
TT
68022020-03-13 Tom Tromey <tom@tromey.com>
6803
6804 * f-valprint.c (f77_print_array_1, f_val_print): Use
6805 common_val_print.
6806
040f66bd
TT
68072020-03-13 Tom Tromey <tom@tromey.com>
6808
6809 * riscv-tdep.c (riscv_print_one_register_info): Use
6810 common_val_print.
6811
a6e05a6c
TT
68122020-03-13 Tom Tromey <tom@tromey.com>
6813
6814 * mi/mi-main.c (output_register): Use common_val_print.
6815
3444c526
TT
68162020-03-13 Tom Tromey <tom@tromey.com>
6817
6818 * infcmd.c (default_print_one_register_info): Use
6819 common_val_print.
6820
c2a44efe
TT
68212020-03-13 Tom Tromey <tom@tromey.com>
6822
6823 * valprint.h (common_val_print_checked): Declare.
6824 * valprint.c (common_val_print_checked): New function.
6825 * stack.c (print_frame_arg): Use common_val_print_checked.
6826
b0c26e99
TT
68272020-03-13 Tom Tromey <tom@tromey.com>
6828
6829 * valprint.c (do_val_print): New function, from val_print.
6830 (val_print): Use do_val_print.
6831 (common_val_print): Use do_val_print.
6832
ce3acbe9
TT
68332020-03-13 Tom Tromey <tom@tromey.com>
6834
6835 * valprint.c (value_print): Use scoped_value_mark.
6836
96c7f873
TV
68372020-03-13 Tom de Vries <tdevries@suse.de>
6838
6839 PR symtab/25646
6840 * psymtab.c (partial_symtab::partial_symtab): Don't set
6841 globals_offset and statics_offset. Push element onto
6842 current_global_psymbols and current_static_psymbols stacks.
6843 (concat): New function.
6844 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6845 element from current_global_psymbols and current_static_psymbols
6846 stacks. Concat popped elements to global_psymbols and
6847 static_symbols.
6848 (add_psymbol_to_list): Use current_global_psymbols and
6849 current_static_psymbols stacks.
6850 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6851 current_static_psymbols fields.
6852
6ba0a321
CB
68532020-03-12 Christian Biesinger <cbiesinger@google.com>
6854
6855 * corelow.c (sniff_core_bfd): Remove.
6856 (class core_target) <m_core_vec>: Remove.
6857 (core_target::core_target): Update.
6858 (core_file_fns): Remove.
6859 (deprecated_add_core_fns): Remove.
6860 (default_core_sniffer): Remove.
6861 (sniff_core_bfd): Remove.
6862 (default_check_format): Remove.
6863 (gdb_check_format): Remove.
6864 (core_target_open): Update.
6865 (core_target::get_core_register_section): Update.
6866 (get_core_registers_cb): Update.
6867 (core_target::fetch_registers): Update.
6868 * gdbcore.h (struct core_fns): Remove.
6869 (deprecated_add_core_fns): Remove.
6870 (default_core_sniffer): Remove.
6871 (default_check_format): Remove.
6872
227031b2
TT
68732020-03-12 Tom Tromey <tom@tromey.com>
6874
6875 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
6876 CORE_ADDR.
6877 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
6878
53807e9f
TT
68792020-03-12 Tom Tromey <tom@tromey.com>
6880
6881 * remote.c (remote_target::download_tracepoint)
6882 (remote_target::enable_tracepoint)
6883 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
6884 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
6885 sprintf_vma.
6886
64f25102
TT
68872020-03-12 Tom Tromey <tom@tromey.com>
6888
6889 * symfile-mem.c: Update CORE_ADDR size assert.
6890
272cd5a3
SM
68912020-03-12 Simon Marchi <simon.marchi@efficios.com>
6892
6893 * selftest.m4: Move to gdbsupport/.
6894 * acinclude.m4: Update path to selftest.m4.
6895
74cd3f9d
SM
68962020-03-12 Simon Marchi <simon.marchi@efficios.com>
6897
6898 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
6899 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
6900 gdbarch-selfselftests.c and selftest-arch.c.
6901 (SUBDIR_UNITTESTS_OBS): Rename to...
6902 (SELFTESTS_OBS): ... this.
6903 (COMMON_SFILES): Remove disasm-selftests.c and
6904 gdbarch-selftests.c.
6905 * configure.ac: Don't add selftest-arch.{c,o} to
6906 CONFIG_{SRCS,OBS}.
6907 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
6908 preprocessor conditions.
6909
db6878ac
SM
69102020-03-12 Simon Marchi <simon.marchi@efficios.com>
6911
6912 * configure.ac: Don't source bfd/development.sh.
6913 * selftest.m4: Modify comment.
6914 * configure: Re-generate.
6915
4d696a5c
SM
69162020-03-12 Simon Marchi <simon.marchi@efficios.com>
6917
6918 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
6919 not "true" or "false".
6920 * configure: Re-generate.
6921
8dd8e1c7
CB
69222020-03-12 Christian Biesinger <cbiesinger@google.com>
6923
6924 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
6925 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
6926 renamed to arm_nbsd_supply_gregset.
6927 (fetch_register): Update to call arm_nbsd_supply_gregset.
6928 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
6929 (arm_netbsd_nat_target::fetch_registers): Update.
6930 (fetch_elfcore_registers): Removed.
6931 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
6932 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
6933 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
6934 not require NetBSD system headers.
6935 (arm_nbsd_regset): New struct.
6936 (arm_nbsd_iterate_over_regset_sections): New function.
6937 (arm_netbsd_init_abi_common): Updated to call
6938 set_gdbarch_iterate_over_regset_sections.
6939 * arm-nbsd-tdep.h: New file.
6940
dd69bf7a
KB
69412020-03-11 Kevin Buettner <kevinb@redhat.com>
6942
6943 * symtab.c (find_pc_sect_line): Add check which prevents infinite
6944 recursion.
6945
a0761e34
SM
69462020-03-11 Simon Marchi <simon.marchi@efficios.com>
6947
6948 * configure: Re-generate.
6949
e7a82140
TT
69502020-03-11 Tom Tromey <tromey@adacore.com>
6951
6952 * ada-typeprint.c (print_choices): Fix comment.
6953
dcc050c8
AB
69542020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
6955
6956 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
6957 previous item in the list, when the list has no items.
6958
1c33af77
TV
69592020-03-11 Tom de Vries <tdevries@suse.de>
6960
6961 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
6962 PROP_LOCLIST handling code.
6963
8c95582d
AB
69642020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
6965
6966 * buildsym-legacy.c (record_line): Pass extra parameter to
6967 record_line.
6968 * buildsym.c (buildsym_compunit::record_line): Take an extra
6969 parameter, reduce duplication in the line table, and record the
6970 is_stmt flag in the line table.
6971 * buildsym.h (buildsym_compunit::record_line): Add extra
6972 parameter.
6973 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
6974 non-statement lines.
6975 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
6976 this to the symtab builder.
6977 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
6978 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
6979 through to dwarf_record_line_1.
6980 * infrun.c (process_event_stop_test): When stepping, don't stop at
6981 a non-statement instruction, and only refresh the step info when
6982 we land in the middle of a line's range. Also add an extra
6983 comment.
6984 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
6985 field.
6986 * record-btrace.c (btrace_find_line_range): Only record lines
6987 marked as is-statement.
6988 * stack.c (frame_show_address): Show the frame address if we are
6989 in a non-statement sal.
6990 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
6991 (maintenance_print_one_line_table): Print a header for the is_stmt
6992 column, and include is_stmt information in the output.
6993 * symtab.c (find_pc_sect_line): Find lines marked as statements in
6994 preference to non-statements.
6995 (find_pcs_for_symtab_line): Prefer is-statement entries.
6996 (find_line_common): Likewise.
6997 * symtab.h (struct linetable_entry): Add is_stmt field.
6998 (struct symtab_and_line): Likewise.
6999 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7000 arranging the line table.
7001
e4003a34
TV
70022020-03-07 Tom de Vries <tdevries@suse.de>
7003
7004 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7005 DIE.
7006
e8932576
TT
70072020-03-07 Tom Tromey <tom@tromey.com>
7008
7009 * valops.c (value_literal_complex): Remove obsolete comment.
7010 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7011 comment.
7012
29734269
SM
70132020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7014
7015 * infrun.h: Forward-declare thread_info.
7016 (set_step_info): Add thread_info parameter, add doc.
7017 * infrun.c (set_step_info): Add thread_info parameter, move doc
7018 to header.
7019 * infrun.c (process_event_stop_test): Pass thread to
7020 set_step_info call.
7021 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7022 set_step_info.
7023 (prepare_one_step): Add thread_info parameter, pass it to
7024 set_step_frame and prepare_one_step (recursive) call.
7025 (step_1): Pass thread to prepare_one_step call.
7026 (step_command_fsm::should_stop): Pass thread to
7027 prepare_one_step.
7028 (until_next_fsm): Pass thread to set_step_frame call.
7029 (finish_command): Pass thread to set_step_info call.
7030
b7d64b29
HD
70312020-03-06 Hannes Domani <ssbssa@yahoo.de>
7032
7033 * windows-tdep.c (windows_solib_create_inferior_hook):
7034 Check if inferior is running.
7035
09f2921c
TV
70362020-03-06 Tom de Vries <tdevries@suse.de>
7037
7038 * NEWS: Fix "the the".
7039 * ctfread.c: Same.
7040
fd760e79
TV
70412020-03-06 Tom de Vries <tdevries@suse.de>
7042
7043 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7044
20ea4a60
AB
70452020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7046
7047 * .dir-locals.el: Add a comment referencing the other copies of
7048 this file.
7049
0afbabf0
JB
70502020-03-05 John Baldwin <jhb@FreeBSD.org>
7051
7052 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7053 psargs.
7054
842806cb
TBA
70552020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7056
7057 * .gitattributes: New file.
7058
be1e3d3e
TT
70592020-03-04 Tom Tromey <tom@tromey.com>
7060
7061 * symmisc.c (print_symbol_bcache_statistics)
7062 (print_objfile_statistics): Update.
7063 * symfile.c (allocate_symtab): Use intern.
7064 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7065 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7066 macro_cache>: Remove.
7067 <string_cache>: New member.
7068 (struct objfile) <intern>: New methods.
7069 * elfread.c (elf_symtab_read): Use intern.
7070 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7071 (dwarf2_compute_name, dwarf2_physname)
7072 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7073 names.
7074 (guess_partial_die_structure_name): Update.
7075 (partial_die_info::fixup): Intern name.
7076 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7077 name.
7078 (dwarf2_name): Intern name. Update.
7079 * buildsym.c (buildsym_compunit::get_macro_table): Use
7080 string_cache.
7081
4e7625fd
TT
70822020-03-04 Tom Tromey <tom@tromey.com>
7083
7084 * jit.c (bfd_open_from_target_memory): Make "target" const.
7085 * corefile.c (gnutarget): Now const.
7086 * gdbcore.h (gnutarget): Now const.
7087
46f9f931
HD
70882020-03-04 Hannes Domani <ssbssa@yahoo.de>
7089
7090 * NEWS: Mention support for WOW64 processes.
7091 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7092 (amd64_windows_segment_register_p): Remove static.
7093 (_initialize_amd64_windows_nat): Update.
7094 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7095 * i386-windows-nat.c (context_offset): Update.
7096 (i386_mappings): Rename and remove static.
7097 (i386_windows_segment_register_p): Remove static.
7098 (_initialize_i386_windows_nat): Update.
7099 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7100 (STATUS_WX86_SINGLE_STEP): New macro.
7101 (EnumProcessModulesEx): New macro.
7102 (Wow64SuspendThread): New macro.
7103 (Wow64GetThreadContext): New macro.
7104 (Wow64SetThreadContext): New macro.
7105 (Wow64GetThreadSelectorEntry): New macro.
7106 (windows_set_context_register_offsets): Add static.
7107 (windows_set_segment_register_p): Likewise.
7108 (windows_add_thread): Adapt for WOW64 processes.
7109 (windows_fetch_one_register): Likewise.
7110 (windows_nat_target::fetch_registers): Likewise.
7111 (windows_store_one_register): Likewise.
7112 (display_selector): Likewise.
7113 (display_selectors): Likewise.
7114 (handle_exception): Likewise.
7115 (windows_continue): Likewise.
7116 (windows_nat_target::resume): Likewise.
7117 (windows_add_all_dlls): Likewise.
7118 (do_initial_windows_stuff): Likewise.
7119 (windows_nat_target::attach): Likewise.
7120 (windows_get_exec_module_filename): Likewise.
7121 (windows_nat_target::create_inferior): Likewise.
7122 (windows_xfer_siginfo): Likewise.
7123 (_initialize_loadable): Initialize Wow64SuspendThread,
7124 Wow64GetThreadContext, Wow64SetThreadContext,
7125 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7126 * windows-nat.h (windows_set_context_register_offsets):
7127 Remove declaration.
7128 (windows_set_segment_register_p): Likewise.
7129 (i386_windows_segment_register_p): Add declaration.
7130 (amd64_windows_segment_register_p): Likewise.
7131
440cf44e
LM
71322020-03-04 Luis Machado <luis.machado@linaro.org>
7133
7134 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7135 in "info registers" for AArch64/ARM.
7136
7137 The change caused "info registers" to not print GPR's.
7138
7139 gdb/ChangeLog:
7140
7141 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7142
7143 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7144 when reg->group is empty and reggroup is not.
7145
1009d92f
TT
71462020-03-03 Tom Tromey <tromey@adacore.com>
7147
7148 * dwarf2/frame.c (struct dwarf2_frame_cache)
7149 <checked_tailcall_bottom, entry_cfa_sp_offset,
7150 entry_cfa_sp_offset_p>: Remove members.
7151 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7152 (dwarf2_frame_prev_register): Don't call
7153 dwarf2_tailcall_sniffer_first.
7154 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7155 * frame-unwind.c (add_unwinder): New fuction.
7156 (frame_unwind_init): Use it. Add tailcall unwinder.
7157
5e5d66b6
AB
71582020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7159 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7160
7161 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7162 value should be printed as true.
7163
584cf46d
HD
71642020-03-03 Hannes Domani <ssbssa@yahoo.de>
7165
7166 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7167 (windows_init_abi): Set and use windows_so_ops.
7168
7b973adc
SDJ
71692020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7170
7171 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7172 when verifying if dealing with a convenience variable.
7173
bb7b70ab
LM
71742020-03-03 Luis Machado <luis.machado@linaro.org>
7175
7176 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7177
9822cb57
SM
71782020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7179
7180 * infrun.c (gdbarch_supports_displaced_stepping): New.
7181 (use_displaced_stepping): Break up conditions in smaller pieces.
7182 Use gdbarch_supports_displaced_stepping.
7183 (displaced_step_prepare_throw): Use
7184 gdbarch_supports_displaced_stepping.
7185
63e163f2
AB
71862020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7187
7188 * NEWS: Mention new behaviour of the history filename.
7189 * top.c (write_history_p): Add comment.
7190 (show_write_history_p): Add header comment, give a different
7191 message when history writing is on, but the history filename is
7192 empty.
7193 (history_filename): Add comment.
7194 (history_filename_empty): New function.
7195 (show_history_filename): Add header comment, give a different
7196 message when the filename is empty.
7197 (init_history): Compare history_filename against nullptr, and only
7198 read history if the filename is not empty.
7199 (set_history_filename): Add header comment, and only make
7200 non-empty filenames absolute.
7201 (init_main): Make the filename argument to 'set history filename'
7202 optional.
7203
81b86b97
CB
72042020-03-02 Christian Biesinger <cbiesinger@google.com>
7205
7206 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7207 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7208 (fetch_fp_register): Update.
7209 (fetch_fp_regs): Update.
7210 (store_fp_register): Update.
7211 (store_fp_regs): Update.
7212 (arm_netbsd_nat_target::read_description): New function.
7213 (fetch_elfcore_registers): Update.
7214
24ed6739
AB
72152020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7216
7217 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7218 general_thread if the stop reply is missing a thread-id.
7219 (remote_target::process_stop_reply): Use the first non-exited
7220 thread if the target didn't pass a thread-id.
7221 * infrun.c (do_target_wait): Move call to
7222 switch_to_inferior_no_thread to ....
7223 (do_target_wait_1): ... here.
7224
a84bb2a0
JT
72252020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7226
7227 * debuginfod-support.c: Include defs.h first.
7228
658dadf0
TV
72292020-02-28 Tom de Vries <tdevries@suse.de>
7230
7231 * symfile.c (set_initial_language): Use default language for lookup.
7232
4ebe4877
SM
72332020-02-28 Simon Marchi <simon.marchi@efficios.com>
7234
7235 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7236 reader variable, pass `this` to read_cutu_die_from_dwo.
7237
e5da1139
AM
72382020-02-27 Aaron Merey <amerey@redhat.com>
7239
7240 * source.c (open_source_file): Check for nullptr when computing
7241 srcpath.
7242
317f7127
TT
72432020-02-27 Tom Tromey <tromey@adacore.com>
7244
7245 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7246 member.
7247 (dwarf2_add_field): Don't update nfields.
7248 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7249
3104d9ee
AB
72502020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7251
7252 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7253 abs.
7254
b83470bf
TT
72552020-02-26 Tom Tromey <tom@tromey.com>
7256
7257 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7258 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7259 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7260 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7261 per_cu_data.
7262
edfe0a0c
TT
72632020-02-26 Tom Tromey <tom@tromey.com>
7264
7265 * dwarf2/index-write.c (psym_index_map): Change type.
7266 (add_address_entry_worker, write_one_signatured_type)
7267 (recursively_count_psymbols, recursively_write_psymbols)
7268 (class debug_names, psyms_seen_size, write_gdbindex)
7269 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7270
0d79cdc4
AM
72712020-02-26 Aaron Merey <amerey@redhat.com>
7272
7273 * Makefile.in: Handle optional debuginfod support.
7274 * NEWS: Update.
7275 * README: Add --with-debuginfod summary.
7276 * config.in: Regenerate.
7277 * configure: Regenerate.
7278 * configure.ac: Handle optional debuginfod support.
7279 * debuginfod-support.c: debuginfod helper functions.
7280 * debuginfod-support.h: Ditto.
7281 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7282 summary.
7283 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7284 when a dwz file cannot be found.
7285 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7286 debuginfo file cannot be found.
7287 * source.c (open_source_file): Query debuginfod servers when a
7288 source file cannot be found.
7289 * top.c (print_gdb_configuration): Include
7290 --{with,without}-debuginfod in the output.
7291
b65ce565
JG
72922020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7293
7294 * thread.c (thr_try_catch_cmd): Print thread name.
7295
d4c9a4f8
SM
72962020-02-26 Simon Marchi <simon.marchi@efficios.com>
7297
7298 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7299 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7300 dwarf2_fetch_die_type_sect_off): Move to...
7301 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7302 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7303 dwarf2_fetch_die_type_sect_off): ... here.
7304 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7305 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7306 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7307
0dce4280
TV
73082020-02-26 Tom de Vries <tdevries@suse.de>
7309
7310 PR gdb/25603
7311 * symfile.c (set_initial_language): Exit-early if
7312 language_mode == language_mode_manual.
7313
450a1bfc
SM
73142020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7315
7316 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7317 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7318 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7319
9e80cfa1
AB
73202020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7321
7322 * gdbtypes.c (create_array_type_with_stride): Handle negative
7323 array strides.
7324 * valarith.c (value_subscripted_rvalue): Likewise.
7325
09624f1f
LM
73262020-02-25 Luis Machado <luis.machado@linaro.org>
7327
7328 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7329
8cb5117c
SM
73302020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7331
7332 * loc.h (dwarf2_get_die_type): Move to...
7333 * read.h (dwarf2_get_die_type): ... here.
7334 * read.c (dwarf2_get_die_type): Move doc to header.
7335
c325c44e
JB
73362020-02-25 Joel Brobecker <brobecker@adacore.com>
7337
7338 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7339 'gnulib/Makefile.in' to the list.
7340
4ac93832
TT
73412020-02-24 Tom Tromey <tom@tromey.com>
7342
7343 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7344 Remove.
7345 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7346 XOBNEWVEC.
7347
197400e8
TT
73482020-02-24 Tom Tromey <tom@tromey.com>
7349
7350 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7351 New method.
7352 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7353 (dw2_do_instantiate_symtab, dw2_get_file_names)
7354 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7355
76935768
TT
73562020-02-24 Tom Tromey <tom@tromey.com>
7357
7358 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7359 make_scoped_restore.
7360 (dwarf2_psymtab::read_symtab): Don't clear
7361 reading_partial_symbols.
7362
a88ef40d
TV
73632020-02-24 Tom de Vries <tdevries@suse.de>
7364
7365 PR gdb/25592
7366 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7367
c9af6521
TV
73682020-02-24 Tom de Vries <tdevries@suse.de>
7369
7370 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7371 commands layout next/prev/regs.
7372
5707a07a
TT
73732020-02-22 Tom Tromey <tom@tromey.com>
7374
7375 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7376 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7377
3b0fb49e
TT
73782020-02-22 Tom Tromey <tom@tromey.com>
7379
7380 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7381
283be8bf
TT
73822020-02-22 Tom Tromey <tom@tromey.com>
7383
7384 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7385 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7386 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7387 * tui/tui.c (_initialize_tui): Add usage text.
7388
ca793b96
TT
73892020-02-22 Tom Tromey <tom@tromey.com>
7390
7391 * tui/tui-win.c (tui_set_focus_command)
7392 (tui_set_win_height_command): Use error_no_arg.
7393 (_initialize_tui_win): Update help text.
7394 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7395
432b5c40
TT
73962020-02-22 Tom Tromey <tom@tromey.com>
7397
7398 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7399 * tui/tui-disasm.h (struct tui_disasm_window)
7400 <display_start_addr>: Declare.
7401 * tui/tui-source.h (struct tui_source_window)
7402 <display_start_addr>: Declare.
7403 * tui/tui-winsource.h (struct tui_source_window_base)
7404 <show_source_line, display_start_addr>: New methods.
7405 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7406 Rename and move to protected section.
7407 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7408 (tui_source_window_base::do_erase_source_content): Update.
7409 (tui_source_window_base::show_source_line): Now a method.
7410 (tui_source_window_base::show_source_content)
7411 (tui_source_window_base::tui_source_window_base)
7412 (tui_source_window_base::rerender)
7413 (tui_source_window_base::refill)
7414 (tui_source_window_base::do_scroll_horizontal)
7415 (tui_source_window_base::set_is_exec_point_at)
7416 (tui_source_window_base::update_breakpoint_info)
7417 (tui_source_window_base::update_exec_info): Update.
7418 * tui/tui-source.c (tui_source_window::set_contents)
7419 (tui_source_window::showing_source_p)
7420 (tui_source_window::do_scroll_vertical)
7421 (tui_source_window::location_matches_p)
7422 (tui_source_window::line_is_displayed): Update.
7423 (tui_source_window::display_start_addr): New method.
7424 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7425 (tui_disasm_window::do_scroll_vertical)
7426 (tui_disasm_window::location_matches_p): Update.
7427 (tui_disasm_window::display_start_addr): New method.
7428
01b1af32
TT
74292020-02-22 Tom Tromey <tom@tromey.com>
7430
7431 * NEWS: Add entry for gdb.register_window_type.
7432 * tui/tui-layout.h (window_factory): New typedef.
7433 (tui_register_window): Declare.
7434 * tui/tui-layout.c (saved_tui_windows): New global.
7435 (tui_apply_current_layout): Use it.
7436 (tui_register_window): New function.
7437 * python/python.c (do_start_initialization): Call
7438 gdbpy_initialize_tui.
7439 (python_GdbMethods): Add "register_window_type" function.
7440 * python/python-internal.h (gdbpy_register_tui_window)
7441 (gdbpy_initialize_tui): Declare.
7442 * python/py-tui.c: New file.
7443 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7444
fc96d20b
TT
74452020-02-22 Tom Tromey <tom@tromey.com>
7446
7447 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7448
935c78c0
TT
74492020-02-22 Tom Tromey <tom@tromey.com>
7450
7451 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7452 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7453 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7454 (tui_set_win_focus_to): Move from tui-win.c.
7455
0240c8f1
TT
74562020-02-22 Tom Tromey <tom@tromey.com>
7457
7458 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7459 functions.
7460 (known_window_types): New global.
7461 (tui_get_window_by_name): Reimplement.
7462 (initialize_known_windows): New function.
7463 (validate_window_name): Rewrite.
7464 (_initialize_tui_layout): Call initialize_known_windows.
7465
fdb01f0c
TT
74662020-02-22 Tom Tromey <tom@tromey.com>
7467
7468 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7469 Remove constants.
7470 * tui/tui-winsource.h (struct tui_source_window_base)
7471 <tui_source_window_base>: Remove parameter.
7472 * tui/tui-winsource.c
7473 (tui_source_window_base::tui_source_window_base): Remove
7474 parameter.
7475 (tui_source_window_base::refill): Update.
7476 * tui/tui-stack.h (struct tui_locator_window)
7477 <tui_locator_window>: Update.
7478 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7479 Default the constructor.
7480 * tui/tui-regs.h (struct tui_data_item_window)
7481 <tui_data_item_window>: Default the constructor.
7482 (struct tui_data_window) <tui_data_window>: Likewise.
7483 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7484 Default the constructor.
7485 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7486 Default the constructor.
7487 <type>: Remove.
7488 (struct tui_win_info) <tui_win_info>: Default the constructor.
7489 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7490 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7491 Default the constructor.
7492
865a5aec
TT
74932020-02-22 Tom Tromey <tom@tromey.com>
7494
7495 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7496 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7497 * tui/tui-win.c (tui_resize_all): Don't call
7498 tui_delete_invisible_windows.
7499 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7500 done.
7501 (tui_set_layout): Update.
7502 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7503 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7504 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7505
e098d18c
TT
75062020-02-22 Tom Tromey <tom@tromey.com>
7507
7508 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7509 correctly.
7510
eb9c8874
TT
75112020-02-22 Tom Tromey <tom@tromey.com>
7512
7513 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7514
7eed1a8e
TT
75152020-02-22 Tom Tromey <tom@tromey.com>
7516
7517 * tui/tui-winsource.h (struct tui_source_window_iterator)
7518 <inner_iterator>: New etytypedef.
7519 <tui_source_window_iterator>: Take "end" parameter.
7520 <tui_source_window_iterator>: Take iterator.
7521 <operator*, advance>: Update.
7522 <m_iter>: Change type.
7523 <m_end>: New field.
7524 (struct tui_source_windows) <begin, end>: Update.
7525 * tui/tui-layout.c (tui_windows): New global.
7526 (tui_apply_current_layout): Clear tui_windows.
7527 (tui_layout_window::apply): Update tui_windows.
7528 * tui/tui-data.h (tui_windows): Declare.
7529 (all_tui_windows): Now inline function.
7530 (class tui_window_iterator, struct all_tui_windows): Remove.
7531
7c043ba6
TT
75322020-02-22 Tom Tromey <tom@tromey.com>
7533
7534 PR tui/17850:
7535 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7536 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7537 "height" argument.
7538 (class tui_layout_window) <get_sizes>: Likewise.
7539 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7540 argument.
7541 <get_sizes>: Add "height" argument.
7542 <m_vertical>: New field.
7543 * tui/tui-layout.c (tui_layout_split::clone): Update.
7544 (tui_layout_split::get_sizes): Add "height" argument.
7545 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7546 (tui_new_layout_command): Parse "-horizontal".
7547 (_initialize_tui_layout): Update help string.
7548 (tui_layout_split::specification): Add "-horizontal" when needed.
7549 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7550 argument.
7551 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7552 New methods.
7553
6bc56648
TT
75542020-02-22 Tom Tromey <tom@tromey.com>
7555
7556 * tui/tui-layout.h (enum tui_adjust_result): New.
7557 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7558 (class tui_layout_window) <adjust_size>: Return
7559 tui_adjust_result. Rewrite.
7560 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7561 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7562
c22fef7e
TT
75632020-02-22 Tom Tromey <tom@tromey.com>
7564
7565 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7566 parameter and return types.
7567 (class tui_layout_base) <specification>: Add "depth".
7568 (class tui_layout_window) <specification>: Add "depth".
7569 (class tui_layout_split) <specification>: Add "depth".
7570 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7571 and return types.
7572 (tui_new_layout_command): Parse sub-layouts.
7573 (_initialize_tui_layout): Update help string.
7574 (tui_layout_window::specification): Add "depth".
7575 (add_layout_command): Update.
7576
ee325b61
TT
75772020-02-22 Tom Tromey <tom@tromey.com>
7578
7579 * NEWS: Add "tui new-layout" item.
7580 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7581 Add new-layout command to help text.
7582 (validate_window_name): New function.
7583 (tui_new_layout_command): New function.
7584 (_initialize_tui_layout): Register "new-layout".
7585 (tui_layout_window::specification): New method.
7586 (tui_layout_window::specification): New method.
7587 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7588 method.
7589 (class tui_layout_window) <specification>: New method.
7590 (class tui_layout_split) <specification>: New method.
7591
416eb92d
TT
75922020-02-22 Tom Tromey <tom@tromey.com>
7593
7594 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7595 * tui/tui-win.c (window_name_completer): Update comment.
7596 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7597 Declare method.
7598 (class tui_layout_window) <replace_window>: Likewise.
7599 (class tui_layout_split) <replace_window>: Likewise.
7600 (tui_set_layout): Don't declare.
7601 (tui_set_initial_layout): Declare function.
7602 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7603 (asm_regs_layout): New globals.
7604 (tui_current_layout, show_layout): Remove.
7605 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7606 (find_layout, tui_apply_layout): New function.
7607 (layout_completer): Remove.
7608 (tui_next_layout): Reimplement.
7609 (tui_next_layout_command): New function.
7610 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7611 (tui_regs_layout): Reimplement.
7612 (tui_regs_layout_command): New function.
7613 (extract_display_start_addr): Rewrite.
7614 (next_layout, prev_layout): Remove.
7615 (tui_layout_window::replace_window): New method.
7616 (tui_layout_split::replace_window): New method.
7617 (destroy_layout): New function.
7618 (layout_list): New global.
7619 (add_layout_command): New function.
7620 (initialize_layouts): Update.
7621 (tui_layout_command): New function.
7622 (_initialize_tui_layout): Install "layout" commands.
7623 * tui/tui-data.h (enum tui_layout_type): Remove.
7624 (tui_current_layout): Don't declare.
7625
0dbc2fc7
TT
76262020-02-22 Tom Tromey <tom@tromey.com>
7627
7628 * tui/tui-regs.c (tui_reg_layout): Remove.
7629 (tui_reg_command): Use tui_regs_layout.
7630 * tui/tui-layout.h (tui_reg_command): Declare.
7631 * tui/tui-layout.c (tui_reg_command): New function.
7632
5afe342e
TT
76332020-02-22 Tom Tromey <tom@tromey.com>
7634
7635 * tui/tui.c (tui_rl_delete_other_windows): Call
7636 tui_remove_some_windows.
7637 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7638 Declare method.
7639 (class tui_layout_window) <remove_windows>: New method.
7640 (class tui_layout_split) <remove_windows>: Declare.
7641 (tui_remove_some_windows): Declare.
7642 * tui/tui-layout.c (tui_remove_some_windows): New function.
7643 (tui_layout_split::remove_windows): New method.
7644
427326a8
TT
76452020-02-22 Tom Tromey <tom@tromey.com>
7646
7647 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7648 * tui/tui-layout.h (tui_next_layout): Declare.
7649 * tui/tui-layout.c (tui_next_layout): New function.
7650
3fe12b6d
TT
76512020-02-22 Tom Tromey <tom@tromey.com>
7652
7653 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7654 correct coordinates.
7655
59b8b5d2
TT
76562020-02-22 Tom Tromey <tom@tromey.com>
7657
7658 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7659 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7660 DATA_WIN case.
7661
2a3d458b
TT
76622020-02-22 Tom Tromey <tom@tromey.com>
7663
7664 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7665 TUI_DISASM_WIN, not tui_win_list.
7666
3f0cbb04
TT
76672020-02-22 Tom Tromey <tom@tromey.com>
7668
7669 * valprint.c (generic_val_print_enum_1)
7670 (val_print_type_code_flags): Style member names.
7671 * rust-lang.c (val_print_struct, rust_print_enum)
7672 (rust_print_struct_def, rust_internal_print_type): Style member
7673 names.
7674 * p-valprint.c (pascal_object_print_value_fields): Style member
7675 names. Only call fprintf_symbol_filtered for static members.
7676 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7677 * f-valprint.c (f_val_print): Style member names.
7678 * f-typeprint.c (f_type_print_base): Style member names.
7679 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7680 call fprintf_symbol_filtered for static members.
7681 (cp_print_class_member): Style member names.
7682 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7683 member names.
7684 * ada-valprint.c (ada_print_scalar): Style enum names.
7685 (ada_val_print_enum): Likewise.
7686 * ada-typeprint.c (print_enum_type): Style enum names.
7687
d4d947ae
TT
76882020-02-21 Tom Tromey <tom@tromey.com>
7689
7690 * psympriv.h (struct partial_symtab): Update comment.
7691
e94e944b
TT
76922020-02-21 Tom Tromey <tromey@adacore.com>
7693
7694 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7695 type is CORE_ADDR.
7696
1eb73179
TV
76972020-02-21 Tom de Vries <tdevries@suse.de>
7698
7699 PR gdb/25534
7700 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7701 if dependencies[i]->user != NULL.
7702
4f180d53
AT
77032020-02-21 Ali Tamur <tamur@google.com>
7704
7705 * dwarf2/read.c (dwarf2_name): Add null check.
7706
22b6cd70
TT
77072020-02-20 Tom Tromey <tom@tromey.com>
7708
7709 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7710 ">=", in binary search.
7711 (dwarf2_find_containing_comp_unit): New overload.
7712 (run_test): New self-test.
7713 (_initialize_dwarf2_read): Register new test.
7714
bd0cf5a6
NC
77152020-02-20 Nelson Chu <nelson.chu@sifive.com>
7716
7717 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7718 * riscv-tdep.h: Likewise.
7719 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7720 rv32-only CSR.
7721 * features/riscv/64bit-csr.xml: Regenerated.
7722
3f702acd
SDJ
77232020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7724 Tom Tromey <tom@tromey.com>
7725
7726 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7727 of 'fputc_unfiltered'.
7728 (putchar_unfiltered): Call 'fputc_unfiltered'.
7729 (fputc_unfiltered): Call 'fputs_unfiltered'.
7730
d13c7322
AB
77312020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7732
7733 * config.in: Regenerate.
7734 * configure: Regenerate.
7735 * configure.ac: Add --with-python-libdir option.
7736 * main.c: Use WITH_PYTHON_LIBDIR.
7737
869d8950
TT
77382020-02-19 Tom Tromey <tom@tromey.com>
7739
7740 * symtab.c (general_symbol_info::compute_and_set_names): Use
7741 obstack_strndup. Simplify call to symbol_set_demangled_name.
7742
298e9637
SM
77432020-02-19 Simon Marchi <simon.marchi@efficios.com>
7744
7745 * dwarf2/read.c (allocate_signatured_type_table,
7746 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7747 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7748 Remove objfile parameter, update all callers.
7749
08410482
DE
77502020-02-19 Doug Evans <dje@google.com>
7751
7752 PR rust/25535
7753 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7754 rust_enum_variant calculation.
7755
dfdeeca1
TT
77562020-02-19 Tom Tromey <tromey@adacore.com>
7757
7758 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7759
2ef5453b
TT
77602020-02-19 Tom Tromey <tromey@adacore.com>
7761
7762 * ada-lang.c (cache_symbol): Use obstack_strdup.
7763
9f1528a1
AB
77642020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7765
7766 * configure: Regenerate.
7767
d3c22fa8
TT
77682020-02-19 Tom Tromey <tromey@adacore.com>
7769
7770 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7771 NULL check.
7772
bf84f706
MR
77732020-02-19 Maciej W. Rozycki <macro@wdc.com>
7774
7775 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7776
d1c9b20f
AB
77772020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7778
7779 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7780 if GDBSERVER is not defined.
7781 (riscv_tdesc_cache): Likewise, also store const target_desc.
7782 (STATIC_IN_GDB): Define.
7783 (riscv_create_target_description): Update declaration with
7784 STATIC_IN_GDB.
7785 (riscv_lookup_target_description): New function, only define if
7786 GDBSERVER is not defined.
7787 * arch/riscv.h (riscv_create_target_description): Declare only
7788 when GDBSERVER is defined.
7789 (riscv_lookup_target_description): New declaration when GDBSERVER
7790 is not defined.
7791 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7792 (riscv_linux_read_features): ...this, and return
7793 riscv_gdbarch_features instead of target_desc.
7794 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7795 (riscv_linux_read_description): Rename to...
7796 (riscv_linux_read_features): ...this.
7797 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7798 Update to use riscv_gdbarch_features and
7799 riscv_lookup_target_description.
7800 * riscv-tdep.c (riscv_find_default_target_description): Use
7801 riscv_lookup_target_description instead of
7802 riscv_create_target_description.
7803
373d7ac0
SM
78042020-02-18 Simon Marchi <simon.marchi@efficios.com>
7805
7806 * valprint.c (generic_val_print_enum_1): When printing a flag
7807 enum with value 0 and there is no enumerator with value 0, print
7808 just "0" instead of "(unknown: 0x0)".
7809
b29a2df0
SM
78102020-02-18 Simon Marchi <simon.marchi@efficios.com>
7811
7812 * valprint.c (generic_val_print_enum_1): Print unknown part of
7813 flag enum in hex.
7814
6740f0cc
SM
78152020-02-18 Simon Marchi <simon.marchi@efficios.com>
7816
7817 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7818 flag enums to contain duplicate enumerators.
7819 * valprint.c (generic_val_print_enum_1): Update comment.
7820
edd45eb0
SM
78212020-02-18 Simon Marchi <simon.marchi@efficios.com>
7822
7823 * dwarf2/read.c: Include "count-one-bits.h".
7824 (update_enumeration_type_from_children): If an enumerator has
7825 multiple bits set, don't treat the enumeration as a "flag enum".
7826 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7827 of flag enums have 0 or 1 bit set.
7828
6d0cf446
BE
78292020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7830
7831 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7832 conversion.
7833 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7834 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7835 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7836 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7837 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7838
7001c1b7
SM
78392020-02-18 Simon Marchi <simon.marchi@efficios.com>
7840
7841 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7842
fdb61c6c
SM
78432020-02-14 Simon Marchi <simon.marchi@efficios.com>
7844
7845 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7846 displaced_step_closure_up.
7847 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7848 (struct displaced_step_closure_up):
7849 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7850 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7851 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7852 Likewise.
7853 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7854 * gdbarch.c, gdbarch.h: Re-generate.
7855 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7856 displaced_step_closure_up.
7857 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7858 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7859 * infrun.h (displaced_step_closure_up): New type alias.
7860 (struct displaced_step_inferior_state) <step_closure>: Change
7861 type to displaced_step_closure_up.
7862 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7863 displaced_step_closure_up.
7864 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7865
a4a38eb4
TT
78662020-02-14 Tom Tromey <tom@tromey.com>
7867
7868 * minidebug.c (gnu_debug_key): New global.
7869 (find_separate_debug_file_in_section): Use it.
7870
e8217e61
SM
78712020-02-14 Simon Marchi <simon.marchi@efficios.com>
7872
7873 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
7874 std::unique_ptr.
7875 * gdbarch.c: Re-generate.
7876 * gdbarch.h: Re-generate.
7877 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
7878 change.
7879 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
7880 type to std::unique_ptr.
7881 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7882 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7883 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7884 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7885 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
7886 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7887 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7888 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7889 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7890
d8d83535
SM
78912020-02-14 Simon Marchi <simon.marchi@efficios.com>
7892
7893 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
7894 std::unique_ptr.
7895 (displaced_step_clear): Rename to...
7896 (displaced_step_reset): ... this. Just call displaced->reset ().
7897 (displaced_step_clear_cleanup): Rename to...
7898 (displaced_step_reset_cleanup): ... this.
7899 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
7900 (displaced_step_fixup): Likewise.
7901 (resume_1): Likewise.
7902 (handle_inferior_event): Restore child's memory before calling
7903 displaced_step_fixup on the parent.
7904 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
7905 to std::unique_ptr.
7906 <step_closure>: Change type to std::unique_ptr.
7907
5f661e03
SM
79082020-02-14 Simon Marchi <simon.marchi@efficios.com>
7909
7910 * arm-tdep.c: Include count-one-bits.h.
7911 (cleanup_block_store_pc): Use count_one_bits.
7912 (cleanup_block_load_pc): Use count_one_bits.
7913 (arm_copy_block_xfer): Use count_one_bits.
7914 (thumb2_copy_block_xfer): Use count_one_bits.
7915 (thumb_copy_pop_pc_16bit): Use count_one_bits.
7916 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
7917 (thumb_get_next_pcs_raw): Use count_one_bits.
7918 (arm_get_next_pcs_raw): Use count_one_bits_l.
7919 * arch/arm.c (bitcount): Remove.
7920 * arch/arm.h (bitcount): Remove.
7921
8084e579
TT
79222020-02-14 Tom Tromey <tromey@adacore.com>
7923
7924 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
7925 Update.
7926 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
7927 * dwarf2/loc.c (call_site_find_chain_1): Return
7928 unique_xmalloc_ptr.
7929 (call_site_find_chain): Likewise.
7930
258bf0ee
RB
79312020-02-14 Richard Biener <rguenther@suse.de>
7932
7933 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
7934 on expression with division operators.
7935
f98a8458
AKS
79362020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7937
7938 * MAINTAINERS (Write After Approval): Adding myself.
7939
d1437c0e
TT
79402020-02-12 Tom Tromey <tom@tromey.com>
7941
7942 * event-loop.c (event_data, gdb_event, event_handler_func):
7943 Remove.
7944
3d4560f7
TT
79452020-02-12 Tom Tromey <tom@tromey.com>
7946
7947 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
7948 (dwarf2_frame_objfile_data): Add comment.
7949 (find_comp_unit, set_comp_unit): New functions.
7950 (dwarf2_frame_find_fde): Use find_comp_unit.
7951 (dwarf2_build_frame_info): Use set_comp_unit.
7952
21982304
TT
79532020-02-12 Tom Tromey <tom@tromey.com>
7954
7955 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
7956 (comp_unit): Don't initialize objfile.
7957 (execute_cfa_program): Add text_offset parameter.
7958 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
7959 (dwarf2_frame_cache): Update.
7960 (dwarf2_build_frame_info): Don't set "objfile" member.
7961
4debb237
TT
79622020-02-12 Tom Tromey <tom@tromey.com>
7963
7964 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
7965 (decode_frame_entry): Likewise.
7966 (dwarf2_build_frame_info): Update.
7967
0d404d44
TT
79682020-02-12 Tom Tromey <tom@tromey.com>
7969
7970 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
7971 (decode_frame_entry_1): Use the comp_unit obstack.
7972
a7a3ae5c
TT
79732020-02-12 Tom Tromey <tom@tromey.com>
7974
7975 * dwarf2/frame.c (struct comp_unit): Add initializers and
7976 constructor.
7977 (dwarf2_frame_objfile_data): Store a comp_unit.
7978 (dwarf2_frame_find_fde): Update.
7979 (dwarf2_build_frame_info): Use "new".
7980
a9d65418
TT
79812020-02-12 Tom Tromey <tom@tromey.com>
7982
7983 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
7984 (dwarf2_fde_table): Typedef for std::vector.
7985 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
7986 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
7987 (decode_frame_entry): Update.
7988 (dwarf2_build_frame_info): Use "new".
7989
7559c217
CB
79902020-02-12 Christian Biesinger <cbiesinger@google.com>
7991
7992 * arm-tdep.c (arm_gdbarch_init): Update.
7993 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
7994 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
7995 have_neon, is_m>: Change to bool.
7996
aeefc73c
CB
79972020-02-12 Christian Biesinger <cbiesinger@google.com>
7998
7999 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8000
d27b8e5f
TT
80012020-02-12 Tom Tromey <tom@tromey.com>
8002
8003 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8004
cd5900f3
HD
80052020-02-12 Hannes Domani <ssbssa@yahoo.de>
8006
8007 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8008 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8009
f056b22b
TT
80102020-02-11 Tom Tromey <tom@tromey.com>
8011
8012 * psymtab.h: Update comment.
8013
f92ff6b5
TT
80142020-02-11 Tom Tromey <tom@tromey.com>
8015
8016 * gdb_obstack.h (struct auto_obstack): Use
8017 DISABLE_COPY_AND_ASSIGN.
8018
3fd6912b
TT
80192020-02-11 Tom Tromey <tom@tromey.com>
8020
8021 * dwarf2/frame.h (struct objfile): Don't forward declare.
8022
69ed9b74
CB
80232020-02-11 Christian Biesinger <cbiesinger@google.com>
8024
8025 * cris-tdep.c (cris_supply_gregset): Change signature to match
8026 what struct regset expects.
8027 (cris_regset): New struct.
8028 (fetch_core_registers): Remove.
8029 (cris_iterate_over_regset_sections): New function.
8030 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8031 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8032
bda874f6
CB
80332020-02-11 Christian Biesinger <cbiesinger@google.com>
8034
8035 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8036 registers.
8037
754e1564
CB
80382020-02-11 Christian Biesinger <cbiesinger@google.com>
8039
8040 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8041
8ddd8e0e
SM
80422020-02-11 Simon Marchi <simon.marchi@efficios.com>
8043
8044 * configure: Re-generate.
8045
898e7f60
SM
80462020-02-11 Simon Marchi <simon.marchi@efficios.com>
8047
8048 * configure: Re-generate.
8049
58df732b
SM
80502020-02-11 Simon Marchi <simon.marchi@efficios.com>
8051
8052 * acinclude: Update warning.m4 path.
8053 * warning.m4: Move to gdbsupport.
8054
da5bd37e
TT
80552020-02-11 Tom Tromey <tromey@adacore.com>
8056
8057 * remote.c (remote_console_output): Update.
8058 * printcmd.c (printf_command): Update.
8059 * event-loop.c (gdb_wait_for_event): Update.
8060 * linux-nat.c (sigchld_handler): Update.
8061 * remote-sim.c (gdb_os_write_stdout): Update.
8062 (gdb_os_flush_stdout): Update.
8063 (gdb_os_flush_stderr): Update.
8064 (gdb_os_write_stderr): Update.
8065 * exceptions.c (print_exception): Update.
8066 * remote-fileio.c (remote_fileio_func_read): Update.
8067 (remote_fileio_func_write): Update.
8068 * tui/tui.c (tui_enable): Update.
8069 * tui/tui-interp.c (tui_interp::init): Update.
8070 * utils.c (init_page_info): Update.
8071 (putchar_unfiltered, fputc_unfiltered): Update.
8072 (gdb_flush): Update.
8073 (emit_style_escape): Update.
8074 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8075 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8076 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8077 (stderr_file::write): Update.
8078 (stderr_file::puts): Update.
8079 * ui-file.h (ui_file_isatty, ui_file_write)
8080 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8081 (ui_file_puts): Don't declare.
8082
85f0dd3c
TV
80832020-02-10 Tom de Vries <tdevries@suse.de>
8084
8085 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8086 sentinel to char *.
8087
2e927613
TV
80882020-02-09 Tom de Vries <tdevries@suse.de>
8089
8090 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8091 filename if it matches "<artificial>".
8092
6bafc845
HD
80932020-02-09 Hannes Domani <ssbssa@yahoo.de>
8094
8095 * windows-tdep.c (struct enum_value_name): New struct.
8096 (create_enum): New function.
8097 (windows_get_siginfo_type): Create and use enum types.
8098
7928d571
HD
80992020-02-09 Hannes Domani <ssbssa@yahoo.de>
8100
8101 * NEWS: Mention $_siginfo support for Windows.
8102 * windows-nat.c (handle_exception): Set siginfo_er.
8103 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8104 (windows_xfer_siginfo): New function.
8105 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8106 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8107 (init_windows_gdbarch_data): New function.
8108 (get_windows_gdbarch_data): New function.
8109 (windows_get_siginfo_type): New function.
8110 (windows_init_abi): Register windows_get_siginfo_type.
8111 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8112
6751ebae
TT
81132020-02-08 Tom Tromey <tom@tromey.com>
8114
8115 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8116 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8117 <keep>: Declare method.
8118 <m_keep>: Remove member.
8119 <~cutu_reader>: Remove.
8120 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8121 (cutu_reader::cutu_reader): Update.
8122 (cutu_reader::keep): Rename from ~cutu_reader.
8123 (process_psymtab_comp_unit, build_type_psymtabs_1)
8124 (process_skeletonless_type_unit, load_partial_comp_unit)
8125 (load_full_comp_unit, dwarf2_read_addr_index)
8126 (read_signatured_type): Update.
8127
135f5437
TT
81282020-02-08 Tom Tromey <tom@tromey.com>
8129
8130 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8131 "want_partial_unit" parameter.
8132 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8133 Inline check for DW_TAG_partial_unit.
8134 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8135
9f66ff1c
TT
81362020-02-08 Tom Tromey <tom@tromey.com>
8137
8138 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8139 read.c.
8140 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8141 read.c.
8142
c8a7a66f
TT
81432020-02-08 Tom Tromey <tom@tromey.com>
8144
8145 * dwarf2/read.c (read_address): Move to comp-unit.c.
8146 (dwarf2_rnglists_process, dwarf2_ranges_process)
8147 (read_attribute_value, dwarf_decode_lines_1)
8148 (var_decode_location, decode_locdesc): Update.
8149 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8150 read.c. Remove "cu" parameter.
8151 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8152 method.
8153
8266302d
TT
81542020-02-08 Tom Tromey <tom@tromey.com>
8155
8156 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8157 (read_indirect_line_string): Update.
8158 * dwarf2/comp-unit.c (read_offset): Remove.
8159 (read_comp_unit_head): Update.
8160 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8161 method.
8162 (read_offset): Don't declare.
8163
4057dfde
TT
81642020-02-08 Tom Tromey <tom@tromey.com>
8165
8166 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8167 * dwarf2/read.c (struct comp_unit_head): Move to
8168 dwarf2/comp-unit.h.
8169 (enum class rcuh_kind): Move to comp-unit.h.
8170 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8171 (read_comp_unit_head, error_check_comp_unit_head)
8172 (read_and_check_comp_unit_head): Move to comp-unit.c.
8173 (read_offset, dwarf_unit_type_name): Likewise.
8174 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8175 (cutu_reader::cutu_reader, read_call_site_scope)
8176 (find_partial_die, follow_die_offset): Update.
8177 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8178
24aa364d
TT
81792020-02-08 Tom Tromey <tom@tromey.com>
8180
8181 * dwarf2/read.c (read_offset_1): Move to leb.c.
8182 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8183 (dwarf_decode_macro_bytes): Update.
8184 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8185 * dwarf2/leb.h (read_offset): Declare.
8186
2c7d5afc
TT
81872020-02-08 Tom Tromey <tom@tromey.com>
8188
8189 * dwarf2/read.c (dwarf2_section_size): Remove.
8190 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8191 Update.
8192 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8193
4075cb26
TT
81942020-02-08 Tom Tromey <tom@tromey.com>
8195
8196 * dwarf2/read.c (read_initial_length): Move to leb.c.
8197 * dwarf2/leb.h (read_initial_length): Declare.
8198 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8199 handle_nonstd parameter.
8200 * dwarf2/frame.c (read_initial_length): Remove.
8201 (decode_frame_entry_1): Update.
8202
09ba997f
TT
82032020-02-08 Tom Tromey <tom@tromey.com>
8204
8205 * dwarf2/loc.c (dwarf2_find_location_expression)
8206 (dwarf_evaluate_loc_desc::get_tls_address)
8207 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8208 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8209 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8210 (dwarf2_compile_property_to_c)
8211 (dwarf2_loc_desc_get_symbol_read_needs)
8212 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8213 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8214 (loclist_describe_location, loclist_tracepoint_var_ref)
8215 (loclist_generate_c_location): Update.
8216 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8217 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8218 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8219 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8220 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8221 (dwarf2_per_cu_data::addr_size)
8222 (dwarf2_per_cu_data::ref_addr_size)
8223 (dwarf2_per_cu_data::text_offset)
8224 (dwarf2_per_cu_data::addr_type): Now methods.
8225 (per_cu_header_read_in): Make per_cu "const".
8226 (dwarf2_version): Remove.
8227 (dwarf2_per_cu_data::int_type): Now a method.
8228 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8229 (set_die_type, read_array_type, read_subrange_index_type)
8230 (read_tag_string_type, read_subrange_type): Update.
8231 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8232 offset_size, ref_addr_size, text_offset, addr_type, version,
8233 objfile, int_type, addr_sized_int_type>: Declare methods.
8234
96c738c0
TT
82352020-02-08 Tom Tromey <tom@tromey.com>
8236
8237 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8238 Move earlier.
8239
8fdd972c
TT
82402020-02-08 Tom Tromey <tom@tromey.com>
8241
8242 * dwarf2/read.h (dwarf_line_debug): Declare.
8243 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8244 * dwarf2/read.c: Move line_header code to new files.
8245 (dwarf_line_debug): No longer static.
8246 * dwarf2/line-header.c: New file.
8247 * dwarf2/line-header.h: New file.
8248
03075812
TT
82492020-02-08 Tom Tromey <tom@tromey.com>
8250
8251 * dwarf2/read.c (struct line_header) <file_full_name,
8252 file_file_name>: Return unique_xmalloc_ptr.
8253 (line_header::file_file_name): Update.
8254 (line_header::file_full_name): Update.
8255 (dw2_get_file_names_reader): Update.
8256 (macro_start_file): Update.
8257
bb822404
TT
82582020-02-08 Tom Tromey <tom@tromey.com>
8259
8260 * dwarf2/read.c (struct line_header) <file_full_name,
8261 file_file_name>: Declare methods.
8262 (dw2_get_file_names_reader): Update.
8263 (file_file_name): Now a method.
8264 (file_full_name): Likewise.
8265 (macro_start_file): Update.
8266
009b64fc
TT
82672020-02-08 Tom Tromey <tom@tromey.com>
8268
8269 * dwarf2/read.c (dwarf_always_disassemble)
8270 (show_dwarf_always_disassemble): Move to loc.c.
8271 (_initialize_dwarf2_read): Move "always-disassemble" registration
8272 to loc.c.
8273 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8274 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8275 static.
8276 (show_dwarf_always_disassemble): Move from read.c.
8277 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8278
5895093f
TT
82792020-02-08 Tom Tromey <tom@tromey.com>
8280
8281 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8282 (create_quick_file_names_table): Return htab_up.
8283 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8284 Update.
8285 * dwarf2/read.h (struct dwarf2_per_objfile)
8286 <quick_file_names_table>: Now htab_up.
8287
b3b32279
TT
82882020-02-08 Tom Tromey <tom@tromey.com>
8289
8290 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8291
1d33d811
TT
82922020-02-08 Tom Tromey <tom@tromey.com>
8293
8294 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8295 Rewrite.
8296 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8297 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8298 (abbrev_table::abbrev_table): No longer inline.
8299 (ABBREV_HASH_SIZE): Remove.
8300 (abbrev_table::m_abbrevs): Now an htab_up.
8301
86de1d91
TT
83022020-02-08 Tom Tromey <tom@tromey.com>
8303
8304 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8305 (cutu_reader): Update.
8306 (build_type_psymtabs_1): Update.
8307 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8308 (abbrev_table::alloc_abbrev): Update.
8309 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8310 (abbrev_table::read): New static method, renamed from
8311 abbrev_table_read_table.
8312 (abbrev_table::alloc_abbrev)
8313 (abbrev_table::add_abbrev): Now private.
8314 (abbrev_table::abbrev_table): Now private.
8315 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8316
0335378b
TT
83172020-02-08 Tom Tromey <tom@tromey.com>
8318
8319 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8320 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8321 htab_up.
8322
48b490f2
TT
83232020-02-08 Tom Tromey <tom@tromey.com>
8324
8325 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8326 htab_up.
8327 (lookup_dwo_unit_in_dwp): Update.
8328 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8329 on obstack.
8330
bc68fb19
TT
83312020-02-08 Tom Tromey <tom@tromey.com>
8332
8333 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8334 obstack.
8335
d15acc42
TT
83362020-02-08 Tom Tromey <tom@tromey.com>
8337
8338 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8339 line_header_hash.
8340 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8341 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8342 Change type to htab_up.
8343
eaa5fa8b
TT
83442020-02-08 Tom Tromey <tom@tromey.com>
8345
8346 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8347 htab_up. Don't allocate on obstack.
8348 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8349 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8350 Change type to htab_up.
8351
b0b6a987
TT
83522020-02-08 Tom Tromey <tom@tromey.com>
8353
8354 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8355 Change type to htab_up.
8356 * dwarf2/read.c (create_signatured_type_table_from_index)
8357 (create_signatured_type_table_from_debug_names)
8358 (create_all_type_units, add_type_unit)
8359 (lookup_dwo_signatured_type, lookup_signatured_type)
8360 (process_skeletonless_type_unit): Update.
8361 (create_debug_type_hash_table, create_debug_types_hash_table):
8362 Change type of types_htab.
8363 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8364 htab_up. Don't allocate on obstack.
8365 (create_cus_hash_table): Change type of cus_htab parameter.
8366 (struct dwo_file) <cus, tus>: Now htab_up.
8367 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8368 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8369 (queue_and_load_all_dwo_tus): Update.
8370 * dwarf2/index-write.c (write_gdbindex): Update.
8371 (write_debug_names): Update.
8372
39856def
TT
83732020-02-08 Tom Tromey <tom@tromey.com>
8374
8375 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8376 dwarf2/read.c. Remove "next" member. Add constructor ntad
8377 destructor.
8378 (struct dwarf2_per_objfile) <queue>: New member.
8379 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8380 dwarf2/read.h.
8381 (dwarf2_queue, dwarf2_queue_tail): Remove.
8382 (class dwarf2_queue_guard): Add parameter to constructor. Use
8383 DISABLE_COPY_AND_ASSIGN.
8384 <m_per_objfile>: New member.
8385 <~dwarf2_queue_guard>: Rewrite.
8386 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8387 Update.
8388 (~dwarf2_queue_item): New.
8389
3e225074
TT
83902020-02-08 Tom Tromey <tom@tromey.com>
8391
8392 * dwarf2/read.c (struct die_info) <has_children>: New member.
8393 (dw2_get_file_names_reader): Remove has_children.
8394 (dw2_get_file_names): Update.
8395 (read_cutu_die_from_dwo): Remove has_children.
8396 (cutu_reader::init_tu_and_read_dwo_dies)
8397 (cutu_reader::cutu_reader): Update.
8398 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8399 Remove has_children.
8400 (build_type_psymtabs_1, process_skeletonless_type_unit)
8401 (load_partial_comp_unit, load_full_comp_unit): Update.
8402 (create_dwo_cu_reader): Remove has_children.
8403 (create_cus_hash_table, read_die_and_children): Update.
8404 (read_full_die_1,read_full_die): Remove has_children.
8405 (read_signatured_type): Update.
8406 (class cutu_reader) <has_children>: Remove.
8407
82ca8957
TT
84082020-02-08 Tom Tromey <tom@tromey.com>
8409
8410 * dwarf2/expr.c: Rename from dwarf2expr.c.
8411 * dwarf2/expr.h: Rename from dwarf2expr.h.
8412 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8413 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8414 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8415 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8416 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8417 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8418 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8419 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8420 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8421 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8422 * dwarf2/loc.c: Rename from dwarf2loc.c.
8423 * dwarf2/loc.h: Rename from dwarf2loc.h.
8424 * dwarf2/read.c: Rename from dwarf2read.c.
8425 * dwarf2/read.h: Rename from dwarf2read.h.
8426 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8427 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8428 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8429 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8430 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8431 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8432 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8433 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8434 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8435 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8436 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8437 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8438 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8439 Update.
8440 * Makefile.in (COMMON_SFILES): Update.
8441 (HFILES_NO_SRCDIR): Update.
8442
9e35d499
TT
84432020-02-08 Tom Tromey <tom@tromey.com>
8444
8445 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8446 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8447
1eba2311
TT
84482020-02-08 Tom Tromey <tom@tromey.com>
8449
8450 * dwarf2read.h (struct die_info): Don't declare.
8451
e41c2da2
TT
84522020-02-08 Tom Tromey <tom@tromey.com>
8453
8454 * dwarf2read.h (die_info_ptr): Remove typedef.
8455
4fc6c0d5
TT
84562020-02-08 Tom Tromey <tom@tromey.com>
8457
8458 * dwarf2read.c (read_call_site_scope)
8459 (handle_data_member_location, dwarf2_add_member_fn)
8460 (mark_common_block_symbol_computed, read_common_block)
8461 (attr_to_dynamic_prop, partial_die_info::read)
8462 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8463 (dwarf2_symbol_mark_computed, set_die_type): Update.
8464 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8465 method.
8466 (attr_form_is_block): Don't declare.
8467 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8468
cd6c91b4
TT
84692020-02-08 Tom Tromey <tom@tromey.com>
8470
8471 * dwarf2read.c (dwarf2_find_base_address, )
8472 (read_call_site_scope, rust_containing_type)
8473 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8474 (handle_data_member_location, dwarf2_add_member_fn)
8475 (get_alignment, read_structure_type, process_structure_scope)
8476 (mark_common_block_symbol_computed, read_common_block)
8477 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8478 (partial_die_info::read, read_attribute_value, new_symbol)
8479 (lookup_die_type, dwarf2_get_ref_die_offset)
8480 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8481 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8482 (dwarf2_symbol_mark_computed): Update.
8483 * dwarf2/attribute.h (struct attribute) <value_as_address,
8484 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8485 methods.
8486 (value_as_address, attr_form_is_section_offset)
8487 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8488 * dwarf2/attribute.c (attribute::value_as_address)
8489 (attribute::form_is_section_offset, attribute::form_is_constant)
8490 (attribute::form_is_ref): Now methods.
8491
162dce55
TT
84922020-02-08 Tom Tromey <tom@tromey.com>
8493
8494 * dwarf2read.c (struct attribute, DW_STRING)
8495 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8496 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8497 (attr_form_is_block, attr_form_is_section_offset)
8498 (attr_form_is_constant, attr_form_is_ref): Move.
8499 * dwarf2/attribute.h: New file.
8500 * dwarf2/attribute.c: New file, from dwarf2read.c.
8501 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8502
3054dd54
TT
85032020-02-08 Tom Tromey <tom@tromey.com>
8504
8505 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8506 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8507 Move.
8508 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8509 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8510 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8511 abbrev.c.
8512 * dwarf2/abbrev.h: New file.
8513 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8514 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8515
96b79293
TT
85162020-02-08 Tom Tromey <tom@tromey.com>
8517
8518 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8519 (dwarf2_section_size, dwarf2_get_section_info)
8520 (create_signatured_type_table_from_debug_names)
8521 (create_addrmap_from_aranges, read_debug_names_from_section)
8522 (get_gdb_index_contents_from_section, read_comp_unit_head)
8523 (error_check_comp_unit_head, read_abbrev_offset)
8524 (create_debug_type_hash_table, init_cu_die_reader)
8525 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8526 (read_comp_units_from_section, create_cus_hash_table)
8527 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8528 (create_dwp_v2_section, dwarf2_rnglists_process)
8529 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8530 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8531 (read_indirect_string_from_dwz, read_addr_index_1)
8532 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8533 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8534 (fill_in_loclist_baton): Update.
8535 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8536 get_containing_section, get_bfd_owner, get_bfd_section,
8537 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8538 (dwarf2_read_section, get_section_name, get_section_file_name)
8539 (get_containing_section, get_section_bfd_owner)
8540 (get_section_bfd_section, get_section_name, get_section_file_name)
8541 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8542 declare.
8543 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8544 (dwarf2_section_info::get_bfd_owner)
8545 (dwarf2_section_info::get_bfd_section)
8546 (dwarf2_section_info::get_name)
8547 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8548 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8549 (dwarf2_section_info::read): Now methods.
8550 * dwarf-index-write.c (class debug_names): Update.
8551
2c86cff9
TT
85522020-02-08 Tom Tromey <tom@tromey.com>
8553
8554 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8555 Move to dwarf2/section.h.
8556 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8557 (get_section_bfd_section, get_section_name)
8558 (get_section_file_name, get_section_id, get_section_flags)
8559 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8560 dwarf2/section.c.
8561 * dwarf2/section.h: New file.
8562 * dwarf2/section.c: New file, from dwarf2read.c.
8563 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8564
f4382c45
TT
85652020-02-08 Tom Tromey <tom@tromey.com>
8566
8567 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8568 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8569 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8570 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8571 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8572 * dwarf2/leb.h: New file, from dwarf2read.c.
8573 * dwarf2/leb.c: New file, from dwarf2read.c.
8574 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8575 Remove.
8576 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8577 (COMMON_SFILES): Add dwarf2/leb.c.
8578
01840b7a
JB
85792020-02-08 Joel Brobecker <brobecker@adacore.com>
8580
8581 GDB 9.1 released.
8582
dfcb27e4
IB
85832020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8584
8585 PR gdb/25190:
aac66a4c
SM
8586 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8587 * gdb/remote.c (remote_console_output): Update.
8588 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8589 (ui_file_puts): ...this.
8590 * gdb/ui-file.h (ui_file_puts): Add declaration.
8591 * gdb/utils.c (emit_style_escape): Update.
8592 (flush_wrap_buffer): Update.
8593 (fputs_maybe_filtered): Update.
8594 (fputs_unfiltered): Add function.
dfcb27e4 8595
faa17681
IB
85962020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8597
aac66a4c
SM
8598 * gdb/event-loop.c (gdb_wait_for_event): Update.
8599 * gdb/printcmd.c (printf_command): Update.
8600 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8601 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8602 (gdb_os_flush_stderr): Update.
8603 * gdb/remote.c (remote_console_output): Update.
8604 * gdb/ui-file.c (gdb_flush): Rename to...
8605 (ui_file_flush): ...this.
8606 (stderr_file::write): Update.
8607 (stderr_file::puts): Update.
8608 * gdb/ui-file.h (gdb_flush): Rename to...
8609 (ui_file_flush): ...this.
8610 * gdb/utils.c (gdb_flush): Add function.
8611 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8612
5abbbe1d
TT
86132020-02-07 Tom Tromey <tromey@adacore.com>
8614
8615 PR breakpoints/24915:
8616 * source.c (find_and_open_source): Do not check basenames_may_differ.
8617
919adfe8
TT
86182020-02-07 Tom Tromey <tom@tromey.com>
8619
8620 * README: Update gdbserver documentation.
8621 * gdbserver: Move to top level.
8622 * configure.tgt (build_gdbserver): Remove.
8623 * configure.ac: Remove --enable-gdbserver.
8624 * configure: Rebuild.
8625 * Makefile.in (distclean): Don't mention gdbserver.
8626
1d5d29e7
SV
86272020-02-06 Shahab Vahedi <shahab@synopsys.com>
8628
8629 * source-cache.c (source_cache::ensure): Surround
8630 get_plain_source_lines with a try/catch.
8631 (source_cache::get_line_charpos): Get rid of try/catch
8632 and only check for the return value of "ensure".
8633 * tui/tui-source.c (tui_source_window::set_contents):
8634 Simplify "nlines" calculation.
8635
6eb1129c
SV
86362020-02-06 Shahab Vahedi <shahab@synopsys.com>
8637
8638 * MAINTAINERS (Write After Approval): Add myself.
8639
c6a42d11
CB
86402020-02-05 Christian Biesinger <cbiesinger@google.com>
8641
8642 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8643 function call.
8644
c8ecdda6
CB
86452020-02-05 Christian Biesinger <cbiesinger@google.com>
8646
8647 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8648
f6480e70
MR
86492020-02-05 Maciej W. Rozycki <macro@wdc.com>
8650
8651 * nat/riscv-linux-tdesc.h: New file.
8652 * nat/riscv-linux-tdesc.c: New file, taking code from...
8653 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8654 ... here.
8655 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8656 NATDEPFILES.
8657
dcc9fbc6
AB
86582020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8659
8660 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8661 we don't set the fake simulator ptid to the null_ptid.
8662
719546c4
SM
86632020-02-03 Simon Marchi <simon.marchi@efficios.com>
8664
8665 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8666 * gdbthread.h (class thread_info) <resumed>: Likewise.
8667 * infrun.c (resume_1): Likewise.
8668 (proceed): Likewise.
8669 (infrun_thread_stop_requested): Likewise.
8670 (stop_all_threads): Likewise.
8671 (handle_inferior_event): Likewise.
8672 (restart_threads): Likewise.
8673 (finish_step_over): Likewise.
8674 (keep_going_stepped_thread): Likewise.
8675 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8676 (linux_handle_extended_wait): Likewise.
8677 * record-btrace.c (get_thread_current_frame_id): Likewise.
8678 * record-full.c (record_full_wait_1): Likewise.
8679 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8680 * target.c (target_resume): Likewise.
8681 * thread.c (set_running_thread): Likewise.
8682
e409c542
AKS
86832020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8684
8685 * f-valprint.c (f77_print_array_1): Changed datatype of index
8686 variable to LONGEST from int to enable it to contain bound
8687 values correctly.
8688
ee98c0da
MR
86892020-02-03 Maciej W. Rozycki <macro@wdc.com>
8690
8691 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8692 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8693 offsets according to FLEN determined.
8694 (riscv_linux_nat_target::read_description): Determine FLEN
8695 dynamically.
8696 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8697 according to FLEN determined.
8698 (riscv_linux_nat_target::store_registers): Likewise.
8699
aa66aac4
SV
87002020-02-01 Shahab Vahedi <shahab@synopsys.com>
8701
8702 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8703 when reg->group is empty and reggroup is not.
8704
fd9faca8
TT
87052020-01-31 Tom Tromey <tromey@adacore.com>
8706
8707 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8708 Call beneath target's mourn_inferior after unpushing.
8709
42330a68
AB
87102020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8711
8712 PR tui/9765
8713 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8714 have enough lines to fill the screen, still return the lowest
8715 address we found.
8716
7a27a45b
AB
87172020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8718
8719 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8720 '-', '<', and '>' commands.
8721
c47f70e2
PA
87222020-01-29 Pedro Alves <palves@redhat.com>
8723 Sergio Durigan Junior <sergiodj@redhat.com>
8724
8725 * infcmd.c (construct_inferior_arguments): Assert that
8726 'argc' is greater than 0.
8727
5133a315
LM
87282020-01-29 Luis Machado <luis.machado@linaro.org>
8729
8730 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8731 (BRK_INSN_MASK): Define to 0xd4200000.
8732 (aarch64_program_breakpoint_here_p): New function.
8733 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8734 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8735 breakpoint.c.
8736 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8737 breakpoint.h
8738 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8739 call gdbarch_program_breakpoint_here_p.
8740 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8741 default_program_breakpoint_here_p, changed return type to bool and
8742 simplified.
8743 * breakpoint.h (program_breakpoint_here): Moved prototype to
8744 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8745 return type to bool.
8746 * gdbarch.c: Regenerate.
8747 * gdbarch.h: Regenerate.
8748 * gdbarch.sh (program_breakpoint_here_p): New method.
8749 * infrun.c (handle_signal_stop): Call
8750 gdbarch_program_breakpoint_here_p.
8751
168f8c6b
TT
87522020-01-26 Tom Tromey <tom@tromey.com>
8753
8754 * ctfread.c (struct ctf_fp_info): Reindent.
8755 (_initialize_ctfread): Remove.
8756
128a391f
TT
87572020-01-26 Tom Tromey <tom@tromey.com>
8758
8759 * psymtab.c (partial_map_expand_apply)
8760 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8761 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8762 (psym_print_stats, psym_expand_symtabs_for_function)
8763 (psym_map_symbol_filenames, psym_map_matching_symbols)
8764 (psym_expand_symtabs_matching)
8765 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8766 (maintenance_check_psymtabs): Use new methods.
8767 * psympriv.h (struct partial_symtab) <readin_p,
8768 get_compunit_symtab>: New methods.
8769 <readin, compunit_symtab>: Remove members.
8770 (struct standard_psymtab): New.
8771 (struct legacy_psymtab): Derive from standard_psymtab.
8772 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8773 standard_psymtab.
8774 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8775
0494dbec
TT
87762020-01-26 Tom Tromey <tom@tromey.com>
8777
8778 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8779 read_dependencies. Add assert.
8780 * psymtab.c (partial_symtab::read_dependencies): New method.
8781 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8782 method.
8783 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8784 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8785 read_dependencies.
8786 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8787 Add assert.
8788
8566b89b
TT
87892020-01-26 Tom Tromey <tom@tromey.com>
8790
8791 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8792 Call expand_psymtab.
8793 (xcoff_read_symtab): Call expand_psymtab.
8794 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8795 legacy_expand_psymtab.
8796 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8797 method.
8798 (struct legacy_psymtab) <expand_psymtab>: Implement.
8799 <legacy_expand_psymtab>: New member.
8800 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8801 (parse_partial_symbols): Set legacy_expand_psymtab.
8802 (psymtab_to_symtab_1): Change argument order. Call
8803 expand_psymtab.
8804 (new_psymtab): Set legacy_expand_psymtab.
8805 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8806 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8807 expand_psymtab.
8808 (dwarf2_psymtab::expand_psymtab): Rename from
8809 psymtab_to_symtab_1. Call expand_psymtab.
8810 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8811 (dbx_end_psymtab): Likewise.
8812 (dbx_psymtab_to_symtab_1): Change argument order. Call
8813 expand_psymtab.
8814 (dbx_read_symtab): Call expand_psymtab.
8815 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8816 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8817 (ctf_psymtab::read_symtab): Call expand_psymtab.
8818
077cbab2
TT
88192020-01-26 Tom Tromey <tom@tromey.com>
8820
8821 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8822 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8823 messages.
8824 * mdebugread.c (mdebug_read_symtab): Remove prints.
8825 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8826 assert.
8827 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8828
891813be
TT
88292020-01-26 Tom Tromey <tom@tromey.com>
8830
8831 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8832 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8833 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8834 legacy_symtab.
8835 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8836 * psymtab.c (psymtab_to_symtab): Call method.
8837 (dump_psymtab): Update.
8838 * psympriv.h (struct partial_symtab): Add virtual destructor.
8839 <read_symtab>: New method.
8840 (struct legacy_symtab): New.
8841 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8842 (struct pst_map) <pst>: Now a legacy_psymtab.
8843 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8844 (new_psymtab): Use legacy_psymtab.
8845 * dwarf2read.h (struct dwarf2_psymtab): New.
8846 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8847 * dwarf2read.c (dwarf2_create_include_psymtab)
8848 (dwarf2_build_include_psymtabs, create_type_unit_group)
8849 (create_partial_symtab, process_psymtab_comp_unit_reader)
8850 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8851 (set_partial_user): Use dwarf2_psymtab.
8852 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8853 (psymtab_to_symtab_1, process_full_comp_unit)
8854 (process_full_type_unit, dwarf2_ranges_read)
8855 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8856 (dwarf_decode_lines): Use dwarf2_psymtab.
8857 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8858 (add_address_entry_worker, write_one_signatured_type)
8859 (recursively_count_psymbols, recursively_write_psymbols)
8860 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8861 (write_debug_names): Likewise.
8862 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8863 <pst>: Now a legacy_psymtab.
8864 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8865 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8866 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8867 * ctfread.c (struct ctf_psymtab): New.
8868 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8869 ctf_psymtab.
8870 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
8871 (create_partial_symtab): Return a ctf_psymtab.
8872 (scan_partial_symbols): Update.
8873
c3693a1d
TT
88742020-01-26 Tom Tromey <tom@tromey.com>
8875
8876 * xcoffread.c (xcoff_start_psymtab): Use new.
8877 * psymtab.c (partial_symtab::partial_symtab): New constructor,
8878 renamed from start_psymtab_common.
8879 * psympriv.h (struct partial_symtab): Add new constructor.
8880 (start_psymtab_common): Don't declare.
8881 * mdebugread.c (parse_partial_symbols): Use new.
8882 * dwarf2read.c (create_partial_symtab): Use new.
8883 * dbxread.c (start_psymtab): Use new.
8884 * ctfread.c (create_partial_symtab): Use new.
8885
32caafd0
TT
88862020-01-26 Tom Tromey <tom@tromey.com>
8887
8888 * xcoffread.c (xcoff_end_psymtab): Use new.
8889 * psymtab.c (start_psymtab_common): Use new.
8890 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
8891 Update.
8892 * psympriv.h (struct partial_symtab): Add parameters to
8893 constructor. Don't inline.
8894 (allocate_psymtab): Don't declare.
8895 * mdebugread.c (new_psymtab): Use new.
8896 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
8897 * dbxread.c (dbx_end_psymtab): Use new.
8898
abaa2f23
TT
88992020-01-26 Tom Tromey <tom@tromey.com>
8900
8901 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
8902 allocate_psymtab. Update documentation.
8903 * psymtab.c (psymtab_storage::install_psymtab): Rename from
8904 allocate_psymtab. Do not use new.
8905 (allocate_psymtab): Use new. Update.
8906
6d94535f
TT
89072020-01-26 Tom Tromey <tom@tromey.com>
8908
8909 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8910 * psymtab.c (psym_print_stats): Update.
8911 * psympriv.h (struct partial_symtab) <readin,
8912 psymtabs_addrmap_supported, anonymous>: Now bool.
8913 * mdebugread.c (psymtab_to_symtab_1): Update.
8914 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
8915 (build_type_psymtabs_reader, psymtab_to_symtab_1)
8916 (process_full_comp_unit, process_full_type_unit): Update.
8917 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8918 * ctfread.c (psymtab_to_symtab): Update.
8919
6f17252b
TT
89202020-01-26 Tom Tromey <tom@tromey.com>
8921
8922 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
8923 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
8924 * psymtab.c (psymtab_storage): Delete psymtabs.
8925 (psymtab_storage::allocate_psymtab): Use new.
8926 (psymtab_storage::discard_psymtab): Use delete.
8927 * psympriv.h (struct partial_symtab): Add constructor and
8928 initializers.
8929
f6f1cebc
TT
89302020-01-26 Tom Tromey <tom@tromey.com>
8931
8932 * machoread.c: Do not include psympriv.h.
8933
e47e48f6
PW
89342020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8935
8936 * NEWS: Mention the new option and the set/show commands.
8937
a2fedca9
PW
89382020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8939
8940 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
8941 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
8942 (validate_exec_file): New variables, enums, functions.
8943 (exec_file_locate_attach, print_section_info): Style the filenames.
8944 (_initialize_exec): Install show_exec_file_mismatch_command and
8945 set_exec_file_mismatch_command.
8946 * gdbcore.h (validate_exec_file): Declare.
8947 * infcmd.c (attach_command): Call validate_exec_file.
8948 * remote.c ( remote_target::remote_add_inferior): Likewise.
8949
7ffa82e1
AB
89502020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8951
8952 * frame.c (find_frame_sal): Move call to get_next_frame into more
8953 inner scope.
8954 * inline-frame.c (inilne_state) <inline_state>: Update argument
8955 types.
8956 (inilne_state) <skipped_symbol>: Rename to...
8957 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
8958 (skip_inline_frames): Build vector of skipped symbols and use this
8959 to reate the inline_state.
8960 (inline_skipped_symbol): Add a comment and some assertions, fetch
8961 skipped symbol from the list.
8962
3d92a3e3
AB
89632020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8964
8965 * buildsym.c (lte_is_less_than): Delete.
8966 (buildsym_compunit::end_symtab_with_blockvector): Create local
8967 lambda function to sort line table entries, and use
8968 std::stable_sort instead of std::sort.
8969 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
8970 markers when looking for a previous line.
8971
94a72be7
AB
89722020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8973
8974 * dwarf2read.c (lnp_state_machine::record_line): Include
8975 end_sequence parameter in debug print out. Record the line if we
8976 are at an end_sequence marker even if it's not the start of a
8977 statement.
8978 * symmisc.c (maintenance_print_one_line_table): Print end of
8979 sequence markers with 'END' not '0'.
8980
53af73bf
PA
89812020-01-24 Pedro Alves <palves@redhat.com>
8982
8983 PR gdb/25410
8984 * thread.c (scoped_restore_current_thread::restore): Use
8985 switch_to_inferior_no_thread.
8986 * exec.c: Include "progspace-and-thread.h".
8987 (add_target_sections, remove_target_sections):
8988 scoped_restore_current_pspace_and_thread instead of
8989 scoped_restore_current_thread.
8990 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
8991 and aspace to the inferior before calling clone_program_space.
8992 Remove stale comment.
8993
3050c6f4
CB
89942020-01-24 Christian Biesinger <cbiesinger@google.com>
8995
8996 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
8997 (arm_netbsd_nat_target::fetch_registers): ...this.
8998 (arm_nbsd_nat_target::store_registers): Rename to...
8999 (arm_netbsd_nat_target::store_registers): ...this.
9000
73685c7e
CB
90012020-01-24 Christian Biesinger <cbiesinger@google.com>
9002
9003 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9004 register_t.
9005
89203d40
CB
90062020-01-24 Christian Biesinger <cbiesinger@google.com>
9007
9008 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9009 Update comment.
9010 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9011 Likewise.
9012 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9013 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9014 the correct replacement (iterate_over_regset_sections).
9015 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9016 Update comment.
9017
1ba1ac88
AB
90182020-01-24 Graham Markall <graham.markall@embecosm.com>
9019
9020 PR gdb/23718
9021 * gdb/python/python.c (execute_gdb_command): Call
9022 async_enable_stdin in catch block.
9023
f3364a6d
AB
90242020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9025
9026 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9027 SWITCH_THRU_ALL_UIS.
9028
733d0a67
AB
90292020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9030
9031 PR tui/9765
9032 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9033 comment, add extra parameter, and update to store previous symbol
9034 when appropriate.
9035 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9036 add extra parameter.
9037 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9038 remove unneeded parameter, add try/catch around gdb_print_insn,
9039 rewrite to add items to asm_lines vector.
9040 (tui_find_backward_disassembly_start_address): New function.
9041 (tui_find_disassembly_address): Updated throughout.
9042 (tui_disasm_window::set_contents): Update for changes to
9043 tui_disassemble.
9044 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9045 number of lines to scroll.
9046
b3b3bada
SM
90472020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9048
9049 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9050 (SECT_OFF_DATA): Likewise.
9051 (SECT_OFF_RODATA): Likewise.
9052 (SECT_OFF_TEXT): Likewise.
9053 (SECT_OFF_BSS): Likewise.
9054 (struct objfile) <text_section_offset, data_section_offset>: New
9055 methods.
9056 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9057 objfile::text_section_offset.
9058 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9059 * coffread.c (coff_symtab_read): Likewise.
9060 (enter_linenos): Likewise.
9061 (process_coff_symbol): Likewise.
9062 * ctfread.c (get_objfile_text_range): Likewise.
9063 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9064 Use objfile::data_section_offset.
9065 * dwarf2-frame.c (execute_cfa_program): Use
9066 objfile::text_section_offset.
9067 (dwarf2_frame_find_fde): Likewise.
9068 * dwarf2read.c (create_addrmap_from_index): Likewise.
9069 (create_addrmap_from_aranges): Likewise.
9070 (dw2_find_pc_sect_compunit_symtab): Likewise.
9071 (process_psymtab_comp_unit_reader): Likewise.
9072 (add_partial_symbol): Likewise.
9073 (add_partial_subprogram): Likewise.
9074 (process_full_comp_unit): Likewise.
9075 (read_file_scope): Likewise.
9076 (read_func_scope): Likewise.
9077 (read_lexical_block_scope): Likewise.
9078 (read_call_site_scope): Likewise.
9079 (dwarf2_rnglists_process): Likewise.
9080 (dwarf2_ranges_process): Likewise.
9081 (dwarf2_ranges_read): Likewise.
9082 (dwarf_decode_lines_1): Likewise.
9083 (new_symbol): Likewise.
9084 (dwarf2_fetch_die_loc_sect_off): Likewise.
9085 (dwarf2_per_cu_text_offset): Likewise.
9086 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9087 * hppa-tdep.c (read_unwind_info): Likewise.
9088 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9089 * psympriv.h (struct partial_symtab): Likewise.
9090 * psymtab.c (find_pc_sect_psymtab): Likewise.
9091 * solib-svr4.c (enable_break): Likewise.
9092 * stap-probe.c (relocate_address): Use
9093 objfile::data_section_offset.
9094 * xcoffread.c (enter_line_range): Use
9095 objfile::text_section_offset.
9096 (read_xcoff_symtab): Likewise.
9097
ab53f382
SM
90982020-01-23 Simon Marchi <simon.marchi@efficios.com>
9099
9100 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9101 declaration to narrower scopes.
9102
e7eee665
SM
91032020-01-23 Simon Marchi <simon.marchi@efficios.com>
9104
9105 * darwin-nat.h (struct darwin_exception_msg, enum
9106 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9107 Move up.
9108 (class darwin_nat_target) <wait_1, check_new_threads,
9109 decode_exception_message, decode_message, stop_inferior,
9110 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9111 * darwin-nat.c (darwin_check_new_threads): Rename to...
9112 (darwin_nat_target::check_new_threads): ... this.
9113 (darwin_suspend_inferior_it): Remove.
9114 (darwin_decode_exception_message): Rename to...
9115 (darwin_nat_target::decode_exception_message): ... this.
9116 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9117 (darwin_decode_message): Rename to...
9118 (darwin_nat_target::decode_message): ... this.
9119 (cancel_breakpoint): Rename to...
9120 (darwin_nat_target::cancel_breakpoint): ... this.
9121 (darwin_wait): Rename to...
9122 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9123 instead of iterate_over_inferiors.
9124 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9125 (darwin_stop_inferior): Rename to...
9126 (darwin_nat_target::stop_inferior): ... this.
9127 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9128 (darwin_init_thread_list): Rename to...
9129 (darwin_nat_target::init_thread_list): ... this.
9130 (darwin_ptrace_him): Rename to...
9131 (darwin_nat_target::ptrace_him): ... this.
9132 (darwin_nat_target::create_inferior): Pass lambda function to
9133 fork_inferior.
9134 (darwin_nat_target::detach): Call stop_inferior instead of
9135 darwin_stop_inferior.
9136 * fork-inferior.h (fork_inferior): Change init_trace_fun
9137 parameter to gdb::function_view.
9138 * fork-inferior.c (fork_inferior): Likewise.
9139
c162ed3e
HD
91402020-01-23 Hannes Domani <ssbssa@yahoo.de>
9141
9142 * i386-cygwin-tdep.c (core_process_module_section): Update.
9143 * windows-nat.c (struct lm_info_windows): Add text_offset.
9144 (windows_xfer_shared_libraries): Update.
9145 * windows-tdep.c (windows_xfer_shared_library):
9146 Add text_offset_cached argument.
9147 * windows-tdep.h (windows_xfer_shared_library): Update.
9148
a1237872
SM
91492020-01-21 Simon Marchi <simon.marchi@efficios.com>
9150
9151 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9152
b3ee6dd9
SM
91532020-01-21 Simon Marchi <simon.marchi@efficios.com>
9154
9155 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9156 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9157 replace with range-based for.
9158 (gdbsim_interrupt_inferior): Remove.
9159 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9160 with a range-based for. Inline code from
9161 gdbsim_interrupt_inferior.
9162
f9fac3c8
SM
91632020-01-21 Simon Marchi <simon.marchi@efficios.com>
9164
9165 * infrun.c (proceed): Fix indentation.
9166
f6474de9
TT
91672020-01-21 Tom Tromey <tromey@adacore.com>
9168
9169 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9170 * python/python.c (python_extension_ops): Update.
9171 (gdbpy_colorize): New function.
9172 * python/lib/gdb/__init__.py (colorize): New function.
9173 * extension.h (ext_lang_colorize): Declare.
9174 * extension.c (ext_lang_colorize): New function.
9175 * extension-priv.h (struct extension_language_ops) <colorize>: New
9176 member.
9177 * cli/cli-style.c (_initialize_cli_style): Update help text.
9178
f0c702d4
LM
91792020-01-21 Luis Machado <luis.machado@linaro.org>
9180
9181 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9182 <cond>: Change type to bool.
9183 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9184 (aarch64_displaced_step_cb): Likewise.
9185 (aarch64_displaced_step_tb): Likewise.
9186
1ab139e5
LM
91872020-01-21 Luis Machado <luis.machado@linaro.org>
9188
9189 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9190 output.
9191
0c271889
LM
91922020-01-21 Luis Machado <luis.machado@linaro.org>
9193
9194 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9195 <pc_adjust>: Adjust the documentation.
9196 (aarch64_displaced_step_fixup): Check if PC really moved before
9197 adjusting it.
9198
4d89c1c7
TT
91992020-01-19 Tom Tromey <tom@tromey.com>
9200
9201 * disasm.c (~gdb_disassembler): New destructor.
9202 (gdb_buffered_insn_length): Call disassemble_free_target.
9203 * disasm.h (class gdb_disassembler): Declare destructor. Use
9204 DISABLE_COPY_AND_ASSIGN.
9205
c0ab21c2
TT
92062020-01-19 Tom Tromey <tom@tromey.com>
9207
9208 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9209 (die_reader_func_ftype): Remove.
9210 (cutu_reader): New class.
9211 (dw2_get_file_names_reader): Remove "data" parameter.
9212 (dw2_get_file_names): Use cutu_reader.
9213 (create_debug_type_hash_table): Update.
9214 (read_cutu_die_from_dwo): Update comment.
9215 (lookup_dwo_unit): Add dwo_name parameter.
9216 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9217 die_reader_func_ftype and data parameters.
9218 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9219 Remove die_reader_func_ftype and data parameters.
9220 (~cutu_reader): New; from init_cutu_and_read_dies.
9221 (cutu_reader::cutu_reader): Rename from
9222 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9223 and data parameters.
9224 (init_cutu_and_read_dies_simple): Remove.
9225 (struct process_psymtab_comp_unit_data): Remove.
9226 (process_psymtab_comp_unit_reader): Remove data parameter; add
9227 want_partial_unit and pretend_language parameters.
9228 (process_psymtab_comp_unit): Use cutu_reader.
9229 (build_type_psymtabs_reader): Remove data parameter.
9230 (build_type_psymtabs_1): Use cutu_reader.
9231 (process_skeletonless_type_unit): Likewise.
9232 (load_partial_comp_unit_reader): Remove.
9233 (load_partial_comp_unit): Use cutu_reader.
9234 (load_full_comp_unit_reader): Remove.
9235 (load_full_comp_unit): Use cutu_reader.
9236 (struct create_dwo_cu_data): Remove.
9237 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9238 dwo_unit parameters.
9239 (create_cus_hash_table): Use cutu_reader.
9240 (struct dwarf2_read_addr_index_data): Remove.
9241 (dwarf2_read_addr_index_reader): Remove.
9242 (dwarf2_read_addr_index): Use cutu_reader.
9243 (read_signatured_type_reader): Remove.
9244 (read_signatured_type): Use cutu_reader.
9245
45bbae5c
TT
92462020-01-19 Tom Tromey <tom@tromey.com>
9247
9248 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9249 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9250 (tui_wrefresh): Declare.
9251 * tui/tui-wingeneral.c (suppress_output): New global.
9252 (tui_suppress_output, ~tui_suppress_output): New constructor and
9253 destructor.
9254 (tui_wrefresh): New function.
9255 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9256 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9257 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9258 method.
9259 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9260 tui_wrefresh.
9261 (tui_data_window::no_refresh): New method.
9262 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9263 (tui_reg_command): Use tui_suppress_output
9264 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9265 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9266 method.
9267 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9268
4f13c1c0
TT
92692020-01-19 Tom Tromey <tom@tromey.com>
9270
9271 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9272 Handle case where symtab is null.
9273
fa47e446
SM
92742020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9275
9276 * linux-fork.c (one_fork_p): Simplify.
9277
26f42329
SM
92782020-01-17 Simon Marchi <simon.marchi@efficios.com>
9279
9280 * top.c (struct qt_args): Remove.
9281 (kill_or_detach): Change return type to void, replace `void *`
9282 parameter with a proper one.
9283 (print_inferior_quit_action): Likewise.
9284 (quit_confirm): Use range-based for loop to iterate over inferiors.
9285 (quit_force): Likewise.
9286
a9ac81b1
SM
92872020-01-17 Simon Marchi <simon.marchi@efficios.com>
9288
9289 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9290 `void *` parameter with proper parameters.
9291 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9292 (print_one_inferior): Change return type to void, replace `void *`
9293 parameter with proper parameters.
9294 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9295 inferiors.
9296 (get_other_inferior): Remove.
9297 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9298 inferiors.
9299
788eca49
SM
93002020-01-17 Simon Marchi <simon.marchi@efficios.com>
9301
9302 * mi/mi-interp.c (report_initial_inferior): Remove.
9303 (mi_interp::init): Use range-based for to iterate over inferiors.
9304
d9bc85b6
SM
93052020-01-17 Simon Marchi <simon.marchi@efficios.com>
9306
9307 * python/py-inferior.c (build_inferior_list): Remove.
9308 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9309
40c94099
CB
93102020-01-16 Christian Biesinger <cbiesinger@google.com>
9311
9312 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9313 (btrace_stitch_trace): Likewise.
9314 * charset.c (intermediate_encoding): Likewise (vaild).
9315 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9316 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9317 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9318
e0cdfe3c
HD
93192020-01-16 Hannes Domani <ssbssa@yahoo.de>
9320
9321 * windows-tdep.c (windows_get_tlb_type):
9322 Add rtl_user_process_parameters type.
9323
790f1718 93242020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9325 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9326
9327 PR build/24805
9328 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9329 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9330 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9331 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9332 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9333 (ps_plog): Redeclare exported functions with default visibility.
9334
3112ed97
NA
93352020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9336
9337 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9338 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9339
8dc3273e
SM
93402020-01-15 Simon Marchi <simon.marchi@efficios.com>
9341
9342 * infcmd.c (post_create_inferior): Use get_thread_regcache
9343 instead of get_current_regcache.
9344
ff47f4f0
TT
93452020-01-14 Tom Tromey <tom@tromey.com>
9346
9347 PR symtab/12535:
9348 * python/python.c (gdbpy_decode_line): Treat empty string the same
9349 as no argument.
9350
975f45b7
TT
93512020-01-14 Tom Tromey <tom@tromey.com>
9352
9353 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9354
25e57356
TT
93552020-01-14 Tom Tromey <tom@tromey.com>
9356
9357 * nat/linux-btrace.c: Don't include <config.h>.
9358 * nat/linux-ptrace.c: Don't include <config.h>.
9359 * nat/x86-linux-dregs.c: Don't include <config.h>.
9360
05ea2a05
TT
93612020-01-14 Tom Tromey <tom@tromey.com>
9362
9363 * configure: Rebuild.
9364 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9365
01027315
TT
93662020-01-14 Tom Tromey <tom@tromey.com>
9367
9368 * nat/x86-linux-dregs.c: Include configh.h.
9369 * nat/linux-ptrace.c: Include configh.h.
9370 * nat/linux-btrace.c: Include configh.h.
9371 * defs.h: Include config.h, bfd.h.
9372 * configure.ac: Don't source common.host.
9373 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9374 * configure: Rebuild.
9375 * acinclude.m4: Update path.
9376 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9377 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9378 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9379 (CLIBS): Add LIBSUPPORT.
9380 (CDEPS): Likewise.
9381 (COMMON_SFILES): Remove gdbsupport files.
9382 (HFILES_NO_SRCDIR): Likewise.
9383 (stamp-version): Update path to create-version.sh.
9384 (ALLDEPFILES): Remove gdbsupport files.
9385
b2ceabe8
TT
93862020-01-14 Tom Tromey <tom@tromey.com>
9387
9388 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9389 USE_WIN32API when needed.
9390 * configure.ac (USE_WIN32API): Don't define.
9391 (WIN32LIBS): Use WIN32APILIBS.
9392 * configure: Rebuild.
9393
25c51f71
TT
93942020-01-14 Tom Tromey <tom@tromey.com>
9395
9396 * configure: Rebuild.
9397 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9398
717c684d
BE
93992020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9400
9401 * skip.c (skip_function_command): Make skip w/o arguments use the
9402 name of the inlined function if pc is inside any inlined function.
9403
7da6a5b9
LM
94042020-01-14 Luis Machado <luis.machado@linaro.org>
9405
9406 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9407 * infrun.c (resume_1): Likewise.
9408 (handle_inferior_event): Remove stale comment.
9409 * linux-nat.c (linux_nat_target::resume): Update comments.
9410 (save_stop_reason): Likewise.
9411 (linux_nat_filter_event): Likewise.
9412 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9413
44e4c775
AB
94142020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9415
9416 * elfread.c (record_minimal_symbol): Set section index to 0 for
9417 non-allocatable sections.
9418
18a8505e
AT
9419
94202020-01-13 Ali Tamur <tamur@google.com>
9421
9422 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9423 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9424 to gdb::optional. Update comments.
9425 (dwo_file): Update comments.
9426 (read_attribute): Update API to take an additional out parameter,
9427 need_reprocess. This is used to mark attributes that need other
9428 attributes (e.g. str_offsets_base) for correct computation which may not
9429 have been read yet.
9430 (read_attribute_reprocess): New function declaration.
9431 (read_addr_index): Likewise.
9432 (read_dwo_str_index): Likewise.
9433 (read_stub_str_index): Likewise.
9434 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9435 (lookup_addr_base): New function definition.
9436 (lookup_ranges_base): Likewise.
9437 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9438 lookup_ranges_base.
9439 (init_cutu_and_read_dies): Update comments.
9440 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9441 unit. This is used to inherit parent's str_offsets_base and addr_base.
9442 Update comments.
9443 (init_cutu_and_read_dies_simple): Reflect API changes.
9444 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9445 (create_cus_hash_table): Change API to take parent compile unit.
9446 Reflect API changes.
9447 (open_and_init_dwo_file): Reflect API changes.
9448 (dwarf2_get_pc_bounds): Update comments.
9449 (dwarf2_record_block_ranges): Likewise.
9450 (read_full_die_1): Change implementation to reprocess attributes that
9451 need str_offsets_base and addr_base.
9452 (partial_die_info::read): Likewise.
9453 (read_attribute_reprocess): New function definition.
9454 (read_attribute_value): Change API to take an additional out parameter,
9455 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9456 when a non-dwo compile unit has index based attributes.
9457 (read_attribute): Reflect API changes.
9458 (read_addr_index_1): Reflect API changes. Update comments.
9459 (dwarf2_read_addr_index_data): Reflect API changes.
9460 (dwarf2_read_addr_index): Likewise.
9461 (read_str_index): Change API and implementation. This becomes a helper
9462 to be used by the new string index related methods. Update error
9463 message and comments.
9464 (read_dwo_str_index): New function definition.
9465 (read_stub_str_index): Likewise.
9466 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9467 * symfile.h (dwarf2_debug_sections): Likewise.
9468 * xcoffread.c (dwarf2_debug_sections): Likewise.
9469
0cac9354
SM
94702020-01-13 Simon Marchi <simon.marchi@efficios.com>
9471
9472 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9473 core_reg_sect type to gdb_byte *.
9474 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9475 * cris-tdep.c (fetch_core_registers): Likewise.
9476 * corelow.c (core_target::get_core_register_section): Change
9477 type of `contents` to gdb::byte_vector.
9478
9a6d629c
AB
94792020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9480
9481 * tui/tui-wingeneral.c (box_win): Position the title in the center
9482 of the border.
9483
d8b2f9e3
SM
94842020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9485
9486 * corelow.c (core_target::get_core_register_section): Use
9487 std::vector instead of alloca.
9488
bb564c58
SM
94892020-01-13 Simon Marchi <simon.marchi@efficios.com>
9490
9491 * warning.m4: Add -Wmissing-declarations to build_warnings.
9492 * configure: Re-generate.
9493
6b366111
SM
94942020-01-13 Simon Marchi <simon.marchi@efficios.com>
9495
9496 * python/python.c (init__gdb_module): Add declaration.
9497
6c265988
SM
94982020-01-13 Simon Marchi <simon.marchi@efficios.com>
9499
9500 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9501 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9502 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9503 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9504 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9505 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9506 * ada-exp.y (_initialize_ada_exp): Add declaration.
9507 * ada-lang.c (_initialize_ada_language): Add declaration.
9508 * ada-tasks.c (_initialize_tasks): Add declaration.
9509 * agent.c (_initialize_agent): Add declaration.
9510 * aix-thread.c (_initialize_aix_thread): Add declaration.
9511 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9512 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9513 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9514 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9515 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9516 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9517 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9518 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9519 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9520 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9521 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9522 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9523 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9524 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9525 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9526 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9527 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9528 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9529 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9530 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9531 * annotate.c (_initialize_annotate): Add declaration.
9532 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9533 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9534 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9535 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9536 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9537 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9538 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9539 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9540 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9541 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9542 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9543 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9544 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9545 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9546 * auto-load.c (_initialize_auto_load): Add declaration.
9547 * auxv.c (_initialize_auxv): Add declaration.
9548 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9549 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9550 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9551 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9552 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9553 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9554 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9555 * breakpoint.c (_initialize_breakpoint): Add declaration.
9556 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9557 * btrace.c (_initialize_btrace): Add declaration.
9558 * charset.c (_initialize_charset): Add declaration.
9559 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9560 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9561 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9562 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9563 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9564 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9565 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9566 * coffread.c (_initialize_coffread): Add declaration.
9567 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9568 * compile/compile.c (_initialize_compile): Add declaration.
9569 * complaints.c (_initialize_complaints): Add declaration.
9570 * completer.c (_initialize_completer): Add declaration.
9571 * copying.c (_initialize_copying): Add declaration.
9572 * corefile.c (_initialize_core): Add declaration.
9573 * corelow.c (_initialize_corelow): Add declaration.
9574 * cp-abi.c (_initialize_cp_abi): Add declaration.
9575 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9576 * cp-support.c (_initialize_cp_support): Add declaration.
9577 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9578 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9579 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9580 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9581 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9582 * ctfread.c (_initialize_ctfread): Add declaration.
9583 * d-lang.c (_initialize_d_language): Add declaration.
9584 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9585 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9586 * dbxread.c (_initialize_dbxread): Add declaration.
9587 * dcache.c (_initialize_dcache): Add declaration.
9588 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9589 * disasm.c (_initialize_disasm): Add declaration.
9590 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9591 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9592 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9593 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9594 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9595 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9596 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9597 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9598 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9599 * elfread.c (_initialize_elfread): Add declaration.
9600 * exec.c (_initialize_exec): Add declaration.
9601 * extension.c (_initialize_extension): Add declaration.
9602 * f-lang.c (_initialize_f_language): Add declaration.
9603 * f-valprint.c (_initialize_f_valprint): Add declaration.
9604 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9605 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9606 * filesystem.c (_initialize_filesystem): Add declaration.
9607 * findcmd.c (_initialize_mem_search): Add declaration.
9608 * findvar.c (_initialize_findvar): Add declaration.
9609 * fork-child.c (_initialize_fork_child): Add declaration.
9610 * frame-base.c (_initialize_frame_base): Add declaration.
9611 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9612 * frame.c (_initialize_frame): Add declaration.
9613 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9614 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9615 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9616 * gcore.c (_initialize_gcore): Add declaration.
9617 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9618 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9619 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9620 * gdbarch.c (_initialize_gdbarch): Add declaration.
9621 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9622 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9623 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9624 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9625 * go-lang.c (_initialize_go_language): Add declaration.
9626 * go32-nat.c (_initialize_go32_nat): Add declaration.
9627 * guile/guile.c (_initialize_guile): Add declaration.
9628 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9629 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9630 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9631 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9632 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9633 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9634 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9635 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9636 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9637 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9638 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9639 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9640 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9641 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9642 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9643 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9644 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9645 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9646 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9647 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9648 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9649 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9650 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9651 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9652 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9653 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9654 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9655 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9656 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9657 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9658 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9659 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9660 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9661 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9662 * infcall.c (_initialize_infcall): Add declaration.
9663 * infcmd.c (_initialize_infcmd): Add declaration.
9664 * inflow.c (_initialize_inflow): Add declaration.
9665 * infrun.c (_initialize_infrun): Add declaration.
9666 * interps.c (_initialize_interpreter): Add declaration.
9667 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9668 * jit.c (_initialize_jit): Add declaration.
9669 * language.c (_initialize_language): Add declaration.
9670 * linux-fork.c (_initialize_linux_fork): Add declaration.
9671 * linux-nat.c (_initialize_linux_nat): Add declaration.
9672 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9673 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9674 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9675 * m2-lang.c (_initialize_m2_language): Add declaration.
9676 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9677 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9678 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9679 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9680 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9681 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9682 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9683 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9684 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9685 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9686 * machoread.c (_initialize_machoread): Add declaration.
9687 * macrocmd.c (_initialize_macrocmd): Add declaration.
9688 * macroscope.c (_initialize_macroscope): Add declaration.
9689 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9690 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9691 * maint.c (_initialize_maint_cmds): Add declaration.
9692 * mdebugread.c (_initialize_mdebugread): Add declaration.
9693 * memattr.c (_initialize_mem): Add declaration.
9694 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9695 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9696 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9697 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9698 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9699 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9700 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9701 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9702 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9703 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9704 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9705 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9706 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9707 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9708 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9709 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9710 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9711 * mipsread.c (_initialize_mipsread): Add declaration.
9712 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9713 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9714 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9715 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9716 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9717 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9718 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9719 * nto-procfs.c (_initialize_procfs): Add declaration.
9720 * objc-lang.c (_initialize_objc_language): Add declaration.
9721 * observable.c (_initialize_observer): Add declaration.
9722 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9723 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9724 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9725 * osabi.c (_initialize_gdb_osabi): Add declaration.
9726 * osdata.c (_initialize_osdata): Add declaration.
9727 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9728 * parse.c (_initialize_parse): Add declaration.
9729 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9730 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9731 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9732 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9733 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9734 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9735 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9736 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9737 * printcmd.c (_initialize_printcmd): Add declaration.
9738 * probe.c (_initialize_probe): Add declaration.
9739 * proc-api.c (_initialize_proc_api): Add declaration.
9740 * proc-events.c (_initialize_proc_events): Add declaration.
9741 * proc-service.c (_initialize_proc_service): Add declaration.
9742 * procfs.c (_initialize_procfs): Add declaration.
9743 * producer.c (_initialize_producer): Add declaration.
9744 * psymtab.c (_initialize_psymtab): Add declaration.
9745 * python/python.c (_initialize_python): Add declaration.
9746 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9747 * record-btrace.c (_initialize_record_btrace): Add declaration.
9748 * record-full.c (_initialize_record_full): Add declaration.
9749 * record.c (_initialize_record): Add declaration.
9750 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9751 * regcache.c (_initialize_regcache): Add declaration.
9752 * reggroups.c (_initialize_reggroup): Add declaration.
9753 * remote-notif.c (_initialize_notif): Add declaration.
9754 * remote-sim.c (_initialize_remote_sim): Add declaration.
9755 * remote.c (_initialize_remote): Add declaration.
9756 * reverse.c (_initialize_reverse): Add declaration.
9757 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9758 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9759 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9760 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9761 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9762 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9763 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9764 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9765 Add declaration.
9766 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9767 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9768 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9769 * rust-exp.y (_initialize_rust_exp): Add declaration.
9770 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9771 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9772 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9773 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9774 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9775 * score-tdep.c (_initialize_score_tdep): Add declaration.
9776 * ser-go32.c (_initialize_ser_dos): Add declaration.
9777 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9778 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9779 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9780 * ser-uds.c (_initialize_ser_socket): Add declaration.
9781 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9782 * serial.c (_initialize_serial): Add declaration.
9783 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9784 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9785 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9786 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9787 * skip.c (_initialize_step_skip): Add declaration.
9788 * sol-thread.c (_initialize_sol_thread): Add declaration.
9789 * solib-aix.c (_initialize_solib_aix): Add declaration.
9790 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9791 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9792 * solib-frv.c (_initialize_frv_solib): Add declaration.
9793 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9794 * solib-target.c (_initialize_solib_target): Add declaration.
9795 * solib.c (_initialize_solib): Add declaration.
9796 * source-cache.c (_initialize_source_cache): Add declaration.
9797 * source.c (_initialize_source): Add declaration.
9798 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9799 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9800 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9801 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9802 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9803 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9804 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9805 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9806 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9807 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9808 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9809 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9810 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9811 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9812 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9813 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9814 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9815 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9816 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9817 * stabsread.c (_initialize_stabsread): Add declaration.
9818 * stack.c (_initialize_stack): Add declaration.
9819 * stap-probe.c (_initialize_stap_probe): Add declaration.
9820 * std-regs.c (_initialize_frame_reg): Add declaration.
9821 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9822 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9823 * symfile.c (_initialize_symfile): Add declaration.
9824 * symmisc.c (_initialize_symmisc): Add declaration.
9825 * symtab.c (_initialize_symtab): Add declaration.
9826 * target.c (_initialize_target): Add declaration.
9827 * target-connection.c (_initialize_target_connection): Add
9828 declaration.
9829 * target-dcache.c (_initialize_target_dcache): Add declaration.
9830 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9831 * thread.c (_initialize_thread): Add declaration.
9832 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9833 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9834 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9835 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9836 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9837 * tracectf.c (_initialize_ctf): Add declaration.
9838 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9839 * tracefile.c (_initialize_tracefile): Add declaration.
9840 * tracepoint.c (_initialize_tracepoint): Add declaration.
9841 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9842 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9843 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9844 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9845 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9846 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9847 * tui/tui.c (_initialize_tui): Add declaration.
9848 * typeprint.c (_initialize_typeprint): Add declaration.
9849 * ui-style.c (_initialize_ui_style): Add declaration.
9850 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9851 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9852 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9853 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9854 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9855 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9856 * unittests/filtered_iterator-selftests.c
9857 (_initialize_filtered_iterator_selftests): Add declaration.
9858 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9859 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9860 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9861 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9862 * unittests/main-thread-selftests.c
9863 (_initialize_main_thread_selftests): Add declaration.
9864 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9865 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9866 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9867 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9868 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9869 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9870 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
9871 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
9872 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
9873 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
9874 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
9875 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
9876 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
9877 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
9878 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
9879 declaration.
9880 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
9881 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
9882 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
9883 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
9884 * user-regs.c (_initialize_user_regs): Add declaration.
9885 * utils.c (_initialize_utils): Add declaration.
9886 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
9887 * valops.c (_initialize_valops): Add declaration.
9888 * valprint.c (_initialize_valprint): Add declaration.
9889 * value.c (_initialize_values): Add declaration.
9890 * varobj.c (_initialize_varobj): Add declaration.
9891 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
9892 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
9893 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
9894 * windows-nat.c (_initialize_windows_nat): Add declaration.
9895 (_initialize_check_for_gdb_ini): Add declaration.
9896 (_initialize_loadable): Add declaration.
9897 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
9898 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
9899 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
9900 * xcoffread.c (_initialize_xcoffread): Add declaration.
9901 * xml-support.c (_initialize_xml_support): Add declaration.
9902 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
9903 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
9904 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
9905 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
9906
e2de1eec
SM
99072020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9908
9909 * regformats/regdat.sh: Generate declaration for init function.
9910
e0037b4c
SM
99112020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9912
9913 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
9914 up.
9915 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
9916 close_one_inferior>: New methods.
9917 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
9918 pass down target to find_inferior_pid.
9919 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
9920 Pass down target to find_inferior_ptid.
9921 (gdbsim_target::create_inferior): Pass down target to
9922 add_thread_silent.
9923 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
9924 target down to find_inferior_ptid and switch_to_thread.
9925 (gdbsim_target::close): Update to call close_one_inferior.
9926 (struct resume_data): Remove.
9927 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
9928 directly, rather than through a void pointer.
9929 (gdbsim_target::resume): Update to call resume_one_inferior.
9930
58920b5b
SM
99312020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
9932
9933 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
9934
4ec89149
PA
99352020-01-12 Pedro Alves <palves@redhat.com>
9936
9937 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
9938 directly for the current inferior instead of
9939 discard_all_inferiors.
9940 (discard_all_inferiors): Delete.
9941
7c392d1d
TT
99422020-01-11 Tom Tromey <tom@tromey.com>
9943
9944 * tui/tui-wingeneral.c (box_win): Check cli_styling.
9945 * tui/tui-winsource.c (tui_source_window_base::refill): Use
9946 deprecated_safe_get_selected_frame.
9947
d9ebdab7
TBA
99482020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9949
9950 * inferior.c (print_inferior): Switch inferior before printing it.
9951
f3c469b9
PA
99522020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
9953 Pedro Alves <palves@redhat.com>
9954
9955 * progspace-and-thread.c (switch_to_program_space_and_thread):
9956 Assert there's an inferior for PSPACE. Use
9957 switch_to_inferior_no_thread to switch the inferior too.
9958 * progspace.c (program_space::~program_space): Call
9959 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
9960 (program_space::free_all_objfiles): Don't call clear_symtab_users
9961 here.
9962 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
9963
65c574f6
PA
99642020-01-10 Pedro Alves <palves@redhat.com>
9965
9966 * NEWS: Mention multi-target debugging, "info connections", and
9967 "add-inferior -no-connection".
9968
2f4fcf00
PA
99692020-01-10 Pedro Alves <palves@redhat.com>
9970
9971 * infrun.c: Include "target-connection.h".
9972 (check_multi_target_resumption): New.
9973 (proceed): Call it.
9974 * target-connection.c (make_target_connection_string): Make
9975 extern.
9976 * target-connection.h (make_target_connection_string): Declare.
9977
121b3efd
PA
99782020-01-10 Pedro Alves <palves@redhat.com>
9979
9980 * Makefile.in (COMMON_SFILES): Add target-connection.c.
9981 * inferior.c (uiout_field_connection): New function.
9982 (print_inferior): Add new "connection-id" column.
9983 (add_inferior_command): Show connection number/string of added
9984 inferior.
9985 * process-stratum-target.h
9986 (process_stratum_target::connection_string): New virtual method.
9987 (process_stratum_target::connection_number): New field.
9988 * remote.c (remote_target::connection_string): New override.
9989 * target-connection.c: New file.
9990 * target-connection.h: New file.
9991 * target.c (decref_target): Remove process_stratum targets from
9992 the connection list.
9993 (target_stack::push): Add process_stratum targets to the
9994 connection list.
9995
4f837581
PA
99962020-01-10 Pedro Alves <palves@redhat.com>
9997
9998 Revert:
9999 2016-04-12 Pedro Alves <palves@redhat.com>
10000 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10001 Remove references to name.
10002 * serial.h (struct serial) <name>: Delete.
10003
f4ec508e
PA
100042020-01-10 Pedro Alves <palves@redhat.com>
10005
10006 * gdbarch-selftests.c (register_to_value_test): Remove "target
10007 already pushed" check.
10008
5b6d1e4f
PA
100092020-01-10 Pedro Alves <palves@redhat.com>
10010 John Baldwin <jhb@FreeBSD.org>
10011
10012 * aarch64-linux-nat.c
10013 (aarch64_linux_nat_target::thread_architecture): Adjust.
10014 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10015 (task_command_1): Likewise.
10016 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10017 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10018 (aix_thread_target::store_registers)
10019 (aix_thread_target::thread_alive): Adjust.
10020 * amd64-fbsd-tdep.c: Include "inferior.h".
10021 (amd64fbsd_get_thread_local_address): Pass down target.
10022 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10023 thread's gdbarch instead of target_gdbarch.
10024 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10025 get_last_target_status.
10026 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10027 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10028 inferiors.
10029 (update_inserted_breakpoint_locations): Skip if inferiors with no
10030 execution.
10031 (update_global_location_list): When handling moribund locations,
10032 find representative inferior for location's pspace, and use thread
10033 count of its process_stratum target.
10034 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10035 * bsd-uthread.c (bsd_uthread_target::wait): Use
10036 as_process_stratum_target and adjust thread_change_ptid and
10037 add_thread calls.
10038 (bsd_uthread_target::update_thread_list): Use
10039 as_process_stratum_target and adjust find_thread_ptid,
10040 thread_change_ptid and add_thread calls.
10041 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10042 find_thread_ptid call.
10043 * corelow.c (add_to_thread_list): Adjust add_thread call.
10044 (core_target_open): Adjust add_thread_silent and thread_count
10045 calls.
10046 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10047 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10048 * event-top.c (async_disconnect): Pop targets from all inferiors.
10049 * exec.c (add_target_sections): Push exec target on all inferiors
10050 sharing the program space.
10051 (remove_target_sections): Remove the exec target from all
10052 inferiors sharing the program space.
10053 (exec_on_vfork): New.
10054 * exec.h (exec_on_vfork): Declare.
10055 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10056 Pass it down.
10057 (fbsd_nat_target::update_thread_list): Adjust.
10058 (fbsd_nat_target::resume): Adjust.
10059 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10060 down.
10061 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10062 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10063 get_thread_arch_regcache call.
10064 * fork-child.c (gdb_startup_inferior): Pass target down to
10065 startup_inferior and set_executing.
10066 * gdbthread.h (struct process_stratum_target): Forward declare.
10067 (add_thread, add_thread_silent, add_thread_with_info)
10068 (in_thread_list): Add process_stratum_target parameter.
10069 (find_thread_ptid(inferior*, ptid_t)): New overload.
10070 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10071 parameter.
10072 (all_threads()): Delete overload.
10073 (all_threads, all_non_exited_threads): Add process_stratum_target
10074 parameter.
10075 (all_threads_safe): Use brace initialization.
10076 (thread_count): Add process_stratum_target parameter.
10077 (set_resumed, set_running, set_stop_requested, set_executing)
10078 (threads_are_executing, finish_thread_state): Add
10079 process_stratum_target parameter.
10080 (switch_to_thread): Use is_current_thread.
10081 * i386-fbsd-tdep.c: Include "inferior.h".
10082 (i386fbsd_get_thread_local_address): Pass down target.
10083 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10084 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10085 have_inferiors check.
10086 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10087 (inf_ptrace_target::attach): Adjust.
10088 * infcall.c (run_inferior_call): Adjust.
10089 * infcmd.c (run_command_1): Pass target to
10090 scoped_finish_thread_state.
10091 (proceed_thread_callback): Skip inferiors with no execution.
10092 (continue_command): Rename 'all_threads' local to avoid hiding
10093 'all_threads' function. Adjust get_last_target_status call.
10094 (prepare_one_step): Adjust set_running call.
10095 (signal_command): Use user_visible_resume_target. Compare thread
10096 pointers instead of inferior_ptid.
10097 (info_program_command): Adjust to pass down target.
10098 (attach_command): Mark target's 'thread_executing' flag.
10099 (stop_current_target_threads_ns): New, factored out from ...
10100 (interrupt_target_1): ... this. Switch inferior before making
10101 target calls.
10102 * inferior-iter.h
10103 (struct all_inferiors_iterator, struct all_inferiors_range)
10104 (struct all_inferiors_safe_range)
10105 (struct all_non_exited_inferiors_range): Filter on
10106 process_stratum_target too. Remove explicit.
10107 * inferior.c (inferior::inferior): Push dummy target on target
10108 stack.
10109 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10110 Add process_stratum_target parameter, and pass it down.
10111 (have_live_inferiors): Adjust.
10112 (switch_to_inferior_and_push_target): New.
10113 (add_inferior_command, clone_inferior_command): Handle
10114 "-no-connection" parameter. Use
10115 switch_to_inferior_and_push_target.
10116 (_initialize_inferior): Mention "-no-connection" option in
10117 the help of "add-inferior" and "clone-inferior" commands.
10118 * inferior.h: Include "process-stratum-target.h".
10119 (interrupt_target_1): Use bool.
10120 (struct inferior) <push_target, unpush_target, target_is_pushed,
10121 find_target_beneath, top_target, process_target, target_at,
10122 m_stack>: New.
10123 (discard_all_inferiors): Delete.
10124 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10125 (all_inferiors, all_non_exited_inferiors): Add
10126 process_stratum_target parameter.
10127 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10128 (target_last_proc_target): New global.
10129 (follow_fork_inferior): Push target on new inferior. Pass target
10130 to add_thread_silent. Call exec_on_vfork. Handle target's
10131 reference count.
10132 (follow_fork): Adjust get_last_target_status call. Also consider
10133 target.
10134 (follow_exec): Push target on new inferior.
10135 (struct execution_control_state) <target>: New field.
10136 (user_visible_resume_target): New.
10137 (do_target_resume): Call target_async.
10138 (resume_1): Set target's threads_executing flag. Consider resume
10139 target.
10140 (commit_resume_all_targets): New.
10141 (proceed): Also consider resume target. Skip threads of inferiors
10142 with no execution. Commit resumtion in all targets.
10143 (start_remote): Pass current inferior to wait_for_inferior.
10144 (infrun_thread_stop_requested): Consider target as well. Pass
10145 thread_info pointer to clear_inline_frame_state instead of ptid.
10146 (infrun_thread_thread_exit): Consider target as well.
10147 (random_pending_event_thread): New inferior parameter. Use it.
10148 (do_target_wait): Rename to ...
10149 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10150 down.
10151 (threads_are_resumed_pending_p, do_target_wait): New.
10152 (prepare_for_detach): Adjust calls.
10153 (wait_for_inferior): New inferior parameter. Handle it. Use
10154 do_target_wait_1 instead of do_target_wait.
10155 (fetch_inferior_event): Adjust. Switch to representative
10156 inferior. Pass target down.
10157 (set_last_target_status): Add process_stratum_target parameter.
10158 Save target in global.
10159 (get_last_target_status): Add process_stratum_target parameter and
10160 handle it.
10161 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10162 (context_switch): Check inferior_ptid == null_ptid before calling
10163 inferior_thread().
10164 (get_inferior_stop_soon): Pass down target.
10165 (wait_one): Rename to ...
10166 (poll_one_curr_target): ... this.
10167 (struct wait_one_event): New.
10168 (wait_one): New.
10169 (stop_all_threads): Adjust.
10170 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10171 event's target.
10172 (switch_back_to_stepped_thread): Also consider target.
10173 (print_stop_event): Update.
10174 (normal_stop): Update. Also consider the resume target.
10175 * infrun.h (wait_for_inferior): Remove declaration.
10176 (user_visible_resume_target): New declaration.
10177 (get_last_target_status, set_last_target_status): New
10178 process_stratum_target parameter.
10179 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10180 process_stratum_target parameter, and use it.
10181 (clear_inline_frame_state (thread_info*)): New.
10182 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10183 process_stratum_target parameter.
10184 (clear_inline_frame_state (thread_info*)): Declare.
10185 * linux-fork.c (delete_checkpoint_command): Pass target down to
10186 find_thread_ptid.
10187 (checkpoint_command): Adjust.
10188 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10189 instead of just tweaking inferior_ptid.
10190 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10191 (exit_lwp): Pass target down to find_thread_ptid.
10192 (attach_proc_task_lwp_callback): Pass target down to
10193 add_thread/set_running/set_executing.
10194 (linux_nat_target::attach): Pass target down to
10195 thread_change_ptid.
10196 (get_detach_signal): Pass target down to find_thread_ptid.
10197 Consider last target status's target.
10198 (linux_resume_one_lwp_throw, resume_lwp)
10199 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10200 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10201 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10202 (linux_nat_target::async_wait_fd): New.
10203 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10204 target down.
10205 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10206 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10207 * linux-thread-db.c (struct thread_db_info::process_target): New
10208 field.
10209 (add_thread_db_info): Save target.
10210 (get_thread_db_info): New process_stratum_target parameter. Also
10211 match target.
10212 (delete_thread_db_info): New process_stratum_target parameter.
10213 Also match target.
10214 (thread_from_lwp): Adjust to pass down target.
10215 (thread_db_notice_clone): Pass down target.
10216 (check_thread_db_callback): Pass down target.
10217 (try_thread_db_load_1): Always push the thread_db target.
10218 (try_thread_db_load, record_thread): Pass target down.
10219 (thread_db_target::detach): Pass target down. Always unpush the
10220 thread_db target.
10221 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10222 target down. Always unpush the thread_db target.
10223 (find_new_threads_callback, thread_db_find_new_threads_2)
10224 (thread_db_target::update_thread_list): Pass target down.
10225 (thread_db_target::pid_to_str): Pass current inferior down.
10226 (thread_db_target::get_thread_local_address): Pass target down.
10227 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10228 target down.
10229 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10230 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10231 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10232 (procfs_init_inferior): Rename to ...
10233 (procfs_target::procfs_init_inferior): ... this and adjust.
10234 (procfs_target::create_inferior, procfs_notice_thread)
10235 (procfs_do_thread_registers): Adjust.
10236 * ppc-fbsd-tdep.c: Include "inferior.h".
10237 (ppcfbsd_get_thread_local_address): Pass down target.
10238 * proc-service.c (ps_xfer_memory): Switch current inferior and
10239 program space as well.
10240 (get_ps_regcache): Pass target down.
10241 * process-stratum-target.c
10242 (process_stratum_target::thread_address_space)
10243 (process_stratum_target::thread_architecture): Pass target down.
10244 * process-stratum-target.h
10245 (process_stratum_target::threads_executing): New field.
10246 (as_process_stratum_target): New.
10247 * ravenscar-thread.c
10248 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10249 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10250 down.
10251 * record-btrace.c (record_btrace_target::info_record): Adjust.
10252 (record_btrace_target::record_method)
10253 (record_btrace_target::record_is_replaying)
10254 (record_btrace_target::fetch_registers)
10255 (get_thread_current_frame_id, record_btrace_target::resume)
10256 (record_btrace_target::wait, record_btrace_target::stop): Pass
10257 target down.
10258 * record-full.c (record_full_wait_1): Switch to event thread.
10259 Pass target down.
10260 * regcache.c (regcache::regcache)
10261 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10262 process_stratum_target parameter and handle it.
10263 (current_thread_target): New global.
10264 (get_thread_regcache): Add process_stratum_target parameter and
10265 handle it. Switch inferior before calling target method.
10266 (get_thread_regcache): Pass target down.
10267 (get_thread_regcache_for_ptid): Pass target down.
10268 (registers_changed_ptid): Add process_stratum_target parameter and
10269 handle it.
10270 (registers_changed_thread, registers_changed): Pass target down.
10271 (test_get_thread_arch_aspace_regcache): New.
10272 (current_regcache_test): Define a couple local test_target_ops
10273 instances and use them for testing.
10274 (readwrite_regcache): Pass process_stratum_target parameter.
10275 (cooked_read_test, cooked_write_test): Pass mock_target down.
10276 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10277 (get_thread_arch_aspace_regcache): Add process_stratum_target
10278 parameter.
10279 (regcache::target): New method.
10280 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10281 (regcache::registers_changed_ptid): Add process_stratum_target
10282 parameter.
10283 (regcache::m_target): New field.
10284 (registers_changed_ptid): Add process_stratum_target parameter.
10285 * remote.c (remote_state::supports_vCont_probed): New field.
10286 (remote_target::async_wait_fd): New method.
10287 (remote_unpush_and_throw): Add remote_target parameter.
10288 (get_current_remote_target): Adjust.
10289 (remote_target::remote_add_inferior): Push target.
10290 (remote_target::remote_add_thread)
10291 (remote_target::remote_notice_new_inferior)
10292 (get_remote_thread_info): Pass target down.
10293 (remote_target::update_thread_list): Skip threads of inferiors
10294 bound to other targets. (remote_target::close): Don't discard
10295 inferiors. (remote_target::add_current_inferior_and_thread)
10296 (remote_target::process_initial_stop_replies)
10297 (remote_target::start_remote)
10298 (remote_target::remote_serial_quit_handler): Pass down target.
10299 (remote_target::remote_unpush_target): New remote_target
10300 parameter. Unpush the target from all inferiors.
10301 (remote_target::remote_unpush_and_throw): New remote_target
10302 parameter. Pass it down.
10303 (remote_target::open_1): Check whether the current inferior has
10304 execution instead of checking whether any inferior is live. Pass
10305 target down.
10306 (remote_target::remote_detach_1): Pass down target. Use
10307 remote_unpush_target.
10308 (extended_remote_target::attach): Pass down target.
10309 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10310 (remote_target::append_resumption): Pass down target.
10311 (remote_target::append_pending_thread_resumptions)
10312 (remote_target::remote_resume_with_hc, remote_target::resume)
10313 (remote_target::commit_resume): Pass down target.
10314 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10315 (remote_target::interrupt_query)
10316 (remote_target::remove_new_fork_children)
10317 (remote_target::check_pending_events_prevent_wildcard_vcont)
10318 (remote_target::remote_parse_stop_reply)
10319 (remote_target::process_stop_reply): Pass down target.
10320 (first_remote_resumed_thread): New remote_target parameter. Pass
10321 it down.
10322 (remote_target::wait_as): Pass down target.
10323 (unpush_and_perror): New remote_target parameter. Pass it down.
10324 (remote_target::readchar, remote_target::remote_serial_write)
10325 (remote_target::getpkt_or_notif_sane_1)
10326 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10327 down target.
10328 (remote_target::mourn_inferior): Pass down target. Use
10329 remote_unpush_target.
10330 (remote_target::core_of_thread)
10331 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10332 (remote_target::pid_to_exec_file)
10333 (remote_target::thread_handle_to_thread_info): Pass down target.
10334 (remote_target::async_wait_fd): New.
10335 * riscv-fbsd-tdep.c: Include "inferior.h".
10336 (riscv_fbsd_get_thread_local_address): Pass down target.
10337 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10338 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10339 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10340 Adjust.
10341 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10342 * solib-svr4.c (enable_break): Pass down target.
10343 * spu-multiarch.c (parse_spufs_run): Pass down target.
10344 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10345 * target-delegates.c: Regenerate.
10346 * target.c (g_target_stack): Delete.
10347 (current_top_target): Return the current inferior's top target.
10348 (target_has_execution_1): Refer to the passed-in inferior's top
10349 target.
10350 (target_supports_terminal_ours): Check whether the initial
10351 inferior was already created.
10352 (decref_target): New.
10353 (target_stack::push): Incref/decref the target.
10354 (push_target, push_target, unpush_target): Adjust.
10355 (target_stack::unpush): Defref target.
10356 (target_is_pushed): Return bool. Adjust to refer to the current
10357 inferior's target stack.
10358 (dispose_inferior): Delete, and inline parts ...
10359 (target_preopen): ... here. Only dispose of the current inferior.
10360 (target_detach): Hold strong target reference while detaching.
10361 Pass target down.
10362 (target_thread_name): Add assertion.
10363 (target_resume): Pass down target.
10364 (target_ops::beneath, find_target_at): Adjust to refer to the
10365 current inferior's target stack.
10366 (get_dummy_target): New.
10367 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10368 has a thread running.
10369 (initialize_targets): Rename to ...
10370 (_initialize_target): ... this.
10371 * target.h: Include "gdbsupport/refcounted-object.h".
10372 (struct target_ops): Inherit refcounted_object.
10373 (target_ops::shortname, target_ops::longname): Make const.
10374 (target_ops::async_wait_fd): New method.
10375 (decref_target): Declare.
10376 (struct target_ops_ref_policy): New.
10377 (target_ops_ref): New typedef.
10378 (get_dummy_target): Declare function.
10379 (target_is_pushed): Return bool.
10380 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10381 (all_matching_threads_iterator::all_matching_threads_iterator):
10382 Handle filter target.
10383 * thread-iter.h (struct all_matching_threads_iterator, struct
10384 all_matching_threads_range, class all_non_exited_threads_range):
10385 Filter by target too. Remove explicit.
10386 * thread.c (threads_executing): Delete.
10387 (inferior_thread): Pass down current inferior.
10388 (clear_thread_inferior_resources): Pass down thread pointer
10389 instead of ptid_t.
10390 (add_thread_silent, add_thread_with_info, add_thread): Add
10391 process_stratum_target parameter. Use it for thread and inferior
10392 searches.
10393 (is_current_thread): New.
10394 (thread_info::deletable): Use it.
10395 (find_thread_ptid, thread_count, in_thread_list)
10396 (thread_change_ptid, set_resumed, set_running): New
10397 process_stratum_target parameter. Pass it down.
10398 (set_executing): New process_stratum_target parameter. Pass it
10399 down. Adjust reference to 'threads_executing'.
10400 (threads_are_executing): New process_stratum_target parameter.
10401 Adjust reference to 'threads_executing'.
10402 (set_stop_requested, finish_thread_state): New
10403 process_stratum_target parameter. Pass it down.
10404 (switch_to_thread): Also match inferior.
10405 (switch_to_thread): New process_stratum_target parameter. Pass it
10406 down.
10407 (update_threads_executing): Reimplement.
10408 * top.c (quit_force): Pop targets from all inferior.
10409 (gdb_init): Don't call initialize_targets.
10410 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10411 Declare.
10412 (windows_add_thread, windows_delete_thread): Adjust.
10413 (get_windows_debug_event): Rename to ...
10414 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10415 * tracefile-tfile.c (tfile_target_open): Pass down target.
10416 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10417 Forward declare.
10418 (switch_to_thread): Add process_stratum_target parameter.
10419 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10420 parameter. Use it.
10421 (mi_on_resume): Pass target down.
10422 * nat/fork-inferior.c (startup_inferior): Add
10423 process_stratum_target parameter. Pass it down.
10424 * nat/fork-inferior.h (startup_inferior): Add
10425 process_stratum_target parameter.
10426 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10427
75c6c844
PA
104282020-01-10 Pedro Alves <palves@redhat.com>
10429
10430 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10431 directly. Instead find the first thread in the thread list and
10432 use switch_to_thread.
10433
78f2c40a
PA
104342020-01-10 Pedro Alves <palves@redhat.com>
10435
10436 * remote.c (remote_target::remote_add_inferior): Don't bind a
10437 process to the current inferior if the current inferior is already
10438 bound to a process.
10439
e7af6c70
TBA
104402020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10441 Pedro Alves <palves@redhat.com>
10442
10443 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10444 If no process is specified, return null_ptid instead of
10445 inferior_ptid.
10446 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10447 TARGET_WAITKIND_SIGNALLED with no pid.
10448
31ba933e
PA
104492020-01-10 Pedro Alves <palves@redhat.com>
10450
10451 * remote.c (first_remote_resumed_thread): New.
10452 (remote_target::wait_as): Use it as default event_ptid instead of
10453 inferior_ptid.
10454
735fc2ca
PA
104552020-01-10 Pedro Alves <palves@redhat.com>
10456
10457 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10458
c17e02e1
PA
104592020-01-10 Pedro Alves <palves@redhat.com>
10460
10461 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10462 not -1.
10463
ab1ddbcf
PA
104642020-01-10 Pedro Alves <palves@redhat.com>
10465
10466 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10467 ptid to get_last_target_status.
10468 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10469 ptid to get_last_target_status.
10470 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10471 get_last_target_status.
10472 (info_program_command): Don't pass a target_waitstatus to
10473 get_last_target_status.
10474 * infrun.c (init_wait_for_inferior): Use
10475 nullify_last_target_wait_ptid.
10476 (get_last_target_status): Handle nullptr arguments.
10477 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10478 (print_stop_event): Don't pass a ptid to get_last_target_status.
10479 (normal_stop): Don't pass a ptid to get_last_target_status.
10480 * infrun.h (get_last_target_status, set_last_target_status): Move
10481 comments here and update.
10482 (nullify_last_target_wait_ptid): Declare.
10483 * linux-fork.c (fork_load_infrun_state): Remove local extern
10484 declaration of nullify_last_target_wait_ptid.
10485 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10486 to get_last_target_status.
10487
f3f8ece4
PA
104882020-01-10 Pedro Alves <palves@redhat.com>
10489
10490 * gdbthread.h (scoped_restore_current_thread)
10491 <dont_restore, restore, m_dont_restore>: Declare.
10492 * thread.c (thread_alive): Add assertion. Return bool.
10493 (switch_to_thread_if_alive): New.
10494 (prune_threads): Switch inferior/thread.
10495 (print_thread_info_1): Switch thread before calling target methods.
10496 (scoped_restore_current_thread::restore): New, factored out from
10497 ...
10498 (scoped_restore_current_thread::~scoped_restore_current_thread):
10499 ... this.
10500 (scoped_restore_current_thread::scoped_restore_current_thread):
10501 Add assertion.
10502 (thread_apply_all_command, thread_select): Use
10503 switch_to_thread_if_alive.
10504 * infrun.c (proceed, restart_threads, handle_signal_stop)
10505 (switch_back_to_stepped_thread): Switch current thread before
10506 calling target methods.
10507
db2d40f7
PA
105082020-01-10 Pedro Alves <palves@redhat.com>
10509
10510 * inferior.c (switch_to_inferior_no_thread): New function,
10511 factored out from ...
10512 (inferior_command): ... here.
10513 * inferior.h (switch_to_inferior_no_thread): Declare.
10514 * mi/mi-main.c (run_one_inferior): Use
10515 switch_to_inferior_no_thread.
10516
bd420a2d
PA
105172020-01-10 Pedro Alves <palves@redhat.com>
10518
10519 * infcmd.c (kill_command): Remove dead code.
10520
ddf5db90
PA
105212020-01-10 Pedro Alves <palves@redhat.com>
10522
10523 * remote.c (remote_target::mourn_inferior): No longer check
10524 whether the target is running.
10525
5018ce90
PA
105262020-01-10 Pedro Alves <palves@redhat.com>
10527
10528 * corelow.c (core_target::has_execution): Change parameter type to
10529 inferior pointer.
10530 * inferior.c (number_of_live_inferiors): Use
10531 inferior::has_execution instead of target_has_execution_1.
10532 * inferior.h (inferior::has_execution): New.
10533 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10534 inferior::has_execution instead of target_has_execution_1.
10535 * process-stratum-target.c
10536 (process_stratum_target::has_execution): Change parameter type to
10537 inferior pointer. Check the inferior's PID instead of
10538 inferior_ptid.
10539 * process-stratum-target.h
10540 (process_stratum_target::has_execution): Change parameter type to
10541 inferior pointer.
10542 * record-full.c (record_full_core_target::has_execution): Change
10543 parameter type to inferior pointer.
10544 * target.c (target_has_execution_1): Change parameter type to
10545 inferior pointer.
10546 (target_has_execution_current): Adjust.
10547 * target.h (target_ops::has_execution): Change parameter type to
10548 inferior pointer.
10549 (target_has_execution_1): Change parameter type to inferior
10550 pointer. Change return type to bool.
10551 * tracefile.h (tracefile_target::has_execution): Change parameter
10552 type to inferior pointer.
10553
74375d18
PA
105542020-01-10 Pedro Alves <palves@redhat.com>
10555
10556 * exceptions.c (print_flush): Remove current_top_target() check.
10557
acdf84a6
PA
105582020-01-10 Pedro Alves <palves@redhat.com>
10559
10560 * remote.c (show_remote_exec_file): Show the current inferior's
10561 exec-file instead of the command variable's value.
10562
ec506636
PA
105632020-01-10 Pedro Alves <palves@redhat.com>
10564
10565 * record-full.c (record_full_resume_ptid): New global.
10566 (record_full_target::resume): Set it.
10567 (record_full_wait_1): Use record_full_resume_ptid instead of
10568 inferior_ptid.
10569
873657b9
PA
105702020-01-10 Pedro Alves <palves@redhat.com>
10571
10572 * gdbthread.h (scoped_restore_current_thread)
10573 <dont_restore, restore, m_dont_restore>: Declare.
10574 * thread.c (thread_alive): Add assertion. Return bool.
10575 (switch_to_thread_if_alive): New.
10576 (prune_threads): Switch inferior/thread.
10577 (print_thread_info_1): Switch thread before calling target methods.
10578 (scoped_restore_current_thread::restore): New, factored out from
10579 ...
10580 (scoped_restore_current_thread::~scoped_restore_current_thread):
10581 ... this.
10582 (scoped_restore_current_thread::scoped_restore_current_thread):
10583 Add assertion.
10584 (thread_apply_all_command, thread_select): Use
10585 switch_to_thread_if_alive.
10586
7f0ae84c
GB
105872020-01-10 George Barrett <bob@bob131.so>
10588
10589 * stap-probe.c (stap_modify_semaphore): Don't check for null
10590 semaphores.
10591 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10592 for null semaphores.
10593
f5a7c406
AB
105942020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10595
10596 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10597 all source windows, and maintain horizontal scroll status while
10598 doing so.
10599
9ae6bf64
TT
106002020-01-09 Tom Tromey <tom@tromey.com>
10601
10602 PR tui/18932:
10603 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10604 update_source_window, not print_source_lines.
10605
b2efe70c
AB
106062020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10607
10608 * tui/tui.c (tui_enable): Register tui hooks after calling
10609 tui_display_main.
10610
5f23a082
CB
106112020-01-09 Christian Biesinger <cbiesinger@google.com>
10612
10613 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10614
3061113b
SM
106152020-01-08 Simon Marchi <simon.marchi@efficios.com>
10616
10617 * thread.c (print_thread_info_1): Fix indentation.
10618
57d75002
CB
106192020-01-09 Christian Biesinger <cbiesinger@google.com>
10620
10621 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10622 unique_xmalloc_ptr outside the if to always free the demangled name.
10623
6a053cb1
TT
106242020-01-08 Tom Tromey <tromey@adacore.com>
10625
10626 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10627 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10628 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10629 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10630 Remove.
10631 (section_offsets): New typedef.
10632 * symtab.c (fixup_section, get_msymbol_address): Update.
10633 * symmisc.c (dump_msymbols): Update.
10634 * symfile.h (relative_addr_info_to_section_offsets)
10635 (symfile_map_offsets_to_segments): Update.
10636 * symfile.c (build_section_addr_info_from_objfile)
10637 (init_objfile_sect_indices): Update.
10638 (struct place_section_arg): Change type of "offsets".
10639 (place_section): Update.
10640 (relative_addr_info_to_section_offsets): Change type of
10641 "section_offsets". Remove "num_sections" parameter.
10642 (default_symfile_offsets, syms_from_objfile_1)
10643 (set_objfile_default_section_offset): Update.
10644 (reread_symbols): No need to preserve section offsets by hand.
10645 (symfile_map_offsets_to_segments): Change type of "offsets".
10646 * stap-probe.c (relocate_address): Update.
10647 * stabsread.h (process_one_symbol): Update.
10648 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10649 (solib_target_relocate_section_addresses): Update.
10650 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10651 Update.
10652 * solib-frv.c (frv_relocate_main_executable): Update.
10653 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10654 * solib-aix.c (solib_aix_get_section_offsets): Change return
10655 type.
10656 (solib_aix_solib_create_inferior_hook): Update.
10657 * remote.c (remote_target::get_offsets): Update.
10658 * psymtab.c (find_pc_sect_psymtab): Update.
10659 * psympriv.h (struct partial_symbol) <address, text_low,
10660 text_high>: Update.
10661 * objfiles.h (obj_section_offset): Update.
10662 (struct objfile) <section_offsets>: Change type.
10663 <num_sections>: Remove.
10664 (objfile_relocate): Update.
10665 * objfiles.c (entry_point_address_query): Update
10666 (relocate_one_symbol): Change type of "section_offsets".
10667 (objfile_relocate1, objfile_relocate1): Change type of
10668 "new_offsets".
10669 (objfile_rebase1): Update.
10670 * mipsread.c (mipscoff_symfile_read): Update.
10671 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10672 parameter.
10673 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10674 (parse_external, psymtab_to_symtab_1): Update.
10675 * machoread.c (macho_symfile_offsets): Update.
10676 * ia64-tdep.c (ia64_find_unwind_table): Update.
10677 * hppa-tdep.c (read_unwind_info): Update.
10678 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10679 * dwarf2read.c (create_addrmap_from_index)
10680 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10681 (process_psymtab_comp_unit_reader, add_partial_symbol)
10682 (add_partial_subprogram, process_full_comp_unit)
10683 (read_file_scope, read_func_scope, read_lexical_block_scope)
10684 (read_call_site_scope, dwarf2_rnglists_process)
10685 (dwarf2_ranges_process, dwarf2_ranges_read)
10686 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10687 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10688 Update.
10689 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10690 Update.
10691 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10692 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10693 (process_one_symbol): Change type of "section_offsets".
10694 * ctfread.c (get_objfile_text_range): Update.
10695 * coffread.c (coff_symtab_read, enter_linenos)
10696 (process_coff_symbol): Update.
10697 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10698 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10699
456e800a
TT
107002020-01-08 Tom Tromey <tromey@adacore.com>
10701
10702 * dwarf2read.c (parse_macro_definition): Use std::string.
10703 (parse_macro_definition): Likewise.
10704
6dfa2fc2
TT
107052020-01-08 Tom Tromey <tromey@adacore.com>
10706
10707 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10708 (ATTR_ALLOC_CHUNK): Remove.
10709
421d1616
TT
107102020-01-08 Tom Tromey <tromey@adacore.com>
10711
10712 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10713
43816ebc
TT
107142020-01-08 Tom Tromey <tromey@adacore.com>
10715
10716 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10717 (dwarf2_compute_name, open_dwo_file): Likewise.
10718 (process_enumeration_scope): Use std::vector.
10719 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10720 (partial_die_info::fixup, dwarf2_start_subfile)
10721 (guess_full_die_structure_name, dwarf2_name): Likewise.
10722 (determine_prefix): Update.
10723 (guess_full_die_structure_name): Make return type const.
10724 (partial_die_full_name): Return unique_xmalloc_ptr.
10725 (DW_FIELD_ALLOC_CHUNK): Remove.
10726
4212d509
TT
107272020-01-07 Tom Tromey <tromey@adacore.com>
10728
10729 PR build/24937:
10730 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10731
06a6207a
JT
107322020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10733
10734 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10735
153d79c4
AB
107362020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10737
10738 * stack.c (print_frame_info): Move disassemble_next_line code
10739 inside source_print block.
10740
66182876
EZ
107412020-01-06 Eli Zaretskii <eliz@gnu.org>
10742
10743 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10744 gdb/signals.h, as we are now using native signal symbols.
10745
cbfa8581
SV
107462020-01-06 Shahab Vahedi <shahab@synopsys.com>
10747
10748 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10749 overflow by an early check of content vs threshold.
aac66a4c 10750 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10751 Likewise.
10752
3f602821
EZ
107532020-01-06 Eli Zaretskii <eliz@gnu.org>
10754
10755 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10756
a08c904d
JT
107572020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10758
10759 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10760 export table if no section contains it's RVA.
10761
89a65580
EZ
107622020-01-06 Eli Zaretskii <eliz@gnu.org>
10763
10764 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10765
8b7fcda2
HD
107662020-01-06 Hannes Domani <ssbssa@yahoo.de>
10767
10768 * source.c (print_source_lines_base): Set last_line_listed.
10769
a61b4f69
SV
107702020-01-06 Shahab Vahedi <shahab@synopsys.com>
10771
10772 * tui/tui-disasm.c: Remove trailing spaces.
10773
559e7e50
EZ
107742020-01-06 Eli Zaretskii <eliz@gnu.org>
10775 Pedro Alves <palves@redhat.com>
10776
10777 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10778 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10779 (windows_gdb_signal_to_target): New function, uses the above
10780 enumeration to convert GDB internal signal codes to equivalent
10781 Windows codes.
10782 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10783 * windows-nat.c: Include "gdb_wait.h".
10784 (get_windows_debug_event): Extract the fatal exception from the
10785 exit status and convert to the equivalent Posix signal number.
10786 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10787 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10788 * gdbsupport/gdb_wait.c: New file, implements
10789 windows_status_to_termsig.
10790 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10791 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10792
f2302a34
AB
107932020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10794
10795 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10796 show_layout.
10797
6a5206eb
LM
107982020-01-05 Luis Machado <luis.machado@linaro.org>
10799
10800 * aarch64-linux-nat.c
10801 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10802 and bfd_mach_aarch64.
10803
6ec1d75e
PW
108042020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10805
10806 * ui-file.c (stdio_file::can_emit_style_escape)
10807 (tee_file::can_emit_style_escape): Ensure style is used also on
10808 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10809 to gdb_stdout.
10810 * main.c (set_gdb_data_directory): Use file style to output the
10811 warning that the given pathname is not a directory.
10812 * top.c (show_history_filename, gdb_safe_append_history)
10813 (show_gdb_datadir): Use file style.
10814
44f81a76
HD
108152020-01-03 Hannes Domani <ssbssa@yahoo.de>
10816
10817 * solib-target.c (struct lm_info_target):
10818 Change offsets to be a unique_xmalloc_ptr.
10819 (solib_target_relocate_section_addresses): Update.
10820
25057eb0
HD
108212020-01-03 Hannes Domani <ssbssa@yahoo.de>
10822
10823 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10824
6e2118f5
BE
108252020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10826
10827 * MAINTAINERS (Write After Approval): Add myself.
10828
8133c7dc
LM
108292020-01-02 Luis Machado <luis.machado@linaro.org>
10830
10831 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10832 Cell BE architecture.
10833 * target.h (struct target_ops) <thread_architecture>: Likewise.
10834
48189bec
HD
108352020-01-01 Hannes Domani <ssbssa@yahoo.de>
10836
10837 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10838
ead1063b
HD
108392020-01-01 Hannes Domani <ssbssa@yahoo.de>
10840
10841 * MAINTAINERS (Write After Approval): Add myself.
10842
e5d78223
JB
108432020-01-01 Joel Brobecker <brobecker@adacore.com>
10844
10845 * gdbarch.sh: Update copyright year range of generated files.
10846
b811d2c2
JB
108472020-01-01 Joel Brobecker <brobecker@adacore.com>
10848
10849 Update copyright year range in all GDB files.
10850
5f4def5c
JB
108512020-01-01 Joel Brobecker <brobecker@adacore.com>
10852
10853 * copyright.py: Convert to Python 3.
10854
51fd4002
JB
108552020-01-01 Joel Brobecker <brobecker@adacore.com>
10856
10857 * copyright.py: Adapt after move of gnulib directory from gdb
10858 directory to toplevel directory.
10859
5fb651f2
JB
108602020-01-01 Joel Brobecker <brobecker@adacore.com>
10861
10862 * copyright.py (main): Exit if run from the wrong directory.
10863
5dd8bf88
JB
108642020-01-01 Joel Brobecker <brobecker@adacore.com>
10865
10866 * top.c (print_gdb_version): Change copyright year to 2020.
10867
9f71dacb 108682020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 10869
9f71dacb 10870 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 10871
9f71dacb 10872For older changes see ChangeLog-2019.
c906108c
SS
10873\f
10874Local Variables:
10875mode: change-log
10876left-margin: 8
10877fill-column: 74
10878version-control: never
57da7796 10879coding: utf-8
c906108c 10880End: