1 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4 all callers to use type::range_bounds followed by
5 dynamic_prop::{low,high}.
7 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
9 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
10 const_val, set_const_val, baton, set_locexpr, set_loclist,
11 set_addr_offset, variant_parts, set_variant_parts,
12 original_type, set_original_type>: New methods.
14 <m_kind>: ... this. Update all users to use the new methods
17 <m_data>: ... this. Update all users to use the new methods
20 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
22 * gdbtypes.c (get_discrete_bounds): Return failure if
23 the range type's bounds are not both defined and constant
25 (get_array_bounds): Update comment. Remove undefined bound check.
27 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
29 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
30 the type::bounds method directly.
32 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
34 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
35 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
36 are used to set the range type's bounds to use set_bounds.
38 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
40 * exec.c (_initialize_exec): Update exec-file-mismatch help.
42 2020-07-10 Pedro Alves <pedro@palves.net>
44 * gdbthread.h (inferior_ref): Define.
45 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
46 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
48 (scoped_restore_current_thread::restore):
49 Adjust to gdb::ref_ptr.
50 (scoped_restore_current_thread::~scoped_restore_current_thread):
51 Remove manual decref handling.
52 (scoped_restore_current_thread::scoped_restore_current_thread):
54 inferior_ref::new_reference/thread_info_ref::new_reference.
55 Incref the thread before calling get_frame_id instead of after.
56 Let TARGET_CLOSE_ERROR propagate.
58 2020-07-10 Pedro Alves <pedro@palves.net>
60 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
61 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
63 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
64 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
66 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
67 Pedro Alves <pedro@palves.net>
70 * infrun.c (threads_are_resumed_pending_p): Delete.
71 (do_target_wait): Remove threads_are_executing and
72 threads_are_resumed_pending_p checks from the inferior_matches
73 lambda. Update comments.
75 2020-07-10 Pedro Alves <pedro@palves.net>
78 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
81 2020-07-10 Pedro Alves <pedro@palves.net>
84 * infrun.c (handle_no_resumed): Handle multiple targets.
86 2020-07-10 Pedro Alves <pedro@palves.net>
89 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
92 2020-07-10 Pedro Alves <pedro@palves.net>
95 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
96 threads, not all threads.
98 2020-07-10 Pedro Alves <pedro@palves.net>
101 * remote.c (remote_target::open_1): Pass remote target pointer as
102 data to create_async_event_handler.
103 (remote_async_inferior_event_handler): Mark async event handler
104 before returning if the remote target still has either pending
105 events or unacknowledged notifications.
107 2020-07-10 John Baldwin <jhb@FreeBSD.org>
109 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
111 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
114 2020-07-09 John Baldwin <jhb@FreeBSD.org>
116 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
119 2020-07-09 John Baldwin <jhb@FreeBSD.org>
121 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
122 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
123 AT_FREEBSD_PS_STRINGS.
125 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
127 * auto-load.c (auto_load_objfile_script_1): Convert drive part
128 of debugfile path on Windows.
130 2020-07-08 John Baldwin <jhb@FreeBSD.org>
132 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
135 2020-07-08 Tom Tromey <tromey@adacore.com>
137 * ada-lang.c (ada_exception_message_1): Use read_memory.
139 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
142 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
143 special handling for inline frames.
144 * findvar.c (value_of_register_lazy): Skip inline frames when
145 creating lazy register values.
146 * frame.c (frame_id_computed_p): Delete definition.
147 * frame.h (frame_id_computed_p): Delete declaration.
149 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
151 * NEWS: Mention additions to Python API.
152 * python/py-arch.c (archpy_register_groups): New function.
153 (arch_object_methods): Add 'register_groups' method.
154 * python/py-registers.c (reggroup_iterator_object): New struct.
155 (reggroup_object): New struct.
156 (gdbpy_new_reggroup): New function.
157 (gdbpy_reggroup_to_string): New function.
158 (gdbpy_reggroup_name): New function.
159 (gdbpy_reggroup_iter): New function.
160 (gdbpy_reggroup_iter_next): New function.
161 (gdbpy_new_reggroup_iterator): New function
162 (gdbpy_initialize_registers): Register new types.
163 (reggroup_iterator_object_type): Define new Python type.
164 (gdbpy_reggroup_getset): New static global.
165 (reggroup_object_type): Define new Python type.
166 * python/python-internal.h
168 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
170 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
171 * python/py-arch.c (archpy_registers): New function.
172 (arch_object_methods): Add 'registers' method.
173 * python/py-registers.c: New file.
174 * python/python-internal.h
175 (gdbpy_new_register_descriptor_iterator): Declare.
176 (gdbpy_initialize_registers): Declare.
177 * python/python.c (do_start_initialization): Call
178 gdbpy_initialize_registers.
179 * NEWS: Mention additions to the Python API.
181 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
183 * NEWS: Mention new Python API method.
184 * python/py-unwind.c (pending_framepy_architecture): New function.
185 (pending_frame_object_methods): Add architecture method.
187 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
189 * gdbarch.c: Regenerate.
190 * gdbarch.h: Regenerate.
191 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
192 (gdbarch_data): Use internal_error for the case where
193 deprecated_set_gdbarch_data was originally needed.
194 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
195 and use passed in obstack.
196 (libunwind_frame_set_descr): Should no longer get back NULL from
198 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
200 * user-regs.c (user_regs_init): Update parameters, and use passed
202 (user_reg_add): Should no longer get back NULL from gdbarch_data.
203 (_initialize_user_regs): Register as a pre-init gdbarch data type.
205 2020-07-06 Tom de Vries <tdevries@suse.de>
207 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
208 End-Of-Sequence in lte_is_less_than.
209 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
210 "gdb: Don't reorder line table entries too much when sorting".
212 2020-07-06 Tom de Vries <tdevries@suse.de>
215 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
217 2020-07-05 Tom de Vries <tdevries@suse.de>
220 * inferior.h (struct infcall_suspend_state_deleter): If available, use
221 std::uncaught_exceptions instead of deprecated
222 std::uncaught_exception.
224 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
226 * macroexp.h (macro_stringify): Return
227 gdb::unique_xmalloc_ptr<char>.
228 * macroexp.c (macro_stringify): Likewise.
229 * macrotab.c (fixup_definition): Update.
231 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
233 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
234 (lex_one_token): Update.
235 * macroexp.c (struct macro_buffer) <release>: Return
236 gdb::unique_xmalloc_ptr<char>.
237 (macro_stringify): Update.
238 (macro_expand): Update.
239 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
240 * macroexp.h (macro_expand_next): Likewise.
242 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
244 * macroexp.h (macro_lookup_ftype): Remove.
245 (macro_expand, macro_expand_once, macro_expand_next): Remove
246 lookup function parameters, add scope parameter.
247 * macroexp.c (scan, substitute_args, expand, maybe_expand,
248 macro_expand, macro_expand_once, macro_expand_next): Likewise.
249 * macroscope.h (standard_macro_lookup): Change parameter type
251 * macroscope.c (standard_macro_lookup): Likewise.
252 * c-exp.y (lex_one_token): Update.
253 * macrocmd.c (macro_expand_command): Likewise.
254 (macro_expand_once_command): Likewise.
256 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
258 * inf-loop.c (inferior_event_handler): Remove client_data param.
259 * inf-loop.h (inferior_event_handler): Likewise.
260 * infcmd.c (step_1): Adjust.
261 * infrun.c (proceed): Adjust.
262 (fetch_inferior_event): Remove client_data param.
263 (infrun_async_inferior_event_handler): Adjust.
264 * infrun.h (fetch_inferior_event): Remove `void *` param.
265 * linux-nat.c (handle_target_event): Adjust.
266 * record-btrace.c (record_btrace_handle_async_inferior_event):
268 * record-full.c (record_full_async_inferior_event_handler):
270 * remote.c (remote_async_inferior_event_handler): Adjust.
272 2020-07-01 Tom Tromey <tom@tromey.com>
274 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
275 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
277 2020-07-01 Tom Tromey <tom@tromey.com>
279 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
281 (tui_win_info::make_window): Merge with
282 tui_gen_win_info::make_window.
283 (tui_win_info::make_visible): Move from tui_gen_win_info.
284 * tui/tui-win.c (tui_win_info::max_width): Move from
286 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
288 <window_factory>: Likewise.
289 * tui/tui-layout.c (tui_win_info::resize): Move from
291 (make_standard_window): Change return type.
292 (get_locator_window, tui_get_window_by_name): Likewise.
293 (tui_layout_window::apply): Remove a cast.
294 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
295 (struct tui_win_info): Merge with tui_gen_win_info.
296 (struct tui_gen_win_info): Remove.
298 2020-07-01 Tom Tromey <tom@tromey.com>
300 * tui/tui-stack.h (struct tui_locator_window): Derive from
302 <do_scroll_horizontal, do_scroll_vertical>: New methods.
303 <can_box>: New method.
305 2020-07-01 Tom Tromey <tom@tromey.com>
307 * tui/tui-stack.h (struct tui_locator_window): Remove body.
309 2020-07-01 Tom Tromey <tom@tromey.com>
311 * tui/tui-regs.c (tui_data_window::display_registers_from)
312 (tui_data_window::display_registers_from)
313 (tui_data_window::first_data_item_displayed)
314 (tui_data_window::delete_data_content_windows): Update.
315 (tui_data_window::refresh_window, tui_data_window::no_refresh):
317 (tui_data_window::check_register_values): Update.
318 (tui_data_item_window::rerender): Add parameters. Update.
319 (tui_data_item_window::refresh_window): Remove.
320 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
322 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
324 <refresh_window, max_height, min_height>: Remove.
325 <rerender>: Add parameters.
326 <x, y, visible>: New members.
327 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
328 <m_item_width>: New member.
330 2020-07-01 Tom Tromey <tom@tromey.com>
332 * tui/tui-regs.c (tui_data_window::show_register_group)
333 (tui_data_window::check_register_values): Update.
334 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
337 2020-07-01 Tom Tromey <tom@tromey.com>
339 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
342 2020-07-01 Tom Tromey <tom@tromey.com>
344 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
345 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
347 2020-07-01 Tom Tromey <tom@tromey.com>
349 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
350 * tui/tui-winsource.h (enum tui_line_or_address_kind)
351 (struct tui_line_or_address): Move from tui-data.h.
352 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
353 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
354 (tui_cmd_window, tui_source_window_base, tui_source_window)
355 (tui_disasm_window): Don't declare.
356 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
358 (SINGLE_KEY): Move to tui-stack.c.
360 2020-07-01 Tom Tromey <tom@tromey.com>
362 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
364 * tui/tui-regs.c (class tab_expansion_file): New.
365 (tab_expansion_file::write): New method.
366 (tui_register_format): Change return type. Use
368 (tui_get_register, tui_data_window::display_registers_from)
369 (tui_data_item_window::rerender): Update.
370 * tui/tui-io.h (tui_expand_tabs): Don't declare.
371 * tui/tui-io.c (tui_expand_tabs): Remove.
373 2020-07-01 Tom Tromey <tom@tromey.com>
375 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
377 2020-07-01 Fangrui Song <maskray@google.com>
379 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
381 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
383 * dwarf2/read.c (set_die_type): Removed conditions to restrict
384 forms for DW_AT_associated and DW_AT_allocated attributes,
385 which is already checked in function attr_to_dynamic_prop.
387 2020-06-30 Tom Tromey <tromey@adacore.com>
389 * dwarf2/read.c (quirk_rust_enum): Correctly call
390 alloc_rust_variant for default-less enum.
392 2020-06-30 Tom Tromey <tromey@adacore.com>
395 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
398 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
400 * gdbarch.sh (displaced_step_copy_insn): Update doc.
401 * gdbarch.h: Re-generate.
403 2020-06-28 Tom Tromey <tom@tromey.com>
405 * command.h (cmd_types): Remove.
406 (cmd_type): Don't declare.
407 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
409 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
410 * cli/cli-decode.c (cmd_type): Remove.
412 2020-06-27 Pedro Alves <palves@redhat.com>
414 * fork-child.c (prefork_hook): Adjust.
415 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
417 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
418 * inferior.c (inferior::set_tty, inferior::tty): New methods.
419 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
421 (struct inferior) <set_tty, tty>: New methods.
422 (struct inferior) <terminal>: Rename to ...
423 (struct inferior) <m_terminal>: ... this and make private.
424 * main.c (captured_main_1): Adjust.
425 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
426 (mi_cmd_inferior_tty_show): Adjust.
427 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
428 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
430 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
432 * configure.ac: Add --enable-libctf: handle --disable-static
434 * acinclude.m4: sinclude ../config/enable.m4.
435 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
436 (LIBCTF): Substitute in.
437 (CTF_DEPS): New, likewise.
438 (CLIBS): libctf needs symbols from libbfd: move earlier.
439 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
441 * ctfread.c: Surround in ENABLE_LIBCTF.
442 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
443 * configure: Regenerate.
444 * config.in: Likewise.
446 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
448 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
450 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
452 * inferior.h (struct inferior) <terminal>: Change type to
453 gdb::unique_xmalloc_ptr<char>.
454 * inferior.c (inferior::~inferior): Don't free inf->terminal.
455 * infcmd.c (set_inferior_io_terminal): Don't free terminal
456 field, adjust to unique pointer.
457 (get_inferior_io_terminal): Adjust to unique pointer.
459 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
461 * riscv-tdep.c (riscv_print_registers_info): Loop over all
462 registers, not just the known core set of registers.
464 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
466 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
467 fflags, frm, and fcsr registers.
468 (riscv_register_reggroup_p): Remove unknown CSRs from save and
470 (riscv_tdesc_unknown_reg): New function.
471 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
473 * riscv-tdep.h (struct gdbarch_tdep): Add
474 unknown_csrs_first_regnum, unknown_csrs_count,
475 duplicate_fflags_regnum, duplicate_frm_regnum, and
476 duplicate_fcsr_regnum fields.
478 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
480 * target-descriptions.c (tdesc_use_registers): Add new parameter a
481 callback, use the callback (when not null) to help number unknown
483 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
484 (tdesc_use_registers): Add extra parameter to declaration.
486 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
488 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
490 (class riscv_pending_register_alias): Likewise.
491 (riscv_register_feature::register_info): Change 'required_p' field
492 to 'required', and change its type. Add 'check' member function.
493 (riscv_register_feature::register_info::check): Define new member
495 (riscv_xreg_feature): Change initialisation of 'required' field.
496 (riscv_freg_feature): Likewise.
497 (riscv_virtual_feature): Likewise.
498 (riscv_csr_feature): Likewise.
499 (riscv_check_tdesc_feature): Take extra parameter, the csr
500 tdesc_feature, rewrite the function to use the new
501 riscv_register_feature::register_info::check function.
502 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
504 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
506 * features/Makefile: Remove all references to the deleted files
508 * features/riscv/32bit-csr.c: Deleted.
509 * features/riscv/32bit-csr.xml: Deleted.
510 * features/riscv/64bit-csr.c: Deleted.
511 * features/riscv/64bit-csr.xml: Deleted.
512 * features/riscv/rebuild-csr-xml.sh: Deleted.
514 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
516 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
517 whitespace error for declaration of names member variable.
518 (struct riscv_register_feature): Add new prefer_first_name member
519 variable, and fix whitespace error in declaration of registers.
520 (riscv_xreg_feature): Initialize prefer_first_name field.
521 (riscv_freg_feature): Likewise.
522 (riscv_virtual_feature): Likewise.
523 (riscv_csr_feature): Likewise.
524 (riscv_register_name): Expand on comments. Remove register name
525 modifications for CSR and virtual registers.
527 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
529 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
532 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
534 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
536 (class riscv_pending_register_alias): New class.
537 (riscv_check_tdesc_feature): Take vector of pending aliases and
538 populate it as appropriate.
539 (riscv_setup_register_aliases): Delete.
540 (riscv_gdbarch_init): Create vector of pending aliases and pass it
541 to riscv_check_tdesc_feature in all cases. Use the vector to
542 create the register aliases.
544 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
546 * sol2-tdep.c (sol2_static_transform_name): Remove.
547 (sol2_init_abi): Don't register it.
548 * gdbarch.sh (static_transform_name): Remove.
549 * gdbarch.c, gdbarch.h: Regenerate.
551 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
552 gdbarch_static_transform_name.
553 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
554 * stabsread.c (define_symbol) <'X'>: Remove.
555 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
558 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
559 <'S'>: Remove call to gdbarch_static_transform_name.
561 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
563 * procfs.c (procfs_pre_trace): New function.
564 (procfs_target::create_inferior): Pass it to fork_inferior.
566 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
568 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
569 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
570 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
571 sol2-tdep.o, sparc-sol2-tdep.o.
572 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
573 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
574 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
575 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
577 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
579 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
580 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
582 Remove calls to set_gdbarch_skip_solib_resolver,
583 set_gdbarch_core_pid_to_str.
584 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
585 (i386_sol2_static_transform_name): Remove.
586 (i386_sol2_init_abi): Call sol2_init_abi.
587 Remove calls to set_gdbarch_sofun_address_maybe_missing,
588 set_gdbarch_static_transform_name,
589 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
591 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
592 (sol2_sigtramp_p): New function.
593 (sol2_static_transform_name): New function.
594 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
595 (sol2_init_abi): New function.
596 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
597 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
598 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
599 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
600 (sparc_sol2_static_transform_name): Remove.
601 (sparc32_sol2_init_abi): Call sol2_init_abi.
602 Remove calls to set_gdbarch_sofun_address_maybe_missing,
603 set_gdbarch_static_transform_name,
604 set_gdbarch_skip_solib_resolver,
605 set_gdbarch_core_pid_to_str.
606 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
607 (sparc_sol2_static_transform_name): Remove
608 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
609 call sol2_sigtramp_p.
610 (sparc64_sol2_init_abi): Call sol2_init_abi.
611 Remove calls to set_gdbarch_sofun_address_maybe_missing,
612 set_gdbarch_static_transform_name,
613 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
615 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
617 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
618 * exec.c (validate_exec_file): If from_tty, set both
619 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
620 * symfile.c (symbol_file_add_with_addrs): if always_confirm
621 and from_tty, unconditionally ask a confirmation.
623 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
625 * target-descriptions.c (tdesc_architecture_name): Protect against
626 NULL pointer dereference.
627 (maint_print_xml_tdesc_cmd): New function.
628 (_initialize_target_descriptions): Register new 'maint print
629 xml-tdesc' command and give it the filename completer.
630 * NEWS: Mention new 'maint print xml-tdesc' command.
632 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
634 * target-descriptions.c (class tdesc_compatible_info): New class.
635 (struct target_desc): Change type of compatible vector.
636 (tdesc_compatible_p): Update for change in type of
637 target_desc::compatible.
638 (tdesc_compatible_info_list): New function.
639 (tdesc_compatible_info_arch_name): New function.
640 (tdesc_add_compatible): Update for change in type of
641 target_desc::compatible.
642 (print_c_tdesc::visit_pre): Likewise.
644 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
646 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
647 whitespace to underscore.
648 (maint_print_c_tdesc_cmd): Use fake filename for target
649 descriptions that came from the target.
650 (_initialize_target_descriptions): Add filename command completion
651 for 'maint print c-tdesc'.
653 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
655 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
658 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
660 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
662 (dwarf2_find_location_expression): Likewise.
663 (call_site_parameter_matches): Likewise.
664 (dwarf2_compile_expr_to_ax): Likewise.
665 (disassemble_dwarf_expression): Likewise.
666 (loclist_describe_location): Likewise.
668 2020-06-23 Pedro Alves <palves@redhat.com>
670 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
671 progspace-and-thread.h. Include scoped-mock-context.h instead.
672 (register_to_value_test): Use scoped_mock_context.
673 * regcache.c: Include "scoped-mock-context.h".
674 (cooked_read_test): Don't error out if a target is already pushed.
675 Use scoped_mock_context. Adjust.
676 * scoped-mock-context.h: New file.
678 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
680 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
682 (ada_language::is_string_type_p): New member function.
683 * c-lang.c (c_language_data): Delete la_is_string_type_p
685 (cplus_language_data): Likewise.
686 (asm_language_data): Likewise.
687 (minimal_language_data): Likewise.
688 * d-lang.c (d_language_data): Likewise.
689 * f-lang.c (f_is_string_type_p): Delete function, implementation
690 moved to f_language::is_string_type_p.
691 (f_language_data): Delete la_is_string_type_p initializer.
692 (f_language::is_string_type_p): New member function,
693 implementation from f_is_string_type_p.
694 * go-lang.c (go_is_string_type_p): Delete function, implementation
695 moved to go_language::is_string_type_p.
696 (go_language_data): Delete la_is_string_type_p initializer.
697 (go_language::is_string_type_p): New member function,
698 implementation from go_is_string_type_p.
699 * language.c (language_defn::is_string_type_p): Define new member
701 (default_is_string_type_p): Make static, add comment copied from
703 (unknown_language_data): Delete la_is_string_type_p initializer.
704 (unknown_language::is_string_type_p): New member function.
705 (auto_language_data): Delete la_is_string_type_p initializer.
706 (auto_language::is_string_type_p): New member function.
707 * language.h (language_data): Delete la_is_string_type_p field.
708 (language_defn::is_string_type_p): Declare new function.
709 (default_is_string_type_p): Delete desclaration, move comment to
711 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
712 moved to m2_language::is_string_type_p.
713 (m2_language_data): Delete la_is_string_type_p initializer.
714 (m2_language::is_string_type_p): New member function,
715 implementation from m2_is_string_type_p.
716 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
718 * opencl-lang.c (opencl_language_data): Likewise.
719 * p-lang.c (pascal_is_string_type_p): Delete function,
720 implementation moved to pascal_language::is_string_type_p.
721 (pascal_language_data): Delete la_is_string_type_p initializer.
722 (pascal_language::is_string_type_p): New member function,
723 implementation from pascal_is_string_type_p.
724 * rust-lang.c (rust_is_string_type_p): Delete function,
725 implementation moved to rust_language::is_string_type_p.
726 (rust_language_data): Delete la_is_string_type_p initializer.
727 (rust_language::is_string_type_p): New member function,
728 implementation from rust_is_string_type_p.
729 * valprint.c (val_print_scalar_or_string_type_p): Update call to
732 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
734 * ada-lang.c (ada_language_data): Delete la_print_typedef
736 (ada_language::print_typedef): New member function.
737 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
738 (cplus_language_data): Likewise.
739 (asm_language_data): Likewise.
740 (minimal_language_data): Likewise.
741 * d-lang.c (d_language_data): Likewise.
742 * f-lang.c (f_language_data): Likewise.
743 (f_language::print_typedef): New member function.
744 * go-lang.c (go_language_data): Delete la_print_typedef
746 * language.c (language_defn::print_typedef): Define member
748 (unknown_language_data): Delete la_print_typedef initializer.
749 (unknown_language::print_typedef): New member function.
750 (auto_language_data): Delete la_print_typedef initializer.
751 (auto_language::print_typedef): New member function.
752 * language.h (language_data): Delete la_print_typedef field.
753 (language_defn::print_typedef): Declare new member function.
754 (LA_PRINT_TYPEDEF): Update call to print_typedef.
755 (default_print_typedef): Delete declaration.
756 * m2-lang.c (m2_language_data): Delete la_print_typedef
758 (m2_language::print_typedef): New member function.
759 * objc-lang.c (objc_language_data): Delete la_print_typedef
761 * opencl-lang.c (opencl_language_data): Likewise.
762 * p-lang.c (pascal_language_data): Likewise.
763 (pascal_language::print_typedef): New member function.
764 * rust-lang.c (rust_print_typedef): Delete function,
765 implementation moved to rust_language::print_typedef.
766 (rust_language): Delete la_print_typedef initializer.
767 (rust_language::print_typedef): New member function,
768 implementation from rust_print_typedef.
769 * typeprint.c (default_print_typedef): Delete.
771 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
773 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
774 (ada_language::printstr): New member function.
775 * c-lang.c (c_language_data): Delete la_printstr initializer.
776 (cplus_language_data): Likewise.
777 (asm_language_data): Likewise.
778 (minimal_language_data): Likewise.
779 * d-lang.c (d_language_data): Likewise.
780 * f-lang.c (f_printstr): Rename to f_language::printstr.
781 (f_language_data): Delete la_printstr initializer.
782 (f_language::printstr): New member function, implementation from
784 * go-lang.c (go_language_data): Delete la_printstr initializer.
785 * language.c (language_defn::printstr): Define new member
787 (unk_lang_printstr): Delete.
788 (unknown_language_data): Delete la_printstr initializer.
789 (unknown_language::printstr): New member function.
790 (auto_language_data): Delete la_printstr initializer.
791 (auto_language::printstr): New member function.
792 * language.h (language_data): Delete la_printstr field.
793 (language_defn::printstr): Declare new member function.
794 (LA_PRINT_STRING): Update call to printstr.
795 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
796 (m2_language_data): Delete la_printstr initializer.
797 (m2_language::printstr): New member function, implementation from
799 * objc-lang.c (objc_language_data): Delete la_printstr
801 * opencl-lang.c (opencl_language_data): Likewise.
802 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
803 (pascal_language_data): Delete la_printstr initializer.
804 (pascal_language::printstr): New member function, implementation
805 from pascal_printstr.
806 * p-lang.h (pascal_printstr): Delete declaration.
807 * rust-lang.c (rust_printstr): Update header comment.
808 (rust_language_data): Delete la_printstr initializer.
809 (rust_language::printstr): New member function.
811 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
813 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
814 (ada_language::printchar): New member function.
815 * c-lang.c (c_language_data): Delete la_printchar initializer.
816 (cplus_language_data): Likewise.
817 (asm_language_data): Likewise.
818 (minimal_language_data): Likewise.
819 * d-lang.c (d_language_data): Likewise.
820 * f-lang.c (f_printchar): Rename to f_language::printchar.
821 (f_language_data): Delete la_printchar initializer.
822 (f_language::printchar): New member function, implementation from
824 * go-lang.c (go_language_data): Delete la_printchar initializer.
825 * language.c (unk_lang_printchar): Delete.
826 (language_defn::printchar): Define new member function.
827 (unknown_language_data): Delete la_printchar initializer.
828 (unknown_language::printchar): New member function.
829 (auto_language_data): Delete la_printchar initializer.
830 (auto_language::printchar): New member function.
831 * language.h (language_data): Delete la_printchar field.
832 (language_defn::printchar): Declare new member function.
833 (LA_PRINT_CHAR): Update call to printchar.
834 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
835 (m2_language::printchar): New member function.
836 * objc-lang.c (objc_language_data): Delete la_printchar
838 * opencl-lang.c (opencl_language_data): Likewise.
839 * p-lang.c (pascal_language_data): Delete la_printchar
841 (pascal_language::printchar): New member function.
842 * rust-lang.c (rust_printchar): Rename to
843 rust_language::printchar.
844 (rust_language_data): Delete la_printchar initializer.
845 (rust_language::printchar): New member function, implementation
848 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
850 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
851 (ada_language_data): Delete la_emitchar initializer.
852 (ada_language::emitchar): New member function, implementation from
854 * c-lang.c (c_language_data): Delete la_emitchar initializer.
855 (cplus_language_data): Likewise.
856 (asm_language_data): Likewise.
857 (minimal_language_data): Likewise.
858 * d-lang.c (d_language_data): Likewise.
859 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
860 (f_language_data): Delete la_emitchar initializer.
861 (f_language::emitchar): New member function, implementation from
863 * go-lang.c (go_language_data): Delete la_emitchar initializer.
864 * language.c (unk_lang_emit_char): Delete.
865 (language_defn::emitchar): New member function definition.
866 (unknown_language_data): Delete la_emitchar initializer.
867 (unknown_language::emitchar): New member function.
868 (auto_language_data): Delete la_emitchar initializer.
869 (auto_language::emitchar): New member function.
870 * language.h (language_data): Delete la_emitchar field.
871 (language_defn::emitchar): New member field declaration.
872 (LA_EMIT_CHAR): Update call to emitchar.
873 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
874 (m2_language_data): Delete la_emitchar initializer.
875 (m2_language::emitchar): New member function, implementation from
877 * objc-lang.c (objc_language_data): Delete la_emitchar
879 * opencl-lang.c (opencl_language_data): Likewise.
880 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
881 (pascal_language_data): Delete la_emitchar initializer.
882 (pascal_language::emitchar): New member function, implementation
883 from pascal_emit_char.
884 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
885 (rust_language_data): Delete la_emitchar initializer.
886 (rust_language::emitchar): New member function, implementation
889 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
891 * ada-lang.c (resolve): Rename to ada_language::post_parser.
892 (ada_language_data): Delete la_post_parser initializer.
893 (ada_language::post_parser): New member function.
894 * c-lang.c (c_language_data): Delete la_post_parser initializer.
895 (cplus_language_data): Likewise.
896 (asm_language_data): Likewise.
897 (minimal_language_data): Likewise.
898 * d-lang.c (d_language_data): Likewise.
899 * f-lang.c (f_language_data): Likewise.
900 * go-lang.c (go_language_data): Likewise.
901 * language.c (unknown_language_data): Likewise.
902 (auto_language_data): Likewise.
903 * language.h (language_data): Delete la_post_parser field.
904 (language_defn::post_parser): New member function.
905 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
906 * objc-lang.c (objc_language_data): Likewise.
907 * opencl-lang.c (opencl_language_data): Likewise.
908 * p-lang.c (pascal_language_data): Likewise.
909 * parse.c (parse_exp_in_context): Update call to post_parser.
910 (null_post_parser): Delete definition.
911 * parser-defs.h (null_post_parser): Delete declaration.
912 * rust-lang.c (rust_language_data): Delete la_post_parser
915 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
917 * ada-lang.c (parse): Rename to ada_language::parser.
918 (ada_language_data): Delete la_parser initializer.
919 (ada_language::parser): New member function, implementation from
921 * c-lang.c (c_language_data): Delete la_parser initializer.
922 (cplus_language_data): Likewise.
923 (asm_language_data): Likewise.
924 (minimal_language_data): Likewise.
925 * d-lang.c (d_language_data): Likewise.
926 (d_language::parser): New member function.
927 * f-lang.c (f_language_data): Delete la_parser initializer.
928 (f_language::parser): New member function.
929 * go-lang.c (go_language_data): Delete la_parser initializer.
930 (go_language::parser): New member function.
931 * language.c (unk_lang_parser): Delete.
932 (language_defn::parser): Define new member function.
933 (unknown_language_data): Delete la_parser initializer.
934 (unknown_language::parser): New member function.
935 (auto_language_data): Delete la_parser initializer.
936 (auto_language::parser): New member function.
937 * language.h (language_data): Delete la_parser field.
938 (language_defn::parser): Declare new member function.
939 * m2-lang.c (m2_language_data): Delete la_parser initializer.
940 (m2_language::parser): New member function.
941 * objc-lang.c (objc_language_data): Delete la_parser initializer.
942 * opencl-lang.c (opencl_language_data): Likewise.
943 * p-lang.c (pascal_language_data): Likewise.
944 (pascal_language::parser): New member function.
945 * parse.c (parse_exp_in_context): Update call to parser.
946 * rust-lang.c (rust_language_data): Delete la_parser initializer.
947 (rust_language::parser): New member function.
949 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
951 * top.c (print_gdb_configuration): Print --with-python-libdir
954 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
956 * NEWS: Mention change to the alias command.
958 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
960 * cli/cli-cmds.c (lookup_cmd_for_default_args)
961 (alias_command_completer)
962 (make_alias_options_def_group): New functions.
963 (alias_opts, alias_option_defs): New struct and array.
964 (alias_usage_error): Update usage.
965 (alias_command): Handles optional DEFAULT-ARGS... arguments.
966 Use option framework.
967 (_initialize_cli_cmds): Update alias command help.
968 Update aliases command help.
970 Add NULL for new default_args lookup_cmd argument.
971 (valid_command_p): Rename to validate_aliased_command.
972 Add NULL for new default_args lookup_cmd argument. Verify that the
973 aliased_command has no default args.
974 * cli/cli-decode.c (help_cmd): Show aliases definitions.
975 (lookup_cmd_1, lookup_cmd): New argument default_args.
977 Add NULL for new default_args lookup_cmd argument.
978 (print_help_for_command): Show default args under the layout
979 alias some_alias = some_aliased_cmd some_alias_default_arg.
980 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
981 xfree default_args in destructor.
982 * cli/cli-script.c (process_next_line, do_define_command):
983 Add NULL for new default_args lookup_cmd argument.
984 * command.h: Declare new default_args argument in lookup_cmd
986 * completer.c (complete_line_internal_1):
987 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
988 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
989 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
991 * infcmd.c (_initialize_infcmd): Likewise.
992 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
993 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
994 * python/py-param.c (add_setshow_generic): Likewise.
995 * remote.c (_initialize_remote): Likewise.
996 * top.c (execute_command): Prepend default_args if command has some.
998 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
999 * tracepoint.c (validate_actionline, encode_actions_1):
1000 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1002 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1004 * jit.c (jit_read_descriptor): Use bool as the return type.
1005 (jit_breakpoint_re_set_internal): Use bool as the return type.
1006 Invert the return value logic; return true if the jit breakpoint
1007 has been successfully initialized.
1008 (jit_inferior_init): Update the call to
1009 jit_breakpoint_re_set_internal.
1011 2020-06-22 Pedro Alves <palves@redhat.com>
1014 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1015 Use the current inferior instead. Don't return
1016 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1018 * sol-thread.c (sol_thread_target::wait): Don't reference
1020 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1021 (sol_update_thread_list_callback): Use the current inferior's pid
1022 instead of inferior_ptid.
1024 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1026 * procfs.c: Cleanup many comments.
1028 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1029 (AFTER_WATCHFLAG): Replace by value.
1031 (MAIN_PROC_NAME_FORMAT): Inline ...
1032 (create_procinfo): ... here.
1034 (procfs_debug_inferior): Remove SYS_exec handling.
1035 (syscall_is_exec): Likewise.
1036 (procfs_set_exec_trap): Likewise.
1038 (syscall_is_lwp_exit): Inline in callers.
1039 (syscall_is_exit): Likewise.
1040 (syscall_is_exec): Likewise.
1041 (syscall_is_lwp_create): Likewise.
1043 (invalidate_cache): Remove #if 0 code.
1045 (make_signal_thread_runnable): Remove.
1046 (procfs_target::resume): Remove #if 0 code.
1048 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1051 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1053 (procfs_target::create_inferior): ... here.
1055 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1057 * exec.c (validate_exec_file): Ensure the build-id is up to
1058 date by calling reopen_exec_file (that checks file timestamp
1059 to decide to re-read the file).
1061 2020-06-18 Pedro Alves <palves@redhat.com>
1064 * gdbthread.h (delete_thread, delete_thread_silent)
1065 (find_thread_ptid): Update comments.
1066 * thread.c (current_thread_): New global.
1067 (is_current_thread): Move higher, and reimplement.
1068 (inferior_thread): Reimplement.
1069 (set_thread_exited): Use bool. Add assertions.
1070 (add_thread_silent): Simplify thread-reuse handling by always
1071 calling delete_thread.
1072 (delete_thread): Remove intro comment.
1073 (find_thread_ptid): Skip exited threads.
1074 (switch_to_thread_no_regs): Write to current_thread_.
1075 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1076 INFERIOR_PTID. Clear current_thread_.
1078 2020-06-18 Pedro Alves <palves@redhat.com>
1080 * aix-thread.c (pd_update): Use switch_to_thread.
1082 2020-06-18 Pedro Alves <palves@redhat.com>
1084 * ravenscar-thread.c (ravenscar_thread_target): Update.
1085 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1086 (ravenscar_thread_target::add_active_thread): ... this. Don't
1087 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1088 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1090 2020-06-18 Pedro Alves <palves@redhat.com>
1092 * nat/windows-nat.c (current_windows_thread): Remove.
1093 * nat/windows-nat.h (current_windows_thread): Remove.
1094 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1096 (display_selectors): Adjust to fetch the current
1097 windows_thread_info based on inferior_ptid.
1098 (fake_create_process): No longer write to current_windows_thread.
1099 (windows_nat_target::get_windows_debug_event):
1100 Don't set inferior_ptid or current_windows_thread.
1101 (windows_nat_target::wait): Adjust to not rely on
1102 current_windows_thread.
1103 (do_initial_windows_stuff): Now a method of windows_nat_target.
1104 Switch to the last_ptid thread.
1105 (windows_nat_target::attach): Adjust.
1106 (windows_nat_target::detach): Use switch_to_no_thread instead of
1107 writing to inferior_ptid directly.
1108 (windows_nat_target::create_inferior): Adjust.
1110 2020-06-18 Pedro Alves <palves@redhat.com>
1112 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1114 2020-06-18 Pedro Alves <palves@redhat.com>
1116 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1117 after creating it, instead of writing to inferior_ptid. Don't
1118 write to inferior_ptid.
1120 2020-06-18 Pedro Alves <palves@redhat.com>
1122 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1124 2020-06-18 Pedro Alves <palves@redhat.com>
1126 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1127 it, instead of writing to inferior_ptid.
1129 2020-06-18 Pedro Alves <palves@redhat.com>
1131 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1134 2020-06-18 Pedro Alves <palves@redhat.com>
1136 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1137 instead of writing to inferior_ptid directly.
1139 2020-06-18 Pedro Alves <palves@redhat.com>
1141 * corelow.c (core_target::close): Use switch_to_no_thread instead
1142 of writing to inferior_ptid directly.
1143 (add_to_thread_list, core_target_open): Use switch_to_thread
1144 instead of writing to inferior_ptid directly.
1146 2020-06-18 Pedro Alves <palves@redhat.com>
1148 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1150 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1152 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1153 inferior_ptid directly.
1154 (darwin_nat_target::init_thread_list): Switch to thread, instead
1155 of writing to inferior_ptid.
1156 (darwin_nat_target::attach): Don't write to inferior_ptid.
1157 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1159 2020-06-18 Pedro Alves <palves@redhat.com>
1161 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1163 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1164 Instead use switch_to_thread.
1165 (gnu_nat_target::detach): Use switch_to_no_thread
1166 instead of writing to inferior_ptid directly. Used passed-in
1167 inferior instead of looking up the inferior by pid.
1169 2020-06-18 Pedro Alves <palves@redhat.com>
1171 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1174 2020-06-18 Pedro Alves <palves@redhat.com>
1176 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1178 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1180 (nto_procfs_target::detach): Avoid referencing
1181 inferior_ptid. Use switch_to_no_thread instead of writing to
1182 inferior_ptid directly.
1183 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1184 instead of writing to inferior_ptid directly.
1185 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1188 2020-06-18 Pedro Alves <palves@redhat.com>
1190 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1191 after creating it, instead of writing to inferior_ptid.
1192 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1193 to inferior_ptid directly.
1194 (gdbsim_target::wait): Don't write to inferior_ptid.
1196 2020-06-18 Pedro Alves <palves@redhat.com>
1198 * remote.c (remote_target::remote_notice_new_inferior): Use
1199 switch_to_thread instead of writing to inferior_ptid directly.
1200 (remote_target::add_current_inferior_and_thread): Use
1201 switch_to_no_thread instead of writing to inferior_ptid directly.
1202 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1203 and switch_to_thread instead of using set_current_inferior or
1204 writing to inferior_ptid directly.
1206 2020-06-18 Pedro Alves <palves@redhat.com>
1208 * tracectf.c (ctf_target_open): Switch to added thread instead of
1209 writing to inferior_ptid directly.
1210 (ctf_target::close): Use switch_to_no_thread instead of writing to
1211 inferior_ptid directly.
1213 2020-06-18 Pedro Alves <palves@redhat.com>
1215 * tracefile-tfile.c (tfile_target_open): Don't write to
1216 inferior_ptid directly, instead switch to added thread.
1217 (tfile_target::close): Use switch_to_no_thread instead of writing
1218 to inferior_ptid directly.
1220 2020-06-18 Pedro Alves <palves@redhat.com>
1222 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1223 (procfs_target::detach): Use switch_to_no_thread
1224 instead of writing to inferior_ptid directly.
1225 (do_attach): Change return type to void. Switch to the added
1227 (procfs_target::create_inferior): Switch to the added thread.
1228 (procfs_do_thread_registers): Don't write to inferior_ptid.
1230 2020-06-18 Pedro Alves <palves@redhat.com>
1232 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1233 of writing to inferior_ptid.
1234 (scoped_restore_exited_inferior): Delete.
1235 (handle_vfork_child_exec_or_exit): Simplify using
1236 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1237 instead of writing to inferior_ptid.
1238 (THREAD_STOPPED_BY): Delete.
1239 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1240 (thread_stopped_by_hw_breakpoint): Delete.
1241 (save_waitstatus): Use
1242 scoped_restore_current_thread+switch_to_thread, and call
1243 target_stopped_by_watchpoint instead of
1244 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1245 instead of thread_stopped_by_sw_breakpoint, and
1246 target_stopped_by_hw_breakpoint instead of
1247 thread_stopped_by_hw_breakpoint.
1248 (handle_inferior_event)
1249 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1250 inferior_ptid directly, nor
1251 set_current_inferior/set_current_program_space. Use
1252 switch_to_thread / switch_to_inferior_no_thread instead.
1254 2020-06-18 Pedro Alves <palves@redhat.com>
1256 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1257 instead of writing to inferior_ptid.
1259 2020-06-18 Pedro Alves <palves@redhat.com>
1261 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1263 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1264 to the added thread.
1265 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1266 instead of writing to inferior_ptid.
1268 2020-06-18 Pedro Alves <palves@redhat.com>
1270 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1271 (register_to_value_test): Mock a program_space too. Heap-allocate
1272 the address space. Don't write to inferior_ptid. Use
1273 switch_to_thread instead.
1275 2020-06-18 Pedro Alves <palves@redhat.com>
1277 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1279 (find_signalled_thread()): New, factored out from
1280 linux_make_corefile_notes and adjusted to handle exited threads.
1281 (linux_make_corefile_notes): Adjust to use the new
1282 find_signalled_thread.
1284 2020-06-18 Pedro Alves <palves@redhat.com>
1286 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1287 of saving/restoring inferior_ptid.
1289 2020-06-17 Tom Tromey <tom@tromey.com>
1291 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1292 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1294 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1296 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
1298 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1301 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1303 * regformats/reg-arm.dat: Remove.
1304 * regformats/reg-bfin.dat: Remove.
1305 * regformats/reg-cris.dat: Remove.
1306 * regformats/reg-crisv32.dat: Remove.
1307 * regformats/reg-m32r.dat: Remove.
1308 * regformats/reg-tilegx.dat: Remove.
1309 * regformats/reg-tilegx32.dat: Remove.
1311 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1313 * features/Makefile (WHICH): Remove arm files.
1314 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1315 * regformats/arm/arm-with-neon.dat: Remove.
1316 * regformats/arm/arm-with-vfpv2.dat: Remove.
1317 * regformats/arm/arm-with-vfpv3.dat: Remove.
1319 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1321 * features/Makefile (XMLTOC): Remove rx.xml.
1323 2020-06-17 Pedro Alves <palves@redhat.com>
1325 * gdbthread.h (thread_control_state) <trap_expected> Update
1328 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1330 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1331 ada_language::lookup_symbol_nonlocal.
1332 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1333 (ada_language::lookup_symbol_nonlocal): New member function,
1334 implementation from ada_lookup_symbol_nonlocal.
1335 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1337 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1339 (cplus_language::lookup_symbol_nonlocal): New member function.
1340 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1341 (minimal_language_data) Likewise.
1342 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1343 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1345 (d_language::lookup_symbol_nonlocal): New member function.
1346 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1348 (f_language::lookup_symbol_nonlocal): New member function.
1349 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1351 * language.c (unknown_language_data): Likewise.
1352 (auto_language_data): Likewise.
1353 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1355 (language_defn::lookup_symbol_nonlocal): New member function.
1356 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1358 * objc-lang.c (objc_language_data): Likewise.
1359 * opencl-lang.c (opencl_language_data): Likewise.
1360 * p-lang.c (pascal_language_data): Likewise.
1361 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1362 rust_language::lookup_symbol_nonlocal.
1363 (rust_language_data): Delete la_lookup_symbol_nonlocal
1365 (rust_language::lookup_symbol_nonlocal): New member function,
1366 implementation from rust_lookup_symbol_nonlocal.
1367 * symtab.c (lookup_symbol_aux): Update call to
1368 lookup_symbol_nonlocal.
1369 (basic_lookup_symbol_nonlocal): Rename to...
1370 (language_defn::lookup_symbol_nonlocal): ...this, and update
1371 header comment. Remove language_defn parameter, and replace with
1373 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1375 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1377 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1379 (ada_language::value_print_inner): New member function.
1380 * c-lang.c (c_language_data): Delete la_value_print_inner
1382 (cplus_language_data): Likewise.
1383 (asm_language_data): Likewise.
1384 (minimal_language_data): Likewise.
1385 * d-lang.c (d_language_data): Likewise.
1386 (d_language::value_print_inner): New member function.
1387 * f-lang.c (f_language_data): Delete la_value_print_inner
1389 (f_language::value_print_inner): New member function.
1390 * f-lang.h (f_value_print_innner): Rename to...
1391 (f_value_print_inner): ...this (note spelling of 'inner').
1392 * f-valprint.c (f_value_print_innner): Rename to...
1393 (f_value_print_inner): ...this (note spelling of 'inner').
1394 * go-lang.c (go_language_data): Delete la_value_print_inner
1396 (go_language::value_print_inner): New member function.
1397 * language.c (language_defn::value_print_inner): Define new member
1399 (unk_lang_value_print_inner): Delete.
1400 (unknown_language_data): Delete la_value_print_inner initializer.
1401 (unknown_language::value_print_inner): New member function.
1402 (auto_language_data): Delete la_value_print_inner initializer.
1403 (auto_language::value_print_inner): New member function.
1404 * language.h (language_data): Delete la_value_print_inner field.
1405 (language_defn::value_print_inner): Delcare new member function.
1406 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1408 (m2_language::value_print_inner): New member function.
1409 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1411 * opencl-lang.c (opencl_language_data): Likewise.
1412 * p-lang.c (pascal_language_data): Likewise.
1413 (pascal_language::value_print_inner): New member function.
1414 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1416 (rust_language::value_print_inner): New member function.
1417 * valprint.c (do_val_print): Update call to value_print_inner.
1419 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1421 * ada-lang.c (ada_language_data): Delete la_value_print
1423 (ada_language::value_print): New member function.
1424 * c-lang.c (c_language_data): Delete la_value_print initializer.
1425 (cplus_language_data): Likewise.
1426 (asm_language_data): Likewise.
1427 (minimal_language_data): Likewise.
1428 * d-lang.c (d_language_data): Likewise.
1429 * f-lang.c (f_language_data): Likewise.
1430 * go-lang.c (go_language_data): Likewise.
1431 * language.c (unk_lang_value_print): Delete.
1432 (language_defn::value_print): Define new member function.
1433 (unknown_language_data): Delete la_value_print initializer.
1434 (unknown_language::value_print): New member function.
1435 (auto_language_data): Delete la_value_print initializer.
1436 (auto_language::value_print): New member function.
1437 * language.h (language_data): Delete la_value_print field.
1438 (language_defn::value_print): Declare new member function.
1439 (LA_VALUE_PRINT): Update call to value_print.
1440 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1441 * objc-lang.c (objc_language_data): Likewise.
1442 * opencl-lang.c (opencl_language_data): Likewise.
1443 * p-lang.c (pascal_language_data): Likewise.
1444 (pascal_language::value_print): New member function.
1445 * rust-lang.c (rust_language_data): Delete la_value_print
1448 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1450 * ada-lang.c (ada_watch_location_expression): Rename to
1451 ada_language::watch_location_expression.
1452 (ada_language_data): Delete la_watch_location_expression
1454 (ada_language::watch_location_expression): New member function,
1455 implementation from ada_watch_location_expression.
1456 * breakpoint.c (watch_command_1): Update call to
1457 watch_location_expression.
1458 * c-lang.c (c_watch_location_expression): Rename to
1459 language_defn::watch_location_expression.
1460 (c_language_data): Delete la_watch_location_expression
1462 (cplus_language_data): Likewise.
1463 (asm_language_data): Likewise.
1464 (minimal_language_data): Likewise.
1465 * c-lang.h (c_watch_location_expression): Delete declaration.
1466 * d-lang.c (d_language_data): Delete la_watch_location_expression
1468 * f-lang.c (f_language_data): Likewise.
1469 * go-lang.c (go_language_data): Likewise.
1470 * language.c (language_defn::watch_location_expression): Member
1471 function implementation from c_watch_location_expression.
1472 (unknown_language_data): Delete la_watch_location_expression
1474 (auto_language_data): Likewise.
1475 * language.h (language_data): Delete la_watch_location_expression
1477 (language_defn::watch_location_expression): Declare new member
1479 * m2-lang.c (m2_language_data): Delete
1480 la_watch_location_expression initializer.
1481 * objc-lang.c (objc_language_data): Likewise.
1482 * opencl-lang.c (opencl_language_data): Likewise.
1483 * p-lang.c (pascal_language_data): Likewise.
1484 * rust-lang.c (rust_watch_location_expression): Rename to
1485 rust_language::watch_location_expression.
1486 (rust_language_data): Delete la_watch_location_expression
1488 (rust_language::watch_location_expression): New member function,
1489 implementation from rust_watch_location_expression.
1491 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1493 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1494 ada_language::collect_symbol_completion_matches.
1495 (ada_language_data): Delete la_collect_symbol_completion_matches
1497 (ada_language::collect_symbol_completion_matches): New member
1498 function, implementation from
1499 ada_collect_symbol_completion_matches.
1500 * c-lang.c (c_language_data): Delete
1501 la_collect_symbol_completion_matches initializer.
1502 (cplus_language_data): Likewise.
1503 (asm_language_data): Likewise.
1504 (minimal_language_data): Likewise.
1505 * d-lang.c (d_language_data): Likewise.
1506 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1507 f_language::collect_symbol_completion_matches.
1508 (f_language_data): Delete la_collect_symbol_completion_matches
1510 (f_language::collect_symbol_completion_matches) New member
1511 function, implementation from f_collect_symbol_completion_matches.
1512 * go-lang.c (go_language_data): Delete
1513 la_collect_symbol_completion_matches initializer.
1514 * language.c (unknown_language_data): Likewise.
1515 (auto_language_data): Likewise.
1516 * language.h (language_data): Delete
1517 la_collect_symbol_completion_matches field.
1518 (language_defn::collect_symbol_completion_matches): New member
1520 * m2-lang.c (m2_language_data): Delete
1521 la_collect_symbol_completion_matches initializer.
1522 * objc-lang.c (objc_language_data): Likewise.
1523 * opencl-lang.c (opencl_language_data): Likewise.
1524 * p-lang.c (pascal_language_data): Likewise.
1525 * rust-lang.c (rust_language_data): Likewise.
1526 * symtab.c (default_collect_symbol_completion_matches): Delete.
1527 (collect_symbol_completion_matches): Update call to
1528 collect_symbol_completion_matches.
1529 (collect_symbol_completion_matches_type): Likewise.
1530 * symtab.h (default_collect_symbol_completion_matches): Delete
1533 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1535 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1536 (ada_language_data): Delete la_word_break_characters initializer.
1537 (ada_language::word_break_characters): New member function.
1538 * c-lang.c (c_language_data): Delete la_word_break_characters
1540 (cplus_language_data): Likewise.
1541 (asm_language_data): Likewise.
1542 (minimal_language_data): Likewise.
1543 * completer.c: Update global comment.
1544 (advance_to_expression_complete_word_point): Update call to
1545 word_break_characters.
1546 (complete_files_symbols): Likewise.
1547 (complete_line_internal_1): Likewise.
1548 (default_completer_handle_brkchars): Likewise.
1549 (skip_quoted_chars): Likewise.
1550 * d-lang.c (d_language_data): Delete la_word_break_characters
1552 * f-lang.c (f_word_break_characters): Delete.
1553 (f_language_data): Delete la_word_break_characters initializer.
1554 (f_language::word_break_characters): New member function.
1555 * go-lang.c (go_language_data): Delete la_word_break_characters
1557 * language.c (unknown_language_data): Likewise.
1558 (auto_language_data): Likewise.
1559 * language.h (default_word_break_characters): Move declaration to
1560 earlier in the file.
1561 (language_data): Delete la_word_break_characters field.
1562 (language_defn::word_break_characters): New member function.
1563 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1565 * objc-lang.c (objc_language_data): Likewise.
1566 * opencl-lang.c (opencl_language_data): Likewise.
1567 * p-lang.c (pascal_language_data): Likewise.
1568 * rust-lang.c (rust_language_data): Likewise.
1570 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1572 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1573 (ada_language_data): Delete la_get_symbol_name_matcher
1575 (language_defn::get_symbol_name_matcher_inner): New member
1577 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1579 (cplus_language_data): Likewise.
1580 (cplus_language::get_symbol_name_matcher_inner): New member
1582 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1583 (minimal_language_data): Likewise.
1584 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1585 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1587 * dictionary.c (iter_match_first_hashed): Update call to
1588 get_symbol_name_matcher.
1589 (iter_match_next_hashed): Likewise.
1590 (iter_match_next_linear): Likewise.
1591 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1592 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1594 (f_language::get_symbol_name_matcher_inner): New member function.
1595 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1597 * language.c (default_symbol_name_matcher): Update header comment,
1599 (language_defn::get_symbol_name_matcher): New definition.
1600 (language_defn::get_symbol_name_matcher_inner): Likewise.
1601 (get_symbol_name_matcher): Delete.
1602 (unknown_language_data): Delete la_get_symbol_name_matcher
1604 (auto_language_data): Likewise.
1605 * language.h (language_data): Delete la_get_symbol_name_matcher
1607 (language_defn::get_symbol_name_matcher): New member function.
1608 (language_defn::get_symbol_name_matcher_inner): Likewise.
1609 (default_symbol_name_matcher): Delete declaration.
1610 * linespec.c (find_methods): Update call to
1611 get_symbol_name_matcher.
1612 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1614 * minsyms.c (lookup_minimal_symbol): Update call to
1615 get_symbol_name_matcher.
1616 (iterate_over_minimal_symbols): Likewise.
1617 * objc-lang.c (objc_language_data): Delete
1618 la_get_symbol_name_matcher initializer.
1619 * opencl-lang.c (opencl_language_data): Likewise.
1620 * p-lang.c (pascal_language_data): Likewise.
1621 * psymtab.c (psymbol_name_matches): Update call to
1622 get_symbol_name_matcher.
1623 * rust-lang.c (rust_language_data): Delete
1624 la_get_symbol_name_matcher initializer.
1625 * symtab.c (symbol_matches_search_name): Update call to
1626 get_symbol_name_matcher.
1627 (compare_symbol_name): Likewise.
1629 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1631 * ada-lang.c (ada_language_data): Delete la_compute_program
1633 * c-lang.c (c_language_data): Likewise.
1634 (c_language::compute_program): New member function.
1635 (cplus_language_data): Delete la_compute_program initializer.
1636 (cplus_language::compute_program): New member function.
1637 (asm_language_data): Delete la_compute_program initializer.
1638 (minimal_language_data): Likewise.
1639 * c-lang.h (c_compute_program): Update comment.
1640 (cplus_compute_program): Likewise.
1641 * compile/compile-c-support.c (c_compute_program): Likewise.
1642 (cplus_compute_program): Likewise.
1643 * compile/compile.c (compile_to_object): Update call to
1645 * d-lang.c (d_language_data): Delete la_compute_program
1647 * f-lang.c (f_language_data): Likewise.
1648 * go-lang.c (go_language_data): Likewise.
1649 * language.c (unknown_language_data): Likewise.
1650 (auto_language_data): Likewise.
1651 * language.h (language_data): Delete la_compute_program field.
1652 (language_defn::compute_program): New member function.
1653 * m2-lang.c (m2_language_data): Delete la_compute_program
1655 * objc-lang.c (objc_language_data): Likewise.
1656 * opencl-lang.c (opencl_language_data): Likewise.
1657 * p-lang.c (pascal_language_data): Likewise.
1658 * rust-lang.c (rust_language_data): Likewise.
1660 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1662 * ada-lang.c (ada_language_data) Delete
1663 la_class_name_from_physname initializer.
1664 * c-lang.c (c_language_data): Likewise.
1665 (cplus_language_data): Likewise.
1666 (cplus_language::class_name_from_physname): New member function.
1667 (asm_language_data): Delete la_class_name_from_physname
1669 (minimal_language_data): Likewise.
1670 * d-lang.c (d_language_data): Likewise.
1671 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1672 method on language_defn class.
1673 (guess_full_die_structure_name): Likewise.
1674 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1676 * go-lang.c (go_language_data): Likewise.
1677 * language.c (language_class_name_from_physname): Delete.
1678 (unk_lang_class_name): Delete.
1679 (unknown_language_data): Delete la_class_name_from_physname
1681 (auto_language_data): Likewise.
1682 * language.h (language_data): Delete la_class_name_from_physname
1684 (language_defn::class_name_from_physname): New function.
1685 (language_class_name_from_physname): Delete declaration.
1686 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1688 * objc-lang.c (objc_language_data): Likewise.
1689 * opencl-lang.c (opencl_language_data): Likewise.
1690 * p-lang.c (pascal_language_data): Likewise.
1691 * rust-lang.c (rust_language_data): Likewise.
1693 2020-06-16 Tom Tromey <tom@tromey.com>
1695 * tui/tui-data.h (STATUS_NAME): New macro.
1696 * tui/tui-layout.c (tui_remove_some_windows)
1697 (initialize_known_windows, tui_register_window)
1698 (tui_layout_split::remove_windows, initialize_layouts)
1699 (tui_new_layout_command): Don't use hard-coded window names.
1701 2020-06-16 Tom Tromey <tom@tromey.com>
1704 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1705 tui_initialize_readline. Only run once. Call rl_initialize.
1706 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1707 tui_initialize_readline.
1708 * tui/tui-io.c (tui_setup_io): Call
1709 tui_ensure_readline_initialized.
1710 * tui/tui-interp.c (tui_interp::init): Update.
1712 2020-06-16 Tom Tromey <tom@tromey.com>
1714 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1715 Also preserve the status window.
1717 2020-06-16 Tom Tromey <tom@tromey.com>
1719 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1720 where m_window==nullptr.
1722 2020-06-15 Tom Tromey <tromey@adacore.com>
1724 * windows-nat.c (windows_nat::handle_output_debug_string):
1726 (windows_nat::handle_ms_vc_exception): Update.
1727 * target.h (target_read_string): Change API.
1728 * target.c (target_read_string): Change API.
1729 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1731 * solib-frv.c (frv_current_sos): Update.
1732 * solib-dsbt.c (dsbt_current_sos): Update.
1733 * solib-darwin.c (darwin_current_sos): Update.
1734 * linux-thread-db.c (inferior_has_bug): Update.
1735 * expprint.c (print_subexp_standard): Update.
1736 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1737 (ada_exception_message_1): Update.
1739 2020-06-15 Tom Tromey <tromey@adacore.com>
1741 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1743 2020-06-15 Tom Tromey <tromey@adacore.com>
1745 * valprint.c (read_string): Update comment.
1746 * target.c (MIN): Remove.
1747 (target_read_string): Rewrite.
1749 2020-06-15 Tom Tromey <tromey@adacore.com>
1751 * corefile.c (read_memory_string): Remove.
1752 * ada-valprint.c (ada_value_print_ptr): Update.
1753 * ada-lang.h (ada_tag_name): Change return type.
1754 * ada-lang.c (type_from_tag): Update.
1755 (ada_tag_name_from_tsd): Change return type. Use
1757 (ada_tag_name): Likewise.
1758 * gdbcore.h (read_memory_string): Don't declare.
1760 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
1762 * symtab.c (rbreak_command): Ignore Windows drive colon.
1764 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
1766 * NEWS: Mention removed GDBserver host support.
1768 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
1770 * features/riscv/rebuild-csr-xml.sh: Updated.
1772 2020-06-11 Tom Tromey <tom@tromey.com>
1775 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1777 2020-06-09 Jonny Grant <jg@jguk.org>
1778 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1780 * main.c (captured_main_1): Don't print new line after help.
1781 (print_gdb_help): add mailing list and IRC channel information
1782 to --help. Add new lines between items in the footer. Remove
1783 quotes around bug url.
1785 2020-06-11 Keith Seitz <keiths@redhat.com>
1788 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1789 Resolve typedefs for type length calculations.
1791 2020-06-10 Tom de Vries <tdevries@suse.de>
1794 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1795 (write_psymbols): Enable .gdb_index for ada.
1796 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1799 2020-06-10 Tom de Vries <tdevries@suse.de>
1801 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1802 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1803 namei" instead of "const char *name" argument.
1804 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1805 dw2_symtab_iter_init.
1807 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
1809 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1810 to use type::field and field::type instead.
1812 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
1814 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1815 to use field::type instead.
1817 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
1819 * gdbtypes.h (struct field) <type, set_type>: New methods.
1820 Rename `type` field to...
1821 <m_type>: ... this. Change references throughout to use type or
1823 (FIELD_TYPE): Use field::type. Change call sites that modify
1824 the field's type to use field::set_type instead.
1826 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
1828 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1829 to use type::index_type instead.
1831 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
1833 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1835 (TYPE_INDEX_TYPE): Use type::index_type.
1836 * gdbtypes.c (create_array_type_with_stride): Likewise.
1838 2020-06-07 Tom Tromey <tom@tromey.com>
1840 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1842 (generic_value_print): Update.
1844 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1846 Revert commit 982a38f60b0.
1847 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1849 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1851 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1852 avoid use after free.
1854 2020-06-05 Tom de Vries <tdevries@suse.de>
1858 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
1860 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1862 (dwarf2_read_debug_names): Likewise.
1863 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1864 object when re-using a per_bfd object with an index.
1866 2020-06-03 Tom de Vries <tdevries@suse.de>
1869 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1871 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1874 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1876 * ada-lang.c (ada_language_data): Delete skip_trampoline
1878 * c-lang.c (c_language_data): Likewise.
1879 (cplus_language_data): Likewise.
1880 (cplus_language::skip_trampoline): New member function.
1881 (asm_language_data): Delete skip_trampoline initializer.
1882 (minimal_language_data): Likewise.
1883 * d-lang.c (d_language_data): Likewise.
1884 * f-lang.c (f_language_data): Likewise.
1885 * go-lang.c (go_language_data): Likewise.
1886 * language.c (unk_lang_trampoline): Delete function.
1887 (skip_language_trampoline): Update.
1888 (unknown_language_data): Delete skip_trampoline initializer.
1889 (auto_language_data): Likewise.
1890 * language.h (language_data): Delete skip_trampoline field.
1891 (language_defn::skip_trampoline): New function.
1892 * m2-lang.c (m2_language_data): Delete skip_trampoline
1894 * objc-lang.c (objc_skip_trampoline): Delete function, move
1895 implementation to objc_language::skip_trampoline.
1896 (objc_language_data): Delete skip_trampoline initializer.
1897 (objc_language::skip_trampoline): New member function with
1898 implementation from objc_skip_trampoline.
1899 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1901 * p-lang.c (pascal_language_data): Likewise.
1902 * rust-lang.c (rust_language_data): Likewise.
1904 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1906 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1907 (ada_language::demangle): New member function.
1908 * c-lang.c (c_language_data): Delete la_demangle initializer.
1909 (cplus_language_data): Delete la_demangle initializer.
1910 (cplus_language::demangle): New member function.
1911 (asm_language_data): Delete la_demangle initializer.
1912 (minimal_language_data): Delete la_demangle initializer.
1913 * d-lang.c (d_language_data): Delete la_demangle initializer.
1914 (d_language::demangle): New member function.
1915 * f-lang.c (f_language_data): Delete la_demangle initializer.
1916 (f_language::demangle): New member function.
1917 * go-lang.c (go_language_data): Delete la_demangle initializer.
1918 (go_language::demangle): New member function.
1919 * language.c (language_demangle): Update.
1920 (unk_lang_demangle): Delete.
1921 (unknown_language_data): Delete la_demangle initializer.
1922 (unknown_language::demangle): New member function.
1923 (auto_language_data): Delete la_demangle initializer.
1924 (auto_language::demangle): New member function.
1925 * language.h (language_data): Delete la_demangle field.
1926 (language_defn::demangle): New function.
1927 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1928 * objc-lang.c (objc_language_data): Delete la_demangle
1930 (objc_language::demangle): New member function.
1931 * opencl-lang.c (opencl_language_data): Delete la_demangle
1933 * p-lang.c (pascal_language_data): Likewise.
1934 * rust-lang.c (rust_language_data): Likewise.
1935 (rust_language::demangle): New member function.
1937 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1939 * ada-lang.c (ada_language_data): Delete la_print_type
1941 (ada_language::print_type): New member function.
1942 * c-lang.c (c_language_data): Delete la_print_type initializer.
1943 (c_language::print_type): New member function.
1944 (cplus_language_data): Delete la_print_type initializer.
1945 (cplus_language::print_type): New member function.
1946 (asm_language_data): Delete la_print_type initializer.
1947 (asm_language::print_type): New member function.
1948 (minimal_language_data): Delete la_print_type initializer.
1949 (minimal_language::print_type): New member function.
1950 * d-lang.c (d_language_data): Delete la_print_type initializer.
1951 (d_language::print_type): New member function.
1952 * f-lang.c (f_language_data): Delete la_print_type initializer.
1953 (f_language::print_type): New member function.
1954 * go-lang.c (go_language_data): Delete la_print_type initializer.
1955 (go_language::print_type): New member function.
1956 * language.c (unk_lang_print_type): Delete.
1957 (unknown_language_data): Delete la_print_type initializer.
1958 (unknown_language::print_type): New member function.
1959 (auto_language_data): Delete la_print_type initializer.
1960 (auto_language::print_type): New member function.
1961 * language.h (language_data): Delete la_print_type field.
1962 (language_defn::print_type): New function.
1963 (LA_PRINT_TYPE): Update.
1964 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1965 (m2_language::print_type): New member function.
1966 * objc-lang.c (objc_language_data): Delete la_print_type
1968 (objc_language::print_type): New member function.
1969 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1970 to opencl_language::print_type.
1971 (opencl_language_data): Delete la_print_type initializer.
1972 (opencl_language::print_type): New member function, implementation
1973 from opencl_print_type.
1974 * p-lang.c (pascal_language_data): Delete la_print_type
1976 (pascal_language::print_type): New member function.
1977 * rust-lang.c (rust_print_type): Delete, implementation moved to
1978 rust_language::print_type.
1979 (rust_language_data): Delete la_print_type initializer.
1980 (rust_language::print_type): New member function, implementation
1981 from rust_print_type.
1983 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1985 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1986 implementation moves to...
1987 (ada_language::sniff_from_mangled_name): ...here. Update return
1989 (ada_language_data): Delete la_sniff_from_mangled_name
1991 * c-lang.c (c_language_data): Likewise.
1992 (cplus_language_data): Likewise.
1993 (cplus_language::sniff_from_mangled_name): New member function,
1994 implementation taken from gdb_sniff_from_mangled_name.
1995 (asm_language_data): Delete la_sniff_from_mangled_name
1997 (minimal_language_data): Likewise.
1998 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1999 implementation moves to cplus_language::sniff_from_mangled_name.
2000 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2001 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2003 (d_language::sniff_from_mangled_name): ...here.
2004 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2005 * f-lang.c (f_language_data): Likewise.
2006 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2008 (go_language::sniff_from_mangled_name): ...here.
2009 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2010 * language.c (language_sniff_from_mangled_name): Delete.
2011 (unknown_language_data): Delete la_sniff_from_mangled_name
2013 (auto_language_data): Likewise.
2014 * language.h (language_data): Delete la_sniff_from_mangled_name
2016 (language_defn::sniff_from_mangled_name): New function.
2017 (language_sniff_from_mangled_name): Delete declaration.
2018 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2020 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2021 implementation moves to...
2022 (objc_language::sniff_from_mangled_name): ...here.
2023 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2024 * opencl-lang.c (opencl_language_data): Likewise.
2025 * p-lang.c (pascal_language_data): Likewise.
2026 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2027 implementation moves to...
2028 (rust_language::sniff_from_mangled_name): ...here.
2029 (rust_language_data): Delete la_sniff_from_mangled_name
2031 * symtab.c (symbol_find_demangled_name): Call
2032 sniff_from_mangled_name member function.
2034 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2036 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2038 * c-lang.c (c_language_data): Likewise.
2039 (cplus_language_data): Likewise.
2040 (cplus_language::search_name_hash): New member function.
2041 (asm_language_data): Delete la_search_name_hash initializer.
2042 (minimal_language_data): Likewise.
2043 * d-lang.c (d_language_data): Likewise.
2044 * dictionary.c (default_search_name_hash): Rename to...
2045 (language_defn::search_name_hash): ...this.
2046 * f-lang.c (f_language_data): Likewise.
2047 (f_language::search_name_hash): New member function.
2048 * go-lang.c (go_language_data): Delete la_search_name_hash
2050 * language.c (unknown_language_data): Likewise.
2051 (auto_language_data): Likewise.
2052 * language.h (struct language_data): Delete la_search_name_hash
2054 (language_defn::search_name_hash): Declare new member function.
2055 (default_search_name_hash): Delete declaration.
2056 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2058 * objc-lang.c (objc_language_data): Likewise.
2059 * opencl-lang.c (opencl_language_data): Likewise.
2060 * p-lang.c (pascal_language_data): Likewise.
2061 * rust-lang.c (rust_language_data): Likewise.
2062 * symtab.c (search_name_hash): Update call.
2064 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2066 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2068 * c-lang.c (class compile_instance): Declare.
2069 (c_language_data): Delete la_get_compile_instance initializer.
2070 (c_language::get_compile_instance): New member function.
2071 (cplus_language_data): Delete la_get_compile_instance initializer.
2072 (cplus_language::get_compile_instance): New member function.
2073 (asm_language_data): Delete la_get_compile_instance initializer.
2074 (minimal_language_data): Likewise.
2075 * c-lang.h (c_get_compile_context): Update comment.
2076 (cplus_get_compile_context): Update comment.
2077 * compile/compile.c (compile_to_object): Update calls, don't rely
2078 on function pointer being NULL.
2079 * d-lang.c (d_language_data): Delete la_get_compile_instance
2081 * f-lang.c (f_language_data): Likewise.
2082 * go-lang.c (go_language_data): Likewise.
2083 * language.c (unknown_language_data): Likewise.
2084 (auto_language_data): Likewise.
2085 * language.h (language_data): Delete la_get_compile_instance field.
2086 (language_defn::get_compile_instance): New member function.
2087 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2089 * objc-lang.c (objc_language_data): Likewise.
2090 * opencl-lang.c (opencl_language_data): Likewise.
2091 * p-lang.c (pascal_language_data): Likewise.
2092 * rust-lang.c (rust_language_data): Likewise.
2094 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2096 * ada-lang.c (ada_add_all_symbols): Update comment.
2097 (ada_iterate_over_symbols): Delete, move implementation to...
2098 (ada_language::iterate_over_symbols): ...here, a new member
2099 function, rewrite to use range based for loop.
2100 (ada_language_data): Delete la_iterate_over_symbols initializer.
2101 * c-lang.c (c_language_data): Likewise.
2102 (cplus_language_data): Likewise.
2103 (asm_language_data): Likewise.
2104 (minimal_language_data): Likewise.
2105 * d-lang.c (d_language_data): Likewise.
2106 * f-lang.c (f_language_data): Likewise.
2107 * go-lang.c (go_language_data): Likewise.
2108 * language.c (unknown_language_data): Likewise.
2109 (auto_language_data): Likewise.
2110 * language.h (language_data): Delete la_iterate_over_symbols field.
2111 (language_defn::iterate_over_symbols): New member function.
2112 (LA_ITERATE_OVER_SYMBOLS): Update.
2113 * linespec.c (iterate_over_all_matching_symtabs): Update.
2114 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2116 * objc-lang.c (objc_language_data): Likewise.
2117 * opencl-lang.c (opencl_language_data): Likewise.
2118 * p-lang.c (pascal_language_data): Likewise.
2119 * rust-lang.c (rust_language_data): Likewise.
2121 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2123 * ada-lang.c (ada_language_data): Delete
2124 la_lookup_transparent_type initializer.
2125 * c-lang.c (c_language_data): Likewise.
2126 (cplus_language_data): Likewise.
2127 (cplus_language::lookup_transparent_type): New member function.
2128 (asm_language_data): Delete la_lookup_transparent_type
2130 (minimal_language_data): Likewise.
2131 * d-lang.c (d_language_data): Likewise.
2132 * f-lang.c (f_language_data): Likewise.
2133 * go-lang.c (go_language_data): Likewise.
2134 * language.c (unknown_language_data): Likewise.
2135 (auto_language_data): Likewise.
2136 * language.h (struct language_data): Delete
2137 la_lookup_transparent_type field.
2138 (language_defn::lookup_transparent_type): New member function.
2139 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2141 * objc-lang.c (objc_language_data): Likewise.
2142 * opencl-lang.c (opencl_language_data): Likewise.
2143 * p-lang.c (pascal_language_data): Likewise.
2144 * rust-lang.c (rust_language_data): Likewise.
2145 * symtab.c (symbol_matches_domain): Update call.
2147 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2149 * ada-lang.c (ada_language_arch_info): Delete function, move
2150 implementation to...
2151 (ada_language::language_arch_info): ...here, a new member
2153 (ada_language_data): Delete la_language_arch_info.
2154 * c-lang.c (c_language_data): Likewise.
2155 (c_language::language_arch_info): New member function.
2156 (cplus_language_arch_info): Delete function, move
2157 implementation to...
2158 (cplus_language::language_arch_info): ...here, a new member
2160 (cplus_language_data): Delete la_language_arch_info.
2161 (asm_language_data): Likewise.
2162 (asm_language::language_arch_info): New member function.
2163 (minimal_language_data): Delete la_language_arch_info.
2164 (minimal_language::language_arch_info): New member function.
2165 * d-lang.c (d_language_arch_info): Delete function, move
2166 implementation to...
2167 (d_language::language_arch_info): ...here, a new member
2169 (d_language_data): Delete la_language_arch_info.
2170 * f-lang.c (f_language_arch_info): Delete function, move
2171 implementation to...
2172 (f_language::language_arch_info): ...here, a new member
2174 (f_language_data): Delete la_language_arch_info.
2175 * go-lang.c (go_language_arch_info): Delete function, move
2176 implementation to...
2177 (go_language::language_arch_info): ...here, a new member
2179 (go_language_data): Delete la_language_arch_info.
2180 * language.c (unknown_language_data): Likewise.
2181 (unknown_language::language_arch_info): New member function.
2182 (auto_language_data): Delete la_language_arch_info.
2183 (auto_language::language_arch_info): New member function.
2184 (language_gdbarch_post_init): Update call to
2185 la_language_arch_info.
2186 * language.h (language_data): Delete la_language_arch_info
2188 (language_defn::language_arch_info): New function.
2189 * m2-lang.c (m2_language_arch_info): Delete function, move
2190 implementation to...
2191 (m2_language::language_arch_info): ...here, a new member
2193 (m2_language_data): Delete la_language_arch_info.
2194 * objc-lang.c (objc_language_arch_info): Delete function, move
2195 implementation to...
2196 (objc_language::language_arch_info): ...here, a new member
2198 (objc_language_data): Delete la_language_arch_info.
2199 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2200 implementation to...
2201 (opencl_language::language_arch_info): ...here, a new member
2203 (opencl_language_data): Delete la_language_arch_info.
2204 * p-lang.c (pascal_language_arch_info): Delete function, move
2205 implementation to...
2206 (pascal_language::language_arch_info): ...here, a new member
2208 (pascal_language_data): Delete la_language_arch_info.
2209 * rust-lang.c (rust_language_arch_info): Delete function, move
2210 implementation to...
2211 (rust_language::language_arch_info): ...here, a new member
2213 (rust_language_data): Delete la_language_arch_info.
2215 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2217 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2219 * c-lang.c (c_language_data): Likewise.
2220 (cplus_language_data): Likewise.
2221 (cplus_language::pass_by_reference_info): New method.
2222 (asm_language_data): Delete la_pass_by_reference initializer.
2223 (minimal_language_data): Likewise.
2224 * cp-abi.c (cp_pass_by_reference): Remove use of
2225 default_pass_by_reference.
2226 * d-lang.c (d_language_data): Likewise.
2227 * f-lang.c (f_language_data): Likewise.
2228 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2229 default_pass_by_reference.
2230 * go-lang.c (go_language_data): Likewise.
2231 * language.c (language_pass_by_reference): Update.
2232 (default_pass_by_reference): Delete.
2233 (unknown_language_data): Delete la_pass_by_reference
2235 (auto_language_data): Likewise.
2236 * language.h (struct language_data): Delete la_pass_by_reference
2238 (language_defn::pass_by_reference_info): New member function.
2239 (default_pass_by_reference): Delete declaration.
2240 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2242 * objc-lang.c (objc_language_data): Likewise.
2243 * opencl-lang.c (opencl_language_data): Likewise.
2244 * p-lang.c (pascal_language_data): Likewise.
2245 * rust-lang.c (rust_language_data): Likewise.
2247 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2249 * ada-lang.c (ada_read_var_value): Delete function, move
2250 implementation to...
2251 (ada_language::read_var_value): ...here.
2252 (ada_language_data): Delete la_read_var_value initializer.
2253 * c-lang.c (c_language_data): Likewise.
2254 (cplus_language_data): Likewise.
2255 (minimal_language_data): Likewise.
2256 * d-lang.c (d_language_data): Likewise.
2257 * f-lang.c (f_language_data): Likewise.
2258 * findvar.c (default_read_var_value): Rename to...
2259 (language_defn::read_var_value): ...this.
2260 * findvar.c (read_var_value): Update header comment, and change to
2261 call member function instead of function pointer.
2262 * go-lang.c (go_language_data): Likewise.
2263 * language.c (unknown_language_data): Delete la_read_var_value
2265 (auto_language_data): Likewise.
2266 * language.h (struct language_data): Delete la_read_var_value
2268 (language_defn::read_var_value): New member function.
2269 (default_read_var_value): Delete declaration.
2270 * m2-lang.c (m2_language_data): Delete la_read_var_value
2272 * objc-lang.c (objc_language_data): Likewise.
2273 * opencl-lang.c (opencl_language_data): Likewise.
2274 * p-lang.c (pascal_language_data): Likewise.
2275 * rust-lang.c (rust_language_data): Likewise.
2276 * value.h (default_read_var_value): Delete declaration.
2278 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2280 * ada-lang.c (ada_print_array_index): Delete function, move
2281 implementation to...
2282 (ada_language::print_array_index): ...here.
2283 (ada_language_data): Delete la_print_array_index initializer.
2284 * c-lang.c (c_language_data): Likewise.
2285 (cplus_language_data): Likewise.
2286 (minimal_language_data): Likewise.
2287 * d-lang.c (d_language_data): Likewise.
2288 * f-lang.c (f_language_data): Likewise.
2289 * go-lang.c (go_language_data): Likewise.
2290 * language.c (default_print_array_index): Delete function, move
2291 implementation to...
2292 (language_defn::print_array_index): ...here.
2293 (unknown_language_data): Delete la_print_array_index initializer.
2294 (auto_language_data): Likewise.
2295 * language.h (struct language_data): Delete la_print_array_index
2297 (language_defn::print_array_index): New member function.
2298 (LA_PRINT_ARRAY_INDEX): Update.
2299 (default_print_array_index): Delete declaration.
2300 * m2-lang.c (m2_language_data): Delete la_print_array_index
2302 * objc-lang.c (objc_language_data): Likewise.
2303 * opencl-lang.c (opencl_language_data): Likewise.
2304 * p-lang.c (pascal_language_data): Likewise.
2305 * rust-lang.c (rust_language_data): Likewise.
2307 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2309 * gdb/ada-lang.c (ada_language_defn): Convert to...
2310 (ada_language_data): ...this.
2311 (class ada_language): New class.
2312 (ada_language_defn): New static global.
2313 * gdb/c-lang.c (c_language_defn): Convert to...
2314 (c_language_data): ...this.
2315 (class c_language): New class.
2316 (c_language_defn): New static global.
2317 (cplus_language_defn): Convert to...
2318 (cplus_language_data): ...this.
2319 (class cplus_language): New class.
2320 (cplus_language_defn): New static global.
2321 (asm_language_defn): Convert to...
2322 (asm_language_data): ...this.
2323 (class asm_language): New class.
2324 (asm_language_defn): New static global.
2325 (minimal_language_defn): Convert to...
2326 (minimal_language_data): ...this.
2327 (class minimal_language): New class.
2328 (minimal_language_defn): New static global.
2329 * gdb/d-lang.c (d_language_defn): Convert to...
2330 (d_language_data): ...this.
2331 (class d_language): New class.
2332 (d_language_defn): New static global.
2333 * gdb/f-lang.c (f_language_defn): Convert to...
2334 (f_language_data): ...this.
2335 (class f_language): New class.
2336 (f_language_defn): New static global.
2337 * gdb/go-lang.c (go_language_defn): Convert to...
2338 (go_language_data): ...this.
2339 (class go_language): New class.
2340 (go_language_defn): New static global.
2341 * gdb/language.c (unknown_language_defn): Remove declaration.
2342 (current_language): Initialize to nullptr, real initialization is
2343 moved to _initialize_language.
2344 (languages): Delete global.
2345 (language_defn::languages): Define.
2346 (set_language_command): Use language_defn::languages.
2347 (set_language): Likewise.
2348 (range_error): Likewise.
2349 (language_enum): Likewise.
2350 (language_def): Likewise.
2351 (add_set_language_command): Use language_def::languages for the
2352 language list, and language_def to lookup language pointers.
2353 (skip_language_trampoline): Use language_defn::languages.
2354 (unknown_language_defn): Convert to...
2355 (unknown_language_data): ...this.
2356 (class unknown_language): New class.
2357 (unknown_language_defn): New static global.
2358 (auto_language_defn): Convert to...
2359 (auto_language_data): ...this.
2360 (class auto_language): New class.
2361 (auto_language_defn): New static global.
2362 (language_gdbarch_post_init): Use language_defn::languages.
2363 (_initialize_language): Initialize current_language.
2364 * gdb/language.h (struct language_defn): Rename to...
2365 (struct language_data): ...this.
2366 (struct language_defn): New.
2367 (auto_language_defn): Delete.
2368 (unknown_language_defn): Delete.
2369 (minimal_language_defn): Delete.
2370 (ada_language_defn): Delete.
2371 (asm_language_defn): Delete.
2372 (c_language_defn): Delete.
2373 (cplus_language_defn): Delete.
2374 (d_language_defn): Delete.
2375 (f_language_defn): Delete.
2376 (go_language_defn): Delete.
2377 (m2_language_defn): Delete.
2378 (objc_language_defn): Delete.
2379 (opencl_language_defn): Delete.
2380 (pascal_language_defn): Delete.
2381 (rust_language_defn): Delete.
2382 * gdb/m2-lang.c (m2_language_defn): Convert to...
2383 (m2_language_data): ...this.
2384 (class m2_language): New class.
2385 (m2_language_defn): New static global.
2386 * gdb/objc-lang.c (objc_language_defn): Convert to...
2387 (objc_language_data): ...this.
2388 (class objc_language): New class.
2389 (objc_language_defn): New static global.
2390 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2391 (opencl_language_data): ...this.
2392 (class opencl_language): New class.
2393 (opencl_language_defn): New static global.
2394 * gdb/p-lang.c (pascal_language_defn): Convert to...
2395 (pascal_language_data): ...this.
2396 (class pascal_language): New class.
2397 (pascal_language_defn): New static global.
2398 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2399 language pointer, update comment format.
2400 * gdb/rust-lang.c (rust_language_defn): Convert to...
2401 (rust_language_data): ...this.
2402 (class rust_language): New class.
2403 (rust_language_defn): New static global.
2405 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2407 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2409 <m_stmt_at_address>: New member variable.
2410 (lnp_state_machine::record_line): Don't record some lines, update
2411 tracking of is_stmt at the same address.
2412 (lnp_state_machine::lnp_state_machine): Initialise new member
2415 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2417 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2418 "-include gnu-nat-mig.h".
2419 * gnu-nat-mig.h: New file.
2420 * gnu-nat.c: Include "gnu-nat-mig.h".
2421 (exc_server, msg_reply_server, notify_server,
2422 process_reply_server): Remove declarations.
2424 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2426 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2427 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2428 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2429 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2430 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2431 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2432 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2433 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2434 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2435 to gnu_nat_target class.
2436 * gnu-nat.c: Likewise.
2437 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2438 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2439 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2441 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2442 instead of `gnu_target'.
2444 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2446 * i386-gnu-tdep.c: Include "gdbcore.h"
2447 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2448 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2449 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2450 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2451 i386_gnu_sigcontext_addr): New functions
2452 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2453 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2456 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2458 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2459 before fork_inferior call. Avoid calling it if target_is_pushed returns
2462 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2464 * gnu-nat.h (gnu_target): New variable declaration.
2465 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2467 * gnu-nat.c (gnu_target): New variable.
2468 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2469 add_thread_silent, and add_thread calls.
2470 (gnu_nat_target::create_inferior): Pass gnu_target to
2471 add_thread_silent, thread_change_ptid call.
2472 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2475 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2477 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2478 (gnu_nat_target::find_memory_regions): Remove unused
2479 `old_address' variable.
2481 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2483 * gnu-nat.c: Include "gdbarch.h".
2485 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2487 * reply_mig_hack.awk (Error return): Cast function through
2488 void *, to bypass compiler function call check.
2490 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2492 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2493 $(srcdir)/reply_mig_hack.awk.
2495 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2497 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2499 2020-05-30 Jonny Grant <jg@jguk.org>
2501 * configure.ac (ACX_BUGURL): change bug URL to https.
2503 2020-05-30 Pedro Alves <palves@redhat.com>
2505 * cp-support.c (replace_typedefs_template): New.
2506 (replace_typedefs_qualified_name): Handle
2507 DEMANGLE_COMPONENT_TEMPLATE.
2509 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
2511 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2512 dwarf2/index-cache.h, dwarf2/index-write.c,
2513 dwarf2/index-write.h, dwarf2/line-header.c,
2514 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2515 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2516 variables and fields from `dwarf2_per_objfile` to just
2517 `per_objfile` throughout.
2519 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2521 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2522 <push_dwarf_reg_entry_value>: Add comment.
2524 2020-05-28 Kevin Buettner <kevinb@redhat.com>
2525 Keith Seitz <keiths@redhat.com>
2527 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2528 instead of PyEval_ReleaseLock.
2529 (class gdbpy_gil): Move to earlier in file.
2530 (finalize_python): Set gdb_python_initialized.
2531 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2532 when not initialized.
2534 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
2536 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2537 <push_dwarf_reg_entry_value>: Remove assert. Override
2538 per_objfile with caller_per_objfile.
2540 2020-05-28 Tom de Vries <tdevries@suse.de>
2542 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2543 PR gold/15646 workaround to symbol kind "type".
2545 2020-05-27 Tom Tromey <tromey@adacore.com>
2547 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2549 2020-05-27 Tom Tromey <tromey@adacore.com>
2551 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2552 Use htab_find_with_hash.
2553 <add_abbrev>: Remove "abbrev_number" parameter.
2554 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2555 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2556 (hash_abbrev): Add comment.
2557 (abbrev_table::lookup_abbrev): Move to header file.
2558 (abbrev_table::read): Update.
2560 2020-05-27 Tom Tromey <tromey@adacore.com>
2562 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2564 <canonical_name>: New member.
2565 <raw_name>: Rename from "name".
2566 (partial_die_info): Initialize canonical_name.
2567 (scan_partial_symbols): Check raw_name.
2568 (partial_die_parent_scope, partial_die_full_name)
2569 (add_partial_symbol, add_partial_subprogram)
2570 (add_partial_enumeration, load_partial_dies): Use "name" method.
2571 (partial_die_info::name): New method.
2572 (partial_die_info::read, guess_partial_die_structure_name)
2573 (partial_die_info::fixup): Update.
2575 2020-05-27 Tom Tromey <tromey@adacore.com>
2577 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2578 <get_ref_die_offset>: Inline.
2579 <get_ref_die_offset_complaint>: New method.
2580 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2581 (attribute::get_ref_die_offset_complaint): Rename from
2582 get_ref_die_offset. Just issue complaint.
2584 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
2586 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2588 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
2590 * exec.c (exec_file_attach): Use errno value of first openp failure.
2592 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
2594 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2595 Don't close thread handle.
2597 2020-05-27 Tom Tromey <tom@tromey.com>
2598 Simon Marchi <simon.marchi@efficios.com>
2600 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2602 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2604 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2605 dwarf2_per_bfd_objfile_data_key>: New globals.
2606 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2607 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2608 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2610 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2611 short-circuit when sharing.
2612 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2613 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2615 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2617 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2619 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2620 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2622 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2624 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2625 build_name_components, find_name_components_bounds>:
2626 Add per_objfile parameter.
2627 (struct mapped_index) <symbol_name_at>: Likewise.
2628 (struct mapped_debug_names): Remove constructor.
2629 <dwarf2_per_objfile>: Remove field.
2630 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2631 (mapped_index_base::find_name_components_bounds,
2632 mapped_index_base::build_name_components,
2633 dw2_expand_symtabs_matching_symbol): Likewise.
2634 (class mock_mapped_index) <symbol_name_at>: Likewise.
2635 (check_match): Likewise.
2636 (check_find_bounds_finds): Likewise.
2637 (test_mapped_index_find_name_component_bounds): Update.
2638 (CHECK_MATCH): Update.
2639 (dw2_expand_symtabs_matching): Update.
2640 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2641 per_objfile parameter.
2642 <find_vec_in_debug_names>: Likewise.
2643 <m_per_objfile>: New field.
2644 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2646 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2647 (dw2_debug_names_iterator::next): Update.
2648 (dw2_debug_names_lookup_symbol): Update.
2649 (dw2_debug_names_expand_symtabs_for_function): Update.
2650 (dw2_debug_names_map_matching_symbols): Update.
2651 (dw2_debug_names_expand_symtabs_matching): Update.
2652 (dwarf2_read_debug_names): Update.
2654 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2656 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2657 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2658 move to dwarf2_per_objfile.
2659 <read_in_chain>: Remove.
2660 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2661 remove_all_cus, age_comp_units>: New methods.
2662 <m_dwarf2_cus>: New member.
2663 (struct dwarf2_per_cu_data) <cu>: Remove.
2664 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2665 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2666 moved to methods of dwarf2_per_objfile.
2667 (dwarf2_clear_marks): Remove.
2668 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2669 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2670 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2671 (dwarf2_per_objfile::remove_all_cus): New.
2672 (class free_cached_comp_units) <~free_cached_comp_units>:
2675 (dw2_do_instantiate_symtab): Adjust.
2676 (fill_in_sig_entry_from_dwo_entry): Adjust.
2677 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2678 (cutu_reader::cutu_reader): Likewise.
2679 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2680 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2681 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2682 and dwarf2_per_objfile::age_comp_units.
2683 (load_partial_comp_unit): Update.
2684 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2685 (process_queue): Likewise.
2686 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2688 (dwarf2_read_addr_index): Likewise.
2689 (follow_die_offset): Likewise.
2690 (dwarf2_fetch_die_loc_sect_off): Likewise.
2691 (dwarf2_fetch_constant_bytes): Likewise.
2692 (dwarf2_fetch_die_type_sect_off): Likewise.
2693 (follow_die_sig_1): Likewise.
2694 (load_full_type_unit): Likewise.
2695 (read_signatured_type): Likewise.
2696 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2697 (dwarf2_cu::~dwarf2_cu): Remove.
2698 (dwarf2_per_objfile::get_cu): New.
2699 (dwarf2_per_objfile::set_cu): New.
2700 (age_cached_comp_units): Rename to...
2701 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2702 to std::unordered_map.
2703 (free_one_cached_comp_unit): Rename to...
2704 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2705 to std::unordered_map.
2706 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2707 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2708 a dwarf2_per_objfile in data.
2709 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2710 (dwarf2_clear_marks): Remove.
2712 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2714 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2715 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2716 (init_tu_and_read_dwo_dies): Likewise.
2717 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2718 (cutu_reader::cutu_reader): Likewise.
2719 (load_partial_comp_unit): Likewise.
2720 (process_psymtab_comp_unit): Update.
2721 (build_type_psymtabs_1): Update.
2722 (process_skeletonless_type_unit): Update.
2723 (load_full_comp_unit): Update.
2724 (find_partial_die): Update.
2725 (dwarf2_read_addr_index): Update.
2726 (read_signatured_type): Update.
2728 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2730 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2731 m_header_read_in>: New fields.
2732 <get_header>: New method.
2733 * dwarf2/read.c (per_cu_header_read_in): Remove.
2734 (dwarf2_per_cu_data::get_header): New.
2735 (dwarf2_per_cu_data::addr_size): Update.
2736 (dwarf2_per_cu_data::offset_size): Update.
2737 (dwarf2_per_cu_data::ref_addr_size): Update.
2739 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2741 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2742 (dw2_do_instantiate_symtab): Update.
2743 (queue_and_load_all_dwo_tus): Change parameter from
2744 dwarf2_per_cu_data to dwarf2_cu.
2745 (dwarf2_fetch_die_loc_sect_off): Update.
2746 (dwarf2_fetch_constant_bytes): Update.
2747 (dwarf2_fetch_die_type_sect_off): Update.
2749 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2751 * dwarf2/read.c (process_full_comp_unit,
2752 process_full_type_unit): Remove per_cu, per_objfile paramters.
2753 Add dwarf2_cu parameter.
2754 (process_queue): Update.
2756 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2758 * dwarf2/read.c (create_cu_from_index_list): Replace
2759 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2760 (create_cus_from_index_list): Likewise.
2761 (create_cus_from_index): Likewise.
2762 (create_signatured_type_table_from_index): Likewise.
2763 (create_cus_from_debug_names_list): Likewise.
2764 (create_cus_from_debug_names): Likewise.
2765 (dwarf2_read_gdb_index): Update.
2766 (dwarf2_read_debug_names): Update.
2768 2020-05-27 Tom Tromey <tom@tromey.com>
2769 Simon Marchi <simon.marchi@efficios.com>
2771 * dwarf2/read.h (struct dwarf2_per_objfile)
2772 <get_type_for_signatured_type, set_type_for_signatured_type>:
2774 <m_type_map>: New member.
2775 (struct signatured_type) <type>: Remove.
2777 (dwarf2_per_objfile::get_type_for_signatured_type,
2778 dwarf2_per_objfile::set_type_for_signatured_type): New.
2779 (get_signatured_type): Use new methods.
2781 2020-05-27 Tom Tromey <tom@tromey.com>
2782 Simon Marchi <simon.marchi@efficios.com>
2784 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2785 (struct dwarf2_per_objfile) <type_units>: New member.
2786 <get_type_unit_group_unshareable>: New method.
2787 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2788 num_symtabs, symtabs>: Remove; move to
2789 type_unit_group_unshareable.
2790 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2791 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2792 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2794 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2796 * dwarf2/read.h (struct dwarf2_per_cu_data):
2797 <dwarf2_per_objfile>: Remove.
2798 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2800 (create_signatured_type_table_from_index): Likewise.
2801 (create_signatured_type_table_from_debug_names): Likewise.
2802 (create_debug_type_hash_table): Likewise.
2803 (fill_in_sig_entry_from_dwo_entry): Likewise.
2804 (create_type_unit_group): Likewise.
2805 (read_comp_units_from_section): Likewise.
2806 (create_cus_hash_table): Likewise.
2808 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2810 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2811 dwarf2_per_cu_data::dwarf2_per_objfile.
2812 (compute_compunit_symtab_includes): Likewise.
2813 (dwarf2_cu::start_symtab): Likewise.
2815 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2817 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2819 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2820 (read_namespace_alias): Update.
2821 (lookup_die_type): Update.
2822 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2823 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2825 (disassemble_dwarf_expression): Update.
2827 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2829 * dwarf2/read.h (struct dwarf2_queue_item): Add
2830 dwarf2_per_objfile parameter, assign new parameter.
2831 <per_objfile>: New field.
2832 * dwarf2/read.c (free_one_cached_comp_unit): Add
2833 dwarf2_per_objfile parameter.
2834 (queue_comp_unit): Likewise.
2835 (dw2_do_instantiate_symtab): Update.
2836 (process_psymtab_comp_unit): Update.
2837 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2838 (process_imported_unit_die): Update.
2839 (queue_and_load_dwo_tu): Update.
2840 (follow_die_offset): Update.
2841 (follow_die_sig_1): Update.
2843 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2845 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2846 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2847 (read_call_site_scope): Assign per_objfile.
2848 (dwarf2_per_cu_data::objfile): Remove.
2849 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2850 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2851 dwarf2_per_objfile parameter.
2852 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2853 dwarf2_per_objfile parameter.
2854 (dwarf_expr_reg_to_entry_parameter): Add output
2855 dwarf2_per_objfile parameter.
2856 (locexpr_get_frame_base): Update.
2857 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2858 <push_dwarf_reg_entry_value>: Update.
2859 <call_site_to_target_addr>: Update.
2860 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2862 (value_of_dwarf_reg_entry): Update.
2863 (rw_pieced_value): Update.
2864 (indirect_synthetic_pointer): Update.
2865 (dwarf2_evaluate_property): Update.
2866 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2868 (locexpr_read_variable): Update.
2869 (locexpr_get_symbol_read_needs): Update.
2870 (loclist_read_variable): Update.
2872 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2874 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2875 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2876 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2878 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2879 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2880 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2882 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2883 sect_variable_value): Add dwarf2_per_objfile parameter.
2884 (class dwarf_evaluate_loc_desc) <dwarf_call,
2885 dwarf_variable_value>: Update.
2886 (fetch_const_value_from_synthetic_pointer): Add
2887 dwarf2_per_objfile parameter.
2888 (fetch_const_value_from_synthetic_pointer): Update.
2889 (coerced_pieced_ref): Update.
2890 (class symbol_needs_eval_context) <dwarf_call,
2891 dwarf_variable_value>: Update.
2892 (dwarf2_compile_expr_to_ax): Update.
2894 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2896 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2898 (dwarf2_evaluate_loc_desc_full): Update.
2900 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2902 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2904 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2905 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2906 dwarf2_per_objfile parameter.
2907 (decode_debug_loc_dwo_addresses): Likewise.
2908 (dwarf2_find_location_expression): Update.
2909 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2910 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2912 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2914 (locexpr_describe_location_1): Likewise.
2915 (locexpr_describe_location): Update.
2917 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2919 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2921 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2922 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2923 (dwarf2_compile_property_to_c): Update.
2924 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2925 use text offset from objfile.
2926 (locexpr_tracepoint_var_ref): Update.
2927 (locexpr_generate_c_location): Update.
2928 (loclist_describe_location): Update.
2929 (loclist_tracepoint_var_ref): Update.
2930 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2931 dwarf2_per_objfile parameter.
2932 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2933 use text offset from objfile.
2934 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2936 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2938 * dwarf2/expr.h (struct dwarf_expr_context)
2939 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2941 <per_objfile>: New member.
2942 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2943 dwarf2_per_objfile parameter. Don't set offset, set
2945 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2946 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2947 a dwarf2_per_objfile object instead of an offset.
2948 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2950 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2951 to dwarf2_expr_executor constructor. Don't set offset.
2952 (dwarf2_fetch_cfa_info): Update.
2953 (struct dwarf2_frame_cache) <text_offset>: Remove.
2954 <per_objfile>: New field.
2955 (dwarf2_frame_cache): Update.
2956 (dwarf2_frame_prev_register): Update.
2957 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2958 <dwarf_evaluate_loc_desc>: Add constructor.
2959 (dwarf2_evaluate_loc_desc_full): Update.
2960 (dwarf2_locexpr_baton_eval): Update.
2961 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2963 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2965 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2967 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2968 addr_sized_int_type>: Move to dwarf2_cu.
2969 <int_type>: Move to dwarf2_per_objfile.
2970 (struct dwarf2_per_objfile) <int_type>: Move here.
2971 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2972 addr_sized_int_type>: Move here.
2973 (read_func_scope): Update.
2974 (read_array_type): Update.
2975 (read_tag_string_type): Update.
2976 (attr_to_dynamic_prop): Update.
2977 (dwarf2_per_cu_data::int_type): Rename to...
2978 (dwarf2_per_objfile::int_type): ... this.
2979 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2980 (dwarf2_cu::addr_sized_int_type): ... this.
2981 (read_subrange_type): Update.
2982 (dwarf2_per_cu_data::addr_type): Rename to...
2983 (dwarf2_cu::addr_type): ... this.
2984 (set_die_type): Update.
2986 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2988 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2989 data through per_cu->cu.
2991 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2993 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2994 dwarf2_per_cu_data parameter fo dwarf2_cu.
2995 (lookup_dwo_type_unit): Likewise.
2996 (read_cutu_die_from_dwo): Likewise.
2997 (lookup_dwo_unit): Likewise.
2998 (open_and_init_dwo_file): Likewise.
2999 (lookup_dwo_cutu): Likewise.
3000 (lookup_dwo_comp_unit): Likewise.
3001 (lookup_dwo_type_unit): Likewise.
3002 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3003 (cutu_reader::cutu_reader): Update.
3005 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3007 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3009 (process_full_type_unit): Likewise.
3010 (process_queue): Update.
3012 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3014 * dwarf2/read.c (recursively_compute_inclusions): Add
3015 dwarf2_per_objfile parameter.
3016 (compute_compunit_symtab_includes): Likewise.
3017 (process_cu_includes): Update.
3019 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3021 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3023 (create_type_unit_group): Update.
3024 (process_psymtab_comp_unit_reader): Update.
3025 (build_type_psymtabs_reader): Update.
3027 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3029 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3030 object through m_this_cu->cu.
3032 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3034 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3036 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3038 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3040 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3041 per_objfile parameter.
3042 (load_full_type_unit): Add per_objfile parameter.
3043 (read_signatured_type): Likewise.
3044 (load_full_comp_unit): Likewise.
3045 (load_cu): Likewise.
3046 (dw2_do_instantiate_symtab): Likewise.
3047 (dw2_get_file_names): Likewise.
3048 (dw2_map_symtabs_matching_filename): Update.
3049 (dw_expand_symtabs_matching_file_matcher): Update.
3050 (dw2_map_symbol_filenames): Update.
3051 (process_psymtab_comp_unit): Add per_objfile parameter.
3052 (build_type_psymtabs_1): Update.
3053 (process_skeletonless_type_unit): Update.
3054 (dwarf2_build_psymtabs_hard): Update.
3055 (load_partial_comp_unit): Add per_objfile parameter.
3056 (scan_partial_symbols): Update.
3057 (load_full_comp_unit): Add per_objfile parameter.
3058 (process_imported_unit_die): Update.
3059 (create_cus_hash_table): Update.
3060 (find_partial_die): Update.
3061 (dwarf2_read_addr_index): Update.
3062 (follow_die_offset): Update.
3063 (dwarf2_fetch_die_loc_sect_off): Update.
3064 (dwarf2_fetch_constant_bytes): Update.
3065 (dwarf2_fetch_die_type_sect_off): Update.
3066 (follow_die_sig_1): Update.
3067 (load_full_type_unit): Add per_objfile parameter.
3068 (read_signatured_type): Likewise.
3070 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3072 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3075 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3077 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3078 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3079 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3081 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3082 (create_cus_from_index): Update.
3083 (dwarf2_read_gdb_index): Update.
3084 (create_cus_from_debug_names): Update.
3085 (dwarf2_read_debug_names): Update.
3086 (get_abbrev_section_for_cu): Update.
3087 (create_all_comp_units): Update.
3088 (read_attribute_value): Update.
3089 (get_debug_line_section): Update.
3090 * dwarf2/index-cache.c (index_cache::store): Update.
3091 * dwarf2/index-write.c (save_gdb_index_command): Update.
3092 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3094 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3096 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3098 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3099 dwarf2_per_cu_data::per_bfd.
3100 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3101 (create_type_unit_group): Likewise.
3102 (queue_comp_unit): Remove reference to
3103 per_cu->dwarf2_per_objfile.
3104 (maybe_queue_comp_unit): Likewise.
3105 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3106 (create_cus_hash_table): Assign new field.
3108 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3110 * dwarf2/read.c: Replace
3111 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3112 dwarf2_cu->per_objfile throughout.
3114 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3116 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3117 parameter, don't use per_cu->dwarf2_per_objfile.
3118 (dw2_instantiate_symtab): Likewise.
3119 (dw2_find_last_source_symtab): Update.
3120 (dw2_map_expand_apply): Update.
3121 (dw2_lookup_symbol): Update.
3122 (dw2_expand_symtabs_for_function): Update.
3123 (dw2_expand_all_symtabs): Update.
3124 (dw2_expand_symtabs_with_fullname): Update.
3125 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3126 don't use per_cu->dwarf2_per_objfile.
3127 (dw2_expand_marked_cus): Update.
3128 (dw2_find_pc_sect_compunit_symtab): Update.
3129 (dw2_debug_names_lookup_symbol): Update.
3130 (dw2_debug_names_expand_symtabs_for_function): Update.
3131 (dw2_debug_names_map_matching_symbols): Update.
3132 (dwarf2_psymtab::expand_psymtab): Update.
3134 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3136 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3137 <per_objfile>: New member.
3138 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3139 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3141 (cutu_reader::cutu_reader): Update.
3142 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3144 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3146 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3147 struct dwarf2_per_objfile.
3148 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3150 * dwarf2/read.c (set_die_type): Update.
3151 (get_die_type_at_offset): Update.
3153 2020-05-27 Tom Tromey <tom@tromey.com>
3154 Simon Marchi <simon.marchi@efficios.com>
3156 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3158 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3159 get_symtab, set_symtab>: New methods.
3160 <m_symtabs>: New field.
3161 (struct dwarf2_psymtab): Derive from partial_symtab.
3162 <readin_p, get_compunit_symtab>: Declare methods.
3163 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3164 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3166 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3167 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3168 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3169 (dw2_symtab_iter_next, dw2_print_stats)
3170 (dw2_expand_symtabs_with_fullname)
3171 (dw2_expand_symtabs_matching_one)
3172 (dw_expand_symtabs_matching_file_matcher)
3173 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3174 (dw2_debug_names_iterator::next)
3175 (dw2_debug_names_map_matching_symbols)
3176 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3177 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3178 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3180 (get_compunit_symtab, process_full_comp_unit)
3181 (process_full_type_unit): Update.
3182 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3184 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3186 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3187 then introduce a new dwarf2_per_objfile type.
3188 <read_line_string>: Move to the new dwarf2_per_objfile type.
3189 <objfile>: Likewise.
3190 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3191 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3192 dwarf2_per_objfile->per_bfd.
3193 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3194 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3195 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3196 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3197 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3198 (dwarf2_per_objfile::locate_sections): Rename to...
3199 (dwarf2_per_bfd::locate_sections): ... this.
3200 (dwarf2_per_objfile::get_cutu): Rename to...
3201 (dwarf2_per_bfd::get_cutu): ... this.
3202 (dwarf2_per_objfile::get_cu): Rename to...
3203 (dwarf2_per_bfd::get_cu): ... this.
3204 (dwarf2_per_objfile::get_tu): Rename to...
3205 (dwarf2_per_bfd::get_tu): ... this.
3206 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3207 (dwarf2_per_bfd::allocate_per_cu): ... this.
3208 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3209 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3210 (get_gdb_index_contents_ftype): Change parameter from
3211 dwarf2_per_objfile to dwarf2_per_bfd.
3212 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3213 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3215 2020-05-27 Tom Tromey <tom@tromey.com>
3216 Simon Marchi <simon.marchi@efficios.com>
3218 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3219 (allocate_piece_closure): Set "per_objfile" member.
3220 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3221 (locexpr_describe_location, loclist_describe_location): Use new
3223 * dwarf2/read.c (read_call_site_scope)
3224 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3225 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3226 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3227 handle_data_member_location): Set per_objfile member.
3228 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3230 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3232 2020-05-27 Tom Tromey <tom@tromey.com>
3234 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3235 allocate_signatured_type>: Declare new methods.
3236 <m_num_psymtabs>: New member.
3237 (struct dwarf2_per_cu_data) <index>: New member.
3238 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3239 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3240 (create_cu_from_index_list): Use allocate_per_cu.
3241 (create_signatured_type_table_from_index)
3242 (create_signatured_type_table_from_debug_names)
3243 (create_debug_type_hash_table, add_type_unit)
3244 (read_comp_units_from_section): Use allocate_signatured_type.
3246 2020-05-27 Tom Tromey <tom@tromey.com>
3248 * psymtab.c (partial_map_expand_apply)
3249 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3250 (psym_lookup_global_symbol_language)
3251 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3252 (psym_print_stats, psym_expand_symtabs_for_function)
3253 (psym_map_symbol_filenames, psym_map_matching_symbols)
3254 (psym_expand_symtabs_matching)
3255 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3256 (maintenance_check_psymtabs): Update.
3257 * psympriv.h (struct partial_symtab) <readin_p,
3258 get_compunit_symtab>: Add objfile parameter.
3259 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3261 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3262 get_compunit_symtab>: Likewise.
3263 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3265 2020-05-27 Tom Tromey <tom@tromey.com>
3267 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3269 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3270 (create_cu_from_index_list)
3271 (create_signatured_type_table_from_index)
3272 (create_signatured_type_table_from_debug_names)
3273 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3274 (dwarf2_create_include_psymtab)
3275 (create_debug_type_hash_table, add_type_unit)
3276 (create_type_unit_group, read_comp_units_from_section)
3277 (dwarf2_compute_name, create_cus_hash_table)
3278 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3279 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3281 (dw2_get_real_path): Likewise. Change argument to
3284 2020-05-27 Luis Machado <luis.machado@linaro.org>
3287 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3288 for ldrd (immediate).
3290 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3292 * command.h: Add comment giving the name of class_tui.
3293 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3294 create the fake command for the help for class_tui.
3296 2020-05-26 Tom Tromey <tromey@adacore.com>
3298 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3299 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3300 (val_atr): New function.
3301 (value_val_atr): Use it.
3302 * ada-valprint.c (print_optional_low_bound): Change low bound
3304 (val_print_packed_array_elements): Don't call discrete_position.
3305 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3306 discrete_position for enum types.
3307 * language.c (default_print_array_index): Change type.
3308 * language.h (struct language_defn) <la_print_array_index>: Add
3309 index_type parameter, change type of index_value.
3310 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3311 (default_print_array_index): Update.
3312 * valprint.c (maybe_print_array_index): Don't call
3313 value_from_longest. Update.
3314 (value_print_array_elements): Don't call discrete_position.
3316 2020-05-26 Tom Tromey <tromey@adacore.com>
3318 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3319 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3321 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3324 * avr-tdep.c (avr_integer_to_address): Return data or code
3325 address accordingly to the second 'type' argument of the
3328 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3330 * infcmd.c, inferior.h: (construct_inferior_arguments):
3331 Moved function from here to gdbsupport/common-inferior.{h,cc}
3333 2020-05-23 Tom Tromey <tom@tromey.com>
3335 Revert commit eca1f90c:
3336 * NEWS: Remove entry for completion styling.
3337 * completer.c (_rl_completion_prefix_display_length): Move
3339 (gdb_fnprint): Revert.
3340 (gdb_display_match_list_1): Likewise.
3341 * cli/cli-style.c (completion_prefix_style)
3342 (completion_difference_style, completion_suffix_style): Remove.
3343 (_initialize_cli_style): Revert.
3344 * cli/cli-style.h (completion_prefix_style)
3345 (completion_difference_style, completion_suffix_style): Don't
3348 2020-05-24 Pedro Alves <palves@redhat.com>
3350 * symtab.c (completion_list_add_name): Return boolean indication
3351 of whether the symbol matched.
3352 (completion_list_add_symbol): Don't try to remove C++ aliases if
3353 the symbol didn't match in the first place.
3354 * symtab.h (completion_list_add_name): Return bool.
3356 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3358 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3361 2020-05-23 Joel Brobecker <brobecker@adacore.com>
3365 2020-05-23 Tom Tromey <tom@tromey.com>
3367 * NEWS: Add entry for completion styling.
3368 * completer.c (_rl_completion_prefix_display_length): Move
3369 declaration earlier.
3370 (gdb_fnprint): Use completion_style.
3371 (gdb_display_match_list_1): Likewise.
3372 * cli/cli-style.c (completion_prefix_style)
3373 (completion_difference_style, completion_suffix_style): New
3375 (_initialize_cli_style): Register new globals.
3376 * cli/cli-style.h (completion_prefix_style)
3377 (completion_difference_style, completion_suffix_style): Declare.
3379 2020-05-23 Pedro Alves <palves@redhat.com>
3381 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3382 (parse_escape): Use ISDIGIT instead of isdigit.
3383 (puts_debug): Use gdb_isprint instead of isprint.
3384 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3385 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3386 ISSPACE instead of isspace.
3387 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3389 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3390 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3391 instead of isxdigit and ISDIGIT instead of isdigit.
3393 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3395 * gdbtypes.h (struct type) <field>: New method.
3396 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3399 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3401 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3402 (TYPE_FIELDS): Use type::fields. Change all call sites that
3403 modify the propery to use type::set_fields instead.
3405 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3407 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3408 type::num_fields instead.
3410 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3412 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3414 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3415 that modify the number of fields to use type::set_num_fields
3418 2020-05-22 Tom Tromey <tromey@adacore.com>
3420 * compile/compile-object-load.h (munmap_list_free): Don't
3423 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3425 * annotate.c (annotate_source_line): Update return type, add call
3426 to update current symtab and line.
3427 * annotate.h (annotate_source_line): Update return type, and
3428 extend header comment.
3429 * source.c (info_line_command): Check annotation_level before
3430 calling annotate_source_line.
3431 * stack.c (print_frame_info): If calling annotate_source_line
3432 returns true, then don't print any other source line information.
3434 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
3436 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3438 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
3440 * coffread.c (patch_type): Remove NULL check before xfree.
3441 * corefile.c (set_gnutarget): Likewise.
3442 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3443 * exec.c (build_section_table): Likewise.
3444 * remote.c (remote_target::pass_signals): Likewise.
3445 * utils.c (n_spaces): Likewise.
3446 * cli/cli-script.c (document_command): Likewise.
3447 * i386-windows-tdep.c (core_process_module_section): Likewise.
3448 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3450 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
3452 * symfile.c (reread_symbols): Clear objfile's section_offsets
3453 vector and section indices, re-compute them by calling
3456 2020-05-20 Tom Tromey <tromey@adacore.com>
3458 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
3459 (desc_one_bound, desc_index_type): Compute field name.
3461 2020-05-20 Tom de Vries <tdevries@suse.de>
3464 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3466 2020-05-20 Alan Modra <amodra@gmail.com>
3469 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3471 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3472 passed to bfd_set_filename.
3473 * symfile-mem.c (add_vsyscall_page): Likewise for string
3474 passed to symbol_file_add_from_memory.
3475 (symbol_file_add_from_memory): Make name param a const char* and
3478 2020-05-20 Alan Modra <amodra@gmail.com>
3480 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3481 rather than accessing bfd->filename directly.
3482 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3483 and use bfd_section_name.
3484 * dwarf2/frame.c (decode_frame_entry): Likewise.
3485 * exec.c (exec_set_section_address): Likewise.
3486 * solib-aix.c (solib_aix_bfd_open): Likewise.
3487 * stap-probe.c (get_stap_base_address): Likewise.
3488 * symfile.c (reread_symbols): Likewise.
3490 2020-05-19 Tom Tromey <tromey@adacore.com>
3492 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3494 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3496 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3498 2020-05-19 Pedro Alves <palves@redhat.com>
3500 * NEWS (set exec-file-mismatch): Adjust entry.
3501 * exec.c: Include "build-id.h".
3502 (validate_exec_file): Try to match build IDs instead of filenames.
3503 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3504 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3505 and pass down 'warn_if_slow'.
3506 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3507 gdb_bfd_open_closure to pass it down.
3508 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3510 2020-05-19 Pedro Alves <palves@redhat.com>
3512 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3513 * target.c (target_fileio_open_1): Rename to target_fileio_open
3514 and make extern. Use bool.
3515 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3516 (target_fileio_read_alloc_1): Adjust.
3517 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3518 (target_fileio_open_warn_if_slow): Delete declaration.
3520 2020-05-19 Pedro Alves <palves@redhat.com>
3522 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3525 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3527 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3528 whether disp is negative.
3530 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3532 * symfile.h (struct symfile_segment_data)
3533 <~symfile_segment_data>: Remove.
3534 <segment_info>: Change to std::vector.
3535 * symfile.c (default_symfile_segments): Update.
3536 * elfread.c (elf_symfile_segments): Update.
3538 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3540 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3542 <segment_bases, segment_sizes>: Remove.
3543 * symfile.c (default_symfile_segments): Update.
3544 * elfread.c (elf_symfile_segments): Update.
3545 * remote.c (remote_target::get_offsets): Update.
3546 * solib-target.c (solib_target_relocate_section_addresses):
3549 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3551 * symfile.h (struct symfile_segment_data): Initialize fields.
3552 <~symfile_segment_data>: Add.
3553 (symfile_segment_data_up): New.
3554 (struct sym_fns) <sym_segments>: Return a
3555 symfile_segment_data_up.
3556 (default_symfile_segments): Return a symfile_segment_data_up.
3557 (free_symfile_segment_data): Remove.
3558 (get_symfile_segment_data): Return a symfile_segment_data_up.
3559 * symfile.c (default_symfile_segments): Likewise.
3560 (get_symfile_segment_data): Likewise.
3561 (free_symfile_segment_data): Remove.
3562 (symfile_find_segment_sections): Update.
3563 * elfread.c (elf_symfile_segments): Return a
3564 symfile_segment_data_up.
3565 * remote.c (remote_target::get_offsets): Update.
3566 * solib-target.c (solib_target_relocate_section_addresses):
3568 * symfile-debug.c (debug_sym_segments): Return a
3569 symfile_segment_data_up.
3571 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3574 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3575 Hardcode register numbers.
3578 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3579 procfs_find_LDT_entry): Remove.
3580 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3581 procfs_find_LDT_entry): Remove.
3582 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3585 2020-05-17 Pedro Alves <palves@redhat.com>
3586 Andrew Burgess <andrew.burgess@embecosm.com>
3587 Keno Fischer <keno@juliacomputing.com>
3590 * breakpoint.c (build_target_condition_list): Update comments.
3591 (build_target_command_list): Update comments and skip matching
3593 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3594 a separate function. Simplify "set breakpoint auto-hw off"
3596 (insert_breakpoints): Update comment.
3597 (tracepoint_locations_match): New parameter. For breakpoints,
3598 compare location types too, if the caller wants to.
3599 (handle_automatic_hardware_breakpoints): New functions.
3600 (bp_location_is_less_than): Also sort by location type and
3601 hardware breakpoint length.
3602 (update_global_location_list): Handle "set breakpoint auto-hw on"
3604 (update_breakpoint_locations): Ask breakpoint_locations_match to
3605 ignore location types.
3607 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
3609 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3612 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
3614 * gdbtypes.h (struct type) <name, set_name>: New methods.
3615 (TYPE_CODE): Use type::name. Change all call sites used to set
3616 the name to use type::set_name instead.
3618 2020-05-16 Tom Tromey <tom@tromey.com>
3620 * top.c (quit_force): Update.
3621 * infrun.c (handle_no_resumed): Update.
3622 * top.h (all_uis): New function.
3625 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
3627 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3629 2020-05-16 Pedro Alves <palves@redhat.com>
3632 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3634 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3636 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
3638 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3639 (sparc64_adi_info): Likewise.
3641 2020-05-15 Tom Tromey <tom@tromey.com>
3643 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3645 (lookup_objfile_from_block): Remove.
3646 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3647 (lookup_global_symbol): Use block_objfile.
3648 * symtab.h (lookup_objfile_from_block): Don't declare.
3649 * printcmd.c (clear_dangling_display_expressions): Use
3651 * parse.c (operator_check_standard): Use block_objfile.
3653 2020-05-15 Tom Tromey <tom@tromey.com>
3655 * language.c (language_alloc_type_symbol): Set
3657 * symtab.c (initialize_objfile_symbol): Remove.
3658 (allocate_symbol): Remove.
3659 (allocate_template_symbol): Remove.
3660 * dwarf2/read.c (fixup_go_packaging): Use "new".
3661 (new_symbol): Use "new".
3662 (read_variable): Don't call initialize_objfile_symbol. Use
3664 (read_func_scope): Use "new".
3665 * xcoffread.c (process_xcoff_symbol): Don't call
3666 initialize_objfile_symbol.
3667 (SYMBOL_DUP): Remove.
3668 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3670 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3671 (allocate_template_symbol): Don't declare.
3672 (struct symbol): Add copy constructor. Change defaults.
3673 * jit.c (finalize_symtab): Use "new".
3674 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3676 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3677 (common_block_end): Use "new".
3678 * mdebugread.c (parse_symbol): Use "new".
3679 (new_symbol): Likewise.
3681 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3683 * NEWS: Mention changes to help and apropos.
3685 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3687 * command.h (enum command_class): Improve comments, document
3688 that class_alias is for user-defined aliases, give the class
3689 name for each class, remove unused class_xdb.
3690 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3691 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3693 * infcmd.c (_initialize_infcmd): Likewise.
3694 * reverse.c (_initialize_reverse): Likewise.
3695 * stack.c (_initialize_stack): Likewise.
3696 * symfile.c (_initialize_symfile): Likewise.
3697 * tracepoint.c (_initialize_tracepoint): Likewise.
3699 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3701 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3702 when their aliased command is traversed.
3703 (help_cmd): Add fput_command_names_styled call to
3704 output command name and aliases when command has an alias.
3706 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3708 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3709 * cli/cli-decode.c (help_cmd_list): Declare as static,
3710 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3711 a command together with the command.
3712 (fput_command_name_styled, fput_command_names_styled): New functions.
3713 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3714 fput_command_name_styled.
3715 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3716 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3718 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3720 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3721 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3722 * command.h (cmd_show_list): Likewise.
3723 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3724 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3726 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3728 * unittests/command-def-selftests.c (traverse_command_structure):
3729 Verify all commands of a list have the same prefix command and
3730 that only the top cmdlist commands have a null prefix.
3732 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3734 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3735 as prefix, not one of its aliases.
3736 (set_cmd_prefix): Remove.
3737 (do_add_cmd): Centralize the setting of the prefix of a command, when
3738 command is defined after its full chain of prefix commands.
3739 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3740 (add_setshow_cmd_full): Likewise.
3741 (update_prefix_field_of_prefixed_commands): New function.
3742 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3743 update_prefix_field_of_prefixed_commands.
3744 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3745 addresses of remote_set_cmdlist and remote_show_cmdlist given
3746 as argument, not the address of an argument.
3747 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3748 * gdb/remote.c (_initialize_remote): Likewise.
3750 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3752 * cli/cli-cmds.c (alias_command): Check for an existing alias
3753 using lookup_cmd_composition, as valid_command_p is too strict
3754 and forbids aliases that are the prefix of an existing alias
3756 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3757 command is properly recognised as a valid command.
3759 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3761 * unittests/help-doc-selftests.c: Rename to
3762 unittests/command-def-selftests.c
3763 * unittests/command-def-selftests.c (help_doc_tests): Update some
3765 (command_structure_tests, traverse_command_structure): New namespace
3767 (command_structure_invariants_tests): New function.
3768 (_initialize_command_def_selftests) Renamed from
3769 _initialize_help_doc_selftests, register command_structure_invariants
3772 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3774 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3777 2020-05-15 Joel Brobecker <brobecker@adacore.com>
3779 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3780 ada_is_fixed_point_type. Update all callers.
3781 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3783 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3785 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3786 print_fixed_point_type. Update all callers.
3787 * ada-valprint.c (ada_value_print_num): Replace call to
3788 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3790 2020-05-14 Kevin Buettner <kevinb@redhat.com>
3792 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3794 (cpu_supports_bts): Add CV_AMD case.
3796 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3797 Simon Marchi <simon.marchi@efficios.com>
3799 * infrun.c (stop_all_threads): Collect multiple wait events at
3802 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
3804 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3807 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
3809 * gdbtypes.h (struct type) <code, set_code>: New methods.
3810 (TYPE_CODE): Use type::code. Change all call sites used to set
3811 the code to use type::set_code instead.
3813 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3814 Tom de Vries <tdevries@suse.de>
3815 Pedro Alves <palves@redhat.com>
3818 * infrun.c (stop_all_threads): Do NOT ignore
3819 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3820 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3822 (handle_no_resumed): Remove code handling a live inferior with no
3824 * remote.c (has_single_non_exited_thread): New.
3825 (remote_target::update_thread_list): Do not delete a thread if is
3826 the last thread of the process.
3827 * thread.c (thread_select): Call delete_exited_threads instead of
3830 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3832 * infrun.c (stop_all_threads): Enable/disable thread events of all
3833 targets. Move a debug message denoting the end of the function
3834 into the SCOPED_EXIT block.
3836 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3838 * process-stratum-target.h: Include <set>.
3839 (all_non_exited_process_targets, switch_to_target_no_thread): New
3840 function declarations.
3841 * process-stratum-target.c (all_non_exited_process_targets)
3842 (switch_to_target_no_thread): New function implementations.
3844 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3846 * infrun.c (handle_inferior_event): Extract out a piece of code
3848 (mark_non_executing_threads): ...this new function.
3850 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3852 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3855 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3857 * regcache.c (regcache_read_pc_protected): New function
3858 implementation that returns 0 if the PC cannot read via
3860 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3861 instead of 'regcache_read_pc'.
3862 (keep_going_pass_signal): Ditto.
3864 2020-05-13 Tom Tromey <tromey@adacore.com>
3866 * ada-lang.c (align_value): Remove.
3867 (ada_template_to_fixed_record_type_1): Use align_up.
3869 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3871 * async-event.c: Update the copyright year.
3872 * async-event.h: Update the copyright year.
3874 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
3876 * objfiles.h (is_addr_in_objfile,
3877 shared_objfile_contains_address_p): Return bool.
3878 * objfile.c (is_addr_in_objfile,
3879 shared_objfile_contains_address_p): Return bool.
3881 2020-05-11 Tom Tromey <tromey@adacore.com>
3883 * cli/cli-cmds.c (info_command): Restore.
3884 (_initialize_cli_cmds): Use add_prefix_command for "info".
3885 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3887 2020-05-11 Tom Tromey <tromey@adacore.com>
3889 * ada-lang.c (ada_value_primitive_field): Now public.
3890 * ada-lang.h (ada_value_primitive_field): Declare.
3891 * ada-valprint.c (print_field_values): Use
3892 ada_value_primitive_field for wrapper fields.
3894 2020-05-11 Tom de Vries <tdevries@suse.de>
3896 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3899 2020-05-11 Tom de Vries <tdevries@suse.de>
3902 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3903 with length 0, if not gdb-produced.
3904 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3906 2020-05-09 Tom de Vries <tdevries@suse.de>
3909 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3912 2020-05-09 Tom Tromey <tom@tromey.com>
3914 * top.c (server_command): Now bool.
3915 * top.h (server_command): Now bool.
3917 2020-05-08 Tom Tromey <tromey@adacore.com>
3919 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3920 already being processed.
3922 2020-05-08 Tom Tromey <tom@tromey.com>
3924 * printcmd.c (struct display) <next>: Remove.
3925 <display>: New constructor.
3926 <exp_string>: Now a std::string.
3927 <enabled_p>: Now a bool.
3928 (display_number): Move definition earlier.
3929 (displays): Rename from display_chain. Now a std::vector.
3930 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3931 (display_command): Update.
3932 (do_one_display, disable_display)
3933 (enable_disable_display_command, do_enable_disable_display):
3935 (free_display): Remove.
3936 (clear_displays): Rewrite.
3937 (delete_display): Update.
3938 (map_display_numbers): Use function_view. Remove "data"
3940 (do_delete_display): Remove.
3941 (undisplay_command): Update.
3942 (do_one_display, do_displays, disable_display)
3943 (info_display_command): Update.
3944 (do_enable_disable_display): Remove.
3945 (enable_disable_display_command)
3946 (clear_dangling_display_expressions): Update.
3948 2020-05-08 Tom Tromey <tom@tromey.com>
3950 * symtab.c (set_symbol_cache_size)
3951 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3952 (maintenance_print_symbol_cache_statistics): Update.
3953 * symmisc.c (print_symbol_bcache_statistics)
3954 (print_objfile_statistics, maintenance_print_objfiles)
3955 (maintenance_info_symtabs, maintenance_check_symtabs)
3956 (maintenance_expand_symtabs, maintenance_info_line_tables):
3958 * symfile-debug.c (set_debug_symfile): Update.
3959 * source.c (forget_cached_source_info): Update.
3960 * python/python.c (gdbpy_progspaces): Update.
3961 * psymtab.c (maintenance_info_psymtabs): Update.
3962 * probe.c (parse_probes): Update.
3963 * linespec.c (iterate_over_all_matching_symtabs)
3964 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3965 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3966 * exec.c (exec_target::close): Update.
3967 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3968 * breakpoint.c (print_one_breakpoint_location)
3969 (create_longjmp_master_breakpoint)
3970 (create_std_terminate_master_breakpoint): Update.
3971 * progspace.c (program_spaces): Now a std::vector.
3972 (maybe_new_address_space): Update.
3973 (add_program_space): Remove.
3974 (program_space::program_space): Update.
3975 (remove_program_space): Update.
3976 (number_of_program_spaces): Remove.
3977 (print_program_space, update_address_spaces): Update.
3978 * progspace.h (program_spaces): Change type.
3979 (ALL_PSPACES): Remove.
3980 (number_of_program_spaces): Don't declare.
3981 (struct program_space) <next>: Remove.
3983 2020-05-08 Tom Tromey <tom@tromey.com>
3985 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3986 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3987 (enable_break): Update.
3988 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3989 (frv_fdpic_find_canonical_descriptor): Update.
3990 (frv_fetch_objfile_link_map): Update.
3991 * progspace.c (program_space::free_all_objfiles): Update.
3992 (program_space::solibs): New method.
3993 * progspace.h (struct program_space) <solibs>: New method.
3994 * solist.h (master_so_list): Don't declare.
3995 (ALL_SO_LIBS): Remove.
3996 * solib.h (so_list_head): Remove.
3997 (update_solib_list): Update comment.
3998 * solib.c (master_so_list): Remove.
3999 (solib_used, update_solib_list, solib_add)
4000 (info_sharedlibrary_command, clear_solib)
4001 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4003 2020-05-08 Tom Tromey <tom@tromey.com>
4005 * extension.c (extension_languages): Now a std::array.
4006 (ALL_EXTENSION_LANGUAGES): Remove.
4007 (get_ext_lang_defn, get_ext_lang_of_file)
4008 (eval_ext_lang_from_control_command): Update.
4009 (finish_ext_lang_initialization)
4010 (auto_load_ext_lang_scripts_for_objfile)
4011 (ext_lang_type_printers::ext_lang_type_printers)
4012 (apply_ext_lang_type_printers)
4013 (ext_lang_type_printers::~ext_lang_type_printers)
4014 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4015 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4016 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4017 (get_matching_xmethod_workers, ext_lang_colorize)
4018 (ext_lang_before_prompt): Update.
4019 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4021 2020-05-08 Tom Tromey <tom@tromey.com>
4023 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4025 <swap_string, m_string>: Remove.
4026 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4028 * stabsread.c (define_symbol, read_type): Update.
4029 * linespec.c (find_linespec_symbols): Update.
4030 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4031 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4032 * dbxread.c (read_dbx_symtab): Update.
4033 * cp-support.h (cp_canonicalize_string_full)
4034 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4035 Return unique_xmalloc_ptr.
4036 * cp-support.c (inspect_type): Update.
4037 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4038 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4040 * c-typeprint.c (print_name_maybe_canonical): Update.
4041 * break-catch-throw.c (check_status_exception_catchpoint):
4044 2020-05-08 Tom de Vries <tdevries@suse.de>
4046 * infrun.c (follow_fork): Copy current_line and current_symtab to
4049 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4051 * async-event.c (struct async_signal_handler, struct
4052 async_event_handler): Reformat, remove typedef.
4054 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4056 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4057 access thistype->main_type->dyn_prop_list directly.
4059 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4061 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4062 (remove_dyn_prop): Remove. Update all users to use
4063 type::remove_dyn_prop.
4064 * gdbtypes.c (remove_dyn_prop): Rename to...
4065 (type::remove_dyn_prop): ... this.
4067 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4069 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4070 (add_dyn_prop): Remove. Update all users to use
4072 * gdbtypes.c (add_dyn_prop): Rename to...
4073 (type::add_dyn_prop): ... this.
4075 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4077 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4078 (get_dyn_prop): Remove. Update all users to use
4080 * gdbtypes.c (get_dyn_prop): Rename to...
4081 (type::dyn_prop): ... this.
4083 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4085 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4087 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4089 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4090 instruction, skip it if it's there.
4092 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
4094 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4096 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
4098 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4099 * gdbtypes.c (recursive_dump_type): Remove use of
4102 2020-05-03 Tom Tromey <tom@tromey.com>
4104 * breakpoint.c (catch_command, tcatch_command): Remove.
4105 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4106 add_show_prefix_cmd.
4107 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4108 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4110 (add_internal_problem_command): Use add_basic_prefix_cmd,
4111 add_show_prefix_cmd.
4112 * mips-tdep.c (set_mipsfpu_command): Remove.
4113 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4114 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4115 (_initialize_index_cache): Use add_basic_prefix_cmd.
4116 * memattr.c (dummy_cmd): Remove.
4117 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4118 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4119 (_initialize_tui_win): Use add_basic_prefix_cmd,
4120 add_show_prefix_cmd.
4121 * cli/cli-logging.c (set_logging_command): Remove.
4122 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4123 add_show_prefix_cmd.
4124 (show_logging_command): Remove.
4125 * target.c (target_command): Remove.
4126 (add_target): Use add_basic_prefix_cmd.
4128 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
4130 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4132 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4134 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4137 2020-04-30 Kamil Rytarowski <n54@gmx.com>
4139 * nbsd-nat.c (nbsd_enable_proc_events)
4140 (nbsd_nat_target::post_startup_inferior): Add.
4141 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4142 (nbsd_nat_target::update_thread_list): Rewrite.
4143 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4144 "PTRACE_LWP_CREATE".
4145 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4147 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4149 * stack.c (_initialize_stack): Remove duplicated creation
4150 of "frame" command and "f" alias.
4152 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4155 * gdbtypes.c (check_typedef): Calculate size of array of
4158 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4161 * i386-tdep.c (i386_push_dummy_call): Call
4162 i386_thiscall_push_dummy_call.
4163 (i386_thiscall_push_dummy_call): New function.
4164 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4165 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4166 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4168 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4170 * gdbarch.sh (do_read): Add shellcheck disable directive for
4173 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4175 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4176 "referenced but not assigned" warning.
4178 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4180 * gdbarch.sh: Remove code that sets fallbackdefault.
4182 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4184 * gdbarch.sh: Use shell operators && and || instead of
4187 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4189 * gdbarch.sh: Use $(...) instead of `...`.
4191 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4193 * gdbarch.sh: Use double quotes around variables.
4195 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4197 * gdbarch.sh: Use %s with printf, instead of variables in the
4200 2020-04-29 Tom Tromey <tromey@adacore.com>
4203 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4205 (read_enumeration_type): Call
4206 update_enumeration_type_from_children later. Update comments.
4207 (process_enumeration_scope): Don't create type fields.
4209 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4211 * nbsd-tdep.c: Include "xml-syscall.h".
4212 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4214 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4216 * nbsd-nat.c: Include "sys/wait.h".
4217 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4218 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4219 (nbsd_nat_target::remove_exec_catchpoint)
4220 (nbsd_nat_target::set_syscall_catchpoint): Add.
4221 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4222 (nbsd_nat_target::insert_exec_catchpoint)
4223 (nbsd_nat_target::remove_exec_catchpoint)
4224 (nbsd_nat_target::set_syscall_catchpoint): Add.
4225 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4226 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4227 `nbsd_get_syscall_number'.
4229 2020-04-29 Tom Tromey <tom@tromey.com>
4231 * stack.c (print_block_frame_labels): Remove.
4233 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
4236 * ada-valprint.c (val_print_packed_array_elements): Move array
4237 end bracket to new line.
4238 (ada_val_print_string): Remove extra spaces before first array
4240 * c-valprint.c (c_value_print_array): Likewise.
4241 * m2-valprint.c (m2_print_array_contents): Likewise.
4242 (m2_value_print_inner): Likewise.
4243 * p-valprint.c (pascal_value_print_inner): Likewise.
4244 * valprint.c (generic_val_print_array): Likewise.
4245 (value_print_array_elements): Move first array element and array
4246 end bracket to new line.
4248 2020-04-29 Tom de Vries <tdevries@suse.de>
4251 * linespec.c (find_method): Fix ix calculation.
4253 2020-04-28 Kamil Rytarowski <n54@gmx.com>
4255 * syscalls/update-netbsd.sh: New file.
4256 * syscalls/netbsd.xml: Regenerate.
4257 * data-directory/Makefile.in: Register `netbsd.xml' in
4260 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4262 * syscalls/update-freebsd.sh: Add double quotes.
4264 2020-04-28 Tom Tromey <tom@tromey.com>
4267 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4268 (cmdpy_init): Allow class_tui.
4270 2020-04-28 Mark Williams <mark@myosotissp.com>
4273 * dwarf2read.c: Add missing assingments to list_in_scope when
4274 start_symtab was already called.
4276 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4279 * dwarf2/read.c (offset_map_type): Use
4280 gdb:hash_enum<sect_offset> as hash function.
4282 2020-04-28 Tom de Vries <tdevries@suse.de>
4284 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4285 with DW_AT_signature.
4287 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
4289 * configure.ac: Remove check for fs_base/gs_base in
4291 * configure: Re-generate.
4292 * config.in: Re-generate.
4293 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4294 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4295 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4297 2020-04-27 Luis Machado <luis.machado@linaro.org>
4299 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4300 problematic inline frame unwinding situation.
4301 * frame.c (frame_id_computed_p): New function.
4302 * frame.h (frame_id_computed_p): New prototype.
4304 2020-04-26 Tom Tromey <tom@tromey.com>
4306 * command.h (enum command_class) <class_pseudo>: Remove.
4308 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4310 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4313 2020-04-25 Kamil Rytarowski <n54@gmx.com>
4315 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4316 `PT_GET_PROCESS_STATE' block.
4318 2020-04-24 Tom Tromey <tom@tromey.com>
4320 * symtab.h (symbol_get_demangled_name): Don't declare.
4321 * symtab.c (symbol_get_demangled_name): Remove.
4322 (general_symbol_info::natural_name)
4323 (general_symbol_info::demangled_name): Update.
4325 2020-04-24 Tom Tromey <tom@tromey.com>
4328 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4330 2020-04-24 Tom Tromey <tom@tromey.com>
4333 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4335 (new_symbol): Likewise.
4336 * compile/compile-object-load.c (get_out_value_type): Use
4337 symbol_matches_search_name.
4339 2020-04-24 Tom Tromey <tom@tromey.com>
4341 * dwarf2/read.c (add_partial_symbol): Do not call
4342 compute_and_set_names.
4344 2020-04-24 Tom Tromey <tom@tromey.com>
4346 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4349 2020-04-24 Tom Tromey <tom@tromey.com>
4351 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4352 (add_psymbol_to_list): New overload. Make old overload call new
4354 * psympriv.h (add_psymbol_to_list): New overload.
4356 2020-04-24 Tom Tromey <tom@tromey.com>
4358 * dwarf2/read.c (partial_die_info::read) <case
4359 DW_AT_linkage_name>: Use value_as_string.
4360 (dwarf2_string_attr): Use value_as_string.
4361 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4363 * dwarf2/attribute.c (attribute::value_as_string): New method.
4365 2020-04-24 Tom Tromey <tom@tromey.com>
4367 * symtab.c (general_symbol_info::natural_name)
4368 (general_symbol_info::demangled_name): Check for language_rust.
4370 2020-04-24 Tom Tromey <tom@tromey.com>
4372 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4373 (dwarf2_physname): ... from here.
4374 (partial_die_info::read): Add Rust "{" hack.
4376 2020-04-24 Tom Tromey <tom@tromey.com>
4378 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4380 (symbol_set_demangled_name): Don't declare.
4381 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4382 symbol_set_demangled_name.
4383 (general_symbol_info::set_language)
4384 (general_symbol_info::compute_and_set_names): Update.
4385 * minsyms.c (minimal_symbol_reader::install): Update.
4386 * dwarf2/read.c (new_symbol): Update.
4388 2020-04-24 Tom Tromey <tromey@adacore.com>
4391 * python/py-type.c (convert_field): Handle
4392 FIELD_LOC_KIND_DWARF_BLOCK.
4393 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4394 (typy_get_dynamic): Nw function.
4395 (type_object_getset): Add "dynamic".
4398 2020-04-24 Tom Tromey <tromey@adacore.com>
4400 * ada-typeprint.c (print_choices, print_variant_part)
4401 (print_record_field_types_dynamic): New functions.
4402 (print_record_field_types): Use print_record_field_types_dynamic.
4404 2020-04-24 Tom Tromey <tromey@adacore.com>
4406 * dwarf2/read.c (handle_data_member_location): New overload.
4407 (dwarf2_add_field): Use it.
4408 (decode_locdesc): Add "computed" parameter. Update comment.
4409 * gdbtypes.c (is_dynamic_type_internal): Also look for
4410 FIELD_LOC_KIND_DWARF_BLOCK.
4411 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4412 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4413 virtual base classes.
4414 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4415 FIELD_LOC_KIND_DWARF_BLOCK.
4417 2020-04-24 Tom Tromey <tromey@adacore.com>
4419 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4420 * gdbtypes.c (is_dynamic_type_internal): Check
4421 TYPE_HAS_DYNAMIC_LENGTH.
4422 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4423 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4425 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4428 2020-04-24 Tom Tromey <tromey@adacore.com>
4430 * dwarf2/read.c (struct variant_field): Rewrite.
4431 (struct variant_part_builder): New.
4432 (struct nextfield): Remove "variant" field. Add "offset".
4433 (struct field_info): Add "current_variant_part" and
4435 (alloc_discriminant_info): Remove.
4436 (alloc_rust_variant): New function.
4437 (quirk_rust_enum): Update.
4438 (dwarf2_add_field): Set "offset" member. Don't handle
4439 DW_TAG_variant_part.
4440 (offset_map_type): New typedef.
4441 (convert_variant_range, create_one_variant)
4442 (create_one_variant_part, create_variant_parts)
4443 (add_variant_property): New functions.
4444 (dwarf2_attach_fields_to_type): Call add_variant_property.
4445 (read_structure_type): Don't handle DW_TAG_variant_part.
4446 (handle_variant_part, handle_variant): New functions.
4447 (handle_struct_member_die): Use them.
4448 (process_structure_scope): Don't handle variant parts.
4449 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4450 (struct discriminant_info): Remove.
4451 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4452 (struct main_type) <flag_discriminated_union>: Remove.
4453 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4454 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4455 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4457 * valops.c (value_union_variant): Remove.
4458 * value.h (value_union_variant): Don't declare.
4460 2020-04-24 Tom Tromey <tromey@adacore.com>
4462 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4463 (ada_value_primitive_packed_val): Update.
4464 * ada-valprint.c (ada_value_print_1): Update.
4465 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4466 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4467 just an address. Use evaluate_for_locexpr_baton.
4468 (dwarf2_evaluate_property): Update.
4469 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4471 * findvar.c (default_read_var_value): Update.
4472 * gdbtypes.c (compute_variant_fields_inner)
4473 (resolve_dynamic_type_internal): Update.
4474 (resolve_dynamic_type): Change type of valaddr parameter.
4475 * gdbtypes.h (resolve_dynamic_type): Update.
4476 * valarith.c (value_subscripted_rvalue): Update.
4477 * value.c (value_from_contents_and_address): Update.
4479 2020-04-24 Tom Tromey <tromey@adacore.com>
4481 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4482 "push_initial_value" parameter.
4483 (dwarf2_evaluate_property): Likewise.
4484 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4486 2020-04-24 Tom Tromey <tromey@adacore.com>
4488 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4489 (variant::matches, compute_variant_fields_recurse)
4490 (compute_variant_fields_inner, compute_variant_fields): New
4492 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4493 Use resolved_type after type is made.
4494 (operator==): Add new cases.
4495 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4496 (struct discriminant_range, struct variant, struct variant_part):
4498 (union dynamic_prop_data) <variant_parts, original_type>: New
4500 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4501 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4503 * value.c (unpack_bits_as_long): Now public.
4504 * value.h (unpack_bits_as_long): Declare.
4506 2020-04-24 Tom Tromey <tromey@adacore.com>
4508 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4509 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4511 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
4513 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4515 2020-04-24 Kamil Rytarowski <n54@gmx.com>
4517 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4518 (remove_fork_catchpoint, post_startup_inferior)
4519 (post_attach): Move...
4520 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4521 (remove_fork_catchpoint, post_startup_inferior)
4522 (post_attach): ...here.
4523 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4524 (remove_fork_catchpoint, post_startup_inferior)
4525 (post_attach): Move...
4526 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4527 (remove_fork_catchpoint, post_startup_inferior)
4528 (post_attach): ...here.
4530 2020-04-24 Tom Tromey <tromey@adacore.com>
4532 * nat/windows-nat.h (struct windows_thread_info)
4533 <pc_adjusted>: New member.
4534 * windows-nat.c (windows_fetch_one_register): Check
4536 (windows_nat_target::get_windows_debug_event)
4537 (windows_nat_target::wait): Set pc_adjusted.
4539 2020-04-24 Tom de Vries <tdevries@suse.de>
4541 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4542 Run gdb-add-index inside temp dir.
4544 2020-04-23 Tom Tromey <tromey@adacore.com>
4546 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4549 2020-04-23 Luis Machado <luis.machado@linaro.org>
4551 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4552 get_frame_register instead of gdbarch_unwind_pc.
4554 2020-04-23 Tom de Vries <tdevries@suse.de>
4556 * symtab.c (lookup_global_symbol): Prefer def over decl.
4558 2020-04-23 Tom de Vries <tdevries@suse.de>
4561 * block.c (best_symbol, better_symbol): Promote to external.
4562 * block.h (best_symbol, better_symbol): Declare.
4563 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4566 2020-04-23 Tom Tromey <tromey@adacore.com>
4569 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4570 "const char *", not a "const std::string &".
4571 <name_and_matcher::operator==>: Update.
4572 * unittests/lookup_name_info-selftests.c: Change type of
4575 2020-04-23 Tom Tromey <tom@tromey.com>
4577 * inferior.h (iterate_over_inferiors): Don't declare.
4578 * inferior.c (iterate_over_inferiors): Remove.
4579 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4581 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4582 use iterate_over_inferiors.
4583 (darwin_resume_inferior_it)
4584 (struct resume_inferior_threads_param)
4585 (darwin_resume_inferior_threads_it): Remove.
4586 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4588 2020-04-23 Tom de Vries <tdevries@suse.de>
4590 * blockframe.c (find_pc_partial_function): Use
4591 find_pc_sect_compunit_symtab rather than
4592 objfile->sf->qf->find_pc_sect_compunit_symtab.
4594 2020-04-22 Tom de Vries <tdevries@suse.de>
4597 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4600 2020-04-22 Tom de Vries <tdevries@suse.de>
4603 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4606 2020-04-22 Tom de Vries <tdevries@suse.de>
4609 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4610 CU if already created.
4612 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4614 * infrun.c (displaced_step_fixup): Switch to the event_thread
4615 before calling displaced_step_restore, not after.
4617 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4619 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4620 its inferior is not recorded by us.
4621 (record_btrace_target_open): Replace call to
4622 all_non_exited_threads () with call to current_inferior
4623 ()->non_exited_threads ().
4624 (record_btrace_target::stop_recording): Likewise.
4625 (record_btrace_target::close): Likewise.
4626 (record_btrace_target::wait): Likewise.
4627 (record_btrace_target::record_stop_replaying): Likewise.
4629 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4631 * btrace.c (btrace_enable): Throw an error on double enables and
4632 when enabling recording fails.
4633 (btrace_disable): Throw an error if the thread is not recorded.
4635 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4637 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4638 request if we do not have a thread_info.
4640 2020-04-21 Tom de Vries <tdevries@suse.de>
4644 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4645 exception in get_frame_id.
4647 2020-04-20 Tom Tromey <tromey@adacore.com>
4649 * python/python.c (struct gdbpy_event): Mark move constructor as
4651 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4652 constructor as noexcept.
4653 * completer.h (struct completion_result): Mark move constructor as
4655 * completer.c (completion_result::completion_result): Use
4656 initialization style. Don't call reset_match_list.
4658 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4660 * MAINTAINERS (Write After Approval): Add myself.
4662 2020-04-18 Tom Tromey <tom@tromey.com>
4664 * windows-tdep.c (init_w32_command_list)
4665 (w32_prefix_command_valid): Restore.
4666 (_initialize_windows_tdep): Call init_w32_command_list.
4668 2020-04-18 Tom Tromey <tom@tromey.com>
4670 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4671 * value.c (value_fn_field): Update.
4672 * valops.c (find_function_in_inferior)
4673 (value_allocate_space_in_inferior): Update.
4674 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4676 * tui/tui-source.c (tui_source_window::set_contents): Update.
4677 * symtab.c (lookup_global_or_static_symbol)
4678 (find_function_start_sal_1, skip_prologue_sal)
4679 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4680 * symmisc.c (dump_msymbols, dump_symtab_1)
4681 (maintenance_print_one_line_table): Update.
4682 * symfile.c (init_entry_point_info, section_is_mapped)
4683 (list_overlays_command, simple_read_overlay_table)
4684 (simple_overlay_update_1): Update.
4685 * stap-probe.c (handle_stap_probe): Update.
4686 * stabsread.c (dbx_init_float_type, define_symbol)
4687 (read_one_struct_field, read_enum_type, read_range_type): Update.
4688 * source.c (info_line_command): Update.
4689 * python/python.c (gdbpy_source_objfile_script)
4690 (gdbpy_execute_objfile_script): Update.
4691 * python/py-type.c (save_objfile_types): Update.
4692 * python/py-objfile.c (py_free_objfile): Update.
4693 * python/py-inferior.c (python_new_objfile): Update.
4694 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4695 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4696 (maintenance_check_psymtabs): Update.
4697 * printcmd.c (info_address_command): Update.
4698 * objfiles.h (struct objfile) <arch>: New method, from
4700 (get_objfile_arch): Don't declare.
4701 * objfiles.c (get_objfile_arch): Remove.
4702 (filter_overlapping_sections): Update.
4703 * minsyms.c (msymbol_is_function): Update.
4704 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4705 (output_nondebug_symbol): Update.
4706 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4707 (mdebug_expand_psymtab): Update.
4708 * machoread.c (macho_add_oso_symfile): Update.
4709 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4711 * linux-fork.c (checkpoint_command): Update.
4712 * linespec.c (convert_linespec_to_sals): Update.
4713 * jit.c (finalize_symtab): Update.
4714 * infrun.c (insert_exception_resume_from_probe): Update.
4715 * ia64-tdep.c (ia64_find_unwind_table): Update.
4716 * hppa-tdep.c (internalize_unwinds): Update.
4717 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4719 * gcore.c (call_target_sbrk): Update.
4720 * elfread.c (record_minimal_symbol, elf_symtab_read)
4721 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4722 (elf_gnu_ifunc_resolve_by_got): Update.
4723 * dwarf2/read.c (create_addrmap_from_index)
4724 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4725 (read_debug_names_from_section)
4726 (process_psymtab_comp_unit_reader, add_partial_symbol)
4727 (add_partial_subprogram, process_full_comp_unit)
4728 (read_file_scope, read_func_scope, read_lexical_block_scope)
4729 (read_call_site_scope, dwarf2_ranges_read)
4730 (dwarf2_record_block_ranges, dwarf2_add_field)
4731 (mark_common_block_symbol_computed, read_tag_pointer_type)
4732 (read_tag_string_type, dwarf2_init_float_type)
4733 (dwarf2_init_complex_target_type, read_base_type)
4734 (partial_die_info::read, partial_die_info::read)
4735 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4736 (dwarf2_fetch_die_loc_sect_off): Update.
4737 * dwarf2/loc.c (dwarf2_find_location_expression)
4738 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4739 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4740 (dwarf2_loc_desc_get_symbol_read_needs)
4741 (locexpr_describe_location_piece, locexpr_describe_location_1)
4742 (loclist_describe_location): Update.
4743 * dwarf2/index-write.c (write_debug_names): Update.
4744 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4745 * dtrace-probe.c (dtrace_process_dof): Update.
4746 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4747 (process_one_symbol): Update.
4748 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4749 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4750 (coff_read_enum_type): Update.
4751 * cli/cli-cmds.c (edit_command, list_command): Update.
4752 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4753 * breakpoint.c (create_overlay_event_breakpoint)
4754 (create_longjmp_master_breakpoint)
4755 (create_std_terminate_master_breakpoint)
4756 (create_exception_master_breakpoint, get_sal_arch): Update.
4757 * block.c (block_gdbarch): Update.
4758 * annotate.c (annotate_source_line): Update.
4760 2020-04-17 Tom Tromey <tromey@adacore.com>
4762 * auto-load.c (show_auto_load_cmd): Remove.
4763 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4764 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4765 (maintenance_print_arc_command): Remove.
4766 * tui/tui-win.c (tui_command): Remove.
4767 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4768 * tui/tui-layout.c (tui_layout_command): Remove.
4769 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4770 * python/python.c (user_set_python, user_show_python): Remove.
4771 (_initialize_python): Use add_basic_prefix_cmd,
4772 add_show_prefix_cmd.
4773 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4774 (install_gdb_commands): Use add_basic_prefix_cmd,
4775 add_show_prefix_cmd.
4776 (info_guile_command): Remove.
4777 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4778 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4779 add_show_prefix_cmd.
4780 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4781 Remove do_set and do_show parameters.
4782 * cli/cli-style.c (set_style, show_style): Remove.
4783 (_initialize_cli_style): Use add_basic_prefix_cmd,
4784 add_show_prefix_cmd.
4785 (cli_style_option::add_setshow_commands): Remove do_set and
4787 (cli_style_option::add_setshow_commands): Use
4788 add_basic_prefix_cmd, add_show_prefix_cmd.
4789 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4790 (set_style_name): Remove.
4791 * cli/cli-dump.c (dump_command, append_command): Remove.
4792 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4793 (tekhex_dump_command, binary_dump_command)
4794 (binary_append_command): Remove.
4795 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4796 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4797 (init_w32_command_list): Remove; move into ...
4798 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4799 * valprint.c (set_print, show_print, set_print_raw)
4800 (show_print_raw): Remove.
4801 (_initialize_valprint): Use add_basic_prefix_cmd,
4802 add_show_prefix_cmd.
4803 * typeprint.c (set_print_type, show_print_type): Remove.
4804 (_initialize_typeprint): Use add_basic_prefix_cmd,
4805 add_show_prefix_cmd.
4806 * record.c (set_record_command, show_record_command): Remove.
4807 (_initialize_record): Use add_basic_prefix_cmd,
4808 add_show_prefix_cmd.
4809 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4810 add_show_prefix_cmd.
4811 (info_command, show_command, set_debug, show_debug): Remove.
4812 * top.h (set_history, show_history): Don't declare.
4813 * top.c (set_history, show_history): Remove.
4814 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4815 (unset_tdesc_cmd): Remove.
4816 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4817 add_show_prefix_cmd.
4818 * symtab.c (info_module_command): Remove.
4819 (_initialize_symtab): Use add_basic_prefix_cmd.
4820 * symfile.c (overlay_command): Remove.
4821 (_initialize_symfile): Use add_basic_prefix_cmd.
4822 * sparc64-tdep.c (info_adi_command): Remove.
4823 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4824 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4825 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4826 add_show_prefix_cmd.
4827 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4828 (_initialize_serial): Use add_basic_prefix_cmd,
4829 add_show_prefix_cmd.
4830 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4831 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4832 add_show_prefix_cmd.
4833 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4834 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4835 add_show_prefix_cmd.
4836 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4837 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4838 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4839 add_show_prefix_cmd.
4840 * remote.c (remote_command, set_remote_cmd): Remove.
4841 (_initialize_remote): Use add_basic_prefix_cmd.
4842 * record-full.c (set_record_full_command)
4843 (show_record_full_command): Remove.
4844 (_initialize_record_full): Use add_basic_prefix_cmd,
4845 add_show_prefix_cmd.
4846 * record-btrace.c (cmd_set_record_btrace)
4847 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4848 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4849 (cmd_show_record_btrace_pt): Remove.
4850 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4851 add_show_prefix_cmd.
4852 * ravenscar-thread.c (set_ravenscar_command)
4853 (show_ravenscar_command): Remove.
4854 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4855 add_show_prefix_cmd.
4856 * mips-tdep.c (show_mips_command, set_mips_command)
4857 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4858 add_show_prefix_cmd.
4859 * maint.c (maintenance_command, maintenance_info_command)
4860 (maintenance_check_command, maintenance_print_command)
4861 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4862 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4863 add_show_prefix_cmd.
4864 (show_per_command_cmd): Remove.
4865 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4867 (maintenance_show_test_settings_cmd): Remove.
4868 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4869 add_show_prefix_cmd.
4870 * maint-test-options.c (maintenance_test_options_command):
4872 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4873 * macrocmd.c (macro_command): Remove
4874 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4875 * language.c (set_check, show_check): Remove.
4876 (_initialize_language): Use add_basic_prefix_cmd,
4877 add_show_prefix_cmd.
4878 * infcmd.c (unset_command): Remove.
4879 (_initialize_infcmd): Use add_basic_prefix_cmd.
4880 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4881 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4882 add_show_prefix_cmd.
4883 * go32-nat.c (go32_info_dos_command): Remove.
4884 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4885 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4886 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4887 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4888 (_initialize_frame): Use add_basic_prefix_cmd,
4889 add_show_prefix_cmd.
4890 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4891 (_initialize_dcache): Use add_basic_prefix_cmd,
4892 add_show_prefix_cmd.
4893 * cp-support.c (maint_cplus_command): Remove.
4894 (_initialize_cp_support): Use add_basic_prefix_cmd.
4895 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4896 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4897 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4898 add_basic_prefix_cmd, add_show_prefix_cmd.
4899 * breakpoint.c (save_command): Remove.
4900 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4901 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4902 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4903 add_show_prefix_cmd.
4904 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4905 (set_ada_command, show_ada_command): Remove.
4906 (_initialize_ada_language): Use add_basic_prefix_cmd,
4907 add_show_prefix_cmd.
4908 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4910 2020-04-16 Kamil Rytarowski <n54@gmx.com>
4912 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4913 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4915 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4917 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4920 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4922 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4923 import table is not at beginning of .idata section.
4925 2020-04-16 Pedro Alves <palves@redhat.com>
4927 * inferior.c (delete_inferior): Use delete operator directly
4928 instead of delete_program_space.
4929 * progspace.c (add_program_space): New, factored out from
4930 program_space::program_space.
4931 (remove_program_space): New, factored out from
4932 delete_program_space.
4933 (program_space::program_space): Remove intro comment. Rewrite.
4934 (program_space::~program_space): Remove intro comment. Call
4935 remove_program_space.
4936 (delete_program_space): Delete.
4937 * progspace.h (program_space::program_space): Make explicit. Move
4938 intro comment here, adjusted.
4939 (program_space::~program_space): Move intro comment here,
4941 (delete_program_space): Remove.
4943 2020-04-16 Tom Tromey <tromey@adacore.com>
4945 * windows-nat.c (windows_nat::handle_access_violation): New
4947 * nat/windows-nat.h (handle_access_violation): Declare.
4948 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4949 windows-nat.c. Call handle_access_violation.
4951 2020-04-16 Tom de Vries <tdevries@suse.de>
4954 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4955 CUs without psymtab.
4957 2020-04-16 Kevin Buettner <kevinb@redhat.com>
4959 * python/python.c (do_start_initialization): Don't call
4960 PyEval_InitThreads for Python 3.9 and beyond.
4962 2020-04-15 Kamil Rytarowski <n54@gmx.com>
4964 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4966 (obsd_nat_target::wait): Likewise.
4968 2020-04-15 Tom Tromey <tromey@adacore.com>
4970 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4971 (DEBUG_EXCEPT): Use debug_printf.
4973 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4975 * completer.c (class completion_tracker::completion_hash_entry)
4976 <hash_name>: New member function.
4977 (completion_tracker::discard_completions): New callback to hash a
4978 completion_hash_entry, pass this to htab_create_alloc.
4980 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4982 * windows-nat.c (windows_make_so): Warn rather than stopping with
4983 an error if realpath() fails.
4985 2020-04-14 Kamil Rytarowski <n54@gmx.com>
4987 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4988 (nbsd_nat_target::info_proc): Add do_status.
4990 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4991 Tom de Vries <tdevries@suse.de>
4994 * psympriv.h (struct partial_symtab::read_symtab)
4995 (struct partial_symtab::expand_psymtab)
4996 (struct partial_symtab::read_dependencies): Update comments.
4997 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4998 read_symtab for includer.
4999 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5000 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5001 (struct dwarf2_include_psymtab::m_readin): Remove.
5002 (struct dwarf2_include_psymtab::includer): New member function.
5003 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5005 2020-04-14 Tom de Vries <tdevries@suse.de>
5008 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5009 with NULL symbol_matcher and lookup_name.
5010 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5012 * dwarf2/read.c (dw2_expand_symtabs_matching)
5013 (dw2_debug_names_expand_symtabs_matching): Same.
5014 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5015 Make lookup_name a pointer. Update comment.
5016 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5017 lookup_name being a pointer.
5018 * symfile.c (expand_symtabs_matching): Same.
5019 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5020 * linespec.c (iterate_over_all_matching_symtabs): Same.
5022 2020-04-13 Tom Tromey <tom@tromey.com>
5024 * run-on-main-thread.c: Update include.
5025 * unittests/main-thread-selftests.c: Update include.
5026 * tui/tui-win.c: Update include.
5027 * tui/tui-io.c: Update include.
5028 * tui/tui-interp.c: Update include.
5029 * tui/tui-hooks.c: Update include.
5030 * top.h: Update include.
5031 * top.c: Update include.
5032 * ser-base.c: Update include.
5033 * remote.c: Update include.
5034 * remote-notif.c: Update include.
5035 * remote-fileio.c: Update include.
5036 * record-full.c: Update include.
5037 * record-btrace.c: Update include.
5038 * python/python.c: Update include.
5039 * posix-hdep.c: Update include.
5040 * mingw-hdep.c: Update include.
5041 * mi/mi-main.c: Update include.
5042 * mi/mi-interp.c: Update include.
5043 * main.c: Update include.
5044 * linux-nat.c: Update include.
5045 * interps.c: Update include.
5046 * infrun.c: Update include.
5047 * inf-loop.c: Update include.
5048 * event-top.c: Update include.
5049 * event-loop.c: Move to ../gdbsupport/.
5050 * event-loop.h: Move to ../gdbsupport/.
5051 * async-event.h: Update include.
5052 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5054 2020-04-13 Tom Tromey <tom@tromey.com>
5056 * tui/tui-win.c: Include async-event.h.
5057 * remote.c: Include async-event.h.
5058 * remote-notif.c: Include async-event.h.
5059 * record-full.c: Include async-event.h.
5060 * record-btrace.c: Include async-event.h.
5061 * infrun.c: Include async-event.h.
5062 * event-top.c: Include async-event.h.
5063 * event-loop.h: Move some declarations to async-event.h.
5064 * event-loop.c: Don't include ser-event.h or top.h. Move some
5065 code to async-event.c.
5066 * async-event.h: New file.
5067 * async-event.c: New file.
5068 * Makefile.in (COMMON_SFILES): Add async-event.c.
5069 (HFILES_NO_SRCDIR): Add async-event.h.
5071 2020-04-13 Tom Tromey <tom@tromey.com>
5073 * utils.c (flush_streams): New function.
5074 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5076 2020-04-13 Tom Tromey <tom@tromey.com>
5078 * event-loop.c (handle_file_event): Use warning, not
5081 2020-04-13 Tom Tromey <tom@tromey.com>
5083 * event-loop.c: Include <chrono>.
5085 2020-04-13 Tom Tromey <tom@tromey.com>
5087 * gdb_select.h: Move to ../gdbsupport/.
5088 * event-loop.c: Update include path.
5089 * top.c: Update include path.
5090 * ser-base.c: Update include path.
5091 * ui-file.c: Update include path.
5092 * ser-tcp.c: Update include path.
5093 * guile/scm-ports.c: Update include path.
5094 * posix-hdep.c: Update include path.
5095 * ser-unix.c: Update include path.
5096 * gdb_usleep.c: Update include path.
5097 * mingw-hdep.c: Update include path.
5098 * inflow.c: Update include path.
5099 * infrun.c: Update include path.
5100 * event-top.c: Update include path.
5102 2020-04-13 Tom Tromey <tom@tromey.com>
5104 * configure: Rebuild.
5105 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5107 2020-04-13 Tom Tromey <tom@tromey.com>
5109 * event-loop.h (start_event_loop): Don't declare.
5110 * event-loop.c (start_event_loop): Move...
5111 * main.c (start_event_loop): ...here. Now static.
5113 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5115 * MAINTAINERS: Update my email address.
5117 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5119 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5122 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5124 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
5125 (nbsd_nat_target::info_proc): Add do_cmdline.
5127 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5129 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
5130 (nbsd_nat_target::info_proc): Add do_cwd.
5132 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5134 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5136 2020-04-11 Kamil Rytarowski <n54@gmx.com>
5138 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5139 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5140 (nbsd_nat_target::info_proc): New functions.
5141 * nbsd-nat.c (kinfo_get_vmmap): New function.
5142 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5143 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5144 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5145 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5147 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5148 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5149 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5150 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5151 (KINFO_VME_FLAG_GROWS_DOWN): New.
5153 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5155 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5158 2020-04-10 Tom Tromey <tromey@adacore.com>
5160 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5162 2020-04-10 Tom Tromey <tromey@adacore.com>
5164 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5165 separate debug files.
5167 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
5169 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5171 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5173 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5174 Check for STATUS_WX86_BREAKPOINT.
5175 (windows_nat_target::wait): Same.
5177 2020-04-10 Tom de Vries <tdevries@suse.de>
5180 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5182 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5184 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5185 (Write After Approval): Remove Tom de Vries.
5187 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5190 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5192 * buildsym.c (record_line): Fix undefined behavior and preserve
5195 2020-04-09 Kamil Rytarowski <n54@gmx.com>
5197 * auxv.h (svr4_auxv_parse): New.
5198 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5199 and generic_auxv_parse.
5200 (svr4_auxv_parse): Add.
5201 * obsd-tdep.c: Include "auxv.h".
5202 (obsd_auxv_parse): Remove.
5203 (obsd_init_abi): Remove comment.
5204 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5205 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5206 * nbsd-tdep.c: Include "auxv.h".
5207 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5209 2020-04-08 Tom Tromey <tromey@adacore.com>
5211 * nat/windows-nat.h (last_wait_event): Don't declare.
5212 (wait_for_debug_event): Update comment.
5213 * nat/windows-nat.c (last_wait_event): Now static.
5215 2020-04-08 Tom Tromey <tromey@adacore.com>
5217 * windows-nat.c (wait_for_debug_event): Move to
5219 * nat/windows-nat.h (wait_for_debug_event): Declare.
5220 * nat/windows-nat.c (wait_for_debug_event): Move from
5221 windows-nat.c. No longer static.
5223 2020-04-08 Tom Tromey <tromey@adacore.com>
5225 * windows-nat.c (get_windows_debug_event): Use
5227 * nat/windows-nat.h (fetch_pending_stop): Declare.
5228 * nat/windows-nat.c (fetch_pending_stop): New function.
5230 2020-04-08 Tom Tromey <tromey@adacore.com>
5232 * windows-nat.c (windows_continue): Use matching_pending_stop and
5233 continue_last_debug_event.
5234 * nat/windows-nat.h (matching_pending_stop)
5235 (continue_last_debug_event): Declare.
5236 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5237 (matching_pending_stop, continue_last_debug_event): New
5240 2020-04-08 Tom Tromey <tromey@adacore.com>
5242 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5243 (handle_exception_result): Move to nat/windows-nat.h.
5244 (DEBUG_EXCEPTION_SIMPLE): Remove.
5245 (windows_nat::handle_ms_vc_exception): New function.
5246 (handle_exception): Move to nat/windows-nat.c.
5247 (get_windows_debug_event): Update.
5248 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5250 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5251 (handle_exception_result): Move from windows-nat.c.
5252 (handle_exception): Declare.
5253 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5254 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5257 2020-04-08 Tom Tromey <tromey@adacore.com>
5259 * windows-nat.c (exception_count, event_count): Remove.
5260 (handle_exception, get_windows_debug_event)
5261 (do_initial_windows_stuff): Update.
5263 2020-04-08 Tom Tromey <tromey@adacore.com>
5265 * windows-nat.c (windows_nat::handle_load_dll)
5266 (windows_nat::handle_unload_dll): Rename. No longer static.
5267 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5270 2020-04-08 Tom Tromey <tromey@adacore.com>
5272 * complaints.h (stop_whining): Declare at top-level.
5273 (complaint): Don't declare stop_whining.
5275 2020-04-08 Tom Tromey <tromey@adacore.com>
5277 * windows-nat.c (windows_nat::handle_output_debug_string):
5278 Rename. No longer static.
5279 * nat/windows-nat.h (handle_output_debug_string): Declare.
5281 2020-04-08 Tom Tromey <tromey@adacore.com>
5283 * windows-nat.c (current_process_handle, current_process_id)
5284 (main_thread_id, last_sig, current_event, last_wait_event)
5285 (current_windows_thread, desired_stop_thread_id, pending_stops)
5286 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5287 (display_selectors, fake_create_process)
5288 (get_windows_debug_event): Update.
5289 * nat/windows-nat.h (current_process_handle, current_process_id)
5290 (main_thread_id, last_sig, current_event, last_wait_event)
5291 (current_windows_thread, desired_stop_thread_id, pending_stops)
5292 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5293 * nat/windows-nat.c (current_process_handle, current_process_id)
5294 (main_thread_id, last_sig, current_event, last_wait_event)
5295 (current_windows_thread, desired_stop_thread_id, pending_stops)
5296 (siginfo_er): New globals. Move from windows-nat.c.
5298 2020-04-08 Tom Tromey <tromey@adacore.com>
5300 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5301 (handle_load_dll): Update.
5302 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5304 2020-04-08 Tom Tromey <tromey@adacore.com>
5306 * windows-nat.c (enum thread_disposition_type): Move to
5308 (windows_nat::thread_rec): Rename from thread_rec. No longer
5310 (windows_add_thread, windows_nat_target::fetch_registers)
5311 (windows_nat_target::store_registers, handle_exception)
5312 (windows_nat_target::resume, get_windows_debug_event)
5313 (windows_nat_target::get_tib_address)
5314 (windows_nat_target::thread_name)
5315 (windows_nat_target::thread_alive): Update.
5316 * nat/windows-nat.h (enum thread_disposition_type): Move from
5318 (thread_rec): Declare.
5320 2020-04-08 Tom Tromey <tromey@adacore.com>
5322 * windows-nat.c: Add "using namespace".
5323 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5324 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5326 2020-04-08 Tom Tromey <tromey@adacore.com>
5328 * nat/windows-nat.h (struct windows_thread_info): Declare
5330 * nat/windows-nat.c (~windows_thread_info): New.
5332 2020-04-08 Tom Tromey <tromey@adacore.com>
5335 * windows-nat.c (current_event): Update comment.
5336 (last_wait_event, desired_stop_thread_id): New globals.
5337 (struct pending_stop): New.
5338 (pending_stops): New global.
5339 (windows_nat_target) <stopped_by_sw_breakpoint>
5340 <supports_stopped_by_sw_breakpoint>: New methods.
5341 (windows_fetch_one_register): Add assertions. Adjust PC.
5342 (windows_continue): Handle pending stops. Suspend other threads
5343 when stepping. Use last_wait_event
5344 (wait_for_debug_event): New function.
5345 (get_windows_debug_event): Use wait_for_debug_event. Handle
5346 pending stops. Queue spurious stops.
5347 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5348 (windows_nat_target::kill): Use wait_for_debug_event.
5349 * nat/windows-nat.h (struct windows_thread_info)
5350 <stopped_at_software_breakpoint>: New field.
5351 * nat/windows-nat.c (windows_thread_info::resume): Clear
5352 stopped_at_software_breakpoint.
5354 2020-04-08 Tom Tromey <tromey@adacore.com>
5356 * windows-nat.c (enum thread_disposition_type): New.
5357 (thread_rec): Replace "get_context" parameter with "disposition";
5359 (windows_add_thread, windows_nat_target::fetch_registers)
5360 (windows_nat_target::store_registers, handle_exception)
5361 (windows_nat_target::resume, get_windows_debug_event)
5362 (windows_nat_target::get_tib_address)
5363 (windows_nat_target::thread_name)
5364 (windows_nat_target::thread_alive): Update.
5366 2020-04-08 Tom Tromey <tromey@adacore.com>
5368 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5369 (windows_continue): Use windows_continue::resume.
5370 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5371 resume>: Declare new methods.
5372 * nat/windows-nat.c: New file.
5373 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5375 2020-04-08 Tom Tromey <tromey@adacore.com>
5377 * windows-nat.c (windows_add_thread, windows_delete_thread)
5378 (windows_nat_target::fetch_registers)
5379 (windows_nat_target::store_registers, fake_create_process)
5380 (windows_nat_target::resume, windows_nat_target::resume)
5381 (get_windows_debug_event, windows_nat_target::wait)
5382 (windows_nat_target::pid_to_str)
5383 (windows_nat_target::get_tib_address)
5384 (windows_nat_target::get_ada_task_ptid)
5385 (windows_nat_target::thread_name)
5386 (windows_nat_target::thread_alive): Use lwp, not tid.
5388 2020-04-08 Tom Tromey <tromey@adacore.com>
5390 * windows-nat.c (handle_exception)
5391 (windows_nat_target::thread_name): Update.
5392 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5393 <name>: Now unique_xmalloc_ptr.
5395 2020-04-08 Tom Tromey <tromey@adacore.com>
5397 * windows-nat.c (thread_rec)
5398 (windows_nat_target::fetch_registers): Update.
5399 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5401 <debug_registers_changed, reload_context>: Now bool.
5403 2020-04-08 Tom Tromey <tromey@adacore.com>
5405 * windows-nat.c (windows_add_thread): Use new.
5406 (windows_init_thread_list, windows_delete_thread): Use delete.
5407 (get_windows_debug_event): Update.
5408 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5409 destructor, and initializers.
5411 2020-04-08 Tom Tromey <tromey@adacore.com>
5413 * windows-nat.c (struct windows_thread_info): Remove.
5414 * nat/windows-nat.h: New file.
5416 2020-04-08 Tom Tromey <tromey@adacore.com>
5418 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5419 (thread_rec, windows_add_thread, windows_delete_thread)
5420 (windows_continue): Update.
5422 2020-04-08 Tom Tromey <tromey@adacore.com>
5424 * windows-nat.c (struct windows_thread_info): Remove typedef.
5425 (thread_head): Remove.
5426 (thread_list): New global.
5427 (thread_rec, windows_add_thread, windows_init_thread_list)
5428 (windows_delete_thread, windows_continue): Update.
5430 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5432 * windows-tdep.h (windows_init_abi): Add comment.
5433 (cygwin_init_abi): New declaration.
5434 * windows-tdep.c: Split signal enumeration in two, one for
5435 Windows and one for Cygwin.
5436 (windows_gdb_signal_to_target): Only deal with signal of the
5438 (cygwin_gdb_signal_to_target): New function.
5439 (windows_init_abi): Rename to windows_init_abi_common, don't set
5440 gdb_signal_to_target gdbarch method. Add new new function with
5442 (cygwin_init_abi): New function.
5443 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5444 comment. Don't call windows_init_abi.
5445 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5446 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5447 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5448 i386_windows_init_abi_common, don't call windows_init_abi. Add
5449 a new function of this name.
5450 (i386_cygwin_init_abi): New function.
5451 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5454 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5456 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5458 (dwarf2_read_gdb_index): Update.
5460 2020-04-07 Kamil Rytarowski <n54@gmx.com>
5462 * nbsd-tdep.c: Include "objfiles.h".
5463 (nbsd_skip_solib_resolver): New.
5464 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5466 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5468 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5469 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5470 with DW_LLE_base_addressx are being emitted in DWARFv5.
5471 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5472 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5475 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5477 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5478 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5479 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5480 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5481 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5482 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5483 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5486 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5488 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5489 (read_loclist_index): New function definition.
5490 (lookup_loclist_base): New function definition.
5491 (read_loclist_header): New function definition.
5492 (dwarf2_cu): Add loclist_base and loclist_header field.
5493 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5494 (read_full_die_1): Read the value of DW_AT_loclists_base.
5495 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5496 (read_attribute_value): Handle DW_FORM_loclistx.
5497 (skip_one_die): Handle DW_FORM_loclistx.
5498 (loclist_header): New structure declaration.
5499 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5501 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5503 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5504 constructor. Remove `addr` parameter from other constructor and
5505 add `per_cu` parameter.
5506 * dwarf2/read.c (create_partial_symtab): Update.
5508 2020-04-07 Tom de Vries <tdevries@suse.de>
5511 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5512 (partial_die_info::fixup): Inherit has_const_value.
5514 2020-04-07 Tom de Vries <tdevries@suse.de>
5516 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5517 symbols without address.
5519 2020-04-06 Kamil Rytarowski <n54@gmx.com>
5521 * nbsd-nat.h (struct thread_info): Add forward declaration.
5522 (nbsd_nat_target::thread_alive): Add.
5523 (nbsd_nat_target::thread_name): Likewise.
5524 (nbsd_nat_target::update_thread_list): Likewise.
5525 (update_thread_list::post_attach): Likewise.
5526 (post_attach::pid_to_str): Likewise.
5527 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5528 (nbsd_thread_lister): Add.
5529 (nbsd_nat_target::thread_alive): Likewise.
5530 (nbsd_nat_target::thread_name): Likewise.
5531 (nbsd_add_threads): Likewise.
5532 (update_thread_list::post_attach): Likewise.
5533 (nbsd_nat_target::update_thread_list): Likewise.
5534 (post_attach::pid_to_str): Likewise.
5536 2020-04-06 Tom Tromey <tromey@adacore.com>
5538 * ada-valprint.c (print_variant_part): Extract the variant field.
5539 (print_field_values): Use the field as the outer value when
5542 2020-04-06 Tom Tromey <tromey@adacore.com>
5544 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5545 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5546 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5547 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5548 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5550 2020-04-06 Tom Tromey <tromey@adacore.com>
5552 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5555 2020-04-06 Kamil Rytarowski <n54@gmx.com>
5557 * nbsd-tdep.c: Include "gdbarch.h".
5558 Define enum with NetBSD signal numbers.
5559 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5560 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5561 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5562 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5563 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5564 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5565 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5566 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5567 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5568 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5569 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5570 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5572 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
5575 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5577 2020-04-03 Tom Tromey <tromey@adacore.com>
5579 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5580 Read constant block.
5582 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5584 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5585 (gdb_bfd_get_full_section_contents): New declaration.
5586 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5587 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5588 gdb_bfd_get_full_section_contents.
5590 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5592 * exec.c (build_section_table): Replace internal_error with
5594 (section_table_xfer_memory_partial): Likewise.
5595 * mdebugread.c (parse_partial_symbols): Likewise.
5596 * psymtab.c (lookup_partial_symbol): Likewise.
5597 * utils.c (wrap_here): Likewise.
5599 2020-04-02 Tom Tromey <tromey@adacore.com>
5601 * f-lang.c (build_fortran_types): Use arch_type to initialize
5602 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5604 2020-04-02 Tom Tromey <tromey@adacore.com>
5606 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5609 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5610 Bernd Edlinger <bernd.edlinger@hotmail.de>
5611 Tom Tromey <tromey@adacore.com>
5613 * buildsym.c (buildsym_compunit::record_line): Remove
5616 2020-04-02 Tom de Vries <tdevries@suse.de>
5619 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5621 2020-04-02 Tom de Vries <tdevries@suse.de>
5623 * dwarf2/read.c (dwarf2_gdb_index_functions,
5624 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5626 * psymtab.c (psym_lookup_global_symbol_language): New function.
5627 (psym_functions): Init psym_lookup_global_symbol_language with
5628 psym_lookup_global_symbol_language.
5629 * symfile-debug.c (debug_sym_quick_functions): Init
5630 lookup_global_symbol_language with NULL.
5631 * symfile.c (set_initial_language): Remove fixme comment.
5632 * symfile.h (struct quick_symbol_functions): Add
5633 lookup_global_symbol_language.
5634 * symtab.c (find_quick_global_symbol_language): New function.
5635 (find_main_name): Use find_quick_global_symbol_language.
5637 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5639 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5641 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5643 * buildsym.c (record_line): Fix undefined behavior and preserve
5646 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5648 * buildsym.c (record_line): Fix the resizing condition.
5650 2020-04-01 Tom Tromey <tom@tromey.com>
5652 * value.h (value_literal_complex): Add comment.
5653 * valops.c (value_literal_complex): Refer to value.h.
5655 2020-04-01 Tom Tromey <tom@tromey.com>
5657 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5658 (scalar_type): New rule, from typebase.
5659 (typebase): Use scalar_type. Recognize complex types.
5660 (field_name): Handle FLOAT_KEYWORD.
5661 (ident_tokens): Add _Complex and __complex__.
5663 2020-04-01 Tom Tromey <tom@tromey.com>
5666 * valarith.c (promotion_type, complex_binop): New functions.
5667 (scalar_binop): Handle complex numbers. Use promotion_type.
5668 (value_pos, value_neg, value_complement): Handle complex numbers.
5670 2020-04-01 Tom Tromey <tom@tromey.com>
5672 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5673 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5674 (parse_number): Handle complex numbers.
5676 2020-04-01 Tom Tromey <tom@tromey.com>
5678 * c-valprint.c (c_decorations): Change complex suffix to "i".
5680 2020-04-01 Tom Tromey <tom@tromey.com>
5682 * valprint.c (generic_value_print_complex): Use accessors.
5683 * value.h (value_real_part, value_imaginary_part): Declare.
5684 * valops.c (value_real_part, value_imaginary_part): New
5686 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5688 2020-04-01 Tom Tromey <tom@tromey.com>
5690 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5691 (read_range_type): Update.
5692 * mdebugread.c (basic_type): Update.
5693 * go-lang.c (build_go_types): Use init_complex_type.
5694 * gdbtypes.h (struct main_type) <complex_type>: New member.
5695 (init_complex_type): Update.
5696 (arch_complex_type): Don't declare.
5697 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5698 Make name if none given. Use alloc_type_copy. Look for cached
5700 (arch_complex_type): Remove.
5701 (gdbtypes_post_init): Use init_complex_type.
5702 * f-lang.c (build_fortran_types): Use init_complex_type.
5703 * dwarf2/read.c (read_base_type): Update.
5704 * d-lang.c (build_d_types): Use init_complex_type.
5705 * ctfread.c (read_base_type): Update.
5707 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5709 * infrun.c (stop_all_threads): Update assertion, plus when
5710 stopping threads, take into account that we might be trying
5711 to stop an all-stop target.
5712 (stop_waiting): Call 'stop_all_threads' if there exists a
5715 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5717 * target.h (exists_non_stop_target): New function declaration.
5718 * target.c (exists_non_stop_target): New function.
5720 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
5723 * eval.c (is_integral_or_integral_reference): New function.
5724 (evaluate_subexp_standard): Allow integer references in
5727 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5729 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5730 check for no ptid in the stop reply when the target is non-stop.
5732 2020-04-01 Tom Tromey <tromey@adacore.com>
5734 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5735 "name" parameter to rvalue reference. Initialize m_name_holder.
5736 <lookup_name_info>: New overloads.
5737 <name>: Return gdb::string_view.
5738 <c_str>: New method.
5739 <make_ignore_params>: Update.
5740 <search_name_hash>: Update.
5741 <language_lookup_name>: Return const char *.
5742 <m_name>: Change type.
5743 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5744 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5745 (lookup_name_info::match_any): Update.
5746 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5748 * minsyms.c (linkage_name_str): Update.
5749 * language.c (default_symbol_name_matcher): Update.
5750 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5752 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5753 (ada_lookup_name_info::ada_lookup_name_info): Update.
5754 (literal_symbol_name_matcher): Update.
5756 2020-04-01 Tom Tromey <tromey@adacore.com>
5758 * psymtab.c (psymtab_search_name): Remove function.
5759 (psym_lookup_symbol): Create search name and lookup name here.
5760 (lookup_partial_symbol): Remove "name" parameter; add
5762 (psym_expand_symtabs_for_function): Update.
5764 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
5767 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5769 2020-03-31 Tom Tromey <tromey@adacore.com>
5771 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5774 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
5776 * features/riscv/32bit-csr.xml: Regenerated.
5777 * features/riscv/64bit-csr.xml: Regenerated.
5779 2020-03-30 Tom Tromey <tromey@adacore.com>
5781 * ada-valprint.c (print_variant_part): Update.
5782 * ada-lang.h (ada_which_variant_applies): Update.
5783 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5784 outer_valaddr parameters; replace with "outer" value parameter.
5785 (to_fixed_variant_branch_type): Update.
5787 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5789 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5790 <list>. Remove inclusion of observable.h.
5791 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5792 (struct arch_lwp_info): New struct.
5793 (class ppc_linux_dreg_interface): New class.
5794 (struct ppc_linux_process_info): New struct.
5795 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5796 <low_new_clone, low_forget_process, low_prepare_to_resume>
5797 <copy_thread_dreg_state, mark_thread_stale>
5798 <mark_debug_registers_changed, register_hw_breakpoint>
5799 <clear_hw_breakpoint, register_wp, clear_wp>
5800 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5801 <num_memory_accesses, get_trigger_type>
5802 <create_watchpoint_request, hwdebug_point_cmp>
5803 <init_arch_lwp_info, get_arch_lwp_info>
5804 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5806 <struct ptid_hash>: New inner struct.
5807 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5809 (saved_dabr_value, hwdebug_info, max_slots_number)
5810 (struct hw_break_tuple, struct thread_points, ppc_threads)
5811 (have_ptrace_hwdebug_interface)
5812 (hwdebug_find_thread_points_by_tid)
5813 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5814 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5815 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5816 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5817 use m_dreg_interface.
5818 (hwdebug_point_cmp): Change to...
5819 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5820 reference arguments instead of pointers.
5821 (ppc_linux_nat_target::ranged_break_num_registers): Use
5823 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5824 m_dreg_interface. Call register_hw_breakpoint.
5825 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5826 m_dreg_interface. Call clear_hw_breakpoint.
5827 (get_trigger_type): Change to...
5828 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5830 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5831 use m_dreg_interface. Call register_hw_breakpoint.
5832 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5833 use m_dreg_interface. Call clear_hw_breakpoint.
5834 (can_use_watchpoint_cond_accel): Change to...
5835 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5836 method. Update comment, use m_dreg_interface and
5838 (calculate_dvc): Change to...
5839 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5841 (num_memory_accesses): Change to...
5842 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5843 (check_condition): Change to...
5844 (ppc_linux_nat_target::check_condition): ...this method.
5845 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5846 comment, use m_dreg_interface.
5847 (create_watchpoint_request): Change to...
5848 (ppc_linux_nat_target::create_watchpoint_request): ...this
5849 method. Use m_dreg_interface.
5850 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5851 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5852 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5853 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5854 (ppc_linux_nat_target::low_forget_process)
5855 (ppc_linux_nat_target::low_new_fork)
5856 (ppc_linux_nat_target::low_new_clone)
5857 (ppc_linux_nat_target::low_delete_thread)
5858 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5859 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5860 only call mark_thread_stale.
5861 (ppc_linux_thread_exit): Remove.
5862 (ppc_linux_nat_target::stopped_data_address): Change to...
5863 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5864 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5865 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5866 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5867 comment. Call low_stopped_data_address.
5868 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5870 (ppc_linux_nat_target::masked_watch_num_registers): Use
5872 (ppc_linux_nat_target::copy_thread_dreg_state)
5873 (ppc_linux_nat_target::mark_thread_stale)
5874 (ppc_linux_nat_target::mark_debug_registers_changed)
5875 (ppc_linux_nat_target::register_hw_breakpoint)
5876 (ppc_linux_nat_target::clear_hw_breakpoint)
5877 (ppc_linux_nat_target::register_wp)
5878 (ppc_linux_nat_target::clear_wp)
5879 (ppc_linux_nat_target::init_arch_lwp_info)
5880 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5881 (_initialize_ppc_linux_nat): Remove observer callback.
5883 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5885 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5886 (ppc_linux_nat_target::auxv_parse)
5887 (ppc_linux_nat_target::read_description)
5888 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5891 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5893 * linux-nat.h (low_new_clone): New method.
5894 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5896 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5898 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5899 (dbx_expand_psymtab): ... this.
5900 (start_psymtab): Update.
5901 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5902 (mdebug_expand_psymtab): ... this.
5903 (parse_partial_symbols): Update.
5904 (new_psymtab): Update.
5905 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5906 (xcoff_expand_psymtab): ... this.
5907 (xcoff_start_psymtab): Update.
5909 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5911 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5912 <expand_dependencies>: ... this.
5913 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5914 (partial_symtab::expand_dependencies): ... this.
5915 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5917 (dwarf2_psymtab::expand_psymtab): Update.
5918 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5919 * mdebugread.c (psymtab_to_symtab_1): Update.
5920 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5922 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5924 * psympriv.h (discard_psymtab): Remove.
5925 * dbxread.c (dbx_end_psymtab): Update.
5926 * xcoffread.c (xcoff_end_psymtab): Update.
5928 2020-03-28 Tom Tromey <tom@tromey.com>
5930 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5933 2020-03-28 Tom Tromey <tom@tromey.com>
5935 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5937 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
5939 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5941 2020-03-26 John Baldwin <jhb@FreeBSD.org>
5943 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5945 2020-03-26 Tom Tromey <tom@tromey.com>
5947 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5948 (mark_common_block_symbol_computed, read_tag_string_type)
5949 (attr_to_dynamic_prop, read_subrange_type): Update.
5950 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5951 to be methods on struct attribute.
5952 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5953 (read_call_site_scope, partial_die_info::read)
5954 (partial_die_info::read, lookup_die_type, follow_die_ref):
5956 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5957 from dwarf2_get_ref_die_offset.
5958 (attribute::constant_value): New method, from
5959 dwarf2_get_attr_constant_value.
5960 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5962 <constant_value>: New method.
5964 2020-03-26 Tom Tromey <tom@tromey.com>
5966 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5967 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5968 (dwarf_type_encoding_name): Move to stringify.c.
5969 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5970 * dwarf2/stringify.c: New file.
5971 * dwarf2/stringify.h: New file.
5973 2020-03-26 Tom Tromey <tom@tromey.com>
5975 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5978 2020-03-26 Tom Tromey <tom@tromey.com>
5980 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5982 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5983 (lookup_ranges_base): Likewise.
5984 (read_cutu_die_from_dwo, read_full_die_1): Update.
5986 2020-03-26 Tom Tromey <tom@tromey.com>
5988 * dwarf2/read.c (read_import_statement, read_file_scope)
5989 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5990 (read_lexical_block_scope, read_call_site_scope)
5991 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5992 (handle_struct_member_die, process_structure_scope)
5993 (update_enumeration_type_from_children)
5994 (process_enumeration_scope, read_array_type, read_common_block)
5995 (read_namespace, read_module, read_subroutine_type): Update.
5996 (sibling_die): Remove.
5998 2020-03-26 Tom Tromey <tom@tromey.com>
6000 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6001 (build_type_psymtabs_reader, read_structure_type)
6002 (read_enumeration_type, read_full_die_1): Update.
6003 (dwarf2_attr_no_follow): Move to die.h.
6004 * dwarf2/die.h (struct die_info) <attr>: New method.
6006 2020-03-26 Tom Tromey <tom@tromey.com>
6008 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6009 <base_address>: Now an optional.
6010 (dwarf2_find_base_address, dwarf2_rnglists_process)
6011 (dwarf2_ranges_process, fill_in_loclist_baton)
6012 (dwarf2_symbol_mark_computed): Update.
6014 2020-03-26 Tom Tromey <tom@tromey.com>
6016 * dwarf2/read.c (struct die_info): Move to die.h.
6017 * dwarf2/die.h: New file.
6019 2020-03-26 Tom Tromey <tom@tromey.com>
6021 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6023 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6024 Move to line-header.c.
6025 (read_checked_initial_length_and_offset, read_formatted_entries):
6027 (dwarf_decode_line_header): Split into two.
6028 * dwarf2/line-header.c
6029 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6031 (read_checked_initial_length_and_offset, read_formatted_entries):
6033 (dwarf_decode_line_header): New function, split from read.c.
6035 2020-03-26 Tom Tromey <tom@tromey.com>
6037 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6039 * dwarf2/read.c (read_attribute_value): Update.
6040 (dwarf2_per_objfile::read_line_string): Rename from
6041 read_indirect_line_string.
6042 (read_formatted_entries): Update.
6044 2020-03-26 Tom Tromey <tom@tromey.com>
6046 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6049 2020-03-26 Tom Tromey <tom@tromey.com>
6051 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6053 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6054 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6057 2020-03-26 Tom Tromey <tom@tromey.com>
6059 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6060 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6061 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6062 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6064 2020-03-26 Tom Tromey <tom@tromey.com>
6066 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6067 file_names_size, file_full_name, file_file_name>: Use const.
6068 <file_name_at, file_names>: Add const overload.
6069 * dwarf2/line-header.c (line_header::file_file_name)
6070 (line_header::file_full_name): Update.
6072 2020-03-26 Tom Tromey <tom@tromey.com>
6074 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6075 (macro_start_file, consume_improper_spaces)
6076 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6077 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6078 (dwarf_decode_macros): Move to macro.c.
6079 * dwarf2/macro.c: New file.
6080 * dwarf2/macro.h: New file.
6081 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6083 2020-03-26 Tom Tromey <tom@tromey.com>
6085 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6087 * dwarf2/section.c: New method. From
6088 read_indirect_string_at_offset_from.
6089 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6090 (read_indirect_string_at_offset_from): Move to section.c.
6091 (read_indirect_string_at_offset): Rewrite.
6092 (read_indirect_line_string_at_offset): Remove.
6093 (read_indirect_string, read_indirect_line_string)
6094 (dwarf_decode_macro_bytes): Update.
6096 2020-03-26 Tom Tromey <tom@tromey.com>
6098 * dwarf2/section.h (struct dwarf2_section_info)
6099 <overload_complaint>: Declare.
6100 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6101 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6102 Rename from dwarf2_section_buffer_overflow_complaint.
6103 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6104 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6106 2020-03-26 Tom Tromey <tom@tromey.com>
6108 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6110 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6112 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6115 2020-03-26 Tom Tromey <tom@tromey.com>
6117 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6119 2020-03-26 Tom Tromey <tom@tromey.com>
6121 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6123 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6125 (dwarf_decode_macros): Update.
6127 2020-03-26 Tom Tromey <tom@tromey.com>
6129 * dwarf2/read.c (read_attribute_value): Update.
6130 (read_indirect_string_from_dwz): Move to dwz.c; change into
6132 (dwarf_decode_macro_bytes): Update.
6133 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6134 * dwarf2/dwz.c: New file.
6135 * Makefile.in (COMMON_SFILES): Add dwz.c.
6137 2020-03-26 Tom Tromey <tom@tromey.com>
6139 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6140 * dwarf2/read.c: Add include.
6141 * dwarf2/index-write.c: Add include.
6142 * dwarf2/index-cache.c: Add include.
6143 * dwarf2/dwz.h: New file.
6145 2020-03-25 Tom Tromey <tom@tromey.com>
6147 * compile/compile-object-load.c (get_out_value_type): Mention
6148 correct symbol name in error message.
6150 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
6152 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6154 2020-03-25 Tom de Vries <tdevries@suse.de>
6156 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6157 * symmisc.c (dump_symtab_1): Print user and includes fields.
6158 (maintenance_info_symtabs): Same.
6160 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6163 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6164 (riscv_regcache_cooked_write): New function.
6165 (riscv_push_dummy_call): Use new function.
6166 (riscv_return_value): Likewise.
6168 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6170 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6171 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6172 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6173 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6174 * infrun.c (follow_fork): Likewise.
6175 (follow_fork_inferior): Likewise.
6176 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6177 * linux-nat.h (class linux_nat_target): Likewise.
6178 * remote.c (class remote_target) <follow_fork>: Likewise.
6179 (remote_target::follow_fork): Likewise.
6180 * target-delegates.c: Re-generate.
6181 * target.c (default_follow_fork): Likewise.
6182 (target_follow_fork): Likewise.
6183 * target.h (struct target_ops) <follow_fork>: Likewise.
6184 (target_follow_fork): Likewise.
6186 2020-03-24 Tom de Vries <tdevries@suse.de>
6188 * psymtab.c (maintenance_info_psymtabs): Print user field.
6190 2020-03-20 Tom Tromey <tromey@adacore.com>
6192 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6194 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6197 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
6199 * ptrace.m4: Don't check for ptrace declaration.
6200 * config.in: Re-generate.
6201 * configure: Re-generate.
6202 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6205 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6207 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6209 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6210 * sparc-nat.c (gdb_ptrace): Likewise.
6211 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6213 2020-03-20 Tom Tromey <tromey@adacore.com>
6215 * c-exp.y (lex_one_token): Fix assert.
6217 2020-03-20 Tom Tromey <tromey@adacore.com>
6219 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6220 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6223 2020-03-20 Tom Tromey <tromey@adacore.com>
6225 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6227 2020-03-20 Tom Tromey <tromey@adacore.com>
6229 * ada-valprint.c (print_variant_part): Remove parameters; switch
6231 (print_field_values): Likewise.
6232 (ada_val_print_struct_union): Likewise.
6233 (ada_value_print_1): Update.
6235 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6237 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6238 nbsd_nat_target instead of inf_ptrace_target.
6239 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6242 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6244 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6245 it to the ptrace call.
6246 * (store_registers): Likewise.
6248 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6250 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6251 it to the ptrace call.
6252 * (store_registers): Likewise.
6254 2020-03-19 Luis Machado <luis.machado@linaro.org>
6256 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6257 valid, fetch vg value from ptrace.
6259 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6260 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6261 * inf-ptrace.c: Likewise.
6262 * (gdb_ptrace): Add.
6263 * (inf_ptrace_target::resume): Update.
6264 * (inf_ptrace_target::xfer_partial): Likewise.
6265 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6266 * (inf_ptrace_peek_poke): Update.
6268 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6270 * x86-bsd-nat.c (gdb_ptrace): New.
6271 * (x86bsd_dr_set): Add new argument `ptid'.
6272 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6273 x86bsd_dr_set_addr): Update.
6275 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6277 * remote.c (remote_target::process_stop_reply): Handle events for
6278 all threads differently.
6280 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6282 * completer.c (completion_tracker::remove_completion): Define new
6284 * completer.h (completion_tracker::remove_completion): Declare new
6286 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6287 when adding a C++ function symbol.
6289 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6291 * completer.c (completion_tracker::completion_hash_entry): Define
6293 (advance_to_filename_complete_word_point): Call
6294 recompute_lowest_common_denominator.
6295 (completion_tracker::completion_tracker): Call discard_completions
6296 to setup the hash table.
6297 (completion_tracker::discard_completions): Allow for being called
6298 from the constructor, pass new equal function, and element deleter
6299 when constructing the hash table. Initialise new class member
6301 (completion_tracker::maybe_add_completion): Remove use of
6302 m_entries_vec, and store more information into m_entries_hash.
6303 (completion_tracker::recompute_lcd_visitor): New function, most
6304 content taken from...
6305 (completion_tracker::recompute_lowest_common_denominator):
6306 ...here, this now just visits each item in the hash calling the
6308 (completion_tracker::build_completion_result): Remove use of
6309 m_entries_vec, call recompute_lowest_common_denominator.
6310 * completer.h (completion_tracker::have_completions): Remove use
6312 (completion_tracker::completion_hash_entry): Declare new class.
6313 (completion_tracker::recompute_lowest_common_denominator): Change
6315 (completion_tracker::recompute_lcd_visitor): Declare new function.
6316 (completion_tracker::m_entries_vec): Delete.
6317 (completion_tracker::m_entries_hash): Initialize to NULL.
6318 (completion_tracker::m_lowest_common_denominator_valid): New
6320 (completion_tracker::m_lowest_common_denominator_max_length): New
6323 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6325 * regformats/regdef.h: Put reg in gdb namespace.
6327 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6329 * i386-bsd-nat.c (gdb_ptrace): New.
6330 * (i386bsd_fetch_inferior_registers,
6331 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6332 * (i386bsd_fetch_inferior_registers,
6333 i386bsd_store_inferior_registers) Use gdb_ptrace.
6335 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6337 * amd64-bsd-nat.c (gdb_ptrace): New.
6338 * (amd64bsd_fetch_inferior_registers,
6339 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6340 * (amd64bsd_fetch_inferior_registers,
6341 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6343 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6345 * user-regs.c (user_reg::read): Rename to...
6346 (user_reg::xread): ...this.
6347 * (append_user_reg): Rename argument `read' to `xread'.
6348 * (user_reg_add_builtin): Likewise.
6349 * (user_reg_add): Likewise.
6350 * (value_of_user_reg): Likewise.
6352 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6354 * sparc-nat.c (gdb_ptrace): New.
6355 * sparc-nat.c (sparc_fetch_inferior_registers)
6356 (sparc_store_inferior_registers) Remove obsolete comment.
6357 * sparc-nat.c (sparc_fetch_inferior_registers)
6358 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6359 * sparc-nat.c (sparc_fetch_inferior_registers)
6360 (sparc_store_inferior_registers) Use gdb_ptrace.
6362 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6364 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6365 it to the ptrace call.
6366 * sh-nbsd-nat.c (store_registers): Likewise.
6368 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6370 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6371 nbsd_nat_target instead of inf_ptrace_target.
6372 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6375 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6377 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6379 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6381 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6383 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6385 2020-03-17 Tom de Vries <tdevries@suse.de>
6388 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6390 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6392 (process_imported_unit_die): Skip import of c++ CUs.
6394 2020-03-16 Tom Tromey <tom@tromey.com>
6396 * p-valprint.c (pascal_object_print_value): Initialize
6399 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6400 Shahab Vahedi <shahab@synopsys.com>
6402 * Makefile.in: Add arch/arc.o
6403 * configure.tgt: Likewise.
6404 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6405 (_initialize_arc_tdep): Don't initialize old target descriptions.
6406 (arc_read_description): New function to cache target descriptions.
6407 * arc-tdep.h (arc_read_description): Add proto type.
6408 * arch/arc.c: New file.
6409 * arch/arc.h: Likewise.
6410 * features/Makefile: Replace old target descriptions with new.
6411 * features/arc-arcompact.c: Remove.
6412 * features/arc-arcompact.xml: Likewise.
6413 * features/arc-v2.c: Likewise
6414 * features/arc-v2.xml: Likewise
6415 * features/arc/aux-arcompact.xml: New file.
6416 * features/arc/aux-v2.xml: Likewise.
6417 * features/arc/core-arcompact.xml: Likewise.
6418 * features/arc/core-v2.xml: Likewise.
6419 * features/arc/aux-arcompact.c: Generate.
6420 * features/arc/aux-v2.c: Likewise.
6421 * features/arc/core-arcompact.c: Likewise.
6422 * features/arc/core-v2.c: Likewise.
6423 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6425 2020-03-16 Tom Tromey <tromey@adacore.com>
6428 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6429 putting value into bcache.
6431 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6434 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6436 (amd64_windows_init_abi_common): ... this. Don't set size of
6438 (amd64_windows_init_abi): New function.
6439 (amd64_cygwin_init_abi): New function.
6440 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6442 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6445 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6447 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6448 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6449 (pe_import_directory_entry): New struct type.
6450 (is_linked_with_cygwin_dll): New function.
6451 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6452 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6453 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6455 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6457 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6458 i386_cygwin_core_osabi_sniffer.
6460 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6462 * i386-cygwin-tdep.c: Rename to...
6463 * i386-windows-tdep.c: ... this.
6464 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6465 i386-windows-tdep.c.
6466 * configure.tgt: Likewise.
6468 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6470 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6471 * osabi.c (gdb_osabi_names): Add "Windows".
6472 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6473 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6474 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6475 i386_cygwin_osabi_sniffer.
6476 (_initialize_i386_cygwin_tdep): Register OS ABI
6477 GDB_OSABI_WINDOWS for i386.
6478 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6479 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6480 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6482 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6483 when the target matches '*-*-mingw*'.
6485 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6487 * defs.h (enum gdb_osabi): Move to...
6488 * osabi.h (enum gdb_osabi): ... here.
6489 * gdbarch.sh: Include osabi.h in gdbarch.h.
6490 * gdbarch.h: Re-generate.
6492 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6494 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6496 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6498 2020-03-14 Tom Tromey <tom@tromey.com>
6500 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6502 (c_type_print_modifier): Likewise. Add "language" parameter.
6503 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6504 (c_type_print_base_1): Update.
6505 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6507 * type-stack.c (type_stack::insert): Handle tp_atomic and
6509 (type_stack::follow_type_instance_flags): Likewise.
6510 (type_stack::follow_types): Likewise. Merge type-following code.
6511 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6512 (space_identifier, cv_with_space_id)
6513 (const_or_volatile_or_space_identifier_noopt)
6514 (const_or_volatile_or_space_identifier): Remove.
6515 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6517 (ptr_operator, typebase): Update.
6518 (enum token_flag) <FLAG_C>: New constant.
6519 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6521 (lex_one_token): Handle FLAG_C.
6523 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6525 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6526 it to the ptrace call.
6527 * m68k-bsd-nat.c (store_registers): Likewise.
6529 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6531 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6533 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6534 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6535 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6537 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6539 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6540 nbsd_nat_target instead of inf_ptrace_target.
6541 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6544 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6546 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6549 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6551 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6552 it to the ptrace call.
6553 * alpha-bsd-nat.c (store_registers): Likewise.
6555 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6557 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6559 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6560 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6561 fill_fpregset): Likewise.
6563 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6565 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6566 nbsd_nat_target instead of inf_ptrace_target.
6567 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6570 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6572 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6575 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6577 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6578 it to the ptrace call.
6579 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6580 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6581 * arm-nbsd-nat.c (store_register): Likewise.
6582 * arm-nbsd-nat.c (store_regs): Likewise.
6583 * arm-nbsd-nat.c (store_fp_register): Likewise.
6584 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6586 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6588 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6589 nbsd_nat_target instead of inf_ptrace_target.
6590 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6593 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6595 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6596 it to the ptrace call.
6597 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6599 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6601 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6602 it to the ptrace call.
6603 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6605 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6607 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6609 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6611 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6613 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6614 instead of inf_ptrace_target.
6615 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6618 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6620 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6623 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6625 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6628 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6630 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6633 2020-03-13 Tom Tromey <tom@tromey.com>
6635 * value.h (val_print): Don't declare.
6636 * valprint.h (val_print_array_elements)
6637 (val_print_scalar_formatted, generic_val_print): Don't declare.
6638 * valprint.c (generic_val_print_array): Take a struct value.
6639 (generic_val_print_ptr, generic_val_print_memberptr)
6640 (generic_val_print_bool, generic_val_print_int)
6641 (generic_val_print_char, generic_val_print_complex)
6642 (generic_val_print): Remove.
6643 (generic_value_print): Update.
6644 (do_val_print): Remove unused parameters. Don't call
6646 (val_print): Remove.
6647 (common_val_print): Update. Don't call value_check_printable.
6648 (val_print_scalar_formatted, val_print_array_elements): Remove.
6649 * rust-lang.c (rust_val_print): Remove.
6650 (rust_language_defn): Update.
6651 * p-valprint.c (pascal_val_print): Remove.
6652 (pascal_value_print_inner): Update.
6653 (pascal_object_print_val_fields, pascal_object_print_val):
6655 (pascal_object_print_static_field): Update.
6656 * p-lang.h (pascal_val_print): Don't declare.
6657 * p-lang.c (pascal_language_defn): Update.
6658 * opencl-lang.c (opencl_language_defn): Update.
6659 * objc-lang.c (objc_language_defn): Update.
6660 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6661 * m2-lang.h (m2_val_print): Don't declare.
6662 * m2-lang.c (m2_language_defn): Update.
6663 * language.h (struct language_defn) <la_val_print>: Remove.
6664 * language.c (unk_lang_value_print_inner): Rename. Change
6666 (unknown_language_defn, auto_language_defn): Update.
6667 * go-valprint.c (go_val_print): Remove.
6668 * go-lang.h (go_val_print): Don't declare.
6669 * go-lang.c (go_language_defn): Update.
6670 * f-valprint.c (f_val_print): Remove.
6671 * f-lang.h (f_value_print): Don't declare.
6672 * f-lang.c (f_language_defn): Update.
6673 * d-valprint.c (d_val_print): Remove.
6674 * d-lang.h (d_value_print): Don't declare.
6675 * d-lang.c (d_language_defn): Update.
6676 * cp-valprint.c (cp_print_value_fields)
6677 (cp_print_value_fields_rtti, cp_print_value): Remove.
6678 (cp_print_static_field): Update.
6679 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6680 (c_val_print_struct, c_val_print_union, c_val_print_int)
6681 (c_val_print_memberptr, c_val_print): Remove.
6682 * c-lang.h (c_val_print_array, cp_print_value_fields)
6683 (cp_print_value_fields_rtti): Don't declare.
6684 * c-lang.c (c_language_defn, cplus_language_defn)
6685 (asm_language_defn, minimal_language_defn): Update.
6686 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6687 (ada_val_print_enum): Take a struct value.
6688 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6689 (ada_val_print): Remove.
6690 (ada_value_print_1): Update.
6691 (printable_val_type): Remove.
6692 * ada-lang.h (ada_val_print): Don't declare.
6693 * ada-lang.c (ada_language_defn): Update.
6695 2020-03-13 Tom Tromey <tom@tromey.com>
6697 * valprint.c (do_val_print): Update.
6698 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6700 (value_to_value_object_no_release): Declare.
6701 * python/py-value.c (value_to_value_object_no_release): New
6703 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6705 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6707 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6709 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6711 (gdbscm_apply_val_pretty_printer): Take a struct value.
6712 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6714 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6716 * extension-priv.h (struct extension_language_ops)
6717 <apply_val_pretty_printer>: Take a struct value.
6718 * cp-valprint.c (cp_print_value): Create a struct value.
6719 (cp_print_value): Update.
6721 2020-03-13 Tom Tromey <tom@tromey.com>
6723 * ada-valprint.c (print_field_values): Call common_val_print.
6725 2020-03-13 Tom Tromey <tom@tromey.com>
6727 * ada-valprint.c (val_print_packed_array_elements): Remove
6728 bitoffset and val parameters. Call common_val_print.
6729 (ada_val_print_string): Remove offset, address, and original_value
6731 (ada_val_print_array): Update.
6732 (ada_value_print_array): New function.
6733 (ada_value_print_1): Call it.
6735 2020-03-13 Tom Tromey <tom@tromey.com>
6737 * ada-valprint.c (ada_value_print): Use common_val_print.
6739 2020-03-13 Tom Tromey <tom@tromey.com>
6741 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6743 2020-03-13 Tom Tromey <tom@tromey.com>
6745 * ada-valprint.c (ada_value_print_num): New function.
6746 (ada_value_print_1): Use it.
6748 2020-03-13 Tom Tromey <tom@tromey.com>
6750 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6752 2020-03-13 Tom Tromey <tom@tromey.com>
6754 * ada-valprint.c (ada_value_print_ptr): New function.
6755 (ada_value_print_1): Use it.
6757 2020-03-13 Tom Tromey <tom@tromey.com>
6759 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6760 call common_val_print.
6761 (ada_val_print_1): Update.
6762 (ada_value_print_1): New function.
6763 (ada_value_print_inner): Rewrite.
6765 2020-03-13 Tom Tromey <tom@tromey.com>
6767 * cp-valprint.c (cp_print_value_fields): Update.
6768 (cp_print_value): New function.
6770 2020-03-13 Tom Tromey <tom@tromey.com>
6772 * m2-valprint.c (m2_value_print_inner): Use
6773 cp_print_value_fields.
6774 * cp-valprint.c (cp_print_value_fields): New function.
6775 * c-valprint.c (c_value_print_struct): New function.
6776 (c_value_print_inner): Use c_value_print_struct.
6777 * c-lang.h (cp_print_value_fields): Declare.
6779 2020-03-13 Tom Tromey <tom@tromey.com>
6781 * c-valprint.c (c_value_print_array): New function.
6782 (c_value_print_inner): Use it.
6784 2020-03-13 Tom Tromey <tom@tromey.com>
6786 * c-valprint.c (c_value_print_memberptr): New function.
6787 (c_value_print_inner): Use it.
6789 2020-03-13 Tom Tromey <tom@tromey.com>
6791 * c-valprint.c (c_value_print_int): New function.
6792 (c_value_print_inner): Use it.
6794 2020-03-13 Tom Tromey <tom@tromey.com>
6796 * c-valprint.c (c_value_print_ptr): New function.
6797 (c_value_print_inner): Use it.
6799 2020-03-13 Tom Tromey <tom@tromey.com>
6801 * c-valprint.c (c_value_print_inner): Rewrite.
6803 2020-03-13 Tom Tromey <tom@tromey.com>
6805 * valprint.c (generic_value_print_complex): New function.
6806 (generic_value_print): Use it.
6808 2020-03-13 Tom Tromey <tom@tromey.com>
6810 * valprint.c (generic_val_print_float): Don't call
6811 val_print_scalar_formatted.
6812 (generic_val_print, generic_value_print): Update.
6814 2020-03-13 Tom Tromey <tom@tromey.com>
6816 * valprint.c (generic_value_print_char): New function
6817 (generic_value_print): Use it.
6819 2020-03-13 Tom Tromey <tom@tromey.com>
6821 * valprint.c (generic_value_print_int): New function.
6822 (generic_value_print): Use it.
6824 2020-03-13 Tom Tromey <tom@tromey.com>
6826 * valprint.c (generic_value_print_bool): New function.
6827 (generic_value_print): Use it.
6829 2020-03-13 Tom Tromey <tom@tromey.com>
6831 * valprint.c (generic_val_print_func): Simplify.
6832 (generic_val_print, generic_value_print): Update.
6834 2020-03-13 Tom Tromey <tom@tromey.com>
6836 * valprint.c (generic_val_print_flags): Remove.
6837 (generic_val_print, generic_value_print): Update.
6838 (val_print_type_code_flags): Add original_value parameter.
6840 2020-03-13 Tom Tromey <tom@tromey.com>
6842 * valprint.c (generic_val_print): Update.
6843 (generic_value_print): Update.
6844 * valprint.c (generic_val_print_enum): Don't call
6845 val_print_scalar_formatted.
6847 2020-03-13 Tom Tromey <tom@tromey.com>
6849 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6850 * valprint.c (generic_value_print_ptr): New function.
6852 2020-03-13 Tom Tromey <tom@tromey.com>
6854 * valprint.c (generic_value_print): Rewrite.
6856 2020-03-13 Tom Tromey <tom@tromey.com>
6858 * p-valprint.c (pascal_object_print_value_fields)
6859 (pascal_object_print_value): New functions.
6861 2020-03-13 Tom Tromey <tom@tromey.com>
6863 * p-valprint.c (pascal_value_print_inner): Rewrite.
6865 2020-03-13 Tom Tromey <tom@tromey.com>
6867 * f-valprint.c (f_value_print_innner): Rewrite.
6869 2020-03-13 Tom Tromey <tom@tromey.com>
6871 * m2-valprint.c (m2_print_unbounded_array): New overload.
6872 (m2_print_unbounded_array): Update.
6873 (m2_print_array_contents): Take a struct value.
6874 (m2_value_print_inner): Rewrite.
6876 2020-03-13 Tom Tromey <tom@tromey.com>
6878 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6879 (d_value_print_inner): New function.
6880 * d-lang.h (d_value_print_inner): Declare.
6881 * d-lang.c (d_language_defn): Use d_value_print_inner.
6883 2020-03-13 Tom Tromey <tom@tromey.com>
6885 * go-valprint.c (go_value_print_inner): New function.
6886 * go-lang.h (go_value_print_inner): Declare.
6887 * go-lang.c (go_language_defn): Use go_value_print_inner.
6889 2020-03-13 Tom Tromey <tom@tromey.com>
6891 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6893 (rust_val_print): Rewrite.
6894 (rust_value_print_inner): New function, from rust_val_print.
6895 (rust_language_defn): Use rust_value_print_inner.
6897 2020-03-13 Tom Tromey <tom@tromey.com>
6899 * ada-valprint.c (ada_value_print_inner): New function.
6900 * ada-lang.h (ada_value_print_inner): Declare.
6901 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6903 2020-03-13 Tom Tromey <tom@tromey.com>
6905 * f-valprint.c (f_value_print_innner): New function.
6906 * f-lang.h (f_value_print_innner): Declare.
6907 * f-lang.c (f_language_defn): Use f_value_print_innner.
6909 2020-03-13 Tom Tromey <tom@tromey.com>
6911 * p-valprint.c (pascal_value_print_inner): New function.
6912 * p-lang.h (pascal_value_print_inner): Declare.
6913 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6915 2020-03-13 Tom Tromey <tom@tromey.com>
6917 * m2-valprint.c (m2_value_print_inner): New function.
6918 * m2-lang.h (m2_value_print_inner): Declare.
6919 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6921 2020-03-13 Tom Tromey <tom@tromey.com>
6923 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6924 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6925 * c-valprint.c (c_value_print_inner): New function.
6926 * c-lang.h (c_value_print_inner): Declare.
6927 * c-lang.c (c_language_defn, cplus_language_defn)
6928 (asm_language_defn, minimal_language_defn): Use
6929 c_value_print_inner.
6931 2020-03-13 Tom Tromey <tom@tromey.com>
6933 * p-valprint.c (pascal_object_print_value_fields): Now static.
6934 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6936 2020-03-13 Tom Tromey <tom@tromey.com>
6938 * c-valprint.c (c_val_print_array): Simplify.
6940 2020-03-13 Tom Tromey <tom@tromey.com>
6942 * valprint.c (value_print_array_elements): New function.
6943 * valprint.h (value_print_array_elements): Declare.
6945 2020-03-13 Tom Tromey <tom@tromey.com>
6947 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6948 * mips-tdep.c (mips_print_register): Use
6949 value_print_scalar_formatted.
6951 2020-03-13 Tom Tromey <tom@tromey.com>
6953 * valprint.h (value_print_scalar_formatted): Declare.
6954 * valprint.c (value_print_scalar_formatted): New function.
6956 2020-03-13 Tom Tromey <tom@tromey.com>
6958 * valprint.h (generic_value_print): Declare.
6959 * valprint.c (generic_value_print): New function.
6961 2020-03-13 Tom Tromey <tom@tromey.com>
6963 * valprint.c (do_val_print): Call la_value_print_inner, if
6965 * rust-lang.c (rust_language_defn): Update.
6966 * p-lang.c (pascal_language_defn): Update.
6967 * opencl-lang.c (opencl_language_defn): Update.
6968 * objc-lang.c (objc_language_defn): Update.
6969 * m2-lang.c (m2_language_defn): Update.
6970 * language.h (struct language_defn) <la_value_print_inner>: New
6972 * language.c (unknown_language_defn, auto_language_defn): Update.
6973 * go-lang.c (go_language_defn): Update.
6974 * f-lang.c (f_language_defn): Update.
6975 * d-lang.c (d_language_defn): Update.
6976 * c-lang.c (c_language_defn, cplus_language_defn)
6977 (asm_language_defn, minimal_language_defn): Update.
6978 * ada-lang.c (ada_language_defn): Update.
6980 2020-03-13 Tom Tromey <tom@tromey.com>
6982 * c-valprint.c (c_value_print): Use common_val_print.
6984 2020-03-13 Tom Tromey <tom@tromey.com>
6986 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6988 2020-03-13 Tom Tromey <tom@tromey.com>
6990 * f-valprint.c (f77_print_array_1, f_val_print): Use
6993 2020-03-13 Tom Tromey <tom@tromey.com>
6995 * riscv-tdep.c (riscv_print_one_register_info): Use
6998 2020-03-13 Tom Tromey <tom@tromey.com>
7000 * mi/mi-main.c (output_register): Use common_val_print.
7002 2020-03-13 Tom Tromey <tom@tromey.com>
7004 * infcmd.c (default_print_one_register_info): Use
7007 2020-03-13 Tom Tromey <tom@tromey.com>
7009 * valprint.h (common_val_print_checked): Declare.
7010 * valprint.c (common_val_print_checked): New function.
7011 * stack.c (print_frame_arg): Use common_val_print_checked.
7013 2020-03-13 Tom Tromey <tom@tromey.com>
7015 * valprint.c (do_val_print): New function, from val_print.
7016 (val_print): Use do_val_print.
7017 (common_val_print): Use do_val_print.
7019 2020-03-13 Tom Tromey <tom@tromey.com>
7021 * valprint.c (value_print): Use scoped_value_mark.
7023 2020-03-13 Tom de Vries <tdevries@suse.de>
7026 * psymtab.c (partial_symtab::partial_symtab): Don't set
7027 globals_offset and statics_offset. Push element onto
7028 current_global_psymbols and current_static_psymbols stacks.
7029 (concat): New function.
7030 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7031 element from current_global_psymbols and current_static_psymbols
7032 stacks. Concat popped elements to global_psymbols and
7034 (add_psymbol_to_list): Use current_global_psymbols and
7035 current_static_psymbols stacks.
7036 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7037 current_static_psymbols fields.
7039 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7041 * corelow.c (sniff_core_bfd): Remove.
7042 (class core_target) <m_core_vec>: Remove.
7043 (core_target::core_target): Update.
7044 (core_file_fns): Remove.
7045 (deprecated_add_core_fns): Remove.
7046 (default_core_sniffer): Remove.
7047 (sniff_core_bfd): Remove.
7048 (default_check_format): Remove.
7049 (gdb_check_format): Remove.
7050 (core_target_open): Update.
7051 (core_target::get_core_register_section): Update.
7052 (get_core_registers_cb): Update.
7053 (core_target::fetch_registers): Update.
7054 * gdbcore.h (struct core_fns): Remove.
7055 (deprecated_add_core_fns): Remove.
7056 (default_core_sniffer): Remove.
7057 (default_check_format): Remove.
7059 2020-03-12 Tom Tromey <tom@tromey.com>
7061 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7063 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7065 2020-03-12 Tom Tromey <tom@tromey.com>
7067 * remote.c (remote_target::download_tracepoint)
7068 (remote_target::enable_tracepoint)
7069 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7070 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7073 2020-03-12 Tom Tromey <tom@tromey.com>
7075 * symfile-mem.c: Update CORE_ADDR size assert.
7077 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7079 * selftest.m4: Move to gdbsupport/.
7080 * acinclude.m4: Update path to selftest.m4.
7082 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7084 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7085 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7086 gdbarch-selfselftests.c and selftest-arch.c.
7087 (SUBDIR_UNITTESTS_OBS): Rename to...
7088 (SELFTESTS_OBS): ... this.
7089 (COMMON_SFILES): Remove disasm-selftests.c and
7090 gdbarch-selftests.c.
7091 * configure.ac: Don't add selftest-arch.{c,o} to
7093 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7094 preprocessor conditions.
7096 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7098 * configure.ac: Don't source bfd/development.sh.
7099 * selftest.m4: Modify comment.
7100 * configure: Re-generate.
7102 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7104 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7105 not "true" or "false".
7106 * configure: Re-generate.
7108 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7110 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7111 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7112 renamed to arm_nbsd_supply_gregset.
7113 (fetch_register): Update to call arm_nbsd_supply_gregset.
7114 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7115 (arm_netbsd_nat_target::fetch_registers): Update.
7116 (fetch_elfcore_registers): Removed.
7117 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7118 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7119 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7120 not require NetBSD system headers.
7121 (arm_nbsd_regset): New struct.
7122 (arm_nbsd_iterate_over_regset_sections): New function.
7123 (arm_netbsd_init_abi_common): Updated to call
7124 set_gdbarch_iterate_over_regset_sections.
7125 * arm-nbsd-tdep.h: New file.
7127 2020-03-11 Kevin Buettner <kevinb@redhat.com>
7129 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7132 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
7134 * configure: Re-generate.
7136 2020-03-11 Tom Tromey <tromey@adacore.com>
7138 * ada-typeprint.c (print_choices): Fix comment.
7140 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7142 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7143 previous item in the list, when the list has no items.
7145 2020-03-11 Tom de Vries <tdevries@suse.de>
7147 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7148 PROP_LOCLIST handling code.
7150 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7152 * buildsym-legacy.c (record_line): Pass extra parameter to
7154 * buildsym.c (buildsym_compunit::record_line): Take an extra
7155 parameter, reduce duplication in the line table, and record the
7156 is_stmt flag in the line table.
7157 * buildsym.h (buildsym_compunit::record_line): Add extra
7159 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7160 non-statement lines.
7161 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7162 this to the symtab builder.
7163 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7164 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7165 through to dwarf_record_line_1.
7166 * infrun.c (process_event_stop_test): When stepping, don't stop at
7167 a non-statement instruction, and only refresh the step info when
7168 we land in the middle of a line's range. Also add an extra
7170 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7172 * record-btrace.c (btrace_find_line_range): Only record lines
7173 marked as is-statement.
7174 * stack.c (frame_show_address): Show the frame address if we are
7175 in a non-statement sal.
7176 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7177 (maintenance_print_one_line_table): Print a header for the is_stmt
7178 column, and include is_stmt information in the output.
7179 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7180 preference to non-statements.
7181 (find_pcs_for_symtab_line): Prefer is-statement entries.
7182 (find_line_common): Likewise.
7183 * symtab.h (struct linetable_entry): Add is_stmt field.
7184 (struct symtab_and_line): Likewise.
7185 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7186 arranging the line table.
7188 2020-03-07 Tom de Vries <tdevries@suse.de>
7190 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7193 2020-03-07 Tom Tromey <tom@tromey.com>
7195 * valops.c (value_literal_complex): Remove obsolete comment.
7196 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7199 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7201 * infrun.h: Forward-declare thread_info.
7202 (set_step_info): Add thread_info parameter, add doc.
7203 * infrun.c (set_step_info): Add thread_info parameter, move doc
7205 * infrun.c (process_event_stop_test): Pass thread to
7207 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7209 (prepare_one_step): Add thread_info parameter, pass it to
7210 set_step_frame and prepare_one_step (recursive) call.
7211 (step_1): Pass thread to prepare_one_step call.
7212 (step_command_fsm::should_stop): Pass thread to
7214 (until_next_fsm): Pass thread to set_step_frame call.
7215 (finish_command): Pass thread to set_step_info call.
7217 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
7219 * windows-tdep.c (windows_solib_create_inferior_hook):
7220 Check if inferior is running.
7222 2020-03-06 Tom de Vries <tdevries@suse.de>
7224 * NEWS: Fix "the the".
7227 2020-03-06 Tom de Vries <tdevries@suse.de>
7229 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7231 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7233 * .dir-locals.el: Add a comment referencing the other copies of
7236 2020-03-05 John Baldwin <jhb@FreeBSD.org>
7238 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7241 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7243 * .gitattributes: New file.
7245 2020-03-04 Tom Tromey <tom@tromey.com>
7247 * symmisc.c (print_symbol_bcache_statistics)
7248 (print_objfile_statistics): Update.
7249 * symfile.c (allocate_symtab): Use intern.
7250 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7251 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7252 macro_cache>: Remove.
7253 <string_cache>: New member.
7254 (struct objfile) <intern>: New methods.
7255 * elfread.c (elf_symtab_read): Use intern.
7256 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7257 (dwarf2_compute_name, dwarf2_physname)
7258 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7260 (guess_partial_die_structure_name): Update.
7261 (partial_die_info::fixup): Intern name.
7262 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7264 (dwarf2_name): Intern name. Update.
7265 * buildsym.c (buildsym_compunit::get_macro_table): Use
7268 2020-03-04 Tom Tromey <tom@tromey.com>
7270 * jit.c (bfd_open_from_target_memory): Make "target" const.
7271 * corefile.c (gnutarget): Now const.
7272 * gdbcore.h (gnutarget): Now const.
7274 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
7276 * NEWS: Mention support for WOW64 processes.
7277 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7278 (amd64_windows_segment_register_p): Remove static.
7279 (_initialize_amd64_windows_nat): Update.
7280 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7281 * i386-windows-nat.c (context_offset): Update.
7282 (i386_mappings): Rename and remove static.
7283 (i386_windows_segment_register_p): Remove static.
7284 (_initialize_i386_windows_nat): Update.
7285 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7286 (STATUS_WX86_SINGLE_STEP): New macro.
7287 (EnumProcessModulesEx): New macro.
7288 (Wow64SuspendThread): New macro.
7289 (Wow64GetThreadContext): New macro.
7290 (Wow64SetThreadContext): New macro.
7291 (Wow64GetThreadSelectorEntry): New macro.
7292 (windows_set_context_register_offsets): Add static.
7293 (windows_set_segment_register_p): Likewise.
7294 (windows_add_thread): Adapt for WOW64 processes.
7295 (windows_fetch_one_register): Likewise.
7296 (windows_nat_target::fetch_registers): Likewise.
7297 (windows_store_one_register): Likewise.
7298 (display_selector): Likewise.
7299 (display_selectors): Likewise.
7300 (handle_exception): Likewise.
7301 (windows_continue): Likewise.
7302 (windows_nat_target::resume): Likewise.
7303 (windows_add_all_dlls): Likewise.
7304 (do_initial_windows_stuff): Likewise.
7305 (windows_nat_target::attach): Likewise.
7306 (windows_get_exec_module_filename): Likewise.
7307 (windows_nat_target::create_inferior): Likewise.
7308 (windows_xfer_siginfo): Likewise.
7309 (_initialize_loadable): Initialize Wow64SuspendThread,
7310 Wow64GetThreadContext, Wow64SetThreadContext,
7311 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7312 * windows-nat.h (windows_set_context_register_offsets):
7314 (windows_set_segment_register_p): Likewise.
7315 (i386_windows_segment_register_p): Add declaration.
7316 (amd64_windows_segment_register_p): Likewise.
7318 2020-03-04 Luis Machado <luis.machado@linaro.org>
7320 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7321 in "info registers" for AArch64/ARM.
7323 The change caused "info registers" to not print GPR's.
7327 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7329 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7330 when reg->group is empty and reggroup is not.
7332 2020-03-03 Tom Tromey <tromey@adacore.com>
7334 * dwarf2/frame.c (struct dwarf2_frame_cache)
7335 <checked_tailcall_bottom, entry_cfa_sp_offset,
7336 entry_cfa_sp_offset_p>: Remove members.
7337 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7338 (dwarf2_frame_prev_register): Don't call
7339 dwarf2_tailcall_sniffer_first.
7340 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7341 * frame-unwind.c (add_unwinder): New fuction.
7342 (frame_unwind_init): Use it. Add tailcall unwinder.
7344 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7345 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7347 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7348 value should be printed as true.
7350 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
7352 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7353 (windows_init_abi): Set and use windows_so_ops.
7355 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7357 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7358 when verifying if dealing with a convenience variable.
7360 2020-03-03 Luis Machado <luis.machado@linaro.org>
7362 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7364 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7366 * infrun.c (gdbarch_supports_displaced_stepping): New.
7367 (use_displaced_stepping): Break up conditions in smaller pieces.
7368 Use gdbarch_supports_displaced_stepping.
7369 (displaced_step_prepare_throw): Use
7370 gdbarch_supports_displaced_stepping.
7372 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7374 * NEWS: Mention new behaviour of the history filename.
7375 * top.c (write_history_p): Add comment.
7376 (show_write_history_p): Add header comment, give a different
7377 message when history writing is on, but the history filename is
7379 (history_filename): Add comment.
7380 (history_filename_empty): New function.
7381 (show_history_filename): Add header comment, give a different
7382 message when the filename is empty.
7383 (init_history): Compare history_filename against nullptr, and only
7384 read history if the filename is not empty.
7385 (set_history_filename): Add header comment, and only make
7386 non-empty filenames absolute.
7387 (init_main): Make the filename argument to 'set history filename'
7390 2020-03-02 Christian Biesinger <cbiesinger@google.com>
7392 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7393 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7394 (fetch_fp_register): Update.
7395 (fetch_fp_regs): Update.
7396 (store_fp_register): Update.
7397 (store_fp_regs): Update.
7398 (arm_netbsd_nat_target::read_description): New function.
7399 (fetch_elfcore_registers): Update.
7401 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7403 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7404 general_thread if the stop reply is missing a thread-id.
7405 (remote_target::process_stop_reply): Use the first non-exited
7406 thread if the target didn't pass a thread-id.
7407 * infrun.c (do_target_wait): Move call to
7408 switch_to_inferior_no_thread to ....
7409 (do_target_wait_1): ... here.
7411 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7413 * debuginfod-support.c: Include defs.h first.
7415 2020-02-28 Tom de Vries <tdevries@suse.de>
7417 * symfile.c (set_initial_language): Use default language for lookup.
7419 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
7421 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7422 reader variable, pass `this` to read_cutu_die_from_dwo.
7424 2020-02-27 Aaron Merey <amerey@redhat.com>
7426 * source.c (open_source_file): Check for nullptr when computing
7429 2020-02-27 Tom Tromey <tromey@adacore.com>
7431 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7433 (dwarf2_add_field): Don't update nfields.
7434 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7436 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7438 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7441 2020-02-26 Tom Tromey <tom@tromey.com>
7443 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7444 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7445 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7446 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7449 2020-02-26 Tom Tromey <tom@tromey.com>
7451 * dwarf2/index-write.c (psym_index_map): Change type.
7452 (add_address_entry_worker, write_one_signatured_type)
7453 (recursively_count_psymbols, recursively_write_psymbols)
7454 (class debug_names, psyms_seen_size, write_gdbindex)
7455 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7457 2020-02-26 Aaron Merey <amerey@redhat.com>
7459 * Makefile.in: Handle optional debuginfod support.
7461 * README: Add --with-debuginfod summary.
7462 * config.in: Regenerate.
7463 * configure: Regenerate.
7464 * configure.ac: Handle optional debuginfod support.
7465 * debuginfod-support.c: debuginfod helper functions.
7466 * debuginfod-support.h: Ditto.
7467 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7469 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7470 when a dwz file cannot be found.
7471 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7472 debuginfo file cannot be found.
7473 * source.c (open_source_file): Query debuginfod servers when a
7474 source file cannot be found.
7475 * top.c (print_gdb_configuration): Include
7476 --{with,without}-debuginfod in the output.
7478 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7480 * thread.c (thr_try_catch_cmd): Print thread name.
7482 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
7484 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7485 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7486 dwarf2_fetch_die_type_sect_off): Move to...
7487 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7488 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7489 dwarf2_fetch_die_type_sect_off): ... here.
7490 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7491 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7492 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7494 2020-02-26 Tom de Vries <tdevries@suse.de>
7497 * symfile.c (set_initial_language): Exit-early if
7498 language_mode == language_mode_manual.
7500 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7502 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7503 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7504 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7506 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7508 * gdbtypes.c (create_array_type_with_stride): Handle negative
7510 * valarith.c (value_subscripted_rvalue): Likewise.
7512 2020-02-25 Luis Machado <luis.machado@linaro.org>
7514 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7516 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7518 * loc.h (dwarf2_get_die_type): Move to...
7519 * read.h (dwarf2_get_die_type): ... here.
7520 * read.c (dwarf2_get_die_type): Move doc to header.
7522 2020-02-25 Joel Brobecker <brobecker@adacore.com>
7524 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7525 'gnulib/Makefile.in' to the list.
7527 2020-02-24 Tom Tromey <tom@tromey.com>
7529 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7531 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7534 2020-02-24 Tom Tromey <tom@tromey.com>
7536 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7538 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7539 (dw2_do_instantiate_symtab, dw2_get_file_names)
7540 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7542 2020-02-24 Tom Tromey <tom@tromey.com>
7544 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7545 make_scoped_restore.
7546 (dwarf2_psymtab::read_symtab): Don't clear
7547 reading_partial_symbols.
7549 2020-02-24 Tom de Vries <tdevries@suse.de>
7552 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7554 2020-02-24 Tom de Vries <tdevries@suse.de>
7556 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7557 commands layout next/prev/regs.
7559 2020-02-22 Tom Tromey <tom@tromey.com>
7561 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7562 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7564 2020-02-22 Tom Tromey <tom@tromey.com>
7566 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7568 2020-02-22 Tom Tromey <tom@tromey.com>
7570 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7571 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7572 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7573 * tui/tui.c (_initialize_tui): Add usage text.
7575 2020-02-22 Tom Tromey <tom@tromey.com>
7577 * tui/tui-win.c (tui_set_focus_command)
7578 (tui_set_win_height_command): Use error_no_arg.
7579 (_initialize_tui_win): Update help text.
7580 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7582 2020-02-22 Tom Tromey <tom@tromey.com>
7584 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7585 * tui/tui-disasm.h (struct tui_disasm_window)
7586 <display_start_addr>: Declare.
7587 * tui/tui-source.h (struct tui_source_window)
7588 <display_start_addr>: Declare.
7589 * tui/tui-winsource.h (struct tui_source_window_base)
7590 <show_source_line, display_start_addr>: New methods.
7591 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7592 Rename and move to protected section.
7593 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7594 (tui_source_window_base::do_erase_source_content): Update.
7595 (tui_source_window_base::show_source_line): Now a method.
7596 (tui_source_window_base::show_source_content)
7597 (tui_source_window_base::tui_source_window_base)
7598 (tui_source_window_base::rerender)
7599 (tui_source_window_base::refill)
7600 (tui_source_window_base::do_scroll_horizontal)
7601 (tui_source_window_base::set_is_exec_point_at)
7602 (tui_source_window_base::update_breakpoint_info)
7603 (tui_source_window_base::update_exec_info): Update.
7604 * tui/tui-source.c (tui_source_window::set_contents)
7605 (tui_source_window::showing_source_p)
7606 (tui_source_window::do_scroll_vertical)
7607 (tui_source_window::location_matches_p)
7608 (tui_source_window::line_is_displayed): Update.
7609 (tui_source_window::display_start_addr): New method.
7610 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7611 (tui_disasm_window::do_scroll_vertical)
7612 (tui_disasm_window::location_matches_p): Update.
7613 (tui_disasm_window::display_start_addr): New method.
7615 2020-02-22 Tom Tromey <tom@tromey.com>
7617 * NEWS: Add entry for gdb.register_window_type.
7618 * tui/tui-layout.h (window_factory): New typedef.
7619 (tui_register_window): Declare.
7620 * tui/tui-layout.c (saved_tui_windows): New global.
7621 (tui_apply_current_layout): Use it.
7622 (tui_register_window): New function.
7623 * python/python.c (do_start_initialization): Call
7624 gdbpy_initialize_tui.
7625 (python_GdbMethods): Add "register_window_type" function.
7626 * python/python-internal.h (gdbpy_register_tui_window)
7627 (gdbpy_initialize_tui): Declare.
7628 * python/py-tui.c: New file.
7629 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7631 2020-02-22 Tom Tromey <tom@tromey.com>
7633 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7635 2020-02-22 Tom Tromey <tom@tromey.com>
7637 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7638 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7639 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7640 (tui_set_win_focus_to): Move from tui-win.c.
7642 2020-02-22 Tom Tromey <tom@tromey.com>
7644 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7646 (known_window_types): New global.
7647 (tui_get_window_by_name): Reimplement.
7648 (initialize_known_windows): New function.
7649 (validate_window_name): Rewrite.
7650 (_initialize_tui_layout): Call initialize_known_windows.
7652 2020-02-22 Tom Tromey <tom@tromey.com>
7654 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7656 * tui/tui-winsource.h (struct tui_source_window_base)
7657 <tui_source_window_base>: Remove parameter.
7658 * tui/tui-winsource.c
7659 (tui_source_window_base::tui_source_window_base): Remove
7661 (tui_source_window_base::refill): Update.
7662 * tui/tui-stack.h (struct tui_locator_window)
7663 <tui_locator_window>: Update.
7664 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7665 Default the constructor.
7666 * tui/tui-regs.h (struct tui_data_item_window)
7667 <tui_data_item_window>: Default the constructor.
7668 (struct tui_data_window) <tui_data_window>: Likewise.
7669 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7670 Default the constructor.
7671 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7672 Default the constructor.
7674 (struct tui_win_info) <tui_win_info>: Default the constructor.
7675 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7676 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7677 Default the constructor.
7679 2020-02-22 Tom Tromey <tom@tromey.com>
7681 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7682 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7683 * tui/tui-win.c (tui_resize_all): Don't call
7684 tui_delete_invisible_windows.
7685 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7687 (tui_set_layout): Update.
7688 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7689 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7690 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7692 2020-02-22 Tom Tromey <tom@tromey.com>
7694 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7697 2020-02-22 Tom Tromey <tom@tromey.com>
7699 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7701 2020-02-22 Tom Tromey <tom@tromey.com>
7703 * tui/tui-winsource.h (struct tui_source_window_iterator)
7704 <inner_iterator>: New etytypedef.
7705 <tui_source_window_iterator>: Take "end" parameter.
7706 <tui_source_window_iterator>: Take iterator.
7707 <operator*, advance>: Update.
7708 <m_iter>: Change type.
7710 (struct tui_source_windows) <begin, end>: Update.
7711 * tui/tui-layout.c (tui_windows): New global.
7712 (tui_apply_current_layout): Clear tui_windows.
7713 (tui_layout_window::apply): Update tui_windows.
7714 * tui/tui-data.h (tui_windows): Declare.
7715 (all_tui_windows): Now inline function.
7716 (class tui_window_iterator, struct all_tui_windows): Remove.
7718 2020-02-22 Tom Tromey <tom@tromey.com>
7721 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7722 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7724 (class tui_layout_window) <get_sizes>: Likewise.
7725 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7727 <get_sizes>: Add "height" argument.
7728 <m_vertical>: New field.
7729 * tui/tui-layout.c (tui_layout_split::clone): Update.
7730 (tui_layout_split::get_sizes): Add "height" argument.
7731 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7732 (tui_new_layout_command): Parse "-horizontal".
7733 (_initialize_tui_layout): Update help string.
7734 (tui_layout_split::specification): Add "-horizontal" when needed.
7735 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7737 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7740 2020-02-22 Tom Tromey <tom@tromey.com>
7742 * tui/tui-layout.h (enum tui_adjust_result): New.
7743 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7744 (class tui_layout_window) <adjust_size>: Return
7745 tui_adjust_result. Rewrite.
7746 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7747 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7749 2020-02-22 Tom Tromey <tom@tromey.com>
7751 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7752 parameter and return types.
7753 (class tui_layout_base) <specification>: Add "depth".
7754 (class tui_layout_window) <specification>: Add "depth".
7755 (class tui_layout_split) <specification>: Add "depth".
7756 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7758 (tui_new_layout_command): Parse sub-layouts.
7759 (_initialize_tui_layout): Update help string.
7760 (tui_layout_window::specification): Add "depth".
7761 (add_layout_command): Update.
7763 2020-02-22 Tom Tromey <tom@tromey.com>
7765 * NEWS: Add "tui new-layout" item.
7766 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7767 Add new-layout command to help text.
7768 (validate_window_name): New function.
7769 (tui_new_layout_command): New function.
7770 (_initialize_tui_layout): Register "new-layout".
7771 (tui_layout_window::specification): New method.
7772 (tui_layout_window::specification): New method.
7773 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7775 (class tui_layout_window) <specification>: New method.
7776 (class tui_layout_split) <specification>: New method.
7778 2020-02-22 Tom Tromey <tom@tromey.com>
7780 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7781 * tui/tui-win.c (window_name_completer): Update comment.
7782 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7784 (class tui_layout_window) <replace_window>: Likewise.
7785 (class tui_layout_split) <replace_window>: Likewise.
7786 (tui_set_layout): Don't declare.
7787 (tui_set_initial_layout): Declare function.
7788 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7789 (asm_regs_layout): New globals.
7790 (tui_current_layout, show_layout): Remove.
7791 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7792 (find_layout, tui_apply_layout): New function.
7793 (layout_completer): Remove.
7794 (tui_next_layout): Reimplement.
7795 (tui_next_layout_command): New function.
7796 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7797 (tui_regs_layout): Reimplement.
7798 (tui_regs_layout_command): New function.
7799 (extract_display_start_addr): Rewrite.
7800 (next_layout, prev_layout): Remove.
7801 (tui_layout_window::replace_window): New method.
7802 (tui_layout_split::replace_window): New method.
7803 (destroy_layout): New function.
7804 (layout_list): New global.
7805 (add_layout_command): New function.
7806 (initialize_layouts): Update.
7807 (tui_layout_command): New function.
7808 (_initialize_tui_layout): Install "layout" commands.
7809 * tui/tui-data.h (enum tui_layout_type): Remove.
7810 (tui_current_layout): Don't declare.
7812 2020-02-22 Tom Tromey <tom@tromey.com>
7814 * tui/tui-regs.c (tui_reg_layout): Remove.
7815 (tui_reg_command): Use tui_regs_layout.
7816 * tui/tui-layout.h (tui_reg_command): Declare.
7817 * tui/tui-layout.c (tui_reg_command): New function.
7819 2020-02-22 Tom Tromey <tom@tromey.com>
7821 * tui/tui.c (tui_rl_delete_other_windows): Call
7822 tui_remove_some_windows.
7823 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7825 (class tui_layout_window) <remove_windows>: New method.
7826 (class tui_layout_split) <remove_windows>: Declare.
7827 (tui_remove_some_windows): Declare.
7828 * tui/tui-layout.c (tui_remove_some_windows): New function.
7829 (tui_layout_split::remove_windows): New method.
7831 2020-02-22 Tom Tromey <tom@tromey.com>
7833 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7834 * tui/tui-layout.h (tui_next_layout): Declare.
7835 * tui/tui-layout.c (tui_next_layout): New function.
7837 2020-02-22 Tom Tromey <tom@tromey.com>
7839 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7840 correct coordinates.
7842 2020-02-22 Tom Tromey <tom@tromey.com>
7844 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7845 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7848 2020-02-22 Tom Tromey <tom@tromey.com>
7850 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7851 TUI_DISASM_WIN, not tui_win_list.
7853 2020-02-22 Tom Tromey <tom@tromey.com>
7855 * valprint.c (generic_val_print_enum_1)
7856 (val_print_type_code_flags): Style member names.
7857 * rust-lang.c (val_print_struct, rust_print_enum)
7858 (rust_print_struct_def, rust_internal_print_type): Style member
7860 * p-valprint.c (pascal_object_print_value_fields): Style member
7861 names. Only call fprintf_symbol_filtered for static members.
7862 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7863 * f-valprint.c (f_val_print): Style member names.
7864 * f-typeprint.c (f_type_print_base): Style member names.
7865 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7866 call fprintf_symbol_filtered for static members.
7867 (cp_print_class_member): Style member names.
7868 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7870 * ada-valprint.c (ada_print_scalar): Style enum names.
7871 (ada_val_print_enum): Likewise.
7872 * ada-typeprint.c (print_enum_type): Style enum names.
7874 2020-02-21 Tom Tromey <tom@tromey.com>
7876 * psympriv.h (struct partial_symtab): Update comment.
7878 2020-02-21 Tom Tromey <tromey@adacore.com>
7880 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7883 2020-02-21 Tom de Vries <tdevries@suse.de>
7886 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7887 if dependencies[i]->user != NULL.
7889 2020-02-21 Ali Tamur <tamur@google.com>
7891 * dwarf2/read.c (dwarf2_name): Add null check.
7893 2020-02-20 Tom Tromey <tom@tromey.com>
7895 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7896 ">=", in binary search.
7897 (dwarf2_find_containing_comp_unit): New overload.
7898 (run_test): New self-test.
7899 (_initialize_dwarf2_read): Register new test.
7901 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
7903 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7904 * riscv-tdep.h: Likewise.
7905 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7907 * features/riscv/64bit-csr.xml: Regenerated.
7909 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7910 Tom Tromey <tom@tromey.com>
7912 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7913 of 'fputc_unfiltered'.
7914 (putchar_unfiltered): Call 'fputc_unfiltered'.
7915 (fputc_unfiltered): Call 'fputs_unfiltered'.
7917 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7919 * config.in: Regenerate.
7920 * configure: Regenerate.
7921 * configure.ac: Add --with-python-libdir option.
7922 * main.c: Use WITH_PYTHON_LIBDIR.
7924 2020-02-19 Tom Tromey <tom@tromey.com>
7926 * symtab.c (general_symbol_info::compute_and_set_names): Use
7927 obstack_strndup. Simplify call to symbol_set_demangled_name.
7929 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
7931 * dwarf2/read.c (allocate_signatured_type_table,
7932 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7933 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7934 Remove objfile parameter, update all callers.
7936 2020-02-19 Doug Evans <dje@google.com>
7939 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7940 rust_enum_variant calculation.
7942 2020-02-19 Tom Tromey <tromey@adacore.com>
7944 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7946 2020-02-19 Tom Tromey <tromey@adacore.com>
7948 * ada-lang.c (cache_symbol): Use obstack_strdup.
7950 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7952 * configure: Regenerate.
7954 2020-02-19 Tom Tromey <tromey@adacore.com>
7956 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7959 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
7961 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7963 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7965 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7966 if GDBSERVER is not defined.
7967 (riscv_tdesc_cache): Likewise, also store const target_desc.
7968 (STATIC_IN_GDB): Define.
7969 (riscv_create_target_description): Update declaration with
7971 (riscv_lookup_target_description): New function, only define if
7972 GDBSERVER is not defined.
7973 * arch/riscv.h (riscv_create_target_description): Declare only
7974 when GDBSERVER is defined.
7975 (riscv_lookup_target_description): New declaration when GDBSERVER
7977 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7978 (riscv_linux_read_features): ...this, and return
7979 riscv_gdbarch_features instead of target_desc.
7980 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7981 (riscv_linux_read_description): Rename to...
7982 (riscv_linux_read_features): ...this.
7983 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7984 Update to use riscv_gdbarch_features and
7985 riscv_lookup_target_description.
7986 * riscv-tdep.c (riscv_find_default_target_description): Use
7987 riscv_lookup_target_description instead of
7988 riscv_create_target_description.
7990 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
7992 * valprint.c (generic_val_print_enum_1): When printing a flag
7993 enum with value 0 and there is no enumerator with value 0, print
7994 just "0" instead of "(unknown: 0x0)".
7996 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
7998 * valprint.c (generic_val_print_enum_1): Print unknown part of
8001 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8003 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8004 flag enums to contain duplicate enumerators.
8005 * valprint.c (generic_val_print_enum_1): Update comment.
8007 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8009 * dwarf2/read.c: Include "count-one-bits.h".
8010 (update_enumeration_type_from_children): If an enumerator has
8011 multiple bits set, don't treat the enumeration as a "flag enum".
8012 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8013 of flag enums have 0 or 1 bit set.
8015 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8017 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8019 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8020 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8021 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8022 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8023 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8025 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8027 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8029 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8031 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8032 displaced_step_closure_up.
8033 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8034 (struct displaced_step_closure_up):
8035 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8036 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8037 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8039 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8040 * gdbarch.c, gdbarch.h: Re-generate.
8041 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8042 displaced_step_closure_up.
8043 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8044 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8045 * infrun.h (displaced_step_closure_up): New type alias.
8046 (struct displaced_step_inferior_state) <step_closure>: Change
8047 type to displaced_step_closure_up.
8048 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8049 displaced_step_closure_up.
8050 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8052 2020-02-14 Tom Tromey <tom@tromey.com>
8054 * minidebug.c (gnu_debug_key): New global.
8055 (find_separate_debug_file_in_section): Use it.
8057 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8059 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8061 * gdbarch.c: Re-generate.
8062 * gdbarch.h: Re-generate.
8063 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8065 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8066 type to std::unique_ptr.
8067 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8068 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8069 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8070 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8071 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8072 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8073 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8074 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8075 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8077 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8079 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8081 (displaced_step_clear): Rename to...
8082 (displaced_step_reset): ... this. Just call displaced->reset ().
8083 (displaced_step_clear_cleanup): Rename to...
8084 (displaced_step_reset_cleanup): ... this.
8085 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8086 (displaced_step_fixup): Likewise.
8087 (resume_1): Likewise.
8088 (handle_inferior_event): Restore child's memory before calling
8089 displaced_step_fixup on the parent.
8090 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8092 <step_closure>: Change type to std::unique_ptr.
8094 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8096 * arm-tdep.c: Include count-one-bits.h.
8097 (cleanup_block_store_pc): Use count_one_bits.
8098 (cleanup_block_load_pc): Use count_one_bits.
8099 (arm_copy_block_xfer): Use count_one_bits.
8100 (thumb2_copy_block_xfer): Use count_one_bits.
8101 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8102 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8103 (thumb_get_next_pcs_raw): Use count_one_bits.
8104 (arm_get_next_pcs_raw): Use count_one_bits_l.
8105 * arch/arm.c (bitcount): Remove.
8106 * arch/arm.h (bitcount): Remove.
8108 2020-02-14 Tom Tromey <tromey@adacore.com>
8110 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8112 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8113 * dwarf2/loc.c (call_site_find_chain_1): Return
8115 (call_site_find_chain): Likewise.
8117 2020-02-14 Richard Biener <rguenther@suse.de>
8119 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8120 on expression with division operators.
8122 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8124 * MAINTAINERS (Write After Approval): Adding myself.
8126 2020-02-12 Tom Tromey <tom@tromey.com>
8128 * event-loop.c (event_data, gdb_event, event_handler_func):
8131 2020-02-12 Tom Tromey <tom@tromey.com>
8133 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8134 (dwarf2_frame_objfile_data): Add comment.
8135 (find_comp_unit, set_comp_unit): New functions.
8136 (dwarf2_frame_find_fde): Use find_comp_unit.
8137 (dwarf2_build_frame_info): Use set_comp_unit.
8139 2020-02-12 Tom Tromey <tom@tromey.com>
8141 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8142 (comp_unit): Don't initialize objfile.
8143 (execute_cfa_program): Add text_offset parameter.
8144 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8145 (dwarf2_frame_cache): Update.
8146 (dwarf2_build_frame_info): Don't set "objfile" member.
8148 2020-02-12 Tom Tromey <tom@tromey.com>
8150 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8151 (decode_frame_entry): Likewise.
8152 (dwarf2_build_frame_info): Update.
8154 2020-02-12 Tom Tromey <tom@tromey.com>
8156 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8157 (decode_frame_entry_1): Use the comp_unit obstack.
8159 2020-02-12 Tom Tromey <tom@tromey.com>
8161 * dwarf2/frame.c (struct comp_unit): Add initializers and
8163 (dwarf2_frame_objfile_data): Store a comp_unit.
8164 (dwarf2_frame_find_fde): Update.
8165 (dwarf2_build_frame_info): Use "new".
8167 2020-02-12 Tom Tromey <tom@tromey.com>
8169 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8170 (dwarf2_fde_table): Typedef for std::vector.
8171 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8172 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8173 (decode_frame_entry): Update.
8174 (dwarf2_build_frame_info): Use "new".
8176 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8178 * arm-tdep.c (arm_gdbarch_init): Update.
8179 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8180 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8181 have_neon, is_m>: Change to bool.
8183 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8185 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8187 2020-02-12 Tom Tromey <tom@tromey.com>
8189 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8191 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
8193 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8194 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8196 2020-02-11 Tom Tromey <tom@tromey.com>
8198 * psymtab.h: Update comment.
8200 2020-02-11 Tom Tromey <tom@tromey.com>
8202 * gdb_obstack.h (struct auto_obstack): Use
8203 DISABLE_COPY_AND_ASSIGN.
8205 2020-02-11 Tom Tromey <tom@tromey.com>
8207 * dwarf2/frame.h (struct objfile): Don't forward declare.
8209 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8211 * cris-tdep.c (cris_supply_gregset): Change signature to match
8212 what struct regset expects.
8213 (cris_regset): New struct.
8214 (fetch_core_registers): Remove.
8215 (cris_iterate_over_regset_sections): New function.
8216 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8217 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8219 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8221 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8224 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8226 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8228 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8230 * configure: Re-generate.
8232 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8234 * configure: Re-generate.
8236 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8238 * acinclude: Update warning.m4 path.
8239 * warning.m4: Move to gdbsupport.
8241 2020-02-11 Tom Tromey <tromey@adacore.com>
8243 * remote.c (remote_console_output): Update.
8244 * printcmd.c (printf_command): Update.
8245 * event-loop.c (gdb_wait_for_event): Update.
8246 * linux-nat.c (sigchld_handler): Update.
8247 * remote-sim.c (gdb_os_write_stdout): Update.
8248 (gdb_os_flush_stdout): Update.
8249 (gdb_os_flush_stderr): Update.
8250 (gdb_os_write_stderr): Update.
8251 * exceptions.c (print_exception): Update.
8252 * remote-fileio.c (remote_fileio_func_read): Update.
8253 (remote_fileio_func_write): Update.
8254 * tui/tui.c (tui_enable): Update.
8255 * tui/tui-interp.c (tui_interp::init): Update.
8256 * utils.c (init_page_info): Update.
8257 (putchar_unfiltered, fputc_unfiltered): Update.
8258 (gdb_flush): Update.
8259 (emit_style_escape): Update.
8260 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8261 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8262 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8263 (stderr_file::write): Update.
8264 (stderr_file::puts): Update.
8265 * ui-file.h (ui_file_isatty, ui_file_write)
8266 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8267 (ui_file_puts): Don't declare.
8269 2020-02-10 Tom de Vries <tdevries@suse.de>
8271 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8274 2020-02-09 Tom de Vries <tdevries@suse.de>
8276 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8277 filename if it matches "<artificial>".
8279 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8281 * windows-tdep.c (struct enum_value_name): New struct.
8282 (create_enum): New function.
8283 (windows_get_siginfo_type): Create and use enum types.
8285 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8287 * NEWS: Mention $_siginfo support for Windows.
8288 * windows-nat.c (handle_exception): Set siginfo_er.
8289 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8290 (windows_xfer_siginfo): New function.
8291 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8292 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8293 (init_windows_gdbarch_data): New function.
8294 (get_windows_gdbarch_data): New function.
8295 (windows_get_siginfo_type): New function.
8296 (windows_init_abi): Register windows_get_siginfo_type.
8297 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8299 2020-02-08 Tom Tromey <tom@tromey.com>
8301 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8302 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8303 <keep>: Declare method.
8304 <m_keep>: Remove member.
8305 <~cutu_reader>: Remove.
8306 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8307 (cutu_reader::cutu_reader): Update.
8308 (cutu_reader::keep): Rename from ~cutu_reader.
8309 (process_psymtab_comp_unit, build_type_psymtabs_1)
8310 (process_skeletonless_type_unit, load_partial_comp_unit)
8311 (load_full_comp_unit, dwarf2_read_addr_index)
8312 (read_signatured_type): Update.
8314 2020-02-08 Tom Tromey <tom@tromey.com>
8316 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8317 "want_partial_unit" parameter.
8318 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8319 Inline check for DW_TAG_partial_unit.
8320 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8322 2020-02-08 Tom Tromey <tom@tromey.com>
8324 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8326 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8329 2020-02-08 Tom Tromey <tom@tromey.com>
8331 * dwarf2/read.c (read_address): Move to comp-unit.c.
8332 (dwarf2_rnglists_process, dwarf2_ranges_process)
8333 (read_attribute_value, dwarf_decode_lines_1)
8334 (var_decode_location, decode_locdesc): Update.
8335 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8336 read.c. Remove "cu" parameter.
8337 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8340 2020-02-08 Tom Tromey <tom@tromey.com>
8342 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8343 (read_indirect_line_string): Update.
8344 * dwarf2/comp-unit.c (read_offset): Remove.
8345 (read_comp_unit_head): Update.
8346 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8348 (read_offset): Don't declare.
8350 2020-02-08 Tom Tromey <tom@tromey.com>
8352 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8353 * dwarf2/read.c (struct comp_unit_head): Move to
8355 (enum class rcuh_kind): Move to comp-unit.h.
8356 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8357 (read_comp_unit_head, error_check_comp_unit_head)
8358 (read_and_check_comp_unit_head): Move to comp-unit.c.
8359 (read_offset, dwarf_unit_type_name): Likewise.
8360 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8361 (cutu_reader::cutu_reader, read_call_site_scope)
8362 (find_partial_die, follow_die_offset): Update.
8363 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8365 2020-02-08 Tom Tromey <tom@tromey.com>
8367 * dwarf2/read.c (read_offset_1): Move to leb.c.
8368 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8369 (dwarf_decode_macro_bytes): Update.
8370 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8371 * dwarf2/leb.h (read_offset): Declare.
8373 2020-02-08 Tom Tromey <tom@tromey.com>
8375 * dwarf2/read.c (dwarf2_section_size): Remove.
8376 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8378 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8380 2020-02-08 Tom Tromey <tom@tromey.com>
8382 * dwarf2/read.c (read_initial_length): Move to leb.c.
8383 * dwarf2/leb.h (read_initial_length): Declare.
8384 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8385 handle_nonstd parameter.
8386 * dwarf2/frame.c (read_initial_length): Remove.
8387 (decode_frame_entry_1): Update.
8389 2020-02-08 Tom Tromey <tom@tromey.com>
8391 * dwarf2/loc.c (dwarf2_find_location_expression)
8392 (dwarf_evaluate_loc_desc::get_tls_address)
8393 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8394 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8395 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8396 (dwarf2_compile_property_to_c)
8397 (dwarf2_loc_desc_get_symbol_read_needs)
8398 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8399 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8400 (loclist_describe_location, loclist_tracepoint_var_ref)
8401 (loclist_generate_c_location): Update.
8402 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8403 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8404 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8405 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8406 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8407 (dwarf2_per_cu_data::addr_size)
8408 (dwarf2_per_cu_data::ref_addr_size)
8409 (dwarf2_per_cu_data::text_offset)
8410 (dwarf2_per_cu_data::addr_type): Now methods.
8411 (per_cu_header_read_in): Make per_cu "const".
8412 (dwarf2_version): Remove.
8413 (dwarf2_per_cu_data::int_type): Now a method.
8414 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8415 (set_die_type, read_array_type, read_subrange_index_type)
8416 (read_tag_string_type, read_subrange_type): Update.
8417 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8418 offset_size, ref_addr_size, text_offset, addr_type, version,
8419 objfile, int_type, addr_sized_int_type>: Declare methods.
8421 2020-02-08 Tom Tromey <tom@tromey.com>
8423 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8426 2020-02-08 Tom Tromey <tom@tromey.com>
8428 * dwarf2/read.h (dwarf_line_debug): Declare.
8429 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8430 * dwarf2/read.c: Move line_header code to new files.
8431 (dwarf_line_debug): No longer static.
8432 * dwarf2/line-header.c: New file.
8433 * dwarf2/line-header.h: New file.
8435 2020-02-08 Tom Tromey <tom@tromey.com>
8437 * dwarf2/read.c (struct line_header) <file_full_name,
8438 file_file_name>: Return unique_xmalloc_ptr.
8439 (line_header::file_file_name): Update.
8440 (line_header::file_full_name): Update.
8441 (dw2_get_file_names_reader): Update.
8442 (macro_start_file): Update.
8444 2020-02-08 Tom Tromey <tom@tromey.com>
8446 * dwarf2/read.c (struct line_header) <file_full_name,
8447 file_file_name>: Declare methods.
8448 (dw2_get_file_names_reader): Update.
8449 (file_file_name): Now a method.
8450 (file_full_name): Likewise.
8451 (macro_start_file): Update.
8453 2020-02-08 Tom Tromey <tom@tromey.com>
8455 * dwarf2/read.c (dwarf_always_disassemble)
8456 (show_dwarf_always_disassemble): Move to loc.c.
8457 (_initialize_dwarf2_read): Move "always-disassemble" registration
8459 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8460 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8462 (show_dwarf_always_disassemble): Move from read.c.
8463 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8465 2020-02-08 Tom Tromey <tom@tromey.com>
8467 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8468 (create_quick_file_names_table): Return htab_up.
8469 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8471 * dwarf2/read.h (struct dwarf2_per_objfile)
8472 <quick_file_names_table>: Now htab_up.
8474 2020-02-08 Tom Tromey <tom@tromey.com>
8476 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8478 2020-02-08 Tom Tromey <tom@tromey.com>
8480 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8482 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8483 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8484 (abbrev_table::abbrev_table): No longer inline.
8485 (ABBREV_HASH_SIZE): Remove.
8486 (abbrev_table::m_abbrevs): Now an htab_up.
8488 2020-02-08 Tom Tromey <tom@tromey.com>
8490 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8491 (cutu_reader): Update.
8492 (build_type_psymtabs_1): Update.
8493 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8494 (abbrev_table::alloc_abbrev): Update.
8495 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8496 (abbrev_table::read): New static method, renamed from
8497 abbrev_table_read_table.
8498 (abbrev_table::alloc_abbrev)
8499 (abbrev_table::add_abbrev): Now private.
8500 (abbrev_table::abbrev_table): Now private.
8501 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8503 2020-02-08 Tom Tromey <tom@tromey.com>
8505 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8506 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8509 2020-02-08 Tom Tromey <tom@tromey.com>
8511 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8513 (lookup_dwo_unit_in_dwp): Update.
8514 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8517 2020-02-08 Tom Tromey <tom@tromey.com>
8519 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8522 2020-02-08 Tom Tromey <tom@tromey.com>
8524 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8526 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8527 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8528 Change type to htab_up.
8530 2020-02-08 Tom Tromey <tom@tromey.com>
8532 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8533 htab_up. Don't allocate on obstack.
8534 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8535 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8536 Change type to htab_up.
8538 2020-02-08 Tom Tromey <tom@tromey.com>
8540 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8541 Change type to htab_up.
8542 * dwarf2/read.c (create_signatured_type_table_from_index)
8543 (create_signatured_type_table_from_debug_names)
8544 (create_all_type_units, add_type_unit)
8545 (lookup_dwo_signatured_type, lookup_signatured_type)
8546 (process_skeletonless_type_unit): Update.
8547 (create_debug_type_hash_table, create_debug_types_hash_table):
8548 Change type of types_htab.
8549 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8550 htab_up. Don't allocate on obstack.
8551 (create_cus_hash_table): Change type of cus_htab parameter.
8552 (struct dwo_file) <cus, tus>: Now htab_up.
8553 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8554 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8555 (queue_and_load_all_dwo_tus): Update.
8556 * dwarf2/index-write.c (write_gdbindex): Update.
8557 (write_debug_names): Update.
8559 2020-02-08 Tom Tromey <tom@tromey.com>
8561 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8562 dwarf2/read.c. Remove "next" member. Add constructor ntad
8564 (struct dwarf2_per_objfile) <queue>: New member.
8565 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8567 (dwarf2_queue, dwarf2_queue_tail): Remove.
8568 (class dwarf2_queue_guard): Add parameter to constructor. Use
8569 DISABLE_COPY_AND_ASSIGN.
8570 <m_per_objfile>: New member.
8571 <~dwarf2_queue_guard>: Rewrite.
8572 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8574 (~dwarf2_queue_item): New.
8576 2020-02-08 Tom Tromey <tom@tromey.com>
8578 * dwarf2/read.c (struct die_info) <has_children>: New member.
8579 (dw2_get_file_names_reader): Remove has_children.
8580 (dw2_get_file_names): Update.
8581 (read_cutu_die_from_dwo): Remove has_children.
8582 (cutu_reader::init_tu_and_read_dwo_dies)
8583 (cutu_reader::cutu_reader): Update.
8584 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8585 Remove has_children.
8586 (build_type_psymtabs_1, process_skeletonless_type_unit)
8587 (load_partial_comp_unit, load_full_comp_unit): Update.
8588 (create_dwo_cu_reader): Remove has_children.
8589 (create_cus_hash_table, read_die_and_children): Update.
8590 (read_full_die_1,read_full_die): Remove has_children.
8591 (read_signatured_type): Update.
8592 (class cutu_reader) <has_children>: Remove.
8594 2020-02-08 Tom Tromey <tom@tromey.com>
8596 * dwarf2/expr.c: Rename from dwarf2expr.c.
8597 * dwarf2/expr.h: Rename from dwarf2expr.h.
8598 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8599 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8600 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8601 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8602 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8603 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8604 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8605 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8606 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8607 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8608 * dwarf2/loc.c: Rename from dwarf2loc.c.
8609 * dwarf2/loc.h: Rename from dwarf2loc.h.
8610 * dwarf2/read.c: Rename from dwarf2read.c.
8611 * dwarf2/read.h: Rename from dwarf2read.h.
8612 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8613 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8614 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8615 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8616 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8617 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8618 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8619 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8620 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8621 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8622 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8623 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8624 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8626 * Makefile.in (COMMON_SFILES): Update.
8627 (HFILES_NO_SRCDIR): Update.
8629 2020-02-08 Tom Tromey <tom@tromey.com>
8631 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8632 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8634 2020-02-08 Tom Tromey <tom@tromey.com>
8636 * dwarf2read.h (struct die_info): Don't declare.
8638 2020-02-08 Tom Tromey <tom@tromey.com>
8640 * dwarf2read.h (die_info_ptr): Remove typedef.
8642 2020-02-08 Tom Tromey <tom@tromey.com>
8644 * dwarf2read.c (read_call_site_scope)
8645 (handle_data_member_location, dwarf2_add_member_fn)
8646 (mark_common_block_symbol_computed, read_common_block)
8647 (attr_to_dynamic_prop, partial_die_info::read)
8648 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8649 (dwarf2_symbol_mark_computed, set_die_type): Update.
8650 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8652 (attr_form_is_block): Don't declare.
8653 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8655 2020-02-08 Tom Tromey <tom@tromey.com>
8657 * dwarf2read.c (dwarf2_find_base_address, )
8658 (read_call_site_scope, rust_containing_type)
8659 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8660 (handle_data_member_location, dwarf2_add_member_fn)
8661 (get_alignment, read_structure_type, process_structure_scope)
8662 (mark_common_block_symbol_computed, read_common_block)
8663 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8664 (partial_die_info::read, read_attribute_value, new_symbol)
8665 (lookup_die_type, dwarf2_get_ref_die_offset)
8666 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8667 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8668 (dwarf2_symbol_mark_computed): Update.
8669 * dwarf2/attribute.h (struct attribute) <value_as_address,
8670 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8672 (value_as_address, attr_form_is_section_offset)
8673 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8674 * dwarf2/attribute.c (attribute::value_as_address)
8675 (attribute::form_is_section_offset, attribute::form_is_constant)
8676 (attribute::form_is_ref): Now methods.
8678 2020-02-08 Tom Tromey <tom@tromey.com>
8680 * dwarf2read.c (struct attribute, DW_STRING)
8681 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8682 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8683 (attr_form_is_block, attr_form_is_section_offset)
8684 (attr_form_is_constant, attr_form_is_ref): Move.
8685 * dwarf2/attribute.h: New file.
8686 * dwarf2/attribute.c: New file, from dwarf2read.c.
8687 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8689 2020-02-08 Tom Tromey <tom@tromey.com>
8691 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8692 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8694 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8695 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8696 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8698 * dwarf2/abbrev.h: New file.
8699 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8700 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8702 2020-02-08 Tom Tromey <tom@tromey.com>
8704 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8705 (dwarf2_section_size, dwarf2_get_section_info)
8706 (create_signatured_type_table_from_debug_names)
8707 (create_addrmap_from_aranges, read_debug_names_from_section)
8708 (get_gdb_index_contents_from_section, read_comp_unit_head)
8709 (error_check_comp_unit_head, read_abbrev_offset)
8710 (create_debug_type_hash_table, init_cu_die_reader)
8711 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8712 (read_comp_units_from_section, create_cus_hash_table)
8713 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8714 (create_dwp_v2_section, dwarf2_rnglists_process)
8715 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8716 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8717 (read_indirect_string_from_dwz, read_addr_index_1)
8718 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8719 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8720 (fill_in_loclist_baton): Update.
8721 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8722 get_containing_section, get_bfd_owner, get_bfd_section,
8723 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8724 (dwarf2_read_section, get_section_name, get_section_file_name)
8725 (get_containing_section, get_section_bfd_owner)
8726 (get_section_bfd_section, get_section_name, get_section_file_name)
8727 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8729 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8730 (dwarf2_section_info::get_bfd_owner)
8731 (dwarf2_section_info::get_bfd_section)
8732 (dwarf2_section_info::get_name)
8733 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8734 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8735 (dwarf2_section_info::read): Now methods.
8736 * dwarf-index-write.c (class debug_names): Update.
8738 2020-02-08 Tom Tromey <tom@tromey.com>
8740 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8741 Move to dwarf2/section.h.
8742 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8743 (get_section_bfd_section, get_section_name)
8744 (get_section_file_name, get_section_id, get_section_flags)
8745 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8747 * dwarf2/section.h: New file.
8748 * dwarf2/section.c: New file, from dwarf2read.c.
8749 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8751 2020-02-08 Tom Tromey <tom@tromey.com>
8753 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8754 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8755 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8756 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8757 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8758 * dwarf2/leb.h: New file, from dwarf2read.c.
8759 * dwarf2/leb.c: New file, from dwarf2read.c.
8760 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8762 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8763 (COMMON_SFILES): Add dwarf2/leb.c.
8765 2020-02-08 Joel Brobecker <brobecker@adacore.com>
8769 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8772 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8773 * gdb/remote.c (remote_console_output): Update.
8774 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8775 (ui_file_puts): ...this.
8776 * gdb/ui-file.h (ui_file_puts): Add declaration.
8777 * gdb/utils.c (emit_style_escape): Update.
8778 (flush_wrap_buffer): Update.
8779 (fputs_maybe_filtered): Update.
8780 (fputs_unfiltered): Add function.
8782 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8784 * gdb/event-loop.c (gdb_wait_for_event): Update.
8785 * gdb/printcmd.c (printf_command): Update.
8786 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8787 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8788 (gdb_os_flush_stderr): Update.
8789 * gdb/remote.c (remote_console_output): Update.
8790 * gdb/ui-file.c (gdb_flush): Rename to...
8791 (ui_file_flush): ...this.
8792 (stderr_file::write): Update.
8793 (stderr_file::puts): Update.
8794 * gdb/ui-file.h (gdb_flush): Rename to...
8795 (ui_file_flush): ...this.
8796 * gdb/utils.c (gdb_flush): Add function.
8797 * gdb/utils.h (gdb_flush): Add declaration.
8799 2020-02-07 Tom Tromey <tromey@adacore.com>
8801 PR breakpoints/24915:
8802 * source.c (find_and_open_source): Do not check basenames_may_differ.
8804 2020-02-07 Tom Tromey <tom@tromey.com>
8806 * README: Update gdbserver documentation.
8807 * gdbserver: Move to top level.
8808 * configure.tgt (build_gdbserver): Remove.
8809 * configure.ac: Remove --enable-gdbserver.
8810 * configure: Rebuild.
8811 * Makefile.in (distclean): Don't mention gdbserver.
8813 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
8815 * source-cache.c (source_cache::ensure): Surround
8816 get_plain_source_lines with a try/catch.
8817 (source_cache::get_line_charpos): Get rid of try/catch
8818 and only check for the return value of "ensure".
8819 * tui/tui-source.c (tui_source_window::set_contents):
8820 Simplify "nlines" calculation.
8822 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
8824 * MAINTAINERS (Write After Approval): Add myself.
8826 2020-02-05 Christian Biesinger <cbiesinger@google.com>
8828 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8831 2020-02-05 Christian Biesinger <cbiesinger@google.com>
8833 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8835 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
8837 * nat/riscv-linux-tdesc.h: New file.
8838 * nat/riscv-linux-tdesc.c: New file, taking code from...
8839 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8841 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8844 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8846 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8847 we don't set the fake simulator ptid to the null_ptid.
8849 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
8851 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8852 * gdbthread.h (class thread_info) <resumed>: Likewise.
8853 * infrun.c (resume_1): Likewise.
8854 (proceed): Likewise.
8855 (infrun_thread_stop_requested): Likewise.
8856 (stop_all_threads): Likewise.
8857 (handle_inferior_event): Likewise.
8858 (restart_threads): Likewise.
8859 (finish_step_over): Likewise.
8860 (keep_going_stepped_thread): Likewise.
8861 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8862 (linux_handle_extended_wait): Likewise.
8863 * record-btrace.c (get_thread_current_frame_id): Likewise.
8864 * record-full.c (record_full_wait_1): Likewise.
8865 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8866 * target.c (target_resume): Likewise.
8867 * thread.c (set_running_thread): Likewise.
8869 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8871 * f-valprint.c (f77_print_array_1): Changed datatype of index
8872 variable to LONGEST from int to enable it to contain bound
8875 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
8877 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8878 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8879 offsets according to FLEN determined.
8880 (riscv_linux_nat_target::read_description): Determine FLEN
8882 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8883 according to FLEN determined.
8884 (riscv_linux_nat_target::store_registers): Likewise.
8886 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8888 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8889 when reg->group is empty and reggroup is not.
8891 2020-01-31 Tom Tromey <tromey@adacore.com>
8893 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8894 Call beneath target's mourn_inferior after unpushing.
8896 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8899 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8900 have enough lines to fill the screen, still return the lowest
8903 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8905 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8906 '-', '<', and '>' commands.
8908 2020-01-29 Pedro Alves <palves@redhat.com>
8909 Sergio Durigan Junior <sergiodj@redhat.com>
8911 * infcmd.c (construct_inferior_arguments): Assert that
8912 'argc' is greater than 0.
8914 2020-01-29 Luis Machado <luis.machado@linaro.org>
8916 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8917 (BRK_INSN_MASK): Define to 0xd4200000.
8918 (aarch64_program_breakpoint_here_p): New function.
8919 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8920 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8922 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8924 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8925 call gdbarch_program_breakpoint_here_p.
8926 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8927 default_program_breakpoint_here_p, changed return type to bool and
8929 * breakpoint.h (program_breakpoint_here): Moved prototype to
8930 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8931 return type to bool.
8932 * gdbarch.c: Regenerate.
8933 * gdbarch.h: Regenerate.
8934 * gdbarch.sh (program_breakpoint_here_p): New method.
8935 * infrun.c (handle_signal_stop): Call
8936 gdbarch_program_breakpoint_here_p.
8938 2020-01-26 Tom Tromey <tom@tromey.com>
8940 * ctfread.c (struct ctf_fp_info): Reindent.
8941 (_initialize_ctfread): Remove.
8943 2020-01-26 Tom Tromey <tom@tromey.com>
8945 * psymtab.c (partial_map_expand_apply)
8946 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8947 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8948 (psym_print_stats, psym_expand_symtabs_for_function)
8949 (psym_map_symbol_filenames, psym_map_matching_symbols)
8950 (psym_expand_symtabs_matching)
8951 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8952 (maintenance_check_psymtabs): Use new methods.
8953 * psympriv.h (struct partial_symtab) <readin_p,
8954 get_compunit_symtab>: New methods.
8955 <readin, compunit_symtab>: Remove members.
8956 (struct standard_psymtab): New.
8957 (struct legacy_psymtab): Derive from standard_psymtab.
8958 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8960 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8962 2020-01-26 Tom Tromey <tom@tromey.com>
8964 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8965 read_dependencies. Add assert.
8966 * psymtab.c (partial_symtab::read_dependencies): New method.
8967 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8969 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8970 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8972 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8975 2020-01-26 Tom Tromey <tom@tromey.com>
8977 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8978 Call expand_psymtab.
8979 (xcoff_read_symtab): Call expand_psymtab.
8980 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8981 legacy_expand_psymtab.
8982 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8984 (struct legacy_psymtab) <expand_psymtab>: Implement.
8985 <legacy_expand_psymtab>: New member.
8986 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8987 (parse_partial_symbols): Set legacy_expand_psymtab.
8988 (psymtab_to_symtab_1): Change argument order. Call
8990 (new_psymtab): Set legacy_expand_psymtab.
8991 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8992 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8994 (dwarf2_psymtab::expand_psymtab): Rename from
8995 psymtab_to_symtab_1. Call expand_psymtab.
8996 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8997 (dbx_end_psymtab): Likewise.
8998 (dbx_psymtab_to_symtab_1): Change argument order. Call
9000 (dbx_read_symtab): Call expand_psymtab.
9001 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9002 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9003 (ctf_psymtab::read_symtab): Call expand_psymtab.
9005 2020-01-26 Tom Tromey <tom@tromey.com>
9007 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9008 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9010 * mdebugread.c (mdebug_read_symtab): Remove prints.
9011 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9013 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9015 2020-01-26 Tom Tromey <tom@tromey.com>
9017 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9018 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9019 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9021 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9022 * psymtab.c (psymtab_to_symtab): Call method.
9023 (dump_psymtab): Update.
9024 * psympriv.h (struct partial_symtab): Add virtual destructor.
9025 <read_symtab>: New method.
9026 (struct legacy_symtab): New.
9027 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9028 (struct pst_map) <pst>: Now a legacy_psymtab.
9029 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9030 (new_psymtab): Use legacy_psymtab.
9031 * dwarf2read.h (struct dwarf2_psymtab): New.
9032 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9033 * dwarf2read.c (dwarf2_create_include_psymtab)
9034 (dwarf2_build_include_psymtabs, create_type_unit_group)
9035 (create_partial_symtab, process_psymtab_comp_unit_reader)
9036 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9037 (set_partial_user): Use dwarf2_psymtab.
9038 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9039 (psymtab_to_symtab_1, process_full_comp_unit)
9040 (process_full_type_unit, dwarf2_ranges_read)
9041 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9042 (dwarf_decode_lines): Use dwarf2_psymtab.
9043 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9044 (add_address_entry_worker, write_one_signatured_type)
9045 (recursively_count_psymbols, recursively_write_psymbols)
9046 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9047 (write_debug_names): Likewise.
9048 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9049 <pst>: Now a legacy_psymtab.
9050 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9051 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9052 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9053 * ctfread.c (struct ctf_psymtab): New.
9054 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9056 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9057 (create_partial_symtab): Return a ctf_psymtab.
9058 (scan_partial_symbols): Update.
9060 2020-01-26 Tom Tromey <tom@tromey.com>
9062 * xcoffread.c (xcoff_start_psymtab): Use new.
9063 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9064 renamed from start_psymtab_common.
9065 * psympriv.h (struct partial_symtab): Add new constructor.
9066 (start_psymtab_common): Don't declare.
9067 * mdebugread.c (parse_partial_symbols): Use new.
9068 * dwarf2read.c (create_partial_symtab): Use new.
9069 * dbxread.c (start_psymtab): Use new.
9070 * ctfread.c (create_partial_symtab): Use new.
9072 2020-01-26 Tom Tromey <tom@tromey.com>
9074 * xcoffread.c (xcoff_end_psymtab): Use new.
9075 * psymtab.c (start_psymtab_common): Use new.
9076 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9078 * psympriv.h (struct partial_symtab): Add parameters to
9079 constructor. Don't inline.
9080 (allocate_psymtab): Don't declare.
9081 * mdebugread.c (new_psymtab): Use new.
9082 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9083 * dbxread.c (dbx_end_psymtab): Use new.
9085 2020-01-26 Tom Tromey <tom@tromey.com>
9087 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9088 allocate_psymtab. Update documentation.
9089 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9090 allocate_psymtab. Do not use new.
9091 (allocate_psymtab): Use new. Update.
9093 2020-01-26 Tom Tromey <tom@tromey.com>
9095 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9096 * psymtab.c (psym_print_stats): Update.
9097 * psympriv.h (struct partial_symtab) <readin,
9098 psymtabs_addrmap_supported, anonymous>: Now bool.
9099 * mdebugread.c (psymtab_to_symtab_1): Update.
9100 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9101 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9102 (process_full_comp_unit, process_full_type_unit): Update.
9103 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9104 * ctfread.c (psymtab_to_symtab): Update.
9106 2020-01-26 Tom Tromey <tom@tromey.com>
9108 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9109 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9110 * psymtab.c (psymtab_storage): Delete psymtabs.
9111 (psymtab_storage::allocate_psymtab): Use new.
9112 (psymtab_storage::discard_psymtab): Use delete.
9113 * psympriv.h (struct partial_symtab): Add constructor and
9116 2020-01-26 Tom Tromey <tom@tromey.com>
9118 * machoread.c: Do not include psympriv.h.
9120 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9122 * NEWS: Mention the new option and the set/show commands.
9124 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9126 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9127 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9128 (validate_exec_file): New variables, enums, functions.
9129 (exec_file_locate_attach, print_section_info): Style the filenames.
9130 (_initialize_exec): Install show_exec_file_mismatch_command and
9131 set_exec_file_mismatch_command.
9132 * gdbcore.h (validate_exec_file): Declare.
9133 * infcmd.c (attach_command): Call validate_exec_file.
9134 * remote.c ( remote_target::remote_add_inferior): Likewise.
9136 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9138 * frame.c (find_frame_sal): Move call to get_next_frame into more
9140 * inline-frame.c (inilne_state) <inline_state>: Update argument
9142 (inilne_state) <skipped_symbol>: Rename to...
9143 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9144 (skip_inline_frames): Build vector of skipped symbols and use this
9145 to reate the inline_state.
9146 (inline_skipped_symbol): Add a comment and some assertions, fetch
9147 skipped symbol from the list.
9149 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9151 * buildsym.c (lte_is_less_than): Delete.
9152 (buildsym_compunit::end_symtab_with_blockvector): Create local
9153 lambda function to sort line table entries, and use
9154 std::stable_sort instead of std::sort.
9155 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9156 markers when looking for a previous line.
9158 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9160 * dwarf2read.c (lnp_state_machine::record_line): Include
9161 end_sequence parameter in debug print out. Record the line if we
9162 are at an end_sequence marker even if it's not the start of a
9164 * symmisc.c (maintenance_print_one_line_table): Print end of
9165 sequence markers with 'END' not '0'.
9167 2020-01-24 Pedro Alves <palves@redhat.com>
9170 * thread.c (scoped_restore_current_thread::restore): Use
9171 switch_to_inferior_no_thread.
9172 * exec.c: Include "progspace-and-thread.h".
9173 (add_target_sections, remove_target_sections):
9174 scoped_restore_current_pspace_and_thread instead of
9175 scoped_restore_current_thread.
9176 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9177 and aspace to the inferior before calling clone_program_space.
9178 Remove stale comment.
9180 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9182 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9183 (arm_netbsd_nat_target::fetch_registers): ...this.
9184 (arm_nbsd_nat_target::store_registers): Rename to...
9185 (arm_netbsd_nat_target::store_registers): ...this.
9187 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9189 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9192 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9194 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9196 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9198 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9199 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9200 the correct replacement (iterate_over_regset_sections).
9201 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9204 2020-01-24 Graham Markall <graham.markall@embecosm.com>
9207 * gdb/python/python.c (execute_gdb_command): Call
9208 async_enable_stdin in catch block.
9210 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9212 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9213 SWITCH_THRU_ALL_UIS.
9215 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9218 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9219 comment, add extra parameter, and update to store previous symbol
9221 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9222 add extra parameter.
9223 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9224 remove unneeded parameter, add try/catch around gdb_print_insn,
9225 rewrite to add items to asm_lines vector.
9226 (tui_find_backward_disassembly_start_address): New function.
9227 (tui_find_disassembly_address): Updated throughout.
9228 (tui_disasm_window::set_contents): Update for changes to
9230 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9231 number of lines to scroll.
9233 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9235 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9236 (SECT_OFF_DATA): Likewise.
9237 (SECT_OFF_RODATA): Likewise.
9238 (SECT_OFF_TEXT): Likewise.
9239 (SECT_OFF_BSS): Likewise.
9240 (struct objfile) <text_section_offset, data_section_offset>: New
9242 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9243 objfile::text_section_offset.
9244 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9245 * coffread.c (coff_symtab_read): Likewise.
9246 (enter_linenos): Likewise.
9247 (process_coff_symbol): Likewise.
9248 * ctfread.c (get_objfile_text_range): Likewise.
9249 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9250 Use objfile::data_section_offset.
9251 * dwarf2-frame.c (execute_cfa_program): Use
9252 objfile::text_section_offset.
9253 (dwarf2_frame_find_fde): Likewise.
9254 * dwarf2read.c (create_addrmap_from_index): Likewise.
9255 (create_addrmap_from_aranges): Likewise.
9256 (dw2_find_pc_sect_compunit_symtab): Likewise.
9257 (process_psymtab_comp_unit_reader): Likewise.
9258 (add_partial_symbol): Likewise.
9259 (add_partial_subprogram): Likewise.
9260 (process_full_comp_unit): Likewise.
9261 (read_file_scope): Likewise.
9262 (read_func_scope): Likewise.
9263 (read_lexical_block_scope): Likewise.
9264 (read_call_site_scope): Likewise.
9265 (dwarf2_rnglists_process): Likewise.
9266 (dwarf2_ranges_process): Likewise.
9267 (dwarf2_ranges_read): Likewise.
9268 (dwarf_decode_lines_1): Likewise.
9269 (new_symbol): Likewise.
9270 (dwarf2_fetch_die_loc_sect_off): Likewise.
9271 (dwarf2_per_cu_text_offset): Likewise.
9272 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9273 * hppa-tdep.c (read_unwind_info): Likewise.
9274 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9275 * psympriv.h (struct partial_symtab): Likewise.
9276 * psymtab.c (find_pc_sect_psymtab): Likewise.
9277 * solib-svr4.c (enable_break): Likewise.
9278 * stap-probe.c (relocate_address): Use
9279 objfile::data_section_offset.
9280 * xcoffread.c (enter_line_range): Use
9281 objfile::text_section_offset.
9282 (read_xcoff_symtab): Likewise.
9284 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9286 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9287 declaration to narrower scopes.
9289 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9291 * darwin-nat.h (struct darwin_exception_msg, enum
9292 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9294 (class darwin_nat_target) <wait_1, check_new_threads,
9295 decode_exception_message, decode_message, stop_inferior,
9296 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9297 * darwin-nat.c (darwin_check_new_threads): Rename to...
9298 (darwin_nat_target::check_new_threads): ... this.
9299 (darwin_suspend_inferior_it): Remove.
9300 (darwin_decode_exception_message): Rename to...
9301 (darwin_nat_target::decode_exception_message): ... this.
9302 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9303 (darwin_decode_message): Rename to...
9304 (darwin_nat_target::decode_message): ... this.
9305 (cancel_breakpoint): Rename to...
9306 (darwin_nat_target::cancel_breakpoint): ... this.
9307 (darwin_wait): Rename to...
9308 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9309 instead of iterate_over_inferiors.
9310 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9311 (darwin_stop_inferior): Rename to...
9312 (darwin_nat_target::stop_inferior): ... this.
9313 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9314 (darwin_init_thread_list): Rename to...
9315 (darwin_nat_target::init_thread_list): ... this.
9316 (darwin_ptrace_him): Rename to...
9317 (darwin_nat_target::ptrace_him): ... this.
9318 (darwin_nat_target::create_inferior): Pass lambda function to
9320 (darwin_nat_target::detach): Call stop_inferior instead of
9321 darwin_stop_inferior.
9322 * fork-inferior.h (fork_inferior): Change init_trace_fun
9323 parameter to gdb::function_view.
9324 * fork-inferior.c (fork_inferior): Likewise.
9326 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
9328 * i386-cygwin-tdep.c (core_process_module_section): Update.
9329 * windows-nat.c (struct lm_info_windows): Add text_offset.
9330 (windows_xfer_shared_libraries): Update.
9331 * windows-tdep.c (windows_xfer_shared_library):
9332 Add text_offset_cached argument.
9333 * windows-tdep.h (windows_xfer_shared_library): Update.
9335 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9337 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9339 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9341 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9342 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9343 replace with range-based for.
9344 (gdbsim_interrupt_inferior): Remove.
9345 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9346 with a range-based for. Inline code from
9347 gdbsim_interrupt_inferior.
9349 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9351 * infrun.c (proceed): Fix indentation.
9353 2020-01-21 Tom Tromey <tromey@adacore.com>
9355 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9356 * python/python.c (python_extension_ops): Update.
9357 (gdbpy_colorize): New function.
9358 * python/lib/gdb/__init__.py (colorize): New function.
9359 * extension.h (ext_lang_colorize): Declare.
9360 * extension.c (ext_lang_colorize): New function.
9361 * extension-priv.h (struct extension_language_ops) <colorize>: New
9363 * cli/cli-style.c (_initialize_cli_style): Update help text.
9365 2020-01-21 Luis Machado <luis.machado@linaro.org>
9367 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9368 <cond>: Change type to bool.
9369 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9370 (aarch64_displaced_step_cb): Likewise.
9371 (aarch64_displaced_step_tb): Likewise.
9373 2020-01-21 Luis Machado <luis.machado@linaro.org>
9375 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9378 2020-01-21 Luis Machado <luis.machado@linaro.org>
9380 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9381 <pc_adjust>: Adjust the documentation.
9382 (aarch64_displaced_step_fixup): Check if PC really moved before
9385 2020-01-19 Tom Tromey <tom@tromey.com>
9387 * disasm.c (~gdb_disassembler): New destructor.
9388 (gdb_buffered_insn_length): Call disassemble_free_target.
9389 * disasm.h (class gdb_disassembler): Declare destructor. Use
9390 DISABLE_COPY_AND_ASSIGN.
9392 2020-01-19 Tom Tromey <tom@tromey.com>
9394 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9395 (die_reader_func_ftype): Remove.
9396 (cutu_reader): New class.
9397 (dw2_get_file_names_reader): Remove "data" parameter.
9398 (dw2_get_file_names): Use cutu_reader.
9399 (create_debug_type_hash_table): Update.
9400 (read_cutu_die_from_dwo): Update comment.
9401 (lookup_dwo_unit): Add dwo_name parameter.
9402 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9403 die_reader_func_ftype and data parameters.
9404 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9405 Remove die_reader_func_ftype and data parameters.
9406 (~cutu_reader): New; from init_cutu_and_read_dies.
9407 (cutu_reader::cutu_reader): Rename from
9408 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9409 and data parameters.
9410 (init_cutu_and_read_dies_simple): Remove.
9411 (struct process_psymtab_comp_unit_data): Remove.
9412 (process_psymtab_comp_unit_reader): Remove data parameter; add
9413 want_partial_unit and pretend_language parameters.
9414 (process_psymtab_comp_unit): Use cutu_reader.
9415 (build_type_psymtabs_reader): Remove data parameter.
9416 (build_type_psymtabs_1): Use cutu_reader.
9417 (process_skeletonless_type_unit): Likewise.
9418 (load_partial_comp_unit_reader): Remove.
9419 (load_partial_comp_unit): Use cutu_reader.
9420 (load_full_comp_unit_reader): Remove.
9421 (load_full_comp_unit): Use cutu_reader.
9422 (struct create_dwo_cu_data): Remove.
9423 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9424 dwo_unit parameters.
9425 (create_cus_hash_table): Use cutu_reader.
9426 (struct dwarf2_read_addr_index_data): Remove.
9427 (dwarf2_read_addr_index_reader): Remove.
9428 (dwarf2_read_addr_index): Use cutu_reader.
9429 (read_signatured_type_reader): Remove.
9430 (read_signatured_type): Use cutu_reader.
9432 2020-01-19 Tom Tromey <tom@tromey.com>
9434 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9435 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9436 (tui_wrefresh): Declare.
9437 * tui/tui-wingeneral.c (suppress_output): New global.
9438 (tui_suppress_output, ~tui_suppress_output): New constructor and
9440 (tui_wrefresh): New function.
9441 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9442 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9443 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9445 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9447 (tui_data_window::no_refresh): New method.
9448 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9449 (tui_reg_command): Use tui_suppress_output
9450 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9451 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9453 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9455 2020-01-19 Tom Tromey <tom@tromey.com>
9457 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9458 Handle case where symtab is null.
9460 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9462 * linux-fork.c (one_fork_p): Simplify.
9464 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9466 * top.c (struct qt_args): Remove.
9467 (kill_or_detach): Change return type to void, replace `void *`
9468 parameter with a proper one.
9469 (print_inferior_quit_action): Likewise.
9470 (quit_confirm): Use range-based for loop to iterate over inferiors.
9471 (quit_force): Likewise.
9473 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9475 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9476 `void *` parameter with proper parameters.
9477 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9478 (print_one_inferior): Change return type to void, replace `void *`
9479 parameter with proper parameters.
9480 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9482 (get_other_inferior): Remove.
9483 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9486 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9488 * mi/mi-interp.c (report_initial_inferior): Remove.
9489 (mi_interp::init): Use range-based for to iterate over inferiors.
9491 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9493 * python/py-inferior.c (build_inferior_list): Remove.
9494 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9496 2020-01-16 Christian Biesinger <cbiesinger@google.com>
9498 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9499 (btrace_stitch_trace): Likewise.
9500 * charset.c (intermediate_encoding): Likewise (vaild).
9501 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9502 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9503 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9505 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
9507 * windows-tdep.c (windows_get_tlb_type):
9508 Add rtl_user_process_parameters type.
9510 2020-01-16 Pedro Alves <palves@redhat.com>
9511 Norbert Lange <nolange79@gmail.com>
9514 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9515 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9516 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9517 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9518 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9519 (ps_plog): Redeclare exported functions with default visibility.
9521 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9523 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9524 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9526 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
9528 * infcmd.c (post_create_inferior): Use get_thread_regcache
9529 instead of get_current_regcache.
9531 2020-01-14 Tom Tromey <tom@tromey.com>
9534 * python/python.c (gdbpy_decode_line): Treat empty string the same
9537 2020-01-14 Tom Tromey <tom@tromey.com>
9539 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9541 2020-01-14 Tom Tromey <tom@tromey.com>
9543 * nat/linux-btrace.c: Don't include <config.h>.
9544 * nat/linux-ptrace.c: Don't include <config.h>.
9545 * nat/x86-linux-dregs.c: Don't include <config.h>.
9547 2020-01-14 Tom Tromey <tom@tromey.com>
9549 * configure: Rebuild.
9550 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9552 2020-01-14 Tom Tromey <tom@tromey.com>
9554 * nat/x86-linux-dregs.c: Include configh.h.
9555 * nat/linux-ptrace.c: Include configh.h.
9556 * nat/linux-btrace.c: Include configh.h.
9557 * defs.h: Include config.h, bfd.h.
9558 * configure.ac: Don't source common.host.
9559 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9560 * configure: Rebuild.
9561 * acinclude.m4: Update path.
9562 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9563 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9564 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9565 (CLIBS): Add LIBSUPPORT.
9567 (COMMON_SFILES): Remove gdbsupport files.
9568 (HFILES_NO_SRCDIR): Likewise.
9569 (stamp-version): Update path to create-version.sh.
9570 (ALLDEPFILES): Remove gdbsupport files.
9572 2020-01-14 Tom Tromey <tom@tromey.com>
9574 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9575 USE_WIN32API when needed.
9576 * configure.ac (USE_WIN32API): Don't define.
9577 (WIN32LIBS): Use WIN32APILIBS.
9578 * configure: Rebuild.
9580 2020-01-14 Tom Tromey <tom@tromey.com>
9582 * configure: Rebuild.
9583 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9585 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9587 * skip.c (skip_function_command): Make skip w/o arguments use the
9588 name of the inlined function if pc is inside any inlined function.
9590 2020-01-14 Luis Machado <luis.machado@linaro.org>
9592 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9593 * infrun.c (resume_1): Likewise.
9594 (handle_inferior_event): Remove stale comment.
9595 * linux-nat.c (linux_nat_target::resume): Update comments.
9596 (save_stop_reason): Likewise.
9597 (linux_nat_filter_event): Likewise.
9598 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9600 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9602 * elfread.c (record_minimal_symbol): Set section index to 0 for
9603 non-allocatable sections.
9606 2020-01-13 Ali Tamur <tamur@google.com>
9608 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9609 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9610 to gdb::optional. Update comments.
9611 (dwo_file): Update comments.
9612 (read_attribute): Update API to take an additional out parameter,
9613 need_reprocess. This is used to mark attributes that need other
9614 attributes (e.g. str_offsets_base) for correct computation which may not
9616 (read_attribute_reprocess): New function declaration.
9617 (read_addr_index): Likewise.
9618 (read_dwo_str_index): Likewise.
9619 (read_stub_str_index): Likewise.
9620 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9621 (lookup_addr_base): New function definition.
9622 (lookup_ranges_base): Likewise.
9623 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9625 (init_cutu_and_read_dies): Update comments.
9626 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9627 unit. This is used to inherit parent's str_offsets_base and addr_base.
9629 (init_cutu_and_read_dies_simple): Reflect API changes.
9630 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9631 (create_cus_hash_table): Change API to take parent compile unit.
9632 Reflect API changes.
9633 (open_and_init_dwo_file): Reflect API changes.
9634 (dwarf2_get_pc_bounds): Update comments.
9635 (dwarf2_record_block_ranges): Likewise.
9636 (read_full_die_1): Change implementation to reprocess attributes that
9637 need str_offsets_base and addr_base.
9638 (partial_die_info::read): Likewise.
9639 (read_attribute_reprocess): New function definition.
9640 (read_attribute_value): Change API to take an additional out parameter,
9641 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9642 when a non-dwo compile unit has index based attributes.
9643 (read_attribute): Reflect API changes.
9644 (read_addr_index_1): Reflect API changes. Update comments.
9645 (dwarf2_read_addr_index_data): Reflect API changes.
9646 (dwarf2_read_addr_index): Likewise.
9647 (read_str_index): Change API and implementation. This becomes a helper
9648 to be used by the new string index related methods. Update error
9649 message and comments.
9650 (read_dwo_str_index): New function definition.
9651 (read_stub_str_index): Likewise.
9652 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9653 * symfile.h (dwarf2_debug_sections): Likewise.
9654 * xcoffread.c (dwarf2_debug_sections): Likewise.
9656 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
9658 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9659 core_reg_sect type to gdb_byte *.
9660 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9661 * cris-tdep.c (fetch_core_registers): Likewise.
9662 * corelow.c (core_target::get_core_register_section): Change
9663 type of `contents` to gdb::byte_vector.
9665 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9667 * tui/tui-wingeneral.c (box_win): Position the title in the center
9670 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9672 * corelow.c (core_target::get_core_register_section): Use
9673 std::vector instead of alloca.
9675 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
9677 * warning.m4: Add -Wmissing-declarations to build_warnings.
9678 * configure: Re-generate.
9680 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
9682 * python/python.c (init__gdb_module): Add declaration.
9684 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
9686 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9687 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9688 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9689 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9690 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9691 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9692 * ada-exp.y (_initialize_ada_exp): Add declaration.
9693 * ada-lang.c (_initialize_ada_language): Add declaration.
9694 * ada-tasks.c (_initialize_tasks): Add declaration.
9695 * agent.c (_initialize_agent): Add declaration.
9696 * aix-thread.c (_initialize_aix_thread): Add declaration.
9697 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9698 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9699 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9700 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9701 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9702 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9703 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9704 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9705 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9706 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9707 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9708 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9709 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9710 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9711 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9712 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9713 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9714 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9715 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9716 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9717 * annotate.c (_initialize_annotate): Add declaration.
9718 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9719 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9720 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9721 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9722 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9723 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9724 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9725 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9726 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9727 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9728 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9729 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9730 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9731 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9732 * auto-load.c (_initialize_auto_load): Add declaration.
9733 * auxv.c (_initialize_auxv): Add declaration.
9734 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9735 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9736 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9737 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9738 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9739 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9740 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9741 * breakpoint.c (_initialize_breakpoint): Add declaration.
9742 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9743 * btrace.c (_initialize_btrace): Add declaration.
9744 * charset.c (_initialize_charset): Add declaration.
9745 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9746 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9747 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9748 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9749 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9750 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9751 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9752 * coffread.c (_initialize_coffread): Add declaration.
9753 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9754 * compile/compile.c (_initialize_compile): Add declaration.
9755 * complaints.c (_initialize_complaints): Add declaration.
9756 * completer.c (_initialize_completer): Add declaration.
9757 * copying.c (_initialize_copying): Add declaration.
9758 * corefile.c (_initialize_core): Add declaration.
9759 * corelow.c (_initialize_corelow): Add declaration.
9760 * cp-abi.c (_initialize_cp_abi): Add declaration.
9761 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9762 * cp-support.c (_initialize_cp_support): Add declaration.
9763 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9764 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9765 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9766 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9767 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9768 * ctfread.c (_initialize_ctfread): Add declaration.
9769 * d-lang.c (_initialize_d_language): Add declaration.
9770 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9771 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9772 * dbxread.c (_initialize_dbxread): Add declaration.
9773 * dcache.c (_initialize_dcache): Add declaration.
9774 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9775 * disasm.c (_initialize_disasm): Add declaration.
9776 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9777 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9778 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9779 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9780 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9781 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9782 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9783 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9784 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9785 * elfread.c (_initialize_elfread): Add declaration.
9786 * exec.c (_initialize_exec): Add declaration.
9787 * extension.c (_initialize_extension): Add declaration.
9788 * f-lang.c (_initialize_f_language): Add declaration.
9789 * f-valprint.c (_initialize_f_valprint): Add declaration.
9790 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9791 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9792 * filesystem.c (_initialize_filesystem): Add declaration.
9793 * findcmd.c (_initialize_mem_search): Add declaration.
9794 * findvar.c (_initialize_findvar): Add declaration.
9795 * fork-child.c (_initialize_fork_child): Add declaration.
9796 * frame-base.c (_initialize_frame_base): Add declaration.
9797 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9798 * frame.c (_initialize_frame): Add declaration.
9799 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9800 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9801 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9802 * gcore.c (_initialize_gcore): Add declaration.
9803 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9804 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9805 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9806 * gdbarch.c (_initialize_gdbarch): Add declaration.
9807 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9808 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9809 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9810 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9811 * go-lang.c (_initialize_go_language): Add declaration.
9812 * go32-nat.c (_initialize_go32_nat): Add declaration.
9813 * guile/guile.c (_initialize_guile): Add declaration.
9814 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9815 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9816 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9817 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9818 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9819 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9820 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9821 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9822 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9823 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9824 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9825 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9826 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9827 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9828 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9829 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9830 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9831 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9832 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9833 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9834 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9835 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9836 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9837 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9838 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9839 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9840 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9841 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9842 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9843 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9844 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9845 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9846 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9847 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9848 * infcall.c (_initialize_infcall): Add declaration.
9849 * infcmd.c (_initialize_infcmd): Add declaration.
9850 * inflow.c (_initialize_inflow): Add declaration.
9851 * infrun.c (_initialize_infrun): Add declaration.
9852 * interps.c (_initialize_interpreter): Add declaration.
9853 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9854 * jit.c (_initialize_jit): Add declaration.
9855 * language.c (_initialize_language): Add declaration.
9856 * linux-fork.c (_initialize_linux_fork): Add declaration.
9857 * linux-nat.c (_initialize_linux_nat): Add declaration.
9858 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9859 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9860 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9861 * m2-lang.c (_initialize_m2_language): Add declaration.
9862 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9863 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9864 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9865 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9866 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9867 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9868 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9869 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9870 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9871 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9872 * machoread.c (_initialize_machoread): Add declaration.
9873 * macrocmd.c (_initialize_macrocmd): Add declaration.
9874 * macroscope.c (_initialize_macroscope): Add declaration.
9875 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9876 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9877 * maint.c (_initialize_maint_cmds): Add declaration.
9878 * mdebugread.c (_initialize_mdebugread): Add declaration.
9879 * memattr.c (_initialize_mem): Add declaration.
9880 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9881 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9882 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9883 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9884 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9885 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9886 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9887 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9888 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9889 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9890 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9891 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9892 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9893 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9894 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9895 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9896 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9897 * mipsread.c (_initialize_mipsread): Add declaration.
9898 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9899 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9900 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9901 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9902 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9903 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9904 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9905 * nto-procfs.c (_initialize_procfs): Add declaration.
9906 * objc-lang.c (_initialize_objc_language): Add declaration.
9907 * observable.c (_initialize_observer): Add declaration.
9908 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9909 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9910 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9911 * osabi.c (_initialize_gdb_osabi): Add declaration.
9912 * osdata.c (_initialize_osdata): Add declaration.
9913 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9914 * parse.c (_initialize_parse): Add declaration.
9915 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9916 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9917 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9918 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9919 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9920 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9921 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9922 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9923 * printcmd.c (_initialize_printcmd): Add declaration.
9924 * probe.c (_initialize_probe): Add declaration.
9925 * proc-api.c (_initialize_proc_api): Add declaration.
9926 * proc-events.c (_initialize_proc_events): Add declaration.
9927 * proc-service.c (_initialize_proc_service): Add declaration.
9928 * procfs.c (_initialize_procfs): Add declaration.
9929 * producer.c (_initialize_producer): Add declaration.
9930 * psymtab.c (_initialize_psymtab): Add declaration.
9931 * python/python.c (_initialize_python): Add declaration.
9932 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9933 * record-btrace.c (_initialize_record_btrace): Add declaration.
9934 * record-full.c (_initialize_record_full): Add declaration.
9935 * record.c (_initialize_record): Add declaration.
9936 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9937 * regcache.c (_initialize_regcache): Add declaration.
9938 * reggroups.c (_initialize_reggroup): Add declaration.
9939 * remote-notif.c (_initialize_notif): Add declaration.
9940 * remote-sim.c (_initialize_remote_sim): Add declaration.
9941 * remote.c (_initialize_remote): Add declaration.
9942 * reverse.c (_initialize_reverse): Add declaration.
9943 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9944 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9945 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9946 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9947 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9948 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9949 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9950 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9952 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9953 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9954 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9955 * rust-exp.y (_initialize_rust_exp): Add declaration.
9956 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9957 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9958 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9959 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9960 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9961 * score-tdep.c (_initialize_score_tdep): Add declaration.
9962 * ser-go32.c (_initialize_ser_dos): Add declaration.
9963 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9964 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9965 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9966 * ser-uds.c (_initialize_ser_socket): Add declaration.
9967 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9968 * serial.c (_initialize_serial): Add declaration.
9969 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9970 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9971 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9972 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9973 * skip.c (_initialize_step_skip): Add declaration.
9974 * sol-thread.c (_initialize_sol_thread): Add declaration.
9975 * solib-aix.c (_initialize_solib_aix): Add declaration.
9976 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9977 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9978 * solib-frv.c (_initialize_frv_solib): Add declaration.
9979 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9980 * solib-target.c (_initialize_solib_target): Add declaration.
9981 * solib.c (_initialize_solib): Add declaration.
9982 * source-cache.c (_initialize_source_cache): Add declaration.
9983 * source.c (_initialize_source): Add declaration.
9984 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9985 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9986 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9987 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9988 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9989 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9990 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9991 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9992 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9993 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9994 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9995 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9996 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9997 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9998 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9999 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10000 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10001 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10002 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10003 * stabsread.c (_initialize_stabsread): Add declaration.
10004 * stack.c (_initialize_stack): Add declaration.
10005 * stap-probe.c (_initialize_stap_probe): Add declaration.
10006 * std-regs.c (_initialize_frame_reg): Add declaration.
10007 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10008 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10009 * symfile.c (_initialize_symfile): Add declaration.
10010 * symmisc.c (_initialize_symmisc): Add declaration.
10011 * symtab.c (_initialize_symtab): Add declaration.
10012 * target.c (_initialize_target): Add declaration.
10013 * target-connection.c (_initialize_target_connection): Add
10015 * target-dcache.c (_initialize_target_dcache): Add declaration.
10016 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10017 * thread.c (_initialize_thread): Add declaration.
10018 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10019 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10020 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10021 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10022 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10023 * tracectf.c (_initialize_ctf): Add declaration.
10024 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10025 * tracefile.c (_initialize_tracefile): Add declaration.
10026 * tracepoint.c (_initialize_tracepoint): Add declaration.
10027 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10028 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10029 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10030 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10031 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10032 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10033 * tui/tui.c (_initialize_tui): Add declaration.
10034 * typeprint.c (_initialize_typeprint): Add declaration.
10035 * ui-style.c (_initialize_ui_style): Add declaration.
10036 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10037 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10038 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10039 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10040 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10041 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10042 * unittests/filtered_iterator-selftests.c
10043 (_initialize_filtered_iterator_selftests): Add declaration.
10044 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10045 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10046 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10047 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10048 * unittests/main-thread-selftests.c
10049 (_initialize_main_thread_selftests): Add declaration.
10050 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10051 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10052 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10053 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10054 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10055 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10056 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10057 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10058 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10059 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10060 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10061 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10062 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10063 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10064 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10066 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10067 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10068 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10069 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10070 * user-regs.c (_initialize_user_regs): Add declaration.
10071 * utils.c (_initialize_utils): Add declaration.
10072 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10073 * valops.c (_initialize_valops): Add declaration.
10074 * valprint.c (_initialize_valprint): Add declaration.
10075 * value.c (_initialize_values): Add declaration.
10076 * varobj.c (_initialize_varobj): Add declaration.
10077 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10078 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10079 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10080 * windows-nat.c (_initialize_windows_nat): Add declaration.
10081 (_initialize_check_for_gdb_ini): Add declaration.
10082 (_initialize_loadable): Add declaration.
10083 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10084 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10085 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10086 * xcoffread.c (_initialize_xcoffread): Add declaration.
10087 * xml-support.c (_initialize_xml_support): Add declaration.
10088 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10089 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10090 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10091 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10093 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10095 * regformats/regdat.sh: Generate declaration for init function.
10097 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10099 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10101 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10102 close_one_inferior>: New methods.
10103 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10104 pass down target to find_inferior_pid.
10105 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10106 Pass down target to find_inferior_ptid.
10107 (gdbsim_target::create_inferior): Pass down target to
10109 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10110 target down to find_inferior_ptid and switch_to_thread.
10111 (gdbsim_target::close): Update to call close_one_inferior.
10112 (struct resume_data): Remove.
10113 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10114 directly, rather than through a void pointer.
10115 (gdbsim_target::resume): Update to call resume_one_inferior.
10117 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10119 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10121 2020-01-12 Pedro Alves <palves@redhat.com>
10123 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10124 directly for the current inferior instead of
10125 discard_all_inferiors.
10126 (discard_all_inferiors): Delete.
10128 2020-01-11 Tom Tromey <tom@tromey.com>
10130 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10131 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10132 deprecated_safe_get_selected_frame.
10134 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10136 * inferior.c (print_inferior): Switch inferior before printing it.
10138 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10139 Pedro Alves <palves@redhat.com>
10141 * progspace-and-thread.c (switch_to_program_space_and_thread):
10142 Assert there's an inferior for PSPACE. Use
10143 switch_to_inferior_no_thread to switch the inferior too.
10144 * progspace.c (program_space::~program_space): Call
10145 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10146 (program_space::free_all_objfiles): Don't call clear_symtab_users
10148 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10150 2020-01-10 Pedro Alves <palves@redhat.com>
10152 * NEWS: Mention multi-target debugging, "info connections", and
10153 "add-inferior -no-connection".
10155 2020-01-10 Pedro Alves <palves@redhat.com>
10157 * infrun.c: Include "target-connection.h".
10158 (check_multi_target_resumption): New.
10159 (proceed): Call it.
10160 * target-connection.c (make_target_connection_string): Make
10162 * target-connection.h (make_target_connection_string): Declare.
10164 2020-01-10 Pedro Alves <palves@redhat.com>
10166 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10167 * inferior.c (uiout_field_connection): New function.
10168 (print_inferior): Add new "connection-id" column.
10169 (add_inferior_command): Show connection number/string of added
10171 * process-stratum-target.h
10172 (process_stratum_target::connection_string): New virtual method.
10173 (process_stratum_target::connection_number): New field.
10174 * remote.c (remote_target::connection_string): New override.
10175 * target-connection.c: New file.
10176 * target-connection.h: New file.
10177 * target.c (decref_target): Remove process_stratum targets from
10178 the connection list.
10179 (target_stack::push): Add process_stratum targets to the
10182 2020-01-10 Pedro Alves <palves@redhat.com>
10185 2016-04-12 Pedro Alves <palves@redhat.com>
10186 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10187 Remove references to name.
10188 * serial.h (struct serial) <name>: Delete.
10190 2020-01-10 Pedro Alves <palves@redhat.com>
10192 * gdbarch-selftests.c (register_to_value_test): Remove "target
10193 already pushed" check.
10195 2020-01-10 Pedro Alves <palves@redhat.com>
10196 John Baldwin <jhb@FreeBSD.org>
10198 * aarch64-linux-nat.c
10199 (aarch64_linux_nat_target::thread_architecture): Adjust.
10200 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10201 (task_command_1): Likewise.
10202 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10203 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10204 (aix_thread_target::store_registers)
10205 (aix_thread_target::thread_alive): Adjust.
10206 * amd64-fbsd-tdep.c: Include "inferior.h".
10207 (amd64fbsd_get_thread_local_address): Pass down target.
10208 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10209 thread's gdbarch instead of target_gdbarch.
10210 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10211 get_last_target_status.
10212 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10213 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10215 (update_inserted_breakpoint_locations): Skip if inferiors with no
10217 (update_global_location_list): When handling moribund locations,
10218 find representative inferior for location's pspace, and use thread
10219 count of its process_stratum target.
10220 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10221 * bsd-uthread.c (bsd_uthread_target::wait): Use
10222 as_process_stratum_target and adjust thread_change_ptid and
10224 (bsd_uthread_target::update_thread_list): Use
10225 as_process_stratum_target and adjust find_thread_ptid,
10226 thread_change_ptid and add_thread calls.
10227 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10228 find_thread_ptid call.
10229 * corelow.c (add_to_thread_list): Adjust add_thread call.
10230 (core_target_open): Adjust add_thread_silent and thread_count
10232 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10233 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10234 * event-top.c (async_disconnect): Pop targets from all inferiors.
10235 * exec.c (add_target_sections): Push exec target on all inferiors
10236 sharing the program space.
10237 (remove_target_sections): Remove the exec target from all
10238 inferiors sharing the program space.
10239 (exec_on_vfork): New.
10240 * exec.h (exec_on_vfork): Declare.
10241 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10243 (fbsd_nat_target::update_thread_list): Adjust.
10244 (fbsd_nat_target::resume): Adjust.
10245 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10247 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10248 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10249 get_thread_arch_regcache call.
10250 * fork-child.c (gdb_startup_inferior): Pass target down to
10251 startup_inferior and set_executing.
10252 * gdbthread.h (struct process_stratum_target): Forward declare.
10253 (add_thread, add_thread_silent, add_thread_with_info)
10254 (in_thread_list): Add process_stratum_target parameter.
10255 (find_thread_ptid(inferior*, ptid_t)): New overload.
10256 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10258 (all_threads()): Delete overload.
10259 (all_threads, all_non_exited_threads): Add process_stratum_target
10261 (all_threads_safe): Use brace initialization.
10262 (thread_count): Add process_stratum_target parameter.
10263 (set_resumed, set_running, set_stop_requested, set_executing)
10264 (threads_are_executing, finish_thread_state): Add
10265 process_stratum_target parameter.
10266 (switch_to_thread): Use is_current_thread.
10267 * i386-fbsd-tdep.c: Include "inferior.h".
10268 (i386fbsd_get_thread_local_address): Pass down target.
10269 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10270 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10271 have_inferiors check.
10272 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10273 (inf_ptrace_target::attach): Adjust.
10274 * infcall.c (run_inferior_call): Adjust.
10275 * infcmd.c (run_command_1): Pass target to
10276 scoped_finish_thread_state.
10277 (proceed_thread_callback): Skip inferiors with no execution.
10278 (continue_command): Rename 'all_threads' local to avoid hiding
10279 'all_threads' function. Adjust get_last_target_status call.
10280 (prepare_one_step): Adjust set_running call.
10281 (signal_command): Use user_visible_resume_target. Compare thread
10282 pointers instead of inferior_ptid.
10283 (info_program_command): Adjust to pass down target.
10284 (attach_command): Mark target's 'thread_executing' flag.
10285 (stop_current_target_threads_ns): New, factored out from ...
10286 (interrupt_target_1): ... this. Switch inferior before making
10289 (struct all_inferiors_iterator, struct all_inferiors_range)
10290 (struct all_inferiors_safe_range)
10291 (struct all_non_exited_inferiors_range): Filter on
10292 process_stratum_target too. Remove explicit.
10293 * inferior.c (inferior::inferior): Push dummy target on target
10295 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10296 Add process_stratum_target parameter, and pass it down.
10297 (have_live_inferiors): Adjust.
10298 (switch_to_inferior_and_push_target): New.
10299 (add_inferior_command, clone_inferior_command): Handle
10300 "-no-connection" parameter. Use
10301 switch_to_inferior_and_push_target.
10302 (_initialize_inferior): Mention "-no-connection" option in
10303 the help of "add-inferior" and "clone-inferior" commands.
10304 * inferior.h: Include "process-stratum-target.h".
10305 (interrupt_target_1): Use bool.
10306 (struct inferior) <push_target, unpush_target, target_is_pushed,
10307 find_target_beneath, top_target, process_target, target_at,
10309 (discard_all_inferiors): Delete.
10310 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10311 (all_inferiors, all_non_exited_inferiors): Add
10312 process_stratum_target parameter.
10313 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10314 (target_last_proc_target): New global.
10315 (follow_fork_inferior): Push target on new inferior. Pass target
10316 to add_thread_silent. Call exec_on_vfork. Handle target's
10318 (follow_fork): Adjust get_last_target_status call. Also consider
10320 (follow_exec): Push target on new inferior.
10321 (struct execution_control_state) <target>: New field.
10322 (user_visible_resume_target): New.
10323 (do_target_resume): Call target_async.
10324 (resume_1): Set target's threads_executing flag. Consider resume
10326 (commit_resume_all_targets): New.
10327 (proceed): Also consider resume target. Skip threads of inferiors
10328 with no execution. Commit resumtion in all targets.
10329 (start_remote): Pass current inferior to wait_for_inferior.
10330 (infrun_thread_stop_requested): Consider target as well. Pass
10331 thread_info pointer to clear_inline_frame_state instead of ptid.
10332 (infrun_thread_thread_exit): Consider target as well.
10333 (random_pending_event_thread): New inferior parameter. Use it.
10334 (do_target_wait): Rename to ...
10335 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10337 (threads_are_resumed_pending_p, do_target_wait): New.
10338 (prepare_for_detach): Adjust calls.
10339 (wait_for_inferior): New inferior parameter. Handle it. Use
10340 do_target_wait_1 instead of do_target_wait.
10341 (fetch_inferior_event): Adjust. Switch to representative
10342 inferior. Pass target down.
10343 (set_last_target_status): Add process_stratum_target parameter.
10344 Save target in global.
10345 (get_last_target_status): Add process_stratum_target parameter and
10347 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10348 (context_switch): Check inferior_ptid == null_ptid before calling
10350 (get_inferior_stop_soon): Pass down target.
10351 (wait_one): Rename to ...
10352 (poll_one_curr_target): ... this.
10353 (struct wait_one_event): New.
10355 (stop_all_threads): Adjust.
10356 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10358 (switch_back_to_stepped_thread): Also consider target.
10359 (print_stop_event): Update.
10360 (normal_stop): Update. Also consider the resume target.
10361 * infrun.h (wait_for_inferior): Remove declaration.
10362 (user_visible_resume_target): New declaration.
10363 (get_last_target_status, set_last_target_status): New
10364 process_stratum_target parameter.
10365 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10366 process_stratum_target parameter, and use it.
10367 (clear_inline_frame_state (thread_info*)): New.
10368 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10369 process_stratum_target parameter.
10370 (clear_inline_frame_state (thread_info*)): Declare.
10371 * linux-fork.c (delete_checkpoint_command): Pass target down to
10373 (checkpoint_command): Adjust.
10374 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10375 instead of just tweaking inferior_ptid.
10376 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10377 (exit_lwp): Pass target down to find_thread_ptid.
10378 (attach_proc_task_lwp_callback): Pass target down to
10379 add_thread/set_running/set_executing.
10380 (linux_nat_target::attach): Pass target down to
10381 thread_change_ptid.
10382 (get_detach_signal): Pass target down to find_thread_ptid.
10383 Consider last target status's target.
10384 (linux_resume_one_lwp_throw, resume_lwp)
10385 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10386 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10387 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10388 (linux_nat_target::async_wait_fd): New.
10389 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10391 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10392 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10393 * linux-thread-db.c (struct thread_db_info::process_target): New
10395 (add_thread_db_info): Save target.
10396 (get_thread_db_info): New process_stratum_target parameter. Also
10398 (delete_thread_db_info): New process_stratum_target parameter.
10400 (thread_from_lwp): Adjust to pass down target.
10401 (thread_db_notice_clone): Pass down target.
10402 (check_thread_db_callback): Pass down target.
10403 (try_thread_db_load_1): Always push the thread_db target.
10404 (try_thread_db_load, record_thread): Pass target down.
10405 (thread_db_target::detach): Pass target down. Always unpush the
10407 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10408 target down. Always unpush the thread_db target.
10409 (find_new_threads_callback, thread_db_find_new_threads_2)
10410 (thread_db_target::update_thread_list): Pass target down.
10411 (thread_db_target::pid_to_str): Pass current inferior down.
10412 (thread_db_target::get_thread_local_address): Pass target down.
10413 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10415 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10416 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10417 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10418 (procfs_init_inferior): Rename to ...
10419 (procfs_target::procfs_init_inferior): ... this and adjust.
10420 (procfs_target::create_inferior, procfs_notice_thread)
10421 (procfs_do_thread_registers): Adjust.
10422 * ppc-fbsd-tdep.c: Include "inferior.h".
10423 (ppcfbsd_get_thread_local_address): Pass down target.
10424 * proc-service.c (ps_xfer_memory): Switch current inferior and
10425 program space as well.
10426 (get_ps_regcache): Pass target down.
10427 * process-stratum-target.c
10428 (process_stratum_target::thread_address_space)
10429 (process_stratum_target::thread_architecture): Pass target down.
10430 * process-stratum-target.h
10431 (process_stratum_target::threads_executing): New field.
10432 (as_process_stratum_target): New.
10433 * ravenscar-thread.c
10434 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10435 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10437 * record-btrace.c (record_btrace_target::info_record): Adjust.
10438 (record_btrace_target::record_method)
10439 (record_btrace_target::record_is_replaying)
10440 (record_btrace_target::fetch_registers)
10441 (get_thread_current_frame_id, record_btrace_target::resume)
10442 (record_btrace_target::wait, record_btrace_target::stop): Pass
10444 * record-full.c (record_full_wait_1): Switch to event thread.
10446 * regcache.c (regcache::regcache)
10447 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10448 process_stratum_target parameter and handle it.
10449 (current_thread_target): New global.
10450 (get_thread_regcache): Add process_stratum_target parameter and
10451 handle it. Switch inferior before calling target method.
10452 (get_thread_regcache): Pass target down.
10453 (get_thread_regcache_for_ptid): Pass target down.
10454 (registers_changed_ptid): Add process_stratum_target parameter and
10456 (registers_changed_thread, registers_changed): Pass target down.
10457 (test_get_thread_arch_aspace_regcache): New.
10458 (current_regcache_test): Define a couple local test_target_ops
10459 instances and use them for testing.
10460 (readwrite_regcache): Pass process_stratum_target parameter.
10461 (cooked_read_test, cooked_write_test): Pass mock_target down.
10462 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10463 (get_thread_arch_aspace_regcache): Add process_stratum_target
10465 (regcache::target): New method.
10466 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10467 (regcache::registers_changed_ptid): Add process_stratum_target
10469 (regcache::m_target): New field.
10470 (registers_changed_ptid): Add process_stratum_target parameter.
10471 * remote.c (remote_state::supports_vCont_probed): New field.
10472 (remote_target::async_wait_fd): New method.
10473 (remote_unpush_and_throw): Add remote_target parameter.
10474 (get_current_remote_target): Adjust.
10475 (remote_target::remote_add_inferior): Push target.
10476 (remote_target::remote_add_thread)
10477 (remote_target::remote_notice_new_inferior)
10478 (get_remote_thread_info): Pass target down.
10479 (remote_target::update_thread_list): Skip threads of inferiors
10480 bound to other targets. (remote_target::close): Don't discard
10481 inferiors. (remote_target::add_current_inferior_and_thread)
10482 (remote_target::process_initial_stop_replies)
10483 (remote_target::start_remote)
10484 (remote_target::remote_serial_quit_handler): Pass down target.
10485 (remote_target::remote_unpush_target): New remote_target
10486 parameter. Unpush the target from all inferiors.
10487 (remote_target::remote_unpush_and_throw): New remote_target
10488 parameter. Pass it down.
10489 (remote_target::open_1): Check whether the current inferior has
10490 execution instead of checking whether any inferior is live. Pass
10492 (remote_target::remote_detach_1): Pass down target. Use
10493 remote_unpush_target.
10494 (extended_remote_target::attach): Pass down target.
10495 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10496 (remote_target::append_resumption): Pass down target.
10497 (remote_target::append_pending_thread_resumptions)
10498 (remote_target::remote_resume_with_hc, remote_target::resume)
10499 (remote_target::commit_resume): Pass down target.
10500 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10501 (remote_target::interrupt_query)
10502 (remote_target::remove_new_fork_children)
10503 (remote_target::check_pending_events_prevent_wildcard_vcont)
10504 (remote_target::remote_parse_stop_reply)
10505 (remote_target::process_stop_reply): Pass down target.
10506 (first_remote_resumed_thread): New remote_target parameter. Pass
10508 (remote_target::wait_as): Pass down target.
10509 (unpush_and_perror): New remote_target parameter. Pass it down.
10510 (remote_target::readchar, remote_target::remote_serial_write)
10511 (remote_target::getpkt_or_notif_sane_1)
10512 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10514 (remote_target::mourn_inferior): Pass down target. Use
10515 remote_unpush_target.
10516 (remote_target::core_of_thread)
10517 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10518 (remote_target::pid_to_exec_file)
10519 (remote_target::thread_handle_to_thread_info): Pass down target.
10520 (remote_target::async_wait_fd): New.
10521 * riscv-fbsd-tdep.c: Include "inferior.h".
10522 (riscv_fbsd_get_thread_local_address): Pass down target.
10523 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10524 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10525 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10527 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10528 * solib-svr4.c (enable_break): Pass down target.
10529 * spu-multiarch.c (parse_spufs_run): Pass down target.
10530 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10531 * target-delegates.c: Regenerate.
10532 * target.c (g_target_stack): Delete.
10533 (current_top_target): Return the current inferior's top target.
10534 (target_has_execution_1): Refer to the passed-in inferior's top
10536 (target_supports_terminal_ours): Check whether the initial
10537 inferior was already created.
10538 (decref_target): New.
10539 (target_stack::push): Incref/decref the target.
10540 (push_target, push_target, unpush_target): Adjust.
10541 (target_stack::unpush): Defref target.
10542 (target_is_pushed): Return bool. Adjust to refer to the current
10543 inferior's target stack.
10544 (dispose_inferior): Delete, and inline parts ...
10545 (target_preopen): ... here. Only dispose of the current inferior.
10546 (target_detach): Hold strong target reference while detaching.
10548 (target_thread_name): Add assertion.
10549 (target_resume): Pass down target.
10550 (target_ops::beneath, find_target_at): Adjust to refer to the
10551 current inferior's target stack.
10552 (get_dummy_target): New.
10553 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10554 has a thread running.
10555 (initialize_targets): Rename to ...
10556 (_initialize_target): ... this.
10557 * target.h: Include "gdbsupport/refcounted-object.h".
10558 (struct target_ops): Inherit refcounted_object.
10559 (target_ops::shortname, target_ops::longname): Make const.
10560 (target_ops::async_wait_fd): New method.
10561 (decref_target): Declare.
10562 (struct target_ops_ref_policy): New.
10563 (target_ops_ref): New typedef.
10564 (get_dummy_target): Declare function.
10565 (target_is_pushed): Return bool.
10566 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10567 (all_matching_threads_iterator::all_matching_threads_iterator):
10568 Handle filter target.
10569 * thread-iter.h (struct all_matching_threads_iterator, struct
10570 all_matching_threads_range, class all_non_exited_threads_range):
10571 Filter by target too. Remove explicit.
10572 * thread.c (threads_executing): Delete.
10573 (inferior_thread): Pass down current inferior.
10574 (clear_thread_inferior_resources): Pass down thread pointer
10576 (add_thread_silent, add_thread_with_info, add_thread): Add
10577 process_stratum_target parameter. Use it for thread and inferior
10579 (is_current_thread): New.
10580 (thread_info::deletable): Use it.
10581 (find_thread_ptid, thread_count, in_thread_list)
10582 (thread_change_ptid, set_resumed, set_running): New
10583 process_stratum_target parameter. Pass it down.
10584 (set_executing): New process_stratum_target parameter. Pass it
10585 down. Adjust reference to 'threads_executing'.
10586 (threads_are_executing): New process_stratum_target parameter.
10587 Adjust reference to 'threads_executing'.
10588 (set_stop_requested, finish_thread_state): New
10589 process_stratum_target parameter. Pass it down.
10590 (switch_to_thread): Also match inferior.
10591 (switch_to_thread): New process_stratum_target parameter. Pass it
10593 (update_threads_executing): Reimplement.
10594 * top.c (quit_force): Pop targets from all inferior.
10595 (gdb_init): Don't call initialize_targets.
10596 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10598 (windows_add_thread, windows_delete_thread): Adjust.
10599 (get_windows_debug_event): Rename to ...
10600 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10601 * tracefile-tfile.c (tfile_target_open): Pass down target.
10602 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10604 (switch_to_thread): Add process_stratum_target parameter.
10605 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10607 (mi_on_resume): Pass target down.
10608 * nat/fork-inferior.c (startup_inferior): Add
10609 process_stratum_target parameter. Pass it down.
10610 * nat/fork-inferior.h (startup_inferior): Add
10611 process_stratum_target parameter.
10612 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10614 2020-01-10 Pedro Alves <palves@redhat.com>
10616 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10617 directly. Instead find the first thread in the thread list and
10618 use switch_to_thread.
10620 2020-01-10 Pedro Alves <palves@redhat.com>
10622 * remote.c (remote_target::remote_add_inferior): Don't bind a
10623 process to the current inferior if the current inferior is already
10624 bound to a process.
10626 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10627 Pedro Alves <palves@redhat.com>
10629 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10630 If no process is specified, return null_ptid instead of
10632 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10633 TARGET_WAITKIND_SIGNALLED with no pid.
10635 2020-01-10 Pedro Alves <palves@redhat.com>
10637 * remote.c (first_remote_resumed_thread): New.
10638 (remote_target::wait_as): Use it as default event_ptid instead of
10641 2020-01-10 Pedro Alves <palves@redhat.com>
10643 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10645 2020-01-10 Pedro Alves <palves@redhat.com>
10647 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10650 2020-01-10 Pedro Alves <palves@redhat.com>
10652 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10653 ptid to get_last_target_status.
10654 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10655 ptid to get_last_target_status.
10656 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10657 get_last_target_status.
10658 (info_program_command): Don't pass a target_waitstatus to
10659 get_last_target_status.
10660 * infrun.c (init_wait_for_inferior): Use
10661 nullify_last_target_wait_ptid.
10662 (get_last_target_status): Handle nullptr arguments.
10663 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10664 (print_stop_event): Don't pass a ptid to get_last_target_status.
10665 (normal_stop): Don't pass a ptid to get_last_target_status.
10666 * infrun.h (get_last_target_status, set_last_target_status): Move
10667 comments here and update.
10668 (nullify_last_target_wait_ptid): Declare.
10669 * linux-fork.c (fork_load_infrun_state): Remove local extern
10670 declaration of nullify_last_target_wait_ptid.
10671 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10672 to get_last_target_status.
10674 2020-01-10 Pedro Alves <palves@redhat.com>
10676 * gdbthread.h (scoped_restore_current_thread)
10677 <dont_restore, restore, m_dont_restore>: Declare.
10678 * thread.c (thread_alive): Add assertion. Return bool.
10679 (switch_to_thread_if_alive): New.
10680 (prune_threads): Switch inferior/thread.
10681 (print_thread_info_1): Switch thread before calling target methods.
10682 (scoped_restore_current_thread::restore): New, factored out from
10684 (scoped_restore_current_thread::~scoped_restore_current_thread):
10686 (scoped_restore_current_thread::scoped_restore_current_thread):
10688 (thread_apply_all_command, thread_select): Use
10689 switch_to_thread_if_alive.
10690 * infrun.c (proceed, restart_threads, handle_signal_stop)
10691 (switch_back_to_stepped_thread): Switch current thread before
10692 calling target methods.
10694 2020-01-10 Pedro Alves <palves@redhat.com>
10696 * inferior.c (switch_to_inferior_no_thread): New function,
10697 factored out from ...
10698 (inferior_command): ... here.
10699 * inferior.h (switch_to_inferior_no_thread): Declare.
10700 * mi/mi-main.c (run_one_inferior): Use
10701 switch_to_inferior_no_thread.
10703 2020-01-10 Pedro Alves <palves@redhat.com>
10705 * infcmd.c (kill_command): Remove dead code.
10707 2020-01-10 Pedro Alves <palves@redhat.com>
10709 * remote.c (remote_target::mourn_inferior): No longer check
10710 whether the target is running.
10712 2020-01-10 Pedro Alves <palves@redhat.com>
10714 * corelow.c (core_target::has_execution): Change parameter type to
10716 * inferior.c (number_of_live_inferiors): Use
10717 inferior::has_execution instead of target_has_execution_1.
10718 * inferior.h (inferior::has_execution): New.
10719 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10720 inferior::has_execution instead of target_has_execution_1.
10721 * process-stratum-target.c
10722 (process_stratum_target::has_execution): Change parameter type to
10723 inferior pointer. Check the inferior's PID instead of
10725 * process-stratum-target.h
10726 (process_stratum_target::has_execution): Change parameter type to
10728 * record-full.c (record_full_core_target::has_execution): Change
10729 parameter type to inferior pointer.
10730 * target.c (target_has_execution_1): Change parameter type to
10732 (target_has_execution_current): Adjust.
10733 * target.h (target_ops::has_execution): Change parameter type to
10735 (target_has_execution_1): Change parameter type to inferior
10736 pointer. Change return type to bool.
10737 * tracefile.h (tracefile_target::has_execution): Change parameter
10738 type to inferior pointer.
10740 2020-01-10 Pedro Alves <palves@redhat.com>
10742 * exceptions.c (print_flush): Remove current_top_target() check.
10744 2020-01-10 Pedro Alves <palves@redhat.com>
10746 * remote.c (show_remote_exec_file): Show the current inferior's
10747 exec-file instead of the command variable's value.
10749 2020-01-10 Pedro Alves <palves@redhat.com>
10751 * record-full.c (record_full_resume_ptid): New global.
10752 (record_full_target::resume): Set it.
10753 (record_full_wait_1): Use record_full_resume_ptid instead of
10756 2020-01-10 Pedro Alves <palves@redhat.com>
10758 * gdbthread.h (scoped_restore_current_thread)
10759 <dont_restore, restore, m_dont_restore>: Declare.
10760 * thread.c (thread_alive): Add assertion. Return bool.
10761 (switch_to_thread_if_alive): New.
10762 (prune_threads): Switch inferior/thread.
10763 (print_thread_info_1): Switch thread before calling target methods.
10764 (scoped_restore_current_thread::restore): New, factored out from
10766 (scoped_restore_current_thread::~scoped_restore_current_thread):
10768 (scoped_restore_current_thread::scoped_restore_current_thread):
10770 (thread_apply_all_command, thread_select): Use
10771 switch_to_thread_if_alive.
10773 2020-01-10 George Barrett <bob@bob131.so>
10775 * stap-probe.c (stap_modify_semaphore): Don't check for null
10777 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10778 for null semaphores.
10780 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10782 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10783 all source windows, and maintain horizontal scroll status while
10786 2020-01-09 Tom Tromey <tom@tromey.com>
10789 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10790 update_source_window, not print_source_lines.
10792 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10794 * tui/tui.c (tui_enable): Register tui hooks after calling
10797 2020-01-09 Christian Biesinger <cbiesinger@google.com>
10799 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10801 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
10803 * thread.c (print_thread_info_1): Fix indentation.
10805 2020-01-09 Christian Biesinger <cbiesinger@google.com>
10807 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10808 unique_xmalloc_ptr outside the if to always free the demangled name.
10810 2020-01-08 Tom Tromey <tromey@adacore.com>
10812 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10813 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10814 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10815 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10817 (section_offsets): New typedef.
10818 * symtab.c (fixup_section, get_msymbol_address): Update.
10819 * symmisc.c (dump_msymbols): Update.
10820 * symfile.h (relative_addr_info_to_section_offsets)
10821 (symfile_map_offsets_to_segments): Update.
10822 * symfile.c (build_section_addr_info_from_objfile)
10823 (init_objfile_sect_indices): Update.
10824 (struct place_section_arg): Change type of "offsets".
10825 (place_section): Update.
10826 (relative_addr_info_to_section_offsets): Change type of
10827 "section_offsets". Remove "num_sections" parameter.
10828 (default_symfile_offsets, syms_from_objfile_1)
10829 (set_objfile_default_section_offset): Update.
10830 (reread_symbols): No need to preserve section offsets by hand.
10831 (symfile_map_offsets_to_segments): Change type of "offsets".
10832 * stap-probe.c (relocate_address): Update.
10833 * stabsread.h (process_one_symbol): Update.
10834 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10835 (solib_target_relocate_section_addresses): Update.
10836 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10838 * solib-frv.c (frv_relocate_main_executable): Update.
10839 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10840 * solib-aix.c (solib_aix_get_section_offsets): Change return
10842 (solib_aix_solib_create_inferior_hook): Update.
10843 * remote.c (remote_target::get_offsets): Update.
10844 * psymtab.c (find_pc_sect_psymtab): Update.
10845 * psympriv.h (struct partial_symbol) <address, text_low,
10846 text_high>: Update.
10847 * objfiles.h (obj_section_offset): Update.
10848 (struct objfile) <section_offsets>: Change type.
10849 <num_sections>: Remove.
10850 (objfile_relocate): Update.
10851 * objfiles.c (entry_point_address_query): Update
10852 (relocate_one_symbol): Change type of "section_offsets".
10853 (objfile_relocate1, objfile_relocate1): Change type of
10855 (objfile_rebase1): Update.
10856 * mipsread.c (mipscoff_symfile_read): Update.
10857 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10859 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10860 (parse_external, psymtab_to_symtab_1): Update.
10861 * machoread.c (macho_symfile_offsets): Update.
10862 * ia64-tdep.c (ia64_find_unwind_table): Update.
10863 * hppa-tdep.c (read_unwind_info): Update.
10864 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10865 * dwarf2read.c (create_addrmap_from_index)
10866 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10867 (process_psymtab_comp_unit_reader, add_partial_symbol)
10868 (add_partial_subprogram, process_full_comp_unit)
10869 (read_file_scope, read_func_scope, read_lexical_block_scope)
10870 (read_call_site_scope, dwarf2_rnglists_process)
10871 (dwarf2_ranges_process, dwarf2_ranges_read)
10872 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10873 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10875 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10877 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10878 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10879 (process_one_symbol): Change type of "section_offsets".
10880 * ctfread.c (get_objfile_text_range): Update.
10881 * coffread.c (coff_symtab_read, enter_linenos)
10882 (process_coff_symbol): Update.
10883 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10884 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10886 2020-01-08 Tom Tromey <tromey@adacore.com>
10888 * dwarf2read.c (parse_macro_definition): Use std::string.
10889 (parse_macro_definition): Likewise.
10891 2020-01-08 Tom Tromey <tromey@adacore.com>
10893 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10894 (ATTR_ALLOC_CHUNK): Remove.
10896 2020-01-08 Tom Tromey <tromey@adacore.com>
10898 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10900 2020-01-08 Tom Tromey <tromey@adacore.com>
10902 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10903 (dwarf2_compute_name, open_dwo_file): Likewise.
10904 (process_enumeration_scope): Use std::vector.
10905 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10906 (partial_die_info::fixup, dwarf2_start_subfile)
10907 (guess_full_die_structure_name, dwarf2_name): Likewise.
10908 (determine_prefix): Update.
10909 (guess_full_die_structure_name): Make return type const.
10910 (partial_die_full_name): Return unique_xmalloc_ptr.
10911 (DW_FIELD_ALLOC_CHUNK): Remove.
10913 2020-01-07 Tom Tromey <tromey@adacore.com>
10916 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10918 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10920 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10922 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10924 * stack.c (print_frame_info): Move disassemble_next_line code
10925 inside source_print block.
10927 2020-01-06 Eli Zaretskii <eliz@gnu.org>
10929 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10930 gdb/signals.h, as we are now using native signal symbols.
10932 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
10934 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10935 overflow by an early check of content vs threshold.
10936 * tui/tui-source.c (tui_source_window::line_is_displayed):
10939 2020-01-06 Eli Zaretskii <eliz@gnu.org>
10941 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10943 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10945 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10946 export table if no section contains it's RVA.
10948 2020-01-06 Eli Zaretskii <eliz@gnu.org>
10950 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10952 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
10954 * source.c (print_source_lines_base): Set last_line_listed.
10956 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
10958 * tui/tui-disasm.c: Remove trailing spaces.
10960 2020-01-06 Eli Zaretskii <eliz@gnu.org>
10961 Pedro Alves <palves@redhat.com>
10963 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10964 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10965 (windows_gdb_signal_to_target): New function, uses the above
10966 enumeration to convert GDB internal signal codes to equivalent
10968 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10969 * windows-nat.c: Include "gdb_wait.h".
10970 (get_windows_debug_event): Extract the fatal exception from the
10971 exit status and convert to the equivalent Posix signal number.
10972 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10973 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10974 * gdbsupport/gdb_wait.c: New file, implements
10975 windows_status_to_termsig.
10976 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10977 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10979 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10981 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10984 2020-01-05 Luis Machado <luis.machado@linaro.org>
10986 * aarch64-linux-nat.c
10987 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10988 and bfd_mach_aarch64.
10990 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10992 * ui-file.c (stdio_file::can_emit_style_escape)
10993 (tee_file::can_emit_style_escape): Ensure style is used also on
10994 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10996 * main.c (set_gdb_data_directory): Use file style to output the
10997 warning that the given pathname is not a directory.
10998 * top.c (show_history_filename, gdb_safe_append_history)
10999 (show_gdb_datadir): Use file style.
11001 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11003 * solib-target.c (struct lm_info_target):
11004 Change offsets to be a unique_xmalloc_ptr.
11005 (solib_target_relocate_section_addresses): Update.
11007 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11009 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11011 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11013 * MAINTAINERS (Write After Approval): Add myself.
11015 2020-01-02 Luis Machado <luis.machado@linaro.org>
11017 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11018 Cell BE architecture.
11019 * target.h (struct target_ops) <thread_architecture>: Likewise.
11021 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11023 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11025 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11027 * MAINTAINERS (Write After Approval): Add myself.
11029 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11031 * gdbarch.sh: Update copyright year range of generated files.
11033 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11035 Update copyright year range in all GDB files.
11037 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11039 * copyright.py: Convert to Python 3.
11041 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11043 * copyright.py: Adapt after move of gnulib directory from gdb
11044 directory to toplevel directory.
11046 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11048 * copyright.py (main): Exit if run from the wrong directory.
11050 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11052 * top.c (print_gdb_version): Change copyright year to 2020.
11054 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11056 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
11058 For older changes see ChangeLog-2019.
11064 version-control: never