1 2020-07-01 Tom Tromey <tom@tromey.com>
3 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6 2020-07-01 Tom Tromey <tom@tromey.com>
8 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
10 (tui_win_info::make_window): Merge with
11 tui_gen_win_info::make_window.
12 (tui_win_info::make_visible): Move from tui_gen_win_info.
13 * tui/tui-win.c (tui_win_info::max_width): Move from
15 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
17 <window_factory>: Likewise.
18 * tui/tui-layout.c (tui_win_info::resize): Move from
20 (make_standard_window): Change return type.
21 (get_locator_window, tui_get_window_by_name): Likewise.
22 (tui_layout_window::apply): Remove a cast.
23 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
24 (struct tui_win_info): Merge with tui_gen_win_info.
25 (struct tui_gen_win_info): Remove.
27 2020-07-01 Tom Tromey <tom@tromey.com>
29 * tui/tui-stack.h (struct tui_locator_window): Derive from
31 <do_scroll_horizontal, do_scroll_vertical>: New methods.
32 <can_box>: New method.
34 2020-07-01 Tom Tromey <tom@tromey.com>
36 * tui/tui-stack.h (struct tui_locator_window): Remove body.
38 2020-07-01 Tom Tromey <tom@tromey.com>
40 * tui/tui-regs.c (tui_data_window::display_registers_from)
41 (tui_data_window::display_registers_from)
42 (tui_data_window::first_data_item_displayed)
43 (tui_data_window::delete_data_content_windows): Update.
44 (tui_data_window::refresh_window, tui_data_window::no_refresh):
46 (tui_data_window::check_register_values): Update.
47 (tui_data_item_window::rerender): Add parameters. Update.
48 (tui_data_item_window::refresh_window): Remove.
49 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
51 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
53 <refresh_window, max_height, min_height>: Remove.
54 <rerender>: Add parameters.
55 <x, y, visible>: New members.
56 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
57 <m_item_width>: New member.
59 2020-07-01 Tom Tromey <tom@tromey.com>
61 * tui/tui-regs.c (tui_data_window::show_register_group)
62 (tui_data_window::check_register_values): Update.
63 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
66 2020-07-01 Tom Tromey <tom@tromey.com>
68 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
71 2020-07-01 Tom Tromey <tom@tromey.com>
73 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
74 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
76 2020-07-01 Tom Tromey <tom@tromey.com>
78 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
79 * tui/tui-winsource.h (enum tui_line_or_address_kind)
80 (struct tui_line_or_address): Move from tui-data.h.
81 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
82 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
83 (tui_cmd_window, tui_source_window_base, tui_source_window)
84 (tui_disasm_window): Don't declare.
85 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
87 (SINGLE_KEY): Move to tui-stack.c.
89 2020-07-01 Tom Tromey <tom@tromey.com>
91 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
93 * tui/tui-regs.c (class tab_expansion_file): New.
94 (tab_expansion_file::write): New method.
95 (tui_register_format): Change return type. Use
97 (tui_get_register, tui_data_window::display_registers_from)
98 (tui_data_item_window::rerender): Update.
99 * tui/tui-io.h (tui_expand_tabs): Don't declare.
100 * tui/tui-io.c (tui_expand_tabs): Remove.
102 2020-07-01 Tom Tromey <tom@tromey.com>
104 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
106 2020-07-01 Fangrui Song <maskray@google.com>
108 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
110 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
112 * dwarf2/read.c (set_die_type): Removed conditions to restrict
113 forms for DW_AT_associated and DW_AT_allocated attributes,
114 which is already checked in function attr_to_dynamic_prop.
116 2020-06-30 Tom Tromey <tromey@adacore.com>
118 * dwarf2/read.c (quirk_rust_enum): Correctly call
119 alloc_rust_variant for default-less enum.
121 2020-06-30 Tom Tromey <tromey@adacore.com>
124 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
127 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
129 * gdbarch.sh (displaced_step_copy_insn): Update doc.
130 * gdbarch.h: Re-generate.
132 2020-06-28 Tom Tromey <tom@tromey.com>
134 * command.h (cmd_types): Remove.
135 (cmd_type): Don't declare.
136 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
138 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
139 * cli/cli-decode.c (cmd_type): Remove.
141 2020-06-27 Pedro Alves <palves@redhat.com>
143 * fork-child.c (prefork_hook): Adjust.
144 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
146 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
147 * inferior.c (inferior::set_tty, inferior::tty): New methods.
148 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
150 (struct inferior) <set_tty, tty>: New methods.
151 (struct inferior) <terminal>: Rename to ...
152 (struct inferior) <m_terminal>: ... this and make private.
153 * main.c (captured_main_1): Adjust.
154 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
155 (mi_cmd_inferior_tty_show): Adjust.
156 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
157 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
159 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
161 * configure.ac: Add --enable-libctf: handle --disable-static
163 * acinclude.m4: sinclude ../config/enable.m4.
164 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
165 (LIBCTF): Substitute in.
166 (CTF_DEPS): New, likewise.
167 (CLIBS): libctf needs symbols from libbfd: move earlier.
168 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
170 * ctfread.c: Surround in ENABLE_LIBCTF.
171 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
172 * configure: Regenerate.
173 * config.in: Likewise.
175 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
177 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
179 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
181 * inferior.h (struct inferior) <terminal>: Change type to
182 gdb::unique_xmalloc_ptr<char>.
183 * inferior.c (inferior::~inferior): Don't free inf->terminal.
184 * infcmd.c (set_inferior_io_terminal): Don't free terminal
185 field, adjust to unique pointer.
186 (get_inferior_io_terminal): Adjust to unique pointer.
188 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
190 * riscv-tdep.c (riscv_print_registers_info): Loop over all
191 registers, not just the known core set of registers.
193 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
195 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
196 fflags, frm, and fcsr registers.
197 (riscv_register_reggroup_p): Remove unknown CSRs from save and
199 (riscv_tdesc_unknown_reg): New function.
200 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
202 * riscv-tdep.h (struct gdbarch_tdep): Add
203 unknown_csrs_first_regnum, unknown_csrs_count,
204 duplicate_fflags_regnum, duplicate_frm_regnum, and
205 duplicate_fcsr_regnum fields.
207 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
209 * target-descriptions.c (tdesc_use_registers): Add new parameter a
210 callback, use the callback (when not null) to help number unknown
212 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
213 (tdesc_use_registers): Add extra parameter to declaration.
215 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
217 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
219 (class riscv_pending_register_alias): Likewise.
220 (riscv_register_feature::register_info): Change 'required_p' field
221 to 'required', and change its type. Add 'check' member function.
222 (riscv_register_feature::register_info::check): Define new member
224 (riscv_xreg_feature): Change initialisation of 'required' field.
225 (riscv_freg_feature): Likewise.
226 (riscv_virtual_feature): Likewise.
227 (riscv_csr_feature): Likewise.
228 (riscv_check_tdesc_feature): Take extra parameter, the csr
229 tdesc_feature, rewrite the function to use the new
230 riscv_register_feature::register_info::check function.
231 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
233 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
235 * features/Makefile: Remove all references to the deleted files
237 * features/riscv/32bit-csr.c: Deleted.
238 * features/riscv/32bit-csr.xml: Deleted.
239 * features/riscv/64bit-csr.c: Deleted.
240 * features/riscv/64bit-csr.xml: Deleted.
241 * features/riscv/rebuild-csr-xml.sh: Deleted.
243 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
245 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
246 whitespace error for declaration of names member variable.
247 (struct riscv_register_feature): Add new prefer_first_name member
248 variable, and fix whitespace error in declaration of registers.
249 (riscv_xreg_feature): Initialize prefer_first_name field.
250 (riscv_freg_feature): Likewise.
251 (riscv_virtual_feature): Likewise.
252 (riscv_csr_feature): Likewise.
253 (riscv_register_name): Expand on comments. Remove register name
254 modifications for CSR and virtual registers.
256 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
258 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
261 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
263 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
265 (class riscv_pending_register_alias): New class.
266 (riscv_check_tdesc_feature): Take vector of pending aliases and
267 populate it as appropriate.
268 (riscv_setup_register_aliases): Delete.
269 (riscv_gdbarch_init): Create vector of pending aliases and pass it
270 to riscv_check_tdesc_feature in all cases. Use the vector to
271 create the register aliases.
273 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
275 * sol2-tdep.c (sol2_static_transform_name): Remove.
276 (sol2_init_abi): Don't register it.
277 * gdbarch.sh (static_transform_name): Remove.
278 * gdbarch.c, gdbarch.h: Regenerate.
280 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
281 gdbarch_static_transform_name.
282 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
283 * stabsread.c (define_symbol) <'X'>: Remove.
284 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
287 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
288 <'S'>: Remove call to gdbarch_static_transform_name.
290 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
292 * procfs.c (procfs_pre_trace): New function.
293 (procfs_target::create_inferior): Pass it to fork_inferior.
295 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
297 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
298 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
299 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
300 sol2-tdep.o, sparc-sol2-tdep.o.
301 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
302 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
303 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
304 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
306 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
308 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
309 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
311 Remove calls to set_gdbarch_skip_solib_resolver,
312 set_gdbarch_core_pid_to_str.
313 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
314 (i386_sol2_static_transform_name): Remove.
315 (i386_sol2_init_abi): Call sol2_init_abi.
316 Remove calls to set_gdbarch_sofun_address_maybe_missing,
317 set_gdbarch_static_transform_name,
318 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
320 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
321 (sol2_sigtramp_p): New function.
322 (sol2_static_transform_name): New function.
323 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
324 (sol2_init_abi): New function.
325 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
326 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
327 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
328 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
329 (sparc_sol2_static_transform_name): Remove.
330 (sparc32_sol2_init_abi): Call sol2_init_abi.
331 Remove calls to set_gdbarch_sofun_address_maybe_missing,
332 set_gdbarch_static_transform_name,
333 set_gdbarch_skip_solib_resolver,
334 set_gdbarch_core_pid_to_str.
335 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
336 (sparc_sol2_static_transform_name): Remove
337 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
338 call sol2_sigtramp_p.
339 (sparc64_sol2_init_abi): Call sol2_init_abi.
340 Remove calls to set_gdbarch_sofun_address_maybe_missing,
341 set_gdbarch_static_transform_name,
342 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
344 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
346 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
347 * exec.c (validate_exec_file): If from_tty, set both
348 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
349 * symfile.c (symbol_file_add_with_addrs): if always_confirm
350 and from_tty, unconditionally ask a confirmation.
352 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
354 * target-descriptions.c (tdesc_architecture_name): Protect against
355 NULL pointer dereference.
356 (maint_print_xml_tdesc_cmd): New function.
357 (_initialize_target_descriptions): Register new 'maint print
358 xml-tdesc' command and give it the filename completer.
359 * NEWS: Mention new 'maint print xml-tdesc' command.
361 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
363 * target-descriptions.c (class tdesc_compatible_info): New class.
364 (struct target_desc): Change type of compatible vector.
365 (tdesc_compatible_p): Update for change in type of
366 target_desc::compatible.
367 (tdesc_compatible_info_list): New function.
368 (tdesc_compatible_info_arch_name): New function.
369 (tdesc_add_compatible): Update for change in type of
370 target_desc::compatible.
371 (print_c_tdesc::visit_pre): Likewise.
373 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
375 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
376 whitespace to underscore.
377 (maint_print_c_tdesc_cmd): Use fake filename for target
378 descriptions that came from the target.
379 (_initialize_target_descriptions): Add filename command completion
380 for 'maint print c-tdesc'.
382 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
384 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
387 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
389 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
391 (dwarf2_find_location_expression): Likewise.
392 (call_site_parameter_matches): Likewise.
393 (dwarf2_compile_expr_to_ax): Likewise.
394 (disassemble_dwarf_expression): Likewise.
395 (loclist_describe_location): Likewise.
397 2020-06-23 Pedro Alves <palves@redhat.com>
399 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
400 progspace-and-thread.h. Include scoped-mock-context.h instead.
401 (register_to_value_test): Use scoped_mock_context.
402 * regcache.c: Include "scoped-mock-context.h".
403 (cooked_read_test): Don't error out if a target is already pushed.
404 Use scoped_mock_context. Adjust.
405 * scoped-mock-context.h: New file.
407 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
409 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
411 (ada_language::is_string_type_p): New member function.
412 * c-lang.c (c_language_data): Delete la_is_string_type_p
414 (cplus_language_data): Likewise.
415 (asm_language_data): Likewise.
416 (minimal_language_data): Likewise.
417 * d-lang.c (d_language_data): Likewise.
418 * f-lang.c (f_is_string_type_p): Delete function, implementation
419 moved to f_language::is_string_type_p.
420 (f_language_data): Delete la_is_string_type_p initializer.
421 (f_language::is_string_type_p): New member function,
422 implementation from f_is_string_type_p.
423 * go-lang.c (go_is_string_type_p): Delete function, implementation
424 moved to go_language::is_string_type_p.
425 (go_language_data): Delete la_is_string_type_p initializer.
426 (go_language::is_string_type_p): New member function,
427 implementation from go_is_string_type_p.
428 * language.c (language_defn::is_string_type_p): Define new member
430 (default_is_string_type_p): Make static, add comment copied from
432 (unknown_language_data): Delete la_is_string_type_p initializer.
433 (unknown_language::is_string_type_p): New member function.
434 (auto_language_data): Delete la_is_string_type_p initializer.
435 (auto_language::is_string_type_p): New member function.
436 * language.h (language_data): Delete la_is_string_type_p field.
437 (language_defn::is_string_type_p): Declare new function.
438 (default_is_string_type_p): Delete desclaration, move comment to
440 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
441 moved to m2_language::is_string_type_p.
442 (m2_language_data): Delete la_is_string_type_p initializer.
443 (m2_language::is_string_type_p): New member function,
444 implementation from m2_is_string_type_p.
445 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
447 * opencl-lang.c (opencl_language_data): Likewise.
448 * p-lang.c (pascal_is_string_type_p): Delete function,
449 implementation moved to pascal_language::is_string_type_p.
450 (pascal_language_data): Delete la_is_string_type_p initializer.
451 (pascal_language::is_string_type_p): New member function,
452 implementation from pascal_is_string_type_p.
453 * rust-lang.c (rust_is_string_type_p): Delete function,
454 implementation moved to rust_language::is_string_type_p.
455 (rust_language_data): Delete la_is_string_type_p initializer.
456 (rust_language::is_string_type_p): New member function,
457 implementation from rust_is_string_type_p.
458 * valprint.c (val_print_scalar_or_string_type_p): Update call to
461 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
463 * ada-lang.c (ada_language_data): Delete la_print_typedef
465 (ada_language::print_typedef): New member function.
466 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
467 (cplus_language_data): Likewise.
468 (asm_language_data): Likewise.
469 (minimal_language_data): Likewise.
470 * d-lang.c (d_language_data): Likewise.
471 * f-lang.c (f_language_data): Likewise.
472 (f_language::print_typedef): New member function.
473 * go-lang.c (go_language_data): Delete la_print_typedef
475 * language.c (language_defn::print_typedef): Define member
477 (unknown_language_data): Delete la_print_typedef initializer.
478 (unknown_language::print_typedef): New member function.
479 (auto_language_data): Delete la_print_typedef initializer.
480 (auto_language::print_typedef): New member function.
481 * language.h (language_data): Delete la_print_typedef field.
482 (language_defn::print_typedef): Declare new member function.
483 (LA_PRINT_TYPEDEF): Update call to print_typedef.
484 (default_print_typedef): Delete declaration.
485 * m2-lang.c (m2_language_data): Delete la_print_typedef
487 (m2_language::print_typedef): New member function.
488 * objc-lang.c (objc_language_data): Delete la_print_typedef
490 * opencl-lang.c (opencl_language_data): Likewise.
491 * p-lang.c (pascal_language_data): Likewise.
492 (pascal_language::print_typedef): New member function.
493 * rust-lang.c (rust_print_typedef): Delete function,
494 implementation moved to rust_language::print_typedef.
495 (rust_language): Delete la_print_typedef initializer.
496 (rust_language::print_typedef): New member function,
497 implementation from rust_print_typedef.
498 * typeprint.c (default_print_typedef): Delete.
500 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
502 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
503 (ada_language::printstr): New member function.
504 * c-lang.c (c_language_data): Delete la_printstr initializer.
505 (cplus_language_data): Likewise.
506 (asm_language_data): Likewise.
507 (minimal_language_data): Likewise.
508 * d-lang.c (d_language_data): Likewise.
509 * f-lang.c (f_printstr): Rename to f_language::printstr.
510 (f_language_data): Delete la_printstr initializer.
511 (f_language::printstr): New member function, implementation from
513 * go-lang.c (go_language_data): Delete la_printstr initializer.
514 * language.c (language_defn::printstr): Define new member
516 (unk_lang_printstr): Delete.
517 (unknown_language_data): Delete la_printstr initializer.
518 (unknown_language::printstr): New member function.
519 (auto_language_data): Delete la_printstr initializer.
520 (auto_language::printstr): New member function.
521 * language.h (language_data): Delete la_printstr field.
522 (language_defn::printstr): Declare new member function.
523 (LA_PRINT_STRING): Update call to printstr.
524 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
525 (m2_language_data): Delete la_printstr initializer.
526 (m2_language::printstr): New member function, implementation from
528 * objc-lang.c (objc_language_data): Delete la_printstr
530 * opencl-lang.c (opencl_language_data): Likewise.
531 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
532 (pascal_language_data): Delete la_printstr initializer.
533 (pascal_language::printstr): New member function, implementation
534 from pascal_printstr.
535 * p-lang.h (pascal_printstr): Delete declaration.
536 * rust-lang.c (rust_printstr): Update header comment.
537 (rust_language_data): Delete la_printstr initializer.
538 (rust_language::printstr): New member function.
540 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
542 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
543 (ada_language::printchar): New member function.
544 * c-lang.c (c_language_data): Delete la_printchar initializer.
545 (cplus_language_data): Likewise.
546 (asm_language_data): Likewise.
547 (minimal_language_data): Likewise.
548 * d-lang.c (d_language_data): Likewise.
549 * f-lang.c (f_printchar): Rename to f_language::printchar.
550 (f_language_data): Delete la_printchar initializer.
551 (f_language::printchar): New member function, implementation from
553 * go-lang.c (go_language_data): Delete la_printchar initializer.
554 * language.c (unk_lang_printchar): Delete.
555 (language_defn::printchar): Define new member function.
556 (unknown_language_data): Delete la_printchar initializer.
557 (unknown_language::printchar): New member function.
558 (auto_language_data): Delete la_printchar initializer.
559 (auto_language::printchar): New member function.
560 * language.h (language_data): Delete la_printchar field.
561 (language_defn::printchar): Declare new member function.
562 (LA_PRINT_CHAR): Update call to printchar.
563 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
564 (m2_language::printchar): New member function.
565 * objc-lang.c (objc_language_data): Delete la_printchar
567 * opencl-lang.c (opencl_language_data): Likewise.
568 * p-lang.c (pascal_language_data): Delete la_printchar
570 (pascal_language::printchar): New member function.
571 * rust-lang.c (rust_printchar): Rename to
572 rust_language::printchar.
573 (rust_language_data): Delete la_printchar initializer.
574 (rust_language::printchar): New member function, implementation
577 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
579 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
580 (ada_language_data): Delete la_emitchar initializer.
581 (ada_language::emitchar): New member function, implementation from
583 * c-lang.c (c_language_data): Delete la_emitchar initializer.
584 (cplus_language_data): Likewise.
585 (asm_language_data): Likewise.
586 (minimal_language_data): Likewise.
587 * d-lang.c (d_language_data): Likewise.
588 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
589 (f_language_data): Delete la_emitchar initializer.
590 (f_language::emitchar): New member function, implementation from
592 * go-lang.c (go_language_data): Delete la_emitchar initializer.
593 * language.c (unk_lang_emit_char): Delete.
594 (language_defn::emitchar): New member function definition.
595 (unknown_language_data): Delete la_emitchar initializer.
596 (unknown_language::emitchar): New member function.
597 (auto_language_data): Delete la_emitchar initializer.
598 (auto_language::emitchar): New member function.
599 * language.h (language_data): Delete la_emitchar field.
600 (language_defn::emitchar): New member field declaration.
601 (LA_EMIT_CHAR): Update call to emitchar.
602 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
603 (m2_language_data): Delete la_emitchar initializer.
604 (m2_language::emitchar): New member function, implementation from
606 * objc-lang.c (objc_language_data): Delete la_emitchar
608 * opencl-lang.c (opencl_language_data): Likewise.
609 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
610 (pascal_language_data): Delete la_emitchar initializer.
611 (pascal_language::emitchar): New member function, implementation
612 from pascal_emit_char.
613 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
614 (rust_language_data): Delete la_emitchar initializer.
615 (rust_language::emitchar): New member function, implementation
618 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
620 * ada-lang.c (resolve): Rename to ada_language::post_parser.
621 (ada_language_data): Delete la_post_parser initializer.
622 (ada_language::post_parser): New member function.
623 * c-lang.c (c_language_data): Delete la_post_parser initializer.
624 (cplus_language_data): Likewise.
625 (asm_language_data): Likewise.
626 (minimal_language_data): Likewise.
627 * d-lang.c (d_language_data): Likewise.
628 * f-lang.c (f_language_data): Likewise.
629 * go-lang.c (go_language_data): Likewise.
630 * language.c (unknown_language_data): Likewise.
631 (auto_language_data): Likewise.
632 * language.h (language_data): Delete la_post_parser field.
633 (language_defn::post_parser): New member function.
634 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
635 * objc-lang.c (objc_language_data): Likewise.
636 * opencl-lang.c (opencl_language_data): Likewise.
637 * p-lang.c (pascal_language_data): Likewise.
638 * parse.c (parse_exp_in_context): Update call to post_parser.
639 (null_post_parser): Delete definition.
640 * parser-defs.h (null_post_parser): Delete declaration.
641 * rust-lang.c (rust_language_data): Delete la_post_parser
644 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
646 * ada-lang.c (parse): Rename to ada_language::parser.
647 (ada_language_data): Delete la_parser initializer.
648 (ada_language::parser): New member function, implementation from
650 * c-lang.c (c_language_data): Delete la_parser initializer.
651 (cplus_language_data): Likewise.
652 (asm_language_data): Likewise.
653 (minimal_language_data): Likewise.
654 * d-lang.c (d_language_data): Likewise.
655 (d_language::parser): New member function.
656 * f-lang.c (f_language_data): Delete la_parser initializer.
657 (f_language::parser): New member function.
658 * go-lang.c (go_language_data): Delete la_parser initializer.
659 (go_language::parser): New member function.
660 * language.c (unk_lang_parser): Delete.
661 (language_defn::parser): Define new member function.
662 (unknown_language_data): Delete la_parser initializer.
663 (unknown_language::parser): New member function.
664 (auto_language_data): Delete la_parser initializer.
665 (auto_language::parser): New member function.
666 * language.h (language_data): Delete la_parser field.
667 (language_defn::parser): Declare new member function.
668 * m2-lang.c (m2_language_data): Delete la_parser initializer.
669 (m2_language::parser): New member function.
670 * objc-lang.c (objc_language_data): Delete la_parser initializer.
671 * opencl-lang.c (opencl_language_data): Likewise.
672 * p-lang.c (pascal_language_data): Likewise.
673 (pascal_language::parser): New member function.
674 * parse.c (parse_exp_in_context): Update call to parser.
675 * rust-lang.c (rust_language_data): Delete la_parser initializer.
676 (rust_language::parser): New member function.
678 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
680 * top.c (print_gdb_configuration): Print --with-python-libdir
683 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
685 * NEWS: Mention change to the alias command.
687 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
689 * cli/cli-cmds.c (lookup_cmd_for_default_args)
690 (alias_command_completer)
691 (make_alias_options_def_group): New functions.
692 (alias_opts, alias_option_defs): New struct and array.
693 (alias_usage_error): Update usage.
694 (alias_command): Handles optional DEFAULT-ARGS... arguments.
695 Use option framework.
696 (_initialize_cli_cmds): Update alias command help.
697 Update aliases command help.
699 Add NULL for new default_args lookup_cmd argument.
700 (valid_command_p): Rename to validate_aliased_command.
701 Add NULL for new default_args lookup_cmd argument. Verify that the
702 aliased_command has no default args.
703 * cli/cli-decode.c (help_cmd): Show aliases definitions.
704 (lookup_cmd_1, lookup_cmd): New argument default_args.
706 Add NULL for new default_args lookup_cmd argument.
707 (print_help_for_command): Show default args under the layout
708 alias some_alias = some_aliased_cmd some_alias_default_arg.
709 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
710 xfree default_args in destructor.
711 * cli/cli-script.c (process_next_line, do_define_command):
712 Add NULL for new default_args lookup_cmd argument.
713 * command.h: Declare new default_args argument in lookup_cmd
715 * completer.c (complete_line_internal_1):
716 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
717 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
718 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
720 * infcmd.c (_initialize_infcmd): Likewise.
721 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
722 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
723 * python/py-param.c (add_setshow_generic): Likewise.
724 * remote.c (_initialize_remote): Likewise.
725 * top.c (execute_command): Prepend default_args if command has some.
727 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
728 * tracepoint.c (validate_actionline, encode_actions_1):
729 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
731 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
733 * jit.c (jit_read_descriptor): Use bool as the return type.
734 (jit_breakpoint_re_set_internal): Use bool as the return type.
735 Invert the return value logic; return true if the jit breakpoint
736 has been successfully initialized.
737 (jit_inferior_init): Update the call to
738 jit_breakpoint_re_set_internal.
740 2020-06-22 Pedro Alves <palves@redhat.com>
743 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
744 Use the current inferior instead. Don't return
745 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
747 * sol-thread.c (sol_thread_target::wait): Don't reference
749 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
750 (sol_update_thread_list_callback): Use the current inferior's pid
751 instead of inferior_ptid.
753 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
755 * procfs.c: Cleanup many comments.
757 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
758 (AFTER_WATCHFLAG): Replace by value.
760 (MAIN_PROC_NAME_FORMAT): Inline ...
761 (create_procinfo): ... here.
763 (procfs_debug_inferior): Remove SYS_exec handling.
764 (syscall_is_exec): Likewise.
765 (procfs_set_exec_trap): Likewise.
767 (syscall_is_lwp_exit): Inline in callers.
768 (syscall_is_exit): Likewise.
769 (syscall_is_exec): Likewise.
770 (syscall_is_lwp_create): Likewise.
772 (invalidate_cache): Remove #if 0 code.
774 (make_signal_thread_runnable): Remove.
775 (procfs_target::resume): Remove #if 0 code.
777 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
780 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
782 (procfs_target::create_inferior): ... here.
784 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
786 * exec.c (validate_exec_file): Ensure the build-id is up to
787 date by calling reopen_exec_file (that checks file timestamp
788 to decide to re-read the file).
790 2020-06-18 Pedro Alves <palves@redhat.com>
793 * gdbthread.h (delete_thread, delete_thread_silent)
794 (find_thread_ptid): Update comments.
795 * thread.c (current_thread_): New global.
796 (is_current_thread): Move higher, and reimplement.
797 (inferior_thread): Reimplement.
798 (set_thread_exited): Use bool. Add assertions.
799 (add_thread_silent): Simplify thread-reuse handling by always
800 calling delete_thread.
801 (delete_thread): Remove intro comment.
802 (find_thread_ptid): Skip exited threads.
803 (switch_to_thread_no_regs): Write to current_thread_.
804 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
805 INFERIOR_PTID. Clear current_thread_.
807 2020-06-18 Pedro Alves <palves@redhat.com>
809 * aix-thread.c (pd_update): Use switch_to_thread.
811 2020-06-18 Pedro Alves <palves@redhat.com>
813 * ravenscar-thread.c (ravenscar_thread_target): Update.
814 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
815 (ravenscar_thread_target::add_active_thread): ... this. Don't
816 set m_base_ptid here. Update to avoid referencing inferior_ptid.
817 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
819 2020-06-18 Pedro Alves <palves@redhat.com>
821 * nat/windows-nat.c (current_windows_thread): Remove.
822 * nat/windows-nat.h (current_windows_thread): Remove.
823 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
825 (display_selectors): Adjust to fetch the current
826 windows_thread_info based on inferior_ptid.
827 (fake_create_process): No longer write to current_windows_thread.
828 (windows_nat_target::get_windows_debug_event):
829 Don't set inferior_ptid or current_windows_thread.
830 (windows_nat_target::wait): Adjust to not rely on
831 current_windows_thread.
832 (do_initial_windows_stuff): Now a method of windows_nat_target.
833 Switch to the last_ptid thread.
834 (windows_nat_target::attach): Adjust.
835 (windows_nat_target::detach): Use switch_to_no_thread instead of
836 writing to inferior_ptid directly.
837 (windows_nat_target::create_inferior): Adjust.
839 2020-06-18 Pedro Alves <palves@redhat.com>
841 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
843 2020-06-18 Pedro Alves <palves@redhat.com>
845 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
846 after creating it, instead of writing to inferior_ptid. Don't
847 write to inferior_ptid.
849 2020-06-18 Pedro Alves <palves@redhat.com>
851 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
853 2020-06-18 Pedro Alves <palves@redhat.com>
855 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
856 it, instead of writing to inferior_ptid.
858 2020-06-18 Pedro Alves <palves@redhat.com>
860 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
863 2020-06-18 Pedro Alves <palves@redhat.com>
865 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
866 instead of writing to inferior_ptid directly.
868 2020-06-18 Pedro Alves <palves@redhat.com>
870 * corelow.c (core_target::close): Use switch_to_no_thread instead
871 of writing to inferior_ptid directly.
872 (add_to_thread_list, core_target_open): Use switch_to_thread
873 instead of writing to inferior_ptid directly.
875 2020-06-18 Pedro Alves <palves@redhat.com>
877 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
879 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
881 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
882 inferior_ptid directly.
883 (darwin_nat_target::init_thread_list): Switch to thread, instead
884 of writing to inferior_ptid.
885 (darwin_nat_target::attach): Don't write to inferior_ptid.
886 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
888 2020-06-18 Pedro Alves <palves@redhat.com>
890 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
892 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
893 Instead use switch_to_thread.
894 (gnu_nat_target::detach): Use switch_to_no_thread
895 instead of writing to inferior_ptid directly. Used passed-in
896 inferior instead of looking up the inferior by pid.
898 2020-06-18 Pedro Alves <palves@redhat.com>
900 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
903 2020-06-18 Pedro Alves <palves@redhat.com>
905 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
907 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
909 (nto_procfs_target::detach): Avoid referencing
910 inferior_ptid. Use switch_to_no_thread instead of writing to
911 inferior_ptid directly.
912 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
913 instead of writing to inferior_ptid directly.
914 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
917 2020-06-18 Pedro Alves <palves@redhat.com>
919 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
920 after creating it, instead of writing to inferior_ptid.
921 (gdbsim_target_open): Use switch_to_no_thread instead of writing
922 to inferior_ptid directly.
923 (gdbsim_target::wait): Don't write to inferior_ptid.
925 2020-06-18 Pedro Alves <palves@redhat.com>
927 * remote.c (remote_target::remote_notice_new_inferior): Use
928 switch_to_thread instead of writing to inferior_ptid directly.
929 (remote_target::add_current_inferior_and_thread): Use
930 switch_to_no_thread instead of writing to inferior_ptid directly.
931 (extended_remote_target::attach): Use switch_to_inferior_no_thread
932 and switch_to_thread instead of using set_current_inferior or
933 writing to inferior_ptid directly.
935 2020-06-18 Pedro Alves <palves@redhat.com>
937 * tracectf.c (ctf_target_open): Switch to added thread instead of
938 writing to inferior_ptid directly.
939 (ctf_target::close): Use switch_to_no_thread instead of writing to
940 inferior_ptid directly.
942 2020-06-18 Pedro Alves <palves@redhat.com>
944 * tracefile-tfile.c (tfile_target_open): Don't write to
945 inferior_ptid directly, instead switch to added thread.
946 (tfile_target::close): Use switch_to_no_thread instead of writing
947 to inferior_ptid directly.
949 2020-06-18 Pedro Alves <palves@redhat.com>
951 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
952 (procfs_target::detach): Use switch_to_no_thread
953 instead of writing to inferior_ptid directly.
954 (do_attach): Change return type to void. Switch to the added
956 (procfs_target::create_inferior): Switch to the added thread.
957 (procfs_do_thread_registers): Don't write to inferior_ptid.
959 2020-06-18 Pedro Alves <palves@redhat.com>
961 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
962 of writing to inferior_ptid.
963 (scoped_restore_exited_inferior): Delete.
964 (handle_vfork_child_exec_or_exit): Simplify using
965 scoped_restore_current_pspace_and_thread. Use switch_to_thread
966 instead of writing to inferior_ptid.
967 (THREAD_STOPPED_BY): Delete.
968 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
969 (thread_stopped_by_hw_breakpoint): Delete.
970 (save_waitstatus): Use
971 scoped_restore_current_thread+switch_to_thread, and call
972 target_stopped_by_watchpoint instead of
973 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
974 instead of thread_stopped_by_sw_breakpoint, and
975 target_stopped_by_hw_breakpoint instead of
976 thread_stopped_by_hw_breakpoint.
977 (handle_inferior_event)
978 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
979 inferior_ptid directly, nor
980 set_current_inferior/set_current_program_space. Use
981 switch_to_thread / switch_to_inferior_no_thread instead.
983 2020-06-18 Pedro Alves <palves@redhat.com>
985 * target.c (generic_mourn_inferior): Use switch_to_no_thread
986 instead of writing to inferior_ptid.
988 2020-06-18 Pedro Alves <palves@redhat.com>
990 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
992 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
994 (inf_ptrace_target::detach_success): Use switch_to_no_thread
995 instead of writing to inferior_ptid.
997 2020-06-18 Pedro Alves <palves@redhat.com>
999 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1000 (register_to_value_test): Mock a program_space too. Heap-allocate
1001 the address space. Don't write to inferior_ptid. Use
1002 switch_to_thread instead.
1004 2020-06-18 Pedro Alves <palves@redhat.com>
1006 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1008 (find_signalled_thread()): New, factored out from
1009 linux_make_corefile_notes and adjusted to handle exited threads.
1010 (linux_make_corefile_notes): Adjust to use the new
1011 find_signalled_thread.
1013 2020-06-18 Pedro Alves <palves@redhat.com>
1015 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1016 of saving/restoring inferior_ptid.
1018 2020-06-17 Tom Tromey <tom@tromey.com>
1020 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1021 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1023 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1025 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
1027 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1030 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1032 * regformats/reg-arm.dat: Remove.
1033 * regformats/reg-bfin.dat: Remove.
1034 * regformats/reg-cris.dat: Remove.
1035 * regformats/reg-crisv32.dat: Remove.
1036 * regformats/reg-m32r.dat: Remove.
1037 * regformats/reg-tilegx.dat: Remove.
1038 * regformats/reg-tilegx32.dat: Remove.
1040 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1042 * features/Makefile (WHICH): Remove arm files.
1043 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1044 * regformats/arm/arm-with-neon.dat: Remove.
1045 * regformats/arm/arm-with-vfpv2.dat: Remove.
1046 * regformats/arm/arm-with-vfpv3.dat: Remove.
1048 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1050 * features/Makefile (XMLTOC): Remove rx.xml.
1052 2020-06-17 Pedro Alves <palves@redhat.com>
1054 * gdbthread.h (thread_control_state) <trap_expected> Update
1057 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1059 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1060 ada_language::lookup_symbol_nonlocal.
1061 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1062 (ada_language::lookup_symbol_nonlocal): New member function,
1063 implementation from ada_lookup_symbol_nonlocal.
1064 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1066 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1068 (cplus_language::lookup_symbol_nonlocal): New member function.
1069 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1070 (minimal_language_data) Likewise.
1071 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1072 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1074 (d_language::lookup_symbol_nonlocal): New member function.
1075 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1077 (f_language::lookup_symbol_nonlocal): New member function.
1078 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1080 * language.c (unknown_language_data): Likewise.
1081 (auto_language_data): Likewise.
1082 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1084 (language_defn::lookup_symbol_nonlocal): New member function.
1085 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1087 * objc-lang.c (objc_language_data): Likewise.
1088 * opencl-lang.c (opencl_language_data): Likewise.
1089 * p-lang.c (pascal_language_data): Likewise.
1090 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1091 rust_language::lookup_symbol_nonlocal.
1092 (rust_language_data): Delete la_lookup_symbol_nonlocal
1094 (rust_language::lookup_symbol_nonlocal): New member function,
1095 implementation from rust_lookup_symbol_nonlocal.
1096 * symtab.c (lookup_symbol_aux): Update call to
1097 lookup_symbol_nonlocal.
1098 (basic_lookup_symbol_nonlocal): Rename to...
1099 (language_defn::lookup_symbol_nonlocal): ...this, and update
1100 header comment. Remove language_defn parameter, and replace with
1102 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1104 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1106 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1108 (ada_language::value_print_inner): New member function.
1109 * c-lang.c (c_language_data): Delete la_value_print_inner
1111 (cplus_language_data): Likewise.
1112 (asm_language_data): Likewise.
1113 (minimal_language_data): Likewise.
1114 * d-lang.c (d_language_data): Likewise.
1115 (d_language::value_print_inner): New member function.
1116 * f-lang.c (f_language_data): Delete la_value_print_inner
1118 (f_language::value_print_inner): New member function.
1119 * f-lang.h (f_value_print_innner): Rename to...
1120 (f_value_print_inner): ...this (note spelling of 'inner').
1121 * f-valprint.c (f_value_print_innner): Rename to...
1122 (f_value_print_inner): ...this (note spelling of 'inner').
1123 * go-lang.c (go_language_data): Delete la_value_print_inner
1125 (go_language::value_print_inner): New member function.
1126 * language.c (language_defn::value_print_inner): Define new member
1128 (unk_lang_value_print_inner): Delete.
1129 (unknown_language_data): Delete la_value_print_inner initializer.
1130 (unknown_language::value_print_inner): New member function.
1131 (auto_language_data): Delete la_value_print_inner initializer.
1132 (auto_language::value_print_inner): New member function.
1133 * language.h (language_data): Delete la_value_print_inner field.
1134 (language_defn::value_print_inner): Delcare new member function.
1135 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1137 (m2_language::value_print_inner): New member function.
1138 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1140 * opencl-lang.c (opencl_language_data): Likewise.
1141 * p-lang.c (pascal_language_data): Likewise.
1142 (pascal_language::value_print_inner): New member function.
1143 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1145 (rust_language::value_print_inner): New member function.
1146 * valprint.c (do_val_print): Update call to value_print_inner.
1148 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1150 * ada-lang.c (ada_language_data): Delete la_value_print
1152 (ada_language::value_print): New member function.
1153 * c-lang.c (c_language_data): Delete la_value_print initializer.
1154 (cplus_language_data): Likewise.
1155 (asm_language_data): Likewise.
1156 (minimal_language_data): Likewise.
1157 * d-lang.c (d_language_data): Likewise.
1158 * f-lang.c (f_language_data): Likewise.
1159 * go-lang.c (go_language_data): Likewise.
1160 * language.c (unk_lang_value_print): Delete.
1161 (language_defn::value_print): Define new member function.
1162 (unknown_language_data): Delete la_value_print initializer.
1163 (unknown_language::value_print): New member function.
1164 (auto_language_data): Delete la_value_print initializer.
1165 (auto_language::value_print): New member function.
1166 * language.h (language_data): Delete la_value_print field.
1167 (language_defn::value_print): Declare new member function.
1168 (LA_VALUE_PRINT): Update call to value_print.
1169 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1170 * objc-lang.c (objc_language_data): Likewise.
1171 * opencl-lang.c (opencl_language_data): Likewise.
1172 * p-lang.c (pascal_language_data): Likewise.
1173 (pascal_language::value_print): New member function.
1174 * rust-lang.c (rust_language_data): Delete la_value_print
1177 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1179 * ada-lang.c (ada_watch_location_expression): Rename to
1180 ada_language::watch_location_expression.
1181 (ada_language_data): Delete la_watch_location_expression
1183 (ada_language::watch_location_expression): New member function,
1184 implementation from ada_watch_location_expression.
1185 * breakpoint.c (watch_command_1): Update call to
1186 watch_location_expression.
1187 * c-lang.c (c_watch_location_expression): Rename to
1188 language_defn::watch_location_expression.
1189 (c_language_data): Delete la_watch_location_expression
1191 (cplus_language_data): Likewise.
1192 (asm_language_data): Likewise.
1193 (minimal_language_data): Likewise.
1194 * c-lang.h (c_watch_location_expression): Delete declaration.
1195 * d-lang.c (d_language_data): Delete la_watch_location_expression
1197 * f-lang.c (f_language_data): Likewise.
1198 * go-lang.c (go_language_data): Likewise.
1199 * language.c (language_defn::watch_location_expression): Member
1200 function implementation from c_watch_location_expression.
1201 (unknown_language_data): Delete la_watch_location_expression
1203 (auto_language_data): Likewise.
1204 * language.h (language_data): Delete la_watch_location_expression
1206 (language_defn::watch_location_expression): Declare new member
1208 * m2-lang.c (m2_language_data): Delete
1209 la_watch_location_expression initializer.
1210 * objc-lang.c (objc_language_data): Likewise.
1211 * opencl-lang.c (opencl_language_data): Likewise.
1212 * p-lang.c (pascal_language_data): Likewise.
1213 * rust-lang.c (rust_watch_location_expression): Rename to
1214 rust_language::watch_location_expression.
1215 (rust_language_data): Delete la_watch_location_expression
1217 (rust_language::watch_location_expression): New member function,
1218 implementation from rust_watch_location_expression.
1220 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1222 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1223 ada_language::collect_symbol_completion_matches.
1224 (ada_language_data): Delete la_collect_symbol_completion_matches
1226 (ada_language::collect_symbol_completion_matches): New member
1227 function, implementation from
1228 ada_collect_symbol_completion_matches.
1229 * c-lang.c (c_language_data): Delete
1230 la_collect_symbol_completion_matches initializer.
1231 (cplus_language_data): Likewise.
1232 (asm_language_data): Likewise.
1233 (minimal_language_data): Likewise.
1234 * d-lang.c (d_language_data): Likewise.
1235 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1236 f_language::collect_symbol_completion_matches.
1237 (f_language_data): Delete la_collect_symbol_completion_matches
1239 (f_language::collect_symbol_completion_matches) New member
1240 function, implementation from f_collect_symbol_completion_matches.
1241 * go-lang.c (go_language_data): Delete
1242 la_collect_symbol_completion_matches initializer.
1243 * language.c (unknown_language_data): Likewise.
1244 (auto_language_data): Likewise.
1245 * language.h (language_data): Delete
1246 la_collect_symbol_completion_matches field.
1247 (language_defn::collect_symbol_completion_matches): New member
1249 * m2-lang.c (m2_language_data): Delete
1250 la_collect_symbol_completion_matches initializer.
1251 * objc-lang.c (objc_language_data): Likewise.
1252 * opencl-lang.c (opencl_language_data): Likewise.
1253 * p-lang.c (pascal_language_data): Likewise.
1254 * rust-lang.c (rust_language_data): Likewise.
1255 * symtab.c (default_collect_symbol_completion_matches): Delete.
1256 (collect_symbol_completion_matches): Update call to
1257 collect_symbol_completion_matches.
1258 (collect_symbol_completion_matches_type): Likewise.
1259 * symtab.h (default_collect_symbol_completion_matches): Delete
1262 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1264 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1265 (ada_language_data): Delete la_word_break_characters initializer.
1266 (ada_language::word_break_characters): New member function.
1267 * c-lang.c (c_language_data): Delete la_word_break_characters
1269 (cplus_language_data): Likewise.
1270 (asm_language_data): Likewise.
1271 (minimal_language_data): Likewise.
1272 * completer.c: Update global comment.
1273 (advance_to_expression_complete_word_point): Update call to
1274 word_break_characters.
1275 (complete_files_symbols): Likewise.
1276 (complete_line_internal_1): Likewise.
1277 (default_completer_handle_brkchars): Likewise.
1278 (skip_quoted_chars): Likewise.
1279 * d-lang.c (d_language_data): Delete la_word_break_characters
1281 * f-lang.c (f_word_break_characters): Delete.
1282 (f_language_data): Delete la_word_break_characters initializer.
1283 (f_language::word_break_characters): New member function.
1284 * go-lang.c (go_language_data): Delete la_word_break_characters
1286 * language.c (unknown_language_data): Likewise.
1287 (auto_language_data): Likewise.
1288 * language.h (default_word_break_characters): Move declaration to
1289 earlier in the file.
1290 (language_data): Delete la_word_break_characters field.
1291 (language_defn::word_break_characters): New member function.
1292 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1294 * objc-lang.c (objc_language_data): Likewise.
1295 * opencl-lang.c (opencl_language_data): Likewise.
1296 * p-lang.c (pascal_language_data): Likewise.
1297 * rust-lang.c (rust_language_data): Likewise.
1299 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1301 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1302 (ada_language_data): Delete la_get_symbol_name_matcher
1304 (language_defn::get_symbol_name_matcher_inner): New member
1306 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1308 (cplus_language_data): Likewise.
1309 (cplus_language::get_symbol_name_matcher_inner): New member
1311 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1312 (minimal_language_data): Likewise.
1313 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1314 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1316 * dictionary.c (iter_match_first_hashed): Update call to
1317 get_symbol_name_matcher.
1318 (iter_match_next_hashed): Likewise.
1319 (iter_match_next_linear): Likewise.
1320 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1321 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1323 (f_language::get_symbol_name_matcher_inner): New member function.
1324 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1326 * language.c (default_symbol_name_matcher): Update header comment,
1328 (language_defn::get_symbol_name_matcher): New definition.
1329 (language_defn::get_symbol_name_matcher_inner): Likewise.
1330 (get_symbol_name_matcher): Delete.
1331 (unknown_language_data): Delete la_get_symbol_name_matcher
1333 (auto_language_data): Likewise.
1334 * language.h (language_data): Delete la_get_symbol_name_matcher
1336 (language_defn::get_symbol_name_matcher): New member function.
1337 (language_defn::get_symbol_name_matcher_inner): Likewise.
1338 (default_symbol_name_matcher): Delete declaration.
1339 * linespec.c (find_methods): Update call to
1340 get_symbol_name_matcher.
1341 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1343 * minsyms.c (lookup_minimal_symbol): Update call to
1344 get_symbol_name_matcher.
1345 (iterate_over_minimal_symbols): Likewise.
1346 * objc-lang.c (objc_language_data): Delete
1347 la_get_symbol_name_matcher initializer.
1348 * opencl-lang.c (opencl_language_data): Likewise.
1349 * p-lang.c (pascal_language_data): Likewise.
1350 * psymtab.c (psymbol_name_matches): Update call to
1351 get_symbol_name_matcher.
1352 * rust-lang.c (rust_language_data): Delete
1353 la_get_symbol_name_matcher initializer.
1354 * symtab.c (symbol_matches_search_name): Update call to
1355 get_symbol_name_matcher.
1356 (compare_symbol_name): Likewise.
1358 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1360 * ada-lang.c (ada_language_data): Delete la_compute_program
1362 * c-lang.c (c_language_data): Likewise.
1363 (c_language::compute_program): New member function.
1364 (cplus_language_data): Delete la_compute_program initializer.
1365 (cplus_language::compute_program): New member function.
1366 (asm_language_data): Delete la_compute_program initializer.
1367 (minimal_language_data): Likewise.
1368 * c-lang.h (c_compute_program): Update comment.
1369 (cplus_compute_program): Likewise.
1370 * compile/compile-c-support.c (c_compute_program): Likewise.
1371 (cplus_compute_program): Likewise.
1372 * compile/compile.c (compile_to_object): Update call to
1374 * d-lang.c (d_language_data): Delete la_compute_program
1376 * f-lang.c (f_language_data): Likewise.
1377 * go-lang.c (go_language_data): Likewise.
1378 * language.c (unknown_language_data): Likewise.
1379 (auto_language_data): Likewise.
1380 * language.h (language_data): Delete la_compute_program field.
1381 (language_defn::compute_program): New member function.
1382 * m2-lang.c (m2_language_data): Delete la_compute_program
1384 * objc-lang.c (objc_language_data): Likewise.
1385 * opencl-lang.c (opencl_language_data): Likewise.
1386 * p-lang.c (pascal_language_data): Likewise.
1387 * rust-lang.c (rust_language_data): Likewise.
1389 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1391 * ada-lang.c (ada_language_data) Delete
1392 la_class_name_from_physname initializer.
1393 * c-lang.c (c_language_data): Likewise.
1394 (cplus_language_data): Likewise.
1395 (cplus_language::class_name_from_physname): New member function.
1396 (asm_language_data): Delete la_class_name_from_physname
1398 (minimal_language_data): Likewise.
1399 * d-lang.c (d_language_data): Likewise.
1400 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1401 method on language_defn class.
1402 (guess_full_die_structure_name): Likewise.
1403 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1405 * go-lang.c (go_language_data): Likewise.
1406 * language.c (language_class_name_from_physname): Delete.
1407 (unk_lang_class_name): Delete.
1408 (unknown_language_data): Delete la_class_name_from_physname
1410 (auto_language_data): Likewise.
1411 * language.h (language_data): Delete la_class_name_from_physname
1413 (language_defn::class_name_from_physname): New function.
1414 (language_class_name_from_physname): Delete declaration.
1415 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1417 * objc-lang.c (objc_language_data): Likewise.
1418 * opencl-lang.c (opencl_language_data): Likewise.
1419 * p-lang.c (pascal_language_data): Likewise.
1420 * rust-lang.c (rust_language_data): Likewise.
1422 2020-06-16 Tom Tromey <tom@tromey.com>
1424 * tui/tui-data.h (STATUS_NAME): New macro.
1425 * tui/tui-layout.c (tui_remove_some_windows)
1426 (initialize_known_windows, tui_register_window)
1427 (tui_layout_split::remove_windows, initialize_layouts)
1428 (tui_new_layout_command): Don't use hard-coded window names.
1430 2020-06-16 Tom Tromey <tom@tromey.com>
1433 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1434 tui_initialize_readline. Only run once. Call rl_initialize.
1435 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1436 tui_initialize_readline.
1437 * tui/tui-io.c (tui_setup_io): Call
1438 tui_ensure_readline_initialized.
1439 * tui/tui-interp.c (tui_interp::init): Update.
1441 2020-06-16 Tom Tromey <tom@tromey.com>
1443 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1444 Also preserve the status window.
1446 2020-06-16 Tom Tromey <tom@tromey.com>
1448 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1449 where m_window==nullptr.
1451 2020-06-15 Tom Tromey <tromey@adacore.com>
1453 * windows-nat.c (windows_nat::handle_output_debug_string):
1455 (windows_nat::handle_ms_vc_exception): Update.
1456 * target.h (target_read_string): Change API.
1457 * target.c (target_read_string): Change API.
1458 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1460 * solib-frv.c (frv_current_sos): Update.
1461 * solib-dsbt.c (dsbt_current_sos): Update.
1462 * solib-darwin.c (darwin_current_sos): Update.
1463 * linux-thread-db.c (inferior_has_bug): Update.
1464 * expprint.c (print_subexp_standard): Update.
1465 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1466 (ada_exception_message_1): Update.
1468 2020-06-15 Tom Tromey <tromey@adacore.com>
1470 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1472 2020-06-15 Tom Tromey <tromey@adacore.com>
1474 * valprint.c (read_string): Update comment.
1475 * target.c (MIN): Remove.
1476 (target_read_string): Rewrite.
1478 2020-06-15 Tom Tromey <tromey@adacore.com>
1480 * corefile.c (read_memory_string): Remove.
1481 * ada-valprint.c (ada_value_print_ptr): Update.
1482 * ada-lang.h (ada_tag_name): Change return type.
1483 * ada-lang.c (type_from_tag): Update.
1484 (ada_tag_name_from_tsd): Change return type. Use
1486 (ada_tag_name): Likewise.
1487 * gdbcore.h (read_memory_string): Don't declare.
1489 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
1491 * symtab.c (rbreak_command): Ignore Windows drive colon.
1493 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
1495 * NEWS: Mention removed GDBserver host support.
1497 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
1499 * features/riscv/rebuild-csr-xml.sh: Updated.
1501 2020-06-11 Tom Tromey <tom@tromey.com>
1504 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1506 2020-06-09 Jonny Grant <jg@jguk.org>
1507 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1509 * main.c (captured_main_1): Don't print new line after help.
1510 (print_gdb_help): add mailing list and IRC channel information
1511 to --help. Add new lines between items in the footer. Remove
1512 quotes around bug url.
1514 2020-06-11 Keith Seitz <keiths@redhat.com>
1517 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1518 Resolve typedefs for type length calculations.
1520 2020-06-10 Tom de Vries <tdevries@suse.de>
1523 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1524 (write_psymbols): Enable .gdb_index for ada.
1525 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1528 2020-06-10 Tom de Vries <tdevries@suse.de>
1530 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1531 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1532 namei" instead of "const char *name" argument.
1533 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1534 dw2_symtab_iter_init.
1536 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
1538 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1539 to use type::field and field::type instead.
1541 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
1543 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1544 to use field::type instead.
1546 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
1548 * gdbtypes.h (struct field) <type, set_type>: New methods.
1549 Rename `type` field to...
1550 <m_type>: ... this. Change references throughout to use type or
1552 (FIELD_TYPE): Use field::type. Change call sites that modify
1553 the field's type to use field::set_type instead.
1555 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
1557 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1558 to use type::index_type instead.
1560 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
1562 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1564 (TYPE_INDEX_TYPE): Use type::index_type.
1565 * gdbtypes.c (create_array_type_with_stride): Likewise.
1567 2020-06-07 Tom Tromey <tom@tromey.com>
1569 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1571 (generic_value_print): Update.
1573 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1575 Revert commit 982a38f60b0.
1576 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1578 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1580 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1581 avoid use after free.
1583 2020-06-05 Tom de Vries <tdevries@suse.de>
1587 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
1589 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1591 (dwarf2_read_debug_names): Likewise.
1592 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1593 object when re-using a per_bfd object with an index.
1595 2020-06-03 Tom de Vries <tdevries@suse.de>
1598 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1600 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1603 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1605 * ada-lang.c (ada_language_data): Delete skip_trampoline
1607 * c-lang.c (c_language_data): Likewise.
1608 (cplus_language_data): Likewise.
1609 (cplus_language::skip_trampoline): New member function.
1610 (asm_language_data): Delete skip_trampoline initializer.
1611 (minimal_language_data): Likewise.
1612 * d-lang.c (d_language_data): Likewise.
1613 * f-lang.c (f_language_data): Likewise.
1614 * go-lang.c (go_language_data): Likewise.
1615 * language.c (unk_lang_trampoline): Delete function.
1616 (skip_language_trampoline): Update.
1617 (unknown_language_data): Delete skip_trampoline initializer.
1618 (auto_language_data): Likewise.
1619 * language.h (language_data): Delete skip_trampoline field.
1620 (language_defn::skip_trampoline): New function.
1621 * m2-lang.c (m2_language_data): Delete skip_trampoline
1623 * objc-lang.c (objc_skip_trampoline): Delete function, move
1624 implementation to objc_language::skip_trampoline.
1625 (objc_language_data): Delete skip_trampoline initializer.
1626 (objc_language::skip_trampoline): New member function with
1627 implementation from objc_skip_trampoline.
1628 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1630 * p-lang.c (pascal_language_data): Likewise.
1631 * rust-lang.c (rust_language_data): Likewise.
1633 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1635 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1636 (ada_language::demangle): New member function.
1637 * c-lang.c (c_language_data): Delete la_demangle initializer.
1638 (cplus_language_data): Delete la_demangle initializer.
1639 (cplus_language::demangle): New member function.
1640 (asm_language_data): Delete la_demangle initializer.
1641 (minimal_language_data): Delete la_demangle initializer.
1642 * d-lang.c (d_language_data): Delete la_demangle initializer.
1643 (d_language::demangle): New member function.
1644 * f-lang.c (f_language_data): Delete la_demangle initializer.
1645 (f_language::demangle): New member function.
1646 * go-lang.c (go_language_data): Delete la_demangle initializer.
1647 (go_language::demangle): New member function.
1648 * language.c (language_demangle): Update.
1649 (unk_lang_demangle): Delete.
1650 (unknown_language_data): Delete la_demangle initializer.
1651 (unknown_language::demangle): New member function.
1652 (auto_language_data): Delete la_demangle initializer.
1653 (auto_language::demangle): New member function.
1654 * language.h (language_data): Delete la_demangle field.
1655 (language_defn::demangle): New function.
1656 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1657 * objc-lang.c (objc_language_data): Delete la_demangle
1659 (objc_language::demangle): New member function.
1660 * opencl-lang.c (opencl_language_data): Delete la_demangle
1662 * p-lang.c (pascal_language_data): Likewise.
1663 * rust-lang.c (rust_language_data): Likewise.
1664 (rust_language::demangle): New member function.
1666 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1668 * ada-lang.c (ada_language_data): Delete la_print_type
1670 (ada_language::print_type): New member function.
1671 * c-lang.c (c_language_data): Delete la_print_type initializer.
1672 (c_language::print_type): New member function.
1673 (cplus_language_data): Delete la_print_type initializer.
1674 (cplus_language::print_type): New member function.
1675 (asm_language_data): Delete la_print_type initializer.
1676 (asm_language::print_type): New member function.
1677 (minimal_language_data): Delete la_print_type initializer.
1678 (minimal_language::print_type): New member function.
1679 * d-lang.c (d_language_data): Delete la_print_type initializer.
1680 (d_language::print_type): New member function.
1681 * f-lang.c (f_language_data): Delete la_print_type initializer.
1682 (f_language::print_type): New member function.
1683 * go-lang.c (go_language_data): Delete la_print_type initializer.
1684 (go_language::print_type): New member function.
1685 * language.c (unk_lang_print_type): Delete.
1686 (unknown_language_data): Delete la_print_type initializer.
1687 (unknown_language::print_type): New member function.
1688 (auto_language_data): Delete la_print_type initializer.
1689 (auto_language::print_type): New member function.
1690 * language.h (language_data): Delete la_print_type field.
1691 (language_defn::print_type): New function.
1692 (LA_PRINT_TYPE): Update.
1693 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1694 (m2_language::print_type): New member function.
1695 * objc-lang.c (objc_language_data): Delete la_print_type
1697 (objc_language::print_type): New member function.
1698 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1699 to opencl_language::print_type.
1700 (opencl_language_data): Delete la_print_type initializer.
1701 (opencl_language::print_type): New member function, implementation
1702 from opencl_print_type.
1703 * p-lang.c (pascal_language_data): Delete la_print_type
1705 (pascal_language::print_type): New member function.
1706 * rust-lang.c (rust_print_type): Delete, implementation moved to
1707 rust_language::print_type.
1708 (rust_language_data): Delete la_print_type initializer.
1709 (rust_language::print_type): New member function, implementation
1710 from rust_print_type.
1712 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1714 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1715 implementation moves to...
1716 (ada_language::sniff_from_mangled_name): ...here. Update return
1718 (ada_language_data): Delete la_sniff_from_mangled_name
1720 * c-lang.c (c_language_data): Likewise.
1721 (cplus_language_data): Likewise.
1722 (cplus_language::sniff_from_mangled_name): New member function,
1723 implementation taken from gdb_sniff_from_mangled_name.
1724 (asm_language_data): Delete la_sniff_from_mangled_name
1726 (minimal_language_data): Likewise.
1727 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1728 implementation moves to cplus_language::sniff_from_mangled_name.
1729 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1730 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1732 (d_language::sniff_from_mangled_name): ...here.
1733 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1734 * f-lang.c (f_language_data): Likewise.
1735 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1737 (go_language::sniff_from_mangled_name): ...here.
1738 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1739 * language.c (language_sniff_from_mangled_name): Delete.
1740 (unknown_language_data): Delete la_sniff_from_mangled_name
1742 (auto_language_data): Likewise.
1743 * language.h (language_data): Delete la_sniff_from_mangled_name
1745 (language_defn::sniff_from_mangled_name): New function.
1746 (language_sniff_from_mangled_name): Delete declaration.
1747 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1749 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1750 implementation moves to...
1751 (objc_language::sniff_from_mangled_name): ...here.
1752 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1753 * opencl-lang.c (opencl_language_data): Likewise.
1754 * p-lang.c (pascal_language_data): Likewise.
1755 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1756 implementation moves to...
1757 (rust_language::sniff_from_mangled_name): ...here.
1758 (rust_language_data): Delete la_sniff_from_mangled_name
1760 * symtab.c (symbol_find_demangled_name): Call
1761 sniff_from_mangled_name member function.
1763 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1765 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1767 * c-lang.c (c_language_data): Likewise.
1768 (cplus_language_data): Likewise.
1769 (cplus_language::search_name_hash): New member function.
1770 (asm_language_data): Delete la_search_name_hash initializer.
1771 (minimal_language_data): Likewise.
1772 * d-lang.c (d_language_data): Likewise.
1773 * dictionary.c (default_search_name_hash): Rename to...
1774 (language_defn::search_name_hash): ...this.
1775 * f-lang.c (f_language_data): Likewise.
1776 (f_language::search_name_hash): New member function.
1777 * go-lang.c (go_language_data): Delete la_search_name_hash
1779 * language.c (unknown_language_data): Likewise.
1780 (auto_language_data): Likewise.
1781 * language.h (struct language_data): Delete la_search_name_hash
1783 (language_defn::search_name_hash): Declare new member function.
1784 (default_search_name_hash): Delete declaration.
1785 * m2-lang.c (m2_language_data): Delete la_search_name_hash
1787 * objc-lang.c (objc_language_data): Likewise.
1788 * opencl-lang.c (opencl_language_data): Likewise.
1789 * p-lang.c (pascal_language_data): Likewise.
1790 * rust-lang.c (rust_language_data): Likewise.
1791 * symtab.c (search_name_hash): Update call.
1793 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1795 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
1797 * c-lang.c (class compile_instance): Declare.
1798 (c_language_data): Delete la_get_compile_instance initializer.
1799 (c_language::get_compile_instance): New member function.
1800 (cplus_language_data): Delete la_get_compile_instance initializer.
1801 (cplus_language::get_compile_instance): New member function.
1802 (asm_language_data): Delete la_get_compile_instance initializer.
1803 (minimal_language_data): Likewise.
1804 * c-lang.h (c_get_compile_context): Update comment.
1805 (cplus_get_compile_context): Update comment.
1806 * compile/compile.c (compile_to_object): Update calls, don't rely
1807 on function pointer being NULL.
1808 * d-lang.c (d_language_data): Delete la_get_compile_instance
1810 * f-lang.c (f_language_data): Likewise.
1811 * go-lang.c (go_language_data): Likewise.
1812 * language.c (unknown_language_data): Likewise.
1813 (auto_language_data): Likewise.
1814 * language.h (language_data): Delete la_get_compile_instance field.
1815 (language_defn::get_compile_instance): New member function.
1816 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
1818 * objc-lang.c (objc_language_data): Likewise.
1819 * opencl-lang.c (opencl_language_data): Likewise.
1820 * p-lang.c (pascal_language_data): Likewise.
1821 * rust-lang.c (rust_language_data): Likewise.
1823 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1825 * ada-lang.c (ada_add_all_symbols): Update comment.
1826 (ada_iterate_over_symbols): Delete, move implementation to...
1827 (ada_language::iterate_over_symbols): ...here, a new member
1828 function, rewrite to use range based for loop.
1829 (ada_language_data): Delete la_iterate_over_symbols initializer.
1830 * c-lang.c (c_language_data): Likewise.
1831 (cplus_language_data): Likewise.
1832 (asm_language_data): Likewise.
1833 (minimal_language_data): Likewise.
1834 * d-lang.c (d_language_data): Likewise.
1835 * f-lang.c (f_language_data): Likewise.
1836 * go-lang.c (go_language_data): Likewise.
1837 * language.c (unknown_language_data): Likewise.
1838 (auto_language_data): Likewise.
1839 * language.h (language_data): Delete la_iterate_over_symbols field.
1840 (language_defn::iterate_over_symbols): New member function.
1841 (LA_ITERATE_OVER_SYMBOLS): Update.
1842 * linespec.c (iterate_over_all_matching_symtabs): Update.
1843 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
1845 * objc-lang.c (objc_language_data): Likewise.
1846 * opencl-lang.c (opencl_language_data): Likewise.
1847 * p-lang.c (pascal_language_data): Likewise.
1848 * rust-lang.c (rust_language_data): Likewise.
1850 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1852 * ada-lang.c (ada_language_data): Delete
1853 la_lookup_transparent_type initializer.
1854 * c-lang.c (c_language_data): Likewise.
1855 (cplus_language_data): Likewise.
1856 (cplus_language::lookup_transparent_type): New member function.
1857 (asm_language_data): Delete la_lookup_transparent_type
1859 (minimal_language_data): Likewise.
1860 * d-lang.c (d_language_data): Likewise.
1861 * f-lang.c (f_language_data): Likewise.
1862 * go-lang.c (go_language_data): Likewise.
1863 * language.c (unknown_language_data): Likewise.
1864 (auto_language_data): Likewise.
1865 * language.h (struct language_data): Delete
1866 la_lookup_transparent_type field.
1867 (language_defn::lookup_transparent_type): New member function.
1868 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
1870 * objc-lang.c (objc_language_data): Likewise.
1871 * opencl-lang.c (opencl_language_data): Likewise.
1872 * p-lang.c (pascal_language_data): Likewise.
1873 * rust-lang.c (rust_language_data): Likewise.
1874 * symtab.c (symbol_matches_domain): Update call.
1876 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1878 * ada-lang.c (ada_language_arch_info): Delete function, move
1879 implementation to...
1880 (ada_language::language_arch_info): ...here, a new member
1882 (ada_language_data): Delete la_language_arch_info.
1883 * c-lang.c (c_language_data): Likewise.
1884 (c_language::language_arch_info): New member function.
1885 (cplus_language_arch_info): Delete function, move
1886 implementation to...
1887 (cplus_language::language_arch_info): ...here, a new member
1889 (cplus_language_data): Delete la_language_arch_info.
1890 (asm_language_data): Likewise.
1891 (asm_language::language_arch_info): New member function.
1892 (minimal_language_data): Delete la_language_arch_info.
1893 (minimal_language::language_arch_info): New member function.
1894 * d-lang.c (d_language_arch_info): Delete function, move
1895 implementation to...
1896 (d_language::language_arch_info): ...here, a new member
1898 (d_language_data): Delete la_language_arch_info.
1899 * f-lang.c (f_language_arch_info): Delete function, move
1900 implementation to...
1901 (f_language::language_arch_info): ...here, a new member
1903 (f_language_data): Delete la_language_arch_info.
1904 * go-lang.c (go_language_arch_info): Delete function, move
1905 implementation to...
1906 (go_language::language_arch_info): ...here, a new member
1908 (go_language_data): Delete la_language_arch_info.
1909 * language.c (unknown_language_data): Likewise.
1910 (unknown_language::language_arch_info): New member function.
1911 (auto_language_data): Delete la_language_arch_info.
1912 (auto_language::language_arch_info): New member function.
1913 (language_gdbarch_post_init): Update call to
1914 la_language_arch_info.
1915 * language.h (language_data): Delete la_language_arch_info
1917 (language_defn::language_arch_info): New function.
1918 * m2-lang.c (m2_language_arch_info): Delete function, move
1919 implementation to...
1920 (m2_language::language_arch_info): ...here, a new member
1922 (m2_language_data): Delete la_language_arch_info.
1923 * objc-lang.c (objc_language_arch_info): Delete function, move
1924 implementation to...
1925 (objc_language::language_arch_info): ...here, a new member
1927 (objc_language_data): Delete la_language_arch_info.
1928 * opencl-lang.c (opencl_language_arch_info): Delete function, move
1929 implementation to...
1930 (opencl_language::language_arch_info): ...here, a new member
1932 (opencl_language_data): Delete la_language_arch_info.
1933 * p-lang.c (pascal_language_arch_info): Delete function, move
1934 implementation to...
1935 (pascal_language::language_arch_info): ...here, a new member
1937 (pascal_language_data): Delete la_language_arch_info.
1938 * rust-lang.c (rust_language_arch_info): Delete function, move
1939 implementation to...
1940 (rust_language::language_arch_info): ...here, a new member
1942 (rust_language_data): Delete la_language_arch_info.
1944 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1946 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
1948 * c-lang.c (c_language_data): Likewise.
1949 (cplus_language_data): Likewise.
1950 (cplus_language::pass_by_reference_info): New method.
1951 (asm_language_data): Delete la_pass_by_reference initializer.
1952 (minimal_language_data): Likewise.
1953 * cp-abi.c (cp_pass_by_reference): Remove use of
1954 default_pass_by_reference.
1955 * d-lang.c (d_language_data): Likewise.
1956 * f-lang.c (f_language_data): Likewise.
1957 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
1958 default_pass_by_reference.
1959 * go-lang.c (go_language_data): Likewise.
1960 * language.c (language_pass_by_reference): Update.
1961 (default_pass_by_reference): Delete.
1962 (unknown_language_data): Delete la_pass_by_reference
1964 (auto_language_data): Likewise.
1965 * language.h (struct language_data): Delete la_pass_by_reference
1967 (language_defn::pass_by_reference_info): New member function.
1968 (default_pass_by_reference): Delete declaration.
1969 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
1971 * objc-lang.c (objc_language_data): Likewise.
1972 * opencl-lang.c (opencl_language_data): Likewise.
1973 * p-lang.c (pascal_language_data): Likewise.
1974 * rust-lang.c (rust_language_data): Likewise.
1976 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1978 * ada-lang.c (ada_read_var_value): Delete function, move
1979 implementation to...
1980 (ada_language::read_var_value): ...here.
1981 (ada_language_data): Delete la_read_var_value initializer.
1982 * c-lang.c (c_language_data): Likewise.
1983 (cplus_language_data): Likewise.
1984 (minimal_language_data): Likewise.
1985 * d-lang.c (d_language_data): Likewise.
1986 * f-lang.c (f_language_data): Likewise.
1987 * findvar.c (default_read_var_value): Rename to...
1988 (language_defn::read_var_value): ...this.
1989 * findvar.c (read_var_value): Update header comment, and change to
1990 call member function instead of function pointer.
1991 * go-lang.c (go_language_data): Likewise.
1992 * language.c (unknown_language_data): Delete la_read_var_value
1994 (auto_language_data): Likewise.
1995 * language.h (struct language_data): Delete la_read_var_value
1997 (language_defn::read_var_value): New member function.
1998 (default_read_var_value): Delete declaration.
1999 * m2-lang.c (m2_language_data): Delete la_read_var_value
2001 * objc-lang.c (objc_language_data): Likewise.
2002 * opencl-lang.c (opencl_language_data): Likewise.
2003 * p-lang.c (pascal_language_data): Likewise.
2004 * rust-lang.c (rust_language_data): Likewise.
2005 * value.h (default_read_var_value): Delete declaration.
2007 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2009 * ada-lang.c (ada_print_array_index): Delete function, move
2010 implementation to...
2011 (ada_language::print_array_index): ...here.
2012 (ada_language_data): Delete la_print_array_index initializer.
2013 * c-lang.c (c_language_data): Likewise.
2014 (cplus_language_data): Likewise.
2015 (minimal_language_data): Likewise.
2016 * d-lang.c (d_language_data): Likewise.
2017 * f-lang.c (f_language_data): Likewise.
2018 * go-lang.c (go_language_data): Likewise.
2019 * language.c (default_print_array_index): Delete function, move
2020 implementation to...
2021 (language_defn::print_array_index): ...here.
2022 (unknown_language_data): Delete la_print_array_index initializer.
2023 (auto_language_data): Likewise.
2024 * language.h (struct language_data): Delete la_print_array_index
2026 (language_defn::print_array_index): New member function.
2027 (LA_PRINT_ARRAY_INDEX): Update.
2028 (default_print_array_index): Delete declaration.
2029 * m2-lang.c (m2_language_data): Delete la_print_array_index
2031 * objc-lang.c (objc_language_data): Likewise.
2032 * opencl-lang.c (opencl_language_data): Likewise.
2033 * p-lang.c (pascal_language_data): Likewise.
2034 * rust-lang.c (rust_language_data): Likewise.
2036 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2038 * gdb/ada-lang.c (ada_language_defn): Convert to...
2039 (ada_language_data): ...this.
2040 (class ada_language): New class.
2041 (ada_language_defn): New static global.
2042 * gdb/c-lang.c (c_language_defn): Convert to...
2043 (c_language_data): ...this.
2044 (class c_language): New class.
2045 (c_language_defn): New static global.
2046 (cplus_language_defn): Convert to...
2047 (cplus_language_data): ...this.
2048 (class cplus_language): New class.
2049 (cplus_language_defn): New static global.
2050 (asm_language_defn): Convert to...
2051 (asm_language_data): ...this.
2052 (class asm_language): New class.
2053 (asm_language_defn): New static global.
2054 (minimal_language_defn): Convert to...
2055 (minimal_language_data): ...this.
2056 (class minimal_language): New class.
2057 (minimal_language_defn): New static global.
2058 * gdb/d-lang.c (d_language_defn): Convert to...
2059 (d_language_data): ...this.
2060 (class d_language): New class.
2061 (d_language_defn): New static global.
2062 * gdb/f-lang.c (f_language_defn): Convert to...
2063 (f_language_data): ...this.
2064 (class f_language): New class.
2065 (f_language_defn): New static global.
2066 * gdb/go-lang.c (go_language_defn): Convert to...
2067 (go_language_data): ...this.
2068 (class go_language): New class.
2069 (go_language_defn): New static global.
2070 * gdb/language.c (unknown_language_defn): Remove declaration.
2071 (current_language): Initialize to nullptr, real initialization is
2072 moved to _initialize_language.
2073 (languages): Delete global.
2074 (language_defn::languages): Define.
2075 (set_language_command): Use language_defn::languages.
2076 (set_language): Likewise.
2077 (range_error): Likewise.
2078 (language_enum): Likewise.
2079 (language_def): Likewise.
2080 (add_set_language_command): Use language_def::languages for the
2081 language list, and language_def to lookup language pointers.
2082 (skip_language_trampoline): Use language_defn::languages.
2083 (unknown_language_defn): Convert to...
2084 (unknown_language_data): ...this.
2085 (class unknown_language): New class.
2086 (unknown_language_defn): New static global.
2087 (auto_language_defn): Convert to...
2088 (auto_language_data): ...this.
2089 (class auto_language): New class.
2090 (auto_language_defn): New static global.
2091 (language_gdbarch_post_init): Use language_defn::languages.
2092 (_initialize_language): Initialize current_language.
2093 * gdb/language.h (struct language_defn): Rename to...
2094 (struct language_data): ...this.
2095 (struct language_defn): New.
2096 (auto_language_defn): Delete.
2097 (unknown_language_defn): Delete.
2098 (minimal_language_defn): Delete.
2099 (ada_language_defn): Delete.
2100 (asm_language_defn): Delete.
2101 (c_language_defn): Delete.
2102 (cplus_language_defn): Delete.
2103 (d_language_defn): Delete.
2104 (f_language_defn): Delete.
2105 (go_language_defn): Delete.
2106 (m2_language_defn): Delete.
2107 (objc_language_defn): Delete.
2108 (opencl_language_defn): Delete.
2109 (pascal_language_defn): Delete.
2110 (rust_language_defn): Delete.
2111 * gdb/m2-lang.c (m2_language_defn): Convert to...
2112 (m2_language_data): ...this.
2113 (class m2_language): New class.
2114 (m2_language_defn): New static global.
2115 * gdb/objc-lang.c (objc_language_defn): Convert to...
2116 (objc_language_data): ...this.
2117 (class objc_language): New class.
2118 (objc_language_defn): New static global.
2119 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2120 (opencl_language_data): ...this.
2121 (class opencl_language): New class.
2122 (opencl_language_defn): New static global.
2123 * gdb/p-lang.c (pascal_language_defn): Convert to...
2124 (pascal_language_data): ...this.
2125 (class pascal_language): New class.
2126 (pascal_language_defn): New static global.
2127 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2128 language pointer, update comment format.
2129 * gdb/rust-lang.c (rust_language_defn): Convert to...
2130 (rust_language_data): ...this.
2131 (class rust_language): New class.
2132 (rust_language_defn): New static global.
2134 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2136 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2138 <m_stmt_at_address>: New member variable.
2139 (lnp_state_machine::record_line): Don't record some lines, update
2140 tracking of is_stmt at the same address.
2141 (lnp_state_machine::lnp_state_machine): Initialise new member
2144 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2146 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2147 "-include gnu-nat-mig.h".
2148 * gnu-nat-mig.h: New file.
2149 * gnu-nat.c: Include "gnu-nat-mig.h".
2150 (exc_server, msg_reply_server, notify_server,
2151 process_reply_server): Remove declarations.
2153 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2155 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2156 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2157 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2158 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2159 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2160 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2161 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2162 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2163 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2164 to gnu_nat_target class.
2165 * gnu-nat.c: Likewise.
2166 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2167 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2168 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2170 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2171 instead of `gnu_target'.
2173 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2175 * i386-gnu-tdep.c: Include "gdbcore.h"
2176 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2177 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2178 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2179 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2180 i386_gnu_sigcontext_addr): New functions
2181 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2182 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2185 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2187 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2188 before fork_inferior call. Avoid calling it if target_is_pushed returns
2191 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2193 * gnu-nat.h (gnu_target): New variable declaration.
2194 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2196 * gnu-nat.c (gnu_target): New variable.
2197 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2198 add_thread_silent, and add_thread calls.
2199 (gnu_nat_target::create_inferior): Pass gnu_target to
2200 add_thread_silent, thread_change_ptid call.
2201 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2204 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2206 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2207 (gnu_nat_target::find_memory_regions): Remove unused
2208 `old_address' variable.
2210 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2212 * gnu-nat.c: Include "gdbarch.h".
2214 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2216 * reply_mig_hack.awk (Error return): Cast function through
2217 void *, to bypass compiler function call check.
2219 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2221 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2222 $(srcdir)/reply_mig_hack.awk.
2224 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2226 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2228 2020-05-30 Jonny Grant <jg@jguk.org>
2230 * configure.ac (ACX_BUGURL): change bug URL to https.
2232 2020-05-30 Pedro Alves <palves@redhat.com>
2234 * cp-support.c (replace_typedefs_template): New.
2235 (replace_typedefs_qualified_name): Handle
2236 DEMANGLE_COMPONENT_TEMPLATE.
2238 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
2240 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2241 dwarf2/index-cache.h, dwarf2/index-write.c,
2242 dwarf2/index-write.h, dwarf2/line-header.c,
2243 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2244 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2245 variables and fields from `dwarf2_per_objfile` to just
2246 `per_objfile` throughout.
2248 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2250 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2251 <push_dwarf_reg_entry_value>: Add comment.
2253 2020-05-28 Kevin Buettner <kevinb@redhat.com>
2254 Keith Seitz <keiths@redhat.com>
2256 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2257 instead of PyEval_ReleaseLock.
2258 (class gdbpy_gil): Move to earlier in file.
2259 (finalize_python): Set gdb_python_initialized.
2260 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2261 when not initialized.
2263 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
2265 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2266 <push_dwarf_reg_entry_value>: Remove assert. Override
2267 per_objfile with caller_per_objfile.
2269 2020-05-28 Tom de Vries <tdevries@suse.de>
2271 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2272 PR gold/15646 workaround to symbol kind "type".
2274 2020-05-27 Tom Tromey <tromey@adacore.com>
2276 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2278 2020-05-27 Tom Tromey <tromey@adacore.com>
2280 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2281 Use htab_find_with_hash.
2282 <add_abbrev>: Remove "abbrev_number" parameter.
2283 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2284 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2285 (hash_abbrev): Add comment.
2286 (abbrev_table::lookup_abbrev): Move to header file.
2287 (abbrev_table::read): Update.
2289 2020-05-27 Tom Tromey <tromey@adacore.com>
2291 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2293 <canonical_name>: New member.
2294 <raw_name>: Rename from "name".
2295 (partial_die_info): Initialize canonical_name.
2296 (scan_partial_symbols): Check raw_name.
2297 (partial_die_parent_scope, partial_die_full_name)
2298 (add_partial_symbol, add_partial_subprogram)
2299 (add_partial_enumeration, load_partial_dies): Use "name" method.
2300 (partial_die_info::name): New method.
2301 (partial_die_info::read, guess_partial_die_structure_name)
2302 (partial_die_info::fixup): Update.
2304 2020-05-27 Tom Tromey <tromey@adacore.com>
2306 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2307 <get_ref_die_offset>: Inline.
2308 <get_ref_die_offset_complaint>: New method.
2309 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2310 (attribute::get_ref_die_offset_complaint): Rename from
2311 get_ref_die_offset. Just issue complaint.
2313 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
2315 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2317 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
2319 * exec.c (exec_file_attach): Use errno value of first openp failure.
2321 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
2323 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2324 Don't close thread handle.
2326 2020-05-27 Tom Tromey <tom@tromey.com>
2327 Simon Marchi <simon.marchi@efficios.com>
2329 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2331 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2333 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2334 dwarf2_per_bfd_objfile_data_key>: New globals.
2335 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2336 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2337 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2339 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2340 short-circuit when sharing.
2341 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2342 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2344 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2346 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2348 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2349 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2351 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2353 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2354 build_name_components, find_name_components_bounds>:
2355 Add per_objfile parameter.
2356 (struct mapped_index) <symbol_name_at>: Likewise.
2357 (struct mapped_debug_names): Remove constructor.
2358 <dwarf2_per_objfile>: Remove field.
2359 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2360 (mapped_index_base::find_name_components_bounds,
2361 mapped_index_base::build_name_components,
2362 dw2_expand_symtabs_matching_symbol): Likewise.
2363 (class mock_mapped_index) <symbol_name_at>: Likewise.
2364 (check_match): Likewise.
2365 (check_find_bounds_finds): Likewise.
2366 (test_mapped_index_find_name_component_bounds): Update.
2367 (CHECK_MATCH): Update.
2368 (dw2_expand_symtabs_matching): Update.
2369 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2370 per_objfile parameter.
2371 <find_vec_in_debug_names>: Likewise.
2372 <m_per_objfile>: New field.
2373 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2375 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2376 (dw2_debug_names_iterator::next): Update.
2377 (dw2_debug_names_lookup_symbol): Update.
2378 (dw2_debug_names_expand_symtabs_for_function): Update.
2379 (dw2_debug_names_map_matching_symbols): Update.
2380 (dw2_debug_names_expand_symtabs_matching): Update.
2381 (dwarf2_read_debug_names): Update.
2383 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2385 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2386 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2387 move to dwarf2_per_objfile.
2388 <read_in_chain>: Remove.
2389 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2390 remove_all_cus, age_comp_units>: New methods.
2391 <m_dwarf2_cus>: New member.
2392 (struct dwarf2_per_cu_data) <cu>: Remove.
2393 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2394 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2395 moved to methods of dwarf2_per_objfile.
2396 (dwarf2_clear_marks): Remove.
2397 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2398 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2399 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2400 (dwarf2_per_objfile::remove_all_cus): New.
2401 (class free_cached_comp_units) <~free_cached_comp_units>:
2404 (dw2_do_instantiate_symtab): Adjust.
2405 (fill_in_sig_entry_from_dwo_entry): Adjust.
2406 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2407 (cutu_reader::cutu_reader): Likewise.
2408 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2409 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2410 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2411 and dwarf2_per_objfile::age_comp_units.
2412 (load_partial_comp_unit): Update.
2413 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2414 (process_queue): Likewise.
2415 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2417 (dwarf2_read_addr_index): Likewise.
2418 (follow_die_offset): Likewise.
2419 (dwarf2_fetch_die_loc_sect_off): Likewise.
2420 (dwarf2_fetch_constant_bytes): Likewise.
2421 (dwarf2_fetch_die_type_sect_off): Likewise.
2422 (follow_die_sig_1): Likewise.
2423 (load_full_type_unit): Likewise.
2424 (read_signatured_type): Likewise.
2425 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2426 (dwarf2_cu::~dwarf2_cu): Remove.
2427 (dwarf2_per_objfile::get_cu): New.
2428 (dwarf2_per_objfile::set_cu): New.
2429 (age_cached_comp_units): Rename to...
2430 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2431 to std::unordered_map.
2432 (free_one_cached_comp_unit): Rename to...
2433 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2434 to std::unordered_map.
2435 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2436 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2437 a dwarf2_per_objfile in data.
2438 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2439 (dwarf2_clear_marks): Remove.
2441 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2443 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2444 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2445 (init_tu_and_read_dwo_dies): Likewise.
2446 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2447 (cutu_reader::cutu_reader): Likewise.
2448 (load_partial_comp_unit): Likewise.
2449 (process_psymtab_comp_unit): Update.
2450 (build_type_psymtabs_1): Update.
2451 (process_skeletonless_type_unit): Update.
2452 (load_full_comp_unit): Update.
2453 (find_partial_die): Update.
2454 (dwarf2_read_addr_index): Update.
2455 (read_signatured_type): Update.
2457 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2459 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2460 m_header_read_in>: New fields.
2461 <get_header>: New method.
2462 * dwarf2/read.c (per_cu_header_read_in): Remove.
2463 (dwarf2_per_cu_data::get_header): New.
2464 (dwarf2_per_cu_data::addr_size): Update.
2465 (dwarf2_per_cu_data::offset_size): Update.
2466 (dwarf2_per_cu_data::ref_addr_size): Update.
2468 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2470 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2471 (dw2_do_instantiate_symtab): Update.
2472 (queue_and_load_all_dwo_tus): Change parameter from
2473 dwarf2_per_cu_data to dwarf2_cu.
2474 (dwarf2_fetch_die_loc_sect_off): Update.
2475 (dwarf2_fetch_constant_bytes): Update.
2476 (dwarf2_fetch_die_type_sect_off): Update.
2478 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2480 * dwarf2/read.c (process_full_comp_unit,
2481 process_full_type_unit): Remove per_cu, per_objfile paramters.
2482 Add dwarf2_cu parameter.
2483 (process_queue): Update.
2485 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2487 * dwarf2/read.c (create_cu_from_index_list): Replace
2488 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2489 (create_cus_from_index_list): Likewise.
2490 (create_cus_from_index): Likewise.
2491 (create_signatured_type_table_from_index): Likewise.
2492 (create_cus_from_debug_names_list): Likewise.
2493 (create_cus_from_debug_names): Likewise.
2494 (dwarf2_read_gdb_index): Update.
2495 (dwarf2_read_debug_names): Update.
2497 2020-05-27 Tom Tromey <tom@tromey.com>
2498 Simon Marchi <simon.marchi@efficios.com>
2500 * dwarf2/read.h (struct dwarf2_per_objfile)
2501 <get_type_for_signatured_type, set_type_for_signatured_type>:
2503 <m_type_map>: New member.
2504 (struct signatured_type) <type>: Remove.
2506 (dwarf2_per_objfile::get_type_for_signatured_type,
2507 dwarf2_per_objfile::set_type_for_signatured_type): New.
2508 (get_signatured_type): Use new methods.
2510 2020-05-27 Tom Tromey <tom@tromey.com>
2511 Simon Marchi <simon.marchi@efficios.com>
2513 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2514 (struct dwarf2_per_objfile) <type_units>: New member.
2515 <get_type_unit_group_unshareable>: New method.
2516 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2517 num_symtabs, symtabs>: Remove; move to
2518 type_unit_group_unshareable.
2519 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2520 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2521 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2523 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2525 * dwarf2/read.h (struct dwarf2_per_cu_data):
2526 <dwarf2_per_objfile>: Remove.
2527 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2529 (create_signatured_type_table_from_index): Likewise.
2530 (create_signatured_type_table_from_debug_names): Likewise.
2531 (create_debug_type_hash_table): Likewise.
2532 (fill_in_sig_entry_from_dwo_entry): Likewise.
2533 (create_type_unit_group): Likewise.
2534 (read_comp_units_from_section): Likewise.
2535 (create_cus_hash_table): Likewise.
2537 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2539 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2540 dwarf2_per_cu_data::dwarf2_per_objfile.
2541 (compute_compunit_symtab_includes): Likewise.
2542 (dwarf2_cu::start_symtab): Likewise.
2544 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2546 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2548 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2549 (read_namespace_alias): Update.
2550 (lookup_die_type): Update.
2551 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2552 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2554 (disassemble_dwarf_expression): Update.
2556 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2558 * dwarf2/read.h (struct dwarf2_queue_item): Add
2559 dwarf2_per_objfile parameter, assign new parameter.
2560 <per_objfile>: New field.
2561 * dwarf2/read.c (free_one_cached_comp_unit): Add
2562 dwarf2_per_objfile parameter.
2563 (queue_comp_unit): Likewise.
2564 (dw2_do_instantiate_symtab): Update.
2565 (process_psymtab_comp_unit): Update.
2566 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2567 (process_imported_unit_die): Update.
2568 (queue_and_load_dwo_tu): Update.
2569 (follow_die_offset): Update.
2570 (follow_die_sig_1): Update.
2572 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2574 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2575 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2576 (read_call_site_scope): Assign per_objfile.
2577 (dwarf2_per_cu_data::objfile): Remove.
2578 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2579 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2580 dwarf2_per_objfile parameter.
2581 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2582 dwarf2_per_objfile parameter.
2583 (dwarf_expr_reg_to_entry_parameter): Add output
2584 dwarf2_per_objfile parameter.
2585 (locexpr_get_frame_base): Update.
2586 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2587 <push_dwarf_reg_entry_value>: Update.
2588 <call_site_to_target_addr>: Update.
2589 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2591 (value_of_dwarf_reg_entry): Update.
2592 (rw_pieced_value): Update.
2593 (indirect_synthetic_pointer): Update.
2594 (dwarf2_evaluate_property): Update.
2595 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2597 (locexpr_read_variable): Update.
2598 (locexpr_get_symbol_read_needs): Update.
2599 (loclist_read_variable): Update.
2601 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2603 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2604 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2605 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2607 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2608 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2609 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2611 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2612 sect_variable_value): Add dwarf2_per_objfile parameter.
2613 (class dwarf_evaluate_loc_desc) <dwarf_call,
2614 dwarf_variable_value>: Update.
2615 (fetch_const_value_from_synthetic_pointer): Add
2616 dwarf2_per_objfile parameter.
2617 (fetch_const_value_from_synthetic_pointer): Update.
2618 (coerced_pieced_ref): Update.
2619 (class symbol_needs_eval_context) <dwarf_call,
2620 dwarf_variable_value>: Update.
2621 (dwarf2_compile_expr_to_ax): Update.
2623 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2625 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2627 (dwarf2_evaluate_loc_desc_full): Update.
2629 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2631 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2633 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2634 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2635 dwarf2_per_objfile parameter.
2636 (decode_debug_loc_dwo_addresses): Likewise.
2637 (dwarf2_find_location_expression): Update.
2638 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2639 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2641 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2643 (locexpr_describe_location_1): Likewise.
2644 (locexpr_describe_location): Update.
2646 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2648 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2650 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2651 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2652 (dwarf2_compile_property_to_c): Update.
2653 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2654 use text offset from objfile.
2655 (locexpr_tracepoint_var_ref): Update.
2656 (locexpr_generate_c_location): Update.
2657 (loclist_describe_location): Update.
2658 (loclist_tracepoint_var_ref): Update.
2659 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2660 dwarf2_per_objfile parameter.
2661 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2662 use text offset from objfile.
2663 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2665 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2667 * dwarf2/expr.h (struct dwarf_expr_context)
2668 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2670 <per_objfile>: New member.
2671 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2672 dwarf2_per_objfile parameter. Don't set offset, set
2674 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2675 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2676 a dwarf2_per_objfile object instead of an offset.
2677 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2679 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2680 to dwarf2_expr_executor constructor. Don't set offset.
2681 (dwarf2_fetch_cfa_info): Update.
2682 (struct dwarf2_frame_cache) <text_offset>: Remove.
2683 <per_objfile>: New field.
2684 (dwarf2_frame_cache): Update.
2685 (dwarf2_frame_prev_register): Update.
2686 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2687 <dwarf_evaluate_loc_desc>: Add constructor.
2688 (dwarf2_evaluate_loc_desc_full): Update.
2689 (dwarf2_locexpr_baton_eval): Update.
2690 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2692 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2694 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2696 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2697 addr_sized_int_type>: Move to dwarf2_cu.
2698 <int_type>: Move to dwarf2_per_objfile.
2699 (struct dwarf2_per_objfile) <int_type>: Move here.
2700 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2701 addr_sized_int_type>: Move here.
2702 (read_func_scope): Update.
2703 (read_array_type): Update.
2704 (read_tag_string_type): Update.
2705 (attr_to_dynamic_prop): Update.
2706 (dwarf2_per_cu_data::int_type): Rename to...
2707 (dwarf2_per_objfile::int_type): ... this.
2708 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2709 (dwarf2_cu::addr_sized_int_type): ... this.
2710 (read_subrange_type): Update.
2711 (dwarf2_per_cu_data::addr_type): Rename to...
2712 (dwarf2_cu::addr_type): ... this.
2713 (set_die_type): Update.
2715 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2717 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2718 data through per_cu->cu.
2720 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2722 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2723 dwarf2_per_cu_data parameter fo dwarf2_cu.
2724 (lookup_dwo_type_unit): Likewise.
2725 (read_cutu_die_from_dwo): Likewise.
2726 (lookup_dwo_unit): Likewise.
2727 (open_and_init_dwo_file): Likewise.
2728 (lookup_dwo_cutu): Likewise.
2729 (lookup_dwo_comp_unit): Likewise.
2730 (lookup_dwo_type_unit): Likewise.
2731 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2732 (cutu_reader::cutu_reader): Update.
2734 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2736 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2738 (process_full_type_unit): Likewise.
2739 (process_queue): Update.
2741 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2743 * dwarf2/read.c (recursively_compute_inclusions): Add
2744 dwarf2_per_objfile parameter.
2745 (compute_compunit_symtab_includes): Likewise.
2746 (process_cu_includes): Update.
2748 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2750 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2752 (create_type_unit_group): Update.
2753 (process_psymtab_comp_unit_reader): Update.
2754 (build_type_psymtabs_reader): Update.
2756 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2758 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2759 object through m_this_cu->cu.
2761 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2763 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2765 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2767 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2769 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2770 per_objfile parameter.
2771 (load_full_type_unit): Add per_objfile parameter.
2772 (read_signatured_type): Likewise.
2773 (load_full_comp_unit): Likewise.
2774 (load_cu): Likewise.
2775 (dw2_do_instantiate_symtab): Likewise.
2776 (dw2_get_file_names): Likewise.
2777 (dw2_map_symtabs_matching_filename): Update.
2778 (dw_expand_symtabs_matching_file_matcher): Update.
2779 (dw2_map_symbol_filenames): Update.
2780 (process_psymtab_comp_unit): Add per_objfile parameter.
2781 (build_type_psymtabs_1): Update.
2782 (process_skeletonless_type_unit): Update.
2783 (dwarf2_build_psymtabs_hard): Update.
2784 (load_partial_comp_unit): Add per_objfile parameter.
2785 (scan_partial_symbols): Update.
2786 (load_full_comp_unit): Add per_objfile parameter.
2787 (process_imported_unit_die): Update.
2788 (create_cus_hash_table): Update.
2789 (find_partial_die): Update.
2790 (dwarf2_read_addr_index): Update.
2791 (follow_die_offset): Update.
2792 (dwarf2_fetch_die_loc_sect_off): Update.
2793 (dwarf2_fetch_constant_bytes): Update.
2794 (dwarf2_fetch_die_type_sect_off): Update.
2795 (follow_die_sig_1): Update.
2796 (load_full_type_unit): Add per_objfile parameter.
2797 (read_signatured_type): Likewise.
2799 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2801 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
2804 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2806 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
2807 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2808 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
2810 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2811 (create_cus_from_index): Update.
2812 (dwarf2_read_gdb_index): Update.
2813 (create_cus_from_debug_names): Update.
2814 (dwarf2_read_debug_names): Update.
2815 (get_abbrev_section_for_cu): Update.
2816 (create_all_comp_units): Update.
2817 (read_attribute_value): Update.
2818 (get_debug_line_section): Update.
2819 * dwarf2/index-cache.c (index_cache::store): Update.
2820 * dwarf2/index-write.c (save_gdb_index_command): Update.
2821 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2823 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2825 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
2827 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
2828 dwarf2_per_cu_data::per_bfd.
2829 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
2830 (create_type_unit_group): Likewise.
2831 (queue_comp_unit): Remove reference to
2832 per_cu->dwarf2_per_objfile.
2833 (maybe_queue_comp_unit): Likewise.
2834 (fill_in_sig_entry_from_dwo_entry): Assign new field.
2835 (create_cus_hash_table): Assign new field.
2837 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2839 * dwarf2/read.c: Replace
2840 dwarf2_cu->per_cu->dwarf2_per_objfile references with
2841 dwarf2_cu->per_objfile throughout.
2843 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2845 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
2846 parameter, don't use per_cu->dwarf2_per_objfile.
2847 (dw2_instantiate_symtab): Likewise.
2848 (dw2_find_last_source_symtab): Update.
2849 (dw2_map_expand_apply): Update.
2850 (dw2_lookup_symbol): Update.
2851 (dw2_expand_symtabs_for_function): Update.
2852 (dw2_expand_all_symtabs): Update.
2853 (dw2_expand_symtabs_with_fullname): Update.
2854 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
2855 don't use per_cu->dwarf2_per_objfile.
2856 (dw2_expand_marked_cus): Update.
2857 (dw2_find_pc_sect_compunit_symtab): Update.
2858 (dw2_debug_names_lookup_symbol): Update.
2859 (dw2_debug_names_expand_symtabs_for_function): Update.
2860 (dw2_debug_names_map_matching_symbols): Update.
2861 (dwarf2_psymtab::expand_psymtab): Update.
2863 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2865 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
2866 <per_objfile>: New member.
2867 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
2868 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
2870 (cutu_reader::cutu_reader): Update.
2871 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
2873 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2875 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
2876 struct dwarf2_per_objfile.
2877 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
2879 * dwarf2/read.c (set_die_type): Update.
2880 (get_die_type_at_offset): Update.
2882 2020-05-27 Tom Tromey <tom@tromey.com>
2883 Simon Marchi <simon.marchi@efficios.com>
2885 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
2887 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
2888 get_symtab, set_symtab>: New methods.
2889 <m_symtabs>: New field.
2890 (struct dwarf2_psymtab): Derive from partial_symtab.
2891 <readin_p, get_compunit_symtab>: Declare methods.
2892 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
2893 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
2895 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
2896 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
2897 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
2898 (dw2_symtab_iter_next, dw2_print_stats)
2899 (dw2_expand_symtabs_with_fullname)
2900 (dw2_expand_symtabs_matching_one)
2901 (dw_expand_symtabs_matching_file_matcher)
2902 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
2903 (dw2_debug_names_iterator::next)
2904 (dw2_debug_names_map_matching_symbols)
2905 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
2906 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
2907 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
2909 (get_compunit_symtab, process_full_comp_unit)
2910 (process_full_type_unit): Update.
2911 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
2913 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2915 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
2916 then introduce a new dwarf2_per_objfile type.
2917 <read_line_string>: Move to the new dwarf2_per_objfile type.
2918 <objfile>: Likewise.
2919 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
2920 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
2921 dwarf2_per_objfile->per_bfd.
2922 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
2923 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
2924 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
2925 (dwarf2_per_bfd::free_cached_comp_units): ... this.
2926 (dwarf2_has_info): Allocate dwarf2_per_bfd.
2927 (dwarf2_per_objfile::locate_sections): Rename to...
2928 (dwarf2_per_bfd::locate_sections): ... this.
2929 (dwarf2_per_objfile::get_cutu): Rename to...
2930 (dwarf2_per_bfd::get_cutu): ... this.
2931 (dwarf2_per_objfile::get_cu): Rename to...
2932 (dwarf2_per_bfd::get_cu): ... this.
2933 (dwarf2_per_objfile::get_tu): Rename to...
2934 (dwarf2_per_bfd::get_tu): ... this.
2935 (dwarf2_per_objfile::allocate_per_cu): Rename to...
2936 (dwarf2_per_bfd::allocate_per_cu): ... this.
2937 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
2938 (dwarf2_per_bfd::allocate_signatured_type): ... this.
2939 (get_gdb_index_contents_ftype): Change parameter from
2940 dwarf2_per_objfile to dwarf2_per_bfd.
2941 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
2942 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
2944 2020-05-27 Tom Tromey <tom@tromey.com>
2945 Simon Marchi <simon.marchi@efficios.com>
2947 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
2948 (allocate_piece_closure): Set "per_objfile" member.
2949 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
2950 (locexpr_describe_location, loclist_describe_location): Use new
2952 * dwarf2/read.c (read_call_site_scope)
2953 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2954 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
2955 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
2956 handle_data_member_location): Set per_objfile member.
2957 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
2959 (struct dwarf2_loclist_baton) <per_objfile>: New member.
2961 2020-05-27 Tom Tromey <tom@tromey.com>
2963 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
2964 allocate_signatured_type>: Declare new methods.
2965 <m_num_psymtabs>: New member.
2966 (struct dwarf2_per_cu_data) <index>: New member.
2967 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
2968 (dwarf2_per_objfile::allocate_signatured_type): New methods.
2969 (create_cu_from_index_list): Use allocate_per_cu.
2970 (create_signatured_type_table_from_index)
2971 (create_signatured_type_table_from_debug_names)
2972 (create_debug_type_hash_table, add_type_unit)
2973 (read_comp_units_from_section): Use allocate_signatured_type.
2975 2020-05-27 Tom Tromey <tom@tromey.com>
2977 * psymtab.c (partial_map_expand_apply)
2978 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
2979 (psym_lookup_global_symbol_language)
2980 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
2981 (psym_print_stats, psym_expand_symtabs_for_function)
2982 (psym_map_symbol_filenames, psym_map_matching_symbols)
2983 (psym_expand_symtabs_matching)
2984 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
2985 (maintenance_check_psymtabs): Update.
2986 * psympriv.h (struct partial_symtab) <readin_p,
2987 get_compunit_symtab>: Add objfile parameter.
2988 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
2990 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
2991 get_compunit_symtab>: Likewise.
2992 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
2994 2020-05-27 Tom Tromey <tom@tromey.com>
2996 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
2998 * dwarf2/read.c (delete_file_name_entry): Fix comment.
2999 (create_cu_from_index_list)
3000 (create_signatured_type_table_from_index)
3001 (create_signatured_type_table_from_debug_names)
3002 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3003 (dwarf2_create_include_psymtab)
3004 (create_debug_type_hash_table, add_type_unit)
3005 (create_type_unit_group, read_comp_units_from_section)
3006 (dwarf2_compute_name, create_cus_hash_table)
3007 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3008 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3010 (dw2_get_real_path): Likewise. Change argument to
3013 2020-05-27 Luis Machado <luis.machado@linaro.org>
3016 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3017 for ldrd (immediate).
3019 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3021 * command.h: Add comment giving the name of class_tui.
3022 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3023 create the fake command for the help for class_tui.
3025 2020-05-26 Tom Tromey <tromey@adacore.com>
3027 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3028 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3029 (val_atr): New function.
3030 (value_val_atr): Use it.
3031 * ada-valprint.c (print_optional_low_bound): Change low bound
3033 (val_print_packed_array_elements): Don't call discrete_position.
3034 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3035 discrete_position for enum types.
3036 * language.c (default_print_array_index): Change type.
3037 * language.h (struct language_defn) <la_print_array_index>: Add
3038 index_type parameter, change type of index_value.
3039 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3040 (default_print_array_index): Update.
3041 * valprint.c (maybe_print_array_index): Don't call
3042 value_from_longest. Update.
3043 (value_print_array_elements): Don't call discrete_position.
3045 2020-05-26 Tom Tromey <tromey@adacore.com>
3047 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3048 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3050 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3053 * avr-tdep.c (avr_integer_to_address): Return data or code
3054 address accordingly to the second 'type' argument of the
3057 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3059 * infcmd.c, inferior.h: (construct_inferior_arguments):
3060 Moved function from here to gdbsupport/common-inferior.{h,cc}
3062 2020-05-23 Tom Tromey <tom@tromey.com>
3064 Revert commit eca1f90c:
3065 * NEWS: Remove entry for completion styling.
3066 * completer.c (_rl_completion_prefix_display_length): Move
3068 (gdb_fnprint): Revert.
3069 (gdb_display_match_list_1): Likewise.
3070 * cli/cli-style.c (completion_prefix_style)
3071 (completion_difference_style, completion_suffix_style): Remove.
3072 (_initialize_cli_style): Revert.
3073 * cli/cli-style.h (completion_prefix_style)
3074 (completion_difference_style, completion_suffix_style): Don't
3077 2020-05-24 Pedro Alves <palves@redhat.com>
3079 * symtab.c (completion_list_add_name): Return boolean indication
3080 of whether the symbol matched.
3081 (completion_list_add_symbol): Don't try to remove C++ aliases if
3082 the symbol didn't match in the first place.
3083 * symtab.h (completion_list_add_name): Return bool.
3085 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3087 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3090 2020-05-23 Joel Brobecker <brobecker@adacore.com>
3094 2020-05-23 Tom Tromey <tom@tromey.com>
3096 * NEWS: Add entry for completion styling.
3097 * completer.c (_rl_completion_prefix_display_length): Move
3098 declaration earlier.
3099 (gdb_fnprint): Use completion_style.
3100 (gdb_display_match_list_1): Likewise.
3101 * cli/cli-style.c (completion_prefix_style)
3102 (completion_difference_style, completion_suffix_style): New
3104 (_initialize_cli_style): Register new globals.
3105 * cli/cli-style.h (completion_prefix_style)
3106 (completion_difference_style, completion_suffix_style): Declare.
3108 2020-05-23 Pedro Alves <palves@redhat.com>
3110 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3111 (parse_escape): Use ISDIGIT instead of isdigit.
3112 (puts_debug): Use gdb_isprint instead of isprint.
3113 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3114 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3115 ISSPACE instead of isspace.
3116 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3118 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3119 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3120 instead of isxdigit and ISDIGIT instead of isdigit.
3122 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3124 * gdbtypes.h (struct type) <field>: New method.
3125 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3128 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3130 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3131 (TYPE_FIELDS): Use type::fields. Change all call sites that
3132 modify the propery to use type::set_fields instead.
3134 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3136 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3137 type::num_fields instead.
3139 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3141 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3143 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3144 that modify the number of fields to use type::set_num_fields
3147 2020-05-22 Tom Tromey <tromey@adacore.com>
3149 * compile/compile-object-load.h (munmap_list_free): Don't
3152 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3154 * annotate.c (annotate_source_line): Update return type, add call
3155 to update current symtab and line.
3156 * annotate.h (annotate_source_line): Update return type, and
3157 extend header comment.
3158 * source.c (info_line_command): Check annotation_level before
3159 calling annotate_source_line.
3160 * stack.c (print_frame_info): If calling annotate_source_line
3161 returns true, then don't print any other source line information.
3163 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
3165 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3167 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
3169 * coffread.c (patch_type): Remove NULL check before xfree.
3170 * corefile.c (set_gnutarget): Likewise.
3171 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3172 * exec.c (build_section_table): Likewise.
3173 * remote.c (remote_target::pass_signals): Likewise.
3174 * utils.c (n_spaces): Likewise.
3175 * cli/cli-script.c (document_command): Likewise.
3176 * i386-windows-tdep.c (core_process_module_section): Likewise.
3177 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3179 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
3181 * symfile.c (reread_symbols): Clear objfile's section_offsets
3182 vector and section indices, re-compute them by calling
3185 2020-05-20 Tom Tromey <tromey@adacore.com>
3187 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
3188 (desc_one_bound, desc_index_type): Compute field name.
3190 2020-05-20 Tom de Vries <tdevries@suse.de>
3193 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3195 2020-05-20 Alan Modra <amodra@gmail.com>
3198 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3200 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3201 passed to bfd_set_filename.
3202 * symfile-mem.c (add_vsyscall_page): Likewise for string
3203 passed to symbol_file_add_from_memory.
3204 (symbol_file_add_from_memory): Make name param a const char* and
3207 2020-05-20 Alan Modra <amodra@gmail.com>
3209 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3210 rather than accessing bfd->filename directly.
3211 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3212 and use bfd_section_name.
3213 * dwarf2/frame.c (decode_frame_entry): Likewise.
3214 * exec.c (exec_set_section_address): Likewise.
3215 * solib-aix.c (solib_aix_bfd_open): Likewise.
3216 * stap-probe.c (get_stap_base_address): Likewise.
3217 * symfile.c (reread_symbols): Likewise.
3219 2020-05-19 Tom Tromey <tromey@adacore.com>
3221 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3223 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3225 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3227 2020-05-19 Pedro Alves <palves@redhat.com>
3229 * NEWS (set exec-file-mismatch): Adjust entry.
3230 * exec.c: Include "build-id.h".
3231 (validate_exec_file): Try to match build IDs instead of filenames.
3232 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3233 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3234 and pass down 'warn_if_slow'.
3235 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3236 gdb_bfd_open_closure to pass it down.
3237 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3239 2020-05-19 Pedro Alves <palves@redhat.com>
3241 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3242 * target.c (target_fileio_open_1): Rename to target_fileio_open
3243 and make extern. Use bool.
3244 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3245 (target_fileio_read_alloc_1): Adjust.
3246 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3247 (target_fileio_open_warn_if_slow): Delete declaration.
3249 2020-05-19 Pedro Alves <palves@redhat.com>
3251 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3254 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3256 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3257 whether disp is negative.
3259 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3261 * symfile.h (struct symfile_segment_data)
3262 <~symfile_segment_data>: Remove.
3263 <segment_info>: Change to std::vector.
3264 * symfile.c (default_symfile_segments): Update.
3265 * elfread.c (elf_symfile_segments): Update.
3267 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3269 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3271 <segment_bases, segment_sizes>: Remove.
3272 * symfile.c (default_symfile_segments): Update.
3273 * elfread.c (elf_symfile_segments): Update.
3274 * remote.c (remote_target::get_offsets): Update.
3275 * solib-target.c (solib_target_relocate_section_addresses):
3278 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3280 * symfile.h (struct symfile_segment_data): Initialize fields.
3281 <~symfile_segment_data>: Add.
3282 (symfile_segment_data_up): New.
3283 (struct sym_fns) <sym_segments>: Return a
3284 symfile_segment_data_up.
3285 (default_symfile_segments): Return a symfile_segment_data_up.
3286 (free_symfile_segment_data): Remove.
3287 (get_symfile_segment_data): Return a symfile_segment_data_up.
3288 * symfile.c (default_symfile_segments): Likewise.
3289 (get_symfile_segment_data): Likewise.
3290 (free_symfile_segment_data): Remove.
3291 (symfile_find_segment_sections): Update.
3292 * elfread.c (elf_symfile_segments): Return a
3293 symfile_segment_data_up.
3294 * remote.c (remote_target::get_offsets): Update.
3295 * solib-target.c (solib_target_relocate_section_addresses):
3297 * symfile-debug.c (debug_sym_segments): Return a
3298 symfile_segment_data_up.
3300 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3303 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3304 Hardcode register numbers.
3307 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3308 procfs_find_LDT_entry): Remove.
3309 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3310 procfs_find_LDT_entry): Remove.
3311 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3314 2020-05-17 Pedro Alves <palves@redhat.com>
3315 Andrew Burgess <andrew.burgess@embecosm.com>
3316 Keno Fischer <keno@juliacomputing.com>
3319 * breakpoint.c (build_target_condition_list): Update comments.
3320 (build_target_command_list): Update comments and skip matching
3322 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3323 a separate function. Simplify "set breakpoint auto-hw off"
3325 (insert_breakpoints): Update comment.
3326 (tracepoint_locations_match): New parameter. For breakpoints,
3327 compare location types too, if the caller wants to.
3328 (handle_automatic_hardware_breakpoints): New functions.
3329 (bp_location_is_less_than): Also sort by location type and
3330 hardware breakpoint length.
3331 (update_global_location_list): Handle "set breakpoint auto-hw on"
3333 (update_breakpoint_locations): Ask breakpoint_locations_match to
3334 ignore location types.
3336 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
3338 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3341 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
3343 * gdbtypes.h (struct type) <name, set_name>: New methods.
3344 (TYPE_CODE): Use type::name. Change all call sites used to set
3345 the name to use type::set_name instead.
3347 2020-05-16 Tom Tromey <tom@tromey.com>
3349 * top.c (quit_force): Update.
3350 * infrun.c (handle_no_resumed): Update.
3351 * top.h (all_uis): New function.
3354 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
3356 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3358 2020-05-16 Pedro Alves <palves@redhat.com>
3361 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3363 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3365 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
3367 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3368 (sparc64_adi_info): Likewise.
3370 2020-05-15 Tom Tromey <tom@tromey.com>
3372 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3374 (lookup_objfile_from_block): Remove.
3375 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3376 (lookup_global_symbol): Use block_objfile.
3377 * symtab.h (lookup_objfile_from_block): Don't declare.
3378 * printcmd.c (clear_dangling_display_expressions): Use
3380 * parse.c (operator_check_standard): Use block_objfile.
3382 2020-05-15 Tom Tromey <tom@tromey.com>
3384 * language.c (language_alloc_type_symbol): Set
3386 * symtab.c (initialize_objfile_symbol): Remove.
3387 (allocate_symbol): Remove.
3388 (allocate_template_symbol): Remove.
3389 * dwarf2/read.c (fixup_go_packaging): Use "new".
3390 (new_symbol): Use "new".
3391 (read_variable): Don't call initialize_objfile_symbol. Use
3393 (read_func_scope): Use "new".
3394 * xcoffread.c (process_xcoff_symbol): Don't call
3395 initialize_objfile_symbol.
3396 (SYMBOL_DUP): Remove.
3397 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3399 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3400 (allocate_template_symbol): Don't declare.
3401 (struct symbol): Add copy constructor. Change defaults.
3402 * jit.c (finalize_symtab): Use "new".
3403 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3405 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3406 (common_block_end): Use "new".
3407 * mdebugread.c (parse_symbol): Use "new".
3408 (new_symbol): Likewise.
3410 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3412 * NEWS: Mention changes to help and apropos.
3414 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3416 * command.h (enum command_class): Improve comments, document
3417 that class_alias is for user-defined aliases, give the class
3418 name for each class, remove unused class_xdb.
3419 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3420 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3422 * infcmd.c (_initialize_infcmd): Likewise.
3423 * reverse.c (_initialize_reverse): Likewise.
3424 * stack.c (_initialize_stack): Likewise.
3425 * symfile.c (_initialize_symfile): Likewise.
3426 * tracepoint.c (_initialize_tracepoint): Likewise.
3428 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3430 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3431 when their aliased command is traversed.
3432 (help_cmd): Add fput_command_names_styled call to
3433 output command name and aliases when command has an alias.
3435 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3437 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3438 * cli/cli-decode.c (help_cmd_list): Declare as static,
3439 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3440 a command together with the command.
3441 (fput_command_name_styled, fput_command_names_styled): New functions.
3442 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3443 fput_command_name_styled.
3444 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3445 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3447 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3449 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3450 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3451 * command.h (cmd_show_list): Likewise.
3452 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3453 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3455 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3457 * unittests/command-def-selftests.c (traverse_command_structure):
3458 Verify all commands of a list have the same prefix command and
3459 that only the top cmdlist commands have a null prefix.
3461 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3463 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3464 as prefix, not one of its aliases.
3465 (set_cmd_prefix): Remove.
3466 (do_add_cmd): Centralize the setting of the prefix of a command, when
3467 command is defined after its full chain of prefix commands.
3468 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3469 (add_setshow_cmd_full): Likewise.
3470 (update_prefix_field_of_prefixed_commands): New function.
3471 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3472 update_prefix_field_of_prefixed_commands.
3473 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3474 addresses of remote_set_cmdlist and remote_show_cmdlist given
3475 as argument, not the address of an argument.
3476 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3477 * gdb/remote.c (_initialize_remote): Likewise.
3479 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3481 * cli/cli-cmds.c (alias_command): Check for an existing alias
3482 using lookup_cmd_composition, as valid_command_p is too strict
3483 and forbids aliases that are the prefix of an existing alias
3485 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3486 command is properly recognised as a valid command.
3488 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3490 * unittests/help-doc-selftests.c: Rename to
3491 unittests/command-def-selftests.c
3492 * unittests/command-def-selftests.c (help_doc_tests): Update some
3494 (command_structure_tests, traverse_command_structure): New namespace
3496 (command_structure_invariants_tests): New function.
3497 (_initialize_command_def_selftests) Renamed from
3498 _initialize_help_doc_selftests, register command_structure_invariants
3501 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3503 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3506 2020-05-15 Joel Brobecker <brobecker@adacore.com>
3508 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3509 ada_is_fixed_point_type. Update all callers.
3510 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3512 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3514 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3515 print_fixed_point_type. Update all callers.
3516 * ada-valprint.c (ada_value_print_num): Replace call to
3517 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3519 2020-05-14 Kevin Buettner <kevinb@redhat.com>
3521 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3523 (cpu_supports_bts): Add CV_AMD case.
3525 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3526 Simon Marchi <simon.marchi@efficios.com>
3528 * infrun.c (stop_all_threads): Collect multiple wait events at
3531 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
3533 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3536 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
3538 * gdbtypes.h (struct type) <code, set_code>: New methods.
3539 (TYPE_CODE): Use type::code. Change all call sites used to set
3540 the code to use type::set_code instead.
3542 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3543 Tom de Vries <tdevries@suse.de>
3544 Pedro Alves <palves@redhat.com>
3547 * infrun.c (stop_all_threads): Do NOT ignore
3548 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3549 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3551 (handle_no_resumed): Remove code handling a live inferior with no
3553 * remote.c (has_single_non_exited_thread): New.
3554 (remote_target::update_thread_list): Do not delete a thread if is
3555 the last thread of the process.
3556 * thread.c (thread_select): Call delete_exited_threads instead of
3559 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3561 * infrun.c (stop_all_threads): Enable/disable thread events of all
3562 targets. Move a debug message denoting the end of the function
3563 into the SCOPED_EXIT block.
3565 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3567 * process-stratum-target.h: Include <set>.
3568 (all_non_exited_process_targets, switch_to_target_no_thread): New
3569 function declarations.
3570 * process-stratum-target.c (all_non_exited_process_targets)
3571 (switch_to_target_no_thread): New function implementations.
3573 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3575 * infrun.c (handle_inferior_event): Extract out a piece of code
3577 (mark_non_executing_threads): ...this new function.
3579 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3581 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3584 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3586 * regcache.c (regcache_read_pc_protected): New function
3587 implementation that returns 0 if the PC cannot read via
3589 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3590 instead of 'regcache_read_pc'.
3591 (keep_going_pass_signal): Ditto.
3593 2020-05-13 Tom Tromey <tromey@adacore.com>
3595 * ada-lang.c (align_value): Remove.
3596 (ada_template_to_fixed_record_type_1): Use align_up.
3598 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3600 * async-event.c: Update the copyright year.
3601 * async-event.h: Update the copyright year.
3603 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
3605 * objfiles.h (is_addr_in_objfile,
3606 shared_objfile_contains_address_p): Return bool.
3607 * objfile.c (is_addr_in_objfile,
3608 shared_objfile_contains_address_p): Return bool.
3610 2020-05-11 Tom Tromey <tromey@adacore.com>
3612 * cli/cli-cmds.c (info_command): Restore.
3613 (_initialize_cli_cmds): Use add_prefix_command for "info".
3614 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3616 2020-05-11 Tom Tromey <tromey@adacore.com>
3618 * ada-lang.c (ada_value_primitive_field): Now public.
3619 * ada-lang.h (ada_value_primitive_field): Declare.
3620 * ada-valprint.c (print_field_values): Use
3621 ada_value_primitive_field for wrapper fields.
3623 2020-05-11 Tom de Vries <tdevries@suse.de>
3625 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3628 2020-05-11 Tom de Vries <tdevries@suse.de>
3631 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3632 with length 0, if not gdb-produced.
3633 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3635 2020-05-09 Tom de Vries <tdevries@suse.de>
3638 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3641 2020-05-09 Tom Tromey <tom@tromey.com>
3643 * top.c (server_command): Now bool.
3644 * top.h (server_command): Now bool.
3646 2020-05-08 Tom Tromey <tromey@adacore.com>
3648 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3649 already being processed.
3651 2020-05-08 Tom Tromey <tom@tromey.com>
3653 * printcmd.c (struct display) <next>: Remove.
3654 <display>: New constructor.
3655 <exp_string>: Now a std::string.
3656 <enabled_p>: Now a bool.
3657 (display_number): Move definition earlier.
3658 (displays): Rename from display_chain. Now a std::vector.
3659 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3660 (display_command): Update.
3661 (do_one_display, disable_display)
3662 (enable_disable_display_command, do_enable_disable_display):
3664 (free_display): Remove.
3665 (clear_displays): Rewrite.
3666 (delete_display): Update.
3667 (map_display_numbers): Use function_view. Remove "data"
3669 (do_delete_display): Remove.
3670 (undisplay_command): Update.
3671 (do_one_display, do_displays, disable_display)
3672 (info_display_command): Update.
3673 (do_enable_disable_display): Remove.
3674 (enable_disable_display_command)
3675 (clear_dangling_display_expressions): Update.
3677 2020-05-08 Tom Tromey <tom@tromey.com>
3679 * symtab.c (set_symbol_cache_size)
3680 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3681 (maintenance_print_symbol_cache_statistics): Update.
3682 * symmisc.c (print_symbol_bcache_statistics)
3683 (print_objfile_statistics, maintenance_print_objfiles)
3684 (maintenance_info_symtabs, maintenance_check_symtabs)
3685 (maintenance_expand_symtabs, maintenance_info_line_tables):
3687 * symfile-debug.c (set_debug_symfile): Update.
3688 * source.c (forget_cached_source_info): Update.
3689 * python/python.c (gdbpy_progspaces): Update.
3690 * psymtab.c (maintenance_info_psymtabs): Update.
3691 * probe.c (parse_probes): Update.
3692 * linespec.c (iterate_over_all_matching_symtabs)
3693 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3694 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3695 * exec.c (exec_target::close): Update.
3696 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3697 * breakpoint.c (print_one_breakpoint_location)
3698 (create_longjmp_master_breakpoint)
3699 (create_std_terminate_master_breakpoint): Update.
3700 * progspace.c (program_spaces): Now a std::vector.
3701 (maybe_new_address_space): Update.
3702 (add_program_space): Remove.
3703 (program_space::program_space): Update.
3704 (remove_program_space): Update.
3705 (number_of_program_spaces): Remove.
3706 (print_program_space, update_address_spaces): Update.
3707 * progspace.h (program_spaces): Change type.
3708 (ALL_PSPACES): Remove.
3709 (number_of_program_spaces): Don't declare.
3710 (struct program_space) <next>: Remove.
3712 2020-05-08 Tom Tromey <tom@tromey.com>
3714 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3715 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3716 (enable_break): Update.
3717 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3718 (frv_fdpic_find_canonical_descriptor): Update.
3719 (frv_fetch_objfile_link_map): Update.
3720 * progspace.c (program_space::free_all_objfiles): Update.
3721 (program_space::solibs): New method.
3722 * progspace.h (struct program_space) <solibs>: New method.
3723 * solist.h (master_so_list): Don't declare.
3724 (ALL_SO_LIBS): Remove.
3725 * solib.h (so_list_head): Remove.
3726 (update_solib_list): Update comment.
3727 * solib.c (master_so_list): Remove.
3728 (solib_used, update_solib_list, solib_add)
3729 (info_sharedlibrary_command, clear_solib)
3730 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3732 2020-05-08 Tom Tromey <tom@tromey.com>
3734 * extension.c (extension_languages): Now a std::array.
3735 (ALL_EXTENSION_LANGUAGES): Remove.
3736 (get_ext_lang_defn, get_ext_lang_of_file)
3737 (eval_ext_lang_from_control_command): Update.
3738 (finish_ext_lang_initialization)
3739 (auto_load_ext_lang_scripts_for_objfile)
3740 (ext_lang_type_printers::ext_lang_type_printers)
3741 (apply_ext_lang_type_printers)
3742 (ext_lang_type_printers::~ext_lang_type_printers)
3743 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3744 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3745 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3746 (get_matching_xmethod_workers, ext_lang_colorize)
3747 (ext_lang_before_prompt): Update.
3748 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3750 2020-05-08 Tom Tromey <tom@tromey.com>
3752 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3754 <swap_string, m_string>: Remove.
3755 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3757 * stabsread.c (define_symbol, read_type): Update.
3758 * linespec.c (find_linespec_symbols): Update.
3759 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3760 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3761 * dbxread.c (read_dbx_symtab): Update.
3762 * cp-support.h (cp_canonicalize_string_full)
3763 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3764 Return unique_xmalloc_ptr.
3765 * cp-support.c (inspect_type): Update.
3766 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3767 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3769 * c-typeprint.c (print_name_maybe_canonical): Update.
3770 * break-catch-throw.c (check_status_exception_catchpoint):
3773 2020-05-08 Tom de Vries <tdevries@suse.de>
3775 * infrun.c (follow_fork): Copy current_line and current_symtab to
3778 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
3780 * async-event.c (struct async_signal_handler, struct
3781 async_event_handler): Reformat, remove typedef.
3783 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
3785 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
3786 access thistype->main_type->dyn_prop_list directly.
3788 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
3790 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
3791 (remove_dyn_prop): Remove. Update all users to use
3792 type::remove_dyn_prop.
3793 * gdbtypes.c (remove_dyn_prop): Rename to...
3794 (type::remove_dyn_prop): ... this.
3796 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
3798 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
3799 (add_dyn_prop): Remove. Update all users to use
3801 * gdbtypes.c (add_dyn_prop): Rename to...
3802 (type::add_dyn_prop): ... this.
3804 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
3806 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
3807 (get_dyn_prop): Remove. Update all users to use
3809 * gdbtypes.c (get_dyn_prop): Rename to...
3810 (type::dyn_prop): ... this.
3812 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
3814 * gdbtypes.h (struct main_type) <flag_static>: Remove.
3816 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
3818 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
3819 instruction, skip it if it's there.
3821 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
3823 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
3825 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
3827 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
3828 * gdbtypes.c (recursive_dump_type): Remove use of
3831 2020-05-03 Tom Tromey <tom@tromey.com>
3833 * breakpoint.c (catch_command, tcatch_command): Remove.
3834 (_initialize_breakpoint): Use add_basic_prefix_cmd,
3835 add_show_prefix_cmd.
3836 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
3837 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
3839 (add_internal_problem_command): Use add_basic_prefix_cmd,
3840 add_show_prefix_cmd.
3841 * mips-tdep.c (set_mipsfpu_command): Remove.
3842 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
3843 * dwarf2/index-cache.c (set_index_cache_command): Remove.
3844 (_initialize_index_cache): Use add_basic_prefix_cmd.
3845 * memattr.c (dummy_cmd): Remove.
3846 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
3847 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
3848 (_initialize_tui_win): Use add_basic_prefix_cmd,
3849 add_show_prefix_cmd.
3850 * cli/cli-logging.c (set_logging_command): Remove.
3851 (_initialize_cli_logging): Use add_basic_prefix_cmd,
3852 add_show_prefix_cmd.
3853 (show_logging_command): Remove.
3854 * target.c (target_command): Remove.
3855 (add_target): Use add_basic_prefix_cmd.
3857 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
3859 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
3861 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3863 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
3866 2020-04-30 Kamil Rytarowski <n54@gmx.com>
3868 * nbsd-nat.c (nbsd_enable_proc_events)
3869 (nbsd_nat_target::post_startup_inferior): Add.
3870 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
3871 (nbsd_nat_target::update_thread_list): Rewrite.
3872 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
3873 "PTRACE_LWP_CREATE".
3874 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
3876 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3878 * stack.c (_initialize_stack): Remove duplicated creation
3879 of "frame" command and "f" alias.
3881 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
3884 * gdbtypes.c (check_typedef): Calculate size of array of
3887 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
3890 * i386-tdep.c (i386_push_dummy_call): Call
3891 i386_thiscall_push_dummy_call.
3892 (i386_thiscall_push_dummy_call): New function.
3893 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
3894 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
3895 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
3897 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
3899 * gdbarch.sh (do_read): Add shellcheck disable directive for
3902 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
3904 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
3905 "referenced but not assigned" warning.
3907 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
3909 * gdbarch.sh: Remove code that sets fallbackdefault.
3911 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
3913 * gdbarch.sh: Use shell operators && and || instead of
3916 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
3918 * gdbarch.sh: Use $(...) instead of `...`.
3920 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
3922 * gdbarch.sh: Use double quotes around variables.
3924 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
3926 * gdbarch.sh: Use %s with printf, instead of variables in the
3929 2020-04-29 Tom Tromey <tromey@adacore.com>
3932 * dwarf2/read.c (update_enumeration_type_from_children): Compute
3934 (read_enumeration_type): Call
3935 update_enumeration_type_from_children later. Update comments.
3936 (process_enumeration_scope): Don't create type fields.
3938 2020-04-29 Kamil Rytarowski <n54@gmx.com>
3940 * nbsd-tdep.c: Include "xml-syscall.h".
3941 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
3943 2020-04-29 Kamil Rytarowski <n54@gmx.com>
3945 * nbsd-nat.c: Include "sys/wait.h".
3946 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
3947 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
3948 (nbsd_nat_target::remove_exec_catchpoint)
3949 (nbsd_nat_target::set_syscall_catchpoint): Add.
3950 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
3951 (nbsd_nat_target::insert_exec_catchpoint)
3952 (nbsd_nat_target::remove_exec_catchpoint)
3953 (nbsd_nat_target::set_syscall_catchpoint): Add.
3954 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
3955 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
3956 `nbsd_get_syscall_number'.
3958 2020-04-29 Tom Tromey <tom@tromey.com>
3960 * stack.c (print_block_frame_labels): Remove.
3962 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
3965 * ada-valprint.c (val_print_packed_array_elements): Move array
3966 end bracket to new line.
3967 (ada_val_print_string): Remove extra spaces before first array
3969 * c-valprint.c (c_value_print_array): Likewise.
3970 * m2-valprint.c (m2_print_array_contents): Likewise.
3971 (m2_value_print_inner): Likewise.
3972 * p-valprint.c (pascal_value_print_inner): Likewise.
3973 * valprint.c (generic_val_print_array): Likewise.
3974 (value_print_array_elements): Move first array element and array
3975 end bracket to new line.
3977 2020-04-29 Tom de Vries <tdevries@suse.de>
3980 * linespec.c (find_method): Fix ix calculation.
3982 2020-04-28 Kamil Rytarowski <n54@gmx.com>
3984 * syscalls/update-netbsd.sh: New file.
3985 * syscalls/netbsd.xml: Regenerate.
3986 * data-directory/Makefile.in: Register `netbsd.xml' in
3989 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
3991 * syscalls/update-freebsd.sh: Add double quotes.
3993 2020-04-28 Tom Tromey <tom@tromey.com>
3996 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
3997 (cmdpy_init): Allow class_tui.
3999 2020-04-28 Mark Williams <mark@myosotissp.com>
4002 * dwarf2read.c: Add missing assingments to list_in_scope when
4003 start_symtab was already called.
4005 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4008 * dwarf2/read.c (offset_map_type): Use
4009 gdb:hash_enum<sect_offset> as hash function.
4011 2020-04-28 Tom de Vries <tdevries@suse.de>
4013 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4014 with DW_AT_signature.
4016 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
4018 * configure.ac: Remove check for fs_base/gs_base in
4020 * configure: Re-generate.
4021 * config.in: Re-generate.
4022 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4023 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4024 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4026 2020-04-27 Luis Machado <luis.machado@linaro.org>
4028 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4029 problematic inline frame unwinding situation.
4030 * frame.c (frame_id_computed_p): New function.
4031 * frame.h (frame_id_computed_p): New prototype.
4033 2020-04-26 Tom Tromey <tom@tromey.com>
4035 * command.h (enum command_class) <class_pseudo>: Remove.
4037 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4039 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4042 2020-04-25 Kamil Rytarowski <n54@gmx.com>
4044 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4045 `PT_GET_PROCESS_STATE' block.
4047 2020-04-24 Tom Tromey <tom@tromey.com>
4049 * symtab.h (symbol_get_demangled_name): Don't declare.
4050 * symtab.c (symbol_get_demangled_name): Remove.
4051 (general_symbol_info::natural_name)
4052 (general_symbol_info::demangled_name): Update.
4054 2020-04-24 Tom Tromey <tom@tromey.com>
4057 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4059 2020-04-24 Tom Tromey <tom@tromey.com>
4062 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4064 (new_symbol): Likewise.
4065 * compile/compile-object-load.c (get_out_value_type): Use
4066 symbol_matches_search_name.
4068 2020-04-24 Tom Tromey <tom@tromey.com>
4070 * dwarf2/read.c (add_partial_symbol): Do not call
4071 compute_and_set_names.
4073 2020-04-24 Tom Tromey <tom@tromey.com>
4075 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4078 2020-04-24 Tom Tromey <tom@tromey.com>
4080 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4081 (add_psymbol_to_list): New overload. Make old overload call new
4083 * psympriv.h (add_psymbol_to_list): New overload.
4085 2020-04-24 Tom Tromey <tom@tromey.com>
4087 * dwarf2/read.c (partial_die_info::read) <case
4088 DW_AT_linkage_name>: Use value_as_string.
4089 (dwarf2_string_attr): Use value_as_string.
4090 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4092 * dwarf2/attribute.c (attribute::value_as_string): New method.
4094 2020-04-24 Tom Tromey <tom@tromey.com>
4096 * symtab.c (general_symbol_info::natural_name)
4097 (general_symbol_info::demangled_name): Check for language_rust.
4099 2020-04-24 Tom Tromey <tom@tromey.com>
4101 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4102 (dwarf2_physname): ... from here.
4103 (partial_die_info::read): Add Rust "{" hack.
4105 2020-04-24 Tom Tromey <tom@tromey.com>
4107 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4109 (symbol_set_demangled_name): Don't declare.
4110 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4111 symbol_set_demangled_name.
4112 (general_symbol_info::set_language)
4113 (general_symbol_info::compute_and_set_names): Update.
4114 * minsyms.c (minimal_symbol_reader::install): Update.
4115 * dwarf2/read.c (new_symbol): Update.
4117 2020-04-24 Tom Tromey <tromey@adacore.com>
4120 * python/py-type.c (convert_field): Handle
4121 FIELD_LOC_KIND_DWARF_BLOCK.
4122 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4123 (typy_get_dynamic): Nw function.
4124 (type_object_getset): Add "dynamic".
4127 2020-04-24 Tom Tromey <tromey@adacore.com>
4129 * ada-typeprint.c (print_choices, print_variant_part)
4130 (print_record_field_types_dynamic): New functions.
4131 (print_record_field_types): Use print_record_field_types_dynamic.
4133 2020-04-24 Tom Tromey <tromey@adacore.com>
4135 * dwarf2/read.c (handle_data_member_location): New overload.
4136 (dwarf2_add_field): Use it.
4137 (decode_locdesc): Add "computed" parameter. Update comment.
4138 * gdbtypes.c (is_dynamic_type_internal): Also look for
4139 FIELD_LOC_KIND_DWARF_BLOCK.
4140 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4141 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4142 virtual base classes.
4143 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4144 FIELD_LOC_KIND_DWARF_BLOCK.
4146 2020-04-24 Tom Tromey <tromey@adacore.com>
4148 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4149 * gdbtypes.c (is_dynamic_type_internal): Check
4150 TYPE_HAS_DYNAMIC_LENGTH.
4151 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4152 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4154 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4157 2020-04-24 Tom Tromey <tromey@adacore.com>
4159 * dwarf2/read.c (struct variant_field): Rewrite.
4160 (struct variant_part_builder): New.
4161 (struct nextfield): Remove "variant" field. Add "offset".
4162 (struct field_info): Add "current_variant_part" and
4164 (alloc_discriminant_info): Remove.
4165 (alloc_rust_variant): New function.
4166 (quirk_rust_enum): Update.
4167 (dwarf2_add_field): Set "offset" member. Don't handle
4168 DW_TAG_variant_part.
4169 (offset_map_type): New typedef.
4170 (convert_variant_range, create_one_variant)
4171 (create_one_variant_part, create_variant_parts)
4172 (add_variant_property): New functions.
4173 (dwarf2_attach_fields_to_type): Call add_variant_property.
4174 (read_structure_type): Don't handle DW_TAG_variant_part.
4175 (handle_variant_part, handle_variant): New functions.
4176 (handle_struct_member_die): Use them.
4177 (process_structure_scope): Don't handle variant parts.
4178 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4179 (struct discriminant_info): Remove.
4180 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4181 (struct main_type) <flag_discriminated_union>: Remove.
4182 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4183 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4184 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4186 * valops.c (value_union_variant): Remove.
4187 * value.h (value_union_variant): Don't declare.
4189 2020-04-24 Tom Tromey <tromey@adacore.com>
4191 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4192 (ada_value_primitive_packed_val): Update.
4193 * ada-valprint.c (ada_value_print_1): Update.
4194 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4195 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4196 just an address. Use evaluate_for_locexpr_baton.
4197 (dwarf2_evaluate_property): Update.
4198 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4200 * findvar.c (default_read_var_value): Update.
4201 * gdbtypes.c (compute_variant_fields_inner)
4202 (resolve_dynamic_type_internal): Update.
4203 (resolve_dynamic_type): Change type of valaddr parameter.
4204 * gdbtypes.h (resolve_dynamic_type): Update.
4205 * valarith.c (value_subscripted_rvalue): Update.
4206 * value.c (value_from_contents_and_address): Update.
4208 2020-04-24 Tom Tromey <tromey@adacore.com>
4210 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4211 "push_initial_value" parameter.
4212 (dwarf2_evaluate_property): Likewise.
4213 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4215 2020-04-24 Tom Tromey <tromey@adacore.com>
4217 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4218 (variant::matches, compute_variant_fields_recurse)
4219 (compute_variant_fields_inner, compute_variant_fields): New
4221 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4222 Use resolved_type after type is made.
4223 (operator==): Add new cases.
4224 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4225 (struct discriminant_range, struct variant, struct variant_part):
4227 (union dynamic_prop_data) <variant_parts, original_type>: New
4229 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4230 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4232 * value.c (unpack_bits_as_long): Now public.
4233 * value.h (unpack_bits_as_long): Declare.
4235 2020-04-24 Tom Tromey <tromey@adacore.com>
4237 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4238 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4240 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
4242 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4244 2020-04-24 Kamil Rytarowski <n54@gmx.com>
4246 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4247 (remove_fork_catchpoint, post_startup_inferior)
4248 (post_attach): Move...
4249 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4250 (remove_fork_catchpoint, post_startup_inferior)
4251 (post_attach): ...here.
4252 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4253 (remove_fork_catchpoint, post_startup_inferior)
4254 (post_attach): Move...
4255 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4256 (remove_fork_catchpoint, post_startup_inferior)
4257 (post_attach): ...here.
4259 2020-04-24 Tom Tromey <tromey@adacore.com>
4261 * nat/windows-nat.h (struct windows_thread_info)
4262 <pc_adjusted>: New member.
4263 * windows-nat.c (windows_fetch_one_register): Check
4265 (windows_nat_target::get_windows_debug_event)
4266 (windows_nat_target::wait): Set pc_adjusted.
4268 2020-04-24 Tom de Vries <tdevries@suse.de>
4270 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4271 Run gdb-add-index inside temp dir.
4273 2020-04-23 Tom Tromey <tromey@adacore.com>
4275 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4278 2020-04-23 Luis Machado <luis.machado@linaro.org>
4280 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4281 get_frame_register instead of gdbarch_unwind_pc.
4283 2020-04-23 Tom de Vries <tdevries@suse.de>
4285 * symtab.c (lookup_global_symbol): Prefer def over decl.
4287 2020-04-23 Tom de Vries <tdevries@suse.de>
4290 * block.c (best_symbol, better_symbol): Promote to external.
4291 * block.h (best_symbol, better_symbol): Declare.
4292 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4295 2020-04-23 Tom Tromey <tromey@adacore.com>
4298 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4299 "const char *", not a "const std::string &".
4300 <name_and_matcher::operator==>: Update.
4301 * unittests/lookup_name_info-selftests.c: Change type of
4304 2020-04-23 Tom Tromey <tom@tromey.com>
4306 * inferior.h (iterate_over_inferiors): Don't declare.
4307 * inferior.c (iterate_over_inferiors): Remove.
4308 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4310 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4311 use iterate_over_inferiors.
4312 (darwin_resume_inferior_it)
4313 (struct resume_inferior_threads_param)
4314 (darwin_resume_inferior_threads_it): Remove.
4315 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4317 2020-04-23 Tom de Vries <tdevries@suse.de>
4319 * blockframe.c (find_pc_partial_function): Use
4320 find_pc_sect_compunit_symtab rather than
4321 objfile->sf->qf->find_pc_sect_compunit_symtab.
4323 2020-04-22 Tom de Vries <tdevries@suse.de>
4326 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4329 2020-04-22 Tom de Vries <tdevries@suse.de>
4332 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4335 2020-04-22 Tom de Vries <tdevries@suse.de>
4338 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4339 CU if already created.
4341 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4343 * infrun.c (displaced_step_fixup): Switch to the event_thread
4344 before calling displaced_step_restore, not after.
4346 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4348 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4349 its inferior is not recorded by us.
4350 (record_btrace_target_open): Replace call to
4351 all_non_exited_threads () with call to current_inferior
4352 ()->non_exited_threads ().
4353 (record_btrace_target::stop_recording): Likewise.
4354 (record_btrace_target::close): Likewise.
4355 (record_btrace_target::wait): Likewise.
4356 (record_btrace_target::record_stop_replaying): Likewise.
4358 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4360 * btrace.c (btrace_enable): Throw an error on double enables and
4361 when enabling recording fails.
4362 (btrace_disable): Throw an error if the thread is not recorded.
4364 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4366 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4367 request if we do not have a thread_info.
4369 2020-04-21 Tom de Vries <tdevries@suse.de>
4373 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4374 exception in get_frame_id.
4376 2020-04-20 Tom Tromey <tromey@adacore.com>
4378 * python/python.c (struct gdbpy_event): Mark move constructor as
4380 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4381 constructor as noexcept.
4382 * completer.h (struct completion_result): Mark move constructor as
4384 * completer.c (completion_result::completion_result): Use
4385 initialization style. Don't call reset_match_list.
4387 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4389 * MAINTAINERS (Write After Approval): Add myself.
4391 2020-04-18 Tom Tromey <tom@tromey.com>
4393 * windows-tdep.c (init_w32_command_list)
4394 (w32_prefix_command_valid): Restore.
4395 (_initialize_windows_tdep): Call init_w32_command_list.
4397 2020-04-18 Tom Tromey <tom@tromey.com>
4399 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4400 * value.c (value_fn_field): Update.
4401 * valops.c (find_function_in_inferior)
4402 (value_allocate_space_in_inferior): Update.
4403 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4405 * tui/tui-source.c (tui_source_window::set_contents): Update.
4406 * symtab.c (lookup_global_or_static_symbol)
4407 (find_function_start_sal_1, skip_prologue_sal)
4408 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4409 * symmisc.c (dump_msymbols, dump_symtab_1)
4410 (maintenance_print_one_line_table): Update.
4411 * symfile.c (init_entry_point_info, section_is_mapped)
4412 (list_overlays_command, simple_read_overlay_table)
4413 (simple_overlay_update_1): Update.
4414 * stap-probe.c (handle_stap_probe): Update.
4415 * stabsread.c (dbx_init_float_type, define_symbol)
4416 (read_one_struct_field, read_enum_type, read_range_type): Update.
4417 * source.c (info_line_command): Update.
4418 * python/python.c (gdbpy_source_objfile_script)
4419 (gdbpy_execute_objfile_script): Update.
4420 * python/py-type.c (save_objfile_types): Update.
4421 * python/py-objfile.c (py_free_objfile): Update.
4422 * python/py-inferior.c (python_new_objfile): Update.
4423 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4424 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4425 (maintenance_check_psymtabs): Update.
4426 * printcmd.c (info_address_command): Update.
4427 * objfiles.h (struct objfile) <arch>: New method, from
4429 (get_objfile_arch): Don't declare.
4430 * objfiles.c (get_objfile_arch): Remove.
4431 (filter_overlapping_sections): Update.
4432 * minsyms.c (msymbol_is_function): Update.
4433 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4434 (output_nondebug_symbol): Update.
4435 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4436 (mdebug_expand_psymtab): Update.
4437 * machoread.c (macho_add_oso_symfile): Update.
4438 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4440 * linux-fork.c (checkpoint_command): Update.
4441 * linespec.c (convert_linespec_to_sals): Update.
4442 * jit.c (finalize_symtab): Update.
4443 * infrun.c (insert_exception_resume_from_probe): Update.
4444 * ia64-tdep.c (ia64_find_unwind_table): Update.
4445 * hppa-tdep.c (internalize_unwinds): Update.
4446 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4448 * gcore.c (call_target_sbrk): Update.
4449 * elfread.c (record_minimal_symbol, elf_symtab_read)
4450 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4451 (elf_gnu_ifunc_resolve_by_got): Update.
4452 * dwarf2/read.c (create_addrmap_from_index)
4453 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4454 (read_debug_names_from_section)
4455 (process_psymtab_comp_unit_reader, add_partial_symbol)
4456 (add_partial_subprogram, process_full_comp_unit)
4457 (read_file_scope, read_func_scope, read_lexical_block_scope)
4458 (read_call_site_scope, dwarf2_ranges_read)
4459 (dwarf2_record_block_ranges, dwarf2_add_field)
4460 (mark_common_block_symbol_computed, read_tag_pointer_type)
4461 (read_tag_string_type, dwarf2_init_float_type)
4462 (dwarf2_init_complex_target_type, read_base_type)
4463 (partial_die_info::read, partial_die_info::read)
4464 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4465 (dwarf2_fetch_die_loc_sect_off): Update.
4466 * dwarf2/loc.c (dwarf2_find_location_expression)
4467 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4468 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4469 (dwarf2_loc_desc_get_symbol_read_needs)
4470 (locexpr_describe_location_piece, locexpr_describe_location_1)
4471 (loclist_describe_location): Update.
4472 * dwarf2/index-write.c (write_debug_names): Update.
4473 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4474 * dtrace-probe.c (dtrace_process_dof): Update.
4475 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4476 (process_one_symbol): Update.
4477 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4478 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4479 (coff_read_enum_type): Update.
4480 * cli/cli-cmds.c (edit_command, list_command): Update.
4481 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4482 * breakpoint.c (create_overlay_event_breakpoint)
4483 (create_longjmp_master_breakpoint)
4484 (create_std_terminate_master_breakpoint)
4485 (create_exception_master_breakpoint, get_sal_arch): Update.
4486 * block.c (block_gdbarch): Update.
4487 * annotate.c (annotate_source_line): Update.
4489 2020-04-17 Tom Tromey <tromey@adacore.com>
4491 * auto-load.c (show_auto_load_cmd): Remove.
4492 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4493 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4494 (maintenance_print_arc_command): Remove.
4495 * tui/tui-win.c (tui_command): Remove.
4496 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4497 * tui/tui-layout.c (tui_layout_command): Remove.
4498 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4499 * python/python.c (user_set_python, user_show_python): Remove.
4500 (_initialize_python): Use add_basic_prefix_cmd,
4501 add_show_prefix_cmd.
4502 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4503 (install_gdb_commands): Use add_basic_prefix_cmd,
4504 add_show_prefix_cmd.
4505 (info_guile_command): Remove.
4506 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4507 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4508 add_show_prefix_cmd.
4509 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4510 Remove do_set and do_show parameters.
4511 * cli/cli-style.c (set_style, show_style): Remove.
4512 (_initialize_cli_style): Use add_basic_prefix_cmd,
4513 add_show_prefix_cmd.
4514 (cli_style_option::add_setshow_commands): Remove do_set and
4516 (cli_style_option::add_setshow_commands): Use
4517 add_basic_prefix_cmd, add_show_prefix_cmd.
4518 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4519 (set_style_name): Remove.
4520 * cli/cli-dump.c (dump_command, append_command): Remove.
4521 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4522 (tekhex_dump_command, binary_dump_command)
4523 (binary_append_command): Remove.
4524 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4525 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4526 (init_w32_command_list): Remove; move into ...
4527 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4528 * valprint.c (set_print, show_print, set_print_raw)
4529 (show_print_raw): Remove.
4530 (_initialize_valprint): Use add_basic_prefix_cmd,
4531 add_show_prefix_cmd.
4532 * typeprint.c (set_print_type, show_print_type): Remove.
4533 (_initialize_typeprint): Use add_basic_prefix_cmd,
4534 add_show_prefix_cmd.
4535 * record.c (set_record_command, show_record_command): Remove.
4536 (_initialize_record): Use add_basic_prefix_cmd,
4537 add_show_prefix_cmd.
4538 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4539 add_show_prefix_cmd.
4540 (info_command, show_command, set_debug, show_debug): Remove.
4541 * top.h (set_history, show_history): Don't declare.
4542 * top.c (set_history, show_history): Remove.
4543 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4544 (unset_tdesc_cmd): Remove.
4545 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4546 add_show_prefix_cmd.
4547 * symtab.c (info_module_command): Remove.
4548 (_initialize_symtab): Use add_basic_prefix_cmd.
4549 * symfile.c (overlay_command): Remove.
4550 (_initialize_symfile): Use add_basic_prefix_cmd.
4551 * sparc64-tdep.c (info_adi_command): Remove.
4552 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4553 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4554 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4555 add_show_prefix_cmd.
4556 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4557 (_initialize_serial): Use add_basic_prefix_cmd,
4558 add_show_prefix_cmd.
4559 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4560 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4561 add_show_prefix_cmd.
4562 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4563 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4564 add_show_prefix_cmd.
4565 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4566 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4567 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4568 add_show_prefix_cmd.
4569 * remote.c (remote_command, set_remote_cmd): Remove.
4570 (_initialize_remote): Use add_basic_prefix_cmd.
4571 * record-full.c (set_record_full_command)
4572 (show_record_full_command): Remove.
4573 (_initialize_record_full): Use add_basic_prefix_cmd,
4574 add_show_prefix_cmd.
4575 * record-btrace.c (cmd_set_record_btrace)
4576 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4577 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4578 (cmd_show_record_btrace_pt): Remove.
4579 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4580 add_show_prefix_cmd.
4581 * ravenscar-thread.c (set_ravenscar_command)
4582 (show_ravenscar_command): Remove.
4583 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4584 add_show_prefix_cmd.
4585 * mips-tdep.c (show_mips_command, set_mips_command)
4586 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4587 add_show_prefix_cmd.
4588 * maint.c (maintenance_command, maintenance_info_command)
4589 (maintenance_check_command, maintenance_print_command)
4590 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4591 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4592 add_show_prefix_cmd.
4593 (show_per_command_cmd): Remove.
4594 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4596 (maintenance_show_test_settings_cmd): Remove.
4597 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4598 add_show_prefix_cmd.
4599 * maint-test-options.c (maintenance_test_options_command):
4601 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4602 * macrocmd.c (macro_command): Remove
4603 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4604 * language.c (set_check, show_check): Remove.
4605 (_initialize_language): Use add_basic_prefix_cmd,
4606 add_show_prefix_cmd.
4607 * infcmd.c (unset_command): Remove.
4608 (_initialize_infcmd): Use add_basic_prefix_cmd.
4609 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4610 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4611 add_show_prefix_cmd.
4612 * go32-nat.c (go32_info_dos_command): Remove.
4613 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4614 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4615 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4616 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4617 (_initialize_frame): Use add_basic_prefix_cmd,
4618 add_show_prefix_cmd.
4619 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4620 (_initialize_dcache): Use add_basic_prefix_cmd,
4621 add_show_prefix_cmd.
4622 * cp-support.c (maint_cplus_command): Remove.
4623 (_initialize_cp_support): Use add_basic_prefix_cmd.
4624 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4625 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4626 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4627 add_basic_prefix_cmd, add_show_prefix_cmd.
4628 * breakpoint.c (save_command): Remove.
4629 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4630 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4631 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4632 add_show_prefix_cmd.
4633 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4634 (set_ada_command, show_ada_command): Remove.
4635 (_initialize_ada_language): Use add_basic_prefix_cmd,
4636 add_show_prefix_cmd.
4637 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4639 2020-04-16 Kamil Rytarowski <n54@gmx.com>
4641 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4642 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4644 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4646 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4649 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4651 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4652 import table is not at beginning of .idata section.
4654 2020-04-16 Pedro Alves <palves@redhat.com>
4656 * inferior.c (delete_inferior): Use delete operator directly
4657 instead of delete_program_space.
4658 * progspace.c (add_program_space): New, factored out from
4659 program_space::program_space.
4660 (remove_program_space): New, factored out from
4661 delete_program_space.
4662 (program_space::program_space): Remove intro comment. Rewrite.
4663 (program_space::~program_space): Remove intro comment. Call
4664 remove_program_space.
4665 (delete_program_space): Delete.
4666 * progspace.h (program_space::program_space): Make explicit. Move
4667 intro comment here, adjusted.
4668 (program_space::~program_space): Move intro comment here,
4670 (delete_program_space): Remove.
4672 2020-04-16 Tom Tromey <tromey@adacore.com>
4674 * windows-nat.c (windows_nat::handle_access_violation): New
4676 * nat/windows-nat.h (handle_access_violation): Declare.
4677 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4678 windows-nat.c. Call handle_access_violation.
4680 2020-04-16 Tom de Vries <tdevries@suse.de>
4683 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4684 CUs without psymtab.
4686 2020-04-16 Kevin Buettner <kevinb@redhat.com>
4688 * python/python.c (do_start_initialization): Don't call
4689 PyEval_InitThreads for Python 3.9 and beyond.
4691 2020-04-15 Kamil Rytarowski <n54@gmx.com>
4693 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4695 (obsd_nat_target::wait): Likewise.
4697 2020-04-15 Tom Tromey <tromey@adacore.com>
4699 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4700 (DEBUG_EXCEPT): Use debug_printf.
4702 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4704 * completer.c (class completion_tracker::completion_hash_entry)
4705 <hash_name>: New member function.
4706 (completion_tracker::discard_completions): New callback to hash a
4707 completion_hash_entry, pass this to htab_create_alloc.
4709 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4711 * windows-nat.c (windows_make_so): Warn rather than stopping with
4712 an error if realpath() fails.
4714 2020-04-14 Kamil Rytarowski <n54@gmx.com>
4716 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4717 (nbsd_nat_target::info_proc): Add do_status.
4719 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4720 Tom de Vries <tdevries@suse.de>
4723 * psympriv.h (struct partial_symtab::read_symtab)
4724 (struct partial_symtab::expand_psymtab)
4725 (struct partial_symtab::read_dependencies): Update comments.
4726 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4727 read_symtab for includer.
4728 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4729 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4730 (struct dwarf2_include_psymtab::m_readin): Remove.
4731 (struct dwarf2_include_psymtab::includer): New member function.
4732 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4734 2020-04-14 Tom de Vries <tdevries@suse.de>
4737 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4738 with NULL symbol_matcher and lookup_name.
4739 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4741 * dwarf2/read.c (dw2_expand_symtabs_matching)
4742 (dw2_debug_names_expand_symtabs_matching): Same.
4743 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4744 Make lookup_name a pointer. Update comment.
4745 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4746 lookup_name being a pointer.
4747 * symfile.c (expand_symtabs_matching): Same.
4748 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4749 * linespec.c (iterate_over_all_matching_symtabs): Same.
4751 2020-04-13 Tom Tromey <tom@tromey.com>
4753 * run-on-main-thread.c: Update include.
4754 * unittests/main-thread-selftests.c: Update include.
4755 * tui/tui-win.c: Update include.
4756 * tui/tui-io.c: Update include.
4757 * tui/tui-interp.c: Update include.
4758 * tui/tui-hooks.c: Update include.
4759 * top.h: Update include.
4760 * top.c: Update include.
4761 * ser-base.c: Update include.
4762 * remote.c: Update include.
4763 * remote-notif.c: Update include.
4764 * remote-fileio.c: Update include.
4765 * record-full.c: Update include.
4766 * record-btrace.c: Update include.
4767 * python/python.c: Update include.
4768 * posix-hdep.c: Update include.
4769 * mingw-hdep.c: Update include.
4770 * mi/mi-main.c: Update include.
4771 * mi/mi-interp.c: Update include.
4772 * main.c: Update include.
4773 * linux-nat.c: Update include.
4774 * interps.c: Update include.
4775 * infrun.c: Update include.
4776 * inf-loop.c: Update include.
4777 * event-top.c: Update include.
4778 * event-loop.c: Move to ../gdbsupport/.
4779 * event-loop.h: Move to ../gdbsupport/.
4780 * async-event.h: Update include.
4781 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4783 2020-04-13 Tom Tromey <tom@tromey.com>
4785 * tui/tui-win.c: Include async-event.h.
4786 * remote.c: Include async-event.h.
4787 * remote-notif.c: Include async-event.h.
4788 * record-full.c: Include async-event.h.
4789 * record-btrace.c: Include async-event.h.
4790 * infrun.c: Include async-event.h.
4791 * event-top.c: Include async-event.h.
4792 * event-loop.h: Move some declarations to async-event.h.
4793 * event-loop.c: Don't include ser-event.h or top.h. Move some
4794 code to async-event.c.
4795 * async-event.h: New file.
4796 * async-event.c: New file.
4797 * Makefile.in (COMMON_SFILES): Add async-event.c.
4798 (HFILES_NO_SRCDIR): Add async-event.h.
4800 2020-04-13 Tom Tromey <tom@tromey.com>
4802 * utils.c (flush_streams): New function.
4803 * event-loop.c (gdb_wait_for_event): Call flush_streams.
4805 2020-04-13 Tom Tromey <tom@tromey.com>
4807 * event-loop.c (handle_file_event): Use warning, not
4810 2020-04-13 Tom Tromey <tom@tromey.com>
4812 * event-loop.c: Include <chrono>.
4814 2020-04-13 Tom Tromey <tom@tromey.com>
4816 * gdb_select.h: Move to ../gdbsupport/.
4817 * event-loop.c: Update include path.
4818 * top.c: Update include path.
4819 * ser-base.c: Update include path.
4820 * ui-file.c: Update include path.
4821 * ser-tcp.c: Update include path.
4822 * guile/scm-ports.c: Update include path.
4823 * posix-hdep.c: Update include path.
4824 * ser-unix.c: Update include path.
4825 * gdb_usleep.c: Update include path.
4826 * mingw-hdep.c: Update include path.
4827 * inflow.c: Update include path.
4828 * infrun.c: Update include path.
4829 * event-top.c: Update include path.
4831 2020-04-13 Tom Tromey <tom@tromey.com>
4833 * configure: Rebuild.
4834 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
4836 2020-04-13 Tom Tromey <tom@tromey.com>
4838 * event-loop.h (start_event_loop): Don't declare.
4839 * event-loop.c (start_event_loop): Move...
4840 * main.c (start_event_loop): ...here. Now static.
4842 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
4844 * MAINTAINERS: Update my email address.
4846 2020-04-12 Kamil Rytarowski <n54@gmx.com>
4848 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
4851 2020-04-12 Kamil Rytarowski <n54@gmx.com>
4853 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
4854 (nbsd_nat_target::info_proc): Add do_cmdline.
4856 2020-04-12 Kamil Rytarowski <n54@gmx.com>
4858 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
4859 (nbsd_nat_target::info_proc): Add do_cwd.
4861 2020-04-12 Kamil Rytarowski <n54@gmx.com>
4863 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
4865 2020-04-11 Kamil Rytarowski <n54@gmx.com>
4867 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
4868 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
4869 (nbsd_nat_target::info_proc): New functions.
4870 * nbsd-nat.c (kinfo_get_vmmap): New function.
4871 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
4872 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
4873 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
4874 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
4876 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
4877 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
4878 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
4879 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
4880 (KINFO_VME_FLAG_GROWS_DOWN): New.
4882 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
4884 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
4887 2020-04-10 Tom Tromey <tromey@adacore.com>
4889 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
4891 2020-04-10 Tom Tromey <tromey@adacore.com>
4893 * symtab.c (get_symbol_address, get_msymbol_address): Skip
4894 separate debug files.
4896 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
4898 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4900 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4902 * windows-nat.c (windows_nat_target::get_windows_debug_event):
4903 Check for STATUS_WX86_BREAKPOINT.
4904 (windows_nat_target::wait): Same.
4906 2020-04-10 Tom de Vries <tdevries@suse.de>
4909 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
4911 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
4913 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
4914 (Write After Approval): Remove Tom de Vries.
4916 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4919 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
4921 * buildsym.c (record_line): Fix undefined behavior and preserve
4924 2020-04-09 Kamil Rytarowski <n54@gmx.com>
4926 * auxv.h (svr4_auxv_parse): New.
4927 * auxv.c (default_auxv_parse): Split into default_auxv_parse
4928 and generic_auxv_parse.
4929 (svr4_auxv_parse): Add.
4930 * obsd-tdep.c: Include "auxv.h".
4931 (obsd_auxv_parse): Remove.
4932 (obsd_init_abi): Remove comment.
4933 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
4934 from `obsd_auxv_parse' to `svr4_auxv_parse'.
4935 * nbsd-tdep.c: Include "auxv.h".
4936 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
4938 2020-04-08 Tom Tromey <tromey@adacore.com>
4940 * nat/windows-nat.h (last_wait_event): Don't declare.
4941 (wait_for_debug_event): Update comment.
4942 * nat/windows-nat.c (last_wait_event): Now static.
4944 2020-04-08 Tom Tromey <tromey@adacore.com>
4946 * windows-nat.c (wait_for_debug_event): Move to
4948 * nat/windows-nat.h (wait_for_debug_event): Declare.
4949 * nat/windows-nat.c (wait_for_debug_event): Move from
4950 windows-nat.c. No longer static.
4952 2020-04-08 Tom Tromey <tromey@adacore.com>
4954 * windows-nat.c (get_windows_debug_event): Use
4956 * nat/windows-nat.h (fetch_pending_stop): Declare.
4957 * nat/windows-nat.c (fetch_pending_stop): New function.
4959 2020-04-08 Tom Tromey <tromey@adacore.com>
4961 * windows-nat.c (windows_continue): Use matching_pending_stop and
4962 continue_last_debug_event.
4963 * nat/windows-nat.h (matching_pending_stop)
4964 (continue_last_debug_event): Declare.
4965 * nat/windows-nat.c (DEBUG_EVENTS): New define.
4966 (matching_pending_stop, continue_last_debug_event): New
4969 2020-04-08 Tom Tromey <tromey@adacore.com>
4971 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
4972 (handle_exception_result): Move to nat/windows-nat.h.
4973 (DEBUG_EXCEPTION_SIMPLE): Remove.
4974 (windows_nat::handle_ms_vc_exception): New function.
4975 (handle_exception): Move to nat/windows-nat.c.
4976 (get_windows_debug_event): Update.
4977 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
4979 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
4980 (handle_exception_result): Move from windows-nat.c.
4981 (handle_exception): Declare.
4982 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
4983 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
4986 2020-04-08 Tom Tromey <tromey@adacore.com>
4988 * windows-nat.c (exception_count, event_count): Remove.
4989 (handle_exception, get_windows_debug_event)
4990 (do_initial_windows_stuff): Update.
4992 2020-04-08 Tom Tromey <tromey@adacore.com>
4994 * windows-nat.c (windows_nat::handle_load_dll)
4995 (windows_nat::handle_unload_dll): Rename. No longer static.
4996 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
4999 2020-04-08 Tom Tromey <tromey@adacore.com>
5001 * complaints.h (stop_whining): Declare at top-level.
5002 (complaint): Don't declare stop_whining.
5004 2020-04-08 Tom Tromey <tromey@adacore.com>
5006 * windows-nat.c (windows_nat::handle_output_debug_string):
5007 Rename. No longer static.
5008 * nat/windows-nat.h (handle_output_debug_string): Declare.
5010 2020-04-08 Tom Tromey <tromey@adacore.com>
5012 * windows-nat.c (current_process_handle, current_process_id)
5013 (main_thread_id, last_sig, current_event, last_wait_event)
5014 (current_windows_thread, desired_stop_thread_id, pending_stops)
5015 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5016 (display_selectors, fake_create_process)
5017 (get_windows_debug_event): Update.
5018 * nat/windows-nat.h (current_process_handle, current_process_id)
5019 (main_thread_id, last_sig, current_event, last_wait_event)
5020 (current_windows_thread, desired_stop_thread_id, pending_stops)
5021 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5022 * nat/windows-nat.c (current_process_handle, current_process_id)
5023 (main_thread_id, last_sig, current_event, last_wait_event)
5024 (current_windows_thread, desired_stop_thread_id, pending_stops)
5025 (siginfo_er): New globals. Move from windows-nat.c.
5027 2020-04-08 Tom Tromey <tromey@adacore.com>
5029 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5030 (handle_load_dll): Update.
5031 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5033 2020-04-08 Tom Tromey <tromey@adacore.com>
5035 * windows-nat.c (enum thread_disposition_type): Move to
5037 (windows_nat::thread_rec): Rename from thread_rec. No longer
5039 (windows_add_thread, windows_nat_target::fetch_registers)
5040 (windows_nat_target::store_registers, handle_exception)
5041 (windows_nat_target::resume, get_windows_debug_event)
5042 (windows_nat_target::get_tib_address)
5043 (windows_nat_target::thread_name)
5044 (windows_nat_target::thread_alive): Update.
5045 * nat/windows-nat.h (enum thread_disposition_type): Move from
5047 (thread_rec): Declare.
5049 2020-04-08 Tom Tromey <tromey@adacore.com>
5051 * windows-nat.c: Add "using namespace".
5052 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5053 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5055 2020-04-08 Tom Tromey <tromey@adacore.com>
5057 * nat/windows-nat.h (struct windows_thread_info): Declare
5059 * nat/windows-nat.c (~windows_thread_info): New.
5061 2020-04-08 Tom Tromey <tromey@adacore.com>
5064 * windows-nat.c (current_event): Update comment.
5065 (last_wait_event, desired_stop_thread_id): New globals.
5066 (struct pending_stop): New.
5067 (pending_stops): New global.
5068 (windows_nat_target) <stopped_by_sw_breakpoint>
5069 <supports_stopped_by_sw_breakpoint>: New methods.
5070 (windows_fetch_one_register): Add assertions. Adjust PC.
5071 (windows_continue): Handle pending stops. Suspend other threads
5072 when stepping. Use last_wait_event
5073 (wait_for_debug_event): New function.
5074 (get_windows_debug_event): Use wait_for_debug_event. Handle
5075 pending stops. Queue spurious stops.
5076 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5077 (windows_nat_target::kill): Use wait_for_debug_event.
5078 * nat/windows-nat.h (struct windows_thread_info)
5079 <stopped_at_software_breakpoint>: New field.
5080 * nat/windows-nat.c (windows_thread_info::resume): Clear
5081 stopped_at_software_breakpoint.
5083 2020-04-08 Tom Tromey <tromey@adacore.com>
5085 * windows-nat.c (enum thread_disposition_type): New.
5086 (thread_rec): Replace "get_context" parameter with "disposition";
5088 (windows_add_thread, windows_nat_target::fetch_registers)
5089 (windows_nat_target::store_registers, handle_exception)
5090 (windows_nat_target::resume, get_windows_debug_event)
5091 (windows_nat_target::get_tib_address)
5092 (windows_nat_target::thread_name)
5093 (windows_nat_target::thread_alive): Update.
5095 2020-04-08 Tom Tromey <tromey@adacore.com>
5097 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5098 (windows_continue): Use windows_continue::resume.
5099 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5100 resume>: Declare new methods.
5101 * nat/windows-nat.c: New file.
5102 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5104 2020-04-08 Tom Tromey <tromey@adacore.com>
5106 * windows-nat.c (windows_add_thread, windows_delete_thread)
5107 (windows_nat_target::fetch_registers)
5108 (windows_nat_target::store_registers, fake_create_process)
5109 (windows_nat_target::resume, windows_nat_target::resume)
5110 (get_windows_debug_event, windows_nat_target::wait)
5111 (windows_nat_target::pid_to_str)
5112 (windows_nat_target::get_tib_address)
5113 (windows_nat_target::get_ada_task_ptid)
5114 (windows_nat_target::thread_name)
5115 (windows_nat_target::thread_alive): Use lwp, not tid.
5117 2020-04-08 Tom Tromey <tromey@adacore.com>
5119 * windows-nat.c (handle_exception)
5120 (windows_nat_target::thread_name): Update.
5121 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5122 <name>: Now unique_xmalloc_ptr.
5124 2020-04-08 Tom Tromey <tromey@adacore.com>
5126 * windows-nat.c (thread_rec)
5127 (windows_nat_target::fetch_registers): Update.
5128 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5130 <debug_registers_changed, reload_context>: Now bool.
5132 2020-04-08 Tom Tromey <tromey@adacore.com>
5134 * windows-nat.c (windows_add_thread): Use new.
5135 (windows_init_thread_list, windows_delete_thread): Use delete.
5136 (get_windows_debug_event): Update.
5137 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5138 destructor, and initializers.
5140 2020-04-08 Tom Tromey <tromey@adacore.com>
5142 * windows-nat.c (struct windows_thread_info): Remove.
5143 * nat/windows-nat.h: New file.
5145 2020-04-08 Tom Tromey <tromey@adacore.com>
5147 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5148 (thread_rec, windows_add_thread, windows_delete_thread)
5149 (windows_continue): Update.
5151 2020-04-08 Tom Tromey <tromey@adacore.com>
5153 * windows-nat.c (struct windows_thread_info): Remove typedef.
5154 (thread_head): Remove.
5155 (thread_list): New global.
5156 (thread_rec, windows_add_thread, windows_init_thread_list)
5157 (windows_delete_thread, windows_continue): Update.
5159 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5161 * windows-tdep.h (windows_init_abi): Add comment.
5162 (cygwin_init_abi): New declaration.
5163 * windows-tdep.c: Split signal enumeration in two, one for
5164 Windows and one for Cygwin.
5165 (windows_gdb_signal_to_target): Only deal with signal of the
5167 (cygwin_gdb_signal_to_target): New function.
5168 (windows_init_abi): Rename to windows_init_abi_common, don't set
5169 gdb_signal_to_target gdbarch method. Add new new function with
5171 (cygwin_init_abi): New function.
5172 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5173 comment. Don't call windows_init_abi.
5174 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5175 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5176 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5177 i386_windows_init_abi_common, don't call windows_init_abi. Add
5178 a new function of this name.
5179 (i386_cygwin_init_abi): New function.
5180 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5183 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5185 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5187 (dwarf2_read_gdb_index): Update.
5189 2020-04-07 Kamil Rytarowski <n54@gmx.com>
5191 * nbsd-tdep.c: Include "objfiles.h".
5192 (nbsd_skip_solib_resolver): New.
5193 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5195 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5197 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5198 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5199 with DW_LLE_base_addressx are being emitted in DWARFv5.
5200 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5201 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5204 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5206 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5207 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5208 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5209 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5210 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5211 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5212 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5215 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5217 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5218 (read_loclist_index): New function definition.
5219 (lookup_loclist_base): New function definition.
5220 (read_loclist_header): New function definition.
5221 (dwarf2_cu): Add loclist_base and loclist_header field.
5222 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5223 (read_full_die_1): Read the value of DW_AT_loclists_base.
5224 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5225 (read_attribute_value): Handle DW_FORM_loclistx.
5226 (skip_one_die): Handle DW_FORM_loclistx.
5227 (loclist_header): New structure declaration.
5228 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5230 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5232 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5233 constructor. Remove `addr` parameter from other constructor and
5234 add `per_cu` parameter.
5235 * dwarf2/read.c (create_partial_symtab): Update.
5237 2020-04-07 Tom de Vries <tdevries@suse.de>
5240 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5241 (partial_die_info::fixup): Inherit has_const_value.
5243 2020-04-07 Tom de Vries <tdevries@suse.de>
5245 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5246 symbols without address.
5248 2020-04-06 Kamil Rytarowski <n54@gmx.com>
5250 * nbsd-nat.h (struct thread_info): Add forward declaration.
5251 (nbsd_nat_target::thread_alive): Add.
5252 (nbsd_nat_target::thread_name): Likewise.
5253 (nbsd_nat_target::update_thread_list): Likewise.
5254 (update_thread_list::post_attach): Likewise.
5255 (post_attach::pid_to_str): Likewise.
5256 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5257 (nbsd_thread_lister): Add.
5258 (nbsd_nat_target::thread_alive): Likewise.
5259 (nbsd_nat_target::thread_name): Likewise.
5260 (nbsd_add_threads): Likewise.
5261 (update_thread_list::post_attach): Likewise.
5262 (nbsd_nat_target::update_thread_list): Likewise.
5263 (post_attach::pid_to_str): Likewise.
5265 2020-04-06 Tom Tromey <tromey@adacore.com>
5267 * ada-valprint.c (print_variant_part): Extract the variant field.
5268 (print_field_values): Use the field as the outer value when
5271 2020-04-06 Tom Tromey <tromey@adacore.com>
5273 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5274 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5275 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5276 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5277 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5279 2020-04-06 Tom Tromey <tromey@adacore.com>
5281 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5284 2020-04-06 Kamil Rytarowski <n54@gmx.com>
5286 * nbsd-tdep.c: Include "gdbarch.h".
5287 Define enum with NetBSD signal numbers.
5288 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5289 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5290 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5291 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5292 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5293 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5294 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5295 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5296 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5297 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5298 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5299 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5301 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
5304 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5306 2020-04-03 Tom Tromey <tromey@adacore.com>
5308 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5309 Read constant block.
5311 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5313 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5314 (gdb_bfd_get_full_section_contents): New declaration.
5315 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5316 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5317 gdb_bfd_get_full_section_contents.
5319 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5321 * exec.c (build_section_table): Replace internal_error with
5323 (section_table_xfer_memory_partial): Likewise.
5324 * mdebugread.c (parse_partial_symbols): Likewise.
5325 * psymtab.c (lookup_partial_symbol): Likewise.
5326 * utils.c (wrap_here): Likewise.
5328 2020-04-02 Tom Tromey <tromey@adacore.com>
5330 * f-lang.c (build_fortran_types): Use arch_type to initialize
5331 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5333 2020-04-02 Tom Tromey <tromey@adacore.com>
5335 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5338 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5339 Bernd Edlinger <bernd.edlinger@hotmail.de>
5340 Tom Tromey <tromey@adacore.com>
5342 * buildsym.c (buildsym_compunit::record_line): Remove
5345 2020-04-02 Tom de Vries <tdevries@suse.de>
5348 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5350 2020-04-02 Tom de Vries <tdevries@suse.de>
5352 * dwarf2/read.c (dwarf2_gdb_index_functions,
5353 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5355 * psymtab.c (psym_lookup_global_symbol_language): New function.
5356 (psym_functions): Init psym_lookup_global_symbol_language with
5357 psym_lookup_global_symbol_language.
5358 * symfile-debug.c (debug_sym_quick_functions): Init
5359 lookup_global_symbol_language with NULL.
5360 * symfile.c (set_initial_language): Remove fixme comment.
5361 * symfile.h (struct quick_symbol_functions): Add
5362 lookup_global_symbol_language.
5363 * symtab.c (find_quick_global_symbol_language): New function.
5364 (find_main_name): Use find_quick_global_symbol_language.
5366 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5368 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5370 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5372 * buildsym.c (record_line): Fix undefined behavior and preserve
5375 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5377 * buildsym.c (record_line): Fix the resizing condition.
5379 2020-04-01 Tom Tromey <tom@tromey.com>
5381 * value.h (value_literal_complex): Add comment.
5382 * valops.c (value_literal_complex): Refer to value.h.
5384 2020-04-01 Tom Tromey <tom@tromey.com>
5386 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5387 (scalar_type): New rule, from typebase.
5388 (typebase): Use scalar_type. Recognize complex types.
5389 (field_name): Handle FLOAT_KEYWORD.
5390 (ident_tokens): Add _Complex and __complex__.
5392 2020-04-01 Tom Tromey <tom@tromey.com>
5395 * valarith.c (promotion_type, complex_binop): New functions.
5396 (scalar_binop): Handle complex numbers. Use promotion_type.
5397 (value_pos, value_neg, value_complement): Handle complex numbers.
5399 2020-04-01 Tom Tromey <tom@tromey.com>
5401 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5402 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5403 (parse_number): Handle complex numbers.
5405 2020-04-01 Tom Tromey <tom@tromey.com>
5407 * c-valprint.c (c_decorations): Change complex suffix to "i".
5409 2020-04-01 Tom Tromey <tom@tromey.com>
5411 * valprint.c (generic_value_print_complex): Use accessors.
5412 * value.h (value_real_part, value_imaginary_part): Declare.
5413 * valops.c (value_real_part, value_imaginary_part): New
5415 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5417 2020-04-01 Tom Tromey <tom@tromey.com>
5419 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5420 (read_range_type): Update.
5421 * mdebugread.c (basic_type): Update.
5422 * go-lang.c (build_go_types): Use init_complex_type.
5423 * gdbtypes.h (struct main_type) <complex_type>: New member.
5424 (init_complex_type): Update.
5425 (arch_complex_type): Don't declare.
5426 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5427 Make name if none given. Use alloc_type_copy. Look for cached
5429 (arch_complex_type): Remove.
5430 (gdbtypes_post_init): Use init_complex_type.
5431 * f-lang.c (build_fortran_types): Use init_complex_type.
5432 * dwarf2/read.c (read_base_type): Update.
5433 * d-lang.c (build_d_types): Use init_complex_type.
5434 * ctfread.c (read_base_type): Update.
5436 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5438 * infrun.c (stop_all_threads): Update assertion, plus when
5439 stopping threads, take into account that we might be trying
5440 to stop an all-stop target.
5441 (stop_waiting): Call 'stop_all_threads' if there exists a
5444 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5446 * target.h (exists_non_stop_target): New function declaration.
5447 * target.c (exists_non_stop_target): New function.
5449 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
5452 * eval.c (is_integral_or_integral_reference): New function.
5453 (evaluate_subexp_standard): Allow integer references in
5456 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5458 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5459 check for no ptid in the stop reply when the target is non-stop.
5461 2020-04-01 Tom Tromey <tromey@adacore.com>
5463 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5464 "name" parameter to rvalue reference. Initialize m_name_holder.
5465 <lookup_name_info>: New overloads.
5466 <name>: Return gdb::string_view.
5467 <c_str>: New method.
5468 <make_ignore_params>: Update.
5469 <search_name_hash>: Update.
5470 <language_lookup_name>: Return const char *.
5471 <m_name>: Change type.
5472 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5473 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5474 (lookup_name_info::match_any): Update.
5475 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5477 * minsyms.c (linkage_name_str): Update.
5478 * language.c (default_symbol_name_matcher): Update.
5479 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5481 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5482 (ada_lookup_name_info::ada_lookup_name_info): Update.
5483 (literal_symbol_name_matcher): Update.
5485 2020-04-01 Tom Tromey <tromey@adacore.com>
5487 * psymtab.c (psymtab_search_name): Remove function.
5488 (psym_lookup_symbol): Create search name and lookup name here.
5489 (lookup_partial_symbol): Remove "name" parameter; add
5491 (psym_expand_symtabs_for_function): Update.
5493 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
5496 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5498 2020-03-31 Tom Tromey <tromey@adacore.com>
5500 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5503 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
5505 * features/riscv/32bit-csr.xml: Regenerated.
5506 * features/riscv/64bit-csr.xml: Regenerated.
5508 2020-03-30 Tom Tromey <tromey@adacore.com>
5510 * ada-valprint.c (print_variant_part): Update.
5511 * ada-lang.h (ada_which_variant_applies): Update.
5512 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5513 outer_valaddr parameters; replace with "outer" value parameter.
5514 (to_fixed_variant_branch_type): Update.
5516 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5518 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5519 <list>. Remove inclusion of observable.h.
5520 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5521 (struct arch_lwp_info): New struct.
5522 (class ppc_linux_dreg_interface): New class.
5523 (struct ppc_linux_process_info): New struct.
5524 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5525 <low_new_clone, low_forget_process, low_prepare_to_resume>
5526 <copy_thread_dreg_state, mark_thread_stale>
5527 <mark_debug_registers_changed, register_hw_breakpoint>
5528 <clear_hw_breakpoint, register_wp, clear_wp>
5529 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5530 <num_memory_accesses, get_trigger_type>
5531 <create_watchpoint_request, hwdebug_point_cmp>
5532 <init_arch_lwp_info, get_arch_lwp_info>
5533 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5535 <struct ptid_hash>: New inner struct.
5536 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5538 (saved_dabr_value, hwdebug_info, max_slots_number)
5539 (struct hw_break_tuple, struct thread_points, ppc_threads)
5540 (have_ptrace_hwdebug_interface)
5541 (hwdebug_find_thread_points_by_tid)
5542 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5543 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5544 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5545 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5546 use m_dreg_interface.
5547 (hwdebug_point_cmp): Change to...
5548 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5549 reference arguments instead of pointers.
5550 (ppc_linux_nat_target::ranged_break_num_registers): Use
5552 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5553 m_dreg_interface. Call register_hw_breakpoint.
5554 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5555 m_dreg_interface. Call clear_hw_breakpoint.
5556 (get_trigger_type): Change to...
5557 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5559 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5560 use m_dreg_interface. Call register_hw_breakpoint.
5561 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5562 use m_dreg_interface. Call clear_hw_breakpoint.
5563 (can_use_watchpoint_cond_accel): Change to...
5564 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5565 method. Update comment, use m_dreg_interface and
5567 (calculate_dvc): Change to...
5568 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5570 (num_memory_accesses): Change to...
5571 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5572 (check_condition): Change to...
5573 (ppc_linux_nat_target::check_condition): ...this method.
5574 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5575 comment, use m_dreg_interface.
5576 (create_watchpoint_request): Change to...
5577 (ppc_linux_nat_target::create_watchpoint_request): ...this
5578 method. Use m_dreg_interface.
5579 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5580 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5581 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5582 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5583 (ppc_linux_nat_target::low_forget_process)
5584 (ppc_linux_nat_target::low_new_fork)
5585 (ppc_linux_nat_target::low_new_clone)
5586 (ppc_linux_nat_target::low_delete_thread)
5587 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5588 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5589 only call mark_thread_stale.
5590 (ppc_linux_thread_exit): Remove.
5591 (ppc_linux_nat_target::stopped_data_address): Change to...
5592 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5593 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5594 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5595 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5596 comment. Call low_stopped_data_address.
5597 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5599 (ppc_linux_nat_target::masked_watch_num_registers): Use
5601 (ppc_linux_nat_target::copy_thread_dreg_state)
5602 (ppc_linux_nat_target::mark_thread_stale)
5603 (ppc_linux_nat_target::mark_debug_registers_changed)
5604 (ppc_linux_nat_target::register_hw_breakpoint)
5605 (ppc_linux_nat_target::clear_hw_breakpoint)
5606 (ppc_linux_nat_target::register_wp)
5607 (ppc_linux_nat_target::clear_wp)
5608 (ppc_linux_nat_target::init_arch_lwp_info)
5609 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5610 (_initialize_ppc_linux_nat): Remove observer callback.
5612 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5614 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5615 (ppc_linux_nat_target::auxv_parse)
5616 (ppc_linux_nat_target::read_description)
5617 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5620 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5622 * linux-nat.h (low_new_clone): New method.
5623 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5625 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5627 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5628 (dbx_expand_psymtab): ... this.
5629 (start_psymtab): Update.
5630 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5631 (mdebug_expand_psymtab): ... this.
5632 (parse_partial_symbols): Update.
5633 (new_psymtab): Update.
5634 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5635 (xcoff_expand_psymtab): ... this.
5636 (xcoff_start_psymtab): Update.
5638 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5640 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5641 <expand_dependencies>: ... this.
5642 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5643 (partial_symtab::expand_dependencies): ... this.
5644 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5646 (dwarf2_psymtab::expand_psymtab): Update.
5647 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5648 * mdebugread.c (psymtab_to_symtab_1): Update.
5649 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5651 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5653 * psympriv.h (discard_psymtab): Remove.
5654 * dbxread.c (dbx_end_psymtab): Update.
5655 * xcoffread.c (xcoff_end_psymtab): Update.
5657 2020-03-28 Tom Tromey <tom@tromey.com>
5659 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5662 2020-03-28 Tom Tromey <tom@tromey.com>
5664 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5666 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
5668 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5670 2020-03-26 John Baldwin <jhb@FreeBSD.org>
5672 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5674 2020-03-26 Tom Tromey <tom@tromey.com>
5676 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5677 (mark_common_block_symbol_computed, read_tag_string_type)
5678 (attr_to_dynamic_prop, read_subrange_type): Update.
5679 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5680 to be methods on struct attribute.
5681 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5682 (read_call_site_scope, partial_die_info::read)
5683 (partial_die_info::read, lookup_die_type, follow_die_ref):
5685 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5686 from dwarf2_get_ref_die_offset.
5687 (attribute::constant_value): New method, from
5688 dwarf2_get_attr_constant_value.
5689 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5691 <constant_value>: New method.
5693 2020-03-26 Tom Tromey <tom@tromey.com>
5695 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5696 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5697 (dwarf_type_encoding_name): Move to stringify.c.
5698 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5699 * dwarf2/stringify.c: New file.
5700 * dwarf2/stringify.h: New file.
5702 2020-03-26 Tom Tromey <tom@tromey.com>
5704 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5707 2020-03-26 Tom Tromey <tom@tromey.com>
5709 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5711 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5712 (lookup_ranges_base): Likewise.
5713 (read_cutu_die_from_dwo, read_full_die_1): Update.
5715 2020-03-26 Tom Tromey <tom@tromey.com>
5717 * dwarf2/read.c (read_import_statement, read_file_scope)
5718 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5719 (read_lexical_block_scope, read_call_site_scope)
5720 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5721 (handle_struct_member_die, process_structure_scope)
5722 (update_enumeration_type_from_children)
5723 (process_enumeration_scope, read_array_type, read_common_block)
5724 (read_namespace, read_module, read_subroutine_type): Update.
5725 (sibling_die): Remove.
5727 2020-03-26 Tom Tromey <tom@tromey.com>
5729 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5730 (build_type_psymtabs_reader, read_structure_type)
5731 (read_enumeration_type, read_full_die_1): Update.
5732 (dwarf2_attr_no_follow): Move to die.h.
5733 * dwarf2/die.h (struct die_info) <attr>: New method.
5735 2020-03-26 Tom Tromey <tom@tromey.com>
5737 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5738 <base_address>: Now an optional.
5739 (dwarf2_find_base_address, dwarf2_rnglists_process)
5740 (dwarf2_ranges_process, fill_in_loclist_baton)
5741 (dwarf2_symbol_mark_computed): Update.
5743 2020-03-26 Tom Tromey <tom@tromey.com>
5745 * dwarf2/read.c (struct die_info): Move to die.h.
5746 * dwarf2/die.h: New file.
5748 2020-03-26 Tom Tromey <tom@tromey.com>
5750 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5752 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5753 Move to line-header.c.
5754 (read_checked_initial_length_and_offset, read_formatted_entries):
5756 (dwarf_decode_line_header): Split into two.
5757 * dwarf2/line-header.c
5758 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5760 (read_checked_initial_length_and_offset, read_formatted_entries):
5762 (dwarf_decode_line_header): New function, split from read.c.
5764 2020-03-26 Tom Tromey <tom@tromey.com>
5766 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5768 * dwarf2/read.c (read_attribute_value): Update.
5769 (dwarf2_per_objfile::read_line_string): Rename from
5770 read_indirect_line_string.
5771 (read_formatted_entries): Update.
5773 2020-03-26 Tom Tromey <tom@tromey.com>
5775 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5778 2020-03-26 Tom Tromey <tom@tromey.com>
5780 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5782 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5783 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5786 2020-03-26 Tom Tromey <tom@tromey.com>
5788 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
5789 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
5790 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
5791 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
5793 2020-03-26 Tom Tromey <tom@tromey.com>
5795 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
5796 file_names_size, file_full_name, file_file_name>: Use const.
5797 <file_name_at, file_names>: Add const overload.
5798 * dwarf2/line-header.c (line_header::file_file_name)
5799 (line_header::file_full_name): Update.
5801 2020-03-26 Tom Tromey <tom@tromey.com>
5803 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
5804 (macro_start_file, consume_improper_spaces)
5805 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
5806 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
5807 (dwarf_decode_macros): Move to macro.c.
5808 * dwarf2/macro.c: New file.
5809 * dwarf2/macro.h: New file.
5810 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
5812 2020-03-26 Tom Tromey <tom@tromey.com>
5814 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
5816 * dwarf2/section.c: New method. From
5817 read_indirect_string_at_offset_from.
5818 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
5819 (read_indirect_string_at_offset_from): Move to section.c.
5820 (read_indirect_string_at_offset): Rewrite.
5821 (read_indirect_line_string_at_offset): Remove.
5822 (read_indirect_string, read_indirect_line_string)
5823 (dwarf_decode_macro_bytes): Update.
5825 2020-03-26 Tom Tromey <tom@tromey.com>
5827 * dwarf2/section.h (struct dwarf2_section_info)
5828 <overload_complaint>: Declare.
5829 (dwarf2_section_buffer_overflow_complaint): Don't declare.
5830 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
5831 Rename from dwarf2_section_buffer_overflow_complaint.
5832 * dwarf2/read.c (skip_one_die, partial_die_info::read)
5833 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
5835 2020-03-26 Tom Tromey <tom@tromey.com>
5837 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
5839 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
5841 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
5844 2020-03-26 Tom Tromey <tom@tromey.com>
5846 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
5848 2020-03-26 Tom Tromey <tom@tromey.com>
5850 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
5852 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
5854 (dwarf_decode_macros): Update.
5856 2020-03-26 Tom Tromey <tom@tromey.com>
5858 * dwarf2/read.c (read_attribute_value): Update.
5859 (read_indirect_string_from_dwz): Move to dwz.c; change into
5861 (dwarf_decode_macro_bytes): Update.
5862 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
5863 * dwarf2/dwz.c: New file.
5864 * Makefile.in (COMMON_SFILES): Add dwz.c.
5866 2020-03-26 Tom Tromey <tom@tromey.com>
5868 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
5869 * dwarf2/read.c: Add include.
5870 * dwarf2/index-write.c: Add include.
5871 * dwarf2/index-cache.c: Add include.
5872 * dwarf2/dwz.h: New file.
5874 2020-03-25 Tom Tromey <tom@tromey.com>
5876 * compile/compile-object-load.c (get_out_value_type): Mention
5877 correct symbol name in error message.
5879 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
5881 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5883 2020-03-25 Tom de Vries <tdevries@suse.de>
5885 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
5886 * symmisc.c (dump_symtab_1): Print user and includes fields.
5887 (maintenance_info_symtabs): Same.
5889 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
5892 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
5893 (riscv_regcache_cooked_write): New function.
5894 (riscv_push_dummy_call): Use new function.
5895 (riscv_return_value): Likewise.
5897 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
5899 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
5900 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
5901 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
5902 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
5903 * infrun.c (follow_fork): Likewise.
5904 (follow_fork_inferior): Likewise.
5905 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
5906 * linux-nat.h (class linux_nat_target): Likewise.
5907 * remote.c (class remote_target) <follow_fork>: Likewise.
5908 (remote_target::follow_fork): Likewise.
5909 * target-delegates.c: Re-generate.
5910 * target.c (default_follow_fork): Likewise.
5911 (target_follow_fork): Likewise.
5912 * target.h (struct target_ops) <follow_fork>: Likewise.
5913 (target_follow_fork): Likewise.
5915 2020-03-24 Tom de Vries <tdevries@suse.de>
5917 * psymtab.c (maintenance_info_psymtabs): Print user field.
5919 2020-03-20 Tom Tromey <tromey@adacore.com>
5921 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
5923 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
5926 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
5928 * ptrace.m4: Don't check for ptrace declaration.
5929 * config.in: Re-generate.
5930 * configure: Re-generate.
5931 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
5934 2020-03-20 Kamil Rytarowski <n54@gmx.com>
5936 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
5938 * i386-bsd-nat.c (gdb_ptrace): Likewise.
5939 * sparc-nat.c (gdb_ptrace): Likewise.
5940 * x86-bsd-nat.c (gdb_ptrace): Likewise.
5942 2020-03-20 Tom Tromey <tromey@adacore.com>
5944 * c-exp.y (lex_one_token): Fix assert.
5946 2020-03-20 Tom Tromey <tromey@adacore.com>
5948 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
5949 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
5952 2020-03-20 Tom Tromey <tromey@adacore.com>
5954 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
5956 2020-03-20 Tom Tromey <tromey@adacore.com>
5958 * ada-valprint.c (print_variant_part): Remove parameters; switch
5960 (print_field_values): Likewise.
5961 (ada_val_print_struct_union): Likewise.
5962 (ada_value_print_1): Update.
5964 2020-03-20 Kamil Rytarowski <n54@gmx.com>
5966 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
5967 nbsd_nat_target instead of inf_ptrace_target.
5968 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
5971 2020-03-20 Kamil Rytarowski <n54@gmx.com>
5973 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
5974 it to the ptrace call.
5975 * (store_registers): Likewise.
5977 2020-03-20 Kamil Rytarowski <n54@gmx.com>
5979 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
5980 it to the ptrace call.
5981 * (store_registers): Likewise.
5983 2020-03-19 Luis Machado <luis.machado@linaro.org>
5985 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
5986 valid, fetch vg value from ptrace.
5988 2020-03-19 Kamil Rytarowski <n54@gmx.com>
5989 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
5990 * inf-ptrace.c: Likewise.
5991 * (gdb_ptrace): Add.
5992 * (inf_ptrace_target::resume): Update.
5993 * (inf_ptrace_target::xfer_partial): Likewise.
5994 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
5995 * (inf_ptrace_peek_poke): Update.
5997 2020-03-19 Kamil Rytarowski <n54@gmx.com>
5999 * x86-bsd-nat.c (gdb_ptrace): New.
6000 * (x86bsd_dr_set): Add new argument `ptid'.
6001 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6002 x86bsd_dr_set_addr): Update.
6004 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6006 * remote.c (remote_target::process_stop_reply): Handle events for
6007 all threads differently.
6009 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6011 * completer.c (completion_tracker::remove_completion): Define new
6013 * completer.h (completion_tracker::remove_completion): Declare new
6015 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6016 when adding a C++ function symbol.
6018 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6020 * completer.c (completion_tracker::completion_hash_entry): Define
6022 (advance_to_filename_complete_word_point): Call
6023 recompute_lowest_common_denominator.
6024 (completion_tracker::completion_tracker): Call discard_completions
6025 to setup the hash table.
6026 (completion_tracker::discard_completions): Allow for being called
6027 from the constructor, pass new equal function, and element deleter
6028 when constructing the hash table. Initialise new class member
6030 (completion_tracker::maybe_add_completion): Remove use of
6031 m_entries_vec, and store more information into m_entries_hash.
6032 (completion_tracker::recompute_lcd_visitor): New function, most
6033 content taken from...
6034 (completion_tracker::recompute_lowest_common_denominator):
6035 ...here, this now just visits each item in the hash calling the
6037 (completion_tracker::build_completion_result): Remove use of
6038 m_entries_vec, call recompute_lowest_common_denominator.
6039 * completer.h (completion_tracker::have_completions): Remove use
6041 (completion_tracker::completion_hash_entry): Declare new class.
6042 (completion_tracker::recompute_lowest_common_denominator): Change
6044 (completion_tracker::recompute_lcd_visitor): Declare new function.
6045 (completion_tracker::m_entries_vec): Delete.
6046 (completion_tracker::m_entries_hash): Initialize to NULL.
6047 (completion_tracker::m_lowest_common_denominator_valid): New
6049 (completion_tracker::m_lowest_common_denominator_max_length): New
6052 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6054 * regformats/regdef.h: Put reg in gdb namespace.
6056 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6058 * i386-bsd-nat.c (gdb_ptrace): New.
6059 * (i386bsd_fetch_inferior_registers,
6060 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6061 * (i386bsd_fetch_inferior_registers,
6062 i386bsd_store_inferior_registers) Use gdb_ptrace.
6064 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6066 * amd64-bsd-nat.c (gdb_ptrace): New.
6067 * (amd64bsd_fetch_inferior_registers,
6068 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6069 * (amd64bsd_fetch_inferior_registers,
6070 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6072 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6074 * user-regs.c (user_reg::read): Rename to...
6075 (user_reg::xread): ...this.
6076 * (append_user_reg): Rename argument `read' to `xread'.
6077 * (user_reg_add_builtin): Likewise.
6078 * (user_reg_add): Likewise.
6079 * (value_of_user_reg): Likewise.
6081 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6083 * sparc-nat.c (gdb_ptrace): New.
6084 * sparc-nat.c (sparc_fetch_inferior_registers)
6085 (sparc_store_inferior_registers) Remove obsolete comment.
6086 * sparc-nat.c (sparc_fetch_inferior_registers)
6087 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6088 * sparc-nat.c (sparc_fetch_inferior_registers)
6089 (sparc_store_inferior_registers) Use gdb_ptrace.
6091 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6093 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6094 it to the ptrace call.
6095 * sh-nbsd-nat.c (store_registers): Likewise.
6097 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6099 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6100 nbsd_nat_target instead of inf_ptrace_target.
6101 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6104 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6106 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6108 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6110 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6112 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6114 2020-03-17 Tom de Vries <tdevries@suse.de>
6117 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6119 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6121 (process_imported_unit_die): Skip import of c++ CUs.
6123 2020-03-16 Tom Tromey <tom@tromey.com>
6125 * p-valprint.c (pascal_object_print_value): Initialize
6128 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6129 Shahab Vahedi <shahab@synopsys.com>
6131 * Makefile.in: Add arch/arc.o
6132 * configure.tgt: Likewise.
6133 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6134 (_initialize_arc_tdep): Don't initialize old target descriptions.
6135 (arc_read_description): New function to cache target descriptions.
6136 * arc-tdep.h (arc_read_description): Add proto type.
6137 * arch/arc.c: New file.
6138 * arch/arc.h: Likewise.
6139 * features/Makefile: Replace old target descriptions with new.
6140 * features/arc-arcompact.c: Remove.
6141 * features/arc-arcompact.xml: Likewise.
6142 * features/arc-v2.c: Likewise
6143 * features/arc-v2.xml: Likewise
6144 * features/arc/aux-arcompact.xml: New file.
6145 * features/arc/aux-v2.xml: Likewise.
6146 * features/arc/core-arcompact.xml: Likewise.
6147 * features/arc/core-v2.xml: Likewise.
6148 * features/arc/aux-arcompact.c: Generate.
6149 * features/arc/aux-v2.c: Likewise.
6150 * features/arc/core-arcompact.c: Likewise.
6151 * features/arc/core-v2.c: Likewise.
6152 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6154 2020-03-16 Tom Tromey <tromey@adacore.com>
6157 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6158 putting value into bcache.
6160 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6163 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6165 (amd64_windows_init_abi_common): ... this. Don't set size of
6167 (amd64_windows_init_abi): New function.
6168 (amd64_cygwin_init_abi): New function.
6169 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6171 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6174 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6176 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6177 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6178 (pe_import_directory_entry): New struct type.
6179 (is_linked_with_cygwin_dll): New function.
6180 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6181 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6182 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6184 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6186 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6187 i386_cygwin_core_osabi_sniffer.
6189 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6191 * i386-cygwin-tdep.c: Rename to...
6192 * i386-windows-tdep.c: ... this.
6193 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6194 i386-windows-tdep.c.
6195 * configure.tgt: Likewise.
6197 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6199 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6200 * osabi.c (gdb_osabi_names): Add "Windows".
6201 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6202 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6203 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6204 i386_cygwin_osabi_sniffer.
6205 (_initialize_i386_cygwin_tdep): Register OS ABI
6206 GDB_OSABI_WINDOWS for i386.
6207 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6208 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6209 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6211 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6212 when the target matches '*-*-mingw*'.
6214 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6216 * defs.h (enum gdb_osabi): Move to...
6217 * osabi.h (enum gdb_osabi): ... here.
6218 * gdbarch.sh: Include osabi.h in gdbarch.h.
6219 * gdbarch.h: Re-generate.
6221 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6223 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6225 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6227 2020-03-14 Tom Tromey <tom@tromey.com>
6229 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6231 (c_type_print_modifier): Likewise. Add "language" parameter.
6232 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6233 (c_type_print_base_1): Update.
6234 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6236 * type-stack.c (type_stack::insert): Handle tp_atomic and
6238 (type_stack::follow_type_instance_flags): Likewise.
6239 (type_stack::follow_types): Likewise. Merge type-following code.
6240 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6241 (space_identifier, cv_with_space_id)
6242 (const_or_volatile_or_space_identifier_noopt)
6243 (const_or_volatile_or_space_identifier): Remove.
6244 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6246 (ptr_operator, typebase): Update.
6247 (enum token_flag) <FLAG_C>: New constant.
6248 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6250 (lex_one_token): Handle FLAG_C.
6252 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6254 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6255 it to the ptrace call.
6256 * m68k-bsd-nat.c (store_registers): Likewise.
6258 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6260 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6262 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6263 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6264 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6266 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6268 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6269 nbsd_nat_target instead of inf_ptrace_target.
6270 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6273 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6275 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6278 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6280 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6281 it to the ptrace call.
6282 * alpha-bsd-nat.c (store_registers): Likewise.
6284 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6286 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6288 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6289 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6290 fill_fpregset): Likewise.
6292 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6294 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6295 nbsd_nat_target instead of inf_ptrace_target.
6296 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6299 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6301 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6304 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6306 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6307 it to the ptrace call.
6308 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6309 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6310 * arm-nbsd-nat.c (store_register): Likewise.
6311 * arm-nbsd-nat.c (store_regs): Likewise.
6312 * arm-nbsd-nat.c (store_fp_register): Likewise.
6313 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6315 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6317 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6318 nbsd_nat_target instead of inf_ptrace_target.
6319 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6322 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6324 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6325 it to the ptrace call.
6326 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6328 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6330 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6331 it to the ptrace call.
6332 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6334 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6336 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6338 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6340 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6342 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6343 instead of inf_ptrace_target.
6344 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6347 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6349 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6352 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6354 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6357 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6359 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6362 2020-03-13 Tom Tromey <tom@tromey.com>
6364 * value.h (val_print): Don't declare.
6365 * valprint.h (val_print_array_elements)
6366 (val_print_scalar_formatted, generic_val_print): Don't declare.
6367 * valprint.c (generic_val_print_array): Take a struct value.
6368 (generic_val_print_ptr, generic_val_print_memberptr)
6369 (generic_val_print_bool, generic_val_print_int)
6370 (generic_val_print_char, generic_val_print_complex)
6371 (generic_val_print): Remove.
6372 (generic_value_print): Update.
6373 (do_val_print): Remove unused parameters. Don't call
6375 (val_print): Remove.
6376 (common_val_print): Update. Don't call value_check_printable.
6377 (val_print_scalar_formatted, val_print_array_elements): Remove.
6378 * rust-lang.c (rust_val_print): Remove.
6379 (rust_language_defn): Update.
6380 * p-valprint.c (pascal_val_print): Remove.
6381 (pascal_value_print_inner): Update.
6382 (pascal_object_print_val_fields, pascal_object_print_val):
6384 (pascal_object_print_static_field): Update.
6385 * p-lang.h (pascal_val_print): Don't declare.
6386 * p-lang.c (pascal_language_defn): Update.
6387 * opencl-lang.c (opencl_language_defn): Update.
6388 * objc-lang.c (objc_language_defn): Update.
6389 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6390 * m2-lang.h (m2_val_print): Don't declare.
6391 * m2-lang.c (m2_language_defn): Update.
6392 * language.h (struct language_defn) <la_val_print>: Remove.
6393 * language.c (unk_lang_value_print_inner): Rename. Change
6395 (unknown_language_defn, auto_language_defn): Update.
6396 * go-valprint.c (go_val_print): Remove.
6397 * go-lang.h (go_val_print): Don't declare.
6398 * go-lang.c (go_language_defn): Update.
6399 * f-valprint.c (f_val_print): Remove.
6400 * f-lang.h (f_value_print): Don't declare.
6401 * f-lang.c (f_language_defn): Update.
6402 * d-valprint.c (d_val_print): Remove.
6403 * d-lang.h (d_value_print): Don't declare.
6404 * d-lang.c (d_language_defn): Update.
6405 * cp-valprint.c (cp_print_value_fields)
6406 (cp_print_value_fields_rtti, cp_print_value): Remove.
6407 (cp_print_static_field): Update.
6408 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6409 (c_val_print_struct, c_val_print_union, c_val_print_int)
6410 (c_val_print_memberptr, c_val_print): Remove.
6411 * c-lang.h (c_val_print_array, cp_print_value_fields)
6412 (cp_print_value_fields_rtti): Don't declare.
6413 * c-lang.c (c_language_defn, cplus_language_defn)
6414 (asm_language_defn, minimal_language_defn): Update.
6415 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6416 (ada_val_print_enum): Take a struct value.
6417 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6418 (ada_val_print): Remove.
6419 (ada_value_print_1): Update.
6420 (printable_val_type): Remove.
6421 * ada-lang.h (ada_val_print): Don't declare.
6422 * ada-lang.c (ada_language_defn): Update.
6424 2020-03-13 Tom Tromey <tom@tromey.com>
6426 * valprint.c (do_val_print): Update.
6427 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6429 (value_to_value_object_no_release): Declare.
6430 * python/py-value.c (value_to_value_object_no_release): New
6432 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6434 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6436 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6438 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6440 (gdbscm_apply_val_pretty_printer): Take a struct value.
6441 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6443 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6445 * extension-priv.h (struct extension_language_ops)
6446 <apply_val_pretty_printer>: Take a struct value.
6447 * cp-valprint.c (cp_print_value): Create a struct value.
6448 (cp_print_value): Update.
6450 2020-03-13 Tom Tromey <tom@tromey.com>
6452 * ada-valprint.c (print_field_values): Call common_val_print.
6454 2020-03-13 Tom Tromey <tom@tromey.com>
6456 * ada-valprint.c (val_print_packed_array_elements): Remove
6457 bitoffset and val parameters. Call common_val_print.
6458 (ada_val_print_string): Remove offset, address, and original_value
6460 (ada_val_print_array): Update.
6461 (ada_value_print_array): New function.
6462 (ada_value_print_1): Call it.
6464 2020-03-13 Tom Tromey <tom@tromey.com>
6466 * ada-valprint.c (ada_value_print): Use common_val_print.
6468 2020-03-13 Tom Tromey <tom@tromey.com>
6470 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6472 2020-03-13 Tom Tromey <tom@tromey.com>
6474 * ada-valprint.c (ada_value_print_num): New function.
6475 (ada_value_print_1): Use it.
6477 2020-03-13 Tom Tromey <tom@tromey.com>
6479 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6481 2020-03-13 Tom Tromey <tom@tromey.com>
6483 * ada-valprint.c (ada_value_print_ptr): New function.
6484 (ada_value_print_1): Use it.
6486 2020-03-13 Tom Tromey <tom@tromey.com>
6488 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6489 call common_val_print.
6490 (ada_val_print_1): Update.
6491 (ada_value_print_1): New function.
6492 (ada_value_print_inner): Rewrite.
6494 2020-03-13 Tom Tromey <tom@tromey.com>
6496 * cp-valprint.c (cp_print_value_fields): Update.
6497 (cp_print_value): New function.
6499 2020-03-13 Tom Tromey <tom@tromey.com>
6501 * m2-valprint.c (m2_value_print_inner): Use
6502 cp_print_value_fields.
6503 * cp-valprint.c (cp_print_value_fields): New function.
6504 * c-valprint.c (c_value_print_struct): New function.
6505 (c_value_print_inner): Use c_value_print_struct.
6506 * c-lang.h (cp_print_value_fields): Declare.
6508 2020-03-13 Tom Tromey <tom@tromey.com>
6510 * c-valprint.c (c_value_print_array): New function.
6511 (c_value_print_inner): Use it.
6513 2020-03-13 Tom Tromey <tom@tromey.com>
6515 * c-valprint.c (c_value_print_memberptr): New function.
6516 (c_value_print_inner): Use it.
6518 2020-03-13 Tom Tromey <tom@tromey.com>
6520 * c-valprint.c (c_value_print_int): New function.
6521 (c_value_print_inner): Use it.
6523 2020-03-13 Tom Tromey <tom@tromey.com>
6525 * c-valprint.c (c_value_print_ptr): New function.
6526 (c_value_print_inner): Use it.
6528 2020-03-13 Tom Tromey <tom@tromey.com>
6530 * c-valprint.c (c_value_print_inner): Rewrite.
6532 2020-03-13 Tom Tromey <tom@tromey.com>
6534 * valprint.c (generic_value_print_complex): New function.
6535 (generic_value_print): Use it.
6537 2020-03-13 Tom Tromey <tom@tromey.com>
6539 * valprint.c (generic_val_print_float): Don't call
6540 val_print_scalar_formatted.
6541 (generic_val_print, generic_value_print): Update.
6543 2020-03-13 Tom Tromey <tom@tromey.com>
6545 * valprint.c (generic_value_print_char): New function
6546 (generic_value_print): Use it.
6548 2020-03-13 Tom Tromey <tom@tromey.com>
6550 * valprint.c (generic_value_print_int): New function.
6551 (generic_value_print): Use it.
6553 2020-03-13 Tom Tromey <tom@tromey.com>
6555 * valprint.c (generic_value_print_bool): New function.
6556 (generic_value_print): Use it.
6558 2020-03-13 Tom Tromey <tom@tromey.com>
6560 * valprint.c (generic_val_print_func): Simplify.
6561 (generic_val_print, generic_value_print): Update.
6563 2020-03-13 Tom Tromey <tom@tromey.com>
6565 * valprint.c (generic_val_print_flags): Remove.
6566 (generic_val_print, generic_value_print): Update.
6567 (val_print_type_code_flags): Add original_value parameter.
6569 2020-03-13 Tom Tromey <tom@tromey.com>
6571 * valprint.c (generic_val_print): Update.
6572 (generic_value_print): Update.
6573 * valprint.c (generic_val_print_enum): Don't call
6574 val_print_scalar_formatted.
6576 2020-03-13 Tom Tromey <tom@tromey.com>
6578 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6579 * valprint.c (generic_value_print_ptr): New function.
6581 2020-03-13 Tom Tromey <tom@tromey.com>
6583 * valprint.c (generic_value_print): Rewrite.
6585 2020-03-13 Tom Tromey <tom@tromey.com>
6587 * p-valprint.c (pascal_object_print_value_fields)
6588 (pascal_object_print_value): New functions.
6590 2020-03-13 Tom Tromey <tom@tromey.com>
6592 * p-valprint.c (pascal_value_print_inner): Rewrite.
6594 2020-03-13 Tom Tromey <tom@tromey.com>
6596 * f-valprint.c (f_value_print_innner): Rewrite.
6598 2020-03-13 Tom Tromey <tom@tromey.com>
6600 * m2-valprint.c (m2_print_unbounded_array): New overload.
6601 (m2_print_unbounded_array): Update.
6602 (m2_print_array_contents): Take a struct value.
6603 (m2_value_print_inner): Rewrite.
6605 2020-03-13 Tom Tromey <tom@tromey.com>
6607 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6608 (d_value_print_inner): New function.
6609 * d-lang.h (d_value_print_inner): Declare.
6610 * d-lang.c (d_language_defn): Use d_value_print_inner.
6612 2020-03-13 Tom Tromey <tom@tromey.com>
6614 * go-valprint.c (go_value_print_inner): New function.
6615 * go-lang.h (go_value_print_inner): Declare.
6616 * go-lang.c (go_language_defn): Use go_value_print_inner.
6618 2020-03-13 Tom Tromey <tom@tromey.com>
6620 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6622 (rust_val_print): Rewrite.
6623 (rust_value_print_inner): New function, from rust_val_print.
6624 (rust_language_defn): Use rust_value_print_inner.
6626 2020-03-13 Tom Tromey <tom@tromey.com>
6628 * ada-valprint.c (ada_value_print_inner): New function.
6629 * ada-lang.h (ada_value_print_inner): Declare.
6630 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6632 2020-03-13 Tom Tromey <tom@tromey.com>
6634 * f-valprint.c (f_value_print_innner): New function.
6635 * f-lang.h (f_value_print_innner): Declare.
6636 * f-lang.c (f_language_defn): Use f_value_print_innner.
6638 2020-03-13 Tom Tromey <tom@tromey.com>
6640 * p-valprint.c (pascal_value_print_inner): New function.
6641 * p-lang.h (pascal_value_print_inner): Declare.
6642 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6644 2020-03-13 Tom Tromey <tom@tromey.com>
6646 * m2-valprint.c (m2_value_print_inner): New function.
6647 * m2-lang.h (m2_value_print_inner): Declare.
6648 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6650 2020-03-13 Tom Tromey <tom@tromey.com>
6652 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6653 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6654 * c-valprint.c (c_value_print_inner): New function.
6655 * c-lang.h (c_value_print_inner): Declare.
6656 * c-lang.c (c_language_defn, cplus_language_defn)
6657 (asm_language_defn, minimal_language_defn): Use
6658 c_value_print_inner.
6660 2020-03-13 Tom Tromey <tom@tromey.com>
6662 * p-valprint.c (pascal_object_print_value_fields): Now static.
6663 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6665 2020-03-13 Tom Tromey <tom@tromey.com>
6667 * c-valprint.c (c_val_print_array): Simplify.
6669 2020-03-13 Tom Tromey <tom@tromey.com>
6671 * valprint.c (value_print_array_elements): New function.
6672 * valprint.h (value_print_array_elements): Declare.
6674 2020-03-13 Tom Tromey <tom@tromey.com>
6676 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6677 * mips-tdep.c (mips_print_register): Use
6678 value_print_scalar_formatted.
6680 2020-03-13 Tom Tromey <tom@tromey.com>
6682 * valprint.h (value_print_scalar_formatted): Declare.
6683 * valprint.c (value_print_scalar_formatted): New function.
6685 2020-03-13 Tom Tromey <tom@tromey.com>
6687 * valprint.h (generic_value_print): Declare.
6688 * valprint.c (generic_value_print): New function.
6690 2020-03-13 Tom Tromey <tom@tromey.com>
6692 * valprint.c (do_val_print): Call la_value_print_inner, if
6694 * rust-lang.c (rust_language_defn): Update.
6695 * p-lang.c (pascal_language_defn): Update.
6696 * opencl-lang.c (opencl_language_defn): Update.
6697 * objc-lang.c (objc_language_defn): Update.
6698 * m2-lang.c (m2_language_defn): Update.
6699 * language.h (struct language_defn) <la_value_print_inner>: New
6701 * language.c (unknown_language_defn, auto_language_defn): Update.
6702 * go-lang.c (go_language_defn): Update.
6703 * f-lang.c (f_language_defn): Update.
6704 * d-lang.c (d_language_defn): Update.
6705 * c-lang.c (c_language_defn, cplus_language_defn)
6706 (asm_language_defn, minimal_language_defn): Update.
6707 * ada-lang.c (ada_language_defn): Update.
6709 2020-03-13 Tom Tromey <tom@tromey.com>
6711 * c-valprint.c (c_value_print): Use common_val_print.
6713 2020-03-13 Tom Tromey <tom@tromey.com>
6715 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6717 2020-03-13 Tom Tromey <tom@tromey.com>
6719 * f-valprint.c (f77_print_array_1, f_val_print): Use
6722 2020-03-13 Tom Tromey <tom@tromey.com>
6724 * riscv-tdep.c (riscv_print_one_register_info): Use
6727 2020-03-13 Tom Tromey <tom@tromey.com>
6729 * mi/mi-main.c (output_register): Use common_val_print.
6731 2020-03-13 Tom Tromey <tom@tromey.com>
6733 * infcmd.c (default_print_one_register_info): Use
6736 2020-03-13 Tom Tromey <tom@tromey.com>
6738 * valprint.h (common_val_print_checked): Declare.
6739 * valprint.c (common_val_print_checked): New function.
6740 * stack.c (print_frame_arg): Use common_val_print_checked.
6742 2020-03-13 Tom Tromey <tom@tromey.com>
6744 * valprint.c (do_val_print): New function, from val_print.
6745 (val_print): Use do_val_print.
6746 (common_val_print): Use do_val_print.
6748 2020-03-13 Tom Tromey <tom@tromey.com>
6750 * valprint.c (value_print): Use scoped_value_mark.
6752 2020-03-13 Tom de Vries <tdevries@suse.de>
6755 * psymtab.c (partial_symtab::partial_symtab): Don't set
6756 globals_offset and statics_offset. Push element onto
6757 current_global_psymbols and current_static_psymbols stacks.
6758 (concat): New function.
6759 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6760 element from current_global_psymbols and current_static_psymbols
6761 stacks. Concat popped elements to global_psymbols and
6763 (add_psymbol_to_list): Use current_global_psymbols and
6764 current_static_psymbols stacks.
6765 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6766 current_static_psymbols fields.
6768 2020-03-12 Christian Biesinger <cbiesinger@google.com>
6770 * corelow.c (sniff_core_bfd): Remove.
6771 (class core_target) <m_core_vec>: Remove.
6772 (core_target::core_target): Update.
6773 (core_file_fns): Remove.
6774 (deprecated_add_core_fns): Remove.
6775 (default_core_sniffer): Remove.
6776 (sniff_core_bfd): Remove.
6777 (default_check_format): Remove.
6778 (gdb_check_format): Remove.
6779 (core_target_open): Update.
6780 (core_target::get_core_register_section): Update.
6781 (get_core_registers_cb): Update.
6782 (core_target::fetch_registers): Update.
6783 * gdbcore.h (struct core_fns): Remove.
6784 (deprecated_add_core_fns): Remove.
6785 (default_core_sniffer): Remove.
6786 (default_check_format): Remove.
6788 2020-03-12 Tom Tromey <tom@tromey.com>
6790 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
6792 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
6794 2020-03-12 Tom Tromey <tom@tromey.com>
6796 * remote.c (remote_target::download_tracepoint)
6797 (remote_target::enable_tracepoint)
6798 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
6799 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
6802 2020-03-12 Tom Tromey <tom@tromey.com>
6804 * symfile-mem.c: Update CORE_ADDR size assert.
6806 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
6808 * selftest.m4: Move to gdbsupport/.
6809 * acinclude.m4: Update path to selftest.m4.
6811 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
6813 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
6814 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
6815 gdbarch-selfselftests.c and selftest-arch.c.
6816 (SUBDIR_UNITTESTS_OBS): Rename to...
6817 (SELFTESTS_OBS): ... this.
6818 (COMMON_SFILES): Remove disasm-selftests.c and
6819 gdbarch-selftests.c.
6820 * configure.ac: Don't add selftest-arch.{c,o} to
6822 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
6823 preprocessor conditions.
6825 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
6827 * configure.ac: Don't source bfd/development.sh.
6828 * selftest.m4: Modify comment.
6829 * configure: Re-generate.
6831 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
6833 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
6834 not "true" or "false".
6835 * configure: Re-generate.
6837 2020-03-12 Christian Biesinger <cbiesinger@google.com>
6839 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
6840 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
6841 renamed to arm_nbsd_supply_gregset.
6842 (fetch_register): Update to call arm_nbsd_supply_gregset.
6843 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
6844 (arm_netbsd_nat_target::fetch_registers): Update.
6845 (fetch_elfcore_registers): Removed.
6846 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
6847 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
6848 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
6849 not require NetBSD system headers.
6850 (arm_nbsd_regset): New struct.
6851 (arm_nbsd_iterate_over_regset_sections): New function.
6852 (arm_netbsd_init_abi_common): Updated to call
6853 set_gdbarch_iterate_over_regset_sections.
6854 * arm-nbsd-tdep.h: New file.
6856 2020-03-11 Kevin Buettner <kevinb@redhat.com>
6858 * symtab.c (find_pc_sect_line): Add check which prevents infinite
6861 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
6863 * configure: Re-generate.
6865 2020-03-11 Tom Tromey <tromey@adacore.com>
6867 * ada-typeprint.c (print_choices): Fix comment.
6869 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
6871 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
6872 previous item in the list, when the list has no items.
6874 2020-03-11 Tom de Vries <tdevries@suse.de>
6876 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
6877 PROP_LOCLIST handling code.
6879 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
6881 * buildsym-legacy.c (record_line): Pass extra parameter to
6883 * buildsym.c (buildsym_compunit::record_line): Take an extra
6884 parameter, reduce duplication in the line table, and record the
6885 is_stmt flag in the line table.
6886 * buildsym.h (buildsym_compunit::record_line): Add extra
6888 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
6889 non-statement lines.
6890 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
6891 this to the symtab builder.
6892 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
6893 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
6894 through to dwarf_record_line_1.
6895 * infrun.c (process_event_stop_test): When stepping, don't stop at
6896 a non-statement instruction, and only refresh the step info when
6897 we land in the middle of a line's range. Also add an extra
6899 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
6901 * record-btrace.c (btrace_find_line_range): Only record lines
6902 marked as is-statement.
6903 * stack.c (frame_show_address): Show the frame address if we are
6904 in a non-statement sal.
6905 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
6906 (maintenance_print_one_line_table): Print a header for the is_stmt
6907 column, and include is_stmt information in the output.
6908 * symtab.c (find_pc_sect_line): Find lines marked as statements in
6909 preference to non-statements.
6910 (find_pcs_for_symtab_line): Prefer is-statement entries.
6911 (find_line_common): Likewise.
6912 * symtab.h (struct linetable_entry): Add is_stmt field.
6913 (struct symtab_and_line): Likewise.
6914 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
6915 arranging the line table.
6917 2020-03-07 Tom de Vries <tdevries@suse.de>
6919 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
6922 2020-03-07 Tom Tromey <tom@tromey.com>
6924 * valops.c (value_literal_complex): Remove obsolete comment.
6925 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
6928 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
6930 * infrun.h: Forward-declare thread_info.
6931 (set_step_info): Add thread_info parameter, add doc.
6932 * infrun.c (set_step_info): Add thread_info parameter, move doc
6934 * infrun.c (process_event_stop_test): Pass thread to
6936 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
6938 (prepare_one_step): Add thread_info parameter, pass it to
6939 set_step_frame and prepare_one_step (recursive) call.
6940 (step_1): Pass thread to prepare_one_step call.
6941 (step_command_fsm::should_stop): Pass thread to
6943 (until_next_fsm): Pass thread to set_step_frame call.
6944 (finish_command): Pass thread to set_step_info call.
6946 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
6948 * windows-tdep.c (windows_solib_create_inferior_hook):
6949 Check if inferior is running.
6951 2020-03-06 Tom de Vries <tdevries@suse.de>
6953 * NEWS: Fix "the the".
6956 2020-03-06 Tom de Vries <tdevries@suse.de>
6958 * psymtab.c (psymtab_to_symtab): Don't print "done.".
6960 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6962 * .dir-locals.el: Add a comment referencing the other copies of
6965 2020-03-05 John Baldwin <jhb@FreeBSD.org>
6967 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
6970 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6972 * .gitattributes: New file.
6974 2020-03-04 Tom Tromey <tom@tromey.com>
6976 * symmisc.c (print_symbol_bcache_statistics)
6977 (print_objfile_statistics): Update.
6978 * symfile.c (allocate_symtab): Use intern.
6979 * psymtab.c (partial_symtab::partial_symtab): Use intern.
6980 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
6981 macro_cache>: Remove.
6982 <string_cache>: New member.
6983 (struct objfile) <intern>: New methods.
6984 * elfread.c (elf_symtab_read): Use intern.
6985 * dwarf2/read.c (fixup_go_packaging): Intern package name.
6986 (dwarf2_compute_name, dwarf2_physname)
6987 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
6989 (guess_partial_die_structure_name): Update.
6990 (partial_die_info::fixup): Intern name.
6991 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
6993 (dwarf2_name): Intern name. Update.
6994 * buildsym.c (buildsym_compunit::get_macro_table): Use
6997 2020-03-04 Tom Tromey <tom@tromey.com>
6999 * jit.c (bfd_open_from_target_memory): Make "target" const.
7000 * corefile.c (gnutarget): Now const.
7001 * gdbcore.h (gnutarget): Now const.
7003 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
7005 * NEWS: Mention support for WOW64 processes.
7006 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7007 (amd64_windows_segment_register_p): Remove static.
7008 (_initialize_amd64_windows_nat): Update.
7009 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7010 * i386-windows-nat.c (context_offset): Update.
7011 (i386_mappings): Rename and remove static.
7012 (i386_windows_segment_register_p): Remove static.
7013 (_initialize_i386_windows_nat): Update.
7014 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7015 (STATUS_WX86_SINGLE_STEP): New macro.
7016 (EnumProcessModulesEx): New macro.
7017 (Wow64SuspendThread): New macro.
7018 (Wow64GetThreadContext): New macro.
7019 (Wow64SetThreadContext): New macro.
7020 (Wow64GetThreadSelectorEntry): New macro.
7021 (windows_set_context_register_offsets): Add static.
7022 (windows_set_segment_register_p): Likewise.
7023 (windows_add_thread): Adapt for WOW64 processes.
7024 (windows_fetch_one_register): Likewise.
7025 (windows_nat_target::fetch_registers): Likewise.
7026 (windows_store_one_register): Likewise.
7027 (display_selector): Likewise.
7028 (display_selectors): Likewise.
7029 (handle_exception): Likewise.
7030 (windows_continue): Likewise.
7031 (windows_nat_target::resume): Likewise.
7032 (windows_add_all_dlls): Likewise.
7033 (do_initial_windows_stuff): Likewise.
7034 (windows_nat_target::attach): Likewise.
7035 (windows_get_exec_module_filename): Likewise.
7036 (windows_nat_target::create_inferior): Likewise.
7037 (windows_xfer_siginfo): Likewise.
7038 (_initialize_loadable): Initialize Wow64SuspendThread,
7039 Wow64GetThreadContext, Wow64SetThreadContext,
7040 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7041 * windows-nat.h (windows_set_context_register_offsets):
7043 (windows_set_segment_register_p): Likewise.
7044 (i386_windows_segment_register_p): Add declaration.
7045 (amd64_windows_segment_register_p): Likewise.
7047 2020-03-04 Luis Machado <luis.machado@linaro.org>
7049 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7050 in "info registers" for AArch64/ARM.
7052 The change caused "info registers" to not print GPR's.
7056 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7058 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7059 when reg->group is empty and reggroup is not.
7061 2020-03-03 Tom Tromey <tromey@adacore.com>
7063 * dwarf2/frame.c (struct dwarf2_frame_cache)
7064 <checked_tailcall_bottom, entry_cfa_sp_offset,
7065 entry_cfa_sp_offset_p>: Remove members.
7066 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7067 (dwarf2_frame_prev_register): Don't call
7068 dwarf2_tailcall_sniffer_first.
7069 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7070 * frame-unwind.c (add_unwinder): New fuction.
7071 (frame_unwind_init): Use it. Add tailcall unwinder.
7073 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7074 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7076 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7077 value should be printed as true.
7079 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
7081 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7082 (windows_init_abi): Set and use windows_so_ops.
7084 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7086 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7087 when verifying if dealing with a convenience variable.
7089 2020-03-03 Luis Machado <luis.machado@linaro.org>
7091 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7093 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7095 * infrun.c (gdbarch_supports_displaced_stepping): New.
7096 (use_displaced_stepping): Break up conditions in smaller pieces.
7097 Use gdbarch_supports_displaced_stepping.
7098 (displaced_step_prepare_throw): Use
7099 gdbarch_supports_displaced_stepping.
7101 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7103 * NEWS: Mention new behaviour of the history filename.
7104 * top.c (write_history_p): Add comment.
7105 (show_write_history_p): Add header comment, give a different
7106 message when history writing is on, but the history filename is
7108 (history_filename): Add comment.
7109 (history_filename_empty): New function.
7110 (show_history_filename): Add header comment, give a different
7111 message when the filename is empty.
7112 (init_history): Compare history_filename against nullptr, and only
7113 read history if the filename is not empty.
7114 (set_history_filename): Add header comment, and only make
7115 non-empty filenames absolute.
7116 (init_main): Make the filename argument to 'set history filename'
7119 2020-03-02 Christian Biesinger <cbiesinger@google.com>
7121 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7122 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7123 (fetch_fp_register): Update.
7124 (fetch_fp_regs): Update.
7125 (store_fp_register): Update.
7126 (store_fp_regs): Update.
7127 (arm_netbsd_nat_target::read_description): New function.
7128 (fetch_elfcore_registers): Update.
7130 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7132 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7133 general_thread if the stop reply is missing a thread-id.
7134 (remote_target::process_stop_reply): Use the first non-exited
7135 thread if the target didn't pass a thread-id.
7136 * infrun.c (do_target_wait): Move call to
7137 switch_to_inferior_no_thread to ....
7138 (do_target_wait_1): ... here.
7140 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7142 * debuginfod-support.c: Include defs.h first.
7144 2020-02-28 Tom de Vries <tdevries@suse.de>
7146 * symfile.c (set_initial_language): Use default language for lookup.
7148 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
7150 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7151 reader variable, pass `this` to read_cutu_die_from_dwo.
7153 2020-02-27 Aaron Merey <amerey@redhat.com>
7155 * source.c (open_source_file): Check for nullptr when computing
7158 2020-02-27 Tom Tromey <tromey@adacore.com>
7160 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7162 (dwarf2_add_field): Don't update nfields.
7163 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7165 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7167 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7170 2020-02-26 Tom Tromey <tom@tromey.com>
7172 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7173 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7174 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7175 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7178 2020-02-26 Tom Tromey <tom@tromey.com>
7180 * dwarf2/index-write.c (psym_index_map): Change type.
7181 (add_address_entry_worker, write_one_signatured_type)
7182 (recursively_count_psymbols, recursively_write_psymbols)
7183 (class debug_names, psyms_seen_size, write_gdbindex)
7184 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7186 2020-02-26 Aaron Merey <amerey@redhat.com>
7188 * Makefile.in: Handle optional debuginfod support.
7190 * README: Add --with-debuginfod summary.
7191 * config.in: Regenerate.
7192 * configure: Regenerate.
7193 * configure.ac: Handle optional debuginfod support.
7194 * debuginfod-support.c: debuginfod helper functions.
7195 * debuginfod-support.h: Ditto.
7196 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7198 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7199 when a dwz file cannot be found.
7200 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7201 debuginfo file cannot be found.
7202 * source.c (open_source_file): Query debuginfod servers when a
7203 source file cannot be found.
7204 * top.c (print_gdb_configuration): Include
7205 --{with,without}-debuginfod in the output.
7207 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7209 * thread.c (thr_try_catch_cmd): Print thread name.
7211 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
7213 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7214 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7215 dwarf2_fetch_die_type_sect_off): Move to...
7216 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7217 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7218 dwarf2_fetch_die_type_sect_off): ... here.
7219 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7220 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7221 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7223 2020-02-26 Tom de Vries <tdevries@suse.de>
7226 * symfile.c (set_initial_language): Exit-early if
7227 language_mode == language_mode_manual.
7229 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7231 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7232 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7233 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7235 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7237 * gdbtypes.c (create_array_type_with_stride): Handle negative
7239 * valarith.c (value_subscripted_rvalue): Likewise.
7241 2020-02-25 Luis Machado <luis.machado@linaro.org>
7243 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7245 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7247 * loc.h (dwarf2_get_die_type): Move to...
7248 * read.h (dwarf2_get_die_type): ... here.
7249 * read.c (dwarf2_get_die_type): Move doc to header.
7251 2020-02-25 Joel Brobecker <brobecker@adacore.com>
7253 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7254 'gnulib/Makefile.in' to the list.
7256 2020-02-24 Tom Tromey <tom@tromey.com>
7258 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7260 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7263 2020-02-24 Tom Tromey <tom@tromey.com>
7265 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7267 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7268 (dw2_do_instantiate_symtab, dw2_get_file_names)
7269 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7271 2020-02-24 Tom Tromey <tom@tromey.com>
7273 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7274 make_scoped_restore.
7275 (dwarf2_psymtab::read_symtab): Don't clear
7276 reading_partial_symbols.
7278 2020-02-24 Tom de Vries <tdevries@suse.de>
7281 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7283 2020-02-24 Tom de Vries <tdevries@suse.de>
7285 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7286 commands layout next/prev/regs.
7288 2020-02-22 Tom Tromey <tom@tromey.com>
7290 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7291 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7293 2020-02-22 Tom Tromey <tom@tromey.com>
7295 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7297 2020-02-22 Tom Tromey <tom@tromey.com>
7299 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7300 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7301 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7302 * tui/tui.c (_initialize_tui): Add usage text.
7304 2020-02-22 Tom Tromey <tom@tromey.com>
7306 * tui/tui-win.c (tui_set_focus_command)
7307 (tui_set_win_height_command): Use error_no_arg.
7308 (_initialize_tui_win): Update help text.
7309 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7311 2020-02-22 Tom Tromey <tom@tromey.com>
7313 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7314 * tui/tui-disasm.h (struct tui_disasm_window)
7315 <display_start_addr>: Declare.
7316 * tui/tui-source.h (struct tui_source_window)
7317 <display_start_addr>: Declare.
7318 * tui/tui-winsource.h (struct tui_source_window_base)
7319 <show_source_line, display_start_addr>: New methods.
7320 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7321 Rename and move to protected section.
7322 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7323 (tui_source_window_base::do_erase_source_content): Update.
7324 (tui_source_window_base::show_source_line): Now a method.
7325 (tui_source_window_base::show_source_content)
7326 (tui_source_window_base::tui_source_window_base)
7327 (tui_source_window_base::rerender)
7328 (tui_source_window_base::refill)
7329 (tui_source_window_base::do_scroll_horizontal)
7330 (tui_source_window_base::set_is_exec_point_at)
7331 (tui_source_window_base::update_breakpoint_info)
7332 (tui_source_window_base::update_exec_info): Update.
7333 * tui/tui-source.c (tui_source_window::set_contents)
7334 (tui_source_window::showing_source_p)
7335 (tui_source_window::do_scroll_vertical)
7336 (tui_source_window::location_matches_p)
7337 (tui_source_window::line_is_displayed): Update.
7338 (tui_source_window::display_start_addr): New method.
7339 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7340 (tui_disasm_window::do_scroll_vertical)
7341 (tui_disasm_window::location_matches_p): Update.
7342 (tui_disasm_window::display_start_addr): New method.
7344 2020-02-22 Tom Tromey <tom@tromey.com>
7346 * NEWS: Add entry for gdb.register_window_type.
7347 * tui/tui-layout.h (window_factory): New typedef.
7348 (tui_register_window): Declare.
7349 * tui/tui-layout.c (saved_tui_windows): New global.
7350 (tui_apply_current_layout): Use it.
7351 (tui_register_window): New function.
7352 * python/python.c (do_start_initialization): Call
7353 gdbpy_initialize_tui.
7354 (python_GdbMethods): Add "register_window_type" function.
7355 * python/python-internal.h (gdbpy_register_tui_window)
7356 (gdbpy_initialize_tui): Declare.
7357 * python/py-tui.c: New file.
7358 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7360 2020-02-22 Tom Tromey <tom@tromey.com>
7362 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7364 2020-02-22 Tom Tromey <tom@tromey.com>
7366 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7367 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7368 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7369 (tui_set_win_focus_to): Move from tui-win.c.
7371 2020-02-22 Tom Tromey <tom@tromey.com>
7373 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7375 (known_window_types): New global.
7376 (tui_get_window_by_name): Reimplement.
7377 (initialize_known_windows): New function.
7378 (validate_window_name): Rewrite.
7379 (_initialize_tui_layout): Call initialize_known_windows.
7381 2020-02-22 Tom Tromey <tom@tromey.com>
7383 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7385 * tui/tui-winsource.h (struct tui_source_window_base)
7386 <tui_source_window_base>: Remove parameter.
7387 * tui/tui-winsource.c
7388 (tui_source_window_base::tui_source_window_base): Remove
7390 (tui_source_window_base::refill): Update.
7391 * tui/tui-stack.h (struct tui_locator_window)
7392 <tui_locator_window>: Update.
7393 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7394 Default the constructor.
7395 * tui/tui-regs.h (struct tui_data_item_window)
7396 <tui_data_item_window>: Default the constructor.
7397 (struct tui_data_window) <tui_data_window>: Likewise.
7398 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7399 Default the constructor.
7400 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7401 Default the constructor.
7403 (struct tui_win_info) <tui_win_info>: Default the constructor.
7404 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7405 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7406 Default the constructor.
7408 2020-02-22 Tom Tromey <tom@tromey.com>
7410 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7411 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7412 * tui/tui-win.c (tui_resize_all): Don't call
7413 tui_delete_invisible_windows.
7414 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7416 (tui_set_layout): Update.
7417 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7418 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7419 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7421 2020-02-22 Tom Tromey <tom@tromey.com>
7423 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7426 2020-02-22 Tom Tromey <tom@tromey.com>
7428 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7430 2020-02-22 Tom Tromey <tom@tromey.com>
7432 * tui/tui-winsource.h (struct tui_source_window_iterator)
7433 <inner_iterator>: New etytypedef.
7434 <tui_source_window_iterator>: Take "end" parameter.
7435 <tui_source_window_iterator>: Take iterator.
7436 <operator*, advance>: Update.
7437 <m_iter>: Change type.
7439 (struct tui_source_windows) <begin, end>: Update.
7440 * tui/tui-layout.c (tui_windows): New global.
7441 (tui_apply_current_layout): Clear tui_windows.
7442 (tui_layout_window::apply): Update tui_windows.
7443 * tui/tui-data.h (tui_windows): Declare.
7444 (all_tui_windows): Now inline function.
7445 (class tui_window_iterator, struct all_tui_windows): Remove.
7447 2020-02-22 Tom Tromey <tom@tromey.com>
7450 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7451 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7453 (class tui_layout_window) <get_sizes>: Likewise.
7454 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7456 <get_sizes>: Add "height" argument.
7457 <m_vertical>: New field.
7458 * tui/tui-layout.c (tui_layout_split::clone): Update.
7459 (tui_layout_split::get_sizes): Add "height" argument.
7460 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7461 (tui_new_layout_command): Parse "-horizontal".
7462 (_initialize_tui_layout): Update help string.
7463 (tui_layout_split::specification): Add "-horizontal" when needed.
7464 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7466 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7469 2020-02-22 Tom Tromey <tom@tromey.com>
7471 * tui/tui-layout.h (enum tui_adjust_result): New.
7472 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7473 (class tui_layout_window) <adjust_size>: Return
7474 tui_adjust_result. Rewrite.
7475 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7476 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7478 2020-02-22 Tom Tromey <tom@tromey.com>
7480 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7481 parameter and return types.
7482 (class tui_layout_base) <specification>: Add "depth".
7483 (class tui_layout_window) <specification>: Add "depth".
7484 (class tui_layout_split) <specification>: Add "depth".
7485 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7487 (tui_new_layout_command): Parse sub-layouts.
7488 (_initialize_tui_layout): Update help string.
7489 (tui_layout_window::specification): Add "depth".
7490 (add_layout_command): Update.
7492 2020-02-22 Tom Tromey <tom@tromey.com>
7494 * NEWS: Add "tui new-layout" item.
7495 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7496 Add new-layout command to help text.
7497 (validate_window_name): New function.
7498 (tui_new_layout_command): New function.
7499 (_initialize_tui_layout): Register "new-layout".
7500 (tui_layout_window::specification): New method.
7501 (tui_layout_window::specification): New method.
7502 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7504 (class tui_layout_window) <specification>: New method.
7505 (class tui_layout_split) <specification>: New method.
7507 2020-02-22 Tom Tromey <tom@tromey.com>
7509 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7510 * tui/tui-win.c (window_name_completer): Update comment.
7511 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7513 (class tui_layout_window) <replace_window>: Likewise.
7514 (class tui_layout_split) <replace_window>: Likewise.
7515 (tui_set_layout): Don't declare.
7516 (tui_set_initial_layout): Declare function.
7517 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7518 (asm_regs_layout): New globals.
7519 (tui_current_layout, show_layout): Remove.
7520 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7521 (find_layout, tui_apply_layout): New function.
7522 (layout_completer): Remove.
7523 (tui_next_layout): Reimplement.
7524 (tui_next_layout_command): New function.
7525 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7526 (tui_regs_layout): Reimplement.
7527 (tui_regs_layout_command): New function.
7528 (extract_display_start_addr): Rewrite.
7529 (next_layout, prev_layout): Remove.
7530 (tui_layout_window::replace_window): New method.
7531 (tui_layout_split::replace_window): New method.
7532 (destroy_layout): New function.
7533 (layout_list): New global.
7534 (add_layout_command): New function.
7535 (initialize_layouts): Update.
7536 (tui_layout_command): New function.
7537 (_initialize_tui_layout): Install "layout" commands.
7538 * tui/tui-data.h (enum tui_layout_type): Remove.
7539 (tui_current_layout): Don't declare.
7541 2020-02-22 Tom Tromey <tom@tromey.com>
7543 * tui/tui-regs.c (tui_reg_layout): Remove.
7544 (tui_reg_command): Use tui_regs_layout.
7545 * tui/tui-layout.h (tui_reg_command): Declare.
7546 * tui/tui-layout.c (tui_reg_command): New function.
7548 2020-02-22 Tom Tromey <tom@tromey.com>
7550 * tui/tui.c (tui_rl_delete_other_windows): Call
7551 tui_remove_some_windows.
7552 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7554 (class tui_layout_window) <remove_windows>: New method.
7555 (class tui_layout_split) <remove_windows>: Declare.
7556 (tui_remove_some_windows): Declare.
7557 * tui/tui-layout.c (tui_remove_some_windows): New function.
7558 (tui_layout_split::remove_windows): New method.
7560 2020-02-22 Tom Tromey <tom@tromey.com>
7562 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7563 * tui/tui-layout.h (tui_next_layout): Declare.
7564 * tui/tui-layout.c (tui_next_layout): New function.
7566 2020-02-22 Tom Tromey <tom@tromey.com>
7568 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7569 correct coordinates.
7571 2020-02-22 Tom Tromey <tom@tromey.com>
7573 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7574 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7577 2020-02-22 Tom Tromey <tom@tromey.com>
7579 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7580 TUI_DISASM_WIN, not tui_win_list.
7582 2020-02-22 Tom Tromey <tom@tromey.com>
7584 * valprint.c (generic_val_print_enum_1)
7585 (val_print_type_code_flags): Style member names.
7586 * rust-lang.c (val_print_struct, rust_print_enum)
7587 (rust_print_struct_def, rust_internal_print_type): Style member
7589 * p-valprint.c (pascal_object_print_value_fields): Style member
7590 names. Only call fprintf_symbol_filtered for static members.
7591 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7592 * f-valprint.c (f_val_print): Style member names.
7593 * f-typeprint.c (f_type_print_base): Style member names.
7594 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7595 call fprintf_symbol_filtered for static members.
7596 (cp_print_class_member): Style member names.
7597 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7599 * ada-valprint.c (ada_print_scalar): Style enum names.
7600 (ada_val_print_enum): Likewise.
7601 * ada-typeprint.c (print_enum_type): Style enum names.
7603 2020-02-21 Tom Tromey <tom@tromey.com>
7605 * psympriv.h (struct partial_symtab): Update comment.
7607 2020-02-21 Tom Tromey <tromey@adacore.com>
7609 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7612 2020-02-21 Tom de Vries <tdevries@suse.de>
7615 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7616 if dependencies[i]->user != NULL.
7618 2020-02-21 Ali Tamur <tamur@google.com>
7620 * dwarf2/read.c (dwarf2_name): Add null check.
7622 2020-02-20 Tom Tromey <tom@tromey.com>
7624 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7625 ">=", in binary search.
7626 (dwarf2_find_containing_comp_unit): New overload.
7627 (run_test): New self-test.
7628 (_initialize_dwarf2_read): Register new test.
7630 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
7632 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7633 * riscv-tdep.h: Likewise.
7634 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7636 * features/riscv/64bit-csr.xml: Regenerated.
7638 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7639 Tom Tromey <tom@tromey.com>
7641 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7642 of 'fputc_unfiltered'.
7643 (putchar_unfiltered): Call 'fputc_unfiltered'.
7644 (fputc_unfiltered): Call 'fputs_unfiltered'.
7646 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7648 * config.in: Regenerate.
7649 * configure: Regenerate.
7650 * configure.ac: Add --with-python-libdir option.
7651 * main.c: Use WITH_PYTHON_LIBDIR.
7653 2020-02-19 Tom Tromey <tom@tromey.com>
7655 * symtab.c (general_symbol_info::compute_and_set_names): Use
7656 obstack_strndup. Simplify call to symbol_set_demangled_name.
7658 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
7660 * dwarf2/read.c (allocate_signatured_type_table,
7661 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7662 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7663 Remove objfile parameter, update all callers.
7665 2020-02-19 Doug Evans <dje@google.com>
7668 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7669 rust_enum_variant calculation.
7671 2020-02-19 Tom Tromey <tromey@adacore.com>
7673 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7675 2020-02-19 Tom Tromey <tromey@adacore.com>
7677 * ada-lang.c (cache_symbol): Use obstack_strdup.
7679 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7681 * configure: Regenerate.
7683 2020-02-19 Tom Tromey <tromey@adacore.com>
7685 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7688 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
7690 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7692 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7694 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7695 if GDBSERVER is not defined.
7696 (riscv_tdesc_cache): Likewise, also store const target_desc.
7697 (STATIC_IN_GDB): Define.
7698 (riscv_create_target_description): Update declaration with
7700 (riscv_lookup_target_description): New function, only define if
7701 GDBSERVER is not defined.
7702 * arch/riscv.h (riscv_create_target_description): Declare only
7703 when GDBSERVER is defined.
7704 (riscv_lookup_target_description): New declaration when GDBSERVER
7706 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7707 (riscv_linux_read_features): ...this, and return
7708 riscv_gdbarch_features instead of target_desc.
7709 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7710 (riscv_linux_read_description): Rename to...
7711 (riscv_linux_read_features): ...this.
7712 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7713 Update to use riscv_gdbarch_features and
7714 riscv_lookup_target_description.
7715 * riscv-tdep.c (riscv_find_default_target_description): Use
7716 riscv_lookup_target_description instead of
7717 riscv_create_target_description.
7719 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
7721 * valprint.c (generic_val_print_enum_1): When printing a flag
7722 enum with value 0 and there is no enumerator with value 0, print
7723 just "0" instead of "(unknown: 0x0)".
7725 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
7727 * valprint.c (generic_val_print_enum_1): Print unknown part of
7730 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
7732 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7733 flag enums to contain duplicate enumerators.
7734 * valprint.c (generic_val_print_enum_1): Update comment.
7736 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
7738 * dwarf2/read.c: Include "count-one-bits.h".
7739 (update_enumeration_type_from_children): If an enumerator has
7740 multiple bits set, don't treat the enumeration as a "flag enum".
7741 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7742 of flag enums have 0 or 1 bit set.
7744 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7746 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7748 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7749 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7750 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7751 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7752 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7754 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
7756 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7758 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
7760 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7761 displaced_step_closure_up.
7762 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7763 (struct displaced_step_closure_up):
7764 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7765 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7766 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7768 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7769 * gdbarch.c, gdbarch.h: Re-generate.
7770 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7771 displaced_step_closure_up.
7772 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7773 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7774 * infrun.h (displaced_step_closure_up): New type alias.
7775 (struct displaced_step_inferior_state) <step_closure>: Change
7776 type to displaced_step_closure_up.
7777 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7778 displaced_step_closure_up.
7779 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7781 2020-02-14 Tom Tromey <tom@tromey.com>
7783 * minidebug.c (gnu_debug_key): New global.
7784 (find_separate_debug_file_in_section): Use it.
7786 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
7788 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
7790 * gdbarch.c: Re-generate.
7791 * gdbarch.h: Re-generate.
7792 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
7794 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
7795 type to std::unique_ptr.
7796 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7797 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7798 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7799 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7800 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
7801 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7802 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7803 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7804 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7806 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
7808 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
7810 (displaced_step_clear): Rename to...
7811 (displaced_step_reset): ... this. Just call displaced->reset ().
7812 (displaced_step_clear_cleanup): Rename to...
7813 (displaced_step_reset_cleanup): ... this.
7814 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
7815 (displaced_step_fixup): Likewise.
7816 (resume_1): Likewise.
7817 (handle_inferior_event): Restore child's memory before calling
7818 displaced_step_fixup on the parent.
7819 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
7821 <step_closure>: Change type to std::unique_ptr.
7823 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
7825 * arm-tdep.c: Include count-one-bits.h.
7826 (cleanup_block_store_pc): Use count_one_bits.
7827 (cleanup_block_load_pc): Use count_one_bits.
7828 (arm_copy_block_xfer): Use count_one_bits.
7829 (thumb2_copy_block_xfer): Use count_one_bits.
7830 (thumb_copy_pop_pc_16bit): Use count_one_bits.
7831 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
7832 (thumb_get_next_pcs_raw): Use count_one_bits.
7833 (arm_get_next_pcs_raw): Use count_one_bits_l.
7834 * arch/arm.c (bitcount): Remove.
7835 * arch/arm.h (bitcount): Remove.
7837 2020-02-14 Tom Tromey <tromey@adacore.com>
7839 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
7841 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
7842 * dwarf2/loc.c (call_site_find_chain_1): Return
7844 (call_site_find_chain): Likewise.
7846 2020-02-14 Richard Biener <rguenther@suse.de>
7848 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
7849 on expression with division operators.
7851 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7853 * MAINTAINERS (Write After Approval): Adding myself.
7855 2020-02-12 Tom Tromey <tom@tromey.com>
7857 * event-loop.c (event_data, gdb_event, event_handler_func):
7860 2020-02-12 Tom Tromey <tom@tromey.com>
7862 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
7863 (dwarf2_frame_objfile_data): Add comment.
7864 (find_comp_unit, set_comp_unit): New functions.
7865 (dwarf2_frame_find_fde): Use find_comp_unit.
7866 (dwarf2_build_frame_info): Use set_comp_unit.
7868 2020-02-12 Tom Tromey <tom@tromey.com>
7870 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
7871 (comp_unit): Don't initialize objfile.
7872 (execute_cfa_program): Add text_offset parameter.
7873 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
7874 (dwarf2_frame_cache): Update.
7875 (dwarf2_build_frame_info): Don't set "objfile" member.
7877 2020-02-12 Tom Tromey <tom@tromey.com>
7879 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
7880 (decode_frame_entry): Likewise.
7881 (dwarf2_build_frame_info): Update.
7883 2020-02-12 Tom Tromey <tom@tromey.com>
7885 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
7886 (decode_frame_entry_1): Use the comp_unit obstack.
7888 2020-02-12 Tom Tromey <tom@tromey.com>
7890 * dwarf2/frame.c (struct comp_unit): Add initializers and
7892 (dwarf2_frame_objfile_data): Store a comp_unit.
7893 (dwarf2_frame_find_fde): Update.
7894 (dwarf2_build_frame_info): Use "new".
7896 2020-02-12 Tom Tromey <tom@tromey.com>
7898 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
7899 (dwarf2_fde_table): Typedef for std::vector.
7900 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
7901 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
7902 (decode_frame_entry): Update.
7903 (dwarf2_build_frame_info): Use "new".
7905 2020-02-12 Christian Biesinger <cbiesinger@google.com>
7907 * arm-tdep.c (arm_gdbarch_init): Update.
7908 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
7909 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
7910 have_neon, is_m>: Change to bool.
7912 2020-02-12 Christian Biesinger <cbiesinger@google.com>
7914 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
7916 2020-02-12 Tom Tromey <tom@tromey.com>
7918 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
7920 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
7922 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
7923 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
7925 2020-02-11 Tom Tromey <tom@tromey.com>
7927 * psymtab.h: Update comment.
7929 2020-02-11 Tom Tromey <tom@tromey.com>
7931 * gdb_obstack.h (struct auto_obstack): Use
7932 DISABLE_COPY_AND_ASSIGN.
7934 2020-02-11 Tom Tromey <tom@tromey.com>
7936 * dwarf2/frame.h (struct objfile): Don't forward declare.
7938 2020-02-11 Christian Biesinger <cbiesinger@google.com>
7940 * cris-tdep.c (cris_supply_gregset): Change signature to match
7941 what struct regset expects.
7942 (cris_regset): New struct.
7943 (fetch_core_registers): Remove.
7944 (cris_iterate_over_regset_sections): New function.
7945 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
7946 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
7948 2020-02-11 Christian Biesinger <cbiesinger@google.com>
7950 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
7953 2020-02-11 Christian Biesinger <cbiesinger@google.com>
7955 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
7957 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
7959 * configure: Re-generate.
7961 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
7963 * configure: Re-generate.
7965 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
7967 * acinclude: Update warning.m4 path.
7968 * warning.m4: Move to gdbsupport.
7970 2020-02-11 Tom Tromey <tromey@adacore.com>
7972 * remote.c (remote_console_output): Update.
7973 * printcmd.c (printf_command): Update.
7974 * event-loop.c (gdb_wait_for_event): Update.
7975 * linux-nat.c (sigchld_handler): Update.
7976 * remote-sim.c (gdb_os_write_stdout): Update.
7977 (gdb_os_flush_stdout): Update.
7978 (gdb_os_flush_stderr): Update.
7979 (gdb_os_write_stderr): Update.
7980 * exceptions.c (print_exception): Update.
7981 * remote-fileio.c (remote_fileio_func_read): Update.
7982 (remote_fileio_func_write): Update.
7983 * tui/tui.c (tui_enable): Update.
7984 * tui/tui-interp.c (tui_interp::init): Update.
7985 * utils.c (init_page_info): Update.
7986 (putchar_unfiltered, fputc_unfiltered): Update.
7987 (gdb_flush): Update.
7988 (emit_style_escape): Update.
7989 (flush_wrap_buffer, fputs_maybe_filtered): Update.
7990 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
7991 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
7992 (stderr_file::write): Update.
7993 (stderr_file::puts): Update.
7994 * ui-file.h (ui_file_isatty, ui_file_write)
7995 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
7996 (ui_file_puts): Don't declare.
7998 2020-02-10 Tom de Vries <tdevries@suse.de>
8000 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8003 2020-02-09 Tom de Vries <tdevries@suse.de>
8005 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8006 filename if it matches "<artificial>".
8008 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8010 * windows-tdep.c (struct enum_value_name): New struct.
8011 (create_enum): New function.
8012 (windows_get_siginfo_type): Create and use enum types.
8014 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8016 * NEWS: Mention $_siginfo support for Windows.
8017 * windows-nat.c (handle_exception): Set siginfo_er.
8018 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8019 (windows_xfer_siginfo): New function.
8020 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8021 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8022 (init_windows_gdbarch_data): New function.
8023 (get_windows_gdbarch_data): New function.
8024 (windows_get_siginfo_type): New function.
8025 (windows_init_abi): Register windows_get_siginfo_type.
8026 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8028 2020-02-08 Tom Tromey <tom@tromey.com>
8030 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8031 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8032 <keep>: Declare method.
8033 <m_keep>: Remove member.
8034 <~cutu_reader>: Remove.
8035 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8036 (cutu_reader::cutu_reader): Update.
8037 (cutu_reader::keep): Rename from ~cutu_reader.
8038 (process_psymtab_comp_unit, build_type_psymtabs_1)
8039 (process_skeletonless_type_unit, load_partial_comp_unit)
8040 (load_full_comp_unit, dwarf2_read_addr_index)
8041 (read_signatured_type): Update.
8043 2020-02-08 Tom Tromey <tom@tromey.com>
8045 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8046 "want_partial_unit" parameter.
8047 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8048 Inline check for DW_TAG_partial_unit.
8049 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8051 2020-02-08 Tom Tromey <tom@tromey.com>
8053 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8055 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8058 2020-02-08 Tom Tromey <tom@tromey.com>
8060 * dwarf2/read.c (read_address): Move to comp-unit.c.
8061 (dwarf2_rnglists_process, dwarf2_ranges_process)
8062 (read_attribute_value, dwarf_decode_lines_1)
8063 (var_decode_location, decode_locdesc): Update.
8064 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8065 read.c. Remove "cu" parameter.
8066 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8069 2020-02-08 Tom Tromey <tom@tromey.com>
8071 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8072 (read_indirect_line_string): Update.
8073 * dwarf2/comp-unit.c (read_offset): Remove.
8074 (read_comp_unit_head): Update.
8075 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8077 (read_offset): Don't declare.
8079 2020-02-08 Tom Tromey <tom@tromey.com>
8081 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8082 * dwarf2/read.c (struct comp_unit_head): Move to
8084 (enum class rcuh_kind): Move to comp-unit.h.
8085 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8086 (read_comp_unit_head, error_check_comp_unit_head)
8087 (read_and_check_comp_unit_head): Move to comp-unit.c.
8088 (read_offset, dwarf_unit_type_name): Likewise.
8089 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8090 (cutu_reader::cutu_reader, read_call_site_scope)
8091 (find_partial_die, follow_die_offset): Update.
8092 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8094 2020-02-08 Tom Tromey <tom@tromey.com>
8096 * dwarf2/read.c (read_offset_1): Move to leb.c.
8097 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8098 (dwarf_decode_macro_bytes): Update.
8099 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8100 * dwarf2/leb.h (read_offset): Declare.
8102 2020-02-08 Tom Tromey <tom@tromey.com>
8104 * dwarf2/read.c (dwarf2_section_size): Remove.
8105 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8107 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8109 2020-02-08 Tom Tromey <tom@tromey.com>
8111 * dwarf2/read.c (read_initial_length): Move to leb.c.
8112 * dwarf2/leb.h (read_initial_length): Declare.
8113 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8114 handle_nonstd parameter.
8115 * dwarf2/frame.c (read_initial_length): Remove.
8116 (decode_frame_entry_1): Update.
8118 2020-02-08 Tom Tromey <tom@tromey.com>
8120 * dwarf2/loc.c (dwarf2_find_location_expression)
8121 (dwarf_evaluate_loc_desc::get_tls_address)
8122 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8123 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8124 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8125 (dwarf2_compile_property_to_c)
8126 (dwarf2_loc_desc_get_symbol_read_needs)
8127 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8128 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8129 (loclist_describe_location, loclist_tracepoint_var_ref)
8130 (loclist_generate_c_location): Update.
8131 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8132 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8133 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8134 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8135 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8136 (dwarf2_per_cu_data::addr_size)
8137 (dwarf2_per_cu_data::ref_addr_size)
8138 (dwarf2_per_cu_data::text_offset)
8139 (dwarf2_per_cu_data::addr_type): Now methods.
8140 (per_cu_header_read_in): Make per_cu "const".
8141 (dwarf2_version): Remove.
8142 (dwarf2_per_cu_data::int_type): Now a method.
8143 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8144 (set_die_type, read_array_type, read_subrange_index_type)
8145 (read_tag_string_type, read_subrange_type): Update.
8146 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8147 offset_size, ref_addr_size, text_offset, addr_type, version,
8148 objfile, int_type, addr_sized_int_type>: Declare methods.
8150 2020-02-08 Tom Tromey <tom@tromey.com>
8152 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8155 2020-02-08 Tom Tromey <tom@tromey.com>
8157 * dwarf2/read.h (dwarf_line_debug): Declare.
8158 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8159 * dwarf2/read.c: Move line_header code to new files.
8160 (dwarf_line_debug): No longer static.
8161 * dwarf2/line-header.c: New file.
8162 * dwarf2/line-header.h: New file.
8164 2020-02-08 Tom Tromey <tom@tromey.com>
8166 * dwarf2/read.c (struct line_header) <file_full_name,
8167 file_file_name>: Return unique_xmalloc_ptr.
8168 (line_header::file_file_name): Update.
8169 (line_header::file_full_name): Update.
8170 (dw2_get_file_names_reader): Update.
8171 (macro_start_file): Update.
8173 2020-02-08 Tom Tromey <tom@tromey.com>
8175 * dwarf2/read.c (struct line_header) <file_full_name,
8176 file_file_name>: Declare methods.
8177 (dw2_get_file_names_reader): Update.
8178 (file_file_name): Now a method.
8179 (file_full_name): Likewise.
8180 (macro_start_file): Update.
8182 2020-02-08 Tom Tromey <tom@tromey.com>
8184 * dwarf2/read.c (dwarf_always_disassemble)
8185 (show_dwarf_always_disassemble): Move to loc.c.
8186 (_initialize_dwarf2_read): Move "always-disassemble" registration
8188 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8189 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8191 (show_dwarf_always_disassemble): Move from read.c.
8192 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8194 2020-02-08 Tom Tromey <tom@tromey.com>
8196 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8197 (create_quick_file_names_table): Return htab_up.
8198 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8200 * dwarf2/read.h (struct dwarf2_per_objfile)
8201 <quick_file_names_table>: Now htab_up.
8203 2020-02-08 Tom Tromey <tom@tromey.com>
8205 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8207 2020-02-08 Tom Tromey <tom@tromey.com>
8209 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8211 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8212 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8213 (abbrev_table::abbrev_table): No longer inline.
8214 (ABBREV_HASH_SIZE): Remove.
8215 (abbrev_table::m_abbrevs): Now an htab_up.
8217 2020-02-08 Tom Tromey <tom@tromey.com>
8219 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8220 (cutu_reader): Update.
8221 (build_type_psymtabs_1): Update.
8222 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8223 (abbrev_table::alloc_abbrev): Update.
8224 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8225 (abbrev_table::read): New static method, renamed from
8226 abbrev_table_read_table.
8227 (abbrev_table::alloc_abbrev)
8228 (abbrev_table::add_abbrev): Now private.
8229 (abbrev_table::abbrev_table): Now private.
8230 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8232 2020-02-08 Tom Tromey <tom@tromey.com>
8234 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8235 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8238 2020-02-08 Tom Tromey <tom@tromey.com>
8240 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8242 (lookup_dwo_unit_in_dwp): Update.
8243 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8246 2020-02-08 Tom Tromey <tom@tromey.com>
8248 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8251 2020-02-08 Tom Tromey <tom@tromey.com>
8253 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8255 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8256 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8257 Change type to htab_up.
8259 2020-02-08 Tom Tromey <tom@tromey.com>
8261 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8262 htab_up. Don't allocate on obstack.
8263 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8264 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8265 Change type to htab_up.
8267 2020-02-08 Tom Tromey <tom@tromey.com>
8269 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8270 Change type to htab_up.
8271 * dwarf2/read.c (create_signatured_type_table_from_index)
8272 (create_signatured_type_table_from_debug_names)
8273 (create_all_type_units, add_type_unit)
8274 (lookup_dwo_signatured_type, lookup_signatured_type)
8275 (process_skeletonless_type_unit): Update.
8276 (create_debug_type_hash_table, create_debug_types_hash_table):
8277 Change type of types_htab.
8278 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8279 htab_up. Don't allocate on obstack.
8280 (create_cus_hash_table): Change type of cus_htab parameter.
8281 (struct dwo_file) <cus, tus>: Now htab_up.
8282 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8283 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8284 (queue_and_load_all_dwo_tus): Update.
8285 * dwarf2/index-write.c (write_gdbindex): Update.
8286 (write_debug_names): Update.
8288 2020-02-08 Tom Tromey <tom@tromey.com>
8290 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8291 dwarf2/read.c. Remove "next" member. Add constructor ntad
8293 (struct dwarf2_per_objfile) <queue>: New member.
8294 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8296 (dwarf2_queue, dwarf2_queue_tail): Remove.
8297 (class dwarf2_queue_guard): Add parameter to constructor. Use
8298 DISABLE_COPY_AND_ASSIGN.
8299 <m_per_objfile>: New member.
8300 <~dwarf2_queue_guard>: Rewrite.
8301 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8303 (~dwarf2_queue_item): New.
8305 2020-02-08 Tom Tromey <tom@tromey.com>
8307 * dwarf2/read.c (struct die_info) <has_children>: New member.
8308 (dw2_get_file_names_reader): Remove has_children.
8309 (dw2_get_file_names): Update.
8310 (read_cutu_die_from_dwo): Remove has_children.
8311 (cutu_reader::init_tu_and_read_dwo_dies)
8312 (cutu_reader::cutu_reader): Update.
8313 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8314 Remove has_children.
8315 (build_type_psymtabs_1, process_skeletonless_type_unit)
8316 (load_partial_comp_unit, load_full_comp_unit): Update.
8317 (create_dwo_cu_reader): Remove has_children.
8318 (create_cus_hash_table, read_die_and_children): Update.
8319 (read_full_die_1,read_full_die): Remove has_children.
8320 (read_signatured_type): Update.
8321 (class cutu_reader) <has_children>: Remove.
8323 2020-02-08 Tom Tromey <tom@tromey.com>
8325 * dwarf2/expr.c: Rename from dwarf2expr.c.
8326 * dwarf2/expr.h: Rename from dwarf2expr.h.
8327 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8328 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8329 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8330 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8331 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8332 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8333 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8334 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8335 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8336 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8337 * dwarf2/loc.c: Rename from dwarf2loc.c.
8338 * dwarf2/loc.h: Rename from dwarf2loc.h.
8339 * dwarf2/read.c: Rename from dwarf2read.c.
8340 * dwarf2/read.h: Rename from dwarf2read.h.
8341 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8342 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8343 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8344 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8345 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8346 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8347 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8348 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8349 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8350 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8351 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8352 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8353 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8355 * Makefile.in (COMMON_SFILES): Update.
8356 (HFILES_NO_SRCDIR): Update.
8358 2020-02-08 Tom Tromey <tom@tromey.com>
8360 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8361 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8363 2020-02-08 Tom Tromey <tom@tromey.com>
8365 * dwarf2read.h (struct die_info): Don't declare.
8367 2020-02-08 Tom Tromey <tom@tromey.com>
8369 * dwarf2read.h (die_info_ptr): Remove typedef.
8371 2020-02-08 Tom Tromey <tom@tromey.com>
8373 * dwarf2read.c (read_call_site_scope)
8374 (handle_data_member_location, dwarf2_add_member_fn)
8375 (mark_common_block_symbol_computed, read_common_block)
8376 (attr_to_dynamic_prop, partial_die_info::read)
8377 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8378 (dwarf2_symbol_mark_computed, set_die_type): Update.
8379 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8381 (attr_form_is_block): Don't declare.
8382 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8384 2020-02-08 Tom Tromey <tom@tromey.com>
8386 * dwarf2read.c (dwarf2_find_base_address, )
8387 (read_call_site_scope, rust_containing_type)
8388 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8389 (handle_data_member_location, dwarf2_add_member_fn)
8390 (get_alignment, read_structure_type, process_structure_scope)
8391 (mark_common_block_symbol_computed, read_common_block)
8392 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8393 (partial_die_info::read, read_attribute_value, new_symbol)
8394 (lookup_die_type, dwarf2_get_ref_die_offset)
8395 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8396 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8397 (dwarf2_symbol_mark_computed): Update.
8398 * dwarf2/attribute.h (struct attribute) <value_as_address,
8399 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8401 (value_as_address, attr_form_is_section_offset)
8402 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8403 * dwarf2/attribute.c (attribute::value_as_address)
8404 (attribute::form_is_section_offset, attribute::form_is_constant)
8405 (attribute::form_is_ref): Now methods.
8407 2020-02-08 Tom Tromey <tom@tromey.com>
8409 * dwarf2read.c (struct attribute, DW_STRING)
8410 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8411 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8412 (attr_form_is_block, attr_form_is_section_offset)
8413 (attr_form_is_constant, attr_form_is_ref): Move.
8414 * dwarf2/attribute.h: New file.
8415 * dwarf2/attribute.c: New file, from dwarf2read.c.
8416 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8418 2020-02-08 Tom Tromey <tom@tromey.com>
8420 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8421 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8423 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8424 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8425 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8427 * dwarf2/abbrev.h: New file.
8428 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8429 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8431 2020-02-08 Tom Tromey <tom@tromey.com>
8433 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8434 (dwarf2_section_size, dwarf2_get_section_info)
8435 (create_signatured_type_table_from_debug_names)
8436 (create_addrmap_from_aranges, read_debug_names_from_section)
8437 (get_gdb_index_contents_from_section, read_comp_unit_head)
8438 (error_check_comp_unit_head, read_abbrev_offset)
8439 (create_debug_type_hash_table, init_cu_die_reader)
8440 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8441 (read_comp_units_from_section, create_cus_hash_table)
8442 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8443 (create_dwp_v2_section, dwarf2_rnglists_process)
8444 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8445 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8446 (read_indirect_string_from_dwz, read_addr_index_1)
8447 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8448 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8449 (fill_in_loclist_baton): Update.
8450 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8451 get_containing_section, get_bfd_owner, get_bfd_section,
8452 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8453 (dwarf2_read_section, get_section_name, get_section_file_name)
8454 (get_containing_section, get_section_bfd_owner)
8455 (get_section_bfd_section, get_section_name, get_section_file_name)
8456 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8458 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8459 (dwarf2_section_info::get_bfd_owner)
8460 (dwarf2_section_info::get_bfd_section)
8461 (dwarf2_section_info::get_name)
8462 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8463 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8464 (dwarf2_section_info::read): Now methods.
8465 * dwarf-index-write.c (class debug_names): Update.
8467 2020-02-08 Tom Tromey <tom@tromey.com>
8469 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8470 Move to dwarf2/section.h.
8471 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8472 (get_section_bfd_section, get_section_name)
8473 (get_section_file_name, get_section_id, get_section_flags)
8474 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8476 * dwarf2/section.h: New file.
8477 * dwarf2/section.c: New file, from dwarf2read.c.
8478 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8480 2020-02-08 Tom Tromey <tom@tromey.com>
8482 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8483 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8484 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8485 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8486 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8487 * dwarf2/leb.h: New file, from dwarf2read.c.
8488 * dwarf2/leb.c: New file, from dwarf2read.c.
8489 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8491 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8492 (COMMON_SFILES): Add dwarf2/leb.c.
8494 2020-02-08 Joel Brobecker <brobecker@adacore.com>
8498 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8501 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8502 * gdb/remote.c (remote_console_output): Update.
8503 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8504 (ui_file_puts): ...this.
8505 * gdb/ui-file.h (ui_file_puts): Add declaration.
8506 * gdb/utils.c (emit_style_escape): Update.
8507 (flush_wrap_buffer): Update.
8508 (fputs_maybe_filtered): Update.
8509 (fputs_unfiltered): Add function.
8511 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8513 * gdb/event-loop.c (gdb_wait_for_event): Update.
8514 * gdb/printcmd.c (printf_command): Update.
8515 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8516 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8517 (gdb_os_flush_stderr): Update.
8518 * gdb/remote.c (remote_console_output): Update.
8519 * gdb/ui-file.c (gdb_flush): Rename to...
8520 (ui_file_flush): ...this.
8521 (stderr_file::write): Update.
8522 (stderr_file::puts): Update.
8523 * gdb/ui-file.h (gdb_flush): Rename to...
8524 (ui_file_flush): ...this.
8525 * gdb/utils.c (gdb_flush): Add function.
8526 * gdb/utils.h (gdb_flush): Add declaration.
8528 2020-02-07 Tom Tromey <tromey@adacore.com>
8530 PR breakpoints/24915:
8531 * source.c (find_and_open_source): Do not check basenames_may_differ.
8533 2020-02-07 Tom Tromey <tom@tromey.com>
8535 * README: Update gdbserver documentation.
8536 * gdbserver: Move to top level.
8537 * configure.tgt (build_gdbserver): Remove.
8538 * configure.ac: Remove --enable-gdbserver.
8539 * configure: Rebuild.
8540 * Makefile.in (distclean): Don't mention gdbserver.
8542 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
8544 * source-cache.c (source_cache::ensure): Surround
8545 get_plain_source_lines with a try/catch.
8546 (source_cache::get_line_charpos): Get rid of try/catch
8547 and only check for the return value of "ensure".
8548 * tui/tui-source.c (tui_source_window::set_contents):
8549 Simplify "nlines" calculation.
8551 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
8553 * MAINTAINERS (Write After Approval): Add myself.
8555 2020-02-05 Christian Biesinger <cbiesinger@google.com>
8557 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8560 2020-02-05 Christian Biesinger <cbiesinger@google.com>
8562 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8564 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
8566 * nat/riscv-linux-tdesc.h: New file.
8567 * nat/riscv-linux-tdesc.c: New file, taking code from...
8568 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8570 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8573 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8575 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8576 we don't set the fake simulator ptid to the null_ptid.
8578 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
8580 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8581 * gdbthread.h (class thread_info) <resumed>: Likewise.
8582 * infrun.c (resume_1): Likewise.
8583 (proceed): Likewise.
8584 (infrun_thread_stop_requested): Likewise.
8585 (stop_all_threads): Likewise.
8586 (handle_inferior_event): Likewise.
8587 (restart_threads): Likewise.
8588 (finish_step_over): Likewise.
8589 (keep_going_stepped_thread): Likewise.
8590 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8591 (linux_handle_extended_wait): Likewise.
8592 * record-btrace.c (get_thread_current_frame_id): Likewise.
8593 * record-full.c (record_full_wait_1): Likewise.
8594 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8595 * target.c (target_resume): Likewise.
8596 * thread.c (set_running_thread): Likewise.
8598 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8600 * f-valprint.c (f77_print_array_1): Changed datatype of index
8601 variable to LONGEST from int to enable it to contain bound
8604 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
8606 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8607 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8608 offsets according to FLEN determined.
8609 (riscv_linux_nat_target::read_description): Determine FLEN
8611 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8612 according to FLEN determined.
8613 (riscv_linux_nat_target::store_registers): Likewise.
8615 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8617 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8618 when reg->group is empty and reggroup is not.
8620 2020-01-31 Tom Tromey <tromey@adacore.com>
8622 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8623 Call beneath target's mourn_inferior after unpushing.
8625 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8628 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8629 have enough lines to fill the screen, still return the lowest
8632 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8634 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8635 '-', '<', and '>' commands.
8637 2020-01-29 Pedro Alves <palves@redhat.com>
8638 Sergio Durigan Junior <sergiodj@redhat.com>
8640 * infcmd.c (construct_inferior_arguments): Assert that
8641 'argc' is greater than 0.
8643 2020-01-29 Luis Machado <luis.machado@linaro.org>
8645 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8646 (BRK_INSN_MASK): Define to 0xd4200000.
8647 (aarch64_program_breakpoint_here_p): New function.
8648 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8649 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8651 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8653 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8654 call gdbarch_program_breakpoint_here_p.
8655 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8656 default_program_breakpoint_here_p, changed return type to bool and
8658 * breakpoint.h (program_breakpoint_here): Moved prototype to
8659 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8660 return type to bool.
8661 * gdbarch.c: Regenerate.
8662 * gdbarch.h: Regenerate.
8663 * gdbarch.sh (program_breakpoint_here_p): New method.
8664 * infrun.c (handle_signal_stop): Call
8665 gdbarch_program_breakpoint_here_p.
8667 2020-01-26 Tom Tromey <tom@tromey.com>
8669 * ctfread.c (struct ctf_fp_info): Reindent.
8670 (_initialize_ctfread): Remove.
8672 2020-01-26 Tom Tromey <tom@tromey.com>
8674 * psymtab.c (partial_map_expand_apply)
8675 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8676 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8677 (psym_print_stats, psym_expand_symtabs_for_function)
8678 (psym_map_symbol_filenames, psym_map_matching_symbols)
8679 (psym_expand_symtabs_matching)
8680 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8681 (maintenance_check_psymtabs): Use new methods.
8682 * psympriv.h (struct partial_symtab) <readin_p,
8683 get_compunit_symtab>: New methods.
8684 <readin, compunit_symtab>: Remove members.
8685 (struct standard_psymtab): New.
8686 (struct legacy_psymtab): Derive from standard_psymtab.
8687 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8689 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8691 2020-01-26 Tom Tromey <tom@tromey.com>
8693 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8694 read_dependencies. Add assert.
8695 * psymtab.c (partial_symtab::read_dependencies): New method.
8696 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8698 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8699 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8701 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8704 2020-01-26 Tom Tromey <tom@tromey.com>
8706 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8707 Call expand_psymtab.
8708 (xcoff_read_symtab): Call expand_psymtab.
8709 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8710 legacy_expand_psymtab.
8711 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8713 (struct legacy_psymtab) <expand_psymtab>: Implement.
8714 <legacy_expand_psymtab>: New member.
8715 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8716 (parse_partial_symbols): Set legacy_expand_psymtab.
8717 (psymtab_to_symtab_1): Change argument order. Call
8719 (new_psymtab): Set legacy_expand_psymtab.
8720 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8721 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8723 (dwarf2_psymtab::expand_psymtab): Rename from
8724 psymtab_to_symtab_1. Call expand_psymtab.
8725 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8726 (dbx_end_psymtab): Likewise.
8727 (dbx_psymtab_to_symtab_1): Change argument order. Call
8729 (dbx_read_symtab): Call expand_psymtab.
8730 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8731 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8732 (ctf_psymtab::read_symtab): Call expand_psymtab.
8734 2020-01-26 Tom Tromey <tom@tromey.com>
8736 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8737 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8739 * mdebugread.c (mdebug_read_symtab): Remove prints.
8740 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8742 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8744 2020-01-26 Tom Tromey <tom@tromey.com>
8746 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8747 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8748 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8750 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8751 * psymtab.c (psymtab_to_symtab): Call method.
8752 (dump_psymtab): Update.
8753 * psympriv.h (struct partial_symtab): Add virtual destructor.
8754 <read_symtab>: New method.
8755 (struct legacy_symtab): New.
8756 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8757 (struct pst_map) <pst>: Now a legacy_psymtab.
8758 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8759 (new_psymtab): Use legacy_psymtab.
8760 * dwarf2read.h (struct dwarf2_psymtab): New.
8761 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8762 * dwarf2read.c (dwarf2_create_include_psymtab)
8763 (dwarf2_build_include_psymtabs, create_type_unit_group)
8764 (create_partial_symtab, process_psymtab_comp_unit_reader)
8765 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8766 (set_partial_user): Use dwarf2_psymtab.
8767 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8768 (psymtab_to_symtab_1, process_full_comp_unit)
8769 (process_full_type_unit, dwarf2_ranges_read)
8770 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8771 (dwarf_decode_lines): Use dwarf2_psymtab.
8772 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8773 (add_address_entry_worker, write_one_signatured_type)
8774 (recursively_count_psymbols, recursively_write_psymbols)
8775 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8776 (write_debug_names): Likewise.
8777 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8778 <pst>: Now a legacy_psymtab.
8779 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8780 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8781 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8782 * ctfread.c (struct ctf_psymtab): New.
8783 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8785 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
8786 (create_partial_symtab): Return a ctf_psymtab.
8787 (scan_partial_symbols): Update.
8789 2020-01-26 Tom Tromey <tom@tromey.com>
8791 * xcoffread.c (xcoff_start_psymtab): Use new.
8792 * psymtab.c (partial_symtab::partial_symtab): New constructor,
8793 renamed from start_psymtab_common.
8794 * psympriv.h (struct partial_symtab): Add new constructor.
8795 (start_psymtab_common): Don't declare.
8796 * mdebugread.c (parse_partial_symbols): Use new.
8797 * dwarf2read.c (create_partial_symtab): Use new.
8798 * dbxread.c (start_psymtab): Use new.
8799 * ctfread.c (create_partial_symtab): Use new.
8801 2020-01-26 Tom Tromey <tom@tromey.com>
8803 * xcoffread.c (xcoff_end_psymtab): Use new.
8804 * psymtab.c (start_psymtab_common): Use new.
8805 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
8807 * psympriv.h (struct partial_symtab): Add parameters to
8808 constructor. Don't inline.
8809 (allocate_psymtab): Don't declare.
8810 * mdebugread.c (new_psymtab): Use new.
8811 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
8812 * dbxread.c (dbx_end_psymtab): Use new.
8814 2020-01-26 Tom Tromey <tom@tromey.com>
8816 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
8817 allocate_psymtab. Update documentation.
8818 * psymtab.c (psymtab_storage::install_psymtab): Rename from
8819 allocate_psymtab. Do not use new.
8820 (allocate_psymtab): Use new. Update.
8822 2020-01-26 Tom Tromey <tom@tromey.com>
8824 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8825 * psymtab.c (psym_print_stats): Update.
8826 * psympriv.h (struct partial_symtab) <readin,
8827 psymtabs_addrmap_supported, anonymous>: Now bool.
8828 * mdebugread.c (psymtab_to_symtab_1): Update.
8829 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
8830 (build_type_psymtabs_reader, psymtab_to_symtab_1)
8831 (process_full_comp_unit, process_full_type_unit): Update.
8832 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8833 * ctfread.c (psymtab_to_symtab): Update.
8835 2020-01-26 Tom Tromey <tom@tromey.com>
8837 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
8838 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
8839 * psymtab.c (psymtab_storage): Delete psymtabs.
8840 (psymtab_storage::allocate_psymtab): Use new.
8841 (psymtab_storage::discard_psymtab): Use delete.
8842 * psympriv.h (struct partial_symtab): Add constructor and
8845 2020-01-26 Tom Tromey <tom@tromey.com>
8847 * machoread.c: Do not include psympriv.h.
8849 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8851 * NEWS: Mention the new option and the set/show commands.
8853 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8855 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
8856 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
8857 (validate_exec_file): New variables, enums, functions.
8858 (exec_file_locate_attach, print_section_info): Style the filenames.
8859 (_initialize_exec): Install show_exec_file_mismatch_command and
8860 set_exec_file_mismatch_command.
8861 * gdbcore.h (validate_exec_file): Declare.
8862 * infcmd.c (attach_command): Call validate_exec_file.
8863 * remote.c ( remote_target::remote_add_inferior): Likewise.
8865 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8867 * frame.c (find_frame_sal): Move call to get_next_frame into more
8869 * inline-frame.c (inilne_state) <inline_state>: Update argument
8871 (inilne_state) <skipped_symbol>: Rename to...
8872 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
8873 (skip_inline_frames): Build vector of skipped symbols and use this
8874 to reate the inline_state.
8875 (inline_skipped_symbol): Add a comment and some assertions, fetch
8876 skipped symbol from the list.
8878 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8880 * buildsym.c (lte_is_less_than): Delete.
8881 (buildsym_compunit::end_symtab_with_blockvector): Create local
8882 lambda function to sort line table entries, and use
8883 std::stable_sort instead of std::sort.
8884 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
8885 markers when looking for a previous line.
8887 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8889 * dwarf2read.c (lnp_state_machine::record_line): Include
8890 end_sequence parameter in debug print out. Record the line if we
8891 are at an end_sequence marker even if it's not the start of a
8893 * symmisc.c (maintenance_print_one_line_table): Print end of
8894 sequence markers with 'END' not '0'.
8896 2020-01-24 Pedro Alves <palves@redhat.com>
8899 * thread.c (scoped_restore_current_thread::restore): Use
8900 switch_to_inferior_no_thread.
8901 * exec.c: Include "progspace-and-thread.h".
8902 (add_target_sections, remove_target_sections):
8903 scoped_restore_current_pspace_and_thread instead of
8904 scoped_restore_current_thread.
8905 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
8906 and aspace to the inferior before calling clone_program_space.
8907 Remove stale comment.
8909 2020-01-24 Christian Biesinger <cbiesinger@google.com>
8911 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
8912 (arm_netbsd_nat_target::fetch_registers): ...this.
8913 (arm_nbsd_nat_target::store_registers): Rename to...
8914 (arm_netbsd_nat_target::store_registers): ...this.
8916 2020-01-24 Christian Biesinger <cbiesinger@google.com>
8918 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8921 2020-01-24 Christian Biesinger <cbiesinger@google.com>
8923 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
8925 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
8927 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
8928 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
8929 the correct replacement (iterate_over_regset_sections).
8930 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
8933 2020-01-24 Graham Markall <graham.markall@embecosm.com>
8936 * gdb/python/python.c (execute_gdb_command): Call
8937 async_enable_stdin in catch block.
8939 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8941 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
8942 SWITCH_THRU_ALL_UIS.
8944 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8947 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
8948 comment, add extra parameter, and update to store previous symbol
8950 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
8951 add extra parameter.
8952 * tui/tui-disasm.c (tui_disassemble): Update header comment,
8953 remove unneeded parameter, add try/catch around gdb_print_insn,
8954 rewrite to add items to asm_lines vector.
8955 (tui_find_backward_disassembly_start_address): New function.
8956 (tui_find_disassembly_address): Updated throughout.
8957 (tui_disasm_window::set_contents): Update for changes to
8959 (tui_disasm_window::do_scroll_vertical): No need to adjust the
8960 number of lines to scroll.
8962 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
8964 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
8965 (SECT_OFF_DATA): Likewise.
8966 (SECT_OFF_RODATA): Likewise.
8967 (SECT_OFF_TEXT): Likewise.
8968 (SECT_OFF_BSS): Likewise.
8969 (struct objfile) <text_section_offset, data_section_offset>: New
8971 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
8972 objfile::text_section_offset.
8973 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
8974 * coffread.c (coff_symtab_read): Likewise.
8975 (enter_linenos): Likewise.
8976 (process_coff_symbol): Likewise.
8977 * ctfread.c (get_objfile_text_range): Likewise.
8978 * dtrace-probe.c (dtrace_probe::get_relocated_address):
8979 Use objfile::data_section_offset.
8980 * dwarf2-frame.c (execute_cfa_program): Use
8981 objfile::text_section_offset.
8982 (dwarf2_frame_find_fde): Likewise.
8983 * dwarf2read.c (create_addrmap_from_index): Likewise.
8984 (create_addrmap_from_aranges): Likewise.
8985 (dw2_find_pc_sect_compunit_symtab): Likewise.
8986 (process_psymtab_comp_unit_reader): Likewise.
8987 (add_partial_symbol): Likewise.
8988 (add_partial_subprogram): Likewise.
8989 (process_full_comp_unit): Likewise.
8990 (read_file_scope): Likewise.
8991 (read_func_scope): Likewise.
8992 (read_lexical_block_scope): Likewise.
8993 (read_call_site_scope): Likewise.
8994 (dwarf2_rnglists_process): Likewise.
8995 (dwarf2_ranges_process): Likewise.
8996 (dwarf2_ranges_read): Likewise.
8997 (dwarf_decode_lines_1): Likewise.
8998 (new_symbol): Likewise.
8999 (dwarf2_fetch_die_loc_sect_off): Likewise.
9000 (dwarf2_per_cu_text_offset): Likewise.
9001 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9002 * hppa-tdep.c (read_unwind_info): Likewise.
9003 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9004 * psympriv.h (struct partial_symtab): Likewise.
9005 * psymtab.c (find_pc_sect_psymtab): Likewise.
9006 * solib-svr4.c (enable_break): Likewise.
9007 * stap-probe.c (relocate_address): Use
9008 objfile::data_section_offset.
9009 * xcoffread.c (enter_line_range): Use
9010 objfile::text_section_offset.
9011 (read_xcoff_symtab): Likewise.
9013 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9015 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9016 declaration to narrower scopes.
9018 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9020 * darwin-nat.h (struct darwin_exception_msg, enum
9021 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9023 (class darwin_nat_target) <wait_1, check_new_threads,
9024 decode_exception_message, decode_message, stop_inferior,
9025 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9026 * darwin-nat.c (darwin_check_new_threads): Rename to...
9027 (darwin_nat_target::check_new_threads): ... this.
9028 (darwin_suspend_inferior_it): Remove.
9029 (darwin_decode_exception_message): Rename to...
9030 (darwin_nat_target::decode_exception_message): ... this.
9031 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9032 (darwin_decode_message): Rename to...
9033 (darwin_nat_target::decode_message): ... this.
9034 (cancel_breakpoint): Rename to...
9035 (darwin_nat_target::cancel_breakpoint): ... this.
9036 (darwin_wait): Rename to...
9037 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9038 instead of iterate_over_inferiors.
9039 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9040 (darwin_stop_inferior): Rename to...
9041 (darwin_nat_target::stop_inferior): ... this.
9042 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9043 (darwin_init_thread_list): Rename to...
9044 (darwin_nat_target::init_thread_list): ... this.
9045 (darwin_ptrace_him): Rename to...
9046 (darwin_nat_target::ptrace_him): ... this.
9047 (darwin_nat_target::create_inferior): Pass lambda function to
9049 (darwin_nat_target::detach): Call stop_inferior instead of
9050 darwin_stop_inferior.
9051 * fork-inferior.h (fork_inferior): Change init_trace_fun
9052 parameter to gdb::function_view.
9053 * fork-inferior.c (fork_inferior): Likewise.
9055 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
9057 * i386-cygwin-tdep.c (core_process_module_section): Update.
9058 * windows-nat.c (struct lm_info_windows): Add text_offset.
9059 (windows_xfer_shared_libraries): Update.
9060 * windows-tdep.c (windows_xfer_shared_library):
9061 Add text_offset_cached argument.
9062 * windows-tdep.h (windows_xfer_shared_library): Update.
9064 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9066 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9068 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9070 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9071 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9072 replace with range-based for.
9073 (gdbsim_interrupt_inferior): Remove.
9074 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9075 with a range-based for. Inline code from
9076 gdbsim_interrupt_inferior.
9078 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9080 * infrun.c (proceed): Fix indentation.
9082 2020-01-21 Tom Tromey <tromey@adacore.com>
9084 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9085 * python/python.c (python_extension_ops): Update.
9086 (gdbpy_colorize): New function.
9087 * python/lib/gdb/__init__.py (colorize): New function.
9088 * extension.h (ext_lang_colorize): Declare.
9089 * extension.c (ext_lang_colorize): New function.
9090 * extension-priv.h (struct extension_language_ops) <colorize>: New
9092 * cli/cli-style.c (_initialize_cli_style): Update help text.
9094 2020-01-21 Luis Machado <luis.machado@linaro.org>
9096 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9097 <cond>: Change type to bool.
9098 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9099 (aarch64_displaced_step_cb): Likewise.
9100 (aarch64_displaced_step_tb): Likewise.
9102 2020-01-21 Luis Machado <luis.machado@linaro.org>
9104 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9107 2020-01-21 Luis Machado <luis.machado@linaro.org>
9109 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9110 <pc_adjust>: Adjust the documentation.
9111 (aarch64_displaced_step_fixup): Check if PC really moved before
9114 2020-01-19 Tom Tromey <tom@tromey.com>
9116 * disasm.c (~gdb_disassembler): New destructor.
9117 (gdb_buffered_insn_length): Call disassemble_free_target.
9118 * disasm.h (class gdb_disassembler): Declare destructor. Use
9119 DISABLE_COPY_AND_ASSIGN.
9121 2020-01-19 Tom Tromey <tom@tromey.com>
9123 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9124 (die_reader_func_ftype): Remove.
9125 (cutu_reader): New class.
9126 (dw2_get_file_names_reader): Remove "data" parameter.
9127 (dw2_get_file_names): Use cutu_reader.
9128 (create_debug_type_hash_table): Update.
9129 (read_cutu_die_from_dwo): Update comment.
9130 (lookup_dwo_unit): Add dwo_name parameter.
9131 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9132 die_reader_func_ftype and data parameters.
9133 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9134 Remove die_reader_func_ftype and data parameters.
9135 (~cutu_reader): New; from init_cutu_and_read_dies.
9136 (cutu_reader::cutu_reader): Rename from
9137 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9138 and data parameters.
9139 (init_cutu_and_read_dies_simple): Remove.
9140 (struct process_psymtab_comp_unit_data): Remove.
9141 (process_psymtab_comp_unit_reader): Remove data parameter; add
9142 want_partial_unit and pretend_language parameters.
9143 (process_psymtab_comp_unit): Use cutu_reader.
9144 (build_type_psymtabs_reader): Remove data parameter.
9145 (build_type_psymtabs_1): Use cutu_reader.
9146 (process_skeletonless_type_unit): Likewise.
9147 (load_partial_comp_unit_reader): Remove.
9148 (load_partial_comp_unit): Use cutu_reader.
9149 (load_full_comp_unit_reader): Remove.
9150 (load_full_comp_unit): Use cutu_reader.
9151 (struct create_dwo_cu_data): Remove.
9152 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9153 dwo_unit parameters.
9154 (create_cus_hash_table): Use cutu_reader.
9155 (struct dwarf2_read_addr_index_data): Remove.
9156 (dwarf2_read_addr_index_reader): Remove.
9157 (dwarf2_read_addr_index): Use cutu_reader.
9158 (read_signatured_type_reader): Remove.
9159 (read_signatured_type): Use cutu_reader.
9161 2020-01-19 Tom Tromey <tom@tromey.com>
9163 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9164 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9165 (tui_wrefresh): Declare.
9166 * tui/tui-wingeneral.c (suppress_output): New global.
9167 (tui_suppress_output, ~tui_suppress_output): New constructor and
9169 (tui_wrefresh): New function.
9170 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9171 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9172 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9174 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9176 (tui_data_window::no_refresh): New method.
9177 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9178 (tui_reg_command): Use tui_suppress_output
9179 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9180 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9182 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9184 2020-01-19 Tom Tromey <tom@tromey.com>
9186 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9187 Handle case where symtab is null.
9189 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9191 * linux-fork.c (one_fork_p): Simplify.
9193 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9195 * top.c (struct qt_args): Remove.
9196 (kill_or_detach): Change return type to void, replace `void *`
9197 parameter with a proper one.
9198 (print_inferior_quit_action): Likewise.
9199 (quit_confirm): Use range-based for loop to iterate over inferiors.
9200 (quit_force): Likewise.
9202 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9204 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9205 `void *` parameter with proper parameters.
9206 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9207 (print_one_inferior): Change return type to void, replace `void *`
9208 parameter with proper parameters.
9209 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9211 (get_other_inferior): Remove.
9212 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9215 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9217 * mi/mi-interp.c (report_initial_inferior): Remove.
9218 (mi_interp::init): Use range-based for to iterate over inferiors.
9220 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9222 * python/py-inferior.c (build_inferior_list): Remove.
9223 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9225 2020-01-16 Christian Biesinger <cbiesinger@google.com>
9227 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9228 (btrace_stitch_trace): Likewise.
9229 * charset.c (intermediate_encoding): Likewise (vaild).
9230 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9231 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9232 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9234 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
9236 * windows-tdep.c (windows_get_tlb_type):
9237 Add rtl_user_process_parameters type.
9239 2020-01-16 Pedro Alves <palves@redhat.com>
9240 Norbert Lange <nolange79@gmail.com>
9243 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9244 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9245 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9246 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9247 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9248 (ps_plog): Redeclare exported functions with default visibility.
9250 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9252 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9253 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9255 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
9257 * infcmd.c (post_create_inferior): Use get_thread_regcache
9258 instead of get_current_regcache.
9260 2020-01-14 Tom Tromey <tom@tromey.com>
9263 * python/python.c (gdbpy_decode_line): Treat empty string the same
9266 2020-01-14 Tom Tromey <tom@tromey.com>
9268 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9270 2020-01-14 Tom Tromey <tom@tromey.com>
9272 * nat/linux-btrace.c: Don't include <config.h>.
9273 * nat/linux-ptrace.c: Don't include <config.h>.
9274 * nat/x86-linux-dregs.c: Don't include <config.h>.
9276 2020-01-14 Tom Tromey <tom@tromey.com>
9278 * configure: Rebuild.
9279 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9281 2020-01-14 Tom Tromey <tom@tromey.com>
9283 * nat/x86-linux-dregs.c: Include configh.h.
9284 * nat/linux-ptrace.c: Include configh.h.
9285 * nat/linux-btrace.c: Include configh.h.
9286 * defs.h: Include config.h, bfd.h.
9287 * configure.ac: Don't source common.host.
9288 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9289 * configure: Rebuild.
9290 * acinclude.m4: Update path.
9291 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9292 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9293 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9294 (CLIBS): Add LIBSUPPORT.
9296 (COMMON_SFILES): Remove gdbsupport files.
9297 (HFILES_NO_SRCDIR): Likewise.
9298 (stamp-version): Update path to create-version.sh.
9299 (ALLDEPFILES): Remove gdbsupport files.
9301 2020-01-14 Tom Tromey <tom@tromey.com>
9303 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9304 USE_WIN32API when needed.
9305 * configure.ac (USE_WIN32API): Don't define.
9306 (WIN32LIBS): Use WIN32APILIBS.
9307 * configure: Rebuild.
9309 2020-01-14 Tom Tromey <tom@tromey.com>
9311 * configure: Rebuild.
9312 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9314 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9316 * skip.c (skip_function_command): Make skip w/o arguments use the
9317 name of the inlined function if pc is inside any inlined function.
9319 2020-01-14 Luis Machado <luis.machado@linaro.org>
9321 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9322 * infrun.c (resume_1): Likewise.
9323 (handle_inferior_event): Remove stale comment.
9324 * linux-nat.c (linux_nat_target::resume): Update comments.
9325 (save_stop_reason): Likewise.
9326 (linux_nat_filter_event): Likewise.
9327 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9329 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9331 * elfread.c (record_minimal_symbol): Set section index to 0 for
9332 non-allocatable sections.
9335 2020-01-13 Ali Tamur <tamur@google.com>
9337 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9338 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9339 to gdb::optional. Update comments.
9340 (dwo_file): Update comments.
9341 (read_attribute): Update API to take an additional out parameter,
9342 need_reprocess. This is used to mark attributes that need other
9343 attributes (e.g. str_offsets_base) for correct computation which may not
9345 (read_attribute_reprocess): New function declaration.
9346 (read_addr_index): Likewise.
9347 (read_dwo_str_index): Likewise.
9348 (read_stub_str_index): Likewise.
9349 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9350 (lookup_addr_base): New function definition.
9351 (lookup_ranges_base): Likewise.
9352 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9354 (init_cutu_and_read_dies): Update comments.
9355 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9356 unit. This is used to inherit parent's str_offsets_base and addr_base.
9358 (init_cutu_and_read_dies_simple): Reflect API changes.
9359 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9360 (create_cus_hash_table): Change API to take parent compile unit.
9361 Reflect API changes.
9362 (open_and_init_dwo_file): Reflect API changes.
9363 (dwarf2_get_pc_bounds): Update comments.
9364 (dwarf2_record_block_ranges): Likewise.
9365 (read_full_die_1): Change implementation to reprocess attributes that
9366 need str_offsets_base and addr_base.
9367 (partial_die_info::read): Likewise.
9368 (read_attribute_reprocess): New function definition.
9369 (read_attribute_value): Change API to take an additional out parameter,
9370 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9371 when a non-dwo compile unit has index based attributes.
9372 (read_attribute): Reflect API changes.
9373 (read_addr_index_1): Reflect API changes. Update comments.
9374 (dwarf2_read_addr_index_data): Reflect API changes.
9375 (dwarf2_read_addr_index): Likewise.
9376 (read_str_index): Change API and implementation. This becomes a helper
9377 to be used by the new string index related methods. Update error
9378 message and comments.
9379 (read_dwo_str_index): New function definition.
9380 (read_stub_str_index): Likewise.
9381 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9382 * symfile.h (dwarf2_debug_sections): Likewise.
9383 * xcoffread.c (dwarf2_debug_sections): Likewise.
9385 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
9387 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9388 core_reg_sect type to gdb_byte *.
9389 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9390 * cris-tdep.c (fetch_core_registers): Likewise.
9391 * corelow.c (core_target::get_core_register_section): Change
9392 type of `contents` to gdb::byte_vector.
9394 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9396 * tui/tui-wingeneral.c (box_win): Position the title in the center
9399 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9401 * corelow.c (core_target::get_core_register_section): Use
9402 std::vector instead of alloca.
9404 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
9406 * warning.m4: Add -Wmissing-declarations to build_warnings.
9407 * configure: Re-generate.
9409 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
9411 * python/python.c (init__gdb_module): Add declaration.
9413 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
9415 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9416 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9417 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9418 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9419 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9420 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9421 * ada-exp.y (_initialize_ada_exp): Add declaration.
9422 * ada-lang.c (_initialize_ada_language): Add declaration.
9423 * ada-tasks.c (_initialize_tasks): Add declaration.
9424 * agent.c (_initialize_agent): Add declaration.
9425 * aix-thread.c (_initialize_aix_thread): Add declaration.
9426 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9427 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9428 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9429 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9430 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9431 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9432 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9433 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9434 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9435 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9436 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9437 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9438 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9439 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9440 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9441 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9442 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9443 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9444 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9445 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9446 * annotate.c (_initialize_annotate): Add declaration.
9447 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9448 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9449 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9450 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9451 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9452 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9453 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9454 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9455 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9456 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9457 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9458 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9459 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9460 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9461 * auto-load.c (_initialize_auto_load): Add declaration.
9462 * auxv.c (_initialize_auxv): Add declaration.
9463 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9464 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9465 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9466 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9467 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9468 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9469 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9470 * breakpoint.c (_initialize_breakpoint): Add declaration.
9471 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9472 * btrace.c (_initialize_btrace): Add declaration.
9473 * charset.c (_initialize_charset): Add declaration.
9474 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9475 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9476 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9477 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9478 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9479 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9480 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9481 * coffread.c (_initialize_coffread): Add declaration.
9482 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9483 * compile/compile.c (_initialize_compile): Add declaration.
9484 * complaints.c (_initialize_complaints): Add declaration.
9485 * completer.c (_initialize_completer): Add declaration.
9486 * copying.c (_initialize_copying): Add declaration.
9487 * corefile.c (_initialize_core): Add declaration.
9488 * corelow.c (_initialize_corelow): Add declaration.
9489 * cp-abi.c (_initialize_cp_abi): Add declaration.
9490 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9491 * cp-support.c (_initialize_cp_support): Add declaration.
9492 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9493 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9494 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9495 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9496 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9497 * ctfread.c (_initialize_ctfread): Add declaration.
9498 * d-lang.c (_initialize_d_language): Add declaration.
9499 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9500 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9501 * dbxread.c (_initialize_dbxread): Add declaration.
9502 * dcache.c (_initialize_dcache): Add declaration.
9503 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9504 * disasm.c (_initialize_disasm): Add declaration.
9505 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9506 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9507 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9508 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9509 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9510 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9511 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9512 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9513 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9514 * elfread.c (_initialize_elfread): Add declaration.
9515 * exec.c (_initialize_exec): Add declaration.
9516 * extension.c (_initialize_extension): Add declaration.
9517 * f-lang.c (_initialize_f_language): Add declaration.
9518 * f-valprint.c (_initialize_f_valprint): Add declaration.
9519 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9520 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9521 * filesystem.c (_initialize_filesystem): Add declaration.
9522 * findcmd.c (_initialize_mem_search): Add declaration.
9523 * findvar.c (_initialize_findvar): Add declaration.
9524 * fork-child.c (_initialize_fork_child): Add declaration.
9525 * frame-base.c (_initialize_frame_base): Add declaration.
9526 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9527 * frame.c (_initialize_frame): Add declaration.
9528 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9529 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9530 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9531 * gcore.c (_initialize_gcore): Add declaration.
9532 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9533 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9534 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9535 * gdbarch.c (_initialize_gdbarch): Add declaration.
9536 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9537 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9538 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9539 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9540 * go-lang.c (_initialize_go_language): Add declaration.
9541 * go32-nat.c (_initialize_go32_nat): Add declaration.
9542 * guile/guile.c (_initialize_guile): Add declaration.
9543 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9544 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9545 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9546 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9547 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9548 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9549 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9550 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9551 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9552 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9553 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9554 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9555 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9556 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9557 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9558 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9559 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9560 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9561 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9562 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9563 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9564 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9565 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9566 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9567 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9568 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9569 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9570 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9571 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9572 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9573 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9574 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9575 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9576 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9577 * infcall.c (_initialize_infcall): Add declaration.
9578 * infcmd.c (_initialize_infcmd): Add declaration.
9579 * inflow.c (_initialize_inflow): Add declaration.
9580 * infrun.c (_initialize_infrun): Add declaration.
9581 * interps.c (_initialize_interpreter): Add declaration.
9582 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9583 * jit.c (_initialize_jit): Add declaration.
9584 * language.c (_initialize_language): Add declaration.
9585 * linux-fork.c (_initialize_linux_fork): Add declaration.
9586 * linux-nat.c (_initialize_linux_nat): Add declaration.
9587 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9588 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9589 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9590 * m2-lang.c (_initialize_m2_language): Add declaration.
9591 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9592 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9593 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9594 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9595 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9596 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9597 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9598 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9599 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9600 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9601 * machoread.c (_initialize_machoread): Add declaration.
9602 * macrocmd.c (_initialize_macrocmd): Add declaration.
9603 * macroscope.c (_initialize_macroscope): Add declaration.
9604 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9605 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9606 * maint.c (_initialize_maint_cmds): Add declaration.
9607 * mdebugread.c (_initialize_mdebugread): Add declaration.
9608 * memattr.c (_initialize_mem): Add declaration.
9609 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9610 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9611 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9612 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9613 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9614 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9615 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9616 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9617 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9618 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9619 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9620 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9621 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9622 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9623 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9624 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9625 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9626 * mipsread.c (_initialize_mipsread): Add declaration.
9627 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9628 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9629 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9630 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9631 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9632 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9633 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9634 * nto-procfs.c (_initialize_procfs): Add declaration.
9635 * objc-lang.c (_initialize_objc_language): Add declaration.
9636 * observable.c (_initialize_observer): Add declaration.
9637 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9638 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9639 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9640 * osabi.c (_initialize_gdb_osabi): Add declaration.
9641 * osdata.c (_initialize_osdata): Add declaration.
9642 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9643 * parse.c (_initialize_parse): Add declaration.
9644 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9645 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9646 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9647 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9648 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9649 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9650 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9651 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9652 * printcmd.c (_initialize_printcmd): Add declaration.
9653 * probe.c (_initialize_probe): Add declaration.
9654 * proc-api.c (_initialize_proc_api): Add declaration.
9655 * proc-events.c (_initialize_proc_events): Add declaration.
9656 * proc-service.c (_initialize_proc_service): Add declaration.
9657 * procfs.c (_initialize_procfs): Add declaration.
9658 * producer.c (_initialize_producer): Add declaration.
9659 * psymtab.c (_initialize_psymtab): Add declaration.
9660 * python/python.c (_initialize_python): Add declaration.
9661 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9662 * record-btrace.c (_initialize_record_btrace): Add declaration.
9663 * record-full.c (_initialize_record_full): Add declaration.
9664 * record.c (_initialize_record): Add declaration.
9665 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9666 * regcache.c (_initialize_regcache): Add declaration.
9667 * reggroups.c (_initialize_reggroup): Add declaration.
9668 * remote-notif.c (_initialize_notif): Add declaration.
9669 * remote-sim.c (_initialize_remote_sim): Add declaration.
9670 * remote.c (_initialize_remote): Add declaration.
9671 * reverse.c (_initialize_reverse): Add declaration.
9672 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9673 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9674 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9675 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9676 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9677 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9678 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9679 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9681 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9682 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9683 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9684 * rust-exp.y (_initialize_rust_exp): Add declaration.
9685 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9686 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9687 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9688 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9689 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9690 * score-tdep.c (_initialize_score_tdep): Add declaration.
9691 * ser-go32.c (_initialize_ser_dos): Add declaration.
9692 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9693 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9694 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9695 * ser-uds.c (_initialize_ser_socket): Add declaration.
9696 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9697 * serial.c (_initialize_serial): Add declaration.
9698 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9699 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9700 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9701 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9702 * skip.c (_initialize_step_skip): Add declaration.
9703 * sol-thread.c (_initialize_sol_thread): Add declaration.
9704 * solib-aix.c (_initialize_solib_aix): Add declaration.
9705 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9706 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9707 * solib-frv.c (_initialize_frv_solib): Add declaration.
9708 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9709 * solib-target.c (_initialize_solib_target): Add declaration.
9710 * solib.c (_initialize_solib): Add declaration.
9711 * source-cache.c (_initialize_source_cache): Add declaration.
9712 * source.c (_initialize_source): Add declaration.
9713 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9714 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9715 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9716 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9717 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9718 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9719 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9720 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9721 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9722 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9723 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9724 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9725 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9726 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9727 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9728 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9729 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9730 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9731 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9732 * stabsread.c (_initialize_stabsread): Add declaration.
9733 * stack.c (_initialize_stack): Add declaration.
9734 * stap-probe.c (_initialize_stap_probe): Add declaration.
9735 * std-regs.c (_initialize_frame_reg): Add declaration.
9736 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9737 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9738 * symfile.c (_initialize_symfile): Add declaration.
9739 * symmisc.c (_initialize_symmisc): Add declaration.
9740 * symtab.c (_initialize_symtab): Add declaration.
9741 * target.c (_initialize_target): Add declaration.
9742 * target-connection.c (_initialize_target_connection): Add
9744 * target-dcache.c (_initialize_target_dcache): Add declaration.
9745 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9746 * thread.c (_initialize_thread): Add declaration.
9747 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9748 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9749 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9750 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9751 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9752 * tracectf.c (_initialize_ctf): Add declaration.
9753 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9754 * tracefile.c (_initialize_tracefile): Add declaration.
9755 * tracepoint.c (_initialize_tracepoint): Add declaration.
9756 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9757 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9758 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9759 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9760 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9761 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9762 * tui/tui.c (_initialize_tui): Add declaration.
9763 * typeprint.c (_initialize_typeprint): Add declaration.
9764 * ui-style.c (_initialize_ui_style): Add declaration.
9765 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9766 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9767 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9768 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9769 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9770 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9771 * unittests/filtered_iterator-selftests.c
9772 (_initialize_filtered_iterator_selftests): Add declaration.
9773 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9774 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9775 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9776 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9777 * unittests/main-thread-selftests.c
9778 (_initialize_main_thread_selftests): Add declaration.
9779 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9780 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9781 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9782 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9783 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9784 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9785 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
9786 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
9787 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
9788 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
9789 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
9790 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
9791 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
9792 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
9793 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
9795 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
9796 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
9797 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
9798 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
9799 * user-regs.c (_initialize_user_regs): Add declaration.
9800 * utils.c (_initialize_utils): Add declaration.
9801 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
9802 * valops.c (_initialize_valops): Add declaration.
9803 * valprint.c (_initialize_valprint): Add declaration.
9804 * value.c (_initialize_values): Add declaration.
9805 * varobj.c (_initialize_varobj): Add declaration.
9806 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
9807 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
9808 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
9809 * windows-nat.c (_initialize_windows_nat): Add declaration.
9810 (_initialize_check_for_gdb_ini): Add declaration.
9811 (_initialize_loadable): Add declaration.
9812 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
9813 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
9814 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
9815 * xcoffread.c (_initialize_xcoffread): Add declaration.
9816 * xml-support.c (_initialize_xml_support): Add declaration.
9817 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
9818 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
9819 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
9820 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
9822 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9824 * regformats/regdat.sh: Generate declaration for init function.
9826 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9828 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
9830 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
9831 close_one_inferior>: New methods.
9832 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
9833 pass down target to find_inferior_pid.
9834 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
9835 Pass down target to find_inferior_ptid.
9836 (gdbsim_target::create_inferior): Pass down target to
9838 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
9839 target down to find_inferior_ptid and switch_to_thread.
9840 (gdbsim_target::close): Update to call close_one_inferior.
9841 (struct resume_data): Remove.
9842 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
9843 directly, rather than through a void pointer.
9844 (gdbsim_target::resume): Update to call resume_one_inferior.
9846 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
9848 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
9850 2020-01-12 Pedro Alves <palves@redhat.com>
9852 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
9853 directly for the current inferior instead of
9854 discard_all_inferiors.
9855 (discard_all_inferiors): Delete.
9857 2020-01-11 Tom Tromey <tom@tromey.com>
9859 * tui/tui-wingeneral.c (box_win): Check cli_styling.
9860 * tui/tui-winsource.c (tui_source_window_base::refill): Use
9861 deprecated_safe_get_selected_frame.
9863 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9865 * inferior.c (print_inferior): Switch inferior before printing it.
9867 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
9868 Pedro Alves <palves@redhat.com>
9870 * progspace-and-thread.c (switch_to_program_space_and_thread):
9871 Assert there's an inferior for PSPACE. Use
9872 switch_to_inferior_no_thread to switch the inferior too.
9873 * progspace.c (program_space::~program_space): Call
9874 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
9875 (program_space::free_all_objfiles): Don't call clear_symtab_users
9877 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
9879 2020-01-10 Pedro Alves <palves@redhat.com>
9881 * NEWS: Mention multi-target debugging, "info connections", and
9882 "add-inferior -no-connection".
9884 2020-01-10 Pedro Alves <palves@redhat.com>
9886 * infrun.c: Include "target-connection.h".
9887 (check_multi_target_resumption): New.
9889 * target-connection.c (make_target_connection_string): Make
9891 * target-connection.h (make_target_connection_string): Declare.
9893 2020-01-10 Pedro Alves <palves@redhat.com>
9895 * Makefile.in (COMMON_SFILES): Add target-connection.c.
9896 * inferior.c (uiout_field_connection): New function.
9897 (print_inferior): Add new "connection-id" column.
9898 (add_inferior_command): Show connection number/string of added
9900 * process-stratum-target.h
9901 (process_stratum_target::connection_string): New virtual method.
9902 (process_stratum_target::connection_number): New field.
9903 * remote.c (remote_target::connection_string): New override.
9904 * target-connection.c: New file.
9905 * target-connection.h: New file.
9906 * target.c (decref_target): Remove process_stratum targets from
9907 the connection list.
9908 (target_stack::push): Add process_stratum targets to the
9911 2020-01-10 Pedro Alves <palves@redhat.com>
9914 2016-04-12 Pedro Alves <palves@redhat.com>
9915 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
9916 Remove references to name.
9917 * serial.h (struct serial) <name>: Delete.
9919 2020-01-10 Pedro Alves <palves@redhat.com>
9921 * gdbarch-selftests.c (register_to_value_test): Remove "target
9922 already pushed" check.
9924 2020-01-10 Pedro Alves <palves@redhat.com>
9925 John Baldwin <jhb@FreeBSD.org>
9927 * aarch64-linux-nat.c
9928 (aarch64_linux_nat_target::thread_architecture): Adjust.
9929 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
9930 (task_command_1): Likewise.
9931 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
9932 (aix_thread_target::wait, aix_thread_target::fetch_registers)
9933 (aix_thread_target::store_registers)
9934 (aix_thread_target::thread_alive): Adjust.
9935 * amd64-fbsd-tdep.c: Include "inferior.h".
9936 (amd64fbsd_get_thread_local_address): Pass down target.
9937 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
9938 thread's gdbarch instead of target_gdbarch.
9939 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
9940 get_last_target_status.
9941 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
9942 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
9944 (update_inserted_breakpoint_locations): Skip if inferiors with no
9946 (update_global_location_list): When handling moribund locations,
9947 find representative inferior for location's pspace, and use thread
9948 count of its process_stratum target.
9949 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
9950 * bsd-uthread.c (bsd_uthread_target::wait): Use
9951 as_process_stratum_target and adjust thread_change_ptid and
9953 (bsd_uthread_target::update_thread_list): Use
9954 as_process_stratum_target and adjust find_thread_ptid,
9955 thread_change_ptid and add_thread calls.
9956 * btrace.c (maint_btrace_packet_history_cmd): Adjust
9957 find_thread_ptid call.
9958 * corelow.c (add_to_thread_list): Adjust add_thread call.
9959 (core_target_open): Adjust add_thread_silent and thread_count
9961 (core_target::pid_to_str): Adjust find_inferior_ptid call.
9962 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
9963 * event-top.c (async_disconnect): Pop targets from all inferiors.
9964 * exec.c (add_target_sections): Push exec target on all inferiors
9965 sharing the program space.
9966 (remove_target_sections): Remove the exec target from all
9967 inferiors sharing the program space.
9968 (exec_on_vfork): New.
9969 * exec.h (exec_on_vfork): Declare.
9970 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
9972 (fbsd_nat_target::update_thread_list): Adjust.
9973 (fbsd_nat_target::resume): Adjust.
9974 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
9976 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
9977 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
9978 get_thread_arch_regcache call.
9979 * fork-child.c (gdb_startup_inferior): Pass target down to
9980 startup_inferior and set_executing.
9981 * gdbthread.h (struct process_stratum_target): Forward declare.
9982 (add_thread, add_thread_silent, add_thread_with_info)
9983 (in_thread_list): Add process_stratum_target parameter.
9984 (find_thread_ptid(inferior*, ptid_t)): New overload.
9985 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
9987 (all_threads()): Delete overload.
9988 (all_threads, all_non_exited_threads): Add process_stratum_target
9990 (all_threads_safe): Use brace initialization.
9991 (thread_count): Add process_stratum_target parameter.
9992 (set_resumed, set_running, set_stop_requested, set_executing)
9993 (threads_are_executing, finish_thread_state): Add
9994 process_stratum_target parameter.
9995 (switch_to_thread): Use is_current_thread.
9996 * i386-fbsd-tdep.c: Include "inferior.h".
9997 (i386fbsd_get_thread_local_address): Pass down target.
9998 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
9999 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10000 have_inferiors check.
10001 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10002 (inf_ptrace_target::attach): Adjust.
10003 * infcall.c (run_inferior_call): Adjust.
10004 * infcmd.c (run_command_1): Pass target to
10005 scoped_finish_thread_state.
10006 (proceed_thread_callback): Skip inferiors with no execution.
10007 (continue_command): Rename 'all_threads' local to avoid hiding
10008 'all_threads' function. Adjust get_last_target_status call.
10009 (prepare_one_step): Adjust set_running call.
10010 (signal_command): Use user_visible_resume_target. Compare thread
10011 pointers instead of inferior_ptid.
10012 (info_program_command): Adjust to pass down target.
10013 (attach_command): Mark target's 'thread_executing' flag.
10014 (stop_current_target_threads_ns): New, factored out from ...
10015 (interrupt_target_1): ... this. Switch inferior before making
10018 (struct all_inferiors_iterator, struct all_inferiors_range)
10019 (struct all_inferiors_safe_range)
10020 (struct all_non_exited_inferiors_range): Filter on
10021 process_stratum_target too. Remove explicit.
10022 * inferior.c (inferior::inferior): Push dummy target on target
10024 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10025 Add process_stratum_target parameter, and pass it down.
10026 (have_live_inferiors): Adjust.
10027 (switch_to_inferior_and_push_target): New.
10028 (add_inferior_command, clone_inferior_command): Handle
10029 "-no-connection" parameter. Use
10030 switch_to_inferior_and_push_target.
10031 (_initialize_inferior): Mention "-no-connection" option in
10032 the help of "add-inferior" and "clone-inferior" commands.
10033 * inferior.h: Include "process-stratum-target.h".
10034 (interrupt_target_1): Use bool.
10035 (struct inferior) <push_target, unpush_target, target_is_pushed,
10036 find_target_beneath, top_target, process_target, target_at,
10038 (discard_all_inferiors): Delete.
10039 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10040 (all_inferiors, all_non_exited_inferiors): Add
10041 process_stratum_target parameter.
10042 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10043 (target_last_proc_target): New global.
10044 (follow_fork_inferior): Push target on new inferior. Pass target
10045 to add_thread_silent. Call exec_on_vfork. Handle target's
10047 (follow_fork): Adjust get_last_target_status call. Also consider
10049 (follow_exec): Push target on new inferior.
10050 (struct execution_control_state) <target>: New field.
10051 (user_visible_resume_target): New.
10052 (do_target_resume): Call target_async.
10053 (resume_1): Set target's threads_executing flag. Consider resume
10055 (commit_resume_all_targets): New.
10056 (proceed): Also consider resume target. Skip threads of inferiors
10057 with no execution. Commit resumtion in all targets.
10058 (start_remote): Pass current inferior to wait_for_inferior.
10059 (infrun_thread_stop_requested): Consider target as well. Pass
10060 thread_info pointer to clear_inline_frame_state instead of ptid.
10061 (infrun_thread_thread_exit): Consider target as well.
10062 (random_pending_event_thread): New inferior parameter. Use it.
10063 (do_target_wait): Rename to ...
10064 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10066 (threads_are_resumed_pending_p, do_target_wait): New.
10067 (prepare_for_detach): Adjust calls.
10068 (wait_for_inferior): New inferior parameter. Handle it. Use
10069 do_target_wait_1 instead of do_target_wait.
10070 (fetch_inferior_event): Adjust. Switch to representative
10071 inferior. Pass target down.
10072 (set_last_target_status): Add process_stratum_target parameter.
10073 Save target in global.
10074 (get_last_target_status): Add process_stratum_target parameter and
10076 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10077 (context_switch): Check inferior_ptid == null_ptid before calling
10079 (get_inferior_stop_soon): Pass down target.
10080 (wait_one): Rename to ...
10081 (poll_one_curr_target): ... this.
10082 (struct wait_one_event): New.
10084 (stop_all_threads): Adjust.
10085 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10087 (switch_back_to_stepped_thread): Also consider target.
10088 (print_stop_event): Update.
10089 (normal_stop): Update. Also consider the resume target.
10090 * infrun.h (wait_for_inferior): Remove declaration.
10091 (user_visible_resume_target): New declaration.
10092 (get_last_target_status, set_last_target_status): New
10093 process_stratum_target parameter.
10094 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10095 process_stratum_target parameter, and use it.
10096 (clear_inline_frame_state (thread_info*)): New.
10097 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10098 process_stratum_target parameter.
10099 (clear_inline_frame_state (thread_info*)): Declare.
10100 * linux-fork.c (delete_checkpoint_command): Pass target down to
10102 (checkpoint_command): Adjust.
10103 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10104 instead of just tweaking inferior_ptid.
10105 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10106 (exit_lwp): Pass target down to find_thread_ptid.
10107 (attach_proc_task_lwp_callback): Pass target down to
10108 add_thread/set_running/set_executing.
10109 (linux_nat_target::attach): Pass target down to
10110 thread_change_ptid.
10111 (get_detach_signal): Pass target down to find_thread_ptid.
10112 Consider last target status's target.
10113 (linux_resume_one_lwp_throw, resume_lwp)
10114 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10115 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10116 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10117 (linux_nat_target::async_wait_fd): New.
10118 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10120 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10121 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10122 * linux-thread-db.c (struct thread_db_info::process_target): New
10124 (add_thread_db_info): Save target.
10125 (get_thread_db_info): New process_stratum_target parameter. Also
10127 (delete_thread_db_info): New process_stratum_target parameter.
10129 (thread_from_lwp): Adjust to pass down target.
10130 (thread_db_notice_clone): Pass down target.
10131 (check_thread_db_callback): Pass down target.
10132 (try_thread_db_load_1): Always push the thread_db target.
10133 (try_thread_db_load, record_thread): Pass target down.
10134 (thread_db_target::detach): Pass target down. Always unpush the
10136 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10137 target down. Always unpush the thread_db target.
10138 (find_new_threads_callback, thread_db_find_new_threads_2)
10139 (thread_db_target::update_thread_list): Pass target down.
10140 (thread_db_target::pid_to_str): Pass current inferior down.
10141 (thread_db_target::get_thread_local_address): Pass target down.
10142 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10144 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10145 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10146 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10147 (procfs_init_inferior): Rename to ...
10148 (procfs_target::procfs_init_inferior): ... this and adjust.
10149 (procfs_target::create_inferior, procfs_notice_thread)
10150 (procfs_do_thread_registers): Adjust.
10151 * ppc-fbsd-tdep.c: Include "inferior.h".
10152 (ppcfbsd_get_thread_local_address): Pass down target.
10153 * proc-service.c (ps_xfer_memory): Switch current inferior and
10154 program space as well.
10155 (get_ps_regcache): Pass target down.
10156 * process-stratum-target.c
10157 (process_stratum_target::thread_address_space)
10158 (process_stratum_target::thread_architecture): Pass target down.
10159 * process-stratum-target.h
10160 (process_stratum_target::threads_executing): New field.
10161 (as_process_stratum_target): New.
10162 * ravenscar-thread.c
10163 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10164 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10166 * record-btrace.c (record_btrace_target::info_record): Adjust.
10167 (record_btrace_target::record_method)
10168 (record_btrace_target::record_is_replaying)
10169 (record_btrace_target::fetch_registers)
10170 (get_thread_current_frame_id, record_btrace_target::resume)
10171 (record_btrace_target::wait, record_btrace_target::stop): Pass
10173 * record-full.c (record_full_wait_1): Switch to event thread.
10175 * regcache.c (regcache::regcache)
10176 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10177 process_stratum_target parameter and handle it.
10178 (current_thread_target): New global.
10179 (get_thread_regcache): Add process_stratum_target parameter and
10180 handle it. Switch inferior before calling target method.
10181 (get_thread_regcache): Pass target down.
10182 (get_thread_regcache_for_ptid): Pass target down.
10183 (registers_changed_ptid): Add process_stratum_target parameter and
10185 (registers_changed_thread, registers_changed): Pass target down.
10186 (test_get_thread_arch_aspace_regcache): New.
10187 (current_regcache_test): Define a couple local test_target_ops
10188 instances and use them for testing.
10189 (readwrite_regcache): Pass process_stratum_target parameter.
10190 (cooked_read_test, cooked_write_test): Pass mock_target down.
10191 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10192 (get_thread_arch_aspace_regcache): Add process_stratum_target
10194 (regcache::target): New method.
10195 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10196 (regcache::registers_changed_ptid): Add process_stratum_target
10198 (regcache::m_target): New field.
10199 (registers_changed_ptid): Add process_stratum_target parameter.
10200 * remote.c (remote_state::supports_vCont_probed): New field.
10201 (remote_target::async_wait_fd): New method.
10202 (remote_unpush_and_throw): Add remote_target parameter.
10203 (get_current_remote_target): Adjust.
10204 (remote_target::remote_add_inferior): Push target.
10205 (remote_target::remote_add_thread)
10206 (remote_target::remote_notice_new_inferior)
10207 (get_remote_thread_info): Pass target down.
10208 (remote_target::update_thread_list): Skip threads of inferiors
10209 bound to other targets. (remote_target::close): Don't discard
10210 inferiors. (remote_target::add_current_inferior_and_thread)
10211 (remote_target::process_initial_stop_replies)
10212 (remote_target::start_remote)
10213 (remote_target::remote_serial_quit_handler): Pass down target.
10214 (remote_target::remote_unpush_target): New remote_target
10215 parameter. Unpush the target from all inferiors.
10216 (remote_target::remote_unpush_and_throw): New remote_target
10217 parameter. Pass it down.
10218 (remote_target::open_1): Check whether the current inferior has
10219 execution instead of checking whether any inferior is live. Pass
10221 (remote_target::remote_detach_1): Pass down target. Use
10222 remote_unpush_target.
10223 (extended_remote_target::attach): Pass down target.
10224 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10225 (remote_target::append_resumption): Pass down target.
10226 (remote_target::append_pending_thread_resumptions)
10227 (remote_target::remote_resume_with_hc, remote_target::resume)
10228 (remote_target::commit_resume): Pass down target.
10229 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10230 (remote_target::interrupt_query)
10231 (remote_target::remove_new_fork_children)
10232 (remote_target::check_pending_events_prevent_wildcard_vcont)
10233 (remote_target::remote_parse_stop_reply)
10234 (remote_target::process_stop_reply): Pass down target.
10235 (first_remote_resumed_thread): New remote_target parameter. Pass
10237 (remote_target::wait_as): Pass down target.
10238 (unpush_and_perror): New remote_target parameter. Pass it down.
10239 (remote_target::readchar, remote_target::remote_serial_write)
10240 (remote_target::getpkt_or_notif_sane_1)
10241 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10243 (remote_target::mourn_inferior): Pass down target. Use
10244 remote_unpush_target.
10245 (remote_target::core_of_thread)
10246 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10247 (remote_target::pid_to_exec_file)
10248 (remote_target::thread_handle_to_thread_info): Pass down target.
10249 (remote_target::async_wait_fd): New.
10250 * riscv-fbsd-tdep.c: Include "inferior.h".
10251 (riscv_fbsd_get_thread_local_address): Pass down target.
10252 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10253 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10254 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10256 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10257 * solib-svr4.c (enable_break): Pass down target.
10258 * spu-multiarch.c (parse_spufs_run): Pass down target.
10259 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10260 * target-delegates.c: Regenerate.
10261 * target.c (g_target_stack): Delete.
10262 (current_top_target): Return the current inferior's top target.
10263 (target_has_execution_1): Refer to the passed-in inferior's top
10265 (target_supports_terminal_ours): Check whether the initial
10266 inferior was already created.
10267 (decref_target): New.
10268 (target_stack::push): Incref/decref the target.
10269 (push_target, push_target, unpush_target): Adjust.
10270 (target_stack::unpush): Defref target.
10271 (target_is_pushed): Return bool. Adjust to refer to the current
10272 inferior's target stack.
10273 (dispose_inferior): Delete, and inline parts ...
10274 (target_preopen): ... here. Only dispose of the current inferior.
10275 (target_detach): Hold strong target reference while detaching.
10277 (target_thread_name): Add assertion.
10278 (target_resume): Pass down target.
10279 (target_ops::beneath, find_target_at): Adjust to refer to the
10280 current inferior's target stack.
10281 (get_dummy_target): New.
10282 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10283 has a thread running.
10284 (initialize_targets): Rename to ...
10285 (_initialize_target): ... this.
10286 * target.h: Include "gdbsupport/refcounted-object.h".
10287 (struct target_ops): Inherit refcounted_object.
10288 (target_ops::shortname, target_ops::longname): Make const.
10289 (target_ops::async_wait_fd): New method.
10290 (decref_target): Declare.
10291 (struct target_ops_ref_policy): New.
10292 (target_ops_ref): New typedef.
10293 (get_dummy_target): Declare function.
10294 (target_is_pushed): Return bool.
10295 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10296 (all_matching_threads_iterator::all_matching_threads_iterator):
10297 Handle filter target.
10298 * thread-iter.h (struct all_matching_threads_iterator, struct
10299 all_matching_threads_range, class all_non_exited_threads_range):
10300 Filter by target too. Remove explicit.
10301 * thread.c (threads_executing): Delete.
10302 (inferior_thread): Pass down current inferior.
10303 (clear_thread_inferior_resources): Pass down thread pointer
10305 (add_thread_silent, add_thread_with_info, add_thread): Add
10306 process_stratum_target parameter. Use it for thread and inferior
10308 (is_current_thread): New.
10309 (thread_info::deletable): Use it.
10310 (find_thread_ptid, thread_count, in_thread_list)
10311 (thread_change_ptid, set_resumed, set_running): New
10312 process_stratum_target parameter. Pass it down.
10313 (set_executing): New process_stratum_target parameter. Pass it
10314 down. Adjust reference to 'threads_executing'.
10315 (threads_are_executing): New process_stratum_target parameter.
10316 Adjust reference to 'threads_executing'.
10317 (set_stop_requested, finish_thread_state): New
10318 process_stratum_target parameter. Pass it down.
10319 (switch_to_thread): Also match inferior.
10320 (switch_to_thread): New process_stratum_target parameter. Pass it
10322 (update_threads_executing): Reimplement.
10323 * top.c (quit_force): Pop targets from all inferior.
10324 (gdb_init): Don't call initialize_targets.
10325 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10327 (windows_add_thread, windows_delete_thread): Adjust.
10328 (get_windows_debug_event): Rename to ...
10329 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10330 * tracefile-tfile.c (tfile_target_open): Pass down target.
10331 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10333 (switch_to_thread): Add process_stratum_target parameter.
10334 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10336 (mi_on_resume): Pass target down.
10337 * nat/fork-inferior.c (startup_inferior): Add
10338 process_stratum_target parameter. Pass it down.
10339 * nat/fork-inferior.h (startup_inferior): Add
10340 process_stratum_target parameter.
10341 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10343 2020-01-10 Pedro Alves <palves@redhat.com>
10345 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10346 directly. Instead find the first thread in the thread list and
10347 use switch_to_thread.
10349 2020-01-10 Pedro Alves <palves@redhat.com>
10351 * remote.c (remote_target::remote_add_inferior): Don't bind a
10352 process to the current inferior if the current inferior is already
10353 bound to a process.
10355 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10356 Pedro Alves <palves@redhat.com>
10358 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10359 If no process is specified, return null_ptid instead of
10361 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10362 TARGET_WAITKIND_SIGNALLED with no pid.
10364 2020-01-10 Pedro Alves <palves@redhat.com>
10366 * remote.c (first_remote_resumed_thread): New.
10367 (remote_target::wait_as): Use it as default event_ptid instead of
10370 2020-01-10 Pedro Alves <palves@redhat.com>
10372 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10374 2020-01-10 Pedro Alves <palves@redhat.com>
10376 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10379 2020-01-10 Pedro Alves <palves@redhat.com>
10381 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10382 ptid to get_last_target_status.
10383 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10384 ptid to get_last_target_status.
10385 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10386 get_last_target_status.
10387 (info_program_command): Don't pass a target_waitstatus to
10388 get_last_target_status.
10389 * infrun.c (init_wait_for_inferior): Use
10390 nullify_last_target_wait_ptid.
10391 (get_last_target_status): Handle nullptr arguments.
10392 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10393 (print_stop_event): Don't pass a ptid to get_last_target_status.
10394 (normal_stop): Don't pass a ptid to get_last_target_status.
10395 * infrun.h (get_last_target_status, set_last_target_status): Move
10396 comments here and update.
10397 (nullify_last_target_wait_ptid): Declare.
10398 * linux-fork.c (fork_load_infrun_state): Remove local extern
10399 declaration of nullify_last_target_wait_ptid.
10400 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10401 to get_last_target_status.
10403 2020-01-10 Pedro Alves <palves@redhat.com>
10405 * gdbthread.h (scoped_restore_current_thread)
10406 <dont_restore, restore, m_dont_restore>: Declare.
10407 * thread.c (thread_alive): Add assertion. Return bool.
10408 (switch_to_thread_if_alive): New.
10409 (prune_threads): Switch inferior/thread.
10410 (print_thread_info_1): Switch thread before calling target methods.
10411 (scoped_restore_current_thread::restore): New, factored out from
10413 (scoped_restore_current_thread::~scoped_restore_current_thread):
10415 (scoped_restore_current_thread::scoped_restore_current_thread):
10417 (thread_apply_all_command, thread_select): Use
10418 switch_to_thread_if_alive.
10419 * infrun.c (proceed, restart_threads, handle_signal_stop)
10420 (switch_back_to_stepped_thread): Switch current thread before
10421 calling target methods.
10423 2020-01-10 Pedro Alves <palves@redhat.com>
10425 * inferior.c (switch_to_inferior_no_thread): New function,
10426 factored out from ...
10427 (inferior_command): ... here.
10428 * inferior.h (switch_to_inferior_no_thread): Declare.
10429 * mi/mi-main.c (run_one_inferior): Use
10430 switch_to_inferior_no_thread.
10432 2020-01-10 Pedro Alves <palves@redhat.com>
10434 * infcmd.c (kill_command): Remove dead code.
10436 2020-01-10 Pedro Alves <palves@redhat.com>
10438 * remote.c (remote_target::mourn_inferior): No longer check
10439 whether the target is running.
10441 2020-01-10 Pedro Alves <palves@redhat.com>
10443 * corelow.c (core_target::has_execution): Change parameter type to
10445 * inferior.c (number_of_live_inferiors): Use
10446 inferior::has_execution instead of target_has_execution_1.
10447 * inferior.h (inferior::has_execution): New.
10448 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10449 inferior::has_execution instead of target_has_execution_1.
10450 * process-stratum-target.c
10451 (process_stratum_target::has_execution): Change parameter type to
10452 inferior pointer. Check the inferior's PID instead of
10454 * process-stratum-target.h
10455 (process_stratum_target::has_execution): Change parameter type to
10457 * record-full.c (record_full_core_target::has_execution): Change
10458 parameter type to inferior pointer.
10459 * target.c (target_has_execution_1): Change parameter type to
10461 (target_has_execution_current): Adjust.
10462 * target.h (target_ops::has_execution): Change parameter type to
10464 (target_has_execution_1): Change parameter type to inferior
10465 pointer. Change return type to bool.
10466 * tracefile.h (tracefile_target::has_execution): Change parameter
10467 type to inferior pointer.
10469 2020-01-10 Pedro Alves <palves@redhat.com>
10471 * exceptions.c (print_flush): Remove current_top_target() check.
10473 2020-01-10 Pedro Alves <palves@redhat.com>
10475 * remote.c (show_remote_exec_file): Show the current inferior's
10476 exec-file instead of the command variable's value.
10478 2020-01-10 Pedro Alves <palves@redhat.com>
10480 * record-full.c (record_full_resume_ptid): New global.
10481 (record_full_target::resume): Set it.
10482 (record_full_wait_1): Use record_full_resume_ptid instead of
10485 2020-01-10 Pedro Alves <palves@redhat.com>
10487 * gdbthread.h (scoped_restore_current_thread)
10488 <dont_restore, restore, m_dont_restore>: Declare.
10489 * thread.c (thread_alive): Add assertion. Return bool.
10490 (switch_to_thread_if_alive): New.
10491 (prune_threads): Switch inferior/thread.
10492 (print_thread_info_1): Switch thread before calling target methods.
10493 (scoped_restore_current_thread::restore): New, factored out from
10495 (scoped_restore_current_thread::~scoped_restore_current_thread):
10497 (scoped_restore_current_thread::scoped_restore_current_thread):
10499 (thread_apply_all_command, thread_select): Use
10500 switch_to_thread_if_alive.
10502 2020-01-10 George Barrett <bob@bob131.so>
10504 * stap-probe.c (stap_modify_semaphore): Don't check for null
10506 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10507 for null semaphores.
10509 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10511 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10512 all source windows, and maintain horizontal scroll status while
10515 2020-01-09 Tom Tromey <tom@tromey.com>
10518 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10519 update_source_window, not print_source_lines.
10521 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10523 * tui/tui.c (tui_enable): Register tui hooks after calling
10526 2020-01-09 Christian Biesinger <cbiesinger@google.com>
10528 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10530 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
10532 * thread.c (print_thread_info_1): Fix indentation.
10534 2020-01-09 Christian Biesinger <cbiesinger@google.com>
10536 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10537 unique_xmalloc_ptr outside the if to always free the demangled name.
10539 2020-01-08 Tom Tromey <tromey@adacore.com>
10541 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10542 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10543 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10544 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10546 (section_offsets): New typedef.
10547 * symtab.c (fixup_section, get_msymbol_address): Update.
10548 * symmisc.c (dump_msymbols): Update.
10549 * symfile.h (relative_addr_info_to_section_offsets)
10550 (symfile_map_offsets_to_segments): Update.
10551 * symfile.c (build_section_addr_info_from_objfile)
10552 (init_objfile_sect_indices): Update.
10553 (struct place_section_arg): Change type of "offsets".
10554 (place_section): Update.
10555 (relative_addr_info_to_section_offsets): Change type of
10556 "section_offsets". Remove "num_sections" parameter.
10557 (default_symfile_offsets, syms_from_objfile_1)
10558 (set_objfile_default_section_offset): Update.
10559 (reread_symbols): No need to preserve section offsets by hand.
10560 (symfile_map_offsets_to_segments): Change type of "offsets".
10561 * stap-probe.c (relocate_address): Update.
10562 * stabsread.h (process_one_symbol): Update.
10563 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10564 (solib_target_relocate_section_addresses): Update.
10565 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10567 * solib-frv.c (frv_relocate_main_executable): Update.
10568 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10569 * solib-aix.c (solib_aix_get_section_offsets): Change return
10571 (solib_aix_solib_create_inferior_hook): Update.
10572 * remote.c (remote_target::get_offsets): Update.
10573 * psymtab.c (find_pc_sect_psymtab): Update.
10574 * psympriv.h (struct partial_symbol) <address, text_low,
10575 text_high>: Update.
10576 * objfiles.h (obj_section_offset): Update.
10577 (struct objfile) <section_offsets>: Change type.
10578 <num_sections>: Remove.
10579 (objfile_relocate): Update.
10580 * objfiles.c (entry_point_address_query): Update
10581 (relocate_one_symbol): Change type of "section_offsets".
10582 (objfile_relocate1, objfile_relocate1): Change type of
10584 (objfile_rebase1): Update.
10585 * mipsread.c (mipscoff_symfile_read): Update.
10586 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10588 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10589 (parse_external, psymtab_to_symtab_1): Update.
10590 * machoread.c (macho_symfile_offsets): Update.
10591 * ia64-tdep.c (ia64_find_unwind_table): Update.
10592 * hppa-tdep.c (read_unwind_info): Update.
10593 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10594 * dwarf2read.c (create_addrmap_from_index)
10595 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10596 (process_psymtab_comp_unit_reader, add_partial_symbol)
10597 (add_partial_subprogram, process_full_comp_unit)
10598 (read_file_scope, read_func_scope, read_lexical_block_scope)
10599 (read_call_site_scope, dwarf2_rnglists_process)
10600 (dwarf2_ranges_process, dwarf2_ranges_read)
10601 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10602 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10604 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10606 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10607 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10608 (process_one_symbol): Change type of "section_offsets".
10609 * ctfread.c (get_objfile_text_range): Update.
10610 * coffread.c (coff_symtab_read, enter_linenos)
10611 (process_coff_symbol): Update.
10612 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10613 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10615 2020-01-08 Tom Tromey <tromey@adacore.com>
10617 * dwarf2read.c (parse_macro_definition): Use std::string.
10618 (parse_macro_definition): Likewise.
10620 2020-01-08 Tom Tromey <tromey@adacore.com>
10622 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10623 (ATTR_ALLOC_CHUNK): Remove.
10625 2020-01-08 Tom Tromey <tromey@adacore.com>
10627 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10629 2020-01-08 Tom Tromey <tromey@adacore.com>
10631 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10632 (dwarf2_compute_name, open_dwo_file): Likewise.
10633 (process_enumeration_scope): Use std::vector.
10634 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10635 (partial_die_info::fixup, dwarf2_start_subfile)
10636 (guess_full_die_structure_name, dwarf2_name): Likewise.
10637 (determine_prefix): Update.
10638 (guess_full_die_structure_name): Make return type const.
10639 (partial_die_full_name): Return unique_xmalloc_ptr.
10640 (DW_FIELD_ALLOC_CHUNK): Remove.
10642 2020-01-07 Tom Tromey <tromey@adacore.com>
10645 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10647 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10649 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10651 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10653 * stack.c (print_frame_info): Move disassemble_next_line code
10654 inside source_print block.
10656 2020-01-06 Eli Zaretskii <eliz@gnu.org>
10658 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10659 gdb/signals.h, as we are now using native signal symbols.
10661 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
10663 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10664 overflow by an early check of content vs threshold.
10665 * tui/tui-source.c (tui_source_window::line_is_displayed):
10668 2020-01-06 Eli Zaretskii <eliz@gnu.org>
10670 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10672 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10674 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10675 export table if no section contains it's RVA.
10677 2020-01-06 Eli Zaretskii <eliz@gnu.org>
10679 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10681 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
10683 * source.c (print_source_lines_base): Set last_line_listed.
10685 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
10687 * tui/tui-disasm.c: Remove trailing spaces.
10689 2020-01-06 Eli Zaretskii <eliz@gnu.org>
10690 Pedro Alves <palves@redhat.com>
10692 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10693 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10694 (windows_gdb_signal_to_target): New function, uses the above
10695 enumeration to convert GDB internal signal codes to equivalent
10697 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10698 * windows-nat.c: Include "gdb_wait.h".
10699 (get_windows_debug_event): Extract the fatal exception from the
10700 exit status and convert to the equivalent Posix signal number.
10701 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10702 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10703 * gdbsupport/gdb_wait.c: New file, implements
10704 windows_status_to_termsig.
10705 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10706 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10708 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10710 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10713 2020-01-05 Luis Machado <luis.machado@linaro.org>
10715 * aarch64-linux-nat.c
10716 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10717 and bfd_mach_aarch64.
10719 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10721 * ui-file.c (stdio_file::can_emit_style_escape)
10722 (tee_file::can_emit_style_escape): Ensure style is used also on
10723 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10725 * main.c (set_gdb_data_directory): Use file style to output the
10726 warning that the given pathname is not a directory.
10727 * top.c (show_history_filename, gdb_safe_append_history)
10728 (show_gdb_datadir): Use file style.
10730 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
10732 * solib-target.c (struct lm_info_target):
10733 Change offsets to be a unique_xmalloc_ptr.
10734 (solib_target_relocate_section_addresses): Update.
10736 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
10738 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10740 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10742 * MAINTAINERS (Write After Approval): Add myself.
10744 2020-01-02 Luis Machado <luis.machado@linaro.org>
10746 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10747 Cell BE architecture.
10748 * target.h (struct target_ops) <thread_architecture>: Likewise.
10750 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
10752 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10754 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
10756 * MAINTAINERS (Write After Approval): Add myself.
10758 2020-01-01 Joel Brobecker <brobecker@adacore.com>
10760 * gdbarch.sh: Update copyright year range of generated files.
10762 2020-01-01 Joel Brobecker <brobecker@adacore.com>
10764 Update copyright year range in all GDB files.
10766 2020-01-01 Joel Brobecker <brobecker@adacore.com>
10768 * copyright.py: Convert to Python 3.
10770 2020-01-01 Joel Brobecker <brobecker@adacore.com>
10772 * copyright.py: Adapt after move of gnulib directory from gdb
10773 directory to toplevel directory.
10775 2020-01-01 Joel Brobecker <brobecker@adacore.com>
10777 * copyright.py (main): Exit if run from the wrong directory.
10779 2020-01-01 Joel Brobecker <brobecker@adacore.com>
10781 * top.c (print_gdb_version): Change copyright year to 2020.
10783 2020-01-01 Joel Brobecker <brobecker@adacore.com>
10785 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
10787 For older changes see ChangeLog-2019.
10793 version-control: never