]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b1a35af2
SM
12020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * inf-loop.c (inferior_event_handler): Remove client_data param.
4 * inf-loop.h (inferior_event_handler): Likewise.
5 * infcmd.c (step_1): Adjust.
6 * infrun.c (proceed): Adjust.
7 (fetch_inferior_event): Remove client_data param.
8 (infrun_async_inferior_event_handler): Adjust.
9 * infrun.h (fetch_inferior_event): Remove `void *` param.
10 * linux-nat.c (handle_target_event): Adjust.
11 * record-btrace.c (record_btrace_handle_async_inferior_event):
12 Adjust.
13 * record-full.c (record_full_async_inferior_event_handler):
14 Adjust.
15 * remote.c (remote_async_inferior_event_handler): Adjust.
16
1cdf9e33
TT
172020-07-01 Tom Tromey <tom@tromey.com>
18
19 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
20 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
21
32c1e210
TT
222020-07-01 Tom Tromey <tom@tromey.com>
23
24 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
25 tui_gen_win_info.
26 (tui_win_info::make_window): Merge with
27 tui_gen_win_info::make_window.
28 (tui_win_info::make_visible): Move from tui_gen_win_info.
29 * tui/tui-win.c (tui_win_info::max_width): Move from
30 tui_gen_win_info.
31 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
32 type.
33 <window_factory>: Likewise.
34 * tui/tui-layout.c (tui_win_info::resize): Move from
35 tui_gen_win_info.
36 (make_standard_window): Change return type.
37 (get_locator_window, tui_get_window_by_name): Likewise.
38 (tui_layout_window::apply): Remove a cast.
39 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
40 (struct tui_win_info): Merge with tui_gen_win_info.
41 (struct tui_gen_win_info): Remove.
42
a30cb6da
TT
432020-07-01 Tom Tromey <tom@tromey.com>
44
45 * tui/tui-stack.h (struct tui_locator_window): Derive from
46 tui_win_info.
47 <do_scroll_horizontal, do_scroll_vertical>: New methods.
48 <can_box>: New method.
49
1eb2161f
TT
502020-07-01 Tom Tromey <tom@tromey.com>
51
52 * tui/tui-stack.h (struct tui_locator_window): Remove body.
53
7134f2eb
TT
542020-07-01 Tom Tromey <tom@tromey.com>
55
56 * tui/tui-regs.c (tui_data_window::display_registers_from)
57 (tui_data_window::display_registers_from)
58 (tui_data_window::first_data_item_displayed)
59 (tui_data_window::delete_data_content_windows): Update.
60 (tui_data_window::refresh_window, tui_data_window::no_refresh):
61 Remove.
62 (tui_data_window::check_register_values): Update.
63 (tui_data_item_window::rerender): Add parameters. Update.
64 (tui_data_item_window::refresh_window): Remove.
65 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
66 virtual.
67 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
68 tui_gen_win_info.
69 <refresh_window, max_height, min_height>: Remove.
70 <rerender>: Add parameters.
71 <x, y, visible>: New members.
72 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
73 <m_item_width>: New member.
74
22b7b041
TT
752020-07-01 Tom Tromey <tom@tromey.com>
76
77 * tui/tui-regs.c (tui_data_window::show_register_group)
78 (tui_data_window::check_register_values): Update.
79 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
80 from item_no.
81
c9753adb
TT
822020-07-01 Tom Tromey <tom@tromey.com>
83
84 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
85 useless "if".
86
9ab26b4a
TT
872020-07-01 Tom Tromey <tom@tromey.com>
88
89 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
90 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
91
e555083f
TT
922020-07-01 Tom Tromey <tom@tromey.com>
93
94 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
95 * tui/tui-winsource.h (enum tui_line_or_address_kind)
96 (struct tui_line_or_address): Move from tui-data.h.
97 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
98 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
99 (tui_cmd_window, tui_source_window_base, tui_source_window)
100 (tui_disasm_window): Don't declare.
101 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
102 to tui-winsource.h.
103 (SINGLE_KEY): Move to tui-stack.c.
104
7a02bab7
TT
1052020-07-01 Tom Tromey <tom@tromey.com>
106
107 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
108 std::string.
109 * tui/tui-regs.c (class tab_expansion_file): New.
110 (tab_expansion_file::write): New method.
111 (tui_register_format): Change return type. Use
112 tab_expansion_file.
113 (tui_get_register, tui_data_window::display_registers_from)
114 (tui_data_item_window::rerender): Update.
115 * tui/tui-io.h (tui_expand_tabs): Don't declare.
116 * tui/tui-io.c (tui_expand_tabs): Remove.
117
ea68593b
TT
1182020-07-01 Tom Tromey <tom@tromey.com>
119
120 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
121
a8caed5d
FS
1222020-07-01 Fangrui Song <maskray@google.com>
123
124 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
125
9cdf9820
AKS
1262020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
127
128 * dwarf2/read.c (set_die_type): Removed conditions to restrict
129 forms for DW_AT_associated and DW_AT_allocated attributes,
130 which is already checked in function attr_to_dynamic_prop.
131
a1520ad8
TT
1322020-06-30 Tom Tromey <tromey@adacore.com>
133
134 * dwarf2/read.c (quirk_rust_enum): Correctly call
135 alloc_rust_variant for default-less enum.
136
5ac58899
TT
1372020-06-30 Tom Tromey <tromey@adacore.com>
138
139 PR build/26183:
140 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
141 gdb::to_string.
142
19b187a9
SM
1432020-06-29 Simon Marchi <simon.marchi@efficios.com>
144
145 * gdbarch.sh (displaced_step_copy_insn): Update doc.
146 * gdbarch.h: Re-generate.
147
cd4c4c07
TT
1482020-06-28 Tom Tromey <tom@tromey.com>
149
150 * command.h (cmd_types): Remove.
151 (cmd_type): Don't declare.
152 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
153 typedef.
154 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
155 * cli/cli-decode.c (cmd_type): Remove.
156
05779d57
PA
1572020-06-27 Pedro Alves <palves@redhat.com>
158
159 * fork-child.c (prefork_hook): Adjust.
160 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
161 Delete.
162 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
163 * inferior.c (inferior::set_tty, inferior::tty): New methods.
164 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
165 Remove declarations.
166 (struct inferior) <set_tty, tty>: New methods.
167 (struct inferior) <terminal>: Rename to ...
168 (struct inferior) <m_terminal>: ... this and make private.
169 * main.c (captured_main_1): Adjust.
170 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
171 (mi_cmd_inferior_tty_show): Adjust.
172 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
173 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
174
1776e3e5
NA
1752020-06-26 Nick Alcock <nick.alcock@oracle.com>
176
177 * configure.ac: Add --enable-libctf: handle --disable-static
178 properly.
179 * acinclude.m4: sinclude ../config/enable.m4.
180 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
181 (LIBCTF): Substitute in.
182 (CTF_DEPS): New, likewise.
183 (CLIBS): libctf needs symbols from libbfd: move earlier.
184 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
185 flags.
186 * ctfread.c: Surround in ENABLE_LIBCTF.
187 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
188 * configure: Regenerate.
189 * config.in: Likewise.
190
58373b80
SM
1912020-06-25 Simon Marchi <simon.marchi@efficios.com>
192
193 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
194
277474ee
SM
1952020-06-25 Simon Marchi <simon.marchi@efficios.com>
196
197 * inferior.h (struct inferior) <terminal>: Change type to
198 gdb::unique_xmalloc_ptr<char>.
199 * inferior.c (inferior::~inferior): Don't free inf->terminal.
200 * infcmd.c (set_inferior_io_terminal): Don't free terminal
201 field, adjust to unique pointer.
202 (get_inferior_io_terminal): Adjust to unique pointer.
203
6d74da72
AB
2042020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
205
206 * riscv-tdep.c (riscv_print_registers_info): Loop over all
207 registers, not just the known core set of registers.
208
2e52d038
AB
2092020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
210
211 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
212 fflags, frm, and fcsr registers.
213 (riscv_register_reggroup_p): Remove unknown CSRs from save and
214 restore groups.
215 (riscv_tdesc_unknown_reg): New function.
216 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
217 tdesc_use_registers.
218 * riscv-tdep.h (struct gdbarch_tdep): Add
219 unknown_csrs_first_regnum, unknown_csrs_count,
220 duplicate_fflags_regnum, duplicate_frm_regnum, and
221 duplicate_fcsr_regnum fields.
222
be64fd07
AB
2232020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
224
225 * target-descriptions.c (tdesc_use_registers): Add new parameter a
226 callback, use the callback (when not null) to help number unknown
227 registers.
228 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
229 (tdesc_use_registers): Add extra parameter to declaration.
230
3b9fce96
AB
2312020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
232
233 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
234 in the file.
235 (class riscv_pending_register_alias): Likewise.
236 (riscv_register_feature::register_info): Change 'required_p' field
237 to 'required', and change its type. Add 'check' member function.
238 (riscv_register_feature::register_info::check): Define new member
239 function.
240 (riscv_xreg_feature): Change initialisation of 'required' field.
241 (riscv_freg_feature): Likewise.
242 (riscv_virtual_feature): Likewise.
243 (riscv_csr_feature): Likewise.
244 (riscv_check_tdesc_feature): Take extra parameter, the csr
245 tdesc_feature, rewrite the function to use the new
246 riscv_register_feature::register_info::check function.
247 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
248
865bad26
AB
2492020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
250
251 * features/Makefile: Remove all references to the deleted files
252 below.
253 * features/riscv/32bit-csr.c: Deleted.
254 * features/riscv/32bit-csr.xml: Deleted.
255 * features/riscv/64bit-csr.c: Deleted.
256 * features/riscv/64bit-csr.xml: Deleted.
257 * features/riscv/rebuild-csr-xml.sh: Deleted.
258
ed69cbc8
AB
2592020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
260
261 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
262 whitespace error for declaration of names member variable.
263 (struct riscv_register_feature): Add new prefer_first_name member
264 variable, and fix whitespace error in declaration of registers.
265 (riscv_xreg_feature): Initialize prefer_first_name field.
266 (riscv_freg_feature): Likewise.
267 (riscv_virtual_feature): Likewise.
268 (riscv_csr_feature): Likewise.
269 (riscv_register_name): Expand on comments. Remove register name
270 modifications for CSR and virtual registers.
271
4445e8f5
AB
2722020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
273
274 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
275 errors.
276
767a879e
AB
2772020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
278
279 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
280 riscv-opc.h.
281 (class riscv_pending_register_alias): New class.
282 (riscv_check_tdesc_feature): Take vector of pending aliases and
283 populate it as appropriate.
284 (riscv_setup_register_aliases): Delete.
285 (riscv_gdbarch_init): Create vector of pending aliases and pass it
286 to riscv_check_tdesc_feature in all cases. Use the vector to
287 create the register aliases.
288
bb6e55f3
RO
2892020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
290
291 * sol2-tdep.c (sol2_static_transform_name): Remove.
292 (sol2_init_abi): Don't register it.
293 * gdbarch.sh (static_transform_name): Remove.
294 * gdbarch.c, gdbarch.h: Regenerate.
295
296 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
297 gdbarch_static_transform_name.
298 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
299 * stabsread.c (define_symbol) <'X'>: Remove.
300 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
301 handling.
302 <'V'>: Likewise.
303 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
304 <'S'>: Remove call to gdbarch_static_transform_name.
305
c6d36836
RO
3062020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
307
308 * procfs.c (procfs_pre_trace): New function.
309 (procfs_target::create_inferior): Pass it to fork_inferior.
310
a7e6196b
RO
3112020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
312
313 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
314 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
315 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
316 sol2-tdep.o, sparc-sol2-tdep.o.
317 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
318 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
319 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
320 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
321
d412e696
RO
3222020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
323
324 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
325 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
326 Call sol2_init_abi.
327 Remove calls to set_gdbarch_skip_solib_resolver,
328 set_gdbarch_core_pid_to_str.
329 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
330 (i386_sol2_static_transform_name): Remove.
331 (i386_sol2_init_abi): Call sol2_init_abi.
332 Remove calls to set_gdbarch_sofun_address_maybe_missing,
333 set_gdbarch_static_transform_name,
334 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
335 Use sol2_sigtramp_p.
336 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
337 (sol2_sigtramp_p): New function.
338 (sol2_static_transform_name): New function.
339 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
340 (sol2_init_abi): New function.
341 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
342 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
343 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
344 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
345 (sparc_sol2_static_transform_name): Remove.
346 (sparc32_sol2_init_abi): Call sol2_init_abi.
347 Remove calls to set_gdbarch_sofun_address_maybe_missing,
348 set_gdbarch_static_transform_name,
349 set_gdbarch_skip_solib_resolver,
350 set_gdbarch_core_pid_to_str.
351 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
352 (sparc_sol2_static_transform_name): Remove
353 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
354 call sol2_sigtramp_p.
355 (sparc64_sol2_init_abi): Call sol2_init_abi.
356 Remove calls to set_gdbarch_sofun_address_maybe_missing,
357 set_gdbarch_static_transform_name,
358 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
359
a8654e7d
PW
3602020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
361
362 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
363 * exec.c (validate_exec_file): If from_tty, set both
364 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
365 * symfile.c (symbol_file_add_with_addrs): if always_confirm
366 and from_tty, unconditionally ask a confirmation.
367
caa7fd04
AB
3682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
369
370 * target-descriptions.c (tdesc_architecture_name): Protect against
371 NULL pointer dereference.
372 (maint_print_xml_tdesc_cmd): New function.
373 (_initialize_target_descriptions): Register new 'maint print
374 xml-tdesc' command and give it the filename completer.
375 * NEWS: Mention new 'maint print xml-tdesc' command.
376
fbf42f4e
AB
3772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
378
379 * target-descriptions.c (class tdesc_compatible_info): New class.
380 (struct target_desc): Change type of compatible vector.
381 (tdesc_compatible_p): Update for change in type of
382 target_desc::compatible.
383 (tdesc_compatible_info_list): New function.
384 (tdesc_compatible_info_arch_name): New function.
385 (tdesc_add_compatible): Update for change in type of
386 target_desc::compatible.
387 (print_c_tdesc::visit_pre): Likewise.
388
20821f4e
AB
3892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
390
391 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
392 whitespace to underscore.
393 (maint_print_c_tdesc_cmd): Use fake filename for target
394 descriptions that came from the target.
395 (_initialize_target_descriptions): Add filename command completion
396 for 'maint print c-tdesc'.
397
1fb5ee62
SM
3982020-06-23 Simon Marchi <simon.marchi@efficios.com>
399
400 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
401 lines.
402
fc3ecb3e
SM
4032020-06-23 Simon Marchi <simon.marchi@efficios.com>
404
405 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
406 lines.
407 (dwarf2_find_location_expression): Likewise.
408 (call_site_parameter_matches): Likewise.
409 (dwarf2_compile_expr_to_ax): Likewise.
410 (disassemble_dwarf_expression): Likewise.
411 (loclist_describe_location): Likewise.
412
236ef034
PA
4132020-06-23 Pedro Alves <palves@redhat.com>
414
415 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
416 progspace-and-thread.h. Include scoped-mock-context.h instead.
417 (register_to_value_test): Use scoped_mock_context.
418 * regcache.c: Include "scoped-mock-context.h".
419 (cooked_read_test): Don't error out if a target is already pushed.
420 Use scoped_mock_context. Adjust.
421 * scoped-mock-context.h: New file.
422
39e7ecca
AB
4232020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
424
425 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
426 initializer.
427 (ada_language::is_string_type_p): New member function.
428 * c-lang.c (c_language_data): Delete la_is_string_type_p
429 initializer.
430 (cplus_language_data): Likewise.
431 (asm_language_data): Likewise.
432 (minimal_language_data): Likewise.
433 * d-lang.c (d_language_data): Likewise.
434 * f-lang.c (f_is_string_type_p): Delete function, implementation
435 moved to f_language::is_string_type_p.
436 (f_language_data): Delete la_is_string_type_p initializer.
437 (f_language::is_string_type_p): New member function,
438 implementation from f_is_string_type_p.
439 * go-lang.c (go_is_string_type_p): Delete function, implementation
440 moved to go_language::is_string_type_p.
441 (go_language_data): Delete la_is_string_type_p initializer.
442 (go_language::is_string_type_p): New member function,
443 implementation from go_is_string_type_p.
444 * language.c (language_defn::is_string_type_p): Define new member
445 function.
446 (default_is_string_type_p): Make static, add comment copied from
447 header file.
448 (unknown_language_data): Delete la_is_string_type_p initializer.
449 (unknown_language::is_string_type_p): New member function.
450 (auto_language_data): Delete la_is_string_type_p initializer.
451 (auto_language::is_string_type_p): New member function.
452 * language.h (language_data): Delete la_is_string_type_p field.
453 (language_defn::is_string_type_p): Declare new function.
454 (default_is_string_type_p): Delete desclaration, move comment to
455 definition.
456 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
457 moved to m2_language::is_string_type_p.
458 (m2_language_data): Delete la_is_string_type_p initializer.
459 (m2_language::is_string_type_p): New member function,
460 implementation from m2_is_string_type_p.
461 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
462 initializer.
463 * opencl-lang.c (opencl_language_data): Likewise.
464 * p-lang.c (pascal_is_string_type_p): Delete function,
465 implementation moved to pascal_language::is_string_type_p.
466 (pascal_language_data): Delete la_is_string_type_p initializer.
467 (pascal_language::is_string_type_p): New member function,
468 implementation from pascal_is_string_type_p.
469 * rust-lang.c (rust_is_string_type_p): Delete function,
470 implementation moved to rust_language::is_string_type_p.
471 (rust_language_data): Delete la_is_string_type_p initializer.
472 (rust_language::is_string_type_p): New member function,
473 implementation from rust_is_string_type_p.
474 * valprint.c (val_print_scalar_or_string_type_p): Update call to
475 is_string_type_p.
476
4ffc13fb
AB
4772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
478
479 * ada-lang.c (ada_language_data): Delete la_print_typedef
480 initializer.
481 (ada_language::print_typedef): New member function.
482 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
483 (cplus_language_data): Likewise.
484 (asm_language_data): Likewise.
485 (minimal_language_data): Likewise.
486 * d-lang.c (d_language_data): Likewise.
487 * f-lang.c (f_language_data): Likewise.
488 (f_language::print_typedef): New member function.
489 * go-lang.c (go_language_data): Delete la_print_typedef
490 initializer.
491 * language.c (language_defn::print_typedef): Define member
492 function.
493 (unknown_language_data): Delete la_print_typedef initializer.
494 (unknown_language::print_typedef): New member function.
495 (auto_language_data): Delete la_print_typedef initializer.
496 (auto_language::print_typedef): New member function.
497 * language.h (language_data): Delete la_print_typedef field.
498 (language_defn::print_typedef): Declare new member function.
499 (LA_PRINT_TYPEDEF): Update call to print_typedef.
500 (default_print_typedef): Delete declaration.
501 * m2-lang.c (m2_language_data): Delete la_print_typedef
502 initializer.
503 (m2_language::print_typedef): New member function.
504 * objc-lang.c (objc_language_data): Delete la_print_typedef
505 initializer.
506 * opencl-lang.c (opencl_language_data): Likewise.
507 * p-lang.c (pascal_language_data): Likewise.
508 (pascal_language::print_typedef): New member function.
509 * rust-lang.c (rust_print_typedef): Delete function,
510 implementation moved to rust_language::print_typedef.
511 (rust_language): Delete la_print_typedef initializer.
512 (rust_language::print_typedef): New member function,
513 implementation from rust_print_typedef.
514 * typeprint.c (default_print_typedef): Delete.
515
d711ee67
AB
5162020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
517
518 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
519 (ada_language::printstr): New member function.
520 * c-lang.c (c_language_data): Delete la_printstr initializer.
521 (cplus_language_data): Likewise.
522 (asm_language_data): Likewise.
523 (minimal_language_data): Likewise.
524 * d-lang.c (d_language_data): Likewise.
525 * f-lang.c (f_printstr): Rename to f_language::printstr.
526 (f_language_data): Delete la_printstr initializer.
527 (f_language::printstr): New member function, implementation from
528 f_printstr.
529 * go-lang.c (go_language_data): Delete la_printstr initializer.
530 * language.c (language_defn::printstr): Define new member
531 function.
532 (unk_lang_printstr): Delete.
533 (unknown_language_data): Delete la_printstr initializer.
534 (unknown_language::printstr): New member function.
535 (auto_language_data): Delete la_printstr initializer.
536 (auto_language::printstr): New member function.
537 * language.h (language_data): Delete la_printstr field.
538 (language_defn::printstr): Declare new member function.
539 (LA_PRINT_STRING): Update call to printstr.
540 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
541 (m2_language_data): Delete la_printstr initializer.
542 (m2_language::printstr): New member function, implementation from
543 m2_printstr.
544 * objc-lang.c (objc_language_data): Delete la_printstr
545 initializer.
546 * opencl-lang.c (opencl_language_data): Likewise.
547 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
548 (pascal_language_data): Delete la_printstr initializer.
549 (pascal_language::printstr): New member function, implementation
550 from pascal_printstr.
551 * p-lang.h (pascal_printstr): Delete declaration.
552 * rust-lang.c (rust_printstr): Update header comment.
553 (rust_language_data): Delete la_printstr initializer.
554 (rust_language::printstr): New member function.
555
52b50f2c
AB
5562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
557
558 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
559 (ada_language::printchar): New member function.
560 * c-lang.c (c_language_data): Delete la_printchar initializer.
561 (cplus_language_data): Likewise.
562 (asm_language_data): Likewise.
563 (minimal_language_data): Likewise.
564 * d-lang.c (d_language_data): Likewise.
565 * f-lang.c (f_printchar): Rename to f_language::printchar.
566 (f_language_data): Delete la_printchar initializer.
567 (f_language::printchar): New member function, implementation from
568 f_printchar.
569 * go-lang.c (go_language_data): Delete la_printchar initializer.
570 * language.c (unk_lang_printchar): Delete.
571 (language_defn::printchar): Define new member function.
572 (unknown_language_data): Delete la_printchar initializer.
573 (unknown_language::printchar): New member function.
574 (auto_language_data): Delete la_printchar initializer.
575 (auto_language::printchar): New member function.
576 * language.h (language_data): Delete la_printchar field.
577 (language_defn::printchar): Declare new member function.
578 (LA_PRINT_CHAR): Update call to printchar.
579 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
580 (m2_language::printchar): New member function.
581 * objc-lang.c (objc_language_data): Delete la_printchar
582 initializer.
583 * opencl-lang.c (opencl_language_data): Likewise.
584 * p-lang.c (pascal_language_data): Delete la_printchar
585 initializer.
586 (pascal_language::printchar): New member function.
587 * rust-lang.c (rust_printchar): Rename to
588 rust_language::printchar.
589 (rust_language_data): Delete la_printchar initializer.
590 (rust_language::printchar): New member function, implementation
591 from rust_printchar.
592
ec8cec5b
AB
5932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
594
595 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
596 (ada_language_data): Delete la_emitchar initializer.
597 (ada_language::emitchar): New member function, implementation from
598 emit_char.
599 * c-lang.c (c_language_data): Delete la_emitchar initializer.
600 (cplus_language_data): Likewise.
601 (asm_language_data): Likewise.
602 (minimal_language_data): Likewise.
603 * d-lang.c (d_language_data): Likewise.
604 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
605 (f_language_data): Delete la_emitchar initializer.
606 (f_language::emitchar): New member function, implementation from
607 f_emit_char.
608 * go-lang.c (go_language_data): Delete la_emitchar initializer.
609 * language.c (unk_lang_emit_char): Delete.
610 (language_defn::emitchar): New member function definition.
611 (unknown_language_data): Delete la_emitchar initializer.
612 (unknown_language::emitchar): New member function.
613 (auto_language_data): Delete la_emitchar initializer.
614 (auto_language::emitchar): New member function.
615 * language.h (language_data): Delete la_emitchar field.
616 (language_defn::emitchar): New member field declaration.
617 (LA_EMIT_CHAR): Update call to emitchar.
618 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
619 (m2_language_data): Delete la_emitchar initializer.
620 (m2_language::emitchar): New member function, implementation from
621 m2_emit_char.
622 * objc-lang.c (objc_language_data): Delete la_emitchar
623 initializer.
624 * opencl-lang.c (opencl_language_data): Likewise.
625 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
626 (pascal_language_data): Delete la_emitchar initializer.
627 (pascal_language::emitchar): New member function, implementation
628 from pascal_emit_char.
629 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
630 (rust_language_data): Delete la_emitchar initializer.
631 (rust_language::emitchar): New member function, implementation
632 from rust_emitchar.
633
1bf9c363
AB
6342020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
635
636 * ada-lang.c (resolve): Rename to ada_language::post_parser.
637 (ada_language_data): Delete la_post_parser initializer.
638 (ada_language::post_parser): New member function.
639 * c-lang.c (c_language_data): Delete la_post_parser initializer.
640 (cplus_language_data): Likewise.
641 (asm_language_data): Likewise.
642 (minimal_language_data): Likewise.
643 * d-lang.c (d_language_data): Likewise.
644 * f-lang.c (f_language_data): Likewise.
645 * go-lang.c (go_language_data): Likewise.
646 * language.c (unknown_language_data): Likewise.
647 (auto_language_data): Likewise.
648 * language.h (language_data): Delete la_post_parser field.
649 (language_defn::post_parser): New member function.
650 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
651 * objc-lang.c (objc_language_data): Likewise.
652 * opencl-lang.c (opencl_language_data): Likewise.
653 * p-lang.c (pascal_language_data): Likewise.
654 * parse.c (parse_exp_in_context): Update call to post_parser.
655 (null_post_parser): Delete definition.
656 * parser-defs.h (null_post_parser): Delete declaration.
657 * rust-lang.c (rust_language_data): Delete la_post_parser
658 initializer.
659
87afa652
AB
6602020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
661
662 * ada-lang.c (parse): Rename to ada_language::parser.
663 (ada_language_data): Delete la_parser initializer.
664 (ada_language::parser): New member function, implementation from
665 parse.
666 * c-lang.c (c_language_data): Delete la_parser initializer.
667 (cplus_language_data): Likewise.
668 (asm_language_data): Likewise.
669 (minimal_language_data): Likewise.
670 * d-lang.c (d_language_data): Likewise.
671 (d_language::parser): New member function.
672 * f-lang.c (f_language_data): Delete la_parser initializer.
673 (f_language::parser): New member function.
674 * go-lang.c (go_language_data): Delete la_parser initializer.
675 (go_language::parser): New member function.
676 * language.c (unk_lang_parser): Delete.
677 (language_defn::parser): Define new member function.
678 (unknown_language_data): Delete la_parser initializer.
679 (unknown_language::parser): New member function.
680 (auto_language_data): Delete la_parser initializer.
681 (auto_language::parser): New member function.
682 * language.h (language_data): Delete la_parser field.
683 (language_defn::parser): Declare new member function.
684 * m2-lang.c (m2_language_data): Delete la_parser initializer.
685 (m2_language::parser): New member function.
686 * objc-lang.c (objc_language_data): Delete la_parser initializer.
687 * opencl-lang.c (opencl_language_data): Likewise.
688 * p-lang.c (pascal_language_data): Likewise.
689 (pascal_language::parser): New member function.
690 * parse.c (parse_exp_in_context): Update call to parser.
691 * rust-lang.c (rust_language_data): Delete la_parser initializer.
692 (rust_language::parser): New member function.
693
37825800
AB
6942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
695
696 * top.c (print_gdb_configuration): Print --with-python-libdir
697 configuration value.
698
5b860c93
PW
6992020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
700
701 * NEWS: Mention change to the alias command.
702
cf00cd6f
PW
7032020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
704
705 * cli/cli-cmds.c (lookup_cmd_for_default_args)
706 (alias_command_completer)
707 (make_alias_options_def_group): New functions.
708 (alias_opts, alias_option_defs): New struct and array.
709 (alias_usage_error): Update usage.
710 (alias_command): Handles optional DEFAULT-ARGS... arguments.
711 Use option framework.
712 (_initialize_cli_cmds): Update alias command help.
713 Update aliases command help.
714 (show_user):
715 Add NULL for new default_args lookup_cmd argument.
716 (valid_command_p): Rename to validate_aliased_command.
717 Add NULL for new default_args lookup_cmd argument. Verify that the
718 aliased_command has no default args.
719 * cli/cli-decode.c (help_cmd): Show aliases definitions.
720 (lookup_cmd_1, lookup_cmd): New argument default_args.
721 (add_alias_cmd):
722 Add NULL for new default_args lookup_cmd argument.
723 (print_help_for_command): Show default args under the layout
724 alias some_alias = some_aliased_cmd some_alias_default_arg.
725 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
726 xfree default_args in destructor.
727 * cli/cli-script.c (process_next_line, do_define_command):
728 Add NULL for new default_args lookup_cmd argument.
729 * command.h: Declare new default_args argument in lookup_cmd
730 and lookup_cmd_1.
731 * completer.c (complete_line_internal_1):
732 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
733 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
734 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
735 Likewise.
736 * infcmd.c (_initialize_infcmd): Likewise.
737 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
738 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
739 * python/py-param.c (add_setshow_generic): Likewise.
740 * remote.c (_initialize_remote): Likewise.
741 * top.c (execute_command): Prepend default_args if command has some.
742 (set_verbose):
743 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
744 * tracepoint.c (validate_actionline, encode_actions_1):
745 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
746
bd920864
TBA
7472020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
748
749 * jit.c (jit_read_descriptor): Use bool as the return type.
750 (jit_breakpoint_re_set_internal): Use bool as the return type.
751 Invert the return value logic; return true if the jit breakpoint
752 has been successfully initialized.
753 (jit_inferior_init): Update the call to
754 jit_breakpoint_re_set_internal.
755
f8098322
PA
7562020-06-22 Pedro Alves <palves@redhat.com>
757
758 PR gdb/25939
759 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
760 Use the current inferior instead. Don't return
761 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
762 wait again.
763 * sol-thread.c (sol_thread_target::wait): Don't reference
764 inferior_ptid.
765 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
766 (sol_update_thread_list_callback): Use the current inferior's pid
767 instead of inferior_ptid.
768
196535a6
RO
7692020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
770
771 * procfs.c: Cleanup many comments.
772
773 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
774 (AFTER_WATCHFLAG): Replace by value.
775
776 (MAIN_PROC_NAME_FORMAT): Inline ...
777 (create_procinfo): ... here.
778
779 (procfs_debug_inferior): Remove SYS_exec handling.
780 (syscall_is_exec): Likewise.
781 (procfs_set_exec_trap): Likewise.
782
783 (syscall_is_lwp_exit): Inline in callers.
784 (syscall_is_exit): Likewise.
785 (syscall_is_exec): Likewise.
786 (syscall_is_lwp_create): Likewise.
787
788 (invalidate_cache): Remove #if 0 code.
789
790 (make_signal_thread_runnable): Remove.
791 (procfs_target::resume): Remove #if 0 code.
792
cf6f3e86
RO
7932020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
794
795 PR gdb/25939
796 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
797 call ...
798 (procfs_target::create_inferior): ... here.
799
48e9cc84
PW
8002020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
801
802 * exec.c (validate_exec_file): Ensure the build-id is up to
803 date by calling reopen_exec_file (that checks file timestamp
804 to decide to re-read the file).
805
3922b302
PA
8062020-06-18 Pedro Alves <palves@redhat.com>
807
808 PR gdb/25412
809 * gdbthread.h (delete_thread, delete_thread_silent)
810 (find_thread_ptid): Update comments.
811 * thread.c (current_thread_): New global.
812 (is_current_thread): Move higher, and reimplement.
813 (inferior_thread): Reimplement.
814 (set_thread_exited): Use bool. Add assertions.
815 (add_thread_silent): Simplify thread-reuse handling by always
816 calling delete_thread.
817 (delete_thread): Remove intro comment.
818 (find_thread_ptid): Skip exited threads.
819 (switch_to_thread_no_regs): Write to current_thread_.
820 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
821 INFERIOR_PTID. Clear current_thread_.
822
6dbdab44
PA
8232020-06-18 Pedro Alves <palves@redhat.com>
824
825 * aix-thread.c (pd_update): Use switch_to_thread.
826
2da4b788
PA
8272020-06-18 Pedro Alves <palves@redhat.com>
828
829 * ravenscar-thread.c (ravenscar_thread_target): Update.
830 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
831 (ravenscar_thread_target::add_active_thread): ... this. Don't
832 set m_base_ptid here. Update to avoid referencing inferior_ptid.
833 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
834
50838d1b
PA
8352020-06-18 Pedro Alves <palves@redhat.com>
836
837 * nat/windows-nat.c (current_windows_thread): Remove.
838 * nat/windows-nat.h (current_windows_thread): Remove.
839 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
840 Adjust.
841 (display_selectors): Adjust to fetch the current
842 windows_thread_info based on inferior_ptid.
843 (fake_create_process): No longer write to current_windows_thread.
844 (windows_nat_target::get_windows_debug_event):
845 Don't set inferior_ptid or current_windows_thread.
846 (windows_nat_target::wait): Adjust to not rely on
847 current_windows_thread.
848 (do_initial_windows_stuff): Now a method of windows_nat_target.
849 Switch to the last_ptid thread.
850 (windows_nat_target::attach): Adjust.
851 (windows_nat_target::detach): Use switch_to_no_thread instead of
852 writing to inferior_ptid directly.
853 (windows_nat_target::create_inferior): Adjust.
854
31ce04e9
PA
8552020-06-18 Pedro Alves <palves@redhat.com>
856
857 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
858
1ee1a363
PA
8592020-06-18 Pedro Alves <palves@redhat.com>
860
861 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
862 after creating it, instead of writing to inferior_ptid. Don't
863 write to inferior_ptid.
864
6d350754
PA
8652020-06-18 Pedro Alves <palves@redhat.com>
866
867 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
868
5d971d48
PA
8692020-06-18 Pedro Alves <palves@redhat.com>
870
871 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
872 it, instead of writing to inferior_ptid.
873
86e57d1b
PA
8742020-06-18 Pedro Alves <palves@redhat.com>
875
876 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
877 to inferior_ptid.
878
f2e1c129
PA
8792020-06-18 Pedro Alves <palves@redhat.com>
880
881 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
882 instead of writing to inferior_ptid directly.
883
60db1b85
PA
8842020-06-18 Pedro Alves <palves@redhat.com>
885
886 * corelow.c (core_target::close): Use switch_to_no_thread instead
887 of writing to inferior_ptid directly.
888 (add_to_thread_list, core_target_open): Use switch_to_thread
889 instead of writing to inferior_ptid directly.
890
fe7d6a8d
PA
8912020-06-18 Pedro Alves <palves@redhat.com>
892
893 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
894 inferior_ptid.
895 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
896 inferior_ptid.
897 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
898 inferior_ptid directly.
899 (darwin_nat_target::init_thread_list): Switch to thread, instead
900 of writing to inferior_ptid.
901 (darwin_nat_target::attach): Don't write to inferior_ptid.
902 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
903
975f8708
PA
9042020-06-18 Pedro Alves <palves@redhat.com>
905
906 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
907 thread.
908 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
909 Instead use switch_to_thread.
910 (gnu_nat_target::detach): Use switch_to_no_thread
911 instead of writing to inferior_ptid directly. Used passed-in
912 inferior instead of looking up the inferior by pid.
913
1a204730
PA
9142020-06-18 Pedro Alves <palves@redhat.com>
915
916 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
917 inferior_ptid.
918
ebe84f23
PA
9192020-06-18 Pedro Alves <palves@redhat.com>
920
921 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
922 inferior_ptid.
923 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
924 thread.
925 (nto_procfs_target::detach): Avoid referencing
926 inferior_ptid. Use switch_to_no_thread instead of writing to
927 inferior_ptid directly.
928 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
929 instead of writing to inferior_ptid directly.
930 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
931 to thread.
932
191f02e5
PA
9332020-06-18 Pedro Alves <palves@redhat.com>
934
935 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
936 after creating it, instead of writing to inferior_ptid.
937 (gdbsim_target_open): Use switch_to_no_thread instead of writing
938 to inferior_ptid directly.
939 (gdbsim_target::wait): Don't write to inferior_ptid.
940
0ac55310
PA
9412020-06-18 Pedro Alves <palves@redhat.com>
942
943 * remote.c (remote_target::remote_notice_new_inferior): Use
944 switch_to_thread instead of writing to inferior_ptid directly.
945 (remote_target::add_current_inferior_and_thread): Use
946 switch_to_no_thread instead of writing to inferior_ptid directly.
947 (extended_remote_target::attach): Use switch_to_inferior_no_thread
948 and switch_to_thread instead of using set_current_inferior or
949 writing to inferior_ptid directly.
950
5233f39b
PA
9512020-06-18 Pedro Alves <palves@redhat.com>
952
953 * tracectf.c (ctf_target_open): Switch to added thread instead of
954 writing to inferior_ptid directly.
955 (ctf_target::close): Use switch_to_no_thread instead of writing to
956 inferior_ptid directly.
957
087e161b
PA
9582020-06-18 Pedro Alves <palves@redhat.com>
959
960 * tracefile-tfile.c (tfile_target_open): Don't write to
961 inferior_ptid directly, instead switch to added thread.
962 (tfile_target::close): Use switch_to_no_thread instead of writing
963 to inferior_ptid directly.
964
7fb43e53
PA
9652020-06-18 Pedro Alves <palves@redhat.com>
966
967 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
968 (procfs_target::detach): Use switch_to_no_thread
969 instead of writing to inferior_ptid directly.
970 (do_attach): Change return type to void. Switch to the added
971 thread.
972 (procfs_target::create_inferior): Switch to the added thread.
973 (procfs_do_thread_registers): Don't write to inferior_ptid.
974
18493a00
PA
9752020-06-18 Pedro Alves <palves@redhat.com>
976
977 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
978 of writing to inferior_ptid.
979 (scoped_restore_exited_inferior): Delete.
980 (handle_vfork_child_exec_or_exit): Simplify using
981 scoped_restore_current_pspace_and_thread. Use switch_to_thread
982 instead of writing to inferior_ptid.
983 (THREAD_STOPPED_BY): Delete.
984 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
985 (thread_stopped_by_hw_breakpoint): Delete.
986 (save_waitstatus): Use
987 scoped_restore_current_thread+switch_to_thread, and call
988 target_stopped_by_watchpoint instead of
989 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
990 instead of thread_stopped_by_sw_breakpoint, and
991 target_stopped_by_hw_breakpoint instead of
992 thread_stopped_by_hw_breakpoint.
993 (handle_inferior_event)
994 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
995 inferior_ptid directly, nor
996 set_current_inferior/set_current_program_space. Use
997 switch_to_thread / switch_to_inferior_no_thread instead.
998
a0776b13
PA
9992020-06-18 Pedro Alves <palves@redhat.com>
1000
1001 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1002 instead of writing to inferior_ptid.
1003
6155c136
PA
10042020-06-18 Pedro Alves <palves@redhat.com>
1005
1006 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1007 added thread.
1008 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1009 to the added thread.
1010 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1011 instead of writing to inferior_ptid.
1012
c5316fc6
PA
10132020-06-18 Pedro Alves <palves@redhat.com>
1014
1015 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1016 (register_to_value_test): Mock a program_space too. Heap-allocate
1017 the address space. Don't write to inferior_ptid. Use
1018 switch_to_thread instead.
1019
8df01799
PA
10202020-06-18 Pedro Alves <palves@redhat.com>
1021
1022 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1023 Delete.
1024 (find_signalled_thread()): New, factored out from
1025 linux_make_corefile_notes and adjusted to handle exited threads.
1026 (linux_make_corefile_notes): Adjust to use the new
1027 find_signalled_thread.
1028
41792d68
PA
10292020-06-18 Pedro Alves <palves@redhat.com>
1030
1031 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1032 of saving/restoring inferior_ptid.
1033
612f258a
TT
10342020-06-17 Tom Tromey <tom@tromey.com>
1035
1036 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1037 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1038 declare.
1039 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1040
efb763a5
SM
10412020-06-15 Simon Marchi <simon.marchi@efficios.com>
1042
1043 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1044 of partial symtabs.
1045
2951f6c0
SM
10462020-06-17 Simon Marchi <simon.marchi@efficios.com>
1047
1048 * regformats/reg-arm.dat: Remove.
1049 * regformats/reg-bfin.dat: Remove.
1050 * regformats/reg-cris.dat: Remove.
1051 * regformats/reg-crisv32.dat: Remove.
1052 * regformats/reg-m32r.dat: Remove.
1053 * regformats/reg-tilegx.dat: Remove.
1054 * regformats/reg-tilegx32.dat: Remove.
1055
7d458ea5
SM
10562020-06-17 Simon Marchi <simon.marchi@efficios.com>
1057
1058 * features/Makefile (WHICH): Remove arm files.
1059 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1060 * regformats/arm/arm-with-neon.dat: Remove.
1061 * regformats/arm/arm-with-vfpv2.dat: Remove.
1062 * regformats/arm/arm-with-vfpv3.dat: Remove.
1063
3af96c0d
SM
10642020-06-17 Simon Marchi <simon.marchi@efficios.com>
1065
1066 * features/Makefile (XMLTOC): Remove rx.xml.
1067
b25e22fd
PA
10682020-06-17 Pedro Alves <palves@redhat.com>
1069
1070 * gdbthread.h (thread_control_state) <trap_expected> Update
1071 comments.
1072
a78a19b1
AB
10732020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1074
1075 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1076 ada_language::lookup_symbol_nonlocal.
1077 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1078 (ada_language::lookup_symbol_nonlocal): New member function,
1079 implementation from ada_lookup_symbol_nonlocal.
1080 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1081 initializer.
1082 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1083 initializer.
1084 (cplus_language::lookup_symbol_nonlocal): New member function.
1085 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1086 (minimal_language_data) Likewise.
1087 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1088 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1089 initializer.
1090 (d_language::lookup_symbol_nonlocal): New member function.
1091 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1092 initializer.
1093 (f_language::lookup_symbol_nonlocal): New member function.
1094 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1095 initializer.
1096 * language.c (unknown_language_data): Likewise.
1097 (auto_language_data): Likewise.
1098 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1099 field.
1100 (language_defn::lookup_symbol_nonlocal): New member function.
1101 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1102 initializer.
1103 * objc-lang.c (objc_language_data): Likewise.
1104 * opencl-lang.c (opencl_language_data): Likewise.
1105 * p-lang.c (pascal_language_data): Likewise.
1106 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1107 rust_language::lookup_symbol_nonlocal.
1108 (rust_language_data): Delete la_lookup_symbol_nonlocal
1109 initializer.
1110 (rust_language::lookup_symbol_nonlocal): New member function,
1111 implementation from rust_lookup_symbol_nonlocal.
1112 * symtab.c (lookup_symbol_aux): Update call to
1113 lookup_symbol_nonlocal.
1114 (basic_lookup_symbol_nonlocal): Rename to...
1115 (language_defn::lookup_symbol_nonlocal): ...this, and update
1116 header comment. Remove language_defn parameter, and replace with
1117 uses of `this'.
1118 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1119
ebe2334e
AB
11202020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1121
1122 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1123 initializer.
1124 (ada_language::value_print_inner): New member function.
1125 * c-lang.c (c_language_data): Delete la_value_print_inner
1126 initializer.
1127 (cplus_language_data): Likewise.
1128 (asm_language_data): Likewise.
1129 (minimal_language_data): Likewise.
1130 * d-lang.c (d_language_data): Likewise.
1131 (d_language::value_print_inner): New member function.
1132 * f-lang.c (f_language_data): Delete la_value_print_inner
1133 initializer.
1134 (f_language::value_print_inner): New member function.
1135 * f-lang.h (f_value_print_innner): Rename to...
1136 (f_value_print_inner): ...this (note spelling of 'inner').
1137 * f-valprint.c (f_value_print_innner): Rename to...
1138 (f_value_print_inner): ...this (note spelling of 'inner').
1139 * go-lang.c (go_language_data): Delete la_value_print_inner
1140 initializer.
1141 (go_language::value_print_inner): New member function.
1142 * language.c (language_defn::value_print_inner): Define new member
1143 function.
1144 (unk_lang_value_print_inner): Delete.
1145 (unknown_language_data): Delete la_value_print_inner initializer.
1146 (unknown_language::value_print_inner): New member function.
1147 (auto_language_data): Delete la_value_print_inner initializer.
1148 (auto_language::value_print_inner): New member function.
1149 * language.h (language_data): Delete la_value_print_inner field.
1150 (language_defn::value_print_inner): Delcare new member function.
1151 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1152 initializer.
1153 (m2_language::value_print_inner): New member function.
1154 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1155 initializer.
1156 * opencl-lang.c (opencl_language_data): Likewise.
1157 * p-lang.c (pascal_language_data): Likewise.
1158 (pascal_language::value_print_inner): New member function.
1159 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1160 initializer.
1161 (rust_language::value_print_inner): New member function.
1162 * valprint.c (do_val_print): Update call to value_print_inner.
1163
a1d1fa3e
AB
11642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1165
1166 * ada-lang.c (ada_language_data): Delete la_value_print
1167 initializer.
1168 (ada_language::value_print): New member function.
1169 * c-lang.c (c_language_data): Delete la_value_print initializer.
1170 (cplus_language_data): Likewise.
1171 (asm_language_data): Likewise.
1172 (minimal_language_data): Likewise.
1173 * d-lang.c (d_language_data): Likewise.
1174 * f-lang.c (f_language_data): Likewise.
1175 * go-lang.c (go_language_data): Likewise.
1176 * language.c (unk_lang_value_print): Delete.
1177 (language_defn::value_print): Define new member function.
1178 (unknown_language_data): Delete la_value_print initializer.
1179 (unknown_language::value_print): New member function.
1180 (auto_language_data): Delete la_value_print initializer.
1181 (auto_language::value_print): New member function.
1182 * language.h (language_data): Delete la_value_print field.
1183 (language_defn::value_print): Declare new member function.
1184 (LA_VALUE_PRINT): Update call to value_print.
1185 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1186 * objc-lang.c (objc_language_data): Likewise.
1187 * opencl-lang.c (opencl_language_data): Likewise.
1188 * p-lang.c (pascal_language_data): Likewise.
1189 (pascal_language::value_print): New member function.
1190 * rust-lang.c (rust_language_data): Delete la_value_print
1191 initializer.
1192
f16a9f57
AB
11932020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1194
1195 * ada-lang.c (ada_watch_location_expression): Rename to
1196 ada_language::watch_location_expression.
1197 (ada_language_data): Delete la_watch_location_expression
1198 initializer.
1199 (ada_language::watch_location_expression): New member function,
1200 implementation from ada_watch_location_expression.
1201 * breakpoint.c (watch_command_1): Update call to
1202 watch_location_expression.
1203 * c-lang.c (c_watch_location_expression): Rename to
1204 language_defn::watch_location_expression.
1205 (c_language_data): Delete la_watch_location_expression
1206 initializer.
1207 (cplus_language_data): Likewise.
1208 (asm_language_data): Likewise.
1209 (minimal_language_data): Likewise.
1210 * c-lang.h (c_watch_location_expression): Delete declaration.
1211 * d-lang.c (d_language_data): Delete la_watch_location_expression
1212 initializer.
1213 * f-lang.c (f_language_data): Likewise.
1214 * go-lang.c (go_language_data): Likewise.
1215 * language.c (language_defn::watch_location_expression): Member
1216 function implementation from c_watch_location_expression.
1217 (unknown_language_data): Delete la_watch_location_expression
1218 initializer.
1219 (auto_language_data): Likewise.
1220 * language.h (language_data): Delete la_watch_location_expression
1221 field.
1222 (language_defn::watch_location_expression): Declare new member
1223 function.
1224 * m2-lang.c (m2_language_data): Delete
1225 la_watch_location_expression initializer.
1226 * objc-lang.c (objc_language_data): Likewise.
1227 * opencl-lang.c (opencl_language_data): Likewise.
1228 * p-lang.c (pascal_language_data): Likewise.
1229 * rust-lang.c (rust_watch_location_expression): Rename to
1230 rust_language::watch_location_expression.
1231 (rust_language_data): Delete la_watch_location_expression
1232 initializer.
1233 (rust_language::watch_location_expression): New member function,
1234 implementation from rust_watch_location_expression.
1235
7e56227d
AB
12362020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1237
1238 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1239 ada_language::collect_symbol_completion_matches.
1240 (ada_language_data): Delete la_collect_symbol_completion_matches
1241 initializer.
1242 (ada_language::collect_symbol_completion_matches): New member
1243 function, implementation from
1244 ada_collect_symbol_completion_matches.
1245 * c-lang.c (c_language_data): Delete
1246 la_collect_symbol_completion_matches initializer.
1247 (cplus_language_data): Likewise.
1248 (asm_language_data): Likewise.
1249 (minimal_language_data): Likewise.
1250 * d-lang.c (d_language_data): Likewise.
1251 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1252 f_language::collect_symbol_completion_matches.
1253 (f_language_data): Delete la_collect_symbol_completion_matches
1254 initializer.
1255 (f_language::collect_symbol_completion_matches) New member
1256 function, implementation from f_collect_symbol_completion_matches.
1257 * go-lang.c (go_language_data): Delete
1258 la_collect_symbol_completion_matches initializer.
1259 * language.c (unknown_language_data): Likewise.
1260 (auto_language_data): Likewise.
1261 * language.h (language_data): Delete
1262 la_collect_symbol_completion_matches field.
1263 (language_defn::collect_symbol_completion_matches): New member
1264 function.
1265 * m2-lang.c (m2_language_data): Delete
1266 la_collect_symbol_completion_matches initializer.
1267 * objc-lang.c (objc_language_data): Likewise.
1268 * opencl-lang.c (opencl_language_data): Likewise.
1269 * p-lang.c (pascal_language_data): Likewise.
1270 * rust-lang.c (rust_language_data): Likewise.
1271 * symtab.c (default_collect_symbol_completion_matches): Delete.
1272 (collect_symbol_completion_matches): Update call to
1273 collect_symbol_completion_matches.
1274 (collect_symbol_completion_matches_type): Likewise.
1275 * symtab.h (default_collect_symbol_completion_matches): Delete
1276 declaration.
1277
53fc67f8
AB
12782020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1279
1280 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1281 (ada_language_data): Delete la_word_break_characters initializer.
1282 (ada_language::word_break_characters): New member function.
1283 * c-lang.c (c_language_data): Delete la_word_break_characters
1284 initializer.
1285 (cplus_language_data): Likewise.
1286 (asm_language_data): Likewise.
1287 (minimal_language_data): Likewise.
1288 * completer.c: Update global comment.
1289 (advance_to_expression_complete_word_point): Update call to
1290 word_break_characters.
1291 (complete_files_symbols): Likewise.
1292 (complete_line_internal_1): Likewise.
1293 (default_completer_handle_brkchars): Likewise.
1294 (skip_quoted_chars): Likewise.
1295 * d-lang.c (d_language_data): Delete la_word_break_characters
1296 initializer.
1297 * f-lang.c (f_word_break_characters): Delete.
1298 (f_language_data): Delete la_word_break_characters initializer.
1299 (f_language::word_break_characters): New member function.
1300 * go-lang.c (go_language_data): Delete la_word_break_characters
1301 initializer.
1302 * language.c (unknown_language_data): Likewise.
1303 (auto_language_data): Likewise.
1304 * language.h (default_word_break_characters): Move declaration to
1305 earlier in the file.
1306 (language_data): Delete la_word_break_characters field.
1307 (language_defn::word_break_characters): New member function.
1308 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1309 initializer.
1310 * objc-lang.c (objc_language_data): Likewise.
1311 * opencl-lang.c (opencl_language_data): Likewise.
1312 * p-lang.c (pascal_language_data): Likewise.
1313 * rust-lang.c (rust_language_data): Likewise.
1314
c9debfb9
AB
13152020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1316
1317 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1318 (ada_language_data): Delete la_get_symbol_name_matcher
1319 initializer.
1320 (language_defn::get_symbol_name_matcher_inner): New member
1321 function.
1322 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1323 initializer.
1324 (cplus_language_data): Likewise.
1325 (cplus_language::get_symbol_name_matcher_inner): New member
1326 function.
1327 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1328 (minimal_language_data): Likewise.
1329 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1330 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1331 initializer.
1332 * dictionary.c (iter_match_first_hashed): Update call to
1333 get_symbol_name_matcher.
1334 (iter_match_next_hashed): Likewise.
1335 (iter_match_next_linear): Likewise.
1336 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1337 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1338 initializer.
1339 (f_language::get_symbol_name_matcher_inner): New member function.
1340 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1341 initializer.
1342 * language.c (default_symbol_name_matcher): Update header comment,
1343 make static.
1344 (language_defn::get_symbol_name_matcher): New definition.
1345 (language_defn::get_symbol_name_matcher_inner): Likewise.
1346 (get_symbol_name_matcher): Delete.
1347 (unknown_language_data): Delete la_get_symbol_name_matcher
1348 initializer.
1349 (auto_language_data): Likewise.
1350 * language.h (language_data): Delete la_get_symbol_name_matcher
1351 field.
1352 (language_defn::get_symbol_name_matcher): New member function.
1353 (language_defn::get_symbol_name_matcher_inner): Likewise.
1354 (default_symbol_name_matcher): Delete declaration.
1355 * linespec.c (find_methods): Update call to
1356 get_symbol_name_matcher.
1357 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1358 initializer.
1359 * minsyms.c (lookup_minimal_symbol): Update call to
1360 get_symbol_name_matcher.
1361 (iterate_over_minimal_symbols): Likewise.
1362 * objc-lang.c (objc_language_data): Delete
1363 la_get_symbol_name_matcher initializer.
1364 * opencl-lang.c (opencl_language_data): Likewise.
1365 * p-lang.c (pascal_language_data): Likewise.
1366 * psymtab.c (psymbol_name_matches): Update call to
1367 get_symbol_name_matcher.
1368 * rust-lang.c (rust_language_data): Delete
1369 la_get_symbol_name_matcher initializer.
1370 * symtab.c (symbol_matches_search_name): Update call to
1371 get_symbol_name_matcher.
1372 (compare_symbol_name): Likewise.
1373
9a49ad8c
AB
13742020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1375
1376 * ada-lang.c (ada_language_data): Delete la_compute_program
1377 initializer.
1378 * c-lang.c (c_language_data): Likewise.
1379 (c_language::compute_program): New member function.
1380 (cplus_language_data): Delete la_compute_program initializer.
1381 (cplus_language::compute_program): New member function.
1382 (asm_language_data): Delete la_compute_program initializer.
1383 (minimal_language_data): Likewise.
1384 * c-lang.h (c_compute_program): Update comment.
1385 (cplus_compute_program): Likewise.
1386 * compile/compile-c-support.c (c_compute_program): Likewise.
1387 (cplus_compute_program): Likewise.
1388 * compile/compile.c (compile_to_object): Update call to
1389 la_compute_program.
1390 * d-lang.c (d_language_data): Delete la_compute_program
1391 initializer.
1392 * f-lang.c (f_language_data): Likewise.
1393 * go-lang.c (go_language_data): Likewise.
1394 * language.c (unknown_language_data): Likewise.
1395 (auto_language_data): Likewise.
1396 * language.h (language_data): Delete la_compute_program field.
1397 (language_defn::compute_program): New member function.
1398 * m2-lang.c (m2_language_data): Delete la_compute_program
1399 initializer.
1400 * objc-lang.c (objc_language_data): Likewise.
1401 * opencl-lang.c (opencl_language_data): Likewise.
1402 * p-lang.c (pascal_language_data): Likewise.
1403 * rust-lang.c (rust_language_data): Likewise.
1404
eff93b4d
AB
14052020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1406
1407 * ada-lang.c (ada_language_data) Delete
1408 la_class_name_from_physname initializer.
1409 * c-lang.c (c_language_data): Likewise.
1410 (cplus_language_data): Likewise.
1411 (cplus_language::class_name_from_physname): New member function.
1412 (asm_language_data): Delete la_class_name_from_physname
1413 initializer.
1414 (minimal_language_data): Likewise.
1415 * d-lang.c (d_language_data): Likewise.
1416 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1417 method on language_defn class.
1418 (guess_full_die_structure_name): Likewise.
1419 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1420 initializer.
1421 * go-lang.c (go_language_data): Likewise.
1422 * language.c (language_class_name_from_physname): Delete.
1423 (unk_lang_class_name): Delete.
1424 (unknown_language_data): Delete la_class_name_from_physname
1425 initializer.
1426 (auto_language_data): Likewise.
1427 * language.h (language_data): Delete la_class_name_from_physname
1428 field.
1429 (language_defn::class_name_from_physname): New function.
1430 (language_class_name_from_physname): Delete declaration.
1431 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1432 initializer.
1433 * objc-lang.c (objc_language_data): Likewise.
1434 * opencl-lang.c (opencl_language_data): Likewise.
1435 * p-lang.c (pascal_language_data): Likewise.
1436 * rust-lang.c (rust_language_data): Likewise.
1437
de543742
TT
14382020-06-16 Tom Tromey <tom@tromey.com>
1439
1440 * tui/tui-data.h (STATUS_NAME): New macro.
1441 * tui/tui-layout.c (tui_remove_some_windows)
1442 (initialize_known_windows, tui_register_window)
1443 (tui_layout_split::remove_windows, initialize_layouts)
1444 (tui_new_layout_command): Don't use hard-coded window names.
1445
a350efd4
TT
14462020-06-16 Tom Tromey <tom@tromey.com>
1447
1448 PR tui/25348:
1449 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1450 tui_initialize_readline. Only run once. Call rl_initialize.
1451 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1452 tui_initialize_readline.
1453 * tui/tui-io.c (tui_setup_io): Call
1454 tui_ensure_readline_initialized.
1455 * tui/tui-interp.c (tui_interp::init): Update.
1456
39ec0490
TT
14572020-06-16 Tom Tromey <tom@tromey.com>
1458
1459 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1460 Also preserve the status window.
1461
d2d1ea20
TT
14622020-06-16 Tom Tromey <tom@tromey.com>
1463
1464 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1465 where m_window==nullptr.
1466
66920317
TT
14672020-06-15 Tom Tromey <tromey@adacore.com>
1468
1469 * windows-nat.c (windows_nat::handle_output_debug_string):
1470 Update.
1471 (windows_nat::handle_ms_vc_exception): Update.
1472 * target.h (target_read_string): Change API.
1473 * target.c (target_read_string): Change API.
1474 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1475 Update.
1476 * solib-frv.c (frv_current_sos): Update.
1477 * solib-dsbt.c (dsbt_current_sos): Update.
1478 * solib-darwin.c (darwin_current_sos): Update.
1479 * linux-thread-db.c (inferior_has_bug): Update.
1480 * expprint.c (print_subexp_standard): Update.
1481 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1482 (ada_exception_message_1): Update.
1483
a5d871dd
TT
14842020-06-15 Tom Tromey <tromey@adacore.com>
1485
1486 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1487
670e35fa
TT
14882020-06-15 Tom Tromey <tromey@adacore.com>
1489
1490 * valprint.c (read_string): Update comment.
1491 * target.c (MIN): Remove.
1492 (target_read_string): Rewrite.
1493
f5272a3b
TT
14942020-06-15 Tom Tromey <tromey@adacore.com>
1495
1496 * corefile.c (read_memory_string): Remove.
1497 * ada-valprint.c (ada_value_print_ptr): Update.
1498 * ada-lang.h (ada_tag_name): Change return type.
1499 * ada-lang.c (type_from_tag): Update.
1500 (ada_tag_name_from_tsd): Change return type. Use
1501 target_read_string.
1502 (ada_tag_name): Likewise.
1503 * gdbcore.h (read_memory_string): Don't declare.
1504
2c074f49
HD
15052020-06-14 Hannes Domani <ssbssa@yahoo.de>
1506
1507 * symtab.c (rbreak_command): Ignore Windows drive colon.
1508
6a17d503
SM
15092020-06-12 Simon Marchi <simon.marchi@efficios.com>
1510
1511 * NEWS: Mention removed GDBserver host support.
1512
453c733f
NC
15132020-06-12 Nelson Chu <nelson.chu@sifive.com>
1514
1515 * features/riscv/rebuild-csr-xml.sh: Updated.
1516
2b4e6a3f
TT
15172020-06-11 Tom Tromey <tom@tromey.com>
1518
1519 PR gdb/18318:
1520 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1521
4412332f
JG
15222020-06-09 Jonny Grant <jg@jguk.org>
15232020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1524
1525 * main.c (captured_main_1): Don't print new line after help.
1526 (print_gdb_help): add mailing list and IRC channel information
1527 to --help. Add new lines between items in the footer. Remove
1528 quotes around bug url.
1529
2f33032a
KS
15302020-06-11 Keith Seitz <keiths@redhat.com>
1531
1532 PR gdb/21356
1533 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1534 Resolve typedefs for type length calculations.
1535
7ab96794
TV
15362020-06-10 Tom de Vries <tdevries@suse.de>
1537
1538 PR ada/24713
1539 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1540 (write_psymbols): Enable .gdb_index for ada.
1541 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1542 ada.
1543
e5f3ece2
TV
15442020-06-10 Tom de Vries <tdevries@suse.de>
1545
1546 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1547 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1548 namei" instead of "const char *name" argument.
1549 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1550 dw2_symtab_iter_init.
1551
940da03e
SM
15522020-06-08 Simon Marchi <simon.marchi@efficios.com>
1553
1554 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1555 to use type::field and field::type instead.
1556
b6cdac4b
SM
15572020-06-08 Simon Marchi <simon.marchi@efficios.com>
1558
1559 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1560 to use field::type instead.
1561
5d14b6e5
SM
15622020-06-08 Simon Marchi <simon.marchi@efficios.com>
1563
1564 * gdbtypes.h (struct field) <type, set_type>: New methods.
1565 Rename `type` field to...
1566 <m_type>: ... this. Change references throughout to use type or
1567 set_type methods.
1568 (FIELD_TYPE): Use field::type. Change call sites that modify
1569 the field's type to use field::set_type instead.
1570
3d967001
SM
15712020-06-08 Simon Marchi <simon.marchi@efficios.com>
1572
1573 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1574 to use type::index_type instead.
1575
262abc0d
SM
15762020-06-08 Simon Marchi <simon.marchi@efficios.com>
1577
1578 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1579 methods.
1580 (TYPE_INDEX_TYPE): Use type::index_type.
1581 * gdbtypes.c (create_array_type_with_stride): Likewise.
1582
82836c92
TT
15832020-06-07 Tom Tromey <tom@tromey.com>
1584
1585 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1586 parameter.
1587 (generic_value_print): Update.
1588
940dace9
AB
15892020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1590
1591 Revert commit 982a38f60b0.
1592 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1593
982a38f6
AB
15942020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1595
1596 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1597 avoid use after free.
1598
82f06518
TV
15992020-06-05 Tom de Vries <tdevries@suse.de>
1600
1601 * NEWS: Fix typos.
1602
f8c41851
SM
16032020-06-04 Simon Marchi <simon.marchi@efficios.com>
1604
1605 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1606 the per_bfd object.
1607 (dwarf2_read_debug_names): Likewise.
1608 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1609 object when re-using a per_bfd object with an index.
1610
f9b5d5ea
TV
16112020-06-03 Tom de Vries <tdevries@suse.de>
1612
1613 PR symtab/26046
1614 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1615 children for C++.
1616 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1617 DW_TAG_subprogram.
1618
f6eee2d0
AB
16192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1620
1621 * ada-lang.c (ada_language_data): Delete skip_trampoline
1622 initializer.
1623 * c-lang.c (c_language_data): Likewise.
1624 (cplus_language_data): Likewise.
1625 (cplus_language::skip_trampoline): New member function.
1626 (asm_language_data): Delete skip_trampoline initializer.
1627 (minimal_language_data): Likewise.
1628 * d-lang.c (d_language_data): Likewise.
1629 * f-lang.c (f_language_data): Likewise.
1630 * go-lang.c (go_language_data): Likewise.
1631 * language.c (unk_lang_trampoline): Delete function.
1632 (skip_language_trampoline): Update.
1633 (unknown_language_data): Delete skip_trampoline initializer.
1634 (auto_language_data): Likewise.
1635 * language.h (language_data): Delete skip_trampoline field.
1636 (language_defn::skip_trampoline): New function.
1637 * m2-lang.c (m2_language_data): Delete skip_trampoline
1638 initializer.
1639 * objc-lang.c (objc_skip_trampoline): Delete function, move
1640 implementation to objc_language::skip_trampoline.
1641 (objc_language_data): Delete skip_trampoline initializer.
1642 (objc_language::skip_trampoline): New member function with
1643 implementation from objc_skip_trampoline.
1644 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1645 initializer.
1646 * p-lang.c (pascal_language_data): Likewise.
1647 * rust-lang.c (rust_language_data): Likewise.
1648
0a50df5d
AB
16492020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1650
1651 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1652 (ada_language::demangle): New member function.
1653 * c-lang.c (c_language_data): Delete la_demangle initializer.
1654 (cplus_language_data): Delete la_demangle initializer.
1655 (cplus_language::demangle): New member function.
1656 (asm_language_data): Delete la_demangle initializer.
1657 (minimal_language_data): Delete la_demangle initializer.
1658 * d-lang.c (d_language_data): Delete la_demangle initializer.
1659 (d_language::demangle): New member function.
1660 * f-lang.c (f_language_data): Delete la_demangle initializer.
1661 (f_language::demangle): New member function.
1662 * go-lang.c (go_language_data): Delete la_demangle initializer.
1663 (go_language::demangle): New member function.
1664 * language.c (language_demangle): Update.
1665 (unk_lang_demangle): Delete.
1666 (unknown_language_data): Delete la_demangle initializer.
1667 (unknown_language::demangle): New member function.
1668 (auto_language_data): Delete la_demangle initializer.
1669 (auto_language::demangle): New member function.
1670 * language.h (language_data): Delete la_demangle field.
1671 (language_defn::demangle): New function.
1672 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1673 * objc-lang.c (objc_language_data): Delete la_demangle
1674 initializer.
1675 (objc_language::demangle): New member function.
1676 * opencl-lang.c (opencl_language_data): Delete la_demangle
1677 initializer.
1678 * p-lang.c (pascal_language_data): Likewise.
1679 * rust-lang.c (rust_language_data): Likewise.
1680 (rust_language::demangle): New member function.
1681
fbfb0a46
AB
16822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1683
1684 * ada-lang.c (ada_language_data): Delete la_print_type
1685 initializer.
1686 (ada_language::print_type): New member function.
1687 * c-lang.c (c_language_data): Delete la_print_type initializer.
1688 (c_language::print_type): New member function.
1689 (cplus_language_data): Delete la_print_type initializer.
1690 (cplus_language::print_type): New member function.
1691 (asm_language_data): Delete la_print_type initializer.
1692 (asm_language::print_type): New member function.
1693 (minimal_language_data): Delete la_print_type initializer.
1694 (minimal_language::print_type): New member function.
1695 * d-lang.c (d_language_data): Delete la_print_type initializer.
1696 (d_language::print_type): New member function.
1697 * f-lang.c (f_language_data): Delete la_print_type initializer.
1698 (f_language::print_type): New member function.
1699 * go-lang.c (go_language_data): Delete la_print_type initializer.
1700 (go_language::print_type): New member function.
1701 * language.c (unk_lang_print_type): Delete.
1702 (unknown_language_data): Delete la_print_type initializer.
1703 (unknown_language::print_type): New member function.
1704 (auto_language_data): Delete la_print_type initializer.
1705 (auto_language::print_type): New member function.
1706 * language.h (language_data): Delete la_print_type field.
1707 (language_defn::print_type): New function.
1708 (LA_PRINT_TYPE): Update.
1709 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1710 (m2_language::print_type): New member function.
1711 * objc-lang.c (objc_language_data): Delete la_print_type
1712 initializer.
1713 (objc_language::print_type): New member function.
1714 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1715 to opencl_language::print_type.
1716 (opencl_language_data): Delete la_print_type initializer.
1717 (opencl_language::print_type): New member function, implementation
1718 from opencl_print_type.
1719 * p-lang.c (pascal_language_data): Delete la_print_type
1720 initializer.
1721 (pascal_language::print_type): New member function.
1722 * rust-lang.c (rust_print_type): Delete, implementation moved to
1723 rust_language::print_type.
1724 (rust_language_data): Delete la_print_type initializer.
1725 (rust_language::print_type): New member function, implementation
1726 from rust_print_type.
1727
6f827019
AB
17282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1729
1730 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1731 implementation moves to...
1732 (ada_language::sniff_from_mangled_name): ...here. Update return
1733 type.
1734 (ada_language_data): Delete la_sniff_from_mangled_name
1735 initializer.
1736 * c-lang.c (c_language_data): Likewise.
1737 (cplus_language_data): Likewise.
1738 (cplus_language::sniff_from_mangled_name): New member function,
1739 implementation taken from gdb_sniff_from_mangled_name.
1740 (asm_language_data): Delete la_sniff_from_mangled_name
1741 initializer.
1742 (minimal_language_data): Likewise.
1743 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1744 implementation moves to cplus_language::sniff_from_mangled_name.
1745 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1746 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1747 moves to...
1748 (d_language::sniff_from_mangled_name): ...here.
1749 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1750 * f-lang.c (f_language_data): Likewise.
1751 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1752 moves to...
1753 (go_language::sniff_from_mangled_name): ...here.
1754 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1755 * language.c (language_sniff_from_mangled_name): Delete.
1756 (unknown_language_data): Delete la_sniff_from_mangled_name
1757 initializer.
1758 (auto_language_data): Likewise.
1759 * language.h (language_data): Delete la_sniff_from_mangled_name
1760 field.
1761 (language_defn::sniff_from_mangled_name): New function.
1762 (language_sniff_from_mangled_name): Delete declaration.
1763 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1764 field.
1765 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1766 implementation moves to...
1767 (objc_language::sniff_from_mangled_name): ...here.
1768 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1769 * opencl-lang.c (opencl_language_data): Likewise.
1770 * p-lang.c (pascal_language_data): Likewise.
1771 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1772 implementation moves to...
1773 (rust_language::sniff_from_mangled_name): ...here.
1774 (rust_language_data): Delete la_sniff_from_mangled_name
1775 initializer.
1776 * symtab.c (symbol_find_demangled_name): Call
1777 sniff_from_mangled_name member function.
1778
fb8006fd
AB
17792020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1780
1781 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1782 initializer.
1783 * c-lang.c (c_language_data): Likewise.
1784 (cplus_language_data): Likewise.
1785 (cplus_language::search_name_hash): New member function.
1786 (asm_language_data): Delete la_search_name_hash initializer.
1787 (minimal_language_data): Likewise.
1788 * d-lang.c (d_language_data): Likewise.
1789 * dictionary.c (default_search_name_hash): Rename to...
1790 (language_defn::search_name_hash): ...this.
1791 * f-lang.c (f_language_data): Likewise.
1792 (f_language::search_name_hash): New member function.
1793 * go-lang.c (go_language_data): Delete la_search_name_hash
1794 initializer.
1795 * language.c (unknown_language_data): Likewise.
1796 (auto_language_data): Likewise.
1797 * language.h (struct language_data): Delete la_search_name_hash
1798 field.
1799 (language_defn::search_name_hash): Declare new member function.
1800 (default_search_name_hash): Delete declaration.
1801 * m2-lang.c (m2_language_data): Delete la_search_name_hash
1802 initializer.
1803 * objc-lang.c (objc_language_data): Likewise.
1804 * opencl-lang.c (opencl_language_data): Likewise.
1805 * p-lang.c (pascal_language_data): Likewise.
1806 * rust-lang.c (rust_language_data): Likewise.
1807 * symtab.c (search_name_hash): Update call.
1808
8e25bafe
AB
18092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1810
1811 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
1812 initializer.
1813 * c-lang.c (class compile_instance): Declare.
1814 (c_language_data): Delete la_get_compile_instance initializer.
1815 (c_language::get_compile_instance): New member function.
1816 (cplus_language_data): Delete la_get_compile_instance initializer.
1817 (cplus_language::get_compile_instance): New member function.
1818 (asm_language_data): Delete la_get_compile_instance initializer.
1819 (minimal_language_data): Likewise.
1820 * c-lang.h (c_get_compile_context): Update comment.
1821 (cplus_get_compile_context): Update comment.
1822 * compile/compile.c (compile_to_object): Update calls, don't rely
1823 on function pointer being NULL.
1824 * d-lang.c (d_language_data): Delete la_get_compile_instance
1825 initializer.
1826 * f-lang.c (f_language_data): Likewise.
1827 * go-lang.c (go_language_data): Likewise.
1828 * language.c (unknown_language_data): Likewise.
1829 (auto_language_data): Likewise.
1830 * language.h (language_data): Delete la_get_compile_instance field.
1831 (language_defn::get_compile_instance): New member function.
1832 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
1833 initializer.
1834 * objc-lang.c (objc_language_data): Likewise.
1835 * opencl-lang.c (opencl_language_data): Likewise.
1836 * p-lang.c (pascal_language_data): Likewise.
1837 * rust-lang.c (rust_language_data): Likewise.
1838
4009ee92
AB
18392020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1840
1841 * ada-lang.c (ada_add_all_symbols): Update comment.
1842 (ada_iterate_over_symbols): Delete, move implementation to...
1843 (ada_language::iterate_over_symbols): ...here, a new member
1844 function, rewrite to use range based for loop.
1845 (ada_language_data): Delete la_iterate_over_symbols initializer.
1846 * c-lang.c (c_language_data): Likewise.
1847 (cplus_language_data): Likewise.
1848 (asm_language_data): Likewise.
1849 (minimal_language_data): Likewise.
1850 * d-lang.c (d_language_data): Likewise.
1851 * f-lang.c (f_language_data): Likewise.
1852 * go-lang.c (go_language_data): Likewise.
1853 * language.c (unknown_language_data): Likewise.
1854 (auto_language_data): Likewise.
1855 * language.h (language_data): Delete la_iterate_over_symbols field.
1856 (language_defn::iterate_over_symbols): New member function.
1857 (LA_ITERATE_OVER_SYMBOLS): Update.
1858 * linespec.c (iterate_over_all_matching_symtabs): Update.
1859 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
1860 initializer.
1861 * objc-lang.c (objc_language_data): Likewise.
1862 * opencl-lang.c (opencl_language_data): Likewise.
1863 * p-lang.c (pascal_language_data): Likewise.
1864 * rust-lang.c (rust_language_data): Likewise.
1865
54f4ca46
AB
18662020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1867
1868 * ada-lang.c (ada_language_data): Delete
1869 la_lookup_transparent_type initializer.
1870 * c-lang.c (c_language_data): Likewise.
1871 (cplus_language_data): Likewise.
1872 (cplus_language::lookup_transparent_type): New member function.
1873 (asm_language_data): Delete la_lookup_transparent_type
1874 initializer.
1875 (minimal_language_data): Likewise.
1876 * d-lang.c (d_language_data): Likewise.
1877 * f-lang.c (f_language_data): Likewise.
1878 * go-lang.c (go_language_data): Likewise.
1879 * language.c (unknown_language_data): Likewise.
1880 (auto_language_data): Likewise.
1881 * language.h (struct language_data): Delete
1882 la_lookup_transparent_type field.
1883 (language_defn::lookup_transparent_type): New member function.
1884 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
1885 initializer.
1886 * objc-lang.c (objc_language_data): Likewise.
1887 * opencl-lang.c (opencl_language_data): Likewise.
1888 * p-lang.c (pascal_language_data): Likewise.
1889 * rust-lang.c (rust_language_data): Likewise.
1890 * symtab.c (symbol_matches_domain): Update call.
1891
1fb314aa
AB
18922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1893
1894 * ada-lang.c (ada_language_arch_info): Delete function, move
1895 implementation to...
1896 (ada_language::language_arch_info): ...here, a new member
1897 function.
1898 (ada_language_data): Delete la_language_arch_info.
1899 * c-lang.c (c_language_data): Likewise.
1900 (c_language::language_arch_info): New member function.
1901 (cplus_language_arch_info): Delete function, move
1902 implementation to...
1903 (cplus_language::language_arch_info): ...here, a new member
1904 function.
1905 (cplus_language_data): Delete la_language_arch_info.
1906 (asm_language_data): Likewise.
1907 (asm_language::language_arch_info): New member function.
1908 (minimal_language_data): Delete la_language_arch_info.
1909 (minimal_language::language_arch_info): New member function.
1910 * d-lang.c (d_language_arch_info): Delete function, move
1911 implementation to...
1912 (d_language::language_arch_info): ...here, a new member
1913 function.
1914 (d_language_data): Delete la_language_arch_info.
1915 * f-lang.c (f_language_arch_info): Delete function, move
1916 implementation to...
1917 (f_language::language_arch_info): ...here, a new member
1918 function.
1919 (f_language_data): Delete la_language_arch_info.
1920 * go-lang.c (go_language_arch_info): Delete function, move
1921 implementation to...
1922 (go_language::language_arch_info): ...here, a new member
1923 function.
1924 (go_language_data): Delete la_language_arch_info.
1925 * language.c (unknown_language_data): Likewise.
1926 (unknown_language::language_arch_info): New member function.
1927 (auto_language_data): Delete la_language_arch_info.
1928 (auto_language::language_arch_info): New member function.
1929 (language_gdbarch_post_init): Update call to
1930 la_language_arch_info.
1931 * language.h (language_data): Delete la_language_arch_info
1932 function pointer.
1933 (language_defn::language_arch_info): New function.
1934 * m2-lang.c (m2_language_arch_info): Delete function, move
1935 implementation to...
1936 (m2_language::language_arch_info): ...here, a new member
1937 function.
1938 (m2_language_data): Delete la_language_arch_info.
1939 * objc-lang.c (objc_language_arch_info): Delete function, move
1940 implementation to...
1941 (objc_language::language_arch_info): ...here, a new member
1942 function.
1943 (objc_language_data): Delete la_language_arch_info.
1944 * opencl-lang.c (opencl_language_arch_info): Delete function, move
1945 implementation to...
1946 (opencl_language::language_arch_info): ...here, a new member
1947 function.
1948 (opencl_language_data): Delete la_language_arch_info.
1949 * p-lang.c (pascal_language_arch_info): Delete function, move
1950 implementation to...
1951 (pascal_language::language_arch_info): ...here, a new member
1952 function.
1953 (pascal_language_data): Delete la_language_arch_info.
1954 * rust-lang.c (rust_language_arch_info): Delete function, move
1955 implementation to...
1956 (rust_language::language_arch_info): ...here, a new member
1957 function.
1958 (rust_language_data): Delete la_language_arch_info.
1959
48448202
AB
19602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1961
1962 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
1963 initializer.
1964 * c-lang.c (c_language_data): Likewise.
1965 (cplus_language_data): Likewise.
1966 (cplus_language::pass_by_reference_info): New method.
1967 (asm_language_data): Delete la_pass_by_reference initializer.
1968 (minimal_language_data): Likewise.
1969 * cp-abi.c (cp_pass_by_reference): Remove use of
1970 default_pass_by_reference.
1971 * d-lang.c (d_language_data): Likewise.
1972 * f-lang.c (f_language_data): Likewise.
1973 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
1974 default_pass_by_reference.
1975 * go-lang.c (go_language_data): Likewise.
1976 * language.c (language_pass_by_reference): Update.
1977 (default_pass_by_reference): Delete.
1978 (unknown_language_data): Delete la_pass_by_reference
1979 initializer.
1980 (auto_language_data): Likewise.
1981 * language.h (struct language_data): Delete la_pass_by_reference
1982 field.
1983 (language_defn::pass_by_reference_info): New member function.
1984 (default_pass_by_reference): Delete declaration.
1985 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
1986 initializer.
1987 * objc-lang.c (objc_language_data): Likewise.
1988 * opencl-lang.c (opencl_language_data): Likewise.
1989 * p-lang.c (pascal_language_data): Likewise.
1990 * rust-lang.c (rust_language_data): Likewise.
1991
15e5fd35
AB
19922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1993
1994 * ada-lang.c (ada_read_var_value): Delete function, move
1995 implementation to...
1996 (ada_language::read_var_value): ...here.
1997 (ada_language_data): Delete la_read_var_value initializer.
1998 * c-lang.c (c_language_data): Likewise.
1999 (cplus_language_data): Likewise.
2000 (minimal_language_data): Likewise.
2001 * d-lang.c (d_language_data): Likewise.
2002 * f-lang.c (f_language_data): Likewise.
2003 * findvar.c (default_read_var_value): Rename to...
2004 (language_defn::read_var_value): ...this.
2005 * findvar.c (read_var_value): Update header comment, and change to
2006 call member function instead of function pointer.
2007 * go-lang.c (go_language_data): Likewise.
2008 * language.c (unknown_language_data): Delete la_read_var_value
2009 initializer.
2010 (auto_language_data): Likewise.
2011 * language.h (struct language_data): Delete la_read_var_value
2012 field.
2013 (language_defn::read_var_value): New member function.
2014 (default_read_var_value): Delete declaration.
2015 * m2-lang.c (m2_language_data): Delete la_read_var_value
2016 initializer.
2017 * objc-lang.c (objc_language_data): Likewise.
2018 * opencl-lang.c (opencl_language_data): Likewise.
2019 * p-lang.c (pascal_language_data): Likewise.
2020 * rust-lang.c (rust_language_data): Likewise.
2021 * value.h (default_read_var_value): Delete declaration.
2022
5bd40f2a
AB
20232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2024
2025 * ada-lang.c (ada_print_array_index): Delete function, move
2026 implementation to...
2027 (ada_language::print_array_index): ...here.
2028 (ada_language_data): Delete la_print_array_index initializer.
2029 * c-lang.c (c_language_data): Likewise.
2030 (cplus_language_data): Likewise.
2031 (minimal_language_data): Likewise.
2032 * d-lang.c (d_language_data): Likewise.
2033 * f-lang.c (f_language_data): Likewise.
2034 * go-lang.c (go_language_data): Likewise.
2035 * language.c (default_print_array_index): Delete function, move
2036 implementation to...
2037 (language_defn::print_array_index): ...here.
2038 (unknown_language_data): Delete la_print_array_index initializer.
2039 (auto_language_data): Likewise.
2040 * language.h (struct language_data): Delete la_print_array_index
2041 field.
2042 (language_defn::print_array_index): New member function.
2043 (LA_PRINT_ARRAY_INDEX): Update.
2044 (default_print_array_index): Delete declaration.
2045 * m2-lang.c (m2_language_data): Delete la_print_array_index
2046 initializer.
2047 * objc-lang.c (objc_language_data): Likewise.
2048 * opencl-lang.c (opencl_language_data): Likewise.
2049 * p-lang.c (pascal_language_data): Likewise.
2050 * rust-lang.c (rust_language_data): Likewise.
2051
0874fd07
AB
20522020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2053
2054 * gdb/ada-lang.c (ada_language_defn): Convert to...
2055 (ada_language_data): ...this.
2056 (class ada_language): New class.
2057 (ada_language_defn): New static global.
2058 * gdb/c-lang.c (c_language_defn): Convert to...
2059 (c_language_data): ...this.
2060 (class c_language): New class.
2061 (c_language_defn): New static global.
2062 (cplus_language_defn): Convert to...
2063 (cplus_language_data): ...this.
2064 (class cplus_language): New class.
2065 (cplus_language_defn): New static global.
2066 (asm_language_defn): Convert to...
2067 (asm_language_data): ...this.
2068 (class asm_language): New class.
2069 (asm_language_defn): New static global.
2070 (minimal_language_defn): Convert to...
2071 (minimal_language_data): ...this.
2072 (class minimal_language): New class.
2073 (minimal_language_defn): New static global.
2074 * gdb/d-lang.c (d_language_defn): Convert to...
2075 (d_language_data): ...this.
2076 (class d_language): New class.
2077 (d_language_defn): New static global.
2078 * gdb/f-lang.c (f_language_defn): Convert to...
2079 (f_language_data): ...this.
2080 (class f_language): New class.
2081 (f_language_defn): New static global.
2082 * gdb/go-lang.c (go_language_defn): Convert to...
2083 (go_language_data): ...this.
2084 (class go_language): New class.
2085 (go_language_defn): New static global.
2086 * gdb/language.c (unknown_language_defn): Remove declaration.
2087 (current_language): Initialize to nullptr, real initialization is
2088 moved to _initialize_language.
2089 (languages): Delete global.
2090 (language_defn::languages): Define.
2091 (set_language_command): Use language_defn::languages.
2092 (set_language): Likewise.
2093 (range_error): Likewise.
2094 (language_enum): Likewise.
2095 (language_def): Likewise.
2096 (add_set_language_command): Use language_def::languages for the
2097 language list, and language_def to lookup language pointers.
2098 (skip_language_trampoline): Use language_defn::languages.
2099 (unknown_language_defn): Convert to...
2100 (unknown_language_data): ...this.
2101 (class unknown_language): New class.
2102 (unknown_language_defn): New static global.
2103 (auto_language_defn): Convert to...
2104 (auto_language_data): ...this.
2105 (class auto_language): New class.
2106 (auto_language_defn): New static global.
2107 (language_gdbarch_post_init): Use language_defn::languages.
2108 (_initialize_language): Initialize current_language.
2109 * gdb/language.h (struct language_defn): Rename to...
2110 (struct language_data): ...this.
2111 (struct language_defn): New.
2112 (auto_language_defn): Delete.
2113 (unknown_language_defn): Delete.
2114 (minimal_language_defn): Delete.
2115 (ada_language_defn): Delete.
2116 (asm_language_defn): Delete.
2117 (c_language_defn): Delete.
2118 (cplus_language_defn): Delete.
2119 (d_language_defn): Delete.
2120 (f_language_defn): Delete.
2121 (go_language_defn): Delete.
2122 (m2_language_defn): Delete.
2123 (objc_language_defn): Delete.
2124 (opencl_language_defn): Delete.
2125 (pascal_language_defn): Delete.
2126 (rust_language_defn): Delete.
2127 * gdb/m2-lang.c (m2_language_defn): Convert to...
2128 (m2_language_data): ...this.
2129 (class m2_language): New class.
2130 (m2_language_defn): New static global.
2131 * gdb/objc-lang.c (objc_language_defn): Convert to...
2132 (objc_language_data): ...this.
2133 (class objc_language): New class.
2134 (objc_language_defn): New static global.
2135 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2136 (opencl_language_data): ...this.
2137 (class opencl_language): New class.
2138 (opencl_language_defn): New static global.
2139 * gdb/p-lang.c (pascal_language_defn): Convert to...
2140 (pascal_language_data): ...this.
2141 (class pascal_language): New class.
2142 (pascal_language_defn): New static global.
2143 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2144 language pointer, update comment format.
2145 * gdb/rust-lang.c (rust_language_defn): Convert to...
2146 (rust_language_data): ...this.
2147 (class rust_language): New class.
2148 (rust_language_defn): New static global.
2149
1313c56e
AB
21502020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2151
2152 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2153 member variable.
2154 <m_stmt_at_address>: New member variable.
2155 (lnp_state_machine::record_line): Don't record some lines, update
2156 tracking of is_stmt at the same address.
2157 (lnp_state_machine::lnp_state_machine): Initialise new member
2158 variables.
2159
b7ed9f3d
ST
21602020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2161
2162 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2163 "-include gnu-nat-mig.h".
2164 * gnu-nat-mig.h: New file.
2165 * gnu-nat.c: Include "gnu-nat-mig.h".
2166 (exc_server, msg_reply_server, notify_server,
2167 process_reply_server): Remove declarations.
2168
14a8ad62
ST
21692020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2170
2171 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2172 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2173 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2174 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2175 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2176 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2177 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2178 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2179 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2180 to gnu_nat_target class.
2181 * gnu-nat.c: Likewise.
2182 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2183 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2184 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2185 object.
2186 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2187 instead of `gnu_target'.
2188
0af5e106
ST
21892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2190
2191 * i386-gnu-tdep.c: Include "gdbcore.h"
2192 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2193 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2194 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2195 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2196 i386_gnu_sigcontext_addr): New functions
2197 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2198 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2199 tdep.
2200
078f2fc9
ST
22012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2202
2203 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2204 before fork_inferior call. Avoid calling it if target_is_pushed returns
2205 true.
2206
53dff92c
ST
22072020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2208
2209 * gnu-nat.h (gnu_target): New variable declaration.
2210 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2211 gnu_target.
2212 * gnu-nat.c (gnu_target): New variable.
2213 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2214 add_thread_silent, and add_thread calls.
2215 (gnu_nat_target::create_inferior): Pass gnu_target to
2216 add_thread_silent, thread_change_ptid call.
2217 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2218 call.
2219
5a8b8627
ST
22202020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2221
2222 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2223 (gnu_nat_target::find_memory_regions): Remove unused
2224 `old_address' variable.
2225
366f550a
ST
22262020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2227
2228 * gnu-nat.c: Include "gdbarch.h".
2229
f14871bf
ST
22302020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2231
2232 * reply_mig_hack.awk (Error return): Cast function through
2233 void *, to bypass compiler function call check.
2234
c6887cfb
ST
22352020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2236
2237 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2238 $(srcdir)/reply_mig_hack.awk.
2239
6930bffe
ST
22402020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2241
2242 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2243
112c22ed
JG
22442020-05-30 Jonny Grant <jg@jguk.org>
2245
2246 * configure.ac (ACX_BUGURL): change bug URL to https.
2247
f68f85b5
PA
22482020-05-30 Pedro Alves <palves@redhat.com>
2249
2250 * cp-support.c (replace_typedefs_template): New.
2251 (replace_typedefs_qualified_name): Handle
2252 DEMANGLE_COMPONENT_TEMPLATE.
2253
976ca316
SM
22542020-05-29 Simon Marchi <simon.marchi@efficios.com>
2255
2256 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2257 dwarf2/index-cache.h, dwarf2/index-write.c,
2258 dwarf2/index-write.h, dwarf2/line-header.c,
2259 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2260 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2261 variables and fields from `dwarf2_per_objfile` to just
2262 `per_objfile` throughout.
2263
989ade05
SM
22642020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2265
2266 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2267 <push_dwarf_reg_entry_value>: Add comment.
2268
c47bae85
KB
22692020-05-28 Kevin Buettner <kevinb@redhat.com>
2270 Keith Seitz <keiths@redhat.com>
2271
2272 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2273 instead of PyEval_ReleaseLock.
2274 (class gdbpy_gil): Move to earlier in file.
2275 (finalize_python): Set gdb_python_initialized.
2276 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2277 when not initialized.
2278
44486dcf
SM
22792020-05-28 Simon Marchi <simon.marchi@efficios.com>
2280
2281 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2282 <push_dwarf_reg_entry_value>: Remove assert. Override
2283 per_objfile with caller_per_objfile.
2284
f030440d
TV
22852020-05-28 Tom de Vries <tdevries@suse.de>
2286
2287 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2288 PR gold/15646 workaround to symbol kind "type".
2289
f0fbb768
TT
22902020-05-27 Tom Tromey <tromey@adacore.com>
2291
2292 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2293
af0b2a3e
TT
22942020-05-27 Tom Tromey <tromey@adacore.com>
2295
2296 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2297 Use htab_find_with_hash.
2298 <add_abbrev>: Remove "abbrev_number" parameter.
2299 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2300 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2301 (hash_abbrev): Add comment.
2302 (abbrev_table::lookup_abbrev): Move to header file.
2303 (abbrev_table::read): Update.
2304
7d00ffec
TT
23052020-05-27 Tom Tromey <tromey@adacore.com>
2306
2307 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2308 method.
2309 <canonical_name>: New member.
2310 <raw_name>: Rename from "name".
2311 (partial_die_info): Initialize canonical_name.
2312 (scan_partial_symbols): Check raw_name.
2313 (partial_die_parent_scope, partial_die_full_name)
2314 (add_partial_symbol, add_partial_subprogram)
2315 (add_partial_enumeration, load_partial_dies): Use "name" method.
2316 (partial_die_info::name): New method.
2317 (partial_die_info::read, guess_partial_die_structure_name)
2318 (partial_die_info::fixup): Update.
2319
697bba18
TT
23202020-05-27 Tom Tromey <tromey@adacore.com>
2321
2322 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2323 <get_ref_die_offset>: Inline.
2324 <get_ref_die_offset_complaint>: New method.
2325 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2326 (attribute::get_ref_die_offset_complaint): Rename from
2327 get_ref_die_offset. Just issue complaint.
2328
c17ace43
HD
23292020-05-27 Hannes Domani <ssbssa@yahoo.de>
2330
2331 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2332
96445f0b
HD
23332020-05-27 Hannes Domani <ssbssa@yahoo.de>
2334
2335 * exec.c (exec_file_attach): Use errno value of first openp failure.
2336
ac637ec3
HD
23372020-05-27 Hannes Domani <ssbssa@yahoo.de>
2338
2339 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2340 Don't close thread handle.
2341
17ee85fc
TT
23422020-05-27 Tom Tromey <tom@tromey.com>
2343 Simon Marchi <simon.marchi@efficios.com>
2344
2345 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2346 shared_ptr.
2347 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2348 member.
2349 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2350 dwarf2_per_bfd_objfile_data_key>: New globals.
2351 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2352 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2353 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2354 shared.
2355 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2356 short-circuit when sharing.
2357 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2358 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2359
39b16f87
SM
23602020-05-27 Simon Marchi <simon.marchi@efficios.com>
2361
2362 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2363 to...
2364 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2365 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2366
fcf23d5b
SM
23672020-05-27 Simon Marchi <simon.marchi@efficios.com>
2368
2369 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2370 build_name_components, find_name_components_bounds>:
2371 Add per_objfile parameter.
2372 (struct mapped_index) <symbol_name_at>: Likewise.
2373 (struct mapped_debug_names): Remove constructor.
2374 <dwarf2_per_objfile>: Remove field.
2375 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2376 (mapped_index_base::find_name_components_bounds,
2377 mapped_index_base::build_name_components,
2378 dw2_expand_symtabs_matching_symbol): Likewise.
2379 (class mock_mapped_index) <symbol_name_at>: Likewise.
2380 (check_match): Likewise.
2381 (check_find_bounds_finds): Likewise.
2382 (test_mapped_index_find_name_component_bounds): Update.
2383 (CHECK_MATCH): Update.
2384 (dw2_expand_symtabs_matching): Update.
2385 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2386 per_objfile parameter.
2387 <find_vec_in_debug_names>: Likewise.
2388 <m_per_objfile>: New field.
2389 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2390 parameter.
2391 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2392 (dw2_debug_names_iterator::next): Update.
2393 (dw2_debug_names_lookup_symbol): Update.
2394 (dw2_debug_names_expand_symtabs_for_function): Update.
2395 (dw2_debug_names_map_matching_symbols): Update.
2396 (dw2_debug_names_expand_symtabs_matching): Update.
2397 (dwarf2_read_debug_names): Update.
2398
7188ed02
SM
23992020-05-27 Simon Marchi <simon.marchi@efficios.com>
2400
2401 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2402 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2403 move to dwarf2_per_objfile.
2404 <read_in_chain>: Remove.
2405 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2406 remove_all_cus, age_comp_units>: New methods.
2407 <m_dwarf2_cus>: New member.
2408 (struct dwarf2_per_cu_data) <cu>: Remove.
2409 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2410 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2411 moved to methods of dwarf2_per_objfile.
2412 (dwarf2_clear_marks): Remove.
2413 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2414 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2415 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2416 (dwarf2_per_objfile::remove_all_cus): New.
2417 (class free_cached_comp_units) <~free_cached_comp_units>:
2418 Update.
2419 (load_cu): Update.
2420 (dw2_do_instantiate_symtab): Adjust.
2421 (fill_in_sig_entry_from_dwo_entry): Adjust.
2422 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2423 (cutu_reader::cutu_reader): Likewise.
2424 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2425 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2426 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2427 and dwarf2_per_objfile::age_comp_units.
2428 (load_partial_comp_unit): Update.
2429 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2430 (process_queue): Likewise.
2431 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2432 backlink.
2433 (dwarf2_read_addr_index): Likewise.
2434 (follow_die_offset): Likewise.
2435 (dwarf2_fetch_die_loc_sect_off): Likewise.
2436 (dwarf2_fetch_constant_bytes): Likewise.
2437 (dwarf2_fetch_die_type_sect_off): Likewise.
2438 (follow_die_sig_1): Likewise.
2439 (load_full_type_unit): Likewise.
2440 (read_signatured_type): Likewise.
2441 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2442 (dwarf2_cu::~dwarf2_cu): Remove.
2443 (dwarf2_per_objfile::get_cu): New.
2444 (dwarf2_per_objfile::set_cu): New.
2445 (age_cached_comp_units): Rename to...
2446 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2447 to std::unordered_map.
2448 (free_one_cached_comp_unit): Rename to...
2449 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2450 to std::unordered_map.
2451 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2452 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2453 a dwarf2_per_objfile in data.
2454 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2455 (dwarf2_clear_marks): Remove.
2456
2e671100
SM
24572020-05-27 Simon Marchi <simon.marchi@efficios.com>
2458
2459 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2460 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2461 (init_tu_and_read_dwo_dies): Likewise.
2462 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2463 (cutu_reader::cutu_reader): Likewise.
2464 (load_partial_comp_unit): Likewise.
2465 (process_psymtab_comp_unit): Update.
2466 (build_type_psymtabs_1): Update.
2467 (process_skeletonless_type_unit): Update.
2468 (load_full_comp_unit): Update.
2469 (find_partial_die): Update.
2470 (dwarf2_read_addr_index): Update.
2471 (read_signatured_type): Update.
2472
2e6a9f79
SM
24732020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2474
2475 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2476 m_header_read_in>: New fields.
2477 <get_header>: New method.
2478 * dwarf2/read.c (per_cu_header_read_in): Remove.
2479 (dwarf2_per_cu_data::get_header): New.
2480 (dwarf2_per_cu_data::addr_size): Update.
2481 (dwarf2_per_cu_data::offset_size): Update.
2482 (dwarf2_per_cu_data::ref_addr_size): Update.
2483
1b555f17
SM
24842020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2485
2486 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2487 (dw2_do_instantiate_symtab): Update.
2488 (queue_and_load_all_dwo_tus): Change parameter from
2489 dwarf2_per_cu_data to dwarf2_cu.
2490 (dwarf2_fetch_die_loc_sect_off): Update.
2491 (dwarf2_fetch_constant_bytes): Update.
2492 (dwarf2_fetch_die_type_sect_off): Update.
2493
8fc0b21d
SM
24942020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2495
2496 * dwarf2/read.c (process_full_comp_unit,
2497 process_full_type_unit): Remove per_cu, per_objfile paramters.
2498 Add dwarf2_cu parameter.
2499 (process_queue): Update.
2500
168c9250
SM
25012020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2502
2503 * dwarf2/read.c (create_cu_from_index_list): Replace
2504 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2505 (create_cus_from_index_list): Likewise.
2506 (create_cus_from_index): Likewise.
2507 (create_signatured_type_table_from_index): Likewise.
2508 (create_cus_from_debug_names_list): Likewise.
2509 (create_cus_from_debug_names): Likewise.
2510 (dwarf2_read_gdb_index): Update.
2511 (dwarf2_read_debug_names): Update.
2512
e286671b
TT
25132020-05-27 Tom Tromey <tom@tromey.com>
2514 Simon Marchi <simon.marchi@efficios.com>
2515
2516 * dwarf2/read.h (struct dwarf2_per_objfile)
2517 <get_type_for_signatured_type, set_type_for_signatured_type>:
2518 New methods.
2519 <m_type_map>: New member.
2520 (struct signatured_type) <type>: Remove.
2521 * dwarf2/read.c
2522 (dwarf2_per_objfile::get_type_for_signatured_type,
2523 dwarf2_per_objfile::set_type_for_signatured_type): New.
2524 (get_signatured_type): Use new methods.
2525
8adb8487
TT
25262020-05-27 Tom Tromey <tom@tromey.com>
2527 Simon Marchi <simon.marchi@efficios.com>
2528
2529 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2530 (struct dwarf2_per_objfile) <type_units>: New member.
2531 <get_type_unit_group_unshareable>: New method.
2532 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2533 num_symtabs, symtabs>: Remove; move to
2534 type_unit_group_unshareable.
2535 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2536 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2537 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2538
127bbf4b
SM
25392020-05-27 Simon Marchi <simon.marchi@efficios.com>
2540
2541 * dwarf2/read.h (struct dwarf2_per_cu_data):
2542 <dwarf2_per_objfile>: Remove.
2543 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2544 dwarf2_per_objfile.
2545 (create_signatured_type_table_from_index): Likewise.
2546 (create_signatured_type_table_from_debug_names): Likewise.
2547 (create_debug_type_hash_table): Likewise.
2548 (fill_in_sig_entry_from_dwo_entry): Likewise.
2549 (create_type_unit_group): Likewise.
2550 (read_comp_units_from_section): Likewise.
2551 (create_cus_hash_table): Likewise.
2552
f6e649dd
SM
25532020-05-27 Simon Marchi <simon.marchi@efficios.com>
2554
2555 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2556 dwarf2_per_cu_data::dwarf2_per_objfile.
2557 (compute_compunit_symtab_includes): Likewise.
2558 (dwarf2_cu::start_symtab): Likewise.
2559
aa66c379
SM
25602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2561
2562 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2563 parameter.
2564 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2565 (read_namespace_alias): Update.
2566 (lookup_die_type): Update.
2567 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2568 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2569 Update.
2570 (disassemble_dwarf_expression): Update.
2571
120ce1b5
SM
25722020-05-27 Simon Marchi <simon.marchi@efficios.com>
2573
2574 * dwarf2/read.h (struct dwarf2_queue_item): Add
2575 dwarf2_per_objfile parameter, assign new parameter.
2576 <per_objfile>: New field.
2577 * dwarf2/read.c (free_one_cached_comp_unit): Add
2578 dwarf2_per_objfile parameter.
2579 (queue_comp_unit): Likewise.
2580 (dw2_do_instantiate_symtab): Update.
2581 (process_psymtab_comp_unit): Update.
2582 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2583 (process_imported_unit_die): Update.
2584 (queue_and_load_dwo_tu): Update.
2585 (follow_die_offset): Update.
2586 (follow_die_sig_1): Update.
2587
9f47c707
SM
25882020-05-27 Simon Marchi <simon.marchi@efficios.com>
2589
2590 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2591 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2592 (read_call_site_scope): Assign per_objfile.
2593 (dwarf2_per_cu_data::objfile): Remove.
2594 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2595 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2596 dwarf2_per_objfile parameter.
2597 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2598 dwarf2_per_objfile parameter.
2599 (dwarf_expr_reg_to_entry_parameter): Add output
2600 dwarf2_per_objfile parameter.
2601 (locexpr_get_frame_base): Update.
2602 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2603 <push_dwarf_reg_entry_value>: Update.
2604 <call_site_to_target_addr>: Update.
2605 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2606 parameter.
2607 (value_of_dwarf_reg_entry): Update.
2608 (rw_pieced_value): Update.
2609 (indirect_synthetic_pointer): Update.
2610 (dwarf2_evaluate_property): Update.
2611 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2612 parameter.
2613 (locexpr_read_variable): Update.
2614 (locexpr_get_symbol_read_needs): Update.
2615 (loclist_read_variable): Update.
2616
14095eb3
SM
26172020-05-27 Simon Marchi <simon.marchi@efficios.com>
2618
2619 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2620 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2621 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2622 parameter.
2623 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2624 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2625 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2626 parameter.
2627 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2628 sect_variable_value): Add dwarf2_per_objfile parameter.
2629 (class dwarf_evaluate_loc_desc) <dwarf_call,
2630 dwarf_variable_value>: Update.
2631 (fetch_const_value_from_synthetic_pointer): Add
2632 dwarf2_per_objfile parameter.
2633 (fetch_const_value_from_synthetic_pointer): Update.
2634 (coerced_pieced_ref): Update.
2635 (class symbol_needs_eval_context) <dwarf_call,
2636 dwarf_variable_value>: Update.
2637 (dwarf2_compile_expr_to_ax): Update.
2638
3c3cd3d4
SM
26392020-05-27 Simon Marchi <simon.marchi@efficios.com>
2640
2641 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2642 parameter.
2643 (dwarf2_evaluate_loc_desc_full): Update.
2644
82ca3f51
SM
26452020-05-27 Simon Marchi <simon.marchi@efficios.com>
2646
2647 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2648 parameter.
2649 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2650 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2651 dwarf2_per_objfile parameter.
2652 (decode_debug_loc_dwo_addresses): Likewise.
2653 (dwarf2_find_location_expression): Update.
2654 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2655 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2656 parameter.
2657 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2658 parameter.
2659 (locexpr_describe_location_1): Likewise.
2660 (locexpr_describe_location): Update.
2661
4b167ea1
SM
26622020-05-27 Simon Marchi <simon.marchi@efficios.com>
2663
2664 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2665 Remove.
2666 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2667 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2668 (dwarf2_compile_property_to_c): Update.
2669 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2670 use text offset from objfile.
2671 (locexpr_tracepoint_var_ref): Update.
2672 (locexpr_generate_c_location): Update.
2673 (loclist_describe_location): Update.
2674 (loclist_tracepoint_var_ref): Update.
2675 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2676 dwarf2_per_objfile parameter.
2677 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2678 use text offset from objfile.
2679 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2680
89b07335
SM
26812020-05-27 Simon Marchi <simon.marchi@efficios.com>
2682
2683 * dwarf2/expr.h (struct dwarf_expr_context)
2684 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2685 <offset>: Remove.
2686 <per_objfile>: New member.
2687 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2688 dwarf2_per_objfile parameter. Don't set offset, set
2689 per_objfile.
2690 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2691 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2692 a dwarf2_per_objfile object instead of an offset.
2693 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2694 constructor.
2695 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2696 to dwarf2_expr_executor constructor. Don't set offset.
2697 (dwarf2_fetch_cfa_info): Update.
2698 (struct dwarf2_frame_cache) <text_offset>: Remove.
2699 <per_objfile>: New field.
2700 (dwarf2_frame_cache): Update.
2701 (dwarf2_frame_prev_register): Update.
2702 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2703 <dwarf_evaluate_loc_desc>: Add constructor.
2704 (dwarf2_evaluate_loc_desc_full): Update.
2705 (dwarf2_locexpr_baton_eval): Update.
2706 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2707 Add constructor.
2708 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2709
293e7e51
SM
27102020-05-27 Simon Marchi <simon.marchi@efficios.com>
2711
2712 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2713 addr_sized_int_type>: Move to dwarf2_cu.
2714 <int_type>: Move to dwarf2_per_objfile.
2715 (struct dwarf2_per_objfile) <int_type>: Move here.
2716 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2717 addr_sized_int_type>: Move here.
2718 (read_func_scope): Update.
2719 (read_array_type): Update.
2720 (read_tag_string_type): Update.
2721 (attr_to_dynamic_prop): Update.
2722 (dwarf2_per_cu_data::int_type): Rename to...
2723 (dwarf2_per_objfile::int_type): ... this.
2724 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2725 (dwarf2_cu::addr_sized_int_type): ... this.
2726 (read_subrange_type): Update.
2727 (dwarf2_per_cu_data::addr_type): Rename to...
2728 (dwarf2_cu::addr_type): ... this.
2729 (set_die_type): Update.
2730
64874a40
SM
27312020-05-27 Simon Marchi <simon.marchi@efficios.com>
2732
2733 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2734 data through per_cu->cu.
2735
4ab09049
SM
27362020-05-27 Simon Marchi <simon.marchi@efficios.com>
2737
2738 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2739 dwarf2_per_cu_data parameter fo dwarf2_cu.
2740 (lookup_dwo_type_unit): Likewise.
2741 (read_cutu_die_from_dwo): Likewise.
2742 (lookup_dwo_unit): Likewise.
2743 (open_and_init_dwo_file): Likewise.
2744 (lookup_dwo_cutu): Likewise.
2745 (lookup_dwo_comp_unit): Likewise.
2746 (lookup_dwo_type_unit): Likewise.
2747 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2748 (cutu_reader::cutu_reader): Update.
2749
47b14e86
SM
27502020-05-27 Simon Marchi <simon.marchi@efficios.com>
2751
2752 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2753 parameter.
2754 (process_full_type_unit): Likewise.
2755 (process_queue): Update.
2756
43182c09
SM
27572020-05-27 Simon Marchi <simon.marchi@efficios.com>
2758
2759 * dwarf2/read.c (recursively_compute_inclusions): Add
2760 dwarf2_per_objfile parameter.
2761 (compute_compunit_symtab_includes): Likewise.
2762 (process_cu_includes): Update.
2763
7aa104c4
SM
27642020-05-27 Simon Marchi <simon.marchi@efficios.com>
2765
2766 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2767 parameter.
2768 (create_type_unit_group): Update.
2769 (process_psymtab_comp_unit_reader): Update.
2770 (build_type_psymtabs_reader): Update.
2771
e3beb21d
SM
27722020-05-27 Simon Marchi <simon.marchi@efficios.com>
2773
2774 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2775 object through m_this_cu->cu.
2776
d460f660
SM
27772020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2778
2779 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2780 the info parameter.
2781 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2782
ab432490
SM
27832020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2784
2785 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2786 per_objfile parameter.
2787 (load_full_type_unit): Add per_objfile parameter.
2788 (read_signatured_type): Likewise.
2789 (load_full_comp_unit): Likewise.
2790 (load_cu): Likewise.
2791 (dw2_do_instantiate_symtab): Likewise.
2792 (dw2_get_file_names): Likewise.
2793 (dw2_map_symtabs_matching_filename): Update.
2794 (dw_expand_symtabs_matching_file_matcher): Update.
2795 (dw2_map_symbol_filenames): Update.
2796 (process_psymtab_comp_unit): Add per_objfile parameter.
2797 (build_type_psymtabs_1): Update.
2798 (process_skeletonless_type_unit): Update.
2799 (dwarf2_build_psymtabs_hard): Update.
2800 (load_partial_comp_unit): Add per_objfile parameter.
2801 (scan_partial_symbols): Update.
2802 (load_full_comp_unit): Add per_objfile parameter.
2803 (process_imported_unit_die): Update.
2804 (create_cus_hash_table): Update.
2805 (find_partial_die): Update.
2806 (dwarf2_read_addr_index): Update.
2807 (follow_die_offset): Update.
2808 (dwarf2_fetch_die_loc_sect_off): Update.
2809 (dwarf2_fetch_constant_bytes): Update.
2810 (dwarf2_fetch_die_type_sect_off): Update.
2811 (follow_die_sig_1): Update.
2812 (load_full_type_unit): Add per_objfile parameter.
2813 (read_signatured_type): Likewise.
2814
313bad1b
SM
28152020-05-27 Simon Marchi <simon.marchi@efficios.com>
2816
2817 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
2818 of objfile_name.
2819
c3699833
SM
28202020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2821
2822 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
2823 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2824 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
2825 field.
2826 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2827 (create_cus_from_index): Update.
2828 (dwarf2_read_gdb_index): Update.
2829 (create_cus_from_debug_names): Update.
2830 (dwarf2_read_debug_names): Update.
2831 (get_abbrev_section_for_cu): Update.
2832 (create_all_comp_units): Update.
2833 (read_attribute_value): Update.
2834 (get_debug_line_section): Update.
2835 * dwarf2/index-cache.c (index_cache::store): Update.
2836 * dwarf2/index-write.c (save_gdb_index_command): Update.
2837 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2838
1859c670
SM
28392020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2840
2841 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
2842 member.
2843 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
2844 dwarf2_per_cu_data::per_bfd.
2845 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
2846 (create_type_unit_group): Likewise.
2847 (queue_comp_unit): Remove reference to
2848 per_cu->dwarf2_per_objfile.
2849 (maybe_queue_comp_unit): Likewise.
2850 (fill_in_sig_entry_from_dwo_entry): Assign new field.
2851 (create_cus_hash_table): Assign new field.
2852
5e22e966
SM
28532020-05-27 Simon Marchi <simon.marchi@efficios.com>
2854
2855 * dwarf2/read.c: Replace
2856 dwarf2_cu->per_cu->dwarf2_per_objfile references with
2857 dwarf2_cu->per_objfile throughout.
2858
97a1449a
SM
28592020-05-27 Simon Marchi <simon.marchi@efficios.com>
2860
2861 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
2862 parameter, don't use per_cu->dwarf2_per_objfile.
2863 (dw2_instantiate_symtab): Likewise.
2864 (dw2_find_last_source_symtab): Update.
2865 (dw2_map_expand_apply): Update.
2866 (dw2_lookup_symbol): Update.
2867 (dw2_expand_symtabs_for_function): Update.
2868 (dw2_expand_all_symtabs): Update.
2869 (dw2_expand_symtabs_with_fullname): Update.
2870 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
2871 don't use per_cu->dwarf2_per_objfile.
2872 (dw2_expand_marked_cus): Update.
2873 (dw2_find_pc_sect_compunit_symtab): Update.
2874 (dw2_debug_names_lookup_symbol): Update.
2875 (dw2_debug_names_expand_symtabs_for_function): Update.
2876 (dw2_debug_names_map_matching_symbols): Update.
2877 (dwarf2_psymtab::expand_psymtab): Update.
2878
9e021579
SM
28792020-05-27 Simon Marchi <simon.marchi@efficios.com>
2880
2881 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
2882 <per_objfile>: New member.
2883 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
2884 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
2885 call to dwarf2_cu.
2886 (cutu_reader::cutu_reader): Update.
2887 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
2888
ae090bdb
SM
28892020-05-27 Simon Marchi <simon.marchi@efficios.com>
2890
2891 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
2892 struct dwarf2_per_objfile.
2893 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
2894 dwarf2_per_bfd.
2895 * dwarf2/read.c (set_die_type): Update.
2896 (get_die_type_at_offset): Update.
2897
af758d11
SM
28982020-05-27 Tom Tromey <tom@tromey.com>
2899 Simon Marchi <simon.marchi@efficios.com>
2900
2901 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
2902 method.
2903 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
2904 get_symtab, set_symtab>: New methods.
2905 <m_symtabs>: New field.
2906 (struct dwarf2_psymtab): Derive from partial_symtab.
2907 <readin_p, get_compunit_symtab>: Declare methods.
2908 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
2909 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
2910 New methods.
2911 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
2912 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
2913 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
2914 (dw2_symtab_iter_next, dw2_print_stats)
2915 (dw2_expand_symtabs_with_fullname)
2916 (dw2_expand_symtabs_matching_one)
2917 (dw_expand_symtabs_matching_file_matcher)
2918 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
2919 (dw2_debug_names_iterator::next)
2920 (dw2_debug_names_map_matching_symbols)
2921 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
2922 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
2923 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
2924 New methods.
2925 (get_compunit_symtab, process_full_comp_unit)
2926 (process_full_type_unit): Update.
2927 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
2928
5989a64e
SM
29292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2930
2931 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
2932 then introduce a new dwarf2_per_objfile type.
2933 <read_line_string>: Move to the new dwarf2_per_objfile type.
2934 <objfile>: Likewise.
2935 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
2936 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
2937 dwarf2_per_objfile->per_bfd.
2938 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
2939 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
2940 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
2941 (dwarf2_per_bfd::free_cached_comp_units): ... this.
2942 (dwarf2_has_info): Allocate dwarf2_per_bfd.
2943 (dwarf2_per_objfile::locate_sections): Rename to...
2944 (dwarf2_per_bfd::locate_sections): ... this.
2945 (dwarf2_per_objfile::get_cutu): Rename to...
2946 (dwarf2_per_bfd::get_cutu): ... this.
2947 (dwarf2_per_objfile::get_cu): Rename to...
2948 (dwarf2_per_bfd::get_cu): ... this.
2949 (dwarf2_per_objfile::get_tu): Rename to...
2950 (dwarf2_per_bfd::get_tu): ... this.
2951 (dwarf2_per_objfile::allocate_per_cu): Rename to...
2952 (dwarf2_per_bfd::allocate_per_cu): ... this.
2953 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
2954 (dwarf2_per_bfd::allocate_signatured_type): ... this.
2955 (get_gdb_index_contents_ftype): Change parameter from
2956 dwarf2_per_objfile to dwarf2_per_bfd.
2957 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
2958 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
2959
a50264ba
TT
29602020-05-27 Tom Tromey <tom@tromey.com>
2961 Simon Marchi <simon.marchi@efficios.com>
2962
2963 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
2964 (allocate_piece_closure): Set "per_objfile" member.
2965 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
2966 (locexpr_describe_location, loclist_describe_location): Use new
2967 member.
2968 * dwarf2/read.c (read_call_site_scope)
2969 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2970 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
2971 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
2972 handle_data_member_location): Set per_objfile member.
2973 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
2974 member.
2975 (struct dwarf2_loclist_baton) <per_objfile>: New member.
2976
d3473f0c
TT
29772020-05-27 Tom Tromey <tom@tromey.com>
2978
2979 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
2980 allocate_signatured_type>: Declare new methods.
2981 <m_num_psymtabs>: New member.
2982 (struct dwarf2_per_cu_data) <index>: New member.
2983 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
2984 (dwarf2_per_objfile::allocate_signatured_type): New methods.
2985 (create_cu_from_index_list): Use allocate_per_cu.
2986 (create_signatured_type_table_from_index)
2987 (create_signatured_type_table_from_debug_names)
2988 (create_debug_type_hash_table, add_type_unit)
2989 (read_comp_units_from_section): Use allocate_signatured_type.
2990
5717c425
TT
29912020-05-27 Tom Tromey <tom@tromey.com>
2992
2993 * psymtab.c (partial_map_expand_apply)
2994 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
2995 (psym_lookup_global_symbol_language)
2996 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
2997 (psym_print_stats, psym_expand_symtabs_for_function)
2998 (psym_map_symbol_filenames, psym_map_matching_symbols)
2999 (psym_expand_symtabs_matching)
3000 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3001 (maintenance_check_psymtabs): Update.
3002 * psympriv.h (struct partial_symtab) <readin_p,
3003 get_compunit_symtab>: Add objfile parameter.
3004 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3005 Likewise.
3006 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3007 get_compunit_symtab>: Likewise.
3008 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3009
45940949
TT
30102020-05-27 Tom Tromey <tom@tromey.com>
3011
3012 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3013 member.
3014 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3015 (create_cu_from_index_list)
3016 (create_signatured_type_table_from_index)
3017 (create_signatured_type_table_from_debug_names)
3018 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3019 (dwarf2_create_include_psymtab)
3020 (create_debug_type_hash_table, add_type_unit)
3021 (create_type_unit_group, read_comp_units_from_section)
3022 (dwarf2_compute_name, create_cus_hash_table)
3023 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3024 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3025 obstack.
3026 (dw2_get_real_path): Likewise. Change argument to
3027 dwarf2_per_objfile.
3028
f8c6d152
LM
30292020-05-27 Luis Machado <luis.machado@linaro.org>
3030
3031 PR tdep/26000
3032 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3033 for ldrd (immediate).
3034
e98d2e6d
PW
30352020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3036
3037 * command.h: Add comment giving the name of class_tui.
3038 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3039 create the fake command for the help for class_tui.
3040
53a47a3e
TT
30412020-05-26 Tom Tromey <tromey@adacore.com>
3042
3043 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3044 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3045 (val_atr): New function.
3046 (value_val_atr): Use it.
3047 * ada-valprint.c (print_optional_low_bound): Change low bound
3048 handling for enums.
3049 (val_print_packed_array_elements): Don't call discrete_position.
3050 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3051 discrete_position for enum types.
3052 * language.c (default_print_array_index): Change type.
3053 * language.h (struct language_defn) <la_print_array_index>: Add
3054 index_type parameter, change type of index_value.
3055 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3056 (default_print_array_index): Update.
3057 * valprint.c (maybe_print_array_index): Don't call
3058 value_from_longest. Update.
3059 (value_print_array_elements): Don't call discrete_position.
3060
0bc2354b
TT
30612020-05-26 Tom Tromey <tromey@adacore.com>
3062
3063 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3064 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3065
1218a4bf
CDA
30662020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3067
3068 PR gdb/13519
3069 * avr-tdep.c (avr_integer_to_address): Return data or code
3070 address accordingly to the second 'type' argument of the
3071 function.
3072
92651b1d
MW
30732020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3074
3075 * infcmd.c, inferior.h: (construct_inferior_arguments):
3076 Moved function from here to gdbsupport/common-inferior.{h,cc}
3077
0a4f5f8c
TT
30782020-05-23 Tom Tromey <tom@tromey.com>
3079
3080 Revert commit eca1f90c:
3081 * NEWS: Remove entry for completion styling.
3082 * completer.c (_rl_completion_prefix_display_length): Move
3083 declaration later.
3084 (gdb_fnprint): Revert.
3085 (gdb_display_match_list_1): Likewise.
3086 * cli/cli-style.c (completion_prefix_style)
3087 (completion_difference_style, completion_suffix_style): Remove.
3088 (_initialize_cli_style): Revert.
3089 * cli/cli-style.h (completion_prefix_style)
3090 (completion_difference_style, completion_suffix_style): Don't
3091 declare.
3092
e08bd6c5
PA
30932020-05-24 Pedro Alves <palves@redhat.com>
3094
3095 * symtab.c (completion_list_add_name): Return boolean indication
3096 of whether the symbol matched.
3097 (completion_list_add_symbol): Don't try to remove C++ aliases if
3098 the symbol didn't match in the first place.
3099 * symtab.h (completion_list_add_name): Return bool.
3100
ceacbf6e
SM
31012020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3102
3103 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3104 type::field.
3105
26f16254
JB
31062020-05-23 Joel Brobecker <brobecker@adacore.com>
3107
3108 GDB 9.2 released.
3109
eca1f90c
TT
31102020-05-23 Tom Tromey <tom@tromey.com>
3111
3112 * NEWS: Add entry for completion styling.
3113 * completer.c (_rl_completion_prefix_display_length): Move
3114 declaration earlier.
3115 (gdb_fnprint): Use completion_style.
3116 (gdb_display_match_list_1): Likewise.
3117 * cli/cli-style.c (completion_prefix_style)
3118 (completion_difference_style, completion_suffix_style): New
3119 globals.
3120 (_initialize_cli_style): Register new globals.
3121 * cli/cli-style.h (completion_prefix_style)
3122 (completion_difference_style, completion_suffix_style): Declare.
3123
51e2cfa2
PA
31242020-05-23 Pedro Alves <palves@redhat.com>
3125
3126 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3127 (parse_escape): Use ISDIGIT instead of isdigit.
3128 (puts_debug): Use gdb_isprint instead of isprint.
3129 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3130 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3131 ISSPACE instead of isspace.
3132 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3133 instead of isspace.
3134 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3135 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3136 instead of isxdigit and ISDIGIT instead of isdigit.
3137
80fc5e77
SM
31382020-05-22 Simon Marchi <simon.marchi@efficios.com>
3139
3140 * gdbtypes.h (struct type) <field>: New method.
3141 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3142 or type::field.
3143
3cabb6b0
SM
31442020-05-22 Simon Marchi <simon.marchi@efficios.com>
3145
3146 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3147 (TYPE_FIELDS): Use type::fields. Change all call sites that
3148 modify the propery to use type::set_fields instead.
3149
1f704f76
SM
31502020-05-22 Simon Marchi <simon.marchi@efficios.com>
3151
3152 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3153 type::num_fields instead.
3154
5e33d5f4
SM
31552020-05-22 Simon Marchi <simon.marchi@efficios.com>
3156
3157 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3158 methods.
3159 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3160 that modify the number of fields to use type::set_num_fields
3161 instead.
3162
9392ebb3
TT
31632020-05-22 Tom Tromey <tromey@adacore.com>
3164
3165 * compile/compile-object-load.h (munmap_list_free): Don't
3166 declare.
3167
7c13f4e8
AB
31682020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3169
3170 * annotate.c (annotate_source_line): Update return type, add call
3171 to update current symtab and line.
3172 * annotate.h (annotate_source_line): Update return type, and
3173 extend header comment.
3174 * source.c (info_line_command): Check annotation_level before
3175 calling annotate_source_line.
3176 * stack.c (print_frame_info): If calling annotate_source_line
3177 returns true, then don't print any other source line information.
3178
aa370940
SM
31792020-05-21 Simon Marchi <simon.marchi@efficios.com>
3180
3181 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3182
84d53fa9
SM
31832020-05-21 Simon Marchi <simon.marchi@efficios.com>
3184
3185 * coffread.c (patch_type): Remove NULL check before xfree.
3186 * corefile.c (set_gnutarget): Likewise.
3187 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3188 * exec.c (build_section_table): Likewise.
3189 * remote.c (remote_target::pass_signals): Likewise.
3190 * utils.c (n_spaces): Likewise.
3191 * cli/cli-script.c (document_command): Likewise.
3192 * i386-windows-tdep.c (core_process_module_section): Likewise.
3193 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3194
9d428aae
SM
31952020-05-20 Simon Marchi <simon.marchi@efficios.com>
3196
3197 * symfile.c (reread_symbols): Clear objfile's section_offsets
3198 vector and section indices, re-compute them by calling
3199 sym_offsets.
3200
250106a7
TT
32012020-05-20 Tom Tromey <tromey@adacore.com>
3202
3203 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3204 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3205
9a0bacfb
TV
32062020-05-20 Tom de Vries <tdevries@suse.de>
3207
3208 PR symtab/25833
3209 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3210
7b958a48
AM
32112020-05-20 Alan Modra <amodra@gmail.com>
3212
3213 PR 25993
3214 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3215 bfd_set_filename.
3216 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3217 passed to bfd_set_filename.
3218 * symfile-mem.c (add_vsyscall_page): Likewise for string
3219 passed to symbol_file_add_from_memory.
3220 (symbol_file_add_from_memory): Make name param a const char* and
3221 don't strdup.
3222
c7e97679
AM
32232020-05-20 Alan Modra <amodra@gmail.com>
3224
3225 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3226 rather than accessing bfd->filename directly.
3227 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3228 and use bfd_section_name.
3229 * dwarf2/frame.c (decode_frame_entry): Likewise.
3230 * exec.c (exec_set_section_address): Likewise.
3231 * solib-aix.c (solib_aix_bfd_open): Likewise.
3232 * stap-probe.c (get_stap_base_address): Likewise.
3233 * symfile.c (reread_symbols): Likewise.
3234
563c591b
TT
32352020-05-19 Tom Tromey <tromey@adacore.com>
3236
3237 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3238
f408d82c
SM
32392020-05-19 Simon Marchi <simon.marchi@efficios.com>
3240
3241 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3242
98c59b52
PA
32432020-05-19 Pedro Alves <palves@redhat.com>
3244
3245 * NEWS (set exec-file-mismatch): Adjust entry.
3246 * exec.c: Include "build-id.h".
3247 (validate_exec_file): Try to match build IDs instead of filenames.
3248 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3249 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3250 and pass down 'warn_if_slow'.
3251 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3252 gdb_bfd_open_closure to pass it down.
3253 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3254
4111f652
PA
32552020-05-19 Pedro Alves <palves@redhat.com>
3256
3257 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3258 * target.c (target_fileio_open_1): Rename to target_fileio_open
3259 and make extern. Use bool.
3260 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3261 (target_fileio_read_alloc_1): Adjust.
3262 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3263 (target_fileio_open_warn_if_slow): Delete declaration.
3264
ad80db5b
PA
32652020-05-19 Pedro Alves <palves@redhat.com>
3266
3267 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3268 Adjust all callers.
3269
1d6ce4d3
YS
32702020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3271
3272 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3273 whether disp is negative.
3274
9005fbbb
SM
32752020-05-19 Simon Marchi <simon.marchi@efficios.com>
3276
3277 * symfile.h (struct symfile_segment_data)
3278 <~symfile_segment_data>: Remove.
3279 <segment_info>: Change to std::vector.
3280 * symfile.c (default_symfile_segments): Update.
3281 * elfread.c (elf_symfile_segments): Update.
3282
68b888ff
SM
32832020-05-19 Simon Marchi <simon.marchi@efficios.com>
3284
3285 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3286 <segments>: New.
3287 <segment_bases, segment_sizes>: Remove.
3288 * symfile.c (default_symfile_segments): Update.
3289 * elfread.c (elf_symfile_segments): Update.
3290 * remote.c (remote_target::get_offsets): Update.
3291 * solib-target.c (solib_target_relocate_section_addresses):
3292 Update.
3293
62982abd
SM
32942020-05-19 Simon Marchi <simon.marchi@efficios.com>
3295
3296 * symfile.h (struct symfile_segment_data): Initialize fields.
3297 <~symfile_segment_data>: Add.
3298 (symfile_segment_data_up): New.
3299 (struct sym_fns) <sym_segments>: Return a
3300 symfile_segment_data_up.
3301 (default_symfile_segments): Return a symfile_segment_data_up.
3302 (free_symfile_segment_data): Remove.
3303 (get_symfile_segment_data): Return a symfile_segment_data_up.
3304 * symfile.c (default_symfile_segments): Likewise.
3305 (get_symfile_segment_data): Likewise.
3306 (free_symfile_segment_data): Remove.
3307 (symfile_find_segment_sections): Update.
3308 * elfread.c (elf_symfile_segments): Return a
3309 symfile_segment_data_up.
3310 * remote.c (remote_target::get_offsets): Update.
3311 * solib-target.c (solib_target_relocate_section_addresses):
3312 Update.
3313 * symfile-debug.c (debug_sym_segments): Return a
3314 symfile_segment_data_up.
3315
7f204339
RO
33162020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3317
e52a0f1b
RO
3318 PR build/25981
3319 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3320 Hardcode register numbers.
3321
7f204339
RO
3322 PR build/25981
3323 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3324 procfs_find_LDT_entry): Remove.
3325 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3326 procfs_find_LDT_entry): Remove.
3327 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3328 Remove.
3329
7f32a4d5
PA
33302020-05-17 Pedro Alves <palves@redhat.com>
3331 Andrew Burgess <andrew.burgess@embecosm.com>
3332 Keno Fischer <keno@juliacomputing.com>
3333
3334 PR gdb/25741
3335 * breakpoint.c (build_target_condition_list): Update comments.
3336 (build_target_command_list): Update comments and skip matching
3337 locations.
3338 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3339 a separate function. Simplify "set breakpoint auto-hw off"
3340 handling.
3341 (insert_breakpoints): Update comment.
3342 (tracepoint_locations_match): New parameter. For breakpoints,
3343 compare location types too, if the caller wants to.
3344 (handle_automatic_hardware_breakpoints): New functions.
3345 (bp_location_is_less_than): Also sort by location type and
3346 hardware breakpoint length.
3347 (update_global_location_list): Handle "set breakpoint auto-hw on"
3348 here.
3349 (update_breakpoint_locations): Ask breakpoint_locations_match to
3350 ignore location types.
3351
7d93a1e0
SM
33522020-05-16 Simon Marchi <simon.marchi@efficios.com>
3353
3354 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3355 type::name instead.
3356
d0e39ea2
SM
33572020-05-16 Simon Marchi <simon.marchi@efficios.com>
3358
3359 * gdbtypes.h (struct type) <name, set_name>: New methods.
3360 (TYPE_CODE): Use type::name. Change all call sites used to set
3361 the name to use type::set_name instead.
3362
2dab0c7b
TT
33632020-05-16 Tom Tromey <tom@tromey.com>
3364
3365 * top.c (quit_force): Update.
3366 * infrun.c (handle_no_resumed): Update.
3367 * top.h (all_uis): New function.
3368 (ALL_UIS): Remove.
3369
59f7bd8d
SM
33702020-05-16 Simon Marchi <simon.marchi@efficios.com>
3371
3372 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3373
9bf058f0
PA
33742020-05-16 Pedro Alves <palves@redhat.com>
3375
3376 * ia64-linux-nat.c
3377 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3378 Declare method.
3379 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3380
8f86ae1a
SM
33812020-05-15 Simon Marchi <simon.marchi@efficios.com>
3382
3383 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3384 (sparc64_adi_info): Likewise.
3385
d6bc0792
TT
33862020-05-15 Tom Tromey <tom@tromey.com>
3387
3388 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3389 block_objfile.
3390 (lookup_objfile_from_block): Remove.
3391 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3392 (lookup_global_symbol): Use block_objfile.
3393 * symtab.h (lookup_objfile_from_block): Don't declare.
3394 * printcmd.c (clear_dangling_display_expressions): Use
3395 block_objfile.
3396 * parse.c (operator_check_standard): Use block_objfile.
3397
8c14c3a3
TT
33982020-05-15 Tom Tromey <tom@tromey.com>
3399
3400 * language.c (language_alloc_type_symbol): Set
3401 SYMBOL_SECTION.
3402 * symtab.c (initialize_objfile_symbol): Remove.
3403 (allocate_symbol): Remove.
3404 (allocate_template_symbol): Remove.
3405 * dwarf2/read.c (fixup_go_packaging): Use "new".
3406 (new_symbol): Use "new".
3407 (read_variable): Don't call initialize_objfile_symbol. Use
3408 "new".
3409 (read_func_scope): Use "new".
3410 * xcoffread.c (process_xcoff_symbol): Don't call
3411 initialize_objfile_symbol.
3412 (SYMBOL_DUP): Remove.
3413 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3414 "new".
3415 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3416 (allocate_template_symbol): Don't declare.
3417 (struct symbol): Add copy constructor. Change defaults.
3418 * jit.c (finalize_symtab): Use "new".
3419 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3420 Use "new".
3421 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3422 (common_block_end): Use "new".
3423 * mdebugread.c (parse_symbol): Use "new".
3424 (new_symbol): Likewise.
3425
5b4a1a8d
PW
34262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3427
3428 * NEWS: Mention changes to help and apropos.
3429
57b4f16e
PW
34302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3431
3432 * command.h (enum command_class): Improve comments, document
3433 that class_alias is for user-defined aliases, give the class
3434 name for each class, remove unused class_xdb.
3435 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3436 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3437 by a precise class.
3438 * infcmd.c (_initialize_infcmd): Likewise.
3439 * reverse.c (_initialize_reverse): Likewise.
3440 * stack.c (_initialize_stack): Likewise.
3441 * symfile.c (_initialize_symfile): Likewise.
3442 * tracepoint.c (_initialize_tracepoint): Likewise.
3443
7c05caf7
PW
34442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3445
3446 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3447 when their aliased command is traversed.
3448 (help_cmd): Add fput_command_names_styled call to
3449 output command name and aliases when command has an alias.
3450
3b3aaacb
PW
34512020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3452
3453 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3454 * cli/cli-decode.c (help_cmd_list): Declare as static,
3455 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3456 a command together with the command.
3457 (fput_command_name_styled, fput_command_names_styled): New functions.
3458 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3459 fput_command_name_styled.
3460 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3461 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3462
7aa1b46f
PW
34632020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3464
3465 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3466 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3467 * command.h (cmd_show_list): Likewise.
3468 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3469 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3470
89bcba74
PW
34712020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3472
3473 * unittests/command-def-selftests.c (traverse_command_structure):
3474 Verify all commands of a list have the same prefix command and
3475 that only the top cmdlist commands have a null prefix.
3476
3f4d92eb
PW
34772020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3478
3479 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3480 as prefix, not one of its aliases.
3481 (set_cmd_prefix): Remove.
3482 (do_add_cmd): Centralize the setting of the prefix of a command, when
3483 command is defined after its full chain of prefix commands.
3484 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3485 (add_setshow_cmd_full): Likewise.
3486 (update_prefix_field_of_prefixed_commands): New function.
3487 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3488 update_prefix_field_of_prefixed_commands.
3489 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3490 addresses of remote_set_cmdlist and remote_show_cmdlist given
3491 as argument, not the address of an argument.
3492 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3493 * gdb/remote.c (_initialize_remote): Likewise.
3494
0605465f
PW
34952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3496
3497 * cli/cli-cmds.c (alias_command): Check for an existing alias
3498 using lookup_cmd_composition, as valid_command_p is too strict
3499 and forbids aliases that are the prefix of an existing alias
3500 or command.
3501 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3502 command is properly recognised as a valid command.
3503
58e6ac70
PW
35042020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3505
3506 * unittests/help-doc-selftests.c: Rename to
3507 unittests/command-def-selftests.c
3508 * unittests/command-def-selftests.c (help_doc_tests): Update some
3509 comments.
3510 (command_structure_tests, traverse_command_structure): New namespace
3511 and function.
3512 (command_structure_invariants_tests): New function.
3513 (_initialize_command_def_selftests) Renamed from
3514 _initialize_help_doc_selftests, register command_structure_invariants
3515 selftest.
3516
a7b9ceb8
PW
35172020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3518
3519 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3520 an alias of 'show'.
3521
b2188a06
JB
35222020-05-15 Joel Brobecker <brobecker@adacore.com>
3523
3524 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3525 ada_is_fixed_point_type. Update all callers.
3526 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3527 all callers.
3528 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3529 Update all callers.
3530 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3531 print_fixed_point_type. Update all callers.
3532 * ada-valprint.c (ada_value_print_num): Replace call to
3533 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3534
a51951c2
KB
35352020-05-14 Kevin Buettner <kevinb@redhat.com>
3536
3537 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3538 processors.
3539 (cpu_supports_bts): Add CV_AMD case.
3540
29d6859f
LM
35412020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3542 Simon Marchi <simon.marchi@efficios.com>
3543
3544 * infrun.c (stop_all_threads): Collect multiple wait events at
3545 each pass.
3546
78134374
SM
35472020-05-14 Simon Marchi <simon.marchi@efficios.com>
3548
3549 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3550 type::code instead.
3551
67607e24
SM
35522020-05-14 Simon Marchi <simon.marchi@efficios.com>
3553
3554 * gdbtypes.h (struct type) <code, set_code>: New methods.
3555 (TYPE_CODE): Use type::code. Change all call sites used to set
3556 the code to use type::set_code instead.
3557
a05575d3
TBA
35582020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3559 Tom de Vries <tdevries@suse.de>
3560 Pedro Alves <palves@redhat.com>
3561
3562 PR threads/25478
3563 * infrun.c (stop_all_threads): Do NOT ignore
3564 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3565 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3566 received.
3567 (handle_no_resumed): Remove code handling a live inferior with no
3568 threads.
3569 * remote.c (has_single_non_exited_thread): New.
3570 (remote_target::update_thread_list): Do not delete a thread if is
3571 the last thread of the process.
3572 * thread.c (thread_select): Call delete_exited_threads instead of
3573 prune_threads.
3574
6ad82919
TBA
35752020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3576
3577 * infrun.c (stop_all_threads): Enable/disable thread events of all
3578 targets. Move a debug message denoting the end of the function
3579 into the SCOPED_EXIT block.
3580
d890404b
TBA
35812020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3582
3583 * process-stratum-target.h: Include <set>.
3584 (all_non_exited_process_targets, switch_to_target_no_thread): New
3585 function declarations.
3586 * process-stratum-target.c (all_non_exited_process_targets)
3587 (switch_to_target_no_thread): New function implementations.
3588
293b3ebc
TBA
35892020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3590
3591 * infrun.c (handle_inferior_event): Extract out a piece of code
3592 into...
3593 (mark_non_executing_threads): ...this new function.
3594
7ca9b62a
TBA
35952020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3596
3597 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3598 use.
3599
fc75c28b
TBA
36002020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3601
3602 * regcache.c (regcache_read_pc_protected): New function
3603 implementation that returns 0 if the PC cannot read via
3604 'regcache_read_pc'.
3605 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3606 instead of 'regcache_read_pc'.
3607 (keep_going_pass_signal): Ditto.
3608
a89febbd
TT
36092020-05-13 Tom Tromey <tromey@adacore.com>
3610
3611 * ada-lang.c (align_value): Remove.
3612 (ada_template_to_fixed_record_type_1): Use align_up.
3613
f7e23710
TBA
36142020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3615
3616 * async-event.c: Update the copyright year.
3617 * async-event.h: Update the copyright year.
3618
02ff80c2
SM
36192020-05-12 Simon Marchi <simon.marchi@efficios.com>
3620
3621 * objfiles.h (is_addr_in_objfile,
3622 shared_objfile_contains_address_p): Return bool.
3623 * objfile.c (is_addr_in_objfile,
3624 shared_objfile_contains_address_p): Return bool.
3625
4fd6c7e8
TT
36262020-05-11 Tom Tromey <tromey@adacore.com>
3627
3628 * cli/cli-cmds.c (info_command): Restore.
3629 (_initialize_cli_cmds): Use add_prefix_command for "info".
3630 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3631
5eb68a39
TT
36322020-05-11 Tom Tromey <tromey@adacore.com>
3633
3634 * ada-lang.c (ada_value_primitive_field): Now public.
3635 * ada-lang.h (ada_value_primitive_field): Declare.
3636 * ada-valprint.c (print_field_values): Use
3637 ada_value_primitive_field for wrapper fields.
3638
7666722f
TV
36392020-05-11 Tom de Vries <tdevries@suse.de>
3640
3641 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3642 MODULE_DOMAIN.
3643
3ee6bb11
TV
36442020-05-11 Tom de Vries <tdevries@suse.de>
3645
3646 PR symtab/25941
3647 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3648 with length 0, if not gdb-produced.
3649 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3650
43434996
TV
36512020-05-09 Tom de Vries <tdevries@suse.de>
3652
3653 PR gdb/25955
3654 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3655 calculation.
3656
2f78cffc
TT
36572020-05-09 Tom Tromey <tom@tromey.com>
3658
3659 * top.c (server_command): Now bool.
3660 * top.h (server_command): Now bool.
3661
4f7bc5ed
TT
36622020-05-08 Tom Tromey <tromey@adacore.com>
3663
3664 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3665 already being processed.
3666
8be4b118
TT
36672020-05-08 Tom Tromey <tom@tromey.com>
3668
3669 * printcmd.c (struct display) <next>: Remove.
3670 <display>: New constructor.
3671 <exp_string>: Now a std::string.
3672 <enabled_p>: Now a bool.
3673 (display_number): Move definition earlier.
3674 (displays): Rename from display_chain. Now a std::vector.
3675 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3676 (display_command): Update.
3677 (do_one_display, disable_display)
3678 (enable_disable_display_command, do_enable_disable_display):
3679 Update.
3680 (free_display): Remove.
3681 (clear_displays): Rewrite.
3682 (delete_display): Update.
3683 (map_display_numbers): Use function_view. Remove "data"
3684 parameter. Update.
3685 (do_delete_display): Remove.
3686 (undisplay_command): Update.
3687 (do_one_display, do_displays, disable_display)
3688 (info_display_command): Update.
3689 (do_enable_disable_display): Remove.
3690 (enable_disable_display_command)
3691 (clear_dangling_display_expressions): Update.
3692
94c93c35
TT
36932020-05-08 Tom Tromey <tom@tromey.com>
3694
3695 * symtab.c (set_symbol_cache_size)
3696 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3697 (maintenance_print_symbol_cache_statistics): Update.
3698 * symmisc.c (print_symbol_bcache_statistics)
3699 (print_objfile_statistics, maintenance_print_objfiles)
3700 (maintenance_info_symtabs, maintenance_check_symtabs)
3701 (maintenance_expand_symtabs, maintenance_info_line_tables):
3702 Update.
3703 * symfile-debug.c (set_debug_symfile): Update.
3704 * source.c (forget_cached_source_info): Update.
3705 * python/python.c (gdbpy_progspaces): Update.
3706 * psymtab.c (maintenance_info_psymtabs): Update.
3707 * probe.c (parse_probes): Update.
3708 * linespec.c (iterate_over_all_matching_symtabs)
3709 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3710 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3711 * exec.c (exec_target::close): Update.
3712 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3713 * breakpoint.c (print_one_breakpoint_location)
3714 (create_longjmp_master_breakpoint)
3715 (create_std_terminate_master_breakpoint): Update.
3716 * progspace.c (program_spaces): Now a std::vector.
3717 (maybe_new_address_space): Update.
3718 (add_program_space): Remove.
3719 (program_space::program_space): Update.
3720 (remove_program_space): Update.
3721 (number_of_program_spaces): Remove.
3722 (print_program_space, update_address_spaces): Update.
3723 * progspace.h (program_spaces): Change type.
3724 (ALL_PSPACES): Remove.
3725 (number_of_program_spaces): Don't declare.
3726 (struct program_space) <next>: Remove.
3727
a1fd1ac9
TT
37282020-05-08 Tom Tromey <tom@tromey.com>
3729
3730 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3731 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3732 (enable_break): Update.
3733 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3734 (frv_fdpic_find_canonical_descriptor): Update.
3735 (frv_fetch_objfile_link_map): Update.
3736 * progspace.c (program_space::free_all_objfiles): Update.
3737 (program_space::solibs): New method.
3738 * progspace.h (struct program_space) <solibs>: New method.
3739 * solist.h (master_so_list): Don't declare.
3740 (ALL_SO_LIBS): Remove.
3741 * solib.h (so_list_head): Remove.
3742 (update_solib_list): Update comment.
3743 * solib.c (master_so_list): Remove.
3744 (solib_used, update_solib_list, solib_add)
3745 (info_sharedlibrary_command, clear_solib)
3746 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3747
38eae084
TT
37482020-05-08 Tom Tromey <tom@tromey.com>
3749
3750 * extension.c (extension_languages): Now a std::array.
3751 (ALL_EXTENSION_LANGUAGES): Remove.
3752 (get_ext_lang_defn, get_ext_lang_of_file)
3753 (eval_ext_lang_from_control_command): Update.
3754 (finish_ext_lang_initialization)
3755 (auto_load_ext_lang_scripts_for_objfile)
3756 (ext_lang_type_printers::ext_lang_type_printers)
3757 (apply_ext_lang_type_printers)
3758 (ext_lang_type_printers::~ext_lang_type_printers)
3759 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3760 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3761 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3762 (get_matching_xmethod_workers, ext_lang_colorize)
3763 (ext_lang_before_prompt): Update.
3764 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3765
596dc4ad
TT
37662020-05-08 Tom Tromey <tom@tromey.com>
3767
3768 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3769 overload.
3770 <swap_string, m_string>: Remove.
3771 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3772 Update.
3773 * stabsread.c (define_symbol, read_type): Update.
3774 * linespec.c (find_linespec_symbols): Update.
3775 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3776 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3777 * dbxread.c (read_dbx_symtab): Update.
3778 * cp-support.h (cp_canonicalize_string_full)
3779 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3780 Return unique_xmalloc_ptr.
3781 * cp-support.c (inspect_type): Update.
3782 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3783 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3784 Likewise.
3785 * c-typeprint.c (print_name_maybe_canonical): Update.
3786 * break-catch-throw.c (check_status_exception_catchpoint):
3787 Update.
3788
bf4cb9be
TV
37892020-05-08 Tom de Vries <tdevries@suse.de>
3790
3791 * infrun.c (follow_fork): Copy current_line and current_symtab to
3792 child thread.
3793
a1b68f28
SM
37942020-05-07 Simon Marchi <simon.marchi@efficios.com>
3795
3796 * async-event.c (struct async_signal_handler, struct
3797 async_event_handler): Reformat, remove typedef.
3798
98d48915
SM
37992020-05-07 Simon Marchi <simon.marchi@efficios.com>
3800
3801 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
3802 access thistype->main_type->dyn_prop_list directly.
3803
7aa91313
SM
38042020-05-07 Simon Marchi <simon.marchi@efficios.com>
3805
3806 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
3807 (remove_dyn_prop): Remove. Update all users to use
3808 type::remove_dyn_prop.
3809 * gdbtypes.c (remove_dyn_prop): Rename to...
3810 (type::remove_dyn_prop): ... this.
3811
5c54719c
SM
38122020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
3813
3814 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
3815 (add_dyn_prop): Remove. Update all users to use
3816 type::add_dyn_prop.
3817 * gdbtypes.c (add_dyn_prop): Rename to...
3818 (type::add_dyn_prop): ... this.
3819
24e99c6c
SM
38202020-05-07 Simon Marchi <simon.marchi@efficios.com>
3821
3822 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
3823 (get_dyn_prop): Remove. Update all users to use
3824 type::dyn_prop.
3825 * gdbtypes.c (get_dyn_prop): Rename to...
3826 (type::dyn_prop): ... this.
3827
0d4bf016
SM
38282020-05-06 Simon Marchi <simon.marchi@efficios.com>
3829
3830 * gdbtypes.h (struct main_type) <flag_static>: Remove.
3831
ac4a4f1c
SM
38322020-05-06 Simon Marchi <simon.marchi@efficios.com>
3833
3834 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
3835 instruction, skip it if it's there.
3836
a3bbacc1
SM
38372020-05-05 Simon Marchi <simon.marchi@efficios.com>
3838
3839 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
3840
c3236f84
SM
38412020-05-04 Simon Marchi <simon.marchi@efficios.com>
3842
3843 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
3844 * gdbtypes.c (recursive_dump_type): Remove use of
3845 TYPE_INCOMPLETE.
3846
3b6acaee
TT
38472020-05-03 Tom Tromey <tom@tromey.com>
3848
3849 * breakpoint.c (catch_command, tcatch_command): Remove.
3850 (_initialize_breakpoint): Use add_basic_prefix_cmd,
3851 add_show_prefix_cmd.
3852 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
3853 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
3854 Remove.
3855 (add_internal_problem_command): Use add_basic_prefix_cmd,
3856 add_show_prefix_cmd.
3857 * mips-tdep.c (set_mipsfpu_command): Remove.
3858 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
3859 * dwarf2/index-cache.c (set_index_cache_command): Remove.
3860 (_initialize_index_cache): Use add_basic_prefix_cmd.
3861 * memattr.c (dummy_cmd): Remove.
3862 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
3863 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
3864 (_initialize_tui_win): Use add_basic_prefix_cmd,
3865 add_show_prefix_cmd.
3866 * cli/cli-logging.c (set_logging_command): Remove.
3867 (_initialize_cli_logging): Use add_basic_prefix_cmd,
3868 add_show_prefix_cmd.
3869 (show_logging_command): Remove.
3870 * target.c (target_command): Remove.
3871 (add_target): Use add_basic_prefix_cmd.
3872
a51119cd
HD
38732020-05-02 Hannes Domani <ssbssa@yahoo.de>
3874
3875 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
3876
652fc23a 38772020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3878
652fc23a
PW
3879 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
3880 info_command.
3881
117539e6
KR
38822020-04-30 Kamil Rytarowski <n54@gmx.com>
3883
3884 * nbsd-nat.c (nbsd_enable_proc_events)
3885 (nbsd_nat_target::post_startup_inferior): Add.
3886 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
3887 (nbsd_nat_target::update_thread_list): Rewrite.
3888 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
3889 "PTRACE_LWP_CREATE".
3890 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
3891
102e38eb 38922020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3893
102e38eb
PW
3894 * stack.c (_initialize_stack): Remove duplicated creation
3895 of "frame" command and "f" alias.
3896
ee9d1e5f
HD
38972020-04-30 Hannes Domani <ssbssa@yahoo.de>
3898
3899 PR gdb/18706
3900 * gdbtypes.c (check_typedef): Calculate size of array of
3901 stubbed type.
3902
627c7fb8
HD
39032020-04-30 Hannes Domani <ssbssa@yahoo.de>
3904
3905 PR gdb/15559
3906 * i386-tdep.c (i386_push_dummy_call): Call
3907 i386_thiscall_push_dummy_call.
3908 (i386_thiscall_push_dummy_call): New function.
3909 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
3910 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
3911 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
3912
ffc2844e
SM
39132020-04-29 Simon Marchi <simon.marchi@efficios.com>
3914
3915 * gdbarch.sh (do_read): Add shellcheck disable directive for
3916 warning SC2162.
3917
1207375d
SM
39182020-04-29 Simon Marchi <simon.marchi@efficios.com>
3919
3920 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
3921 "referenced but not assigned" warning.
3922
9fdb2916
SM
39232020-04-29 Simon Marchi <simon.marchi@efficios.com>
3924
3925 * gdbarch.sh: Remove code that sets fallbackdefault.
3926
759cea5e
SM
39272020-04-29 Simon Marchi <simon.marchi@efficios.com>
3928
3929 * gdbarch.sh: Use shell operators && and || instead of
3930 -a and -o.
3931
cb02ab24
SM
39322020-04-29 Simon Marchi <simon.marchi@efficios.com>
3933
3934 * gdbarch.sh: Use $(...) instead of `...`.
3935
a6fc5ffc
SM
39362020-04-29 Simon Marchi <simon.marchi@efficios.com>
3937
3938 * gdbarch.sh: Use double quotes around variables.
3939
8d113d13
SM
39402020-04-29 Simon Marchi <simon.marchi@efficios.com>
3941
3942 * gdbarch.sh: Use %s with printf, instead of variables in the
3943 format string.
3944
ed6acedd
TT
39452020-04-29 Tom Tromey <tromey@adacore.com>
3946
3947 PR ada/25875:
3948 * dwarf2/read.c (update_enumeration_type_from_children): Compute
3949 type fields here.
3950 (read_enumeration_type): Call
3951 update_enumeration_type_from_children later. Update comments.
3952 (process_enumeration_scope): Don't create type fields.
3953
b68b1b58
KR
39542020-04-29 Kamil Rytarowski <n54@gmx.com>
3955
3956 * nbsd-tdep.c: Include "xml-syscall.h".
3957 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
3958
f94b2e03
KR
39592020-04-29 Kamil Rytarowski <n54@gmx.com>
3960
3961 * nbsd-nat.c: Include "sys/wait.h".
3962 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
3963 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
3964 (nbsd_nat_target::remove_exec_catchpoint)
3965 (nbsd_nat_target::set_syscall_catchpoint): Add.
3966 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
3967 (nbsd_nat_target::insert_exec_catchpoint)
3968 (nbsd_nat_target::remove_exec_catchpoint)
3969 (nbsd_nat_target::set_syscall_catchpoint): Add.
3970 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
3971 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
3972 `nbsd_get_syscall_number'.
3973
fc49bc72
TT
39742020-04-29 Tom Tromey <tom@tromey.com>
3975
3976 * stack.c (print_block_frame_labels): Remove.
3977
d642b692
HD
39782020-04-29 Hannes Domani <ssbssa@yahoo.de>
3979
3980 PR gdb/17320
3981 * ada-valprint.c (val_print_packed_array_elements): Move array
3982 end bracket to new line.
3983 (ada_val_print_string): Remove extra spaces before first array
3984 element.
3985 * c-valprint.c (c_value_print_array): Likewise.
3986 * m2-valprint.c (m2_print_array_contents): Likewise.
3987 (m2_value_print_inner): Likewise.
3988 * p-valprint.c (pascal_value_print_inner): Likewise.
3989 * valprint.c (generic_val_print_array): Likewise.
3990 (value_print_array_elements): Move first array element and array
3991 end bracket to new line.
3992
ea90f227
TV
39932020-04-29 Tom de Vries <tdevries@suse.de>
3994
3995 PR symtab/25889
3996 * linespec.c (find_method): Fix ix calculation.
3997
4498ef4f
KR
39982020-04-28 Kamil Rytarowski <n54@gmx.com>
3999
4000 * syscalls/update-netbsd.sh: New file.
4001 * syscalls/netbsd.xml: Regenerate.
4002 * data-directory/Makefile.in: Register `netbsd.xml' in
4003 `SYSCALLS_FILES'.
4004
a55e30b5
SM
40052020-04-28 Simon Marchi <simon.marchi@efficios.com>
4006
4007 * syscalls/update-freebsd.sh: Add double quotes.
4008
2b2fbab8
TT
40092020-04-28 Tom Tromey <tom@tromey.com>
4010
4011 * NEWS: Update.
4012 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4013 (cmdpy_init): Allow class_tui.
4014
a65189c9
TV
40152020-04-28 Mark Williams <mark@myosotissp.com>
4016
4017 PR gdb/24480
4018 * dwarf2read.c: Add missing assingments to list_in_scope when
4019 start_symtab was already called.
4020
1b95cdb7
SM
40212020-04-28 Simon Marchi <simon.marchi@efficios.com>
4022
4023 PR gdb/25881
4024 * dwarf2/read.c (offset_map_type): Use
4025 gdb:hash_enum<sect_offset> as hash function.
4026
15cd93d0
TV
40272020-04-28 Tom de Vries <tdevries@suse.de>
4028
4029 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4030 with DW_AT_signature.
4031
1eb39914
SM
40322020-04-27 Simon Marchi <simon.marchi@efficios.com>
4033
4034 * configure.ac: Remove check for fs_base/gs_base in
4035 user_regs_struct.
4036 * configure: Re-generate.
4037 * config.in: Re-generate.
4038 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4039 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4040 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4041
991a3e2e
LM
40422020-04-27 Luis Machado <luis.machado@linaro.org>
4043
4044 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4045 problematic inline frame unwinding situation.
4046 * frame.c (frame_id_computed_p): New function.
4047 * frame.h (frame_id_computed_p): New prototype.
4048
361ba0e8
TT
40492020-04-26 Tom Tromey <tom@tromey.com>
4050
4051 * command.h (enum command_class) <class_pseudo>: Remove.
4052
bc3609fd
PW
40532020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4054
4055 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4056 and whitespace.
4057
b9771db7
KR
40582020-04-25 Kamil Rytarowski <n54@gmx.com>
4059
ec16513e
SM
4060 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4061 `PT_GET_PROCESS_STATE' block.
b9771db7 4062
7151c1af
TT
40632020-04-24 Tom Tromey <tom@tromey.com>
4064
4065 * symtab.h (symbol_get_demangled_name): Don't declare.
4066 * symtab.c (symbol_get_demangled_name): Remove.
4067 (general_symbol_info::natural_name)
4068 (general_symbol_info::demangled_name): Update.
4069
906bb4c5
TT
40702020-04-24 Tom Tromey <tom@tromey.com>
4071
4072 PR rust/25025:
4073 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4074
bcfe6157
TT
40752020-04-24 Tom Tromey <tom@tromey.com>
4076
4077 PR symtab/12707:
4078 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4079 exists.
4080 (new_symbol): Likewise.
4081 * compile/compile-object-load.c (get_out_value_type): Use
4082 symbol_matches_search_name.
4083
f049a313
TT
40842020-04-24 Tom Tromey <tom@tromey.com>
4085
4086 * dwarf2/read.c (add_partial_symbol): Do not call
4087 compute_and_set_names.
4088
76e288d1
TT
40892020-04-24 Tom Tromey <tom@tromey.com>
4090
4091 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4092 overload.
4093
2467f4f6
TT
40942020-04-24 Tom Tromey <tom@tromey.com>
4095
4096 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4097 (add_psymbol_to_list): New overload. Make old overload call new
4098 one.
4099 * psympriv.h (add_psymbol_to_list): New overload.
4100
e61108c9
TT
41012020-04-24 Tom Tromey <tom@tromey.com>
4102
4103 * dwarf2/read.c (partial_die_info::read) <case
4104 DW_AT_linkage_name>: Use value_as_string.
4105 (dwarf2_string_attr): Use value_as_string.
4106 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4107 method.
4108 * dwarf2/attribute.c (attribute::value_as_string): New method.
4109
8c87a452
TT
41102020-04-24 Tom Tromey <tom@tromey.com>
4111
4112 * symtab.c (general_symbol_info::natural_name)
4113 (general_symbol_info::demangled_name): Check for language_rust.
4114
787de330
TT
41152020-04-24 Tom Tromey <tom@tromey.com>
4116
4117 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4118 (dwarf2_physname): ... from here.
4119 (partial_die_info::read): Add Rust "{" hack.
4120
ff985671
TT
41212020-04-24 Tom Tromey <tom@tromey.com>
4122
4123 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4124 method.
4125 (symbol_set_demangled_name): Don't declare.
4126 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4127 symbol_set_demangled_name.
4128 (general_symbol_info::set_language)
4129 (general_symbol_info::compute_and_set_names): Update.
4130 * minsyms.c (minimal_symbol_reader::install): Update.
4131 * dwarf2/read.c (new_symbol): Update.
4132
1acda803
TT
41332020-04-24 Tom Tromey <tromey@adacore.com>
4134
4135 PR python/23662:
4136 * python/py-type.c (convert_field): Handle
4137 FIELD_LOC_KIND_DWARF_BLOCK.
4138 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4139 (typy_get_dynamic): Nw function.
4140 (type_object_getset): Add "dynamic".
4141 * NEWS: Add entry.
4142
d656f129
TT
41432020-04-24 Tom Tromey <tromey@adacore.com>
4144
4145 * ada-typeprint.c (print_choices, print_variant_part)
4146 (print_record_field_types_dynamic): New functions.
4147 (print_record_field_types): Use print_record_field_types_dynamic.
4148
7d79de9a
TT
41492020-04-24 Tom Tromey <tromey@adacore.com>
4150
4151 * dwarf2/read.c (handle_data_member_location): New overload.
4152 (dwarf2_add_field): Use it.
4153 (decode_locdesc): Add "computed" parameter. Update comment.
4154 * gdbtypes.c (is_dynamic_type_internal): Also look for
4155 FIELD_LOC_KIND_DWARF_BLOCK.
4156 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4157 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4158 virtual base classes.
4159 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4160 FIELD_LOC_KIND_DWARF_BLOCK.
4161
f8e89861
TT
41622020-04-24 Tom Tromey <tromey@adacore.com>
4163
4164 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4165 * gdbtypes.c (is_dynamic_type_internal): Check
4166 TYPE_HAS_DYNAMIC_LENGTH.
4167 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4168 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4169 New macros.
4170 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4171 constant.
4172
9c6a1327
TT
41732020-04-24 Tom Tromey <tromey@adacore.com>
4174
4175 * dwarf2/read.c (struct variant_field): Rewrite.
4176 (struct variant_part_builder): New.
4177 (struct nextfield): Remove "variant" field. Add "offset".
4178 (struct field_info): Add "current_variant_part" and
4179 "variant_parts".
4180 (alloc_discriminant_info): Remove.
4181 (alloc_rust_variant): New function.
4182 (quirk_rust_enum): Update.
4183 (dwarf2_add_field): Set "offset" member. Don't handle
4184 DW_TAG_variant_part.
4185 (offset_map_type): New typedef.
4186 (convert_variant_range, create_one_variant)
4187 (create_one_variant_part, create_variant_parts)
4188 (add_variant_property): New functions.
4189 (dwarf2_attach_fields_to_type): Call add_variant_property.
4190 (read_structure_type): Don't handle DW_TAG_variant_part.
4191 (handle_variant_part, handle_variant): New functions.
4192 (handle_struct_member_die): Use them.
4193 (process_structure_scope): Don't handle variant parts.
4194 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4195 (struct discriminant_info): Remove.
4196 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4197 (struct main_type) <flag_discriminated_union>: Remove.
4198 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4199 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4200 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4201 Update.
4202 * valops.c (value_union_variant): Remove.
4203 * value.h (value_union_variant): Don't declare.
4204
b249d2c2
TT
42052020-04-24 Tom Tromey <tromey@adacore.com>
4206
4207 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4208 (ada_value_primitive_packed_val): Update.
4209 * ada-valprint.c (ada_value_print_1): Update.
4210 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4211 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4212 just an address. Use evaluate_for_locexpr_baton.
4213 (dwarf2_evaluate_property): Update.
4214 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4215 array_view.
4216 * findvar.c (default_read_var_value): Update.
4217 * gdbtypes.c (compute_variant_fields_inner)
4218 (resolve_dynamic_type_internal): Update.
4219 (resolve_dynamic_type): Change type of valaddr parameter.
4220 * gdbtypes.h (resolve_dynamic_type): Update.
4221 * valarith.c (value_subscripted_rvalue): Update.
4222 * value.c (value_from_contents_and_address): Update.
4223
61122aa9
TT
42242020-04-24 Tom Tromey <tromey@adacore.com>
4225
4226 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4227 "push_initial_value" parameter.
4228 (dwarf2_evaluate_property): Likewise.
4229 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4230
ef83a141
TT
42312020-04-24 Tom Tromey <tromey@adacore.com>
4232
4233 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4234 (variant::matches, compute_variant_fields_recurse)
4235 (compute_variant_fields_inner, compute_variant_fields): New
4236 functions.
4237 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4238 Use resolved_type after type is made.
4239 (operator==): Add new cases.
4240 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4241 (struct discriminant_range, struct variant, struct variant_part):
4242 New.
4243 (union dynamic_prop_data) <variant_parts, original_type>: New
4244 members.
4245 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4246 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4247 constants.
4248 * value.c (unpack_bits_as_long): Now public.
4249 * value.h (unpack_bits_as_long): Declare.
4250
675127ec
TT
42512020-04-24 Tom Tromey <tromey@adacore.com>
4252
4253 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4254 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4255
9852ceef
HD
42562020-04-24 Hannes Domani <ssbssa@yahoo.de>
4257
4258 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4259
7632c6ce
KR
42602020-04-24 Kamil Rytarowski <n54@gmx.com>
4261
4262 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4263 (remove_fork_catchpoint, post_startup_inferior)
4264 (post_attach): Move...
4265 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4266 (remove_fork_catchpoint, post_startup_inferior)
4267 (post_attach): ...here.
4268 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4269 (remove_fork_catchpoint, post_startup_inferior)
4270 (post_attach): Move...
4271 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4272 (remove_fork_catchpoint, post_startup_inferior)
4273 (post_attach): ...here.
4274
7be2bb4f
TT
42752020-04-24 Tom Tromey <tromey@adacore.com>
4276
4277 * nat/windows-nat.h (struct windows_thread_info)
4278 <pc_adjusted>: New member.
4279 * windows-nat.c (windows_fetch_one_register): Check
4280 pc_adjusted.
4281 (windows_nat_target::get_windows_debug_event)
4282 (windows_nat_target::wait): Set pc_adjusted.
4283
f80cb3b4
TV
42842020-04-24 Tom de Vries <tdevries@suse.de>
4285
4286 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4287 Run gdb-add-index inside temp dir.
4288
29514b87
TT
42892020-04-23 Tom Tromey <tromey@adacore.com>
4290
4291 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4292 in loop.
4293
5939967b
LM
42942020-04-23 Luis Machado <luis.machado@linaro.org>
4295
4296 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4297 get_frame_register instead of gdbarch_unwind_pc.
4298
70bc38f5
TV
42992020-04-23 Tom de Vries <tdevries@suse.de>
4300
4301 * symtab.c (lookup_global_symbol): Prefer def over decl.
4302
de82891c
TV
43032020-04-23 Tom de Vries <tdevries@suse.de>
4304
4305 PR symtab/25807
4306 * block.c (best_symbol, better_symbol): Promote to external.
4307 * block.h (best_symbol, better_symbol): Declare.
4308 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4309 decl.
4310
ecc6c606
TT
43112020-04-23 Tom Tromey <tromey@adacore.com>
4312
4313 PR ada/25837:
4314 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4315 "const char *", not a "const std::string &".
4316 <name_and_matcher::operator==>: Update.
4317 * unittests/lookup_name_info-selftests.c: Change type of
4318 "result".
4319
740480b8
TT
43202020-04-23 Tom Tromey <tom@tromey.com>
4321
4322 * inferior.h (iterate_over_inferiors): Don't declare.
4323 * inferior.c (iterate_over_inferiors): Remove.
4324 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4325 Remove.
4326 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4327 use iterate_over_inferiors.
4328 (darwin_resume_inferior_it)
4329 (struct resume_inferior_threads_param)
4330 (darwin_resume_inferior_threads_it): Remove.
4331 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4332
ae3ab1f0
TV
43332020-04-23 Tom de Vries <tdevries@suse.de>
4334
4335 * blockframe.c (find_pc_partial_function): Use
4336 find_pc_sect_compunit_symtab rather than
4337 objfile->sf->qf->find_pc_sect_compunit_symtab.
4338
317d2668
TV
43392020-04-22 Tom de Vries <tdevries@suse.de>
4340
4341 PR symtab/25764
4342 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4343 in psymtabs.
4344
eea9e357
TV
43452020-04-22 Tom de Vries <tdevries@suse.de>
4346
4347 PR symtab/25801
4348 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4349 symtabs.
4350
3d5afab3
TV
43512020-04-22 Tom de Vries <tdevries@suse.de>
4352
4353 PR symtab/25700
4354 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4355 CU if already created.
4356
d43b7a2d
TBA
43572020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4358
4359 * infrun.c (displaced_step_fixup): Switch to the event_thread
4360 before calling displaced_step_restore, not after.
4361
d89edf9b
MM
43622020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4363
4364 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4365 its inferior is not recorded by us.
4366 (record_btrace_target_open): Replace call to
4367 all_non_exited_threads () with call to current_inferior
4368 ()->non_exited_threads ().
4369 (record_btrace_target::stop_recording): Likewise.
4370 (record_btrace_target::close): Likewise.
4371 (record_btrace_target::wait): Likewise.
4372 (record_btrace_target::record_stop_replaying): Likewise.
4373
5897fd49
MM
43742020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4375
4376 * btrace.c (btrace_enable): Throw an error on double enables and
4377 when enabling recording fails.
4378 (btrace_disable): Throw an error if the thread is not recorded.
4379
1a476b6d
MM
43802020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4381
4382 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4383 request if we do not have a thread_info.
4384
4778a5f8
TV
43852020-04-21 Tom de Vries <tdevries@suse.de>
4386
4387 PR gdb/25471
4388 * thread.c
4389 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4390 exception in get_frame_id.
4391
0fa7617d
TT
43922020-04-20 Tom Tromey <tromey@adacore.com>
4393
4394 * python/python.c (struct gdbpy_event): Mark move constructor as
4395 noexcept.
4396 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4397 constructor as noexcept.
4398 * completer.h (struct completion_result): Mark move constructor as
4399 noexcept.
4400 * completer.c (completion_result::completion_result): Use
4401 initialization style. Don't call reset_match_list.
4402
ad23bda0
MS
44032020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4404
4405 * MAINTAINERS (Write After Approval): Add myself.
4406
45e1f031
TT
44072020-04-18 Tom Tromey <tom@tromey.com>
4408
4409 * windows-tdep.c (init_w32_command_list)
4410 (w32_prefix_command_valid): Restore.
4411 (_initialize_windows_tdep): Call init_w32_command_list.
4412
08feed99
TT
44132020-04-18 Tom Tromey <tom@tromey.com>
4414
4415 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4416 * value.c (value_fn_field): Update.
4417 * valops.c (find_function_in_inferior)
4418 (value_allocate_space_in_inferior): Update.
4419 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4420 Update.
4421 * tui/tui-source.c (tui_source_window::set_contents): Update.
4422 * symtab.c (lookup_global_or_static_symbol)
4423 (find_function_start_sal_1, skip_prologue_sal)
4424 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4425 * symmisc.c (dump_msymbols, dump_symtab_1)
4426 (maintenance_print_one_line_table): Update.
4427 * symfile.c (init_entry_point_info, section_is_mapped)
4428 (list_overlays_command, simple_read_overlay_table)
4429 (simple_overlay_update_1): Update.
4430 * stap-probe.c (handle_stap_probe): Update.
4431 * stabsread.c (dbx_init_float_type, define_symbol)
4432 (read_one_struct_field, read_enum_type, read_range_type): Update.
4433 * source.c (info_line_command): Update.
4434 * python/python.c (gdbpy_source_objfile_script)
4435 (gdbpy_execute_objfile_script): Update.
4436 * python/py-type.c (save_objfile_types): Update.
4437 * python/py-objfile.c (py_free_objfile): Update.
4438 * python/py-inferior.c (python_new_objfile): Update.
4439 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4440 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4441 (maintenance_check_psymtabs): Update.
4442 * printcmd.c (info_address_command): Update.
4443 * objfiles.h (struct objfile) <arch>: New method, from
4444 get_objfile_arch.
4445 (get_objfile_arch): Don't declare.
4446 * objfiles.c (get_objfile_arch): Remove.
4447 (filter_overlapping_sections): Update.
4448 * minsyms.c (msymbol_is_function): Update.
4449 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4450 (output_nondebug_symbol): Update.
4451 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4452 (mdebug_expand_psymtab): Update.
4453 * machoread.c (macho_add_oso_symfile): Update.
4454 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4455 Update.
4456 * linux-fork.c (checkpoint_command): Update.
4457 * linespec.c (convert_linespec_to_sals): Update.
4458 * jit.c (finalize_symtab): Update.
4459 * infrun.c (insert_exception_resume_from_probe): Update.
4460 * ia64-tdep.c (ia64_find_unwind_table): Update.
4461 * hppa-tdep.c (internalize_unwinds): Update.
4462 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4463 Update.
4464 * gcore.c (call_target_sbrk): Update.
4465 * elfread.c (record_minimal_symbol, elf_symtab_read)
4466 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4467 (elf_gnu_ifunc_resolve_by_got): Update.
4468 * dwarf2/read.c (create_addrmap_from_index)
4469 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4470 (read_debug_names_from_section)
4471 (process_psymtab_comp_unit_reader, add_partial_symbol)
4472 (add_partial_subprogram, process_full_comp_unit)
4473 (read_file_scope, read_func_scope, read_lexical_block_scope)
4474 (read_call_site_scope, dwarf2_ranges_read)
4475 (dwarf2_record_block_ranges, dwarf2_add_field)
4476 (mark_common_block_symbol_computed, read_tag_pointer_type)
4477 (read_tag_string_type, dwarf2_init_float_type)
4478 (dwarf2_init_complex_target_type, read_base_type)
4479 (partial_die_info::read, partial_die_info::read)
4480 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4481 (dwarf2_fetch_die_loc_sect_off): Update.
4482 * dwarf2/loc.c (dwarf2_find_location_expression)
4483 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4484 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4485 (dwarf2_loc_desc_get_symbol_read_needs)
4486 (locexpr_describe_location_piece, locexpr_describe_location_1)
4487 (loclist_describe_location): Update.
4488 * dwarf2/index-write.c (write_debug_names): Update.
4489 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4490 * dtrace-probe.c (dtrace_process_dof): Update.
4491 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4492 (process_one_symbol): Update.
4493 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4494 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4495 (coff_read_enum_type): Update.
4496 * cli/cli-cmds.c (edit_command, list_command): Update.
4497 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4498 * breakpoint.c (create_overlay_event_breakpoint)
4499 (create_longjmp_master_breakpoint)
4500 (create_std_terminate_master_breakpoint)
4501 (create_exception_master_breakpoint, get_sal_arch): Update.
4502 * block.c (block_gdbarch): Update.
4503 * annotate.c (annotate_source_line): Update.
4504
0743fc83
TT
45052020-04-17 Tom Tromey <tromey@adacore.com>
4506
4507 * auto-load.c (show_auto_load_cmd): Remove.
4508 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4509 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4510 (maintenance_print_arc_command): Remove.
4511 * tui/tui-win.c (tui_command): Remove.
4512 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4513 * tui/tui-layout.c (tui_layout_command): Remove.
4514 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4515 * python/python.c (user_set_python, user_show_python): Remove.
4516 (_initialize_python): Use add_basic_prefix_cmd,
4517 add_show_prefix_cmd.
4518 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4519 (install_gdb_commands): Use add_basic_prefix_cmd,
4520 add_show_prefix_cmd.
4521 (info_guile_command): Remove.
4522 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4523 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4524 add_show_prefix_cmd.
4525 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4526 Remove do_set and do_show parameters.
4527 * cli/cli-style.c (set_style, show_style): Remove.
4528 (_initialize_cli_style): Use add_basic_prefix_cmd,
4529 add_show_prefix_cmd.
4530 (cli_style_option::add_setshow_commands): Remove do_set and
4531 do_show parameters.
4532 (cli_style_option::add_setshow_commands): Use
4533 add_basic_prefix_cmd, add_show_prefix_cmd.
4534 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4535 (set_style_name): Remove.
4536 * cli/cli-dump.c (dump_command, append_command): Remove.
4537 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4538 (tekhex_dump_command, binary_dump_command)
4539 (binary_append_command): Remove.
4540 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4541 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4542 (init_w32_command_list): Remove; move into ...
4543 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4544 * valprint.c (set_print, show_print, set_print_raw)
4545 (show_print_raw): Remove.
4546 (_initialize_valprint): Use add_basic_prefix_cmd,
4547 add_show_prefix_cmd.
4548 * typeprint.c (set_print_type, show_print_type): Remove.
4549 (_initialize_typeprint): Use add_basic_prefix_cmd,
4550 add_show_prefix_cmd.
4551 * record.c (set_record_command, show_record_command): Remove.
4552 (_initialize_record): Use add_basic_prefix_cmd,
4553 add_show_prefix_cmd.
4554 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4555 add_show_prefix_cmd.
4556 (info_command, show_command, set_debug, show_debug): Remove.
4557 * top.h (set_history, show_history): Don't declare.
4558 * top.c (set_history, show_history): Remove.
4559 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4560 (unset_tdesc_cmd): Remove.
4561 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4562 add_show_prefix_cmd.
4563 * symtab.c (info_module_command): Remove.
4564 (_initialize_symtab): Use add_basic_prefix_cmd.
4565 * symfile.c (overlay_command): Remove.
4566 (_initialize_symfile): Use add_basic_prefix_cmd.
4567 * sparc64-tdep.c (info_adi_command): Remove.
4568 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4569 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4570 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4571 add_show_prefix_cmd.
4572 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4573 (_initialize_serial): Use add_basic_prefix_cmd,
4574 add_show_prefix_cmd.
4575 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4576 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4577 add_show_prefix_cmd.
4578 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4579 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4580 add_show_prefix_cmd.
4581 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4582 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4583 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4584 add_show_prefix_cmd.
4585 * remote.c (remote_command, set_remote_cmd): Remove.
4586 (_initialize_remote): Use add_basic_prefix_cmd.
4587 * record-full.c (set_record_full_command)
4588 (show_record_full_command): Remove.
4589 (_initialize_record_full): Use add_basic_prefix_cmd,
4590 add_show_prefix_cmd.
4591 * record-btrace.c (cmd_set_record_btrace)
4592 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4593 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4594 (cmd_show_record_btrace_pt): Remove.
4595 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4596 add_show_prefix_cmd.
4597 * ravenscar-thread.c (set_ravenscar_command)
4598 (show_ravenscar_command): Remove.
4599 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4600 add_show_prefix_cmd.
4601 * mips-tdep.c (show_mips_command, set_mips_command)
4602 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4603 add_show_prefix_cmd.
4604 * maint.c (maintenance_command, maintenance_info_command)
4605 (maintenance_check_command, maintenance_print_command)
4606 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4607 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4608 add_show_prefix_cmd.
4609 (show_per_command_cmd): Remove.
4610 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4611 Remove.
4612 (maintenance_show_test_settings_cmd): Remove.
4613 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4614 add_show_prefix_cmd.
4615 * maint-test-options.c (maintenance_test_options_command):
4616 Remove.
4617 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4618 * macrocmd.c (macro_command): Remove
4619 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4620 * language.c (set_check, show_check): Remove.
4621 (_initialize_language): Use add_basic_prefix_cmd,
4622 add_show_prefix_cmd.
4623 * infcmd.c (unset_command): Remove.
4624 (_initialize_infcmd): Use add_basic_prefix_cmd.
4625 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4626 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4627 add_show_prefix_cmd.
4628 * go32-nat.c (go32_info_dos_command): Remove.
4629 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4630 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4631 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4632 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4633 (_initialize_frame): Use add_basic_prefix_cmd,
4634 add_show_prefix_cmd.
4635 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4636 (_initialize_dcache): Use add_basic_prefix_cmd,
4637 add_show_prefix_cmd.
4638 * cp-support.c (maint_cplus_command): Remove.
4639 (_initialize_cp_support): Use add_basic_prefix_cmd.
4640 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4641 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4642 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4643 add_basic_prefix_cmd, add_show_prefix_cmd.
4644 * breakpoint.c (save_command): Remove.
4645 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4646 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4647 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4648 add_show_prefix_cmd.
4649 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4650 (set_ada_command, show_ada_command): Remove.
4651 (_initialize_ada_language): Use add_basic_prefix_cmd,
4652 add_show_prefix_cmd.
4653 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4654
3557f442
KR
46552020-04-16 Kamil Rytarowski <n54@gmx.com>
4656
4657 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4658 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4659
16197208
SM
46602020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4661
4662 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4663 warning messages.
4664
00ac85d3
SM
46652020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4666
4667 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4668 import table is not at beginning of .idata section.
4669
381ce63f
PA
46702020-04-16 Pedro Alves <palves@redhat.com>
4671
4672 * inferior.c (delete_inferior): Use delete operator directly
4673 instead of delete_program_space.
4674 * progspace.c (add_program_space): New, factored out from
4675 program_space::program_space.
4676 (remove_program_space): New, factored out from
4677 delete_program_space.
4678 (program_space::program_space): Remove intro comment. Rewrite.
4679 (program_space::~program_space): Remove intro comment. Call
4680 remove_program_space.
4681 (delete_program_space): Delete.
4682 * progspace.h (program_space::program_space): Make explicit. Move
4683 intro comment here, adjusted.
4684 (program_space::~program_space): Move intro comment here,
4685 adjusted.
4686 (delete_program_space): Remove.
4687
a010605f
TT
46882020-04-16 Tom Tromey <tromey@adacore.com>
4689
4690 * windows-nat.c (windows_nat::handle_access_violation): New
4691 function.
4692 * nat/windows-nat.h (handle_access_violation): Declare.
4693 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4694 windows-nat.c. Call handle_access_violation.
4695
efba5c23
TV
46962020-04-16 Tom de Vries <tdevries@suse.de>
4697
4698 PR symtab/25791
4699 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4700 CUs without psymtab.
4701
97ed802d
KB
47022020-04-16 Kevin Buettner <kevinb@redhat.com>
4703
4704 * python/python.c (do_start_initialization): Don't call
4705 PyEval_InitThreads for Python 3.9 and beyond.
4706
c7d64809
KR
47072020-04-15 Kamil Rytarowski <n54@gmx.com>
4708
4709 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4710 thread functions.
4711 (obsd_nat_target::wait): Likewise.
4712
ce127a96
TT
47132020-04-15 Tom Tromey <tromey@adacore.com>
4714
4715 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4716 (DEBUG_EXCEPT): Use debug_printf.
4717
99f1bc6a
AB
47182020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4719
4720 * completer.c (class completion_tracker::completion_hash_entry)
4721 <hash_name>: New member function.
4722 (completion_tracker::discard_completions): New callback to hash a
4723 completion_hash_entry, pass this to htab_create_alloc.
4724
a0e9b532
JT
47252016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4726
4727 * windows-nat.c (windows_make_so): Warn rather than stopping with
4728 an error if realpath() fails.
4729
06ca5dd4
KR
47302020-04-14 Kamil Rytarowski <n54@gmx.com>
4731
4732 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4733 (nbsd_nat_target::info_proc): Add do_status.
4734
194d088f
TV
47352020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4736 Tom de Vries <tdevries@suse.de>
4737
4738 PR symtab/25718
4739 * psympriv.h (struct partial_symtab::read_symtab)
4740 (struct partial_symtab::expand_psymtab)
4741 (struct partial_symtab::read_dependencies): Update comments.
4742 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4743 read_symtab for includer.
4744 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4745 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4746 (struct dwarf2_include_psymtab::m_readin): Remove.
4747 (struct dwarf2_include_psymtab::includer): New member function.
4748 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4749
c1a66c06
TV
47502020-04-14 Tom de Vries <tdevries@suse.de>
4751
4752 PR symtab/25720
4753 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4754 with NULL symbol_matcher and lookup_name.
4755 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4756 and lookup_name.
4757 * dwarf2/read.c (dw2_expand_symtabs_matching)
4758 (dw2_debug_names_expand_symtabs_matching): Same.
4759 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4760 Make lookup_name a pointer. Update comment.
4761 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4762 lookup_name being a pointer.
4763 * symfile.c (expand_symtabs_matching): Same.
4764 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4765 * linespec.c (iterate_over_all_matching_symtabs): Same.
4766
400b5eca
TT
47672020-04-13 Tom Tromey <tom@tromey.com>
4768
4769 * run-on-main-thread.c: Update include.
4770 * unittests/main-thread-selftests.c: Update include.
4771 * tui/tui-win.c: Update include.
4772 * tui/tui-io.c: Update include.
4773 * tui/tui-interp.c: Update include.
4774 * tui/tui-hooks.c: Update include.
4775 * top.h: Update include.
4776 * top.c: Update include.
4777 * ser-base.c: Update include.
4778 * remote.c: Update include.
4779 * remote-notif.c: Update include.
4780 * remote-fileio.c: Update include.
4781 * record-full.c: Update include.
4782 * record-btrace.c: Update include.
4783 * python/python.c: Update include.
4784 * posix-hdep.c: Update include.
4785 * mingw-hdep.c: Update include.
4786 * mi/mi-main.c: Update include.
4787 * mi/mi-interp.c: Update include.
4788 * main.c: Update include.
4789 * linux-nat.c: Update include.
4790 * interps.c: Update include.
4791 * infrun.c: Update include.
4792 * inf-loop.c: Update include.
4793 * event-top.c: Update include.
4794 * event-loop.c: Move to ../gdbsupport/.
4795 * event-loop.h: Move to ../gdbsupport/.
4796 * async-event.h: Update include.
4797 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4798
93b54c8e
TT
47992020-04-13 Tom Tromey <tom@tromey.com>
4800
4801 * tui/tui-win.c: Include async-event.h.
4802 * remote.c: Include async-event.h.
4803 * remote-notif.c: Include async-event.h.
4804 * record-full.c: Include async-event.h.
4805 * record-btrace.c: Include async-event.h.
4806 * infrun.c: Include async-event.h.
4807 * event-top.c: Include async-event.h.
4808 * event-loop.h: Move some declarations to async-event.h.
4809 * event-loop.c: Don't include ser-event.h or top.h. Move some
4810 code to async-event.c.
4811 * async-event.h: New file.
4812 * async-event.c: New file.
4813 * Makefile.in (COMMON_SFILES): Add async-event.c.
4814 (HFILES_NO_SRCDIR): Add async-event.h.
4815
c1cd3163
TT
48162020-04-13 Tom Tromey <tom@tromey.com>
4817
4818 * utils.c (flush_streams): New function.
4819 * event-loop.c (gdb_wait_for_event): Call flush_streams.
4820
29f2bf4f
TT
48212020-04-13 Tom Tromey <tom@tromey.com>
4822
4823 * event-loop.c (handle_file_event): Use warning, not
4824 printf_unfiltered.
4825
98029d02
TT
48262020-04-13 Tom Tromey <tom@tromey.com>
4827
4828 * event-loop.c: Include <chrono>.
4829
06cc9596
TT
48302020-04-13 Tom Tromey <tom@tromey.com>
4831
4832 * gdb_select.h: Move to ../gdbsupport/.
4833 * event-loop.c: Update include path.
4834 * top.c: Update include path.
4835 * ser-base.c: Update include path.
4836 * ui-file.c: Update include path.
4837 * ser-tcp.c: Update include path.
4838 * guile/scm-ports.c: Update include path.
4839 * posix-hdep.c: Update include path.
4840 * ser-unix.c: Update include path.
4841 * gdb_usleep.c: Update include path.
4842 * mingw-hdep.c: Update include path.
4843 * inflow.c: Update include path.
4844 * infrun.c: Update include path.
4845 * event-top.c: Update include path.
4846
8ae8e197
TT
48472020-04-13 Tom Tromey <tom@tromey.com>
4848
4849 * configure: Rebuild.
4850 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
4851
58cf28e8
TT
48522020-04-13 Tom Tromey <tom@tromey.com>
4853
4854 * event-loop.h (start_event_loop): Don't declare.
4855 * event-loop.c (start_event_loop): Move...
4856 * main.c (start_event_loop): ...here. Now static.
4857
b7f999ae
SDJ
48582020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
4859
4860 * MAINTAINERS: Update my email address.
4861
1085dfd4
KR
48622020-04-12 Kamil Rytarowski <n54@gmx.com>
4863
4864 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
4865 IP_ALL.
4866
49d1d1f5
KR
48672020-04-12 Kamil Rytarowski <n54@gmx.com>
4868
4869 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 4870 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 4871
b4848d2a
KR
48722020-04-12 Kamil Rytarowski <n54@gmx.com>
4873
4874 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 4875 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 4876
51c133d5
KR
48772020-04-12 Kamil Rytarowski <n54@gmx.com>
4878
4879 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
4880
54b8cbd0
KR
48812020-04-11 Kamil Rytarowski <n54@gmx.com>
4882
4883 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
4884 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
4885 (nbsd_nat_target::info_proc): New functions.
4886 * nbsd-nat.c (kinfo_get_vmmap): New function.
4887 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
4888 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
4889 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
4890 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
4891 functions.
4892 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
4893 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
4894 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
4895 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
4896 (KINFO_VME_FLAG_GROWS_DOWN): New.
4897
cf83625d
AS
48982020-04-10 Artur Shepilko <nomadbyte@gmail.com>
4899
4900 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
4901 bit shift.
4902
0c4311ab
TT
49032020-04-10 Tom Tromey <tromey@adacore.com>
4904
4905 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
4906
3e65b3e9
TT
49072020-04-10 Tom Tromey <tromey@adacore.com>
4908
4909 * symtab.c (get_symbol_address, get_msymbol_address): Skip
4910 separate debug files.
4911
13302e95
HD
49122020-04-10 Hannes Domani <ssbssa@yahoo.de>
4913
4914 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4915 Move to...
4916 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4917 ... here.
4918 * windows-nat.c (windows_nat_target::get_windows_debug_event):
4919 Check for STATUS_WX86_BREAKPOINT.
4920 (windows_nat_target::wait): Same.
4921
bdfc1e8a
TV
49222020-04-10 Tom de Vries <tdevries@suse.de>
4923
4924 PR cli/25808
4925 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
4926
f4460aec
SM
49272020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
4928
4929 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
4930 (Write After Approval): Remove Tom de Vries.
4931
a25198bb
BE
49322020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4933
4934 revert partially:
4935 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
4936
aac66a4c
SM
4937 * buildsym.c (record_line): Fix undefined behavior and preserve
4938 lines at eof.
a25198bb 4939
206c98a6
KR
49402020-04-09 Kamil Rytarowski <n54@gmx.com>
4941
4942 * auxv.h (svr4_auxv_parse): New.
4943 * auxv.c (default_auxv_parse): Split into default_auxv_parse
4944 and generic_auxv_parse.
4945 (svr4_auxv_parse): Add.
4946 * obsd-tdep.c: Include "auxv.h".
4947 (obsd_auxv_parse): Remove.
4948 (obsd_init_abi): Remove comment.
4949 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
4950 from `obsd_auxv_parse' to `svr4_auxv_parse'.
4951 * nbsd-tdep.c: Include "auxv.h".
4952 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
4953
71fbdbaf
TT
49542020-04-08 Tom Tromey <tromey@adacore.com>
4955
4956 * nat/windows-nat.h (last_wait_event): Don't declare.
4957 (wait_for_debug_event): Update comment.
4958 * nat/windows-nat.c (last_wait_event): Now static.
4959
2c1d95e8
TT
49602020-04-08 Tom Tromey <tromey@adacore.com>
4961
4962 * windows-nat.c (wait_for_debug_event): Move to
4963 nat/windows-nat.c.
4964 * nat/windows-nat.h (wait_for_debug_event): Declare.
4965 * nat/windows-nat.c (wait_for_debug_event): Move from
4966 windows-nat.c. No longer static.
4967
d2977bc4
TT
49682020-04-08 Tom Tromey <tromey@adacore.com>
4969
4970 * windows-nat.c (get_windows_debug_event): Use
4971 fetch_pending_stop.
4972 * nat/windows-nat.h (fetch_pending_stop): Declare.
4973 * nat/windows-nat.c (fetch_pending_stop): New function.
4974
e758e19c
TT
49752020-04-08 Tom Tromey <tromey@adacore.com>
4976
4977 * windows-nat.c (windows_continue): Use matching_pending_stop and
4978 continue_last_debug_event.
4979 * nat/windows-nat.h (matching_pending_stop)
4980 (continue_last_debug_event): Declare.
4981 * nat/windows-nat.c (DEBUG_EVENTS): New define.
4982 (matching_pending_stop, continue_last_debug_event): New
4983 functions.
4984
8d30e395
TT
49852020-04-08 Tom Tromey <tromey@adacore.com>
4986
4987 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
4988 (handle_exception_result): Move to nat/windows-nat.h.
4989 (DEBUG_EXCEPTION_SIMPLE): Remove.
4990 (windows_nat::handle_ms_vc_exception): New function.
4991 (handle_exception): Move to nat/windows-nat.c.
4992 (get_windows_debug_event): Update.
4993 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
4994 nat/windows-nat.c.
4995 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
4996 (handle_exception_result): Move from windows-nat.c.
4997 (handle_exception): Declare.
4998 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
4999 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5000 windows-nat.c.
5001
29de418d
TT
50022020-04-08 Tom Tromey <tromey@adacore.com>
5003
5004 * windows-nat.c (exception_count, event_count): Remove.
5005 (handle_exception, get_windows_debug_event)
5006 (do_initial_windows_stuff): Update.
5007
a816ba18
TT
50082020-04-08 Tom Tromey <tromey@adacore.com>
5009
5010 * windows-nat.c (windows_nat::handle_load_dll)
5011 (windows_nat::handle_unload_dll): Rename. No longer static.
5012 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5013 Declare.
5014
a00caa12
TT
50152020-04-08 Tom Tromey <tromey@adacore.com>
5016
5017 * complaints.h (stop_whining): Declare at top-level.
5018 (complaint): Don't declare stop_whining.
5019
d41b524f
TT
50202020-04-08 Tom Tromey <tromey@adacore.com>
5021
5022 * windows-nat.c (windows_nat::handle_output_debug_string):
5023 Rename. No longer static.
5024 * nat/windows-nat.h (handle_output_debug_string): Declare.
5025
3c76026d
TT
50262020-04-08 Tom Tromey <tromey@adacore.com>
5027
5028 * windows-nat.c (current_process_handle, current_process_id)
5029 (main_thread_id, last_sig, current_event, last_wait_event)
5030 (current_windows_thread, desired_stop_thread_id, pending_stops)
5031 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5032 (display_selectors, fake_create_process)
5033 (get_windows_debug_event): Update.
5034 * nat/windows-nat.h (current_process_handle, current_process_id)
5035 (main_thread_id, last_sig, current_event, last_wait_event)
5036 (current_windows_thread, desired_stop_thread_id, pending_stops)
5037 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5038 * nat/windows-nat.c (current_process_handle, current_process_id)
5039 (main_thread_id, last_sig, current_event, last_wait_event)
5040 (current_windows_thread, desired_stop_thread_id, pending_stops)
5041 (siginfo_er): New globals. Move from windows-nat.c.
5042
9d8679cc
TT
50432020-04-08 Tom Tromey <tromey@adacore.com>
5044
5045 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5046 (handle_load_dll): Update.
5047 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5048
28688adf
TT
50492020-04-08 Tom Tromey <tromey@adacore.com>
5050
5051 * windows-nat.c (enum thread_disposition_type): Move to
5052 nat/windows-nat.h.
5053 (windows_nat::thread_rec): Rename from thread_rec. No longer
5054 static.
5055 (windows_add_thread, windows_nat_target::fetch_registers)
5056 (windows_nat_target::store_registers, handle_exception)
5057 (windows_nat_target::resume, get_windows_debug_event)
5058 (windows_nat_target::get_tib_address)
5059 (windows_nat_target::thread_name)
5060 (windows_nat_target::thread_alive): Update.
5061 * nat/windows-nat.h (enum thread_disposition_type): Move from
5062 windows-nat.c.
5063 (thread_rec): Declare.
5064
4834dad0
TT
50652020-04-08 Tom Tromey <tromey@adacore.com>
5066
5067 * windows-nat.c: Add "using namespace".
5068 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5069 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5070
65bafd5b
TT
50712020-04-08 Tom Tromey <tromey@adacore.com>
5072
5073 * nat/windows-nat.h (struct windows_thread_info): Declare
5074 destructor.
5075 * nat/windows-nat.c (~windows_thread_info): New.
5076
0a4afda3
TT
50772020-04-08 Tom Tromey <tromey@adacore.com>
5078
5079 PR gdb/22992
5080 * windows-nat.c (current_event): Update comment.
5081 (last_wait_event, desired_stop_thread_id): New globals.
5082 (struct pending_stop): New.
5083 (pending_stops): New global.
5084 (windows_nat_target) <stopped_by_sw_breakpoint>
5085 <supports_stopped_by_sw_breakpoint>: New methods.
5086 (windows_fetch_one_register): Add assertions. Adjust PC.
5087 (windows_continue): Handle pending stops. Suspend other threads
5088 when stepping. Use last_wait_event
5089 (wait_for_debug_event): New function.
5090 (get_windows_debug_event): Use wait_for_debug_event. Handle
5091 pending stops. Queue spurious stops.
5092 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5093 (windows_nat_target::kill): Use wait_for_debug_event.
5094 * nat/windows-nat.h (struct windows_thread_info)
5095 <stopped_at_software_breakpoint>: New field.
5096 * nat/windows-nat.c (windows_thread_info::resume): Clear
5097 stopped_at_software_breakpoint.
5098
8e61ebec
TT
50992020-04-08 Tom Tromey <tromey@adacore.com>
5100
5101 * windows-nat.c (enum thread_disposition_type): New.
5102 (thread_rec): Replace "get_context" parameter with "disposition";
5103 change type.
5104 (windows_add_thread, windows_nat_target::fetch_registers)
5105 (windows_nat_target::store_registers, handle_exception)
5106 (windows_nat_target::resume, get_windows_debug_event)
5107 (windows_nat_target::get_tib_address)
5108 (windows_nat_target::thread_name)
5109 (windows_nat_target::thread_alive): Update.
5110
98a03287
TT
51112020-04-08 Tom Tromey <tromey@adacore.com>
5112
5113 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5114 (windows_continue): Use windows_continue::resume.
5115 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5116 resume>: Declare new methods.
5117 * nat/windows-nat.c: New file.
5118 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5119
7c7411bc
TT
51202020-04-08 Tom Tromey <tromey@adacore.com>
5121
5122 * windows-nat.c (windows_add_thread, windows_delete_thread)
5123 (windows_nat_target::fetch_registers)
5124 (windows_nat_target::store_registers, fake_create_process)
5125 (windows_nat_target::resume, windows_nat_target::resume)
5126 (get_windows_debug_event, windows_nat_target::wait)
5127 (windows_nat_target::pid_to_str)
5128 (windows_nat_target::get_tib_address)
5129 (windows_nat_target::get_ada_task_ptid)
5130 (windows_nat_target::thread_name)
5131 (windows_nat_target::thread_alive): Use lwp, not tid.
5132
2950fdf7
TT
51332020-04-08 Tom Tromey <tromey@adacore.com>
5134
5135 * windows-nat.c (handle_exception)
5136 (windows_nat_target::thread_name): Update.
5137 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5138 <name>: Now unique_xmalloc_ptr.
5139
62fe396b
TT
51402020-04-08 Tom Tromey <tromey@adacore.com>
5141
5142 * windows-nat.c (thread_rec)
5143 (windows_nat_target::fetch_registers): Update.
5144 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5145 Update comment.
5146 <debug_registers_changed, reload_context>: Now bool.
5147
e9534bd2
TT
51482020-04-08 Tom Tromey <tromey@adacore.com>
5149
5150 * windows-nat.c (windows_add_thread): Use new.
5151 (windows_init_thread_list, windows_delete_thread): Use delete.
5152 (get_windows_debug_event): Update.
5153 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5154 destructor, and initializers.
5155
ae1f8880
TT
51562020-04-08 Tom Tromey <tromey@adacore.com>
5157
5158 * windows-nat.c (struct windows_thread_info): Remove.
5159 * nat/windows-nat.h: New file.
5160
55a1e039
TT
51612020-04-08 Tom Tromey <tromey@adacore.com>
5162
5163 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5164 (thread_rec, windows_add_thread, windows_delete_thread)
5165 (windows_continue): Update.
5166
93366324
TT
51672020-04-08 Tom Tromey <tromey@adacore.com>
5168
5169 * windows-nat.c (struct windows_thread_info): Remove typedef.
5170 (thread_head): Remove.
5171 (thread_list): New global.
5172 (thread_rec, windows_add_thread, windows_init_thread_list)
5173 (windows_delete_thread, windows_continue): Update.
5174
0f2265e2
SM
51752020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5176
5177 * windows-tdep.h (windows_init_abi): Add comment.
5178 (cygwin_init_abi): New declaration.
5179 * windows-tdep.c: Split signal enumeration in two, one for
5180 Windows and one for Cygwin.
5181 (windows_gdb_signal_to_target): Only deal with signal of the
5182 Windows OS ABI.
5183 (cygwin_gdb_signal_to_target): New function.
5184 (windows_init_abi): Rename to windows_init_abi_common, don't set
5185 gdb_signal_to_target gdbarch method. Add new new function with
5186 this name.
5187 (cygwin_init_abi): New function.
5188 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5189 comment. Don't call windows_init_abi.
5190 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5191 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5192 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5193 i386_windows_init_abi_common, don't call windows_init_abi. Add
5194 a new function of this name.
5195 (i386_cygwin_init_abi): New function.
5196 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5197 OS ABI Cygwin.
5198
3810f182
SM
51992020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5200
5201 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5202 parameter.c.
5203 (dwarf2_read_gdb_index): Update.
5204
063f8e80
KR
52052020-04-07 Kamil Rytarowski <n54@gmx.com>
5206
5207 * nbsd-tdep.c: Include "objfiles.h".
5208 (nbsd_skip_solib_resolver): New.
5209 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5210
85a9510c 52112020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5212
5213 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5214 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5215 with DW_LLE_base_addressx are being emitted in DWARFv5.
5216 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5217 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5218 unsigned integer.
5219
9fc3eaae 52202020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5221
5222 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5223 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5224 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5225 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5226 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5227 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5228 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5229
5230
41144253 52312020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5232
5233 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5234 (read_loclist_index): New function definition.
5235 (lookup_loclist_base): New function definition.
5236 (read_loclist_header): New function definition.
5237 (dwarf2_cu): Add loclist_base and loclist_header field.
5238 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5239 (read_full_die_1): Read the value of DW_AT_loclists_base.
5240 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5241 (read_attribute_value): Handle DW_FORM_loclistx.
5242 (skip_one_die): Handle DW_FORM_loclistx.
5243 (loclist_header): New structure declaration.
5244 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5245
9f4e76a4
SM
52462020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5247
5248 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5249 constructor. Remove `addr` parameter from other constructor and
5250 add `per_cu` parameter.
5251 * dwarf2/read.c (create_partial_symtab): Update.
5252
25c11aca
TV
52532020-04-07 Tom de Vries <tdevries@suse.de>
5254
5255 PR symtab/25796
5256 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5257 (partial_die_info::fixup): Inherit has_const_value.
5258
5707e24b
TV
52592020-04-07 Tom de Vries <tdevries@suse.de>
5260
5261 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5262 symbols without address.
5263
05f00e22
KR
52642020-04-06 Kamil Rytarowski <n54@gmx.com>
5265
5266 * nbsd-nat.h (struct thread_info): Add forward declaration.
5267 (nbsd_nat_target::thread_alive): Add.
5268 (nbsd_nat_target::thread_name): Likewise.
5269 (nbsd_nat_target::update_thread_list): Likewise.
5270 (update_thread_list::post_attach): Likewise.
5271 (post_attach::pid_to_str): Likewise.
5272 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5273 (nbsd_thread_lister): Add.
5274 (nbsd_nat_target::thread_alive): Likewise.
5275 (nbsd_nat_target::thread_name): Likewise.
5276 (nbsd_add_threads): Likewise.
5277 (update_thread_list::post_attach): Likewise.
5278 (nbsd_nat_target::update_thread_list): Likewise.
5279 (post_attach::pid_to_str): Likewise.
5280
6ee448cc
TT
52812020-04-06 Tom Tromey <tromey@adacore.com>
5282
5283 * ada-valprint.c (print_variant_part): Extract the variant field.
5284 (print_field_values): Use the field as the outer value when
5285 recursing.
5286
dea34e8c
TT
52872020-04-06 Tom Tromey <tromey@adacore.com>
5288
5289 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5290 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5291 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5292 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5293 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5294
93689ce9
TT
52952020-04-06 Tom Tromey <tromey@adacore.com>
5296
5297 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5298 TYPE_CODE_ERROR.
5299
79743962
KR
53002020-04-06 Kamil Rytarowski <n54@gmx.com>
5301
5302 * nbsd-tdep.c: Include "gdbarch.h".
5303 Define enum with NetBSD signal numbers.
5304 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5305 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5306 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5307 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5308 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5309 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5310 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5311 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5312 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5313 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5314 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5315 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5316
9e7c9a03
HD
53172020-04-03 Hannes Domani <ssbssa@yahoo.de>
5318
5319 PR gdb/25325
5320 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5321
d9e49b61
TT
53222020-04-03 Tom Tromey <tromey@adacore.com>
5323
5324 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5325 Read constant block.
5326
e0fc5c3f
SM
53272020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5328
5329 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5330 (gdb_bfd_get_full_section_contents): New declaration.
5331 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5332 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5333 gdb_bfd_get_full_section_contents.
5334
e2ff18a0
SM
53352020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5336
5337 * exec.c (build_section_table): Replace internal_error with
5338 gdb_assert.
5339 (section_table_xfer_memory_partial): Likewise.
5340 * mdebugread.c (parse_partial_symbols): Likewise.
5341 * psymtab.c (lookup_partial_symbol): Likewise.
5342 * utils.c (wrap_here): Likewise.
5343
0830d301
TT
53442020-04-02 Tom Tromey <tromey@adacore.com>
5345
5346 * f-lang.c (build_fortran_types): Use arch_type to initialize
5347 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5348
e7da7f8f
TT
53492020-04-02 Tom Tromey <tromey@adacore.com>
5350
5351 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5352 of attributes.
5353
c90d28ac
AB
53542020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5355 Bernd Edlinger <bernd.edlinger@hotmail.de>
5356 Tom Tromey <tromey@adacore.com>
5357
5358 * buildsym.c (buildsym_compunit::record_line): Remove
5359 deduplication code.
5360
1aa98955
TV
53612020-04-02 Tom de Vries <tdevries@suse.de>
5362
5363 PR ada/24671
5364 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5365
d3214198
TV
53662020-04-02 Tom de Vries <tdevries@suse.de>
5367
5368 * dwarf2/read.c (dwarf2_gdb_index_functions,
5369 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5370 NULL.
5371 * psymtab.c (psym_lookup_global_symbol_language): New function.
5372 (psym_functions): Init psym_lookup_global_symbol_language with
5373 psym_lookup_global_symbol_language.
5374 * symfile-debug.c (debug_sym_quick_functions): Init
5375 lookup_global_symbol_language with NULL.
5376 * symfile.c (set_initial_language): Remove fixme comment.
5377 * symfile.h (struct quick_symbol_functions): Add
5378 lookup_global_symbol_language.
5379 * symtab.c (find_quick_global_symbol_language): New function.
5380 (find_main_name): Use find_quick_global_symbol_language.
5381
2836752f
SM
53822020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5383
5384 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5385
64dc2d4b
BE
53862020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5387
5388 * buildsym.c (record_line): Fix undefined behavior and preserve
5389 lines at eof.
5390
bbe3dc41
BE
53912020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5392
5393 * buildsym.c (record_line): Fix the resizing condition.
5394
6b4a335b
TT
53952020-04-01 Tom Tromey <tom@tromey.com>
5396
5397 * value.h (value_literal_complex): Add comment.
5398 * valops.c (value_literal_complex): Refer to value.h.
5399
3638a098
TT
54002020-04-01 Tom Tromey <tom@tromey.com>
5401
5402 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5403 (scalar_type): New rule, from typebase.
5404 (typebase): Use scalar_type. Recognize complex types.
5405 (field_name): Handle FLOAT_KEYWORD.
5406 (ident_tokens): Add _Complex and __complex__.
5407
c34e8714
TT
54082020-04-01 Tom Tromey <tom@tromey.com>
5409
5410 PR exp/25299:
5411 * valarith.c (promotion_type, complex_binop): New functions.
5412 (scalar_binop): Handle complex numbers. Use promotion_type.
5413 (value_pos, value_neg, value_complement): Handle complex numbers.
5414
fa649bb7
TT
54152020-04-01 Tom Tromey <tom@tromey.com>
5416
5417 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5418 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5419 (parse_number): Handle complex numbers.
5420
981c08ce
TT
54212020-04-01 Tom Tromey <tom@tromey.com>
5422
5423 * c-valprint.c (c_decorations): Change complex suffix to "i".
5424
4c99290d
TT
54252020-04-01 Tom Tromey <tom@tromey.com>
5426
5427 * valprint.c (generic_value_print_complex): Use accessors.
5428 * value.h (value_real_part, value_imaginary_part): Declare.
5429 * valops.c (value_real_part, value_imaginary_part): New
5430 functions.
5431 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5432
5b930b45
TT
54332020-04-01 Tom Tromey <tom@tromey.com>
5434
5435 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5436 (read_range_type): Update.
5437 * mdebugread.c (basic_type): Update.
5438 * go-lang.c (build_go_types): Use init_complex_type.
5439 * gdbtypes.h (struct main_type) <complex_type>: New member.
5440 (init_complex_type): Update.
5441 (arch_complex_type): Don't declare.
5442 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5443 Make name if none given. Use alloc_type_copy. Look for cached
5444 complex type.
5445 (arch_complex_type): Remove.
5446 (gdbtypes_post_init): Use init_complex_type.
5447 * f-lang.c (build_fortran_types): Use init_complex_type.
5448 * dwarf2/read.c (read_base_type): Update.
5449 * d-lang.c (build_d_types): Use init_complex_type.
5450 * ctfread.c (read_base_type): Update.
5451
53cccef1
TBA
54522020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5453
5454 * infrun.c (stop_all_threads): Update assertion, plus when
5455 stopping threads, take into account that we might be trying
5456 to stop an all-stop target.
5457 (stop_waiting): Call 'stop_all_threads' if there exists a
5458 non-stop target.
5459
a0714d30
TBA
54602020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5461
5462 * target.h (exists_non_stop_target): New function declaration.
5463 * target.c (exists_non_stop_target): New function.
5464
60e22c1e
HD
54652020-04-01 Hannes Domani <ssbssa@yahoo.de>
5466
5467 PR gdb/24789
5468 * eval.c (is_integral_or_integral_reference): New function.
5469 (evaluate_subexp_standard): Allow integer references in
5470 pointer arithmetic.
5471
e139a727
TBA
54722020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5473
5474 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5475 check for no ptid in the stop reply when the target is non-stop.
5476
e0802d59
TT
54772020-04-01 Tom Tromey <tromey@adacore.com>
5478
5479 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5480 "name" parameter to rvalue reference. Initialize m_name_holder.
5481 <lookup_name_info>: New overloads.
5482 <name>: Return gdb::string_view.
5483 <c_str>: New method.
5484 <make_ignore_params>: Update.
5485 <search_name_hash>: Update.
5486 <language_lookup_name>: Return const char *.
5487 <m_name>: Change type.
5488 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5489 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5490 (lookup_name_info::match_any): Update.
5491 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5492 Update.
5493 * minsyms.c (linkage_name_str): Update.
5494 * language.c (default_symbol_name_matcher): Update.
5495 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5496 Update.
5497 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5498 (ada_lookup_name_info::ada_lookup_name_info): Update.
5499 (literal_symbol_name_matcher): Update.
5500
8c072cb6
TT
55012020-04-01 Tom Tromey <tromey@adacore.com>
5502
5503 * psymtab.c (psymtab_search_name): Remove function.
5504 (psym_lookup_symbol): Create search name and lookup name here.
5505 (lookup_partial_symbol): Remove "name" parameter; add
5506 lookup_name.
5507 (psym_expand_symtabs_for_function): Update.
5508
6f29a534
TT
55092020-03-31 Joel Jones <joelkevinjones@gmail.com>
5510
5511 PR tui/25597:
5512 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5513
af62665e
TT
55142020-03-31 Tom Tromey <tromey@adacore.com>
5515
5516 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5517 memcpy.
5518
d1a89da5
NC
55192020-03-30 Nelson Chu <nelson.chu@sifive.com>
5520
5521 * features/riscv/32bit-csr.xml: Regenerated.
5522 * features/riscv/64bit-csr.xml: Regenerated.
5523
d8af9068
TT
55242020-03-30 Tom Tromey <tromey@adacore.com>
5525
5526 * ada-valprint.c (print_variant_part): Update.
5527 * ada-lang.h (ada_which_variant_applies): Update.
5528 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5529 outer_valaddr parameters; replace with "outer" value parameter.
5530 (to_fixed_variant_branch_type): Update.
5531
227c0bf4
PFC
55322020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5533
5534 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5535 <list>. Remove inclusion of observable.h.
5536 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5537 (struct arch_lwp_info): New struct.
5538 (class ppc_linux_dreg_interface): New class.
5539 (struct ppc_linux_process_info): New struct.
5540 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5541 <low_new_clone, low_forget_process, low_prepare_to_resume>
5542 <copy_thread_dreg_state, mark_thread_stale>
5543 <mark_debug_registers_changed, register_hw_breakpoint>
5544 <clear_hw_breakpoint, register_wp, clear_wp>
5545 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5546 <num_memory_accesses, get_trigger_type>
5547 <create_watchpoint_request, hwdebug_point_cmp>
5548 <init_arch_lwp_info, get_arch_lwp_info>
5549 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5550 methods.
5551 <struct ptid_hash>: New inner struct.
5552 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5553 members.
5554 (saved_dabr_value, hwdebug_info, max_slots_number)
5555 (struct hw_break_tuple, struct thread_points, ppc_threads)
5556 (have_ptrace_hwdebug_interface)
5557 (hwdebug_find_thread_points_by_tid)
5558 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5559 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5560 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5561 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5562 use m_dreg_interface.
5563 (hwdebug_point_cmp): Change to...
5564 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5565 reference arguments instead of pointers.
5566 (ppc_linux_nat_target::ranged_break_num_registers): Use
5567 m_dreg_interface.
5568 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5569 m_dreg_interface. Call register_hw_breakpoint.
5570 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5571 m_dreg_interface. Call clear_hw_breakpoint.
5572 (get_trigger_type): Change to...
5573 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5574 comment.
5575 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5576 use m_dreg_interface. Call register_hw_breakpoint.
5577 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5578 use m_dreg_interface. Call clear_hw_breakpoint.
5579 (can_use_watchpoint_cond_accel): Change to...
5580 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5581 method. Update comment, use m_dreg_interface and
5582 m_process_info.
5583 (calculate_dvc): Change to...
5584 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5585 m_dreg_interface.
5586 (num_memory_accesses): Change to...
5587 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5588 (check_condition): Change to...
5589 (ppc_linux_nat_target::check_condition): ...this method.
5590 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5591 comment, use m_dreg_interface.
5592 (create_watchpoint_request): Change to...
5593 (ppc_linux_nat_target::create_watchpoint_request): ...this
5594 method. Use m_dreg_interface.
5595 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5596 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5597 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5598 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5599 (ppc_linux_nat_target::low_forget_process)
5600 (ppc_linux_nat_target::low_new_fork)
5601 (ppc_linux_nat_target::low_new_clone)
5602 (ppc_linux_nat_target::low_delete_thread)
5603 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5604 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5605 only call mark_thread_stale.
5606 (ppc_linux_thread_exit): Remove.
5607 (ppc_linux_nat_target::stopped_data_address): Change to...
5608 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5609 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5610 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5611 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5612 comment. Call low_stopped_data_address.
5613 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5614 m_dreg_interface.
5615 (ppc_linux_nat_target::masked_watch_num_registers): Use
5616 m_dreg_interface.
5617 (ppc_linux_nat_target::copy_thread_dreg_state)
5618 (ppc_linux_nat_target::mark_thread_stale)
5619 (ppc_linux_nat_target::mark_debug_registers_changed)
5620 (ppc_linux_nat_target::register_hw_breakpoint)
5621 (ppc_linux_nat_target::clear_hw_breakpoint)
5622 (ppc_linux_nat_target::register_wp)
5623 (ppc_linux_nat_target::clear_wp)
5624 (ppc_linux_nat_target::init_arch_lwp_info)
5625 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5626 (_initialize_ppc_linux_nat): Remove observer callback.
5627
4db10d8f
PFC
56282020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5629
5630 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5631 (ppc_linux_nat_target::auxv_parse)
5632 (ppc_linux_nat_target::read_description)
5633 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5634 Move up.
5635
1310c1b0
PFC
56362020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5637
5638 * linux-nat.h (low_new_clone): New method.
5639 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5640
69b037c3
SM
56412020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5642
5643 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5644 (dbx_expand_psymtab): ... this.
5645 (start_psymtab): Update.
5646 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5647 (mdebug_expand_psymtab): ... this.
5648 (parse_partial_symbols): Update.
5649 (new_psymtab): Update.
5650 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5651 (xcoff_expand_psymtab): ... this.
5652 (xcoff_start_psymtab): Update.
5653
48993951
SM
56542020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5655
5656 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5657 <expand_dependencies>: ... this.
5658 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5659 (partial_symtab::expand_dependencies): ... this.
5660 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5661 Update.
5662 (dwarf2_psymtab::expand_psymtab): Update.
5663 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5664 * mdebugread.c (psymtab_to_symtab_1): Update.
5665 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5666
3ad83046
SM
56672020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5668
5669 * psympriv.h (discard_psymtab): Remove.
5670 * dbxread.c (dbx_end_psymtab): Update.
5671 * xcoffread.c (xcoff_end_psymtab): Update.
5672
4d1b9ab6
TT
56732020-03-28 Tom Tromey <tom@tromey.com>
5674
5675 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5676 comment.
5677
f1749218
TT
56782020-03-28 Tom Tromey <tom@tromey.com>
5679
5680 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5681
ebea7626
HD
56822020-03-27 Hannes Domani <ssbssa@yahoo.de>
5683
5684 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5685
a879b4d5
JB
56862020-03-26 John Baldwin <jhb@FreeBSD.org>
5687
5688 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5689
0826b30a
TT
56902020-03-26 Tom Tromey <tom@tromey.com>
5691
5692 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5693 (mark_common_block_symbol_computed, read_tag_string_type)
5694 (attr_to_dynamic_prop, read_subrange_type): Update.
5695 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5696 to be methods on struct attribute.
5697 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5698 (read_call_site_scope, partial_die_info::read)
5699 (partial_die_info::read, lookup_die_type, follow_die_ref):
5700 Update.
5701 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5702 from dwarf2_get_ref_die_offset.
5703 (attribute::constant_value): New method, from
5704 dwarf2_get_attr_constant_value.
5705 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5706 Declare method.
5707 <constant_value>: New method.
5708
2b2558bf
TT
57092020-03-26 Tom Tromey <tom@tromey.com>
5710
5711 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5712 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5713 (dwarf_type_encoding_name): Move to stringify.c.
5714 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5715 * dwarf2/stringify.c: New file.
5716 * dwarf2/stringify.h: New file.
5717
eeb64781
TT
57182020-03-26 Tom Tromey <tom@tromey.com>
5719
5720 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5721 Rewrite.
5722
a39fdb41
TT
57232020-03-26 Tom Tromey <tom@tromey.com>
5724
5725 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5726 methods.
5727 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5728 (lookup_ranges_base): Likewise.
5729 (read_cutu_die_from_dwo, read_full_die_1): Update.
5730
436c571c
TT
57312020-03-26 Tom Tromey <tom@tromey.com>
5732
5733 * dwarf2/read.c (read_import_statement, read_file_scope)
5734 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5735 (read_lexical_block_scope, read_call_site_scope)
5736 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5737 (handle_struct_member_die, process_structure_scope)
5738 (update_enumeration_type_from_children)
5739 (process_enumeration_scope, read_array_type, read_common_block)
5740 (read_namespace, read_module, read_subroutine_type): Update.
5741 (sibling_die): Remove.
5742
052c8bb8
TT
57432020-03-26 Tom Tromey <tom@tromey.com>
5744
5745 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5746 (build_type_psymtabs_reader, read_structure_type)
5747 (read_enumeration_type, read_full_die_1): Update.
5748 (dwarf2_attr_no_follow): Move to die.h.
5749 * dwarf2/die.h (struct die_info) <attr>: New method.
5750
2b24b6e4
TT
57512020-03-26 Tom Tromey <tom@tromey.com>
5752
5753 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5754 <base_address>: Now an optional.
5755 (dwarf2_find_base_address, dwarf2_rnglists_process)
5756 (dwarf2_ranges_process, fill_in_loclist_baton)
5757 (dwarf2_symbol_mark_computed): Update.
5758
c2d50fd0
TT
57592020-03-26 Tom Tromey <tom@tromey.com>
5760
5761 * dwarf2/read.c (struct die_info): Move to die.h.
5762 * dwarf2/die.h: New file.
5763
0df7ad3a
TT
57642020-03-26 Tom Tromey <tom@tromey.com>
5765
5766 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5767 * dwarf2/read.c
5768 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5769 Move to line-header.c.
5770 (read_checked_initial_length_and_offset, read_formatted_entries):
5771 Likewise.
5772 (dwarf_decode_line_header): Split into two.
5773 * dwarf2/line-header.c
5774 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5775 Move from read.c.
5776 (read_checked_initial_length_and_offset, read_formatted_entries):
5777 Likewise.
5778 (dwarf_decode_line_header): New function, split from read.c.
5779
86c0bb4c
TT
57802020-03-26 Tom Tromey <tom@tromey.com>
5781
5782 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5783 Declare method.
5784 * dwarf2/read.c (read_attribute_value): Update.
5785 (dwarf2_per_objfile::read_line_string): Rename from
5786 read_indirect_line_string.
5787 (read_formatted_entries): Update.
5788
2ef46c2f
TT
57892020-03-26 Tom Tromey <tom@tromey.com>
5790
5791 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5792 variable.
5793
4f9c1eda
TT
57942020-03-26 Tom Tromey <tom@tromey.com>
5795
5796 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5797 const.
5798 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5799 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5800 parameter const.
5801
5a0e026f
TT
58022020-03-26 Tom Tromey <tom@tromey.com>
5803
5804 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
5805 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
5806 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
5807 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
5808
8844c11b
TT
58092020-03-26 Tom Tromey <tom@tromey.com>
5810
5811 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
5812 file_names_size, file_full_name, file_file_name>: Use const.
5813 <file_name_at, file_names>: Add const overload.
5814 * dwarf2/line-header.c (line_header::file_file_name)
5815 (line_header::file_full_name): Update.
5816
c90ec28a
TT
58172020-03-26 Tom Tromey <tom@tromey.com>
5818
5819 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
5820 (macro_start_file, consume_improper_spaces)
5821 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
5822 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
5823 (dwarf_decode_macros): Move to macro.c.
5824 * dwarf2/macro.c: New file.
5825 * dwarf2/macro.h: New file.
5826 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
5827
4f44ae6c
TT
58282020-03-26 Tom Tromey <tom@tromey.com>
5829
5830 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
5831 method.
5832 * dwarf2/section.c: New method. From
5833 read_indirect_string_at_offset_from.
5834 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
5835 (read_indirect_string_at_offset_from): Move to section.c.
5836 (read_indirect_string_at_offset): Rewrite.
5837 (read_indirect_line_string_at_offset): Remove.
5838 (read_indirect_string, read_indirect_line_string)
5839 (dwarf_decode_macro_bytes): Update.
5840
a0194fa8
TT
58412020-03-26 Tom Tromey <tom@tromey.com>
5842
5843 * dwarf2/section.h (struct dwarf2_section_info)
5844 <overload_complaint>: Declare.
5845 (dwarf2_section_buffer_overflow_complaint): Don't declare.
5846 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
5847 Rename from dwarf2_section_buffer_overflow_complaint.
5848 * dwarf2/read.c (skip_one_die, partial_die_info::read)
5849 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
5850
3d27bbdb
TT
58512020-03-26 Tom Tromey <tom@tromey.com>
5852
5853 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
5854 Declare.
5855 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
5856 Move from read.c.
5857 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
5858 to section.c.
5859
9eac9650
TT
58602020-03-26 Tom Tromey <tom@tromey.com>
5861
5862 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
5863
bf80d710
TT
58642020-03-26 Tom Tromey <tom@tromey.com>
5865
5866 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
5867 "builder".
5868 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
5869 parameter.
5870 (dwarf_decode_macros): Update.
5871
0314b390
TT
58722020-03-26 Tom Tromey <tom@tromey.com>
5873
5874 * dwarf2/read.c (read_attribute_value): Update.
5875 (read_indirect_string_from_dwz): Move to dwz.c; change into
5876 method.
5877 (dwarf_decode_macro_bytes): Update.
5878 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
5879 * dwarf2/dwz.c: New file.
5880 * Makefile.in (COMMON_SFILES): Add dwz.c.
5881
9fda78b6
TT
58822020-03-26 Tom Tromey <tom@tromey.com>
5883
5884 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
5885 * dwarf2/read.c: Add include.
5886 * dwarf2/index-write.c: Add include.
5887 * dwarf2/index-cache.c: Add include.
5888 * dwarf2/dwz.h: New file.
5889
33aa3c10
TT
58902020-03-25 Tom Tromey <tom@tromey.com>
5891
5892 * compile/compile-object-load.c (get_out_value_type): Mention
5893 correct symbol name in error message.
5894
d503b685
HD
58952020-03-25 Hannes Domani <ssbssa@yahoo.de>
5896
5897 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5898
7b1eff95
TV
58992020-03-25 Tom de Vries <tdevries@suse.de>
5900
5901 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
5902 * symmisc.c (dump_symtab_1): Print user and includes fields.
5903 (maintenance_info_symtabs): Same.
5904
dd895392
AB
59052020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
5906
5907 PR gdb/25534
5908 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
5909 (riscv_regcache_cooked_write): New function.
5910 (riscv_push_dummy_call): Use new function.
5911 (riscv_return_value): Likewise.
5912
5ab2fbf1
SM
59132020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
5914
5915 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
5916 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
5917 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
5918 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
5919 * infrun.c (follow_fork): Likewise.
5920 (follow_fork_inferior): Likewise.
5921 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
5922 * linux-nat.h (class linux_nat_target): Likewise.
5923 * remote.c (class remote_target) <follow_fork>: Likewise.
5924 (remote_target::follow_fork): Likewise.
5925 * target-delegates.c: Re-generate.
5926 * target.c (default_follow_fork): Likewise.
5927 (target_follow_fork): Likewise.
5928 * target.h (struct target_ops) <follow_fork>: Likewise.
5929 (target_follow_fork): Likewise.
5930
a64fafb5
TV
59312020-03-24 Tom de Vries <tdevries@suse.de>
5932
5933 * psymtab.c (maintenance_info_psymtabs): Print user field.
5934
fe26d3a3
TT
59352020-03-20 Tom Tromey <tromey@adacore.com>
5936
5937 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
5938 const.
5939 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
5940 const.
5941
c884cc46
SM
59422020-03-20 Simon Marchi <simon.marchi@efficios.com>
5943
5944 * ptrace.m4: Don't check for ptrace declaration.
5945 * config.in: Re-generate.
5946 * configure: Re-generate.
5947 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
5948 not defined.
5949
1ff700c2
KR
59502020-03-20 Kamil Rytarowski <n54@gmx.com>
5951
5952 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
5953 `PTRACE_TYPE_RET'.
5954 * i386-bsd-nat.c (gdb_ptrace): Likewise.
5955 * sparc-nat.c (gdb_ptrace): Likewise.
5956 * x86-bsd-nat.c (gdb_ptrace): Likewise.
5957
f7d4f0b1
TT
59582020-03-20 Tom Tromey <tromey@adacore.com>
5959
5960 * c-exp.y (lex_one_token): Fix assert.
5961
f67210ff
TT
59622020-03-20 Tom Tromey <tromey@adacore.com>
5963
5964 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
5965 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
5966 strncpy call.
5967
1773be9e
TT
59682020-03-20 Tom Tromey <tromey@adacore.com>
5969
5970 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
5971
70304be9
TT
59722020-03-20 Tom Tromey <tromey@adacore.com>
5973
5974 * ada-valprint.c (print_variant_part): Remove parameters; switch
5975 to value-based API.
5976 (print_field_values): Likewise.
5977 (ada_val_print_struct_union): Likewise.
5978 (ada_value_print_1): Update.
5979
9faa006d
KR
59802020-03-20 Kamil Rytarowski <n54@gmx.com>
5981
5982 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
5983 nbsd_nat_target instead of inf_ptrace_target.
5984 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
5985 nbsd_nat_target.
5986
4a90f062
KR
59872020-03-20 Kamil Rytarowski <n54@gmx.com>
5988
5989 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
5990 it to the ptrace call.
5991 * (store_registers): Likewise.
5992
59932020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
5994
5995 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
5996 it to the ptrace call.
5997 * (store_registers): Likewise.
5998
2d07da27
LM
59992020-03-19 Luis Machado <luis.machado@linaro.org>
6000
6001 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6002 valid, fetch vg value from ptrace.
6003
f09db380
KR
60042020-03-19 Kamil Rytarowski <n54@gmx.com>
6005 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6006 * inf-ptrace.c: Likewise.
6007 * (gdb_ptrace): Add.
6008 * (inf_ptrace_target::resume): Update.
6009 * (inf_ptrace_target::xfer_partial): Likewise.
6010 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6011 * (inf_ptrace_peek_poke): Update.
6012
fcc7376e
KR
60132020-03-19 Kamil Rytarowski <n54@gmx.com>
6014
6015 * x86-bsd-nat.c (gdb_ptrace): New.
6016 * (x86bsd_dr_set): Add new argument `ptid'.
6017 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6018 x86bsd_dr_set_addr): Update.
6019
cada5fc9
AB
60202020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6021
6022 * remote.c (remote_target::process_stop_reply): Handle events for
6023 all threads differently.
6024
19a2740f
AB
60252020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6026
6027 * completer.c (completion_tracker::remove_completion): Define new
6028 function.
6029 * completer.h (completion_tracker::remove_completion): Declare new
6030 function.
6031 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6032 when adding a C++ function symbol.
6033
724fd9ba
AB
60342020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6035
6036 * completer.c (completion_tracker::completion_hash_entry): Define
6037 new class.
6038 (advance_to_filename_complete_word_point): Call
6039 recompute_lowest_common_denominator.
6040 (completion_tracker::completion_tracker): Call discard_completions
6041 to setup the hash table.
6042 (completion_tracker::discard_completions): Allow for being called
6043 from the constructor, pass new equal function, and element deleter
6044 when constructing the hash table. Initialise new class member
6045 variables.
6046 (completion_tracker::maybe_add_completion): Remove use of
6047 m_entries_vec, and store more information into m_entries_hash.
6048 (completion_tracker::recompute_lcd_visitor): New function, most
6049 content taken from...
6050 (completion_tracker::recompute_lowest_common_denominator):
6051 ...here, this now just visits each item in the hash calling the
6052 above visitor.
6053 (completion_tracker::build_completion_result): Remove use of
6054 m_entries_vec, call recompute_lowest_common_denominator.
6055 * completer.h (completion_tracker::have_completions): Remove use
6056 of m_entries_vec.
6057 (completion_tracker::completion_hash_entry): Declare new class.
6058 (completion_tracker::recompute_lowest_common_denominator): Change
6059 function signature.
6060 (completion_tracker::recompute_lcd_visitor): Declare new function.
6061 (completion_tracker::m_entries_vec): Delete.
6062 (completion_tracker::m_entries_hash): Initialize to NULL.
6063 (completion_tracker::m_lowest_common_denominator_valid): New
6064 member variable.
6065 (completion_tracker::m_lowest_common_denominator_max_length): New
6066 member variable.
6067
5a82b8a1
KR
60682020-03-17 Kamil Rytarowski <n54@gmx.com>
6069
6070 * regformats/regdef.h: Put reg in gdb namespace.
6071
fb516a69
KR
60722020-03-17 Kamil Rytarowski <n54@gmx.com>
6073
6074 * i386-bsd-nat.c (gdb_ptrace): New.
6075 * (i386bsd_fetch_inferior_registers,
6076 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6077 * (i386bsd_fetch_inferior_registers,
6078 i386bsd_store_inferior_registers) Use gdb_ptrace.
6079
1c0aa1fb
KR
60802020-03-17 Kamil Rytarowski <n54@gmx.com>
6081
6082 * amd64-bsd-nat.c (gdb_ptrace): New.
6083 * (amd64bsd_fetch_inferior_registers,
6084 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6085 * (amd64bsd_fetch_inferior_registers,
6086 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6087
5ccd2fb7
KR
60882020-03-17 Kamil Rytarowski <n54@gmx.com>
6089
6090 * user-regs.c (user_reg::read): Rename to...
6091 (user_reg::xread): ...this.
6092 * (append_user_reg): Rename argument `read' to `xread'.
6093 * (user_reg_add_builtin): Likewise.
6094 * (user_reg_add): Likewise.
6095 * (value_of_user_reg): Likewise.
6096
2108a63a
KR
60972020-03-17 Kamil Rytarowski <n54@gmx.com>
6098
6099 * sparc-nat.c (gdb_ptrace): New.
6100 * sparc-nat.c (sparc_fetch_inferior_registers)
6101 (sparc_store_inferior_registers) Remove obsolete comment.
6102 * sparc-nat.c (sparc_fetch_inferior_registers)
6103 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6104 * sparc-nat.c (sparc_fetch_inferior_registers)
6105 (sparc_store_inferior_registers) Use gdb_ptrace.
6106
a225c9a8
KR
61072020-03-17 Kamil Rytarowski <n54@gmx.com>
6108
6109 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6110 it to the ptrace call.
6111 * sh-nbsd-nat.c (store_registers): Likewise.
6112
98097623
KR
61132020-03-17 Kamil Rytarowski <n54@gmx.com>
6114
6115 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6116 nbsd_nat_target instead of inf_ptrace_target.
6117 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6118 nbsd_nat_target.
6119
9e38d619
KR
61202020-03-17 Kamil Rytarowski <n54@gmx.com>
6121
6122 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6123
a2ecbe9f
KR
61242020-03-17 Kamil Rytarowski <n54@gmx.com>
6125
6126 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6127 <sys/sysctl.h>.
6128 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6129
58990295
TV
61302020-03-17 Tom de Vries <tdevries@suse.de>
6131
6132 PR gdb/23710
6133 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6134 fields.
6135 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6136 fields.
6137 (process_imported_unit_die): Skip import of c++ CUs.
6138
771dd3a8
TT
61392020-03-16 Tom Tromey <tom@tromey.com>
6140
6141 * p-valprint.c (pascal_object_print_value): Initialize
6142 base_value.
6143
817a7585
AK
61442020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6145 Shahab Vahedi <shahab@synopsys.com>
6146
6147 * Makefile.in: Add arch/arc.o
6148 * configure.tgt: Likewise.
6149 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6150 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6151 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6152 * arc-tdep.h (arc_read_description): Add proto type.
6153 * arch/arc.c: New file.
6154 * arch/arc.h: Likewise.
6155 * features/Makefile: Replace old target descriptions with new.
6156 * features/arc-arcompact.c: Remove.
6157 * features/arc-arcompact.xml: Likewise.
6158 * features/arc-v2.c: Likewise
6159 * features/arc-v2.xml: Likewise
6160 * features/arc/aux-arcompact.xml: New file.
6161 * features/arc/aux-v2.xml: Likewise.
6162 * features/arc/core-arcompact.xml: Likewise.
6163 * features/arc/core-v2.xml: Likewise.
6164 * features/arc/aux-arcompact.c: Generate.
6165 * features/arc/aux-v2.c: Likewise.
6166 * features/arc/core-arcompact.c: Likewise.
6167 * features/arc/core-v2.c: Likewise.
6168 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6169
67430cd0
TT
61702020-03-16 Tom Tromey <tromey@adacore.com>
6171
6172 PR gdb/25663:
6173 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6174 putting value into bcache.
6175
30efb6c7
SM
61762020-03-16 Simon Marchi <simon.marchi@efficios.com>
6177
6178 PR gdb/21500
6179 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6180 to...
6181 (amd64_windows_init_abi_common): ... this. Don't set size of
6182 long type.
6183 (amd64_windows_init_abi): New function.
6184 (amd64_cygwin_init_abi): New function.
6185 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6186 the Cygwin OS ABI.
6187 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6188 comment.
6189
8db52437
SM
61902020-03-16 Simon Marchi <simon.marchi@efficios.com>
6191
6192 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6193 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6194 (pe_import_directory_entry): New struct type.
6195 (is_linked_with_cygwin_dll): New function.
6196 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6197 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6198 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6199
5982a56a
SM
62002020-03-16 Simon Marchi <simon.marchi@efficios.com>
6201
6202 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6203 i386_cygwin_core_osabi_sniffer.
6204
7a1998df
SM
62052020-03-16 Simon Marchi <simon.marchi@efficios.com>
6206
6207 * i386-cygwin-tdep.c: Rename to...
6208 * i386-windows-tdep.c: ... this.
6209 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6210 i386-windows-tdep.c.
6211 * configure.tgt: Likewise.
6212
053205cc
SM
62132020-03-16 Simon Marchi <simon.marchi@efficios.com>
6214
6215 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6216 * osabi.c (gdb_osabi_names): Add "Windows".
6217 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6218 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6219 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6220 i386_cygwin_osabi_sniffer.
6221 (_initialize_i386_cygwin_tdep): Register OS ABI
6222 GDB_OSABI_WINDOWS for i386.
6223 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6224 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6225 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6226 for x86-64.
6227 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6228 when the target matches '*-*-mingw*'.
6229
fe4b2ee6
SM
62302020-03-16 Simon Marchi <simon.marchi@efficios.com>
6231
6232 * defs.h (enum gdb_osabi): Move to...
6233 * osabi.h (enum gdb_osabi): ... here.
6234 * gdbarch.sh: Include osabi.h in gdbarch.h.
6235 * gdbarch.h: Re-generate.
6236
cb9b645d
SM
62372020-03-16 Simon Marchi <simon.marchi@efficios.com>
6238
6239 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6240 function.
6241 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6242
3293bbaf
TT
62432020-03-14 Tom Tromey <tom@tromey.com>
6244
6245 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6246 for C++.
6247 (c_type_print_modifier): Likewise. Add "language" parameter.
6248 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6249 (c_type_print_base_1): Update.
6250 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6251 constants.
6252 * type-stack.c (type_stack::insert): Handle tp_atomic and
6253 tp_restrict.
6254 (type_stack::follow_type_instance_flags): Likewise.
6255 (type_stack::follow_types): Likewise. Merge type-following code.
6256 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6257 (space_identifier, cv_with_space_id)
6258 (const_or_volatile_or_space_identifier_noopt)
6259 (const_or_volatile_or_space_identifier): Remove.
6260 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6261 rules.
6262 (ptr_operator, typebase): Update.
6263 (enum token_flag) <FLAG_C>: New constant.
6264 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6265 "_Atomic".
6266 (lex_one_token): Handle FLAG_C.
6267
154151a6
KR
62682020-03-14 Kamil Rytarowski <n54@gmx.com>
6269
6270 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6271 it to the ptrace call.
6272 * m68k-bsd-nat.c (store_registers): Likewise.
6273
bc107784
KR
62742020-03-14 Kamil Rytarowski <n54@gmx.com>
6275
6276 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6277 gdb_byte *.
6278 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6279 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6280 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6281
01a80117
KR
62822020-03-14 Kamil Rytarowski <n54@gmx.com>
6283
6284 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6285 nbsd_nat_target instead of inf_ptrace_target.
6286 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6287 nbsd_nat_target.
6288
f90280ca
KR
62892020-03-14 Kamil Rytarowski <n54@gmx.com>
6290
6291 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6292 register_t.
6293
6def66f1
KR
62942020-03-14 Kamil Rytarowski <n54@gmx.com>
6295
6296 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6297 it to the ptrace call.
6298 * alpha-bsd-nat.c (store_registers): Likewise.
6299
66eaca97
KR
63002020-03-14 Kamil Rytarowski <n54@gmx.com>
6301
6302 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6303 includes.
6304 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6305 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6306 fill_fpregset): Likewise.
6307
4fed520b
KR
63082020-03-14 Kamil Rytarowski <n54@gmx.com>
6309
6310 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6311 nbsd_nat_target instead of inf_ptrace_target.
6312 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6313 nbsd_nat_target.
6314
2190cf06
KR
63152020-03-14 Kamil Rytarowski <n54@gmx.com>
6316
6317 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6318 register_t.
6319
75c56d3d
KR
63202020-03-14 Kamil Rytarowski <n54@gmx.com>
6321
6322 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6323 it to the ptrace call.
6324 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6325 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6326 * arm-nbsd-nat.c (store_register): Likewise.
6327 * arm-nbsd-nat.c (store_regs): Likewise.
6328 * arm-nbsd-nat.c (store_fp_register): Likewise.
6329 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6330
6018d381
KR
63312020-03-14 Kamil Rytarowski <n54@gmx.com>
6332
6333 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6334 nbsd_nat_target instead of inf_ptrace_target.
6335 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6336 nbsd_nat_target.
6337
013f99f0
KR
63382020-03-14 Kamil Rytarowski <n54@gmx.com>
6339
6340 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6341 it to the ptrace call.
6342 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6343
12753073
KR
63442020-03-14 Kamil Rytarowski <n54@gmx.com>
6345
6227b330
KR
6346 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6347 it to the ptrace call.
6348 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6349
63502020-03-14 Kamil Rytarowski <n54@gmx.com>
6351
6352 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6353 gdb_byte *.
12753073
KR
6354 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6355
d5be5fa4
KR
63562020-03-14 Kamil Rytarowski <n54@gmx.com>
6357
6358 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6359 instead of inf_ptrace_target.
6360 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6361 nbsd_nat_target.
6362
8110f842
KR
63632020-03-14 Kamil Rytarowski <n54@gmx.com>
6364
6365 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6366 register_t.
6367
52feded7
KR
63682020-03-14 Kamil Rytarowski <n54@gmx.com>
6369
6370 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6371 register_t.
6372
25567eee
KR
63732020-03-14 Kamil Rytarowski <n54@gmx.com>
6374
6375 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6376 register_t.
6377
426a9c18
TT
63782020-03-13 Tom Tromey <tom@tromey.com>
6379
6380 * value.h (val_print): Don't declare.
6381 * valprint.h (val_print_array_elements)
6382 (val_print_scalar_formatted, generic_val_print): Don't declare.
6383 * valprint.c (generic_val_print_array): Take a struct value.
6384 (generic_val_print_ptr, generic_val_print_memberptr)
6385 (generic_val_print_bool, generic_val_print_int)
6386 (generic_val_print_char, generic_val_print_complex)
6387 (generic_val_print): Remove.
6388 (generic_value_print): Update.
6389 (do_val_print): Remove unused parameters. Don't call
6390 la_val_print.
6391 (val_print): Remove.
6392 (common_val_print): Update. Don't call value_check_printable.
6393 (val_print_scalar_formatted, val_print_array_elements): Remove.
6394 * rust-lang.c (rust_val_print): Remove.
6395 (rust_language_defn): Update.
6396 * p-valprint.c (pascal_val_print): Remove.
6397 (pascal_value_print_inner): Update.
6398 (pascal_object_print_val_fields, pascal_object_print_val):
6399 Remove.
6400 (pascal_object_print_static_field): Update.
6401 * p-lang.h (pascal_val_print): Don't declare.
6402 * p-lang.c (pascal_language_defn): Update.
6403 * opencl-lang.c (opencl_language_defn): Update.
6404 * objc-lang.c (objc_language_defn): Update.
6405 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6406 * m2-lang.h (m2_val_print): Don't declare.
6407 * m2-lang.c (m2_language_defn): Update.
6408 * language.h (struct language_defn) <la_val_print>: Remove.
6409 * language.c (unk_lang_value_print_inner): Rename. Change
6410 argument types.
6411 (unknown_language_defn, auto_language_defn): Update.
6412 * go-valprint.c (go_val_print): Remove.
6413 * go-lang.h (go_val_print): Don't declare.
6414 * go-lang.c (go_language_defn): Update.
6415 * f-valprint.c (f_val_print): Remove.
6416 * f-lang.h (f_value_print): Don't declare.
6417 * f-lang.c (f_language_defn): Update.
6418 * d-valprint.c (d_val_print): Remove.
6419 * d-lang.h (d_value_print): Don't declare.
6420 * d-lang.c (d_language_defn): Update.
6421 * cp-valprint.c (cp_print_value_fields)
6422 (cp_print_value_fields_rtti, cp_print_value): Remove.
6423 (cp_print_static_field): Update.
6424 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6425 (c_val_print_struct, c_val_print_union, c_val_print_int)
6426 (c_val_print_memberptr, c_val_print): Remove.
6427 * c-lang.h (c_val_print_array, cp_print_value_fields)
6428 (cp_print_value_fields_rtti): Don't declare.
6429 * c-lang.c (c_language_defn, cplus_language_defn)
6430 (asm_language_defn, minimal_language_defn): Update.
6431 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6432 (ada_val_print_enum): Take a struct value.
6433 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6434 (ada_val_print): Remove.
6435 (ada_value_print_1): Update.
6436 (printable_val_type): Remove.
6437 * ada-lang.h (ada_val_print): Don't declare.
6438 * ada-lang.c (ada_language_defn): Update.
6439
42331a1e
TT
64402020-03-13 Tom Tromey <tom@tromey.com>
6441
6442 * valprint.c (do_val_print): Update.
6443 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6444 a struct value.
6445 (value_to_value_object_no_release): Declare.
6446 * python/py-value.c (value_to_value_object_no_release): New
6447 function.
6448 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6449 struct value.
6450 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6451 function.
6452 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6453 a struct value.
6454 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6455 Declare.
6456 (gdbscm_apply_val_pretty_printer): Take a struct value.
6457 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6458 value.
6459 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6460 value.
6461 * extension-priv.h (struct extension_language_ops)
6462 <apply_val_pretty_printer>: Take a struct value.
6463 * cp-valprint.c (cp_print_value): Create a struct value.
6464 (cp_print_value): Update.
6465
3a916a97
TT
64662020-03-13 Tom Tromey <tom@tromey.com>
6467
6468 * ada-valprint.c (print_field_values): Call common_val_print.
6469
b59eac37
TT
64702020-03-13 Tom Tromey <tom@tromey.com>
6471
6472 * ada-valprint.c (val_print_packed_array_elements): Remove
6473 bitoffset and val parameters. Call common_val_print.
6474 (ada_val_print_string): Remove offset, address, and original_value
6475 parameters.
6476 (ada_val_print_array): Update.
6477 (ada_value_print_array): New function.
6478 (ada_value_print_1): Call it.
6479
03371129
TT
64802020-03-13 Tom Tromey <tom@tromey.com>
6481
6482 * ada-valprint.c (ada_value_print): Use common_val_print.
6483
2e088f8b
TT
64842020-03-13 Tom Tromey <tom@tromey.com>
6485
6486 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6487
39ef85a8
TT
64882020-03-13 Tom Tromey <tom@tromey.com>
6489
6490 * ada-valprint.c (ada_value_print_num): New function.
6491 (ada_value_print_1): Use it.
6492
b9fa6e07
TT
64932020-03-13 Tom Tromey <tom@tromey.com>
6494
6495 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6496
416595d6
TT
64972020-03-13 Tom Tromey <tom@tromey.com>
6498
6499 * ada-valprint.c (ada_value_print_ptr): New function.
6500 (ada_value_print_1): Use it.
6501
5b5e15ec
TT
65022020-03-13 Tom Tromey <tom@tromey.com>
6503
6504 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6505 call common_val_print.
6506 (ada_val_print_1): Update.
6507 (ada_value_print_1): New function.
6508 (ada_value_print_inner): Rewrite.
6509
fbf54e75
TT
65102020-03-13 Tom Tromey <tom@tromey.com>
6511
6512 * cp-valprint.c (cp_print_value_fields): Update.
6513 (cp_print_value): New function.
6514
64b653ca
TT
65152020-03-13 Tom Tromey <tom@tromey.com>
6516
6517 * m2-valprint.c (m2_value_print_inner): Use
6518 cp_print_value_fields.
6519 * cp-valprint.c (cp_print_value_fields): New function.
6520 * c-valprint.c (c_value_print_struct): New function.
6521 (c_value_print_inner): Use c_value_print_struct.
6522 * c-lang.h (cp_print_value_fields): Declare.
6523
6999f067
TT
65242020-03-13 Tom Tromey <tom@tromey.com>
6525
6526 * c-valprint.c (c_value_print_array): New function.
6527 (c_value_print_inner): Use it.
6528
ce80b8bd
TT
65292020-03-13 Tom Tromey <tom@tromey.com>
6530
6531 * c-valprint.c (c_value_print_memberptr): New function.
6532 (c_value_print_inner): Use it.
6533
2faac269
TT
65342020-03-13 Tom Tromey <tom@tromey.com>
6535
6536 * c-valprint.c (c_value_print_int): New function.
6537 (c_value_print_inner): Use it.
6538
da3e2c29
TT
65392020-03-13 Tom Tromey <tom@tromey.com>
6540
6541 * c-valprint.c (c_value_print_ptr): New function.
6542 (c_value_print_inner): Use it.
6543
50836231
TT
65442020-03-13 Tom Tromey <tom@tromey.com>
6545
6546 * c-valprint.c (c_value_print_inner): Rewrite.
6547
4f412b6e
TT
65482020-03-13 Tom Tromey <tom@tromey.com>
6549
6550 * valprint.c (generic_value_print_complex): New function.
6551 (generic_value_print): Use it.
6552
f5354008
TT
65532020-03-13 Tom Tromey <tom@tromey.com>
6554
6555 * valprint.c (generic_val_print_float): Don't call
6556 val_print_scalar_formatted.
6557 (generic_val_print, generic_value_print): Update.
6558
3eec3b05
TT
65592020-03-13 Tom Tromey <tom@tromey.com>
6560
6561 * valprint.c (generic_value_print_char): New function
6562 (generic_value_print): Use it.
6563
fdddfccb
TT
65642020-03-13 Tom Tromey <tom@tromey.com>
6565
6566 * valprint.c (generic_value_print_int): New function.
6567 (generic_value_print): Use it.
6568
6dde7521
TT
65692020-03-13 Tom Tromey <tom@tromey.com>
6570
6571 * valprint.c (generic_value_print_bool): New function.
6572 (generic_value_print): Use it.
6573
4112d2e6
TT
65742020-03-13 Tom Tromey <tom@tromey.com>
6575
6576 * valprint.c (generic_val_print_func): Simplify.
6577 (generic_val_print, generic_value_print): Update.
6578
65786af6
TT
65792020-03-13 Tom Tromey <tom@tromey.com>
6580
6581 * valprint.c (generic_val_print_flags): Remove.
6582 (generic_val_print, generic_value_print): Update.
6583 (val_print_type_code_flags): Add original_value parameter.
6584
40f3ce18
TT
65852020-03-13 Tom Tromey <tom@tromey.com>
6586
6587 * valprint.c (generic_val_print): Update.
6588 (generic_value_print): Update.
6589 * valprint.c (generic_val_print_enum): Don't call
6590 val_print_scalar_formatted.
6591
2a5b130b
TT
65922020-03-13 Tom Tromey <tom@tromey.com>
6593
6594 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6595 * valprint.c (generic_value_print_ptr): New function.
6596
abc66ce9
TT
65972020-03-13 Tom Tromey <tom@tromey.com>
6598
6599 * valprint.c (generic_value_print): Rewrite.
6600
07a32858
TT
66012020-03-13 Tom Tromey <tom@tromey.com>
6602
6603 * p-valprint.c (pascal_object_print_value_fields)
6604 (pascal_object_print_value): New functions.
6605
64d64d3a
TT
66062020-03-13 Tom Tromey <tom@tromey.com>
6607
6608 * p-valprint.c (pascal_value_print_inner): Rewrite.
6609
6a95a1f5
TT
66102020-03-13 Tom Tromey <tom@tromey.com>
6611
6612 * f-valprint.c (f_value_print_innner): Rewrite.
6613
59fcdac6
TT
66142020-03-13 Tom Tromey <tom@tromey.com>
6615
6616 * m2-valprint.c (m2_print_unbounded_array): New overload.
6617 (m2_print_unbounded_array): Update.
6618 (m2_print_array_contents): Take a struct value.
6619 (m2_value_print_inner): Rewrite.
6620
d133c3e1
TT
66212020-03-13 Tom Tromey <tom@tromey.com>
6622
6623 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6624 (d_value_print_inner): New function.
6625 * d-lang.h (d_value_print_inner): Declare.
6626 * d-lang.c (d_language_defn): Use d_value_print_inner.
6627
23b0f06b
TT
66282020-03-13 Tom Tromey <tom@tromey.com>
6629
6630 * go-valprint.c (go_value_print_inner): New function.
6631 * go-lang.h (go_value_print_inner): Declare.
6632 * go-lang.c (go_language_defn): Use go_value_print_inner.
6633
5f56f7cb
TT
66342020-03-13 Tom Tromey <tom@tromey.com>
6635
6636 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6637 API.
6638 (rust_val_print): Rewrite.
6639 (rust_value_print_inner): New function, from rust_val_print.
6640 (rust_language_defn): Use rust_value_print_inner.
6641
26792ee0
TT
66422020-03-13 Tom Tromey <tom@tromey.com>
6643
6644 * ada-valprint.c (ada_value_print_inner): New function.
6645 * ada-lang.h (ada_value_print_inner): Declare.
6646 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6647
24051bbe
TT
66482020-03-13 Tom Tromey <tom@tromey.com>
6649
6650 * f-valprint.c (f_value_print_innner): New function.
6651 * f-lang.h (f_value_print_innner): Declare.
6652 * f-lang.c (f_language_defn): Use f_value_print_innner.
6653
c0941be6
TT
66542020-03-13 Tom Tromey <tom@tromey.com>
6655
6656 * p-valprint.c (pascal_value_print_inner): New function.
6657 * p-lang.h (pascal_value_print_inner): Declare.
6658 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6659
62c4663d
TT
66602020-03-13 Tom Tromey <tom@tromey.com>
6661
6662 * m2-valprint.c (m2_value_print_inner): New function.
6663 * m2-lang.h (m2_value_print_inner): Declare.
6664 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6665
62182190
TT
66662020-03-13 Tom Tromey <tom@tromey.com>
6667
6668 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6669 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6670 * c-valprint.c (c_value_print_inner): New function.
6671 * c-lang.h (c_value_print_inner): Declare.
6672 * c-lang.c (c_language_defn, cplus_language_defn)
6673 (asm_language_defn, minimal_language_defn): Use
6674 c_value_print_inner.
6675
1e592a8a
TT
66762020-03-13 Tom Tromey <tom@tromey.com>
6677
6678 * p-valprint.c (pascal_object_print_value_fields): Now static.
6679 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6680
7fe471e9
TT
66812020-03-13 Tom Tromey <tom@tromey.com>
6682
6683 * c-valprint.c (c_val_print_array): Simplify.
6684
d121c6ce
TT
66852020-03-13 Tom Tromey <tom@tromey.com>
6686
6687 * valprint.c (value_print_array_elements): New function.
6688 * valprint.h (value_print_array_elements): Declare.
6689
4dba70ee
TT
66902020-03-13 Tom Tromey <tom@tromey.com>
6691
6692 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6693 * mips-tdep.c (mips_print_register): Use
6694 value_print_scalar_formatted.
6695
4f9ae810
TT
66962020-03-13 Tom Tromey <tom@tromey.com>
6697
6698 * valprint.h (value_print_scalar_formatted): Declare.
6699 * valprint.c (value_print_scalar_formatted): New function.
6700
156bfec9
TT
67012020-03-13 Tom Tromey <tom@tromey.com>
6702
6703 * valprint.h (generic_value_print): Declare.
6704 * valprint.c (generic_value_print): New function.
6705
2b4e573d
TT
67062020-03-13 Tom Tromey <tom@tromey.com>
6707
6708 * valprint.c (do_val_print): Call la_value_print_inner, if
6709 available.
6710 * rust-lang.c (rust_language_defn): Update.
6711 * p-lang.c (pascal_language_defn): Update.
6712 * opencl-lang.c (opencl_language_defn): Update.
6713 * objc-lang.c (objc_language_defn): Update.
6714 * m2-lang.c (m2_language_defn): Update.
6715 * language.h (struct language_defn) <la_value_print_inner>: New
6716 member.
6717 * language.c (unknown_language_defn, auto_language_defn): Update.
6718 * go-lang.c (go_language_defn): Update.
6719 * f-lang.c (f_language_defn): Update.
6720 * d-lang.c (d_language_defn): Update.
6721 * c-lang.c (c_language_defn, cplus_language_defn)
6722 (asm_language_defn, minimal_language_defn): Update.
6723 * ada-lang.c (ada_language_defn): Update.
6724
a1f6a07c
TT
67252020-03-13 Tom Tromey <tom@tromey.com>
6726
6727 * c-valprint.c (c_value_print): Use common_val_print.
6728
410cf315
TT
67292020-03-13 Tom Tromey <tom@tromey.com>
6730
6731 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6732
72a45c93
TT
67332020-03-13 Tom Tromey <tom@tromey.com>
6734
6735 * f-valprint.c (f77_print_array_1, f_val_print): Use
6736 common_val_print.
6737
040f66bd
TT
67382020-03-13 Tom Tromey <tom@tromey.com>
6739
6740 * riscv-tdep.c (riscv_print_one_register_info): Use
6741 common_val_print.
6742
a6e05a6c
TT
67432020-03-13 Tom Tromey <tom@tromey.com>
6744
6745 * mi/mi-main.c (output_register): Use common_val_print.
6746
3444c526
TT
67472020-03-13 Tom Tromey <tom@tromey.com>
6748
6749 * infcmd.c (default_print_one_register_info): Use
6750 common_val_print.
6751
c2a44efe
TT
67522020-03-13 Tom Tromey <tom@tromey.com>
6753
6754 * valprint.h (common_val_print_checked): Declare.
6755 * valprint.c (common_val_print_checked): New function.
6756 * stack.c (print_frame_arg): Use common_val_print_checked.
6757
b0c26e99
TT
67582020-03-13 Tom Tromey <tom@tromey.com>
6759
6760 * valprint.c (do_val_print): New function, from val_print.
6761 (val_print): Use do_val_print.
6762 (common_val_print): Use do_val_print.
6763
ce3acbe9
TT
67642020-03-13 Tom Tromey <tom@tromey.com>
6765
6766 * valprint.c (value_print): Use scoped_value_mark.
6767
96c7f873
TV
67682020-03-13 Tom de Vries <tdevries@suse.de>
6769
6770 PR symtab/25646
6771 * psymtab.c (partial_symtab::partial_symtab): Don't set
6772 globals_offset and statics_offset. Push element onto
6773 current_global_psymbols and current_static_psymbols stacks.
6774 (concat): New function.
6775 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6776 element from current_global_psymbols and current_static_psymbols
6777 stacks. Concat popped elements to global_psymbols and
6778 static_symbols.
6779 (add_psymbol_to_list): Use current_global_psymbols and
6780 current_static_psymbols stacks.
6781 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6782 current_static_psymbols fields.
6783
6ba0a321
CB
67842020-03-12 Christian Biesinger <cbiesinger@google.com>
6785
6786 * corelow.c (sniff_core_bfd): Remove.
6787 (class core_target) <m_core_vec>: Remove.
6788 (core_target::core_target): Update.
6789 (core_file_fns): Remove.
6790 (deprecated_add_core_fns): Remove.
6791 (default_core_sniffer): Remove.
6792 (sniff_core_bfd): Remove.
6793 (default_check_format): Remove.
6794 (gdb_check_format): Remove.
6795 (core_target_open): Update.
6796 (core_target::get_core_register_section): Update.
6797 (get_core_registers_cb): Update.
6798 (core_target::fetch_registers): Update.
6799 * gdbcore.h (struct core_fns): Remove.
6800 (deprecated_add_core_fns): Remove.
6801 (default_core_sniffer): Remove.
6802 (default_check_format): Remove.
6803
227031b2
TT
68042020-03-12 Tom Tromey <tom@tromey.com>
6805
6806 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
6807 CORE_ADDR.
6808 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
6809
53807e9f
TT
68102020-03-12 Tom Tromey <tom@tromey.com>
6811
6812 * remote.c (remote_target::download_tracepoint)
6813 (remote_target::enable_tracepoint)
6814 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
6815 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
6816 sprintf_vma.
6817
64f25102
TT
68182020-03-12 Tom Tromey <tom@tromey.com>
6819
6820 * symfile-mem.c: Update CORE_ADDR size assert.
6821
272cd5a3
SM
68222020-03-12 Simon Marchi <simon.marchi@efficios.com>
6823
6824 * selftest.m4: Move to gdbsupport/.
6825 * acinclude.m4: Update path to selftest.m4.
6826
74cd3f9d
SM
68272020-03-12 Simon Marchi <simon.marchi@efficios.com>
6828
6829 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
6830 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
6831 gdbarch-selfselftests.c and selftest-arch.c.
6832 (SUBDIR_UNITTESTS_OBS): Rename to...
6833 (SELFTESTS_OBS): ... this.
6834 (COMMON_SFILES): Remove disasm-selftests.c and
6835 gdbarch-selftests.c.
6836 * configure.ac: Don't add selftest-arch.{c,o} to
6837 CONFIG_{SRCS,OBS}.
6838 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
6839 preprocessor conditions.
6840
db6878ac
SM
68412020-03-12 Simon Marchi <simon.marchi@efficios.com>
6842
6843 * configure.ac: Don't source bfd/development.sh.
6844 * selftest.m4: Modify comment.
6845 * configure: Re-generate.
6846
4d696a5c
SM
68472020-03-12 Simon Marchi <simon.marchi@efficios.com>
6848
6849 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
6850 not "true" or "false".
6851 * configure: Re-generate.
6852
8dd8e1c7
CB
68532020-03-12 Christian Biesinger <cbiesinger@google.com>
6854
6855 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
6856 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
6857 renamed to arm_nbsd_supply_gregset.
6858 (fetch_register): Update to call arm_nbsd_supply_gregset.
6859 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
6860 (arm_netbsd_nat_target::fetch_registers): Update.
6861 (fetch_elfcore_registers): Removed.
6862 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
6863 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
6864 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
6865 not require NetBSD system headers.
6866 (arm_nbsd_regset): New struct.
6867 (arm_nbsd_iterate_over_regset_sections): New function.
6868 (arm_netbsd_init_abi_common): Updated to call
6869 set_gdbarch_iterate_over_regset_sections.
6870 * arm-nbsd-tdep.h: New file.
6871
dd69bf7a
KB
68722020-03-11 Kevin Buettner <kevinb@redhat.com>
6873
6874 * symtab.c (find_pc_sect_line): Add check which prevents infinite
6875 recursion.
6876
a0761e34
SM
68772020-03-11 Simon Marchi <simon.marchi@efficios.com>
6878
6879 * configure: Re-generate.
6880
e7a82140
TT
68812020-03-11 Tom Tromey <tromey@adacore.com>
6882
6883 * ada-typeprint.c (print_choices): Fix comment.
6884
dcc050c8
AB
68852020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
6886
6887 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
6888 previous item in the list, when the list has no items.
6889
1c33af77
TV
68902020-03-11 Tom de Vries <tdevries@suse.de>
6891
6892 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
6893 PROP_LOCLIST handling code.
6894
8c95582d
AB
68952020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
6896
6897 * buildsym-legacy.c (record_line): Pass extra parameter to
6898 record_line.
6899 * buildsym.c (buildsym_compunit::record_line): Take an extra
6900 parameter, reduce duplication in the line table, and record the
6901 is_stmt flag in the line table.
6902 * buildsym.h (buildsym_compunit::record_line): Add extra
6903 parameter.
6904 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
6905 non-statement lines.
6906 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
6907 this to the symtab builder.
6908 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
6909 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
6910 through to dwarf_record_line_1.
6911 * infrun.c (process_event_stop_test): When stepping, don't stop at
6912 a non-statement instruction, and only refresh the step info when
6913 we land in the middle of a line's range. Also add an extra
6914 comment.
6915 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
6916 field.
6917 * record-btrace.c (btrace_find_line_range): Only record lines
6918 marked as is-statement.
6919 * stack.c (frame_show_address): Show the frame address if we are
6920 in a non-statement sal.
6921 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
6922 (maintenance_print_one_line_table): Print a header for the is_stmt
6923 column, and include is_stmt information in the output.
6924 * symtab.c (find_pc_sect_line): Find lines marked as statements in
6925 preference to non-statements.
6926 (find_pcs_for_symtab_line): Prefer is-statement entries.
6927 (find_line_common): Likewise.
6928 * symtab.h (struct linetable_entry): Add is_stmt field.
6929 (struct symtab_and_line): Likewise.
6930 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
6931 arranging the line table.
6932
e4003a34
TV
69332020-03-07 Tom de Vries <tdevries@suse.de>
6934
6935 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
6936 DIE.
6937
e8932576
TT
69382020-03-07 Tom Tromey <tom@tromey.com>
6939
6940 * valops.c (value_literal_complex): Remove obsolete comment.
6941 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
6942 comment.
6943
29734269
SM
69442020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
6945
6946 * infrun.h: Forward-declare thread_info.
6947 (set_step_info): Add thread_info parameter, add doc.
6948 * infrun.c (set_step_info): Add thread_info parameter, move doc
6949 to header.
6950 * infrun.c (process_event_stop_test): Pass thread to
6951 set_step_info call.
6952 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
6953 set_step_info.
6954 (prepare_one_step): Add thread_info parameter, pass it to
6955 set_step_frame and prepare_one_step (recursive) call.
6956 (step_1): Pass thread to prepare_one_step call.
6957 (step_command_fsm::should_stop): Pass thread to
6958 prepare_one_step.
6959 (until_next_fsm): Pass thread to set_step_frame call.
6960 (finish_command): Pass thread to set_step_info call.
6961
b7d64b29
HD
69622020-03-06 Hannes Domani <ssbssa@yahoo.de>
6963
6964 * windows-tdep.c (windows_solib_create_inferior_hook):
6965 Check if inferior is running.
6966
09f2921c
TV
69672020-03-06 Tom de Vries <tdevries@suse.de>
6968
6969 * NEWS: Fix "the the".
6970 * ctfread.c: Same.
6971
fd760e79
TV
69722020-03-06 Tom de Vries <tdevries@suse.de>
6973
6974 * psymtab.c (psymtab_to_symtab): Don't print "done.".
6975
20ea4a60
AB
69762020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6977
6978 * .dir-locals.el: Add a comment referencing the other copies of
6979 this file.
6980
0afbabf0
JB
69812020-03-05 John Baldwin <jhb@FreeBSD.org>
6982
6983 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
6984 psargs.
6985
842806cb
TBA
69862020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6987
6988 * .gitattributes: New file.
6989
be1e3d3e
TT
69902020-03-04 Tom Tromey <tom@tromey.com>
6991
6992 * symmisc.c (print_symbol_bcache_statistics)
6993 (print_objfile_statistics): Update.
6994 * symfile.c (allocate_symtab): Use intern.
6995 * psymtab.c (partial_symtab::partial_symtab): Use intern.
6996 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
6997 macro_cache>: Remove.
6998 <string_cache>: New member.
6999 (struct objfile) <intern>: New methods.
7000 * elfread.c (elf_symtab_read): Use intern.
7001 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7002 (dwarf2_compute_name, dwarf2_physname)
7003 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7004 names.
7005 (guess_partial_die_structure_name): Update.
7006 (partial_die_info::fixup): Intern name.
7007 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7008 name.
7009 (dwarf2_name): Intern name. Update.
7010 * buildsym.c (buildsym_compunit::get_macro_table): Use
7011 string_cache.
7012
4e7625fd
TT
70132020-03-04 Tom Tromey <tom@tromey.com>
7014
7015 * jit.c (bfd_open_from_target_memory): Make "target" const.
7016 * corefile.c (gnutarget): Now const.
7017 * gdbcore.h (gnutarget): Now const.
7018
46f9f931
HD
70192020-03-04 Hannes Domani <ssbssa@yahoo.de>
7020
7021 * NEWS: Mention support for WOW64 processes.
7022 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7023 (amd64_windows_segment_register_p): Remove static.
7024 (_initialize_amd64_windows_nat): Update.
7025 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7026 * i386-windows-nat.c (context_offset): Update.
7027 (i386_mappings): Rename and remove static.
7028 (i386_windows_segment_register_p): Remove static.
7029 (_initialize_i386_windows_nat): Update.
7030 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7031 (STATUS_WX86_SINGLE_STEP): New macro.
7032 (EnumProcessModulesEx): New macro.
7033 (Wow64SuspendThread): New macro.
7034 (Wow64GetThreadContext): New macro.
7035 (Wow64SetThreadContext): New macro.
7036 (Wow64GetThreadSelectorEntry): New macro.
7037 (windows_set_context_register_offsets): Add static.
7038 (windows_set_segment_register_p): Likewise.
7039 (windows_add_thread): Adapt for WOW64 processes.
7040 (windows_fetch_one_register): Likewise.
7041 (windows_nat_target::fetch_registers): Likewise.
7042 (windows_store_one_register): Likewise.
7043 (display_selector): Likewise.
7044 (display_selectors): Likewise.
7045 (handle_exception): Likewise.
7046 (windows_continue): Likewise.
7047 (windows_nat_target::resume): Likewise.
7048 (windows_add_all_dlls): Likewise.
7049 (do_initial_windows_stuff): Likewise.
7050 (windows_nat_target::attach): Likewise.
7051 (windows_get_exec_module_filename): Likewise.
7052 (windows_nat_target::create_inferior): Likewise.
7053 (windows_xfer_siginfo): Likewise.
7054 (_initialize_loadable): Initialize Wow64SuspendThread,
7055 Wow64GetThreadContext, Wow64SetThreadContext,
7056 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7057 * windows-nat.h (windows_set_context_register_offsets):
7058 Remove declaration.
7059 (windows_set_segment_register_p): Likewise.
7060 (i386_windows_segment_register_p): Add declaration.
7061 (amd64_windows_segment_register_p): Likewise.
7062
440cf44e
LM
70632020-03-04 Luis Machado <luis.machado@linaro.org>
7064
7065 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7066 in "info registers" for AArch64/ARM.
7067
7068 The change caused "info registers" to not print GPR's.
7069
7070 gdb/ChangeLog:
7071
7072 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7073
7074 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7075 when reg->group is empty and reggroup is not.
7076
1009d92f
TT
70772020-03-03 Tom Tromey <tromey@adacore.com>
7078
7079 * dwarf2/frame.c (struct dwarf2_frame_cache)
7080 <checked_tailcall_bottom, entry_cfa_sp_offset,
7081 entry_cfa_sp_offset_p>: Remove members.
7082 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7083 (dwarf2_frame_prev_register): Don't call
7084 dwarf2_tailcall_sniffer_first.
7085 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7086 * frame-unwind.c (add_unwinder): New fuction.
7087 (frame_unwind_init): Use it. Add tailcall unwinder.
7088
5e5d66b6
AB
70892020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7090 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7091
7092 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7093 value should be printed as true.
7094
584cf46d
HD
70952020-03-03 Hannes Domani <ssbssa@yahoo.de>
7096
7097 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7098 (windows_init_abi): Set and use windows_so_ops.
7099
7b973adc
SDJ
71002020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7101
7102 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7103 when verifying if dealing with a convenience variable.
7104
bb7b70ab
LM
71052020-03-03 Luis Machado <luis.machado@linaro.org>
7106
7107 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7108
9822cb57
SM
71092020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7110
7111 * infrun.c (gdbarch_supports_displaced_stepping): New.
7112 (use_displaced_stepping): Break up conditions in smaller pieces.
7113 Use gdbarch_supports_displaced_stepping.
7114 (displaced_step_prepare_throw): Use
7115 gdbarch_supports_displaced_stepping.
7116
63e163f2
AB
71172020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7118
7119 * NEWS: Mention new behaviour of the history filename.
7120 * top.c (write_history_p): Add comment.
7121 (show_write_history_p): Add header comment, give a different
7122 message when history writing is on, but the history filename is
7123 empty.
7124 (history_filename): Add comment.
7125 (history_filename_empty): New function.
7126 (show_history_filename): Add header comment, give a different
7127 message when the filename is empty.
7128 (init_history): Compare history_filename against nullptr, and only
7129 read history if the filename is not empty.
7130 (set_history_filename): Add header comment, and only make
7131 non-empty filenames absolute.
7132 (init_main): Make the filename argument to 'set history filename'
7133 optional.
7134
81b86b97
CB
71352020-03-02 Christian Biesinger <cbiesinger@google.com>
7136
7137 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7138 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7139 (fetch_fp_register): Update.
7140 (fetch_fp_regs): Update.
7141 (store_fp_register): Update.
7142 (store_fp_regs): Update.
7143 (arm_netbsd_nat_target::read_description): New function.
7144 (fetch_elfcore_registers): Update.
7145
24ed6739
AB
71462020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7147
7148 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7149 general_thread if the stop reply is missing a thread-id.
7150 (remote_target::process_stop_reply): Use the first non-exited
7151 thread if the target didn't pass a thread-id.
7152 * infrun.c (do_target_wait): Move call to
7153 switch_to_inferior_no_thread to ....
7154 (do_target_wait_1): ... here.
7155
a84bb2a0
JT
71562020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7157
7158 * debuginfod-support.c: Include defs.h first.
7159
658dadf0
TV
71602020-02-28 Tom de Vries <tdevries@suse.de>
7161
7162 * symfile.c (set_initial_language): Use default language for lookup.
7163
4ebe4877
SM
71642020-02-28 Simon Marchi <simon.marchi@efficios.com>
7165
7166 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7167 reader variable, pass `this` to read_cutu_die_from_dwo.
7168
e5da1139
AM
71692020-02-27 Aaron Merey <amerey@redhat.com>
7170
7171 * source.c (open_source_file): Check for nullptr when computing
7172 srcpath.
7173
317f7127
TT
71742020-02-27 Tom Tromey <tromey@adacore.com>
7175
7176 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7177 member.
7178 (dwarf2_add_field): Don't update nfields.
7179 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7180
3104d9ee
AB
71812020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7182
7183 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7184 abs.
7185
b83470bf
TT
71862020-02-26 Tom Tromey <tom@tromey.com>
7187
7188 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7189 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7190 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7191 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7192 per_cu_data.
7193
edfe0a0c
TT
71942020-02-26 Tom Tromey <tom@tromey.com>
7195
7196 * dwarf2/index-write.c (psym_index_map): Change type.
7197 (add_address_entry_worker, write_one_signatured_type)
7198 (recursively_count_psymbols, recursively_write_psymbols)
7199 (class debug_names, psyms_seen_size, write_gdbindex)
7200 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7201
0d79cdc4
AM
72022020-02-26 Aaron Merey <amerey@redhat.com>
7203
7204 * Makefile.in: Handle optional debuginfod support.
7205 * NEWS: Update.
7206 * README: Add --with-debuginfod summary.
7207 * config.in: Regenerate.
7208 * configure: Regenerate.
7209 * configure.ac: Handle optional debuginfod support.
7210 * debuginfod-support.c: debuginfod helper functions.
7211 * debuginfod-support.h: Ditto.
7212 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7213 summary.
7214 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7215 when a dwz file cannot be found.
7216 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7217 debuginfo file cannot be found.
7218 * source.c (open_source_file): Query debuginfod servers when a
7219 source file cannot be found.
7220 * top.c (print_gdb_configuration): Include
7221 --{with,without}-debuginfod in the output.
7222
b65ce565
JG
72232020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7224
7225 * thread.c (thr_try_catch_cmd): Print thread name.
7226
d4c9a4f8
SM
72272020-02-26 Simon Marchi <simon.marchi@efficios.com>
7228
7229 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7230 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7231 dwarf2_fetch_die_type_sect_off): Move to...
7232 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7233 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7234 dwarf2_fetch_die_type_sect_off): ... here.
7235 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7236 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7237 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7238
0dce4280
TV
72392020-02-26 Tom de Vries <tdevries@suse.de>
7240
7241 PR gdb/25603
7242 * symfile.c (set_initial_language): Exit-early if
7243 language_mode == language_mode_manual.
7244
450a1bfc
SM
72452020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7246
7247 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7248 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7249 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7250
9e80cfa1
AB
72512020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7252
7253 * gdbtypes.c (create_array_type_with_stride): Handle negative
7254 array strides.
7255 * valarith.c (value_subscripted_rvalue): Likewise.
7256
09624f1f
LM
72572020-02-25 Luis Machado <luis.machado@linaro.org>
7258
7259 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7260
8cb5117c
SM
72612020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7262
7263 * loc.h (dwarf2_get_die_type): Move to...
7264 * read.h (dwarf2_get_die_type): ... here.
7265 * read.c (dwarf2_get_die_type): Move doc to header.
7266
c325c44e
JB
72672020-02-25 Joel Brobecker <brobecker@adacore.com>
7268
7269 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7270 'gnulib/Makefile.in' to the list.
7271
4ac93832
TT
72722020-02-24 Tom Tromey <tom@tromey.com>
7273
7274 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7275 Remove.
7276 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7277 XOBNEWVEC.
7278
197400e8
TT
72792020-02-24 Tom Tromey <tom@tromey.com>
7280
7281 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7282 New method.
7283 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7284 (dw2_do_instantiate_symtab, dw2_get_file_names)
7285 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7286
76935768
TT
72872020-02-24 Tom Tromey <tom@tromey.com>
7288
7289 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7290 make_scoped_restore.
7291 (dwarf2_psymtab::read_symtab): Don't clear
7292 reading_partial_symbols.
7293
a88ef40d
TV
72942020-02-24 Tom de Vries <tdevries@suse.de>
7295
7296 PR gdb/25592
7297 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7298
c9af6521
TV
72992020-02-24 Tom de Vries <tdevries@suse.de>
7300
7301 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7302 commands layout next/prev/regs.
7303
5707a07a
TT
73042020-02-22 Tom Tromey <tom@tromey.com>
7305
7306 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7307 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7308
3b0fb49e
TT
73092020-02-22 Tom Tromey <tom@tromey.com>
7310
7311 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7312
283be8bf
TT
73132020-02-22 Tom Tromey <tom@tromey.com>
7314
7315 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7316 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7317 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7318 * tui/tui.c (_initialize_tui): Add usage text.
7319
ca793b96
TT
73202020-02-22 Tom Tromey <tom@tromey.com>
7321
7322 * tui/tui-win.c (tui_set_focus_command)
7323 (tui_set_win_height_command): Use error_no_arg.
7324 (_initialize_tui_win): Update help text.
7325 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7326
432b5c40
TT
73272020-02-22 Tom Tromey <tom@tromey.com>
7328
7329 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7330 * tui/tui-disasm.h (struct tui_disasm_window)
7331 <display_start_addr>: Declare.
7332 * tui/tui-source.h (struct tui_source_window)
7333 <display_start_addr>: Declare.
7334 * tui/tui-winsource.h (struct tui_source_window_base)
7335 <show_source_line, display_start_addr>: New methods.
7336 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7337 Rename and move to protected section.
7338 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7339 (tui_source_window_base::do_erase_source_content): Update.
7340 (tui_source_window_base::show_source_line): Now a method.
7341 (tui_source_window_base::show_source_content)
7342 (tui_source_window_base::tui_source_window_base)
7343 (tui_source_window_base::rerender)
7344 (tui_source_window_base::refill)
7345 (tui_source_window_base::do_scroll_horizontal)
7346 (tui_source_window_base::set_is_exec_point_at)
7347 (tui_source_window_base::update_breakpoint_info)
7348 (tui_source_window_base::update_exec_info): Update.
7349 * tui/tui-source.c (tui_source_window::set_contents)
7350 (tui_source_window::showing_source_p)
7351 (tui_source_window::do_scroll_vertical)
7352 (tui_source_window::location_matches_p)
7353 (tui_source_window::line_is_displayed): Update.
7354 (tui_source_window::display_start_addr): New method.
7355 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7356 (tui_disasm_window::do_scroll_vertical)
7357 (tui_disasm_window::location_matches_p): Update.
7358 (tui_disasm_window::display_start_addr): New method.
7359
01b1af32
TT
73602020-02-22 Tom Tromey <tom@tromey.com>
7361
7362 * NEWS: Add entry for gdb.register_window_type.
7363 * tui/tui-layout.h (window_factory): New typedef.
7364 (tui_register_window): Declare.
7365 * tui/tui-layout.c (saved_tui_windows): New global.
7366 (tui_apply_current_layout): Use it.
7367 (tui_register_window): New function.
7368 * python/python.c (do_start_initialization): Call
7369 gdbpy_initialize_tui.
7370 (python_GdbMethods): Add "register_window_type" function.
7371 * python/python-internal.h (gdbpy_register_tui_window)
7372 (gdbpy_initialize_tui): Declare.
7373 * python/py-tui.c: New file.
7374 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7375
fc96d20b
TT
73762020-02-22 Tom Tromey <tom@tromey.com>
7377
7378 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7379
935c78c0
TT
73802020-02-22 Tom Tromey <tom@tromey.com>
7381
7382 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7383 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7384 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7385 (tui_set_win_focus_to): Move from tui-win.c.
7386
0240c8f1
TT
73872020-02-22 Tom Tromey <tom@tromey.com>
7388
7389 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7390 functions.
7391 (known_window_types): New global.
7392 (tui_get_window_by_name): Reimplement.
7393 (initialize_known_windows): New function.
7394 (validate_window_name): Rewrite.
7395 (_initialize_tui_layout): Call initialize_known_windows.
7396
fdb01f0c
TT
73972020-02-22 Tom Tromey <tom@tromey.com>
7398
7399 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7400 Remove constants.
7401 * tui/tui-winsource.h (struct tui_source_window_base)
7402 <tui_source_window_base>: Remove parameter.
7403 * tui/tui-winsource.c
7404 (tui_source_window_base::tui_source_window_base): Remove
7405 parameter.
7406 (tui_source_window_base::refill): Update.
7407 * tui/tui-stack.h (struct tui_locator_window)
7408 <tui_locator_window>: Update.
7409 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7410 Default the constructor.
7411 * tui/tui-regs.h (struct tui_data_item_window)
7412 <tui_data_item_window>: Default the constructor.
7413 (struct tui_data_window) <tui_data_window>: Likewise.
7414 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7415 Default the constructor.
7416 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7417 Default the constructor.
7418 <type>: Remove.
7419 (struct tui_win_info) <tui_win_info>: Default the constructor.
7420 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7421 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7422 Default the constructor.
7423
865a5aec
TT
74242020-02-22 Tom Tromey <tom@tromey.com>
7425
7426 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7427 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7428 * tui/tui-win.c (tui_resize_all): Don't call
7429 tui_delete_invisible_windows.
7430 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7431 done.
7432 (tui_set_layout): Update.
7433 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7434 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7435 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7436
e098d18c
TT
74372020-02-22 Tom Tromey <tom@tromey.com>
7438
7439 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7440 correctly.
7441
eb9c8874
TT
74422020-02-22 Tom Tromey <tom@tromey.com>
7443
7444 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7445
7eed1a8e
TT
74462020-02-22 Tom Tromey <tom@tromey.com>
7447
7448 * tui/tui-winsource.h (struct tui_source_window_iterator)
7449 <inner_iterator>: New etytypedef.
7450 <tui_source_window_iterator>: Take "end" parameter.
7451 <tui_source_window_iterator>: Take iterator.
7452 <operator*, advance>: Update.
7453 <m_iter>: Change type.
7454 <m_end>: New field.
7455 (struct tui_source_windows) <begin, end>: Update.
7456 * tui/tui-layout.c (tui_windows): New global.
7457 (tui_apply_current_layout): Clear tui_windows.
7458 (tui_layout_window::apply): Update tui_windows.
7459 * tui/tui-data.h (tui_windows): Declare.
7460 (all_tui_windows): Now inline function.
7461 (class tui_window_iterator, struct all_tui_windows): Remove.
7462
7c043ba6
TT
74632020-02-22 Tom Tromey <tom@tromey.com>
7464
7465 PR tui/17850:
7466 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7467 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7468 "height" argument.
7469 (class tui_layout_window) <get_sizes>: Likewise.
7470 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7471 argument.
7472 <get_sizes>: Add "height" argument.
7473 <m_vertical>: New field.
7474 * tui/tui-layout.c (tui_layout_split::clone): Update.
7475 (tui_layout_split::get_sizes): Add "height" argument.
7476 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7477 (tui_new_layout_command): Parse "-horizontal".
7478 (_initialize_tui_layout): Update help string.
7479 (tui_layout_split::specification): Add "-horizontal" when needed.
7480 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7481 argument.
7482 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7483 New methods.
7484
6bc56648
TT
74852020-02-22 Tom Tromey <tom@tromey.com>
7486
7487 * tui/tui-layout.h (enum tui_adjust_result): New.
7488 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7489 (class tui_layout_window) <adjust_size>: Return
7490 tui_adjust_result. Rewrite.
7491 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7492 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7493
c22fef7e
TT
74942020-02-22 Tom Tromey <tom@tromey.com>
7495
7496 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7497 parameter and return types.
7498 (class tui_layout_base) <specification>: Add "depth".
7499 (class tui_layout_window) <specification>: Add "depth".
7500 (class tui_layout_split) <specification>: Add "depth".
7501 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7502 and return types.
7503 (tui_new_layout_command): Parse sub-layouts.
7504 (_initialize_tui_layout): Update help string.
7505 (tui_layout_window::specification): Add "depth".
7506 (add_layout_command): Update.
7507
ee325b61
TT
75082020-02-22 Tom Tromey <tom@tromey.com>
7509
7510 * NEWS: Add "tui new-layout" item.
7511 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7512 Add new-layout command to help text.
7513 (validate_window_name): New function.
7514 (tui_new_layout_command): New function.
7515 (_initialize_tui_layout): Register "new-layout".
7516 (tui_layout_window::specification): New method.
7517 (tui_layout_window::specification): New method.
7518 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7519 method.
7520 (class tui_layout_window) <specification>: New method.
7521 (class tui_layout_split) <specification>: New method.
7522
416eb92d
TT
75232020-02-22 Tom Tromey <tom@tromey.com>
7524
7525 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7526 * tui/tui-win.c (window_name_completer): Update comment.
7527 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7528 Declare method.
7529 (class tui_layout_window) <replace_window>: Likewise.
7530 (class tui_layout_split) <replace_window>: Likewise.
7531 (tui_set_layout): Don't declare.
7532 (tui_set_initial_layout): Declare function.
7533 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7534 (asm_regs_layout): New globals.
7535 (tui_current_layout, show_layout): Remove.
7536 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7537 (find_layout, tui_apply_layout): New function.
7538 (layout_completer): Remove.
7539 (tui_next_layout): Reimplement.
7540 (tui_next_layout_command): New function.
7541 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7542 (tui_regs_layout): Reimplement.
7543 (tui_regs_layout_command): New function.
7544 (extract_display_start_addr): Rewrite.
7545 (next_layout, prev_layout): Remove.
7546 (tui_layout_window::replace_window): New method.
7547 (tui_layout_split::replace_window): New method.
7548 (destroy_layout): New function.
7549 (layout_list): New global.
7550 (add_layout_command): New function.
7551 (initialize_layouts): Update.
7552 (tui_layout_command): New function.
7553 (_initialize_tui_layout): Install "layout" commands.
7554 * tui/tui-data.h (enum tui_layout_type): Remove.
7555 (tui_current_layout): Don't declare.
7556
0dbc2fc7
TT
75572020-02-22 Tom Tromey <tom@tromey.com>
7558
7559 * tui/tui-regs.c (tui_reg_layout): Remove.
7560 (tui_reg_command): Use tui_regs_layout.
7561 * tui/tui-layout.h (tui_reg_command): Declare.
7562 * tui/tui-layout.c (tui_reg_command): New function.
7563
5afe342e
TT
75642020-02-22 Tom Tromey <tom@tromey.com>
7565
7566 * tui/tui.c (tui_rl_delete_other_windows): Call
7567 tui_remove_some_windows.
7568 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7569 Declare method.
7570 (class tui_layout_window) <remove_windows>: New method.
7571 (class tui_layout_split) <remove_windows>: Declare.
7572 (tui_remove_some_windows): Declare.
7573 * tui/tui-layout.c (tui_remove_some_windows): New function.
7574 (tui_layout_split::remove_windows): New method.
7575
427326a8
TT
75762020-02-22 Tom Tromey <tom@tromey.com>
7577
7578 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7579 * tui/tui-layout.h (tui_next_layout): Declare.
7580 * tui/tui-layout.c (tui_next_layout): New function.
7581
3fe12b6d
TT
75822020-02-22 Tom Tromey <tom@tromey.com>
7583
7584 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7585 correct coordinates.
7586
59b8b5d2
TT
75872020-02-22 Tom Tromey <tom@tromey.com>
7588
7589 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7590 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7591 DATA_WIN case.
7592
2a3d458b
TT
75932020-02-22 Tom Tromey <tom@tromey.com>
7594
7595 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7596 TUI_DISASM_WIN, not tui_win_list.
7597
3f0cbb04
TT
75982020-02-22 Tom Tromey <tom@tromey.com>
7599
7600 * valprint.c (generic_val_print_enum_1)
7601 (val_print_type_code_flags): Style member names.
7602 * rust-lang.c (val_print_struct, rust_print_enum)
7603 (rust_print_struct_def, rust_internal_print_type): Style member
7604 names.
7605 * p-valprint.c (pascal_object_print_value_fields): Style member
7606 names. Only call fprintf_symbol_filtered for static members.
7607 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7608 * f-valprint.c (f_val_print): Style member names.
7609 * f-typeprint.c (f_type_print_base): Style member names.
7610 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7611 call fprintf_symbol_filtered for static members.
7612 (cp_print_class_member): Style member names.
7613 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7614 member names.
7615 * ada-valprint.c (ada_print_scalar): Style enum names.
7616 (ada_val_print_enum): Likewise.
7617 * ada-typeprint.c (print_enum_type): Style enum names.
7618
d4d947ae
TT
76192020-02-21 Tom Tromey <tom@tromey.com>
7620
7621 * psympriv.h (struct partial_symtab): Update comment.
7622
e94e944b
TT
76232020-02-21 Tom Tromey <tromey@adacore.com>
7624
7625 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7626 type is CORE_ADDR.
7627
1eb73179
TV
76282020-02-21 Tom de Vries <tdevries@suse.de>
7629
7630 PR gdb/25534
7631 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7632 if dependencies[i]->user != NULL.
7633
4f180d53
AT
76342020-02-21 Ali Tamur <tamur@google.com>
7635
7636 * dwarf2/read.c (dwarf2_name): Add null check.
7637
22b6cd70
TT
76382020-02-20 Tom Tromey <tom@tromey.com>
7639
7640 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7641 ">=", in binary search.
7642 (dwarf2_find_containing_comp_unit): New overload.
7643 (run_test): New self-test.
7644 (_initialize_dwarf2_read): Register new test.
7645
bd0cf5a6
NC
76462020-02-20 Nelson Chu <nelson.chu@sifive.com>
7647
7648 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7649 * riscv-tdep.h: Likewise.
7650 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7651 rv32-only CSR.
7652 * features/riscv/64bit-csr.xml: Regenerated.
7653
3f702acd
SDJ
76542020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7655 Tom Tromey <tom@tromey.com>
7656
7657 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7658 of 'fputc_unfiltered'.
7659 (putchar_unfiltered): Call 'fputc_unfiltered'.
7660 (fputc_unfiltered): Call 'fputs_unfiltered'.
7661
d13c7322
AB
76622020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7663
7664 * config.in: Regenerate.
7665 * configure: Regenerate.
7666 * configure.ac: Add --with-python-libdir option.
7667 * main.c: Use WITH_PYTHON_LIBDIR.
7668
869d8950
TT
76692020-02-19 Tom Tromey <tom@tromey.com>
7670
7671 * symtab.c (general_symbol_info::compute_and_set_names): Use
7672 obstack_strndup. Simplify call to symbol_set_demangled_name.
7673
298e9637
SM
76742020-02-19 Simon Marchi <simon.marchi@efficios.com>
7675
7676 * dwarf2/read.c (allocate_signatured_type_table,
7677 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7678 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7679 Remove objfile parameter, update all callers.
7680
08410482
DE
76812020-02-19 Doug Evans <dje@google.com>
7682
7683 PR rust/25535
7684 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7685 rust_enum_variant calculation.
7686
dfdeeca1
TT
76872020-02-19 Tom Tromey <tromey@adacore.com>
7688
7689 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7690
2ef5453b
TT
76912020-02-19 Tom Tromey <tromey@adacore.com>
7692
7693 * ada-lang.c (cache_symbol): Use obstack_strdup.
7694
9f1528a1
AB
76952020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7696
7697 * configure: Regenerate.
7698
d3c22fa8
TT
76992020-02-19 Tom Tromey <tromey@adacore.com>
7700
7701 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7702 NULL check.
7703
bf84f706
MR
77042020-02-19 Maciej W. Rozycki <macro@wdc.com>
7705
7706 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7707
d1c9b20f
AB
77082020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7709
7710 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7711 if GDBSERVER is not defined.
7712 (riscv_tdesc_cache): Likewise, also store const target_desc.
7713 (STATIC_IN_GDB): Define.
7714 (riscv_create_target_description): Update declaration with
7715 STATIC_IN_GDB.
7716 (riscv_lookup_target_description): New function, only define if
7717 GDBSERVER is not defined.
7718 * arch/riscv.h (riscv_create_target_description): Declare only
7719 when GDBSERVER is defined.
7720 (riscv_lookup_target_description): New declaration when GDBSERVER
7721 is not defined.
7722 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7723 (riscv_linux_read_features): ...this, and return
7724 riscv_gdbarch_features instead of target_desc.
7725 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7726 (riscv_linux_read_description): Rename to...
7727 (riscv_linux_read_features): ...this.
7728 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7729 Update to use riscv_gdbarch_features and
7730 riscv_lookup_target_description.
7731 * riscv-tdep.c (riscv_find_default_target_description): Use
7732 riscv_lookup_target_description instead of
7733 riscv_create_target_description.
7734
373d7ac0
SM
77352020-02-18 Simon Marchi <simon.marchi@efficios.com>
7736
7737 * valprint.c (generic_val_print_enum_1): When printing a flag
7738 enum with value 0 and there is no enumerator with value 0, print
7739 just "0" instead of "(unknown: 0x0)".
7740
b29a2df0
SM
77412020-02-18 Simon Marchi <simon.marchi@efficios.com>
7742
7743 * valprint.c (generic_val_print_enum_1): Print unknown part of
7744 flag enum in hex.
7745
6740f0cc
SM
77462020-02-18 Simon Marchi <simon.marchi@efficios.com>
7747
7748 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7749 flag enums to contain duplicate enumerators.
7750 * valprint.c (generic_val_print_enum_1): Update comment.
7751
edd45eb0
SM
77522020-02-18 Simon Marchi <simon.marchi@efficios.com>
7753
7754 * dwarf2/read.c: Include "count-one-bits.h".
7755 (update_enumeration_type_from_children): If an enumerator has
7756 multiple bits set, don't treat the enumeration as a "flag enum".
7757 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7758 of flag enums have 0 or 1 bit set.
7759
6d0cf446
BE
77602020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7761
7762 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7763 conversion.
7764 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7765 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7766 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7767 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7768 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7769
7001c1b7
SM
77702020-02-18 Simon Marchi <simon.marchi@efficios.com>
7771
7772 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7773
fdb61c6c
SM
77742020-02-14 Simon Marchi <simon.marchi@efficios.com>
7775
7776 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7777 displaced_step_closure_up.
7778 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7779 (struct displaced_step_closure_up):
7780 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7781 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7782 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7783 Likewise.
7784 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7785 * gdbarch.c, gdbarch.h: Re-generate.
7786 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7787 displaced_step_closure_up.
7788 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7789 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7790 * infrun.h (displaced_step_closure_up): New type alias.
7791 (struct displaced_step_inferior_state) <step_closure>: Change
7792 type to displaced_step_closure_up.
7793 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7794 displaced_step_closure_up.
7795 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7796
a4a38eb4
TT
77972020-02-14 Tom Tromey <tom@tromey.com>
7798
7799 * minidebug.c (gnu_debug_key): New global.
7800 (find_separate_debug_file_in_section): Use it.
7801
e8217e61
SM
78022020-02-14 Simon Marchi <simon.marchi@efficios.com>
7803
7804 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
7805 std::unique_ptr.
7806 * gdbarch.c: Re-generate.
7807 * gdbarch.h: Re-generate.
7808 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
7809 change.
7810 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
7811 type to std::unique_ptr.
7812 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7813 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7814 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7815 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7816 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
7817 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7818 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7819 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7820 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7821
d8d83535
SM
78222020-02-14 Simon Marchi <simon.marchi@efficios.com>
7823
7824 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
7825 std::unique_ptr.
7826 (displaced_step_clear): Rename to...
7827 (displaced_step_reset): ... this. Just call displaced->reset ().
7828 (displaced_step_clear_cleanup): Rename to...
7829 (displaced_step_reset_cleanup): ... this.
7830 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
7831 (displaced_step_fixup): Likewise.
7832 (resume_1): Likewise.
7833 (handle_inferior_event): Restore child's memory before calling
7834 displaced_step_fixup on the parent.
7835 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
7836 to std::unique_ptr.
7837 <step_closure>: Change type to std::unique_ptr.
7838
5f661e03
SM
78392020-02-14 Simon Marchi <simon.marchi@efficios.com>
7840
7841 * arm-tdep.c: Include count-one-bits.h.
7842 (cleanup_block_store_pc): Use count_one_bits.
7843 (cleanup_block_load_pc): Use count_one_bits.
7844 (arm_copy_block_xfer): Use count_one_bits.
7845 (thumb2_copy_block_xfer): Use count_one_bits.
7846 (thumb_copy_pop_pc_16bit): Use count_one_bits.
7847 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
7848 (thumb_get_next_pcs_raw): Use count_one_bits.
7849 (arm_get_next_pcs_raw): Use count_one_bits_l.
7850 * arch/arm.c (bitcount): Remove.
7851 * arch/arm.h (bitcount): Remove.
7852
8084e579
TT
78532020-02-14 Tom Tromey <tromey@adacore.com>
7854
7855 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
7856 Update.
7857 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
7858 * dwarf2/loc.c (call_site_find_chain_1): Return
7859 unique_xmalloc_ptr.
7860 (call_site_find_chain): Likewise.
7861
258bf0ee
RB
78622020-02-14 Richard Biener <rguenther@suse.de>
7863
7864 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
7865 on expression with division operators.
7866
f98a8458
AKS
78672020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7868
7869 * MAINTAINERS (Write After Approval): Adding myself.
7870
d1437c0e
TT
78712020-02-12 Tom Tromey <tom@tromey.com>
7872
7873 * event-loop.c (event_data, gdb_event, event_handler_func):
7874 Remove.
7875
3d4560f7
TT
78762020-02-12 Tom Tromey <tom@tromey.com>
7877
7878 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
7879 (dwarf2_frame_objfile_data): Add comment.
7880 (find_comp_unit, set_comp_unit): New functions.
7881 (dwarf2_frame_find_fde): Use find_comp_unit.
7882 (dwarf2_build_frame_info): Use set_comp_unit.
7883
21982304
TT
78842020-02-12 Tom Tromey <tom@tromey.com>
7885
7886 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
7887 (comp_unit): Don't initialize objfile.
7888 (execute_cfa_program): Add text_offset parameter.
7889 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
7890 (dwarf2_frame_cache): Update.
7891 (dwarf2_build_frame_info): Don't set "objfile" member.
7892
4debb237
TT
78932020-02-12 Tom Tromey <tom@tromey.com>
7894
7895 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
7896 (decode_frame_entry): Likewise.
7897 (dwarf2_build_frame_info): Update.
7898
0d404d44
TT
78992020-02-12 Tom Tromey <tom@tromey.com>
7900
7901 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
7902 (decode_frame_entry_1): Use the comp_unit obstack.
7903
a7a3ae5c
TT
79042020-02-12 Tom Tromey <tom@tromey.com>
7905
7906 * dwarf2/frame.c (struct comp_unit): Add initializers and
7907 constructor.
7908 (dwarf2_frame_objfile_data): Store a comp_unit.
7909 (dwarf2_frame_find_fde): Update.
7910 (dwarf2_build_frame_info): Use "new".
7911
a9d65418
TT
79122020-02-12 Tom Tromey <tom@tromey.com>
7913
7914 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
7915 (dwarf2_fde_table): Typedef for std::vector.
7916 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
7917 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
7918 (decode_frame_entry): Update.
7919 (dwarf2_build_frame_info): Use "new".
7920
7559c217
CB
79212020-02-12 Christian Biesinger <cbiesinger@google.com>
7922
7923 * arm-tdep.c (arm_gdbarch_init): Update.
7924 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
7925 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
7926 have_neon, is_m>: Change to bool.
7927
aeefc73c
CB
79282020-02-12 Christian Biesinger <cbiesinger@google.com>
7929
7930 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
7931
d27b8e5f
TT
79322020-02-12 Tom Tromey <tom@tromey.com>
7933
7934 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
7935
cd5900f3
HD
79362020-02-12 Hannes Domani <ssbssa@yahoo.de>
7937
7938 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
7939 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
7940
f056b22b
TT
79412020-02-11 Tom Tromey <tom@tromey.com>
7942
7943 * psymtab.h: Update comment.
7944
f92ff6b5
TT
79452020-02-11 Tom Tromey <tom@tromey.com>
7946
7947 * gdb_obstack.h (struct auto_obstack): Use
7948 DISABLE_COPY_AND_ASSIGN.
7949
3fd6912b
TT
79502020-02-11 Tom Tromey <tom@tromey.com>
7951
7952 * dwarf2/frame.h (struct objfile): Don't forward declare.
7953
69ed9b74
CB
79542020-02-11 Christian Biesinger <cbiesinger@google.com>
7955
7956 * cris-tdep.c (cris_supply_gregset): Change signature to match
7957 what struct regset expects.
7958 (cris_regset): New struct.
7959 (fetch_core_registers): Remove.
7960 (cris_iterate_over_regset_sections): New function.
7961 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
7962 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
7963
bda874f6
CB
79642020-02-11 Christian Biesinger <cbiesinger@google.com>
7965
7966 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
7967 registers.
7968
754e1564
CB
79692020-02-11 Christian Biesinger <cbiesinger@google.com>
7970
7971 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
7972
8ddd8e0e
SM
79732020-02-11 Simon Marchi <simon.marchi@efficios.com>
7974
7975 * configure: Re-generate.
7976
898e7f60
SM
79772020-02-11 Simon Marchi <simon.marchi@efficios.com>
7978
7979 * configure: Re-generate.
7980
58df732b
SM
79812020-02-11 Simon Marchi <simon.marchi@efficios.com>
7982
7983 * acinclude: Update warning.m4 path.
7984 * warning.m4: Move to gdbsupport.
7985
da5bd37e
TT
79862020-02-11 Tom Tromey <tromey@adacore.com>
7987
7988 * remote.c (remote_console_output): Update.
7989 * printcmd.c (printf_command): Update.
7990 * event-loop.c (gdb_wait_for_event): Update.
7991 * linux-nat.c (sigchld_handler): Update.
7992 * remote-sim.c (gdb_os_write_stdout): Update.
7993 (gdb_os_flush_stdout): Update.
7994 (gdb_os_flush_stderr): Update.
7995 (gdb_os_write_stderr): Update.
7996 * exceptions.c (print_exception): Update.
7997 * remote-fileio.c (remote_fileio_func_read): Update.
7998 (remote_fileio_func_write): Update.
7999 * tui/tui.c (tui_enable): Update.
8000 * tui/tui-interp.c (tui_interp::init): Update.
8001 * utils.c (init_page_info): Update.
8002 (putchar_unfiltered, fputc_unfiltered): Update.
8003 (gdb_flush): Update.
8004 (emit_style_escape): Update.
8005 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8006 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8007 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8008 (stderr_file::write): Update.
8009 (stderr_file::puts): Update.
8010 * ui-file.h (ui_file_isatty, ui_file_write)
8011 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8012 (ui_file_puts): Don't declare.
8013
85f0dd3c
TV
80142020-02-10 Tom de Vries <tdevries@suse.de>
8015
8016 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8017 sentinel to char *.
8018
2e927613
TV
80192020-02-09 Tom de Vries <tdevries@suse.de>
8020
8021 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8022 filename if it matches "<artificial>".
8023
6bafc845
HD
80242020-02-09 Hannes Domani <ssbssa@yahoo.de>
8025
8026 * windows-tdep.c (struct enum_value_name): New struct.
8027 (create_enum): New function.
8028 (windows_get_siginfo_type): Create and use enum types.
8029
7928d571
HD
80302020-02-09 Hannes Domani <ssbssa@yahoo.de>
8031
8032 * NEWS: Mention $_siginfo support for Windows.
8033 * windows-nat.c (handle_exception): Set siginfo_er.
8034 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8035 (windows_xfer_siginfo): New function.
8036 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8037 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8038 (init_windows_gdbarch_data): New function.
8039 (get_windows_gdbarch_data): New function.
8040 (windows_get_siginfo_type): New function.
8041 (windows_init_abi): Register windows_get_siginfo_type.
8042 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8043
6751ebae
TT
80442020-02-08 Tom Tromey <tom@tromey.com>
8045
8046 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8047 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8048 <keep>: Declare method.
8049 <m_keep>: Remove member.
8050 <~cutu_reader>: Remove.
8051 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8052 (cutu_reader::cutu_reader): Update.
8053 (cutu_reader::keep): Rename from ~cutu_reader.
8054 (process_psymtab_comp_unit, build_type_psymtabs_1)
8055 (process_skeletonless_type_unit, load_partial_comp_unit)
8056 (load_full_comp_unit, dwarf2_read_addr_index)
8057 (read_signatured_type): Update.
8058
135f5437
TT
80592020-02-08 Tom Tromey <tom@tromey.com>
8060
8061 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8062 "want_partial_unit" parameter.
8063 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8064 Inline check for DW_TAG_partial_unit.
8065 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8066
9f66ff1c
TT
80672020-02-08 Tom Tromey <tom@tromey.com>
8068
8069 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8070 read.c.
8071 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8072 read.c.
8073
c8a7a66f
TT
80742020-02-08 Tom Tromey <tom@tromey.com>
8075
8076 * dwarf2/read.c (read_address): Move to comp-unit.c.
8077 (dwarf2_rnglists_process, dwarf2_ranges_process)
8078 (read_attribute_value, dwarf_decode_lines_1)
8079 (var_decode_location, decode_locdesc): Update.
8080 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8081 read.c. Remove "cu" parameter.
8082 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8083 method.
8084
8266302d
TT
80852020-02-08 Tom Tromey <tom@tromey.com>
8086
8087 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8088 (read_indirect_line_string): Update.
8089 * dwarf2/comp-unit.c (read_offset): Remove.
8090 (read_comp_unit_head): Update.
8091 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8092 method.
8093 (read_offset): Don't declare.
8094
4057dfde
TT
80952020-02-08 Tom Tromey <tom@tromey.com>
8096
8097 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8098 * dwarf2/read.c (struct comp_unit_head): Move to
8099 dwarf2/comp-unit.h.
8100 (enum class rcuh_kind): Move to comp-unit.h.
8101 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8102 (read_comp_unit_head, error_check_comp_unit_head)
8103 (read_and_check_comp_unit_head): Move to comp-unit.c.
8104 (read_offset, dwarf_unit_type_name): Likewise.
8105 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8106 (cutu_reader::cutu_reader, read_call_site_scope)
8107 (find_partial_die, follow_die_offset): Update.
8108 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8109
24aa364d
TT
81102020-02-08 Tom Tromey <tom@tromey.com>
8111
8112 * dwarf2/read.c (read_offset_1): Move to leb.c.
8113 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8114 (dwarf_decode_macro_bytes): Update.
8115 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8116 * dwarf2/leb.h (read_offset): Declare.
8117
2c7d5afc
TT
81182020-02-08 Tom Tromey <tom@tromey.com>
8119
8120 * dwarf2/read.c (dwarf2_section_size): Remove.
8121 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8122 Update.
8123 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8124
4075cb26
TT
81252020-02-08 Tom Tromey <tom@tromey.com>
8126
8127 * dwarf2/read.c (read_initial_length): Move to leb.c.
8128 * dwarf2/leb.h (read_initial_length): Declare.
8129 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8130 handle_nonstd parameter.
8131 * dwarf2/frame.c (read_initial_length): Remove.
8132 (decode_frame_entry_1): Update.
8133
09ba997f
TT
81342020-02-08 Tom Tromey <tom@tromey.com>
8135
8136 * dwarf2/loc.c (dwarf2_find_location_expression)
8137 (dwarf_evaluate_loc_desc::get_tls_address)
8138 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8139 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8140 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8141 (dwarf2_compile_property_to_c)
8142 (dwarf2_loc_desc_get_symbol_read_needs)
8143 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8144 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8145 (loclist_describe_location, loclist_tracepoint_var_ref)
8146 (loclist_generate_c_location): Update.
8147 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8148 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8149 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8150 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8151 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8152 (dwarf2_per_cu_data::addr_size)
8153 (dwarf2_per_cu_data::ref_addr_size)
8154 (dwarf2_per_cu_data::text_offset)
8155 (dwarf2_per_cu_data::addr_type): Now methods.
8156 (per_cu_header_read_in): Make per_cu "const".
8157 (dwarf2_version): Remove.
8158 (dwarf2_per_cu_data::int_type): Now a method.
8159 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8160 (set_die_type, read_array_type, read_subrange_index_type)
8161 (read_tag_string_type, read_subrange_type): Update.
8162 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8163 offset_size, ref_addr_size, text_offset, addr_type, version,
8164 objfile, int_type, addr_sized_int_type>: Declare methods.
8165
96c738c0
TT
81662020-02-08 Tom Tromey <tom@tromey.com>
8167
8168 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8169 Move earlier.
8170
8fdd972c
TT
81712020-02-08 Tom Tromey <tom@tromey.com>
8172
8173 * dwarf2/read.h (dwarf_line_debug): Declare.
8174 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8175 * dwarf2/read.c: Move line_header code to new files.
8176 (dwarf_line_debug): No longer static.
8177 * dwarf2/line-header.c: New file.
8178 * dwarf2/line-header.h: New file.
8179
03075812
TT
81802020-02-08 Tom Tromey <tom@tromey.com>
8181
8182 * dwarf2/read.c (struct line_header) <file_full_name,
8183 file_file_name>: Return unique_xmalloc_ptr.
8184 (line_header::file_file_name): Update.
8185 (line_header::file_full_name): Update.
8186 (dw2_get_file_names_reader): Update.
8187 (macro_start_file): Update.
8188
bb822404
TT
81892020-02-08 Tom Tromey <tom@tromey.com>
8190
8191 * dwarf2/read.c (struct line_header) <file_full_name,
8192 file_file_name>: Declare methods.
8193 (dw2_get_file_names_reader): Update.
8194 (file_file_name): Now a method.
8195 (file_full_name): Likewise.
8196 (macro_start_file): Update.
8197
009b64fc
TT
81982020-02-08 Tom Tromey <tom@tromey.com>
8199
8200 * dwarf2/read.c (dwarf_always_disassemble)
8201 (show_dwarf_always_disassemble): Move to loc.c.
8202 (_initialize_dwarf2_read): Move "always-disassemble" registration
8203 to loc.c.
8204 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8205 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8206 static.
8207 (show_dwarf_always_disassemble): Move from read.c.
8208 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8209
5895093f
TT
82102020-02-08 Tom Tromey <tom@tromey.com>
8211
8212 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8213 (create_quick_file_names_table): Return htab_up.
8214 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8215 Update.
8216 * dwarf2/read.h (struct dwarf2_per_objfile)
8217 <quick_file_names_table>: Now htab_up.
8218
b3b32279
TT
82192020-02-08 Tom Tromey <tom@tromey.com>
8220
8221 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8222
1d33d811
TT
82232020-02-08 Tom Tromey <tom@tromey.com>
8224
8225 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8226 Rewrite.
8227 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8228 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8229 (abbrev_table::abbrev_table): No longer inline.
8230 (ABBREV_HASH_SIZE): Remove.
8231 (abbrev_table::m_abbrevs): Now an htab_up.
8232
86de1d91
TT
82332020-02-08 Tom Tromey <tom@tromey.com>
8234
8235 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8236 (cutu_reader): Update.
8237 (build_type_psymtabs_1): Update.
8238 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8239 (abbrev_table::alloc_abbrev): Update.
8240 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8241 (abbrev_table::read): New static method, renamed from
8242 abbrev_table_read_table.
8243 (abbrev_table::alloc_abbrev)
8244 (abbrev_table::add_abbrev): Now private.
8245 (abbrev_table::abbrev_table): Now private.
8246 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8247
0335378b
TT
82482020-02-08 Tom Tromey <tom@tromey.com>
8249
8250 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8251 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8252 htab_up.
8253
48b490f2
TT
82542020-02-08 Tom Tromey <tom@tromey.com>
8255
8256 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8257 htab_up.
8258 (lookup_dwo_unit_in_dwp): Update.
8259 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8260 on obstack.
8261
bc68fb19
TT
82622020-02-08 Tom Tromey <tom@tromey.com>
8263
8264 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8265 obstack.
8266
d15acc42
TT
82672020-02-08 Tom Tromey <tom@tromey.com>
8268
8269 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8270 line_header_hash.
8271 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8272 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8273 Change type to htab_up.
8274
eaa5fa8b
TT
82752020-02-08 Tom Tromey <tom@tromey.com>
8276
8277 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8278 htab_up. Don't allocate on obstack.
8279 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8280 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8281 Change type to htab_up.
8282
b0b6a987
TT
82832020-02-08 Tom Tromey <tom@tromey.com>
8284
8285 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8286 Change type to htab_up.
8287 * dwarf2/read.c (create_signatured_type_table_from_index)
8288 (create_signatured_type_table_from_debug_names)
8289 (create_all_type_units, add_type_unit)
8290 (lookup_dwo_signatured_type, lookup_signatured_type)
8291 (process_skeletonless_type_unit): Update.
8292 (create_debug_type_hash_table, create_debug_types_hash_table):
8293 Change type of types_htab.
8294 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8295 htab_up. Don't allocate on obstack.
8296 (create_cus_hash_table): Change type of cus_htab parameter.
8297 (struct dwo_file) <cus, tus>: Now htab_up.
8298 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8299 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8300 (queue_and_load_all_dwo_tus): Update.
8301 * dwarf2/index-write.c (write_gdbindex): Update.
8302 (write_debug_names): Update.
8303
39856def
TT
83042020-02-08 Tom Tromey <tom@tromey.com>
8305
8306 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8307 dwarf2/read.c. Remove "next" member. Add constructor ntad
8308 destructor.
8309 (struct dwarf2_per_objfile) <queue>: New member.
8310 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8311 dwarf2/read.h.
8312 (dwarf2_queue, dwarf2_queue_tail): Remove.
8313 (class dwarf2_queue_guard): Add parameter to constructor. Use
8314 DISABLE_COPY_AND_ASSIGN.
8315 <m_per_objfile>: New member.
8316 <~dwarf2_queue_guard>: Rewrite.
8317 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8318 Update.
8319 (~dwarf2_queue_item): New.
8320
3e225074
TT
83212020-02-08 Tom Tromey <tom@tromey.com>
8322
8323 * dwarf2/read.c (struct die_info) <has_children>: New member.
8324 (dw2_get_file_names_reader): Remove has_children.
8325 (dw2_get_file_names): Update.
8326 (read_cutu_die_from_dwo): Remove has_children.
8327 (cutu_reader::init_tu_and_read_dwo_dies)
8328 (cutu_reader::cutu_reader): Update.
8329 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8330 Remove has_children.
8331 (build_type_psymtabs_1, process_skeletonless_type_unit)
8332 (load_partial_comp_unit, load_full_comp_unit): Update.
8333 (create_dwo_cu_reader): Remove has_children.
8334 (create_cus_hash_table, read_die_and_children): Update.
8335 (read_full_die_1,read_full_die): Remove has_children.
8336 (read_signatured_type): Update.
8337 (class cutu_reader) <has_children>: Remove.
8338
82ca8957
TT
83392020-02-08 Tom Tromey <tom@tromey.com>
8340
8341 * dwarf2/expr.c: Rename from dwarf2expr.c.
8342 * dwarf2/expr.h: Rename from dwarf2expr.h.
8343 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8344 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8345 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8346 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8347 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8348 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8349 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8350 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8351 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8352 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8353 * dwarf2/loc.c: Rename from dwarf2loc.c.
8354 * dwarf2/loc.h: Rename from dwarf2loc.h.
8355 * dwarf2/read.c: Rename from dwarf2read.c.
8356 * dwarf2/read.h: Rename from dwarf2read.h.
8357 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8358 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8359 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8360 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8361 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8362 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8363 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8364 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8365 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8366 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8367 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8368 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8369 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8370 Update.
8371 * Makefile.in (COMMON_SFILES): Update.
8372 (HFILES_NO_SRCDIR): Update.
8373
9e35d499
TT
83742020-02-08 Tom Tromey <tom@tromey.com>
8375
8376 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8377 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8378
1eba2311
TT
83792020-02-08 Tom Tromey <tom@tromey.com>
8380
8381 * dwarf2read.h (struct die_info): Don't declare.
8382
e41c2da2
TT
83832020-02-08 Tom Tromey <tom@tromey.com>
8384
8385 * dwarf2read.h (die_info_ptr): Remove typedef.
8386
4fc6c0d5
TT
83872020-02-08 Tom Tromey <tom@tromey.com>
8388
8389 * dwarf2read.c (read_call_site_scope)
8390 (handle_data_member_location, dwarf2_add_member_fn)
8391 (mark_common_block_symbol_computed, read_common_block)
8392 (attr_to_dynamic_prop, partial_die_info::read)
8393 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8394 (dwarf2_symbol_mark_computed, set_die_type): Update.
8395 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8396 method.
8397 (attr_form_is_block): Don't declare.
8398 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8399
cd6c91b4
TT
84002020-02-08 Tom Tromey <tom@tromey.com>
8401
8402 * dwarf2read.c (dwarf2_find_base_address, )
8403 (read_call_site_scope, rust_containing_type)
8404 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8405 (handle_data_member_location, dwarf2_add_member_fn)
8406 (get_alignment, read_structure_type, process_structure_scope)
8407 (mark_common_block_symbol_computed, read_common_block)
8408 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8409 (partial_die_info::read, read_attribute_value, new_symbol)
8410 (lookup_die_type, dwarf2_get_ref_die_offset)
8411 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8412 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8413 (dwarf2_symbol_mark_computed): Update.
8414 * dwarf2/attribute.h (struct attribute) <value_as_address,
8415 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8416 methods.
8417 (value_as_address, attr_form_is_section_offset)
8418 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8419 * dwarf2/attribute.c (attribute::value_as_address)
8420 (attribute::form_is_section_offset, attribute::form_is_constant)
8421 (attribute::form_is_ref): Now methods.
8422
162dce55
TT
84232020-02-08 Tom Tromey <tom@tromey.com>
8424
8425 * dwarf2read.c (struct attribute, DW_STRING)
8426 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8427 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8428 (attr_form_is_block, attr_form_is_section_offset)
8429 (attr_form_is_constant, attr_form_is_ref): Move.
8430 * dwarf2/attribute.h: New file.
8431 * dwarf2/attribute.c: New file, from dwarf2read.c.
8432 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8433
3054dd54
TT
84342020-02-08 Tom Tromey <tom@tromey.com>
8435
8436 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8437 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8438 Move.
8439 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8440 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8441 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8442 abbrev.c.
8443 * dwarf2/abbrev.h: New file.
8444 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8445 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8446
96b79293
TT
84472020-02-08 Tom Tromey <tom@tromey.com>
8448
8449 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8450 (dwarf2_section_size, dwarf2_get_section_info)
8451 (create_signatured_type_table_from_debug_names)
8452 (create_addrmap_from_aranges, read_debug_names_from_section)
8453 (get_gdb_index_contents_from_section, read_comp_unit_head)
8454 (error_check_comp_unit_head, read_abbrev_offset)
8455 (create_debug_type_hash_table, init_cu_die_reader)
8456 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8457 (read_comp_units_from_section, create_cus_hash_table)
8458 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8459 (create_dwp_v2_section, dwarf2_rnglists_process)
8460 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8461 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8462 (read_indirect_string_from_dwz, read_addr_index_1)
8463 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8464 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8465 (fill_in_loclist_baton): Update.
8466 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8467 get_containing_section, get_bfd_owner, get_bfd_section,
8468 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8469 (dwarf2_read_section, get_section_name, get_section_file_name)
8470 (get_containing_section, get_section_bfd_owner)
8471 (get_section_bfd_section, get_section_name, get_section_file_name)
8472 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8473 declare.
8474 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8475 (dwarf2_section_info::get_bfd_owner)
8476 (dwarf2_section_info::get_bfd_section)
8477 (dwarf2_section_info::get_name)
8478 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8479 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8480 (dwarf2_section_info::read): Now methods.
8481 * dwarf-index-write.c (class debug_names): Update.
8482
2c86cff9
TT
84832020-02-08 Tom Tromey <tom@tromey.com>
8484
8485 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8486 Move to dwarf2/section.h.
8487 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8488 (get_section_bfd_section, get_section_name)
8489 (get_section_file_name, get_section_id, get_section_flags)
8490 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8491 dwarf2/section.c.
8492 * dwarf2/section.h: New file.
8493 * dwarf2/section.c: New file, from dwarf2read.c.
8494 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8495
f4382c45
TT
84962020-02-08 Tom Tromey <tom@tromey.com>
8497
8498 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8499 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8500 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8501 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8502 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8503 * dwarf2/leb.h: New file, from dwarf2read.c.
8504 * dwarf2/leb.c: New file, from dwarf2read.c.
8505 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8506 Remove.
8507 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8508 (COMMON_SFILES): Add dwarf2/leb.c.
8509
01840b7a
JB
85102020-02-08 Joel Brobecker <brobecker@adacore.com>
8511
8512 GDB 9.1 released.
8513
dfcb27e4
IB
85142020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8515
8516 PR gdb/25190:
aac66a4c
SM
8517 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8518 * gdb/remote.c (remote_console_output): Update.
8519 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8520 (ui_file_puts): ...this.
8521 * gdb/ui-file.h (ui_file_puts): Add declaration.
8522 * gdb/utils.c (emit_style_escape): Update.
8523 (flush_wrap_buffer): Update.
8524 (fputs_maybe_filtered): Update.
8525 (fputs_unfiltered): Add function.
dfcb27e4 8526
faa17681
IB
85272020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8528
aac66a4c
SM
8529 * gdb/event-loop.c (gdb_wait_for_event): Update.
8530 * gdb/printcmd.c (printf_command): Update.
8531 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8532 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8533 (gdb_os_flush_stderr): Update.
8534 * gdb/remote.c (remote_console_output): Update.
8535 * gdb/ui-file.c (gdb_flush): Rename to...
8536 (ui_file_flush): ...this.
8537 (stderr_file::write): Update.
8538 (stderr_file::puts): Update.
8539 * gdb/ui-file.h (gdb_flush): Rename to...
8540 (ui_file_flush): ...this.
8541 * gdb/utils.c (gdb_flush): Add function.
8542 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8543
5abbbe1d
TT
85442020-02-07 Tom Tromey <tromey@adacore.com>
8545
8546 PR breakpoints/24915:
8547 * source.c (find_and_open_source): Do not check basenames_may_differ.
8548
919adfe8
TT
85492020-02-07 Tom Tromey <tom@tromey.com>
8550
8551 * README: Update gdbserver documentation.
8552 * gdbserver: Move to top level.
8553 * configure.tgt (build_gdbserver): Remove.
8554 * configure.ac: Remove --enable-gdbserver.
8555 * configure: Rebuild.
8556 * Makefile.in (distclean): Don't mention gdbserver.
8557
1d5d29e7
SV
85582020-02-06 Shahab Vahedi <shahab@synopsys.com>
8559
8560 * source-cache.c (source_cache::ensure): Surround
8561 get_plain_source_lines with a try/catch.
8562 (source_cache::get_line_charpos): Get rid of try/catch
8563 and only check for the return value of "ensure".
8564 * tui/tui-source.c (tui_source_window::set_contents):
8565 Simplify "nlines" calculation.
8566
6eb1129c
SV
85672020-02-06 Shahab Vahedi <shahab@synopsys.com>
8568
8569 * MAINTAINERS (Write After Approval): Add myself.
8570
c6a42d11
CB
85712020-02-05 Christian Biesinger <cbiesinger@google.com>
8572
8573 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8574 function call.
8575
c8ecdda6
CB
85762020-02-05 Christian Biesinger <cbiesinger@google.com>
8577
8578 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8579
f6480e70
MR
85802020-02-05 Maciej W. Rozycki <macro@wdc.com>
8581
8582 * nat/riscv-linux-tdesc.h: New file.
8583 * nat/riscv-linux-tdesc.c: New file, taking code from...
8584 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8585 ... here.
8586 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8587 NATDEPFILES.
8588
dcc9fbc6
AB
85892020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8590
8591 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8592 we don't set the fake simulator ptid to the null_ptid.
8593
719546c4
SM
85942020-02-03 Simon Marchi <simon.marchi@efficios.com>
8595
8596 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8597 * gdbthread.h (class thread_info) <resumed>: Likewise.
8598 * infrun.c (resume_1): Likewise.
8599 (proceed): Likewise.
8600 (infrun_thread_stop_requested): Likewise.
8601 (stop_all_threads): Likewise.
8602 (handle_inferior_event): Likewise.
8603 (restart_threads): Likewise.
8604 (finish_step_over): Likewise.
8605 (keep_going_stepped_thread): Likewise.
8606 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8607 (linux_handle_extended_wait): Likewise.
8608 * record-btrace.c (get_thread_current_frame_id): Likewise.
8609 * record-full.c (record_full_wait_1): Likewise.
8610 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8611 * target.c (target_resume): Likewise.
8612 * thread.c (set_running_thread): Likewise.
8613
e409c542
AKS
86142020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8615
8616 * f-valprint.c (f77_print_array_1): Changed datatype of index
8617 variable to LONGEST from int to enable it to contain bound
8618 values correctly.
8619
ee98c0da
MR
86202020-02-03 Maciej W. Rozycki <macro@wdc.com>
8621
8622 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8623 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8624 offsets according to FLEN determined.
8625 (riscv_linux_nat_target::read_description): Determine FLEN
8626 dynamically.
8627 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8628 according to FLEN determined.
8629 (riscv_linux_nat_target::store_registers): Likewise.
8630
aa66aac4
SV
86312020-02-01 Shahab Vahedi <shahab@synopsys.com>
8632
8633 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8634 when reg->group is empty and reggroup is not.
8635
fd9faca8
TT
86362020-01-31 Tom Tromey <tromey@adacore.com>
8637
8638 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8639 Call beneath target's mourn_inferior after unpushing.
8640
42330a68
AB
86412020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8642
8643 PR tui/9765
8644 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8645 have enough lines to fill the screen, still return the lowest
8646 address we found.
8647
7a27a45b
AB
86482020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8649
8650 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8651 '-', '<', and '>' commands.
8652
c47f70e2
PA
86532020-01-29 Pedro Alves <palves@redhat.com>
8654 Sergio Durigan Junior <sergiodj@redhat.com>
8655
8656 * infcmd.c (construct_inferior_arguments): Assert that
8657 'argc' is greater than 0.
8658
5133a315
LM
86592020-01-29 Luis Machado <luis.machado@linaro.org>
8660
8661 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8662 (BRK_INSN_MASK): Define to 0xd4200000.
8663 (aarch64_program_breakpoint_here_p): New function.
8664 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8665 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8666 breakpoint.c.
8667 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8668 breakpoint.h
8669 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8670 call gdbarch_program_breakpoint_here_p.
8671 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8672 default_program_breakpoint_here_p, changed return type to bool and
8673 simplified.
8674 * breakpoint.h (program_breakpoint_here): Moved prototype to
8675 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8676 return type to bool.
8677 * gdbarch.c: Regenerate.
8678 * gdbarch.h: Regenerate.
8679 * gdbarch.sh (program_breakpoint_here_p): New method.
8680 * infrun.c (handle_signal_stop): Call
8681 gdbarch_program_breakpoint_here_p.
8682
168f8c6b
TT
86832020-01-26 Tom Tromey <tom@tromey.com>
8684
8685 * ctfread.c (struct ctf_fp_info): Reindent.
8686 (_initialize_ctfread): Remove.
8687
128a391f
TT
86882020-01-26 Tom Tromey <tom@tromey.com>
8689
8690 * psymtab.c (partial_map_expand_apply)
8691 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8692 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8693 (psym_print_stats, psym_expand_symtabs_for_function)
8694 (psym_map_symbol_filenames, psym_map_matching_symbols)
8695 (psym_expand_symtabs_matching)
8696 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8697 (maintenance_check_psymtabs): Use new methods.
8698 * psympriv.h (struct partial_symtab) <readin_p,
8699 get_compunit_symtab>: New methods.
8700 <readin, compunit_symtab>: Remove members.
8701 (struct standard_psymtab): New.
8702 (struct legacy_psymtab): Derive from standard_psymtab.
8703 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8704 standard_psymtab.
8705 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8706
0494dbec
TT
87072020-01-26 Tom Tromey <tom@tromey.com>
8708
8709 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8710 read_dependencies. Add assert.
8711 * psymtab.c (partial_symtab::read_dependencies): New method.
8712 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8713 method.
8714 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8715 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8716 read_dependencies.
8717 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8718 Add assert.
8719
8566b89b
TT
87202020-01-26 Tom Tromey <tom@tromey.com>
8721
8722 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8723 Call expand_psymtab.
8724 (xcoff_read_symtab): Call expand_psymtab.
8725 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8726 legacy_expand_psymtab.
8727 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8728 method.
8729 (struct legacy_psymtab) <expand_psymtab>: Implement.
8730 <legacy_expand_psymtab>: New member.
8731 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8732 (parse_partial_symbols): Set legacy_expand_psymtab.
8733 (psymtab_to_symtab_1): Change argument order. Call
8734 expand_psymtab.
8735 (new_psymtab): Set legacy_expand_psymtab.
8736 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8737 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8738 expand_psymtab.
8739 (dwarf2_psymtab::expand_psymtab): Rename from
8740 psymtab_to_symtab_1. Call expand_psymtab.
8741 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8742 (dbx_end_psymtab): Likewise.
8743 (dbx_psymtab_to_symtab_1): Change argument order. Call
8744 expand_psymtab.
8745 (dbx_read_symtab): Call expand_psymtab.
8746 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8747 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8748 (ctf_psymtab::read_symtab): Call expand_psymtab.
8749
077cbab2
TT
87502020-01-26 Tom Tromey <tom@tromey.com>
8751
8752 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8753 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8754 messages.
8755 * mdebugread.c (mdebug_read_symtab): Remove prints.
8756 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8757 assert.
8758 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8759
891813be
TT
87602020-01-26 Tom Tromey <tom@tromey.com>
8761
8762 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8763 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8764 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8765 legacy_symtab.
8766 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8767 * psymtab.c (psymtab_to_symtab): Call method.
8768 (dump_psymtab): Update.
8769 * psympriv.h (struct partial_symtab): Add virtual destructor.
8770 <read_symtab>: New method.
8771 (struct legacy_symtab): New.
8772 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8773 (struct pst_map) <pst>: Now a legacy_psymtab.
8774 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8775 (new_psymtab): Use legacy_psymtab.
8776 * dwarf2read.h (struct dwarf2_psymtab): New.
8777 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8778 * dwarf2read.c (dwarf2_create_include_psymtab)
8779 (dwarf2_build_include_psymtabs, create_type_unit_group)
8780 (create_partial_symtab, process_psymtab_comp_unit_reader)
8781 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8782 (set_partial_user): Use dwarf2_psymtab.
8783 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8784 (psymtab_to_symtab_1, process_full_comp_unit)
8785 (process_full_type_unit, dwarf2_ranges_read)
8786 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8787 (dwarf_decode_lines): Use dwarf2_psymtab.
8788 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8789 (add_address_entry_worker, write_one_signatured_type)
8790 (recursively_count_psymbols, recursively_write_psymbols)
8791 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8792 (write_debug_names): Likewise.
8793 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8794 <pst>: Now a legacy_psymtab.
8795 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8796 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8797 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8798 * ctfread.c (struct ctf_psymtab): New.
8799 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8800 ctf_psymtab.
8801 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
8802 (create_partial_symtab): Return a ctf_psymtab.
8803 (scan_partial_symbols): Update.
8804
c3693a1d
TT
88052020-01-26 Tom Tromey <tom@tromey.com>
8806
8807 * xcoffread.c (xcoff_start_psymtab): Use new.
8808 * psymtab.c (partial_symtab::partial_symtab): New constructor,
8809 renamed from start_psymtab_common.
8810 * psympriv.h (struct partial_symtab): Add new constructor.
8811 (start_psymtab_common): Don't declare.
8812 * mdebugread.c (parse_partial_symbols): Use new.
8813 * dwarf2read.c (create_partial_symtab): Use new.
8814 * dbxread.c (start_psymtab): Use new.
8815 * ctfread.c (create_partial_symtab): Use new.
8816
32caafd0
TT
88172020-01-26 Tom Tromey <tom@tromey.com>
8818
8819 * xcoffread.c (xcoff_end_psymtab): Use new.
8820 * psymtab.c (start_psymtab_common): Use new.
8821 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
8822 Update.
8823 * psympriv.h (struct partial_symtab): Add parameters to
8824 constructor. Don't inline.
8825 (allocate_psymtab): Don't declare.
8826 * mdebugread.c (new_psymtab): Use new.
8827 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
8828 * dbxread.c (dbx_end_psymtab): Use new.
8829
abaa2f23
TT
88302020-01-26 Tom Tromey <tom@tromey.com>
8831
8832 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
8833 allocate_psymtab. Update documentation.
8834 * psymtab.c (psymtab_storage::install_psymtab): Rename from
8835 allocate_psymtab. Do not use new.
8836 (allocate_psymtab): Use new. Update.
8837
6d94535f
TT
88382020-01-26 Tom Tromey <tom@tromey.com>
8839
8840 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8841 * psymtab.c (psym_print_stats): Update.
8842 * psympriv.h (struct partial_symtab) <readin,
8843 psymtabs_addrmap_supported, anonymous>: Now bool.
8844 * mdebugread.c (psymtab_to_symtab_1): Update.
8845 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
8846 (build_type_psymtabs_reader, psymtab_to_symtab_1)
8847 (process_full_comp_unit, process_full_type_unit): Update.
8848 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8849 * ctfread.c (psymtab_to_symtab): Update.
8850
6f17252b
TT
88512020-01-26 Tom Tromey <tom@tromey.com>
8852
8853 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
8854 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
8855 * psymtab.c (psymtab_storage): Delete psymtabs.
8856 (psymtab_storage::allocate_psymtab): Use new.
8857 (psymtab_storage::discard_psymtab): Use delete.
8858 * psympriv.h (struct partial_symtab): Add constructor and
8859 initializers.
8860
f6f1cebc
TT
88612020-01-26 Tom Tromey <tom@tromey.com>
8862
8863 * machoread.c: Do not include psympriv.h.
8864
e47e48f6
PW
88652020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8866
8867 * NEWS: Mention the new option and the set/show commands.
8868
a2fedca9
PW
88692020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8870
8871 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
8872 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
8873 (validate_exec_file): New variables, enums, functions.
8874 (exec_file_locate_attach, print_section_info): Style the filenames.
8875 (_initialize_exec): Install show_exec_file_mismatch_command and
8876 set_exec_file_mismatch_command.
8877 * gdbcore.h (validate_exec_file): Declare.
8878 * infcmd.c (attach_command): Call validate_exec_file.
8879 * remote.c ( remote_target::remote_add_inferior): Likewise.
8880
7ffa82e1
AB
88812020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8882
8883 * frame.c (find_frame_sal): Move call to get_next_frame into more
8884 inner scope.
8885 * inline-frame.c (inilne_state) <inline_state>: Update argument
8886 types.
8887 (inilne_state) <skipped_symbol>: Rename to...
8888 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
8889 (skip_inline_frames): Build vector of skipped symbols and use this
8890 to reate the inline_state.
8891 (inline_skipped_symbol): Add a comment and some assertions, fetch
8892 skipped symbol from the list.
8893
3d92a3e3
AB
88942020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8895
8896 * buildsym.c (lte_is_less_than): Delete.
8897 (buildsym_compunit::end_symtab_with_blockvector): Create local
8898 lambda function to sort line table entries, and use
8899 std::stable_sort instead of std::sort.
8900 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
8901 markers when looking for a previous line.
8902
94a72be7
AB
89032020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8904
8905 * dwarf2read.c (lnp_state_machine::record_line): Include
8906 end_sequence parameter in debug print out. Record the line if we
8907 are at an end_sequence marker even if it's not the start of a
8908 statement.
8909 * symmisc.c (maintenance_print_one_line_table): Print end of
8910 sequence markers with 'END' not '0'.
8911
53af73bf
PA
89122020-01-24 Pedro Alves <palves@redhat.com>
8913
8914 PR gdb/25410
8915 * thread.c (scoped_restore_current_thread::restore): Use
8916 switch_to_inferior_no_thread.
8917 * exec.c: Include "progspace-and-thread.h".
8918 (add_target_sections, remove_target_sections):
8919 scoped_restore_current_pspace_and_thread instead of
8920 scoped_restore_current_thread.
8921 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
8922 and aspace to the inferior before calling clone_program_space.
8923 Remove stale comment.
8924
3050c6f4
CB
89252020-01-24 Christian Biesinger <cbiesinger@google.com>
8926
8927 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
8928 (arm_netbsd_nat_target::fetch_registers): ...this.
8929 (arm_nbsd_nat_target::store_registers): Rename to...
8930 (arm_netbsd_nat_target::store_registers): ...this.
8931
73685c7e
CB
89322020-01-24 Christian Biesinger <cbiesinger@google.com>
8933
8934 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8935 register_t.
8936
89203d40
CB
89372020-01-24 Christian Biesinger <cbiesinger@google.com>
8938
8939 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
8940 Update comment.
8941 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
8942 Likewise.
8943 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
8944 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
8945 the correct replacement (iterate_over_regset_sections).
8946 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
8947 Update comment.
8948
1ba1ac88
AB
89492020-01-24 Graham Markall <graham.markall@embecosm.com>
8950
8951 PR gdb/23718
8952 * gdb/python/python.c (execute_gdb_command): Call
8953 async_enable_stdin in catch block.
8954
f3364a6d
AB
89552020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8956
8957 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
8958 SWITCH_THRU_ALL_UIS.
8959
733d0a67
AB
89602020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8961
8962 PR tui/9765
8963 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
8964 comment, add extra parameter, and update to store previous symbol
8965 when appropriate.
8966 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
8967 add extra parameter.
8968 * tui/tui-disasm.c (tui_disassemble): Update header comment,
8969 remove unneeded parameter, add try/catch around gdb_print_insn,
8970 rewrite to add items to asm_lines vector.
8971 (tui_find_backward_disassembly_start_address): New function.
8972 (tui_find_disassembly_address): Updated throughout.
8973 (tui_disasm_window::set_contents): Update for changes to
8974 tui_disassemble.
8975 (tui_disasm_window::do_scroll_vertical): No need to adjust the
8976 number of lines to scroll.
8977
b3b3bada
SM
89782020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
8979
8980 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
8981 (SECT_OFF_DATA): Likewise.
8982 (SECT_OFF_RODATA): Likewise.
8983 (SECT_OFF_TEXT): Likewise.
8984 (SECT_OFF_BSS): Likewise.
8985 (struct objfile) <text_section_offset, data_section_offset>: New
8986 methods.
8987 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
8988 objfile::text_section_offset.
8989 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
8990 * coffread.c (coff_symtab_read): Likewise.
8991 (enter_linenos): Likewise.
8992 (process_coff_symbol): Likewise.
8993 * ctfread.c (get_objfile_text_range): Likewise.
8994 * dtrace-probe.c (dtrace_probe::get_relocated_address):
8995 Use objfile::data_section_offset.
8996 * dwarf2-frame.c (execute_cfa_program): Use
8997 objfile::text_section_offset.
8998 (dwarf2_frame_find_fde): Likewise.
8999 * dwarf2read.c (create_addrmap_from_index): Likewise.
9000 (create_addrmap_from_aranges): Likewise.
9001 (dw2_find_pc_sect_compunit_symtab): Likewise.
9002 (process_psymtab_comp_unit_reader): Likewise.
9003 (add_partial_symbol): Likewise.
9004 (add_partial_subprogram): Likewise.
9005 (process_full_comp_unit): Likewise.
9006 (read_file_scope): Likewise.
9007 (read_func_scope): Likewise.
9008 (read_lexical_block_scope): Likewise.
9009 (read_call_site_scope): Likewise.
9010 (dwarf2_rnglists_process): Likewise.
9011 (dwarf2_ranges_process): Likewise.
9012 (dwarf2_ranges_read): Likewise.
9013 (dwarf_decode_lines_1): Likewise.
9014 (new_symbol): Likewise.
9015 (dwarf2_fetch_die_loc_sect_off): Likewise.
9016 (dwarf2_per_cu_text_offset): Likewise.
9017 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9018 * hppa-tdep.c (read_unwind_info): Likewise.
9019 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9020 * psympriv.h (struct partial_symtab): Likewise.
9021 * psymtab.c (find_pc_sect_psymtab): Likewise.
9022 * solib-svr4.c (enable_break): Likewise.
9023 * stap-probe.c (relocate_address): Use
9024 objfile::data_section_offset.
9025 * xcoffread.c (enter_line_range): Use
9026 objfile::text_section_offset.
9027 (read_xcoff_symtab): Likewise.
9028
ab53f382
SM
90292020-01-23 Simon Marchi <simon.marchi@efficios.com>
9030
9031 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9032 declaration to narrower scopes.
9033
e7eee665
SM
90342020-01-23 Simon Marchi <simon.marchi@efficios.com>
9035
9036 * darwin-nat.h (struct darwin_exception_msg, enum
9037 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9038 Move up.
9039 (class darwin_nat_target) <wait_1, check_new_threads,
9040 decode_exception_message, decode_message, stop_inferior,
9041 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9042 * darwin-nat.c (darwin_check_new_threads): Rename to...
9043 (darwin_nat_target::check_new_threads): ... this.
9044 (darwin_suspend_inferior_it): Remove.
9045 (darwin_decode_exception_message): Rename to...
9046 (darwin_nat_target::decode_exception_message): ... this.
9047 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9048 (darwin_decode_message): Rename to...
9049 (darwin_nat_target::decode_message): ... this.
9050 (cancel_breakpoint): Rename to...
9051 (darwin_nat_target::cancel_breakpoint): ... this.
9052 (darwin_wait): Rename to...
9053 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9054 instead of iterate_over_inferiors.
9055 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9056 (darwin_stop_inferior): Rename to...
9057 (darwin_nat_target::stop_inferior): ... this.
9058 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9059 (darwin_init_thread_list): Rename to...
9060 (darwin_nat_target::init_thread_list): ... this.
9061 (darwin_ptrace_him): Rename to...
9062 (darwin_nat_target::ptrace_him): ... this.
9063 (darwin_nat_target::create_inferior): Pass lambda function to
9064 fork_inferior.
9065 (darwin_nat_target::detach): Call stop_inferior instead of
9066 darwin_stop_inferior.
9067 * fork-inferior.h (fork_inferior): Change init_trace_fun
9068 parameter to gdb::function_view.
9069 * fork-inferior.c (fork_inferior): Likewise.
9070
c162ed3e
HD
90712020-01-23 Hannes Domani <ssbssa@yahoo.de>
9072
9073 * i386-cygwin-tdep.c (core_process_module_section): Update.
9074 * windows-nat.c (struct lm_info_windows): Add text_offset.
9075 (windows_xfer_shared_libraries): Update.
9076 * windows-tdep.c (windows_xfer_shared_library):
9077 Add text_offset_cached argument.
9078 * windows-tdep.h (windows_xfer_shared_library): Update.
9079
a1237872
SM
90802020-01-21 Simon Marchi <simon.marchi@efficios.com>
9081
9082 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9083
b3ee6dd9
SM
90842020-01-21 Simon Marchi <simon.marchi@efficios.com>
9085
9086 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9087 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9088 replace with range-based for.
9089 (gdbsim_interrupt_inferior): Remove.
9090 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9091 with a range-based for. Inline code from
9092 gdbsim_interrupt_inferior.
9093
f9fac3c8
SM
90942020-01-21 Simon Marchi <simon.marchi@efficios.com>
9095
9096 * infrun.c (proceed): Fix indentation.
9097
f6474de9
TT
90982020-01-21 Tom Tromey <tromey@adacore.com>
9099
9100 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9101 * python/python.c (python_extension_ops): Update.
9102 (gdbpy_colorize): New function.
9103 * python/lib/gdb/__init__.py (colorize): New function.
9104 * extension.h (ext_lang_colorize): Declare.
9105 * extension.c (ext_lang_colorize): New function.
9106 * extension-priv.h (struct extension_language_ops) <colorize>: New
9107 member.
9108 * cli/cli-style.c (_initialize_cli_style): Update help text.
9109
f0c702d4
LM
91102020-01-21 Luis Machado <luis.machado@linaro.org>
9111
9112 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9113 <cond>: Change type to bool.
9114 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9115 (aarch64_displaced_step_cb): Likewise.
9116 (aarch64_displaced_step_tb): Likewise.
9117
1ab139e5
LM
91182020-01-21 Luis Machado <luis.machado@linaro.org>
9119
9120 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9121 output.
9122
0c271889
LM
91232020-01-21 Luis Machado <luis.machado@linaro.org>
9124
9125 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9126 <pc_adjust>: Adjust the documentation.
9127 (aarch64_displaced_step_fixup): Check if PC really moved before
9128 adjusting it.
9129
4d89c1c7
TT
91302020-01-19 Tom Tromey <tom@tromey.com>
9131
9132 * disasm.c (~gdb_disassembler): New destructor.
9133 (gdb_buffered_insn_length): Call disassemble_free_target.
9134 * disasm.h (class gdb_disassembler): Declare destructor. Use
9135 DISABLE_COPY_AND_ASSIGN.
9136
c0ab21c2
TT
91372020-01-19 Tom Tromey <tom@tromey.com>
9138
9139 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9140 (die_reader_func_ftype): Remove.
9141 (cutu_reader): New class.
9142 (dw2_get_file_names_reader): Remove "data" parameter.
9143 (dw2_get_file_names): Use cutu_reader.
9144 (create_debug_type_hash_table): Update.
9145 (read_cutu_die_from_dwo): Update comment.
9146 (lookup_dwo_unit): Add dwo_name parameter.
9147 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9148 die_reader_func_ftype and data parameters.
9149 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9150 Remove die_reader_func_ftype and data parameters.
9151 (~cutu_reader): New; from init_cutu_and_read_dies.
9152 (cutu_reader::cutu_reader): Rename from
9153 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9154 and data parameters.
9155 (init_cutu_and_read_dies_simple): Remove.
9156 (struct process_psymtab_comp_unit_data): Remove.
9157 (process_psymtab_comp_unit_reader): Remove data parameter; add
9158 want_partial_unit and pretend_language parameters.
9159 (process_psymtab_comp_unit): Use cutu_reader.
9160 (build_type_psymtabs_reader): Remove data parameter.
9161 (build_type_psymtabs_1): Use cutu_reader.
9162 (process_skeletonless_type_unit): Likewise.
9163 (load_partial_comp_unit_reader): Remove.
9164 (load_partial_comp_unit): Use cutu_reader.
9165 (load_full_comp_unit_reader): Remove.
9166 (load_full_comp_unit): Use cutu_reader.
9167 (struct create_dwo_cu_data): Remove.
9168 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9169 dwo_unit parameters.
9170 (create_cus_hash_table): Use cutu_reader.
9171 (struct dwarf2_read_addr_index_data): Remove.
9172 (dwarf2_read_addr_index_reader): Remove.
9173 (dwarf2_read_addr_index): Use cutu_reader.
9174 (read_signatured_type_reader): Remove.
9175 (read_signatured_type): Use cutu_reader.
9176
45bbae5c
TT
91772020-01-19 Tom Tromey <tom@tromey.com>
9178
9179 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9180 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9181 (tui_wrefresh): Declare.
9182 * tui/tui-wingeneral.c (suppress_output): New global.
9183 (tui_suppress_output, ~tui_suppress_output): New constructor and
9184 destructor.
9185 (tui_wrefresh): New function.
9186 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9187 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9188 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9189 method.
9190 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9191 tui_wrefresh.
9192 (tui_data_window::no_refresh): New method.
9193 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9194 (tui_reg_command): Use tui_suppress_output
9195 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9196 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9197 method.
9198 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9199
4f13c1c0
TT
92002020-01-19 Tom Tromey <tom@tromey.com>
9201
9202 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9203 Handle case where symtab is null.
9204
fa47e446
SM
92052020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9206
9207 * linux-fork.c (one_fork_p): Simplify.
9208
26f42329
SM
92092020-01-17 Simon Marchi <simon.marchi@efficios.com>
9210
9211 * top.c (struct qt_args): Remove.
9212 (kill_or_detach): Change return type to void, replace `void *`
9213 parameter with a proper one.
9214 (print_inferior_quit_action): Likewise.
9215 (quit_confirm): Use range-based for loop to iterate over inferiors.
9216 (quit_force): Likewise.
9217
a9ac81b1
SM
92182020-01-17 Simon Marchi <simon.marchi@efficios.com>
9219
9220 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9221 `void *` parameter with proper parameters.
9222 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9223 (print_one_inferior): Change return type to void, replace `void *`
9224 parameter with proper parameters.
9225 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9226 inferiors.
9227 (get_other_inferior): Remove.
9228 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9229 inferiors.
9230
788eca49
SM
92312020-01-17 Simon Marchi <simon.marchi@efficios.com>
9232
9233 * mi/mi-interp.c (report_initial_inferior): Remove.
9234 (mi_interp::init): Use range-based for to iterate over inferiors.
9235
d9bc85b6
SM
92362020-01-17 Simon Marchi <simon.marchi@efficios.com>
9237
9238 * python/py-inferior.c (build_inferior_list): Remove.
9239 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9240
40c94099
CB
92412020-01-16 Christian Biesinger <cbiesinger@google.com>
9242
9243 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9244 (btrace_stitch_trace): Likewise.
9245 * charset.c (intermediate_encoding): Likewise (vaild).
9246 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9247 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9248 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9249
e0cdfe3c
HD
92502020-01-16 Hannes Domani <ssbssa@yahoo.de>
9251
9252 * windows-tdep.c (windows_get_tlb_type):
9253 Add rtl_user_process_parameters type.
9254
790f1718 92552020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9256 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9257
9258 PR build/24805
9259 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9260 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9261 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9262 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9263 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9264 (ps_plog): Redeclare exported functions with default visibility.
9265
3112ed97
NA
92662020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9267
9268 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9269 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9270
8dc3273e
SM
92712020-01-15 Simon Marchi <simon.marchi@efficios.com>
9272
9273 * infcmd.c (post_create_inferior): Use get_thread_regcache
9274 instead of get_current_regcache.
9275
ff47f4f0
TT
92762020-01-14 Tom Tromey <tom@tromey.com>
9277
9278 PR symtab/12535:
9279 * python/python.c (gdbpy_decode_line): Treat empty string the same
9280 as no argument.
9281
975f45b7
TT
92822020-01-14 Tom Tromey <tom@tromey.com>
9283
9284 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9285
25e57356
TT
92862020-01-14 Tom Tromey <tom@tromey.com>
9287
9288 * nat/linux-btrace.c: Don't include <config.h>.
9289 * nat/linux-ptrace.c: Don't include <config.h>.
9290 * nat/x86-linux-dregs.c: Don't include <config.h>.
9291
05ea2a05
TT
92922020-01-14 Tom Tromey <tom@tromey.com>
9293
9294 * configure: Rebuild.
9295 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9296
01027315
TT
92972020-01-14 Tom Tromey <tom@tromey.com>
9298
9299 * nat/x86-linux-dregs.c: Include configh.h.
9300 * nat/linux-ptrace.c: Include configh.h.
9301 * nat/linux-btrace.c: Include configh.h.
9302 * defs.h: Include config.h, bfd.h.
9303 * configure.ac: Don't source common.host.
9304 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9305 * configure: Rebuild.
9306 * acinclude.m4: Update path.
9307 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9308 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9309 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9310 (CLIBS): Add LIBSUPPORT.
9311 (CDEPS): Likewise.
9312 (COMMON_SFILES): Remove gdbsupport files.
9313 (HFILES_NO_SRCDIR): Likewise.
9314 (stamp-version): Update path to create-version.sh.
9315 (ALLDEPFILES): Remove gdbsupport files.
9316
b2ceabe8
TT
93172020-01-14 Tom Tromey <tom@tromey.com>
9318
9319 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9320 USE_WIN32API when needed.
9321 * configure.ac (USE_WIN32API): Don't define.
9322 (WIN32LIBS): Use WIN32APILIBS.
9323 * configure: Rebuild.
9324
25c51f71
TT
93252020-01-14 Tom Tromey <tom@tromey.com>
9326
9327 * configure: Rebuild.
9328 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9329
717c684d
BE
93302020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9331
9332 * skip.c (skip_function_command): Make skip w/o arguments use the
9333 name of the inlined function if pc is inside any inlined function.
9334
7da6a5b9
LM
93352020-01-14 Luis Machado <luis.machado@linaro.org>
9336
9337 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9338 * infrun.c (resume_1): Likewise.
9339 (handle_inferior_event): Remove stale comment.
9340 * linux-nat.c (linux_nat_target::resume): Update comments.
9341 (save_stop_reason): Likewise.
9342 (linux_nat_filter_event): Likewise.
9343 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9344
44e4c775
AB
93452020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9346
9347 * elfread.c (record_minimal_symbol): Set section index to 0 for
9348 non-allocatable sections.
9349
18a8505e
AT
9350
93512020-01-13 Ali Tamur <tamur@google.com>
9352
9353 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9354 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9355 to gdb::optional. Update comments.
9356 (dwo_file): Update comments.
9357 (read_attribute): Update API to take an additional out parameter,
9358 need_reprocess. This is used to mark attributes that need other
9359 attributes (e.g. str_offsets_base) for correct computation which may not
9360 have been read yet.
9361 (read_attribute_reprocess): New function declaration.
9362 (read_addr_index): Likewise.
9363 (read_dwo_str_index): Likewise.
9364 (read_stub_str_index): Likewise.
9365 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9366 (lookup_addr_base): New function definition.
9367 (lookup_ranges_base): Likewise.
9368 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9369 lookup_ranges_base.
9370 (init_cutu_and_read_dies): Update comments.
9371 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9372 unit. This is used to inherit parent's str_offsets_base and addr_base.
9373 Update comments.
9374 (init_cutu_and_read_dies_simple): Reflect API changes.
9375 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9376 (create_cus_hash_table): Change API to take parent compile unit.
9377 Reflect API changes.
9378 (open_and_init_dwo_file): Reflect API changes.
9379 (dwarf2_get_pc_bounds): Update comments.
9380 (dwarf2_record_block_ranges): Likewise.
9381 (read_full_die_1): Change implementation to reprocess attributes that
9382 need str_offsets_base and addr_base.
9383 (partial_die_info::read): Likewise.
9384 (read_attribute_reprocess): New function definition.
9385 (read_attribute_value): Change API to take an additional out parameter,
9386 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9387 when a non-dwo compile unit has index based attributes.
9388 (read_attribute): Reflect API changes.
9389 (read_addr_index_1): Reflect API changes. Update comments.
9390 (dwarf2_read_addr_index_data): Reflect API changes.
9391 (dwarf2_read_addr_index): Likewise.
9392 (read_str_index): Change API and implementation. This becomes a helper
9393 to be used by the new string index related methods. Update error
9394 message and comments.
9395 (read_dwo_str_index): New function definition.
9396 (read_stub_str_index): Likewise.
9397 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9398 * symfile.h (dwarf2_debug_sections): Likewise.
9399 * xcoffread.c (dwarf2_debug_sections): Likewise.
9400
0cac9354
SM
94012020-01-13 Simon Marchi <simon.marchi@efficios.com>
9402
9403 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9404 core_reg_sect type to gdb_byte *.
9405 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9406 * cris-tdep.c (fetch_core_registers): Likewise.
9407 * corelow.c (core_target::get_core_register_section): Change
9408 type of `contents` to gdb::byte_vector.
9409
9a6d629c
AB
94102020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9411
9412 * tui/tui-wingeneral.c (box_win): Position the title in the center
9413 of the border.
9414
d8b2f9e3
SM
94152020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9416
9417 * corelow.c (core_target::get_core_register_section): Use
9418 std::vector instead of alloca.
9419
bb564c58
SM
94202020-01-13 Simon Marchi <simon.marchi@efficios.com>
9421
9422 * warning.m4: Add -Wmissing-declarations to build_warnings.
9423 * configure: Re-generate.
9424
6b366111
SM
94252020-01-13 Simon Marchi <simon.marchi@efficios.com>
9426
9427 * python/python.c (init__gdb_module): Add declaration.
9428
6c265988
SM
94292020-01-13 Simon Marchi <simon.marchi@efficios.com>
9430
9431 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9432 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9433 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9434 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9435 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9436 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9437 * ada-exp.y (_initialize_ada_exp): Add declaration.
9438 * ada-lang.c (_initialize_ada_language): Add declaration.
9439 * ada-tasks.c (_initialize_tasks): Add declaration.
9440 * agent.c (_initialize_agent): Add declaration.
9441 * aix-thread.c (_initialize_aix_thread): Add declaration.
9442 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9443 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9444 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9445 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9446 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9447 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9448 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9449 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9450 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9451 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9452 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9453 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9454 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9455 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9456 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9457 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9458 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9459 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9460 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9461 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9462 * annotate.c (_initialize_annotate): Add declaration.
9463 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9464 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9465 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9466 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9467 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9468 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9469 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9470 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9471 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9472 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9473 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9474 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9475 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9476 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9477 * auto-load.c (_initialize_auto_load): Add declaration.
9478 * auxv.c (_initialize_auxv): Add declaration.
9479 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9480 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9481 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9482 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9483 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9484 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9485 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9486 * breakpoint.c (_initialize_breakpoint): Add declaration.
9487 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9488 * btrace.c (_initialize_btrace): Add declaration.
9489 * charset.c (_initialize_charset): Add declaration.
9490 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9491 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9492 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9493 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9494 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9495 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9496 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9497 * coffread.c (_initialize_coffread): Add declaration.
9498 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9499 * compile/compile.c (_initialize_compile): Add declaration.
9500 * complaints.c (_initialize_complaints): Add declaration.
9501 * completer.c (_initialize_completer): Add declaration.
9502 * copying.c (_initialize_copying): Add declaration.
9503 * corefile.c (_initialize_core): Add declaration.
9504 * corelow.c (_initialize_corelow): Add declaration.
9505 * cp-abi.c (_initialize_cp_abi): Add declaration.
9506 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9507 * cp-support.c (_initialize_cp_support): Add declaration.
9508 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9509 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9510 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9511 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9512 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9513 * ctfread.c (_initialize_ctfread): Add declaration.
9514 * d-lang.c (_initialize_d_language): Add declaration.
9515 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9516 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9517 * dbxread.c (_initialize_dbxread): Add declaration.
9518 * dcache.c (_initialize_dcache): Add declaration.
9519 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9520 * disasm.c (_initialize_disasm): Add declaration.
9521 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9522 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9523 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9524 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9525 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9526 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9527 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9528 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9529 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9530 * elfread.c (_initialize_elfread): Add declaration.
9531 * exec.c (_initialize_exec): Add declaration.
9532 * extension.c (_initialize_extension): Add declaration.
9533 * f-lang.c (_initialize_f_language): Add declaration.
9534 * f-valprint.c (_initialize_f_valprint): Add declaration.
9535 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9536 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9537 * filesystem.c (_initialize_filesystem): Add declaration.
9538 * findcmd.c (_initialize_mem_search): Add declaration.
9539 * findvar.c (_initialize_findvar): Add declaration.
9540 * fork-child.c (_initialize_fork_child): Add declaration.
9541 * frame-base.c (_initialize_frame_base): Add declaration.
9542 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9543 * frame.c (_initialize_frame): Add declaration.
9544 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9545 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9546 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9547 * gcore.c (_initialize_gcore): Add declaration.
9548 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9549 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9550 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9551 * gdbarch.c (_initialize_gdbarch): Add declaration.
9552 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9553 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9554 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9555 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9556 * go-lang.c (_initialize_go_language): Add declaration.
9557 * go32-nat.c (_initialize_go32_nat): Add declaration.
9558 * guile/guile.c (_initialize_guile): Add declaration.
9559 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9560 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9561 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9562 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9563 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9564 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9565 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9566 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9567 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9568 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9569 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9570 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9571 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9572 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9573 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9574 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9575 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9576 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9577 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9578 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9579 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9580 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9581 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9582 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9583 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9584 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9585 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9586 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9587 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9588 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9589 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9590 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9591 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9592 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9593 * infcall.c (_initialize_infcall): Add declaration.
9594 * infcmd.c (_initialize_infcmd): Add declaration.
9595 * inflow.c (_initialize_inflow): Add declaration.
9596 * infrun.c (_initialize_infrun): Add declaration.
9597 * interps.c (_initialize_interpreter): Add declaration.
9598 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9599 * jit.c (_initialize_jit): Add declaration.
9600 * language.c (_initialize_language): Add declaration.
9601 * linux-fork.c (_initialize_linux_fork): Add declaration.
9602 * linux-nat.c (_initialize_linux_nat): Add declaration.
9603 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9604 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9605 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9606 * m2-lang.c (_initialize_m2_language): Add declaration.
9607 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9608 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9609 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9610 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9611 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9612 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9613 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9614 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9615 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9616 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9617 * machoread.c (_initialize_machoread): Add declaration.
9618 * macrocmd.c (_initialize_macrocmd): Add declaration.
9619 * macroscope.c (_initialize_macroscope): Add declaration.
9620 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9621 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9622 * maint.c (_initialize_maint_cmds): Add declaration.
9623 * mdebugread.c (_initialize_mdebugread): Add declaration.
9624 * memattr.c (_initialize_mem): Add declaration.
9625 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9626 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9627 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9628 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9629 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9630 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9631 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9632 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9633 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9634 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9635 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9636 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9637 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9638 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9639 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9640 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9641 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9642 * mipsread.c (_initialize_mipsread): Add declaration.
9643 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9644 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9645 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9646 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9647 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9648 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9649 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9650 * nto-procfs.c (_initialize_procfs): Add declaration.
9651 * objc-lang.c (_initialize_objc_language): Add declaration.
9652 * observable.c (_initialize_observer): Add declaration.
9653 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9654 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9655 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9656 * osabi.c (_initialize_gdb_osabi): Add declaration.
9657 * osdata.c (_initialize_osdata): Add declaration.
9658 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9659 * parse.c (_initialize_parse): Add declaration.
9660 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9661 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9662 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9663 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9664 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9665 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9666 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9667 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9668 * printcmd.c (_initialize_printcmd): Add declaration.
9669 * probe.c (_initialize_probe): Add declaration.
9670 * proc-api.c (_initialize_proc_api): Add declaration.
9671 * proc-events.c (_initialize_proc_events): Add declaration.
9672 * proc-service.c (_initialize_proc_service): Add declaration.
9673 * procfs.c (_initialize_procfs): Add declaration.
9674 * producer.c (_initialize_producer): Add declaration.
9675 * psymtab.c (_initialize_psymtab): Add declaration.
9676 * python/python.c (_initialize_python): Add declaration.
9677 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9678 * record-btrace.c (_initialize_record_btrace): Add declaration.
9679 * record-full.c (_initialize_record_full): Add declaration.
9680 * record.c (_initialize_record): Add declaration.
9681 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9682 * regcache.c (_initialize_regcache): Add declaration.
9683 * reggroups.c (_initialize_reggroup): Add declaration.
9684 * remote-notif.c (_initialize_notif): Add declaration.
9685 * remote-sim.c (_initialize_remote_sim): Add declaration.
9686 * remote.c (_initialize_remote): Add declaration.
9687 * reverse.c (_initialize_reverse): Add declaration.
9688 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9689 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9690 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9691 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9692 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9693 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9694 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9695 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9696 Add declaration.
9697 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9698 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9699 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9700 * rust-exp.y (_initialize_rust_exp): Add declaration.
9701 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9702 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9703 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9704 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9705 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9706 * score-tdep.c (_initialize_score_tdep): Add declaration.
9707 * ser-go32.c (_initialize_ser_dos): Add declaration.
9708 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9709 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9710 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9711 * ser-uds.c (_initialize_ser_socket): Add declaration.
9712 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9713 * serial.c (_initialize_serial): Add declaration.
9714 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9715 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9716 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9717 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9718 * skip.c (_initialize_step_skip): Add declaration.
9719 * sol-thread.c (_initialize_sol_thread): Add declaration.
9720 * solib-aix.c (_initialize_solib_aix): Add declaration.
9721 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9722 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9723 * solib-frv.c (_initialize_frv_solib): Add declaration.
9724 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9725 * solib-target.c (_initialize_solib_target): Add declaration.
9726 * solib.c (_initialize_solib): Add declaration.
9727 * source-cache.c (_initialize_source_cache): Add declaration.
9728 * source.c (_initialize_source): Add declaration.
9729 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9730 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9731 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9732 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9733 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9734 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9735 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9736 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9737 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9738 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9739 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9740 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9741 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9742 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9743 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9744 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9745 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9746 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9747 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9748 * stabsread.c (_initialize_stabsread): Add declaration.
9749 * stack.c (_initialize_stack): Add declaration.
9750 * stap-probe.c (_initialize_stap_probe): Add declaration.
9751 * std-regs.c (_initialize_frame_reg): Add declaration.
9752 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9753 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9754 * symfile.c (_initialize_symfile): Add declaration.
9755 * symmisc.c (_initialize_symmisc): Add declaration.
9756 * symtab.c (_initialize_symtab): Add declaration.
9757 * target.c (_initialize_target): Add declaration.
9758 * target-connection.c (_initialize_target_connection): Add
9759 declaration.
9760 * target-dcache.c (_initialize_target_dcache): Add declaration.
9761 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9762 * thread.c (_initialize_thread): Add declaration.
9763 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9764 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9765 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9766 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9767 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9768 * tracectf.c (_initialize_ctf): Add declaration.
9769 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9770 * tracefile.c (_initialize_tracefile): Add declaration.
9771 * tracepoint.c (_initialize_tracepoint): Add declaration.
9772 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9773 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9774 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9775 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9776 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9777 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9778 * tui/tui.c (_initialize_tui): Add declaration.
9779 * typeprint.c (_initialize_typeprint): Add declaration.
9780 * ui-style.c (_initialize_ui_style): Add declaration.
9781 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9782 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9783 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9784 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9785 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9786 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9787 * unittests/filtered_iterator-selftests.c
9788 (_initialize_filtered_iterator_selftests): Add declaration.
9789 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9790 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9791 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9792 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9793 * unittests/main-thread-selftests.c
9794 (_initialize_main_thread_selftests): Add declaration.
9795 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9796 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9797 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9798 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9799 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9800 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9801 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
9802 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
9803 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
9804 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
9805 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
9806 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
9807 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
9808 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
9809 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
9810 declaration.
9811 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
9812 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
9813 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
9814 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
9815 * user-regs.c (_initialize_user_regs): Add declaration.
9816 * utils.c (_initialize_utils): Add declaration.
9817 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
9818 * valops.c (_initialize_valops): Add declaration.
9819 * valprint.c (_initialize_valprint): Add declaration.
9820 * value.c (_initialize_values): Add declaration.
9821 * varobj.c (_initialize_varobj): Add declaration.
9822 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
9823 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
9824 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
9825 * windows-nat.c (_initialize_windows_nat): Add declaration.
9826 (_initialize_check_for_gdb_ini): Add declaration.
9827 (_initialize_loadable): Add declaration.
9828 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
9829 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
9830 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
9831 * xcoffread.c (_initialize_xcoffread): Add declaration.
9832 * xml-support.c (_initialize_xml_support): Add declaration.
9833 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
9834 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
9835 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
9836 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
9837
e2de1eec
SM
98382020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9839
9840 * regformats/regdat.sh: Generate declaration for init function.
9841
e0037b4c
SM
98422020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9843
9844 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
9845 up.
9846 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
9847 close_one_inferior>: New methods.
9848 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
9849 pass down target to find_inferior_pid.
9850 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
9851 Pass down target to find_inferior_ptid.
9852 (gdbsim_target::create_inferior): Pass down target to
9853 add_thread_silent.
9854 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
9855 target down to find_inferior_ptid and switch_to_thread.
9856 (gdbsim_target::close): Update to call close_one_inferior.
9857 (struct resume_data): Remove.
9858 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
9859 directly, rather than through a void pointer.
9860 (gdbsim_target::resume): Update to call resume_one_inferior.
9861
58920b5b
SM
98622020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
9863
9864 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
9865
4ec89149
PA
98662020-01-12 Pedro Alves <palves@redhat.com>
9867
9868 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
9869 directly for the current inferior instead of
9870 discard_all_inferiors.
9871 (discard_all_inferiors): Delete.
9872
7c392d1d
TT
98732020-01-11 Tom Tromey <tom@tromey.com>
9874
9875 * tui/tui-wingeneral.c (box_win): Check cli_styling.
9876 * tui/tui-winsource.c (tui_source_window_base::refill): Use
9877 deprecated_safe_get_selected_frame.
9878
d9ebdab7
TBA
98792020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9880
9881 * inferior.c (print_inferior): Switch inferior before printing it.
9882
f3c469b9
PA
98832020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
9884 Pedro Alves <palves@redhat.com>
9885
9886 * progspace-and-thread.c (switch_to_program_space_and_thread):
9887 Assert there's an inferior for PSPACE. Use
9888 switch_to_inferior_no_thread to switch the inferior too.
9889 * progspace.c (program_space::~program_space): Call
9890 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
9891 (program_space::free_all_objfiles): Don't call clear_symtab_users
9892 here.
9893 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
9894
65c574f6
PA
98952020-01-10 Pedro Alves <palves@redhat.com>
9896
9897 * NEWS: Mention multi-target debugging, "info connections", and
9898 "add-inferior -no-connection".
9899
2f4fcf00
PA
99002020-01-10 Pedro Alves <palves@redhat.com>
9901
9902 * infrun.c: Include "target-connection.h".
9903 (check_multi_target_resumption): New.
9904 (proceed): Call it.
9905 * target-connection.c (make_target_connection_string): Make
9906 extern.
9907 * target-connection.h (make_target_connection_string): Declare.
9908
121b3efd
PA
99092020-01-10 Pedro Alves <palves@redhat.com>
9910
9911 * Makefile.in (COMMON_SFILES): Add target-connection.c.
9912 * inferior.c (uiout_field_connection): New function.
9913 (print_inferior): Add new "connection-id" column.
9914 (add_inferior_command): Show connection number/string of added
9915 inferior.
9916 * process-stratum-target.h
9917 (process_stratum_target::connection_string): New virtual method.
9918 (process_stratum_target::connection_number): New field.
9919 * remote.c (remote_target::connection_string): New override.
9920 * target-connection.c: New file.
9921 * target-connection.h: New file.
9922 * target.c (decref_target): Remove process_stratum targets from
9923 the connection list.
9924 (target_stack::push): Add process_stratum targets to the
9925 connection list.
9926
4f837581
PA
99272020-01-10 Pedro Alves <palves@redhat.com>
9928
9929 Revert:
9930 2016-04-12 Pedro Alves <palves@redhat.com>
9931 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
9932 Remove references to name.
9933 * serial.h (struct serial) <name>: Delete.
9934
f4ec508e
PA
99352020-01-10 Pedro Alves <palves@redhat.com>
9936
9937 * gdbarch-selftests.c (register_to_value_test): Remove "target
9938 already pushed" check.
9939
5b6d1e4f
PA
99402020-01-10 Pedro Alves <palves@redhat.com>
9941 John Baldwin <jhb@FreeBSD.org>
9942
9943 * aarch64-linux-nat.c
9944 (aarch64_linux_nat_target::thread_architecture): Adjust.
9945 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
9946 (task_command_1): Likewise.
9947 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
9948 (aix_thread_target::wait, aix_thread_target::fetch_registers)
9949 (aix_thread_target::store_registers)
9950 (aix_thread_target::thread_alive): Adjust.
9951 * amd64-fbsd-tdep.c: Include "inferior.h".
9952 (amd64fbsd_get_thread_local_address): Pass down target.
9953 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
9954 thread's gdbarch instead of target_gdbarch.
9955 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
9956 get_last_target_status.
9957 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
9958 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
9959 inferiors.
9960 (update_inserted_breakpoint_locations): Skip if inferiors with no
9961 execution.
9962 (update_global_location_list): When handling moribund locations,
9963 find representative inferior for location's pspace, and use thread
9964 count of its process_stratum target.
9965 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
9966 * bsd-uthread.c (bsd_uthread_target::wait): Use
9967 as_process_stratum_target and adjust thread_change_ptid and
9968 add_thread calls.
9969 (bsd_uthread_target::update_thread_list): Use
9970 as_process_stratum_target and adjust find_thread_ptid,
9971 thread_change_ptid and add_thread calls.
9972 * btrace.c (maint_btrace_packet_history_cmd): Adjust
9973 find_thread_ptid call.
9974 * corelow.c (add_to_thread_list): Adjust add_thread call.
9975 (core_target_open): Adjust add_thread_silent and thread_count
9976 calls.
9977 (core_target::pid_to_str): Adjust find_inferior_ptid call.
9978 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
9979 * event-top.c (async_disconnect): Pop targets from all inferiors.
9980 * exec.c (add_target_sections): Push exec target on all inferiors
9981 sharing the program space.
9982 (remove_target_sections): Remove the exec target from all
9983 inferiors sharing the program space.
9984 (exec_on_vfork): New.
9985 * exec.h (exec_on_vfork): Declare.
9986 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
9987 Pass it down.
9988 (fbsd_nat_target::update_thread_list): Adjust.
9989 (fbsd_nat_target::resume): Adjust.
9990 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
9991 down.
9992 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
9993 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
9994 get_thread_arch_regcache call.
9995 * fork-child.c (gdb_startup_inferior): Pass target down to
9996 startup_inferior and set_executing.
9997 * gdbthread.h (struct process_stratum_target): Forward declare.
9998 (add_thread, add_thread_silent, add_thread_with_info)
9999 (in_thread_list): Add process_stratum_target parameter.
10000 (find_thread_ptid(inferior*, ptid_t)): New overload.
10001 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10002 parameter.
10003 (all_threads()): Delete overload.
10004 (all_threads, all_non_exited_threads): Add process_stratum_target
10005 parameter.
10006 (all_threads_safe): Use brace initialization.
10007 (thread_count): Add process_stratum_target parameter.
10008 (set_resumed, set_running, set_stop_requested, set_executing)
10009 (threads_are_executing, finish_thread_state): Add
10010 process_stratum_target parameter.
10011 (switch_to_thread): Use is_current_thread.
10012 * i386-fbsd-tdep.c: Include "inferior.h".
10013 (i386fbsd_get_thread_local_address): Pass down target.
10014 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10015 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10016 have_inferiors check.
10017 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10018 (inf_ptrace_target::attach): Adjust.
10019 * infcall.c (run_inferior_call): Adjust.
10020 * infcmd.c (run_command_1): Pass target to
10021 scoped_finish_thread_state.
10022 (proceed_thread_callback): Skip inferiors with no execution.
10023 (continue_command): Rename 'all_threads' local to avoid hiding
10024 'all_threads' function. Adjust get_last_target_status call.
10025 (prepare_one_step): Adjust set_running call.
10026 (signal_command): Use user_visible_resume_target. Compare thread
10027 pointers instead of inferior_ptid.
10028 (info_program_command): Adjust to pass down target.
10029 (attach_command): Mark target's 'thread_executing' flag.
10030 (stop_current_target_threads_ns): New, factored out from ...
10031 (interrupt_target_1): ... this. Switch inferior before making
10032 target calls.
10033 * inferior-iter.h
10034 (struct all_inferiors_iterator, struct all_inferiors_range)
10035 (struct all_inferiors_safe_range)
10036 (struct all_non_exited_inferiors_range): Filter on
10037 process_stratum_target too. Remove explicit.
10038 * inferior.c (inferior::inferior): Push dummy target on target
10039 stack.
10040 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10041 Add process_stratum_target parameter, and pass it down.
10042 (have_live_inferiors): Adjust.
10043 (switch_to_inferior_and_push_target): New.
10044 (add_inferior_command, clone_inferior_command): Handle
10045 "-no-connection" parameter. Use
10046 switch_to_inferior_and_push_target.
10047 (_initialize_inferior): Mention "-no-connection" option in
10048 the help of "add-inferior" and "clone-inferior" commands.
10049 * inferior.h: Include "process-stratum-target.h".
10050 (interrupt_target_1): Use bool.
10051 (struct inferior) <push_target, unpush_target, target_is_pushed,
10052 find_target_beneath, top_target, process_target, target_at,
10053 m_stack>: New.
10054 (discard_all_inferiors): Delete.
10055 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10056 (all_inferiors, all_non_exited_inferiors): Add
10057 process_stratum_target parameter.
10058 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10059 (target_last_proc_target): New global.
10060 (follow_fork_inferior): Push target on new inferior. Pass target
10061 to add_thread_silent. Call exec_on_vfork. Handle target's
10062 reference count.
10063 (follow_fork): Adjust get_last_target_status call. Also consider
10064 target.
10065 (follow_exec): Push target on new inferior.
10066 (struct execution_control_state) <target>: New field.
10067 (user_visible_resume_target): New.
10068 (do_target_resume): Call target_async.
10069 (resume_1): Set target's threads_executing flag. Consider resume
10070 target.
10071 (commit_resume_all_targets): New.
10072 (proceed): Also consider resume target. Skip threads of inferiors
10073 with no execution. Commit resumtion in all targets.
10074 (start_remote): Pass current inferior to wait_for_inferior.
10075 (infrun_thread_stop_requested): Consider target as well. Pass
10076 thread_info pointer to clear_inline_frame_state instead of ptid.
10077 (infrun_thread_thread_exit): Consider target as well.
10078 (random_pending_event_thread): New inferior parameter. Use it.
10079 (do_target_wait): Rename to ...
10080 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10081 down.
10082 (threads_are_resumed_pending_p, do_target_wait): New.
10083 (prepare_for_detach): Adjust calls.
10084 (wait_for_inferior): New inferior parameter. Handle it. Use
10085 do_target_wait_1 instead of do_target_wait.
10086 (fetch_inferior_event): Adjust. Switch to representative
10087 inferior. Pass target down.
10088 (set_last_target_status): Add process_stratum_target parameter.
10089 Save target in global.
10090 (get_last_target_status): Add process_stratum_target parameter and
10091 handle it.
10092 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10093 (context_switch): Check inferior_ptid == null_ptid before calling
10094 inferior_thread().
10095 (get_inferior_stop_soon): Pass down target.
10096 (wait_one): Rename to ...
10097 (poll_one_curr_target): ... this.
10098 (struct wait_one_event): New.
10099 (wait_one): New.
10100 (stop_all_threads): Adjust.
10101 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10102 event's target.
10103 (switch_back_to_stepped_thread): Also consider target.
10104 (print_stop_event): Update.
10105 (normal_stop): Update. Also consider the resume target.
10106 * infrun.h (wait_for_inferior): Remove declaration.
10107 (user_visible_resume_target): New declaration.
10108 (get_last_target_status, set_last_target_status): New
10109 process_stratum_target parameter.
10110 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10111 process_stratum_target parameter, and use it.
10112 (clear_inline_frame_state (thread_info*)): New.
10113 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10114 process_stratum_target parameter.
10115 (clear_inline_frame_state (thread_info*)): Declare.
10116 * linux-fork.c (delete_checkpoint_command): Pass target down to
10117 find_thread_ptid.
10118 (checkpoint_command): Adjust.
10119 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10120 instead of just tweaking inferior_ptid.
10121 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10122 (exit_lwp): Pass target down to find_thread_ptid.
10123 (attach_proc_task_lwp_callback): Pass target down to
10124 add_thread/set_running/set_executing.
10125 (linux_nat_target::attach): Pass target down to
10126 thread_change_ptid.
10127 (get_detach_signal): Pass target down to find_thread_ptid.
10128 Consider last target status's target.
10129 (linux_resume_one_lwp_throw, resume_lwp)
10130 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10131 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10132 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10133 (linux_nat_target::async_wait_fd): New.
10134 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10135 target down.
10136 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10137 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10138 * linux-thread-db.c (struct thread_db_info::process_target): New
10139 field.
10140 (add_thread_db_info): Save target.
10141 (get_thread_db_info): New process_stratum_target parameter. Also
10142 match target.
10143 (delete_thread_db_info): New process_stratum_target parameter.
10144 Also match target.
10145 (thread_from_lwp): Adjust to pass down target.
10146 (thread_db_notice_clone): Pass down target.
10147 (check_thread_db_callback): Pass down target.
10148 (try_thread_db_load_1): Always push the thread_db target.
10149 (try_thread_db_load, record_thread): Pass target down.
10150 (thread_db_target::detach): Pass target down. Always unpush the
10151 thread_db target.
10152 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10153 target down. Always unpush the thread_db target.
10154 (find_new_threads_callback, thread_db_find_new_threads_2)
10155 (thread_db_target::update_thread_list): Pass target down.
10156 (thread_db_target::pid_to_str): Pass current inferior down.
10157 (thread_db_target::get_thread_local_address): Pass target down.
10158 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10159 target down.
10160 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10161 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10162 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10163 (procfs_init_inferior): Rename to ...
10164 (procfs_target::procfs_init_inferior): ... this and adjust.
10165 (procfs_target::create_inferior, procfs_notice_thread)
10166 (procfs_do_thread_registers): Adjust.
10167 * ppc-fbsd-tdep.c: Include "inferior.h".
10168 (ppcfbsd_get_thread_local_address): Pass down target.
10169 * proc-service.c (ps_xfer_memory): Switch current inferior and
10170 program space as well.
10171 (get_ps_regcache): Pass target down.
10172 * process-stratum-target.c
10173 (process_stratum_target::thread_address_space)
10174 (process_stratum_target::thread_architecture): Pass target down.
10175 * process-stratum-target.h
10176 (process_stratum_target::threads_executing): New field.
10177 (as_process_stratum_target): New.
10178 * ravenscar-thread.c
10179 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10180 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10181 down.
10182 * record-btrace.c (record_btrace_target::info_record): Adjust.
10183 (record_btrace_target::record_method)
10184 (record_btrace_target::record_is_replaying)
10185 (record_btrace_target::fetch_registers)
10186 (get_thread_current_frame_id, record_btrace_target::resume)
10187 (record_btrace_target::wait, record_btrace_target::stop): Pass
10188 target down.
10189 * record-full.c (record_full_wait_1): Switch to event thread.
10190 Pass target down.
10191 * regcache.c (regcache::regcache)
10192 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10193 process_stratum_target parameter and handle it.
10194 (current_thread_target): New global.
10195 (get_thread_regcache): Add process_stratum_target parameter and
10196 handle it. Switch inferior before calling target method.
10197 (get_thread_regcache): Pass target down.
10198 (get_thread_regcache_for_ptid): Pass target down.
10199 (registers_changed_ptid): Add process_stratum_target parameter and
10200 handle it.
10201 (registers_changed_thread, registers_changed): Pass target down.
10202 (test_get_thread_arch_aspace_regcache): New.
10203 (current_regcache_test): Define a couple local test_target_ops
10204 instances and use them for testing.
10205 (readwrite_regcache): Pass process_stratum_target parameter.
10206 (cooked_read_test, cooked_write_test): Pass mock_target down.
10207 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10208 (get_thread_arch_aspace_regcache): Add process_stratum_target
10209 parameter.
10210 (regcache::target): New method.
10211 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10212 (regcache::registers_changed_ptid): Add process_stratum_target
10213 parameter.
10214 (regcache::m_target): New field.
10215 (registers_changed_ptid): Add process_stratum_target parameter.
10216 * remote.c (remote_state::supports_vCont_probed): New field.
10217 (remote_target::async_wait_fd): New method.
10218 (remote_unpush_and_throw): Add remote_target parameter.
10219 (get_current_remote_target): Adjust.
10220 (remote_target::remote_add_inferior): Push target.
10221 (remote_target::remote_add_thread)
10222 (remote_target::remote_notice_new_inferior)
10223 (get_remote_thread_info): Pass target down.
10224 (remote_target::update_thread_list): Skip threads of inferiors
10225 bound to other targets. (remote_target::close): Don't discard
10226 inferiors. (remote_target::add_current_inferior_and_thread)
10227 (remote_target::process_initial_stop_replies)
10228 (remote_target::start_remote)
10229 (remote_target::remote_serial_quit_handler): Pass down target.
10230 (remote_target::remote_unpush_target): New remote_target
10231 parameter. Unpush the target from all inferiors.
10232 (remote_target::remote_unpush_and_throw): New remote_target
10233 parameter. Pass it down.
10234 (remote_target::open_1): Check whether the current inferior has
10235 execution instead of checking whether any inferior is live. Pass
10236 target down.
10237 (remote_target::remote_detach_1): Pass down target. Use
10238 remote_unpush_target.
10239 (extended_remote_target::attach): Pass down target.
10240 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10241 (remote_target::append_resumption): Pass down target.
10242 (remote_target::append_pending_thread_resumptions)
10243 (remote_target::remote_resume_with_hc, remote_target::resume)
10244 (remote_target::commit_resume): Pass down target.
10245 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10246 (remote_target::interrupt_query)
10247 (remote_target::remove_new_fork_children)
10248 (remote_target::check_pending_events_prevent_wildcard_vcont)
10249 (remote_target::remote_parse_stop_reply)
10250 (remote_target::process_stop_reply): Pass down target.
10251 (first_remote_resumed_thread): New remote_target parameter. Pass
10252 it down.
10253 (remote_target::wait_as): Pass down target.
10254 (unpush_and_perror): New remote_target parameter. Pass it down.
10255 (remote_target::readchar, remote_target::remote_serial_write)
10256 (remote_target::getpkt_or_notif_sane_1)
10257 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10258 down target.
10259 (remote_target::mourn_inferior): Pass down target. Use
10260 remote_unpush_target.
10261 (remote_target::core_of_thread)
10262 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10263 (remote_target::pid_to_exec_file)
10264 (remote_target::thread_handle_to_thread_info): Pass down target.
10265 (remote_target::async_wait_fd): New.
10266 * riscv-fbsd-tdep.c: Include "inferior.h".
10267 (riscv_fbsd_get_thread_local_address): Pass down target.
10268 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10269 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10270 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10271 Adjust.
10272 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10273 * solib-svr4.c (enable_break): Pass down target.
10274 * spu-multiarch.c (parse_spufs_run): Pass down target.
10275 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10276 * target-delegates.c: Regenerate.
10277 * target.c (g_target_stack): Delete.
10278 (current_top_target): Return the current inferior's top target.
10279 (target_has_execution_1): Refer to the passed-in inferior's top
10280 target.
10281 (target_supports_terminal_ours): Check whether the initial
10282 inferior was already created.
10283 (decref_target): New.
10284 (target_stack::push): Incref/decref the target.
10285 (push_target, push_target, unpush_target): Adjust.
10286 (target_stack::unpush): Defref target.
10287 (target_is_pushed): Return bool. Adjust to refer to the current
10288 inferior's target stack.
10289 (dispose_inferior): Delete, and inline parts ...
10290 (target_preopen): ... here. Only dispose of the current inferior.
10291 (target_detach): Hold strong target reference while detaching.
10292 Pass target down.
10293 (target_thread_name): Add assertion.
10294 (target_resume): Pass down target.
10295 (target_ops::beneath, find_target_at): Adjust to refer to the
10296 current inferior's target stack.
10297 (get_dummy_target): New.
10298 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10299 has a thread running.
10300 (initialize_targets): Rename to ...
10301 (_initialize_target): ... this.
10302 * target.h: Include "gdbsupport/refcounted-object.h".
10303 (struct target_ops): Inherit refcounted_object.
10304 (target_ops::shortname, target_ops::longname): Make const.
10305 (target_ops::async_wait_fd): New method.
10306 (decref_target): Declare.
10307 (struct target_ops_ref_policy): New.
10308 (target_ops_ref): New typedef.
10309 (get_dummy_target): Declare function.
10310 (target_is_pushed): Return bool.
10311 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10312 (all_matching_threads_iterator::all_matching_threads_iterator):
10313 Handle filter target.
10314 * thread-iter.h (struct all_matching_threads_iterator, struct
10315 all_matching_threads_range, class all_non_exited_threads_range):
10316 Filter by target too. Remove explicit.
10317 * thread.c (threads_executing): Delete.
10318 (inferior_thread): Pass down current inferior.
10319 (clear_thread_inferior_resources): Pass down thread pointer
10320 instead of ptid_t.
10321 (add_thread_silent, add_thread_with_info, add_thread): Add
10322 process_stratum_target parameter. Use it for thread and inferior
10323 searches.
10324 (is_current_thread): New.
10325 (thread_info::deletable): Use it.
10326 (find_thread_ptid, thread_count, in_thread_list)
10327 (thread_change_ptid, set_resumed, set_running): New
10328 process_stratum_target parameter. Pass it down.
10329 (set_executing): New process_stratum_target parameter. Pass it
10330 down. Adjust reference to 'threads_executing'.
10331 (threads_are_executing): New process_stratum_target parameter.
10332 Adjust reference to 'threads_executing'.
10333 (set_stop_requested, finish_thread_state): New
10334 process_stratum_target parameter. Pass it down.
10335 (switch_to_thread): Also match inferior.
10336 (switch_to_thread): New process_stratum_target parameter. Pass it
10337 down.
10338 (update_threads_executing): Reimplement.
10339 * top.c (quit_force): Pop targets from all inferior.
10340 (gdb_init): Don't call initialize_targets.
10341 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10342 Declare.
10343 (windows_add_thread, windows_delete_thread): Adjust.
10344 (get_windows_debug_event): Rename to ...
10345 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10346 * tracefile-tfile.c (tfile_target_open): Pass down target.
10347 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10348 Forward declare.
10349 (switch_to_thread): Add process_stratum_target parameter.
10350 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10351 parameter. Use it.
10352 (mi_on_resume): Pass target down.
10353 * nat/fork-inferior.c (startup_inferior): Add
10354 process_stratum_target parameter. Pass it down.
10355 * nat/fork-inferior.h (startup_inferior): Add
10356 process_stratum_target parameter.
10357 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10358
75c6c844
PA
103592020-01-10 Pedro Alves <palves@redhat.com>
10360
10361 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10362 directly. Instead find the first thread in the thread list and
10363 use switch_to_thread.
10364
78f2c40a
PA
103652020-01-10 Pedro Alves <palves@redhat.com>
10366
10367 * remote.c (remote_target::remote_add_inferior): Don't bind a
10368 process to the current inferior if the current inferior is already
10369 bound to a process.
10370
e7af6c70
TBA
103712020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10372 Pedro Alves <palves@redhat.com>
10373
10374 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10375 If no process is specified, return null_ptid instead of
10376 inferior_ptid.
10377 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10378 TARGET_WAITKIND_SIGNALLED with no pid.
10379
31ba933e
PA
103802020-01-10 Pedro Alves <palves@redhat.com>
10381
10382 * remote.c (first_remote_resumed_thread): New.
10383 (remote_target::wait_as): Use it as default event_ptid instead of
10384 inferior_ptid.
10385
735fc2ca
PA
103862020-01-10 Pedro Alves <palves@redhat.com>
10387
10388 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10389
c17e02e1
PA
103902020-01-10 Pedro Alves <palves@redhat.com>
10391
10392 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10393 not -1.
10394
ab1ddbcf
PA
103952020-01-10 Pedro Alves <palves@redhat.com>
10396
10397 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10398 ptid to get_last_target_status.
10399 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10400 ptid to get_last_target_status.
10401 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10402 get_last_target_status.
10403 (info_program_command): Don't pass a target_waitstatus to
10404 get_last_target_status.
10405 * infrun.c (init_wait_for_inferior): Use
10406 nullify_last_target_wait_ptid.
10407 (get_last_target_status): Handle nullptr arguments.
10408 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10409 (print_stop_event): Don't pass a ptid to get_last_target_status.
10410 (normal_stop): Don't pass a ptid to get_last_target_status.
10411 * infrun.h (get_last_target_status, set_last_target_status): Move
10412 comments here and update.
10413 (nullify_last_target_wait_ptid): Declare.
10414 * linux-fork.c (fork_load_infrun_state): Remove local extern
10415 declaration of nullify_last_target_wait_ptid.
10416 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10417 to get_last_target_status.
10418
f3f8ece4
PA
104192020-01-10 Pedro Alves <palves@redhat.com>
10420
10421 * gdbthread.h (scoped_restore_current_thread)
10422 <dont_restore, restore, m_dont_restore>: Declare.
10423 * thread.c (thread_alive): Add assertion. Return bool.
10424 (switch_to_thread_if_alive): New.
10425 (prune_threads): Switch inferior/thread.
10426 (print_thread_info_1): Switch thread before calling target methods.
10427 (scoped_restore_current_thread::restore): New, factored out from
10428 ...
10429 (scoped_restore_current_thread::~scoped_restore_current_thread):
10430 ... this.
10431 (scoped_restore_current_thread::scoped_restore_current_thread):
10432 Add assertion.
10433 (thread_apply_all_command, thread_select): Use
10434 switch_to_thread_if_alive.
10435 * infrun.c (proceed, restart_threads, handle_signal_stop)
10436 (switch_back_to_stepped_thread): Switch current thread before
10437 calling target methods.
10438
db2d40f7
PA
104392020-01-10 Pedro Alves <palves@redhat.com>
10440
10441 * inferior.c (switch_to_inferior_no_thread): New function,
10442 factored out from ...
10443 (inferior_command): ... here.
10444 * inferior.h (switch_to_inferior_no_thread): Declare.
10445 * mi/mi-main.c (run_one_inferior): Use
10446 switch_to_inferior_no_thread.
10447
bd420a2d
PA
104482020-01-10 Pedro Alves <palves@redhat.com>
10449
10450 * infcmd.c (kill_command): Remove dead code.
10451
ddf5db90
PA
104522020-01-10 Pedro Alves <palves@redhat.com>
10453
10454 * remote.c (remote_target::mourn_inferior): No longer check
10455 whether the target is running.
10456
5018ce90
PA
104572020-01-10 Pedro Alves <palves@redhat.com>
10458
10459 * corelow.c (core_target::has_execution): Change parameter type to
10460 inferior pointer.
10461 * inferior.c (number_of_live_inferiors): Use
10462 inferior::has_execution instead of target_has_execution_1.
10463 * inferior.h (inferior::has_execution): New.
10464 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10465 inferior::has_execution instead of target_has_execution_1.
10466 * process-stratum-target.c
10467 (process_stratum_target::has_execution): Change parameter type to
10468 inferior pointer. Check the inferior's PID instead of
10469 inferior_ptid.
10470 * process-stratum-target.h
10471 (process_stratum_target::has_execution): Change parameter type to
10472 inferior pointer.
10473 * record-full.c (record_full_core_target::has_execution): Change
10474 parameter type to inferior pointer.
10475 * target.c (target_has_execution_1): Change parameter type to
10476 inferior pointer.
10477 (target_has_execution_current): Adjust.
10478 * target.h (target_ops::has_execution): Change parameter type to
10479 inferior pointer.
10480 (target_has_execution_1): Change parameter type to inferior
10481 pointer. Change return type to bool.
10482 * tracefile.h (tracefile_target::has_execution): Change parameter
10483 type to inferior pointer.
10484
74375d18
PA
104852020-01-10 Pedro Alves <palves@redhat.com>
10486
10487 * exceptions.c (print_flush): Remove current_top_target() check.
10488
acdf84a6
PA
104892020-01-10 Pedro Alves <palves@redhat.com>
10490
10491 * remote.c (show_remote_exec_file): Show the current inferior's
10492 exec-file instead of the command variable's value.
10493
ec506636
PA
104942020-01-10 Pedro Alves <palves@redhat.com>
10495
10496 * record-full.c (record_full_resume_ptid): New global.
10497 (record_full_target::resume): Set it.
10498 (record_full_wait_1): Use record_full_resume_ptid instead of
10499 inferior_ptid.
10500
873657b9
PA
105012020-01-10 Pedro Alves <palves@redhat.com>
10502
10503 * gdbthread.h (scoped_restore_current_thread)
10504 <dont_restore, restore, m_dont_restore>: Declare.
10505 * thread.c (thread_alive): Add assertion. Return bool.
10506 (switch_to_thread_if_alive): New.
10507 (prune_threads): Switch inferior/thread.
10508 (print_thread_info_1): Switch thread before calling target methods.
10509 (scoped_restore_current_thread::restore): New, factored out from
10510 ...
10511 (scoped_restore_current_thread::~scoped_restore_current_thread):
10512 ... this.
10513 (scoped_restore_current_thread::scoped_restore_current_thread):
10514 Add assertion.
10515 (thread_apply_all_command, thread_select): Use
10516 switch_to_thread_if_alive.
10517
7f0ae84c
GB
105182020-01-10 George Barrett <bob@bob131.so>
10519
10520 * stap-probe.c (stap_modify_semaphore): Don't check for null
10521 semaphores.
10522 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10523 for null semaphores.
10524
f5a7c406
AB
105252020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10526
10527 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10528 all source windows, and maintain horizontal scroll status while
10529 doing so.
10530
9ae6bf64
TT
105312020-01-09 Tom Tromey <tom@tromey.com>
10532
10533 PR tui/18932:
10534 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10535 update_source_window, not print_source_lines.
10536
b2efe70c
AB
105372020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10538
10539 * tui/tui.c (tui_enable): Register tui hooks after calling
10540 tui_display_main.
10541
5f23a082
CB
105422020-01-09 Christian Biesinger <cbiesinger@google.com>
10543
10544 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10545
3061113b
SM
105462020-01-08 Simon Marchi <simon.marchi@efficios.com>
10547
10548 * thread.c (print_thread_info_1): Fix indentation.
10549
57d75002
CB
105502020-01-09 Christian Biesinger <cbiesinger@google.com>
10551
10552 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10553 unique_xmalloc_ptr outside the if to always free the demangled name.
10554
6a053cb1
TT
105552020-01-08 Tom Tromey <tromey@adacore.com>
10556
10557 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10558 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10559 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10560 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10561 Remove.
10562 (section_offsets): New typedef.
10563 * symtab.c (fixup_section, get_msymbol_address): Update.
10564 * symmisc.c (dump_msymbols): Update.
10565 * symfile.h (relative_addr_info_to_section_offsets)
10566 (symfile_map_offsets_to_segments): Update.
10567 * symfile.c (build_section_addr_info_from_objfile)
10568 (init_objfile_sect_indices): Update.
10569 (struct place_section_arg): Change type of "offsets".
10570 (place_section): Update.
10571 (relative_addr_info_to_section_offsets): Change type of
10572 "section_offsets". Remove "num_sections" parameter.
10573 (default_symfile_offsets, syms_from_objfile_1)
10574 (set_objfile_default_section_offset): Update.
10575 (reread_symbols): No need to preserve section offsets by hand.
10576 (symfile_map_offsets_to_segments): Change type of "offsets".
10577 * stap-probe.c (relocate_address): Update.
10578 * stabsread.h (process_one_symbol): Update.
10579 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10580 (solib_target_relocate_section_addresses): Update.
10581 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10582 Update.
10583 * solib-frv.c (frv_relocate_main_executable): Update.
10584 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10585 * solib-aix.c (solib_aix_get_section_offsets): Change return
10586 type.
10587 (solib_aix_solib_create_inferior_hook): Update.
10588 * remote.c (remote_target::get_offsets): Update.
10589 * psymtab.c (find_pc_sect_psymtab): Update.
10590 * psympriv.h (struct partial_symbol) <address, text_low,
10591 text_high>: Update.
10592 * objfiles.h (obj_section_offset): Update.
10593 (struct objfile) <section_offsets>: Change type.
10594 <num_sections>: Remove.
10595 (objfile_relocate): Update.
10596 * objfiles.c (entry_point_address_query): Update
10597 (relocate_one_symbol): Change type of "section_offsets".
10598 (objfile_relocate1, objfile_relocate1): Change type of
10599 "new_offsets".
10600 (objfile_rebase1): Update.
10601 * mipsread.c (mipscoff_symfile_read): Update.
10602 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10603 parameter.
10604 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10605 (parse_external, psymtab_to_symtab_1): Update.
10606 * machoread.c (macho_symfile_offsets): Update.
10607 * ia64-tdep.c (ia64_find_unwind_table): Update.
10608 * hppa-tdep.c (read_unwind_info): Update.
10609 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10610 * dwarf2read.c (create_addrmap_from_index)
10611 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10612 (process_psymtab_comp_unit_reader, add_partial_symbol)
10613 (add_partial_subprogram, process_full_comp_unit)
10614 (read_file_scope, read_func_scope, read_lexical_block_scope)
10615 (read_call_site_scope, dwarf2_rnglists_process)
10616 (dwarf2_ranges_process, dwarf2_ranges_read)
10617 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10618 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10619 Update.
10620 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10621 Update.
10622 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10623 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10624 (process_one_symbol): Change type of "section_offsets".
10625 * ctfread.c (get_objfile_text_range): Update.
10626 * coffread.c (coff_symtab_read, enter_linenos)
10627 (process_coff_symbol): Update.
10628 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10629 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10630
456e800a
TT
106312020-01-08 Tom Tromey <tromey@adacore.com>
10632
10633 * dwarf2read.c (parse_macro_definition): Use std::string.
10634 (parse_macro_definition): Likewise.
10635
6dfa2fc2
TT
106362020-01-08 Tom Tromey <tromey@adacore.com>
10637
10638 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10639 (ATTR_ALLOC_CHUNK): Remove.
10640
421d1616
TT
106412020-01-08 Tom Tromey <tromey@adacore.com>
10642
10643 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10644
43816ebc
TT
106452020-01-08 Tom Tromey <tromey@adacore.com>
10646
10647 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10648 (dwarf2_compute_name, open_dwo_file): Likewise.
10649 (process_enumeration_scope): Use std::vector.
10650 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10651 (partial_die_info::fixup, dwarf2_start_subfile)
10652 (guess_full_die_structure_name, dwarf2_name): Likewise.
10653 (determine_prefix): Update.
10654 (guess_full_die_structure_name): Make return type const.
10655 (partial_die_full_name): Return unique_xmalloc_ptr.
10656 (DW_FIELD_ALLOC_CHUNK): Remove.
10657
4212d509
TT
106582020-01-07 Tom Tromey <tromey@adacore.com>
10659
10660 PR build/24937:
10661 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10662
06a6207a
JT
106632020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10664
10665 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10666
153d79c4
AB
106672020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10668
10669 * stack.c (print_frame_info): Move disassemble_next_line code
10670 inside source_print block.
10671
66182876
EZ
106722020-01-06 Eli Zaretskii <eliz@gnu.org>
10673
10674 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10675 gdb/signals.h, as we are now using native signal symbols.
10676
cbfa8581
SV
106772020-01-06 Shahab Vahedi <shahab@synopsys.com>
10678
10679 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10680 overflow by an early check of content vs threshold.
aac66a4c 10681 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10682 Likewise.
10683
3f602821
EZ
106842020-01-06 Eli Zaretskii <eliz@gnu.org>
10685
10686 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10687
a08c904d
JT
106882020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10689
10690 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10691 export table if no section contains it's RVA.
10692
89a65580
EZ
106932020-01-06 Eli Zaretskii <eliz@gnu.org>
10694
10695 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10696
8b7fcda2
HD
106972020-01-06 Hannes Domani <ssbssa@yahoo.de>
10698
10699 * source.c (print_source_lines_base): Set last_line_listed.
10700
a61b4f69
SV
107012020-01-06 Shahab Vahedi <shahab@synopsys.com>
10702
10703 * tui/tui-disasm.c: Remove trailing spaces.
10704
559e7e50
EZ
107052020-01-06 Eli Zaretskii <eliz@gnu.org>
10706 Pedro Alves <palves@redhat.com>
10707
10708 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10709 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10710 (windows_gdb_signal_to_target): New function, uses the above
10711 enumeration to convert GDB internal signal codes to equivalent
10712 Windows codes.
10713 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10714 * windows-nat.c: Include "gdb_wait.h".
10715 (get_windows_debug_event): Extract the fatal exception from the
10716 exit status and convert to the equivalent Posix signal number.
10717 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10718 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10719 * gdbsupport/gdb_wait.c: New file, implements
10720 windows_status_to_termsig.
10721 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10722 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10723
f2302a34
AB
107242020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10725
10726 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10727 show_layout.
10728
6a5206eb
LM
107292020-01-05 Luis Machado <luis.machado@linaro.org>
10730
10731 * aarch64-linux-nat.c
10732 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10733 and bfd_mach_aarch64.
10734
6ec1d75e
PW
107352020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10736
10737 * ui-file.c (stdio_file::can_emit_style_escape)
10738 (tee_file::can_emit_style_escape): Ensure style is used also on
10739 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10740 to gdb_stdout.
10741 * main.c (set_gdb_data_directory): Use file style to output the
10742 warning that the given pathname is not a directory.
10743 * top.c (show_history_filename, gdb_safe_append_history)
10744 (show_gdb_datadir): Use file style.
10745
44f81a76
HD
107462020-01-03 Hannes Domani <ssbssa@yahoo.de>
10747
10748 * solib-target.c (struct lm_info_target):
10749 Change offsets to be a unique_xmalloc_ptr.
10750 (solib_target_relocate_section_addresses): Update.
10751
25057eb0
HD
107522020-01-03 Hannes Domani <ssbssa@yahoo.de>
10753
10754 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10755
6e2118f5
BE
107562020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10757
10758 * MAINTAINERS (Write After Approval): Add myself.
10759
8133c7dc
LM
107602020-01-02 Luis Machado <luis.machado@linaro.org>
10761
10762 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10763 Cell BE architecture.
10764 * target.h (struct target_ops) <thread_architecture>: Likewise.
10765
48189bec
HD
107662020-01-01 Hannes Domani <ssbssa@yahoo.de>
10767
10768 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10769
ead1063b
HD
107702020-01-01 Hannes Domani <ssbssa@yahoo.de>
10771
10772 * MAINTAINERS (Write After Approval): Add myself.
10773
e5d78223
JB
107742020-01-01 Joel Brobecker <brobecker@adacore.com>
10775
10776 * gdbarch.sh: Update copyright year range of generated files.
10777
b811d2c2
JB
107782020-01-01 Joel Brobecker <brobecker@adacore.com>
10779
10780 Update copyright year range in all GDB files.
10781
5f4def5c
JB
107822020-01-01 Joel Brobecker <brobecker@adacore.com>
10783
10784 * copyright.py: Convert to Python 3.
10785
51fd4002
JB
107862020-01-01 Joel Brobecker <brobecker@adacore.com>
10787
10788 * copyright.py: Adapt after move of gnulib directory from gdb
10789 directory to toplevel directory.
10790
5fb651f2
JB
107912020-01-01 Joel Brobecker <brobecker@adacore.com>
10792
10793 * copyright.py (main): Exit if run from the wrong directory.
10794
5dd8bf88
JB
107952020-01-01 Joel Brobecker <brobecker@adacore.com>
10796
10797 * top.c (print_gdb_version): Change copyright year to 2020.
10798
9f71dacb 107992020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 10800
9f71dacb 10801 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 10802
9f71dacb 10803For older changes see ChangeLog-2019.
c906108c
SS
10804\f
10805Local Variables:
10806mode: change-log
10807left-margin: 8
10808fill-column: 74
10809version-control: never
57da7796 10810coding: utf-8
c906108c 10811End: