1 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
6 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
8 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
9 Change "nonzero" to "true" in documentation.
11 2019-09-20 Christian Biesinger <cbiesinger@google.com>
13 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
14 (_initialize_darwin_solib): Don't set
15 darwin_so_ops.lookup_lib_global_symbol.
16 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
17 set_gdbarch_iterate_over_objfiles_in_search_order.
18 (elf_lookup_lib_symbol): Rename to...
19 (svr4_iterate_over_objfiles_in_search_order): this, and update
21 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
22 * solib.c (solib_global_lookup): Remove.
23 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
24 (solib_global_lookup): Remove.
25 * symtab.c (lookup_global_or_static_symbol): Remove call to
28 2019-09-20 Joel Brobecker <brobecker@adacore.com>
30 * NEWS: Move entries about default MI version now being
31 version 3, and about the GDB/MI fix for multi-location
32 breakpoints to the "since GDB 8.3" section.
34 2019-09-20 Joel Brobecker <brobecker@adacore.com>
38 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
40 * NEWS: Mention that Cell/B.E. debugging support was removed.
41 * MAINTAINERS: Remove spu target.
43 * config/djgpp/fnchange.lst: Remove entries for removed files.
45 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
46 spu-multiarch.o, and spu-tdep.o.
47 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
48 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
49 spu-multiarch.c, and spu-tdep.c.
50 * spu-linux-nat.c: Remove file.
51 * spu-multiarch.c: Remove file.
52 * spu-tdep.c: Remove file.
53 * spu-tdep.h: Remove file.
54 * solib-spu.c: Remove file.
55 * solib-spu.h: Remove file.
57 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
58 * configure.nat (spu-linux): Remove.
59 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
60 solib-multiarch.o from gdb_target_obs.
63 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
65 (ppc_linux_no_features): Update.
66 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
68 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
69 (tdesc_powerpc_cell64l): Likewise.
70 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
71 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
73 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
74 Do not include "features/rs6000/powerpc-cell32l.c" or
75 "features/rs6000/powerpc-cell64l.c".
76 (ppc_linux_spu_section): Remove.
77 (ppc_linux_core_read_description): Remove Cell/B.E. support.
78 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
79 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
80 (ppc_linux_spe_context_lookup): Remove.
81 (ppc_linux_spe_context_inferior_created): Remove.
82 (ppc_linux_spe_context_solib_loaded): Remove.
83 (ppc_linux_spe_context_solib_unloaded): Remove.
84 (ppc_linux_spe_context): Remove.
85 (struct ppu2spu_cache): Remove.
86 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
87 (struct ppu2spu_data): Remove.
88 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
89 ppu2spu_unwind): Remove.
90 (ppc_linux_init_abi): Remove Cell/B.E. support.
91 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
93 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
94 (rs6000/powerpc-cell64l-expedite): Likewise
95 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
96 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
97 rs6000/powerpc-cell64l.xml.
98 * features/rs6000/powerpc-cell32l.xml: Remove.
99 * features/rs6000/powerpc-cell64l.xml: Likewise.
100 * features/rs6000/powerpc-cell32l.c: Remove generated file.
101 * features/rs6000/powerpc-cell64l.c: Likewise.
102 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
103 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
104 * regformats/reg-spu.dat: Remove.
106 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
107 * corelow.c (struct spuid_list): Remove.
108 (add_to_spuid_list): Remove.
109 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
110 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
111 (remote_protocol_features): Remove associated entries.
112 (_initialize_remote): No longer initialize them.
113 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
114 * linux-nat.c (SPUFS_MAGIC): Remove.
115 (linux_proc_xfer_spu): Remove.
116 (spu_enumerate_spu_ids): Remove.
117 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
118 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
119 (linux_make_corefile_notes): No longer call it.
121 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
122 (cooked_write_test): Likewise.
124 2019-09-20 Tom Tromey <tom@tromey.com>
126 * NEWS: Mention case-sensitivity of TUI commands.
127 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
128 (tui_set_win_height_command, parse_scrolling_args): Likewise.
129 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
131 2019-09-20 Tom Tromey <tom@tromey.com>
133 * tui/tui-source.c (tui_source_window::set_contents): Use
135 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
138 2019-09-20 Tom Tromey <tom@tromey.com>
140 * tui/tui-data.c: Remove separator comments.
141 * tui/tui-layout.c: Remove separator comments.
142 * tui/tui-win.c: Remove separator comments.
143 * tui/tui-wingeneral.c: Remove separator comments.
145 2019-09-20 Tom Tromey <tom@tromey.com>
147 * tui/tui.h (strcat_to_buf): Don't declare.
148 * tui/tui.c (strcat_to_buf): Remove.
150 2019-09-20 Tom Tromey <tom@tromey.com>
152 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
154 * tui/tui-source.c (tui_source_window::set_contents)
155 (tui_source_window::location_matches_p)
156 (tui_source_window::maybe_update): Update.
158 2019-09-20 Tom Tromey <tom@tromey.com>
160 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
162 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
164 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
165 (tui_data_window::line_from_reg_element_no)
166 (tui_data_window::first_reg_element_no_inline)
167 (tui_data_window::show_registers)
168 (tui_data_window::show_register_group)
169 (tui_data_window::display_registers_from)
170 (tui_data_window::display_registers_from_line)
171 (tui_data_window::first_data_item_displayed)
172 (tui_data_window::delete_data_content_windows)
173 (tui_data_window::erase_data_content)
174 (tui_data_window::do_scroll_vertical)
175 (tui_data_window::refresh_window)
176 (tui_data_window::check_register_values): Update.
178 2019-09-20 Tom Tromey <tom@tromey.com>
180 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
181 (struct tui_locator_window) <full_name, proc_name>: Now
183 * tui/tui-stack.c (tui_locator_window::make_status_line)
184 (tui_locator_window::set_locator_fullname)
185 (tui_locator_window::set_locator_info): Update.
186 * tui/tui-source.c (tui_source_window::set_contents)
187 (tui_source_window::showing_source_p): Update.
189 2019-09-20 Tom Tromey <tom@tromey.com>
191 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
192 Don't call tui_locator_win_info_ptr.
194 2019-09-20 Tom Tromey <tom@tromey.com>
196 * tui/tui-win.c (tui_resize_all): Don't call refresh.
198 2019-09-20 Tom Tromey <tom@tromey.com>
200 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
202 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
203 * tui/tui-layout.c (show_source_disasm_command, show_data)
204 (show_source_or_disasm_and_command): Use 1 as height for locator.
206 2019-09-20 Tom Tromey <tom@tromey.com>
208 * tui/tui.c (tui_enable): Update.
209 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
211 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
213 * tui/tui-data.c (win_resized): Now bool.
214 (tui_win_resized): Return bool.
215 (tui_set_win_resized_to): Accept a bool.
217 2019-09-20 Tom Tromey <tom@tromey.com>
219 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
220 Change type of "refresh_values_only".
221 * tui/tui-regs.c (tui_data_window::show_register_group): Change
222 type of "refresh_values_only".
224 2019-09-20 Tom Tromey <tom@tromey.com>
226 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
228 (tui_disassemble): Add "pos" parameter.
229 (tui_disasm_window::set_contents): Simplify.
231 2019-09-20 Tom Tromey <tom@tromey.com>
233 * tui/tui-winsource.h (struct tui_source_window_base)
234 <show_source_content>: Now private.
235 * tui/tui-winsource.c
236 (tui_source_window_base::show_source_content): Don't handle empty
239 2019-09-20 Tom Tromey <tom@tromey.com>
241 * tui/tui-layout.c (show_source_disasm_command)
242 (show_source_or_disasm_and_command): Don't call
245 2019-09-20 Tom Tromey <tom@tromey.com>
247 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
249 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
250 from tui_make_status_line.
251 (tui_locator_window::rerender): Update.
253 2019-09-20 Tom Tromey <tom@tromey.com>
255 * tui/tui-stack.c (tui_make_status_line): Return std::string.
256 (tui_locator_window::rerender): Update.
258 2019-09-20 Tom Tromey <tom@tromey.com>
260 * tui/tui-winsource.h (struct tui_source_window_base)
261 <~tui_source_window_base>: Don't declare.
263 * tui/tui-winsource.c (~tui_source_window_base): Remove.
264 * tui/tui-source.h (struct tui_source_window) <fullname>: New
266 * tui/tui-source.c (tui_source_window::set_contents): Update.
267 (tui_source_window::location_matches_p)
268 (tui_source_window::maybe_update): Update.
270 2019-09-20 Tom Tromey <tom@tromey.com>
272 * tui/tui-winsource.h (~tui_source_element): Remove.
273 (tui_source_element): Update.
274 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
275 * tui/tui-winsource.c (tui_show_source_line): Update.
276 * tui/tui-source.c (tui_source_window::set_contents): Update.
277 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
279 2019-09-20 Tom Tromey <tom@tromey.com>
281 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
283 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
284 tui_clear_source_windows_detail.
285 * tui/tui-winsource.h (struct tui_source_window_base)
286 <clear_detail>: Don't declare.
287 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
289 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
291 2019-09-20 Tom Tromey <tromey@adacore.com>
294 * block.c (contained_in): Fix final return value.
296 2019-09-20 Alan Modra <amodra@gmail.com>
298 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
299 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
300 (read_indirect_string_from_dwz): Use bfd accessor.
301 * dwarf2read.h (struct dwz_file <filename>): Likewise.
302 * machoread.c (macho_symfile_read_all_oso): Likewise.
303 * solib.c (solib_bfd_open): Likewise.
305 2019-09-19 Christian Biesinger <cbiesinger@google.com>
307 * eval.c: Move declaration of overload_resolution to...
310 2019-09-19 Christian Biesinger <cbiesinger@google.com>
312 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
313 * arm-linux-tdep.c: Likewise.
314 * arm-nbsd-nat.c: Likewise.
315 * arm-tdep.h: Declare arm_apcs_32.
316 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
318 2019-09-19 Christian Biesinger <cbiesinger@google.com>
320 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
321 * dwarf2read.h: Declare dwarf_always_disassemble.
323 2019-09-19 Tom de Vries <tdevries@suse.de>
326 * source-cache.c (source_cache::ensure): Catch exception thrown during
327 construction of the highlighter.
329 2019-09-18 Alan Modra <amodra@gmail.com>
331 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
332 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
333 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
334 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
335 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
336 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
337 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
338 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
339 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
340 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
341 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
342 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
343 * solib-spu.c, * solib-svr4.c, * solib-target.c,
344 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
345 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
346 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
347 * mi/mi-interp.c: Update throughout for bfd section macro and
349 * gcore (gcore_create_callback): Use bfd_set_section_lma.
350 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
352 2019-09-18 Tom Tromey <tom@tromey.com>
355 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
357 (tui_enable): Do not call rl_initialize.
359 2019-09-18 Christian Groessler <chris@groessler.org>
361 * alpha-linux-nat.c: Include gdbarch.h.
363 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
365 * ui-file.c: Include cli/cli-style.h.
366 (term_cli_styling): Remove cli_styling declaration.
368 2019-09-18 Alan Modra <amodra@gmail.com>
370 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
371 to bfd_asymbol_section.
373 2019-09-18 Alan Modra <amodra@gmail.com>
375 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
376 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
377 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
379 2019-09-18 Alan Modra <amodra@gmail.com>
381 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
382 * spu-linux-nat.c (spu_bfd_open): Likewise.
384 2019-09-18 Christian Biesinger <cbiesinger@google.com>
386 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
387 to bool to match definition in dwarf2read.c.
389 2019-09-17 Christian Biesinger <cbiesinger@google.com>
391 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
392 (print_signatures): Likewise.
393 (trust_pad_over_xvs): Likewise.
394 * arch/aarch64-insn.c (aarch64_debug): Likewise.
395 * arch/aarch64-insn.h (aarch64_debug): Likewise.
396 * arm-linux-nat.c (arm_apcs_32): Likewise.
397 * arm-linux-tdep.c (arm_apcs_32): Likewise.
398 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
399 * arm-tdep.c (arm_debug): Likewise.
400 (arm_apcs_32): Likewise.
401 * auto-load.c (debug_auto_load): Likewise.
402 (auto_load_gdb_scripts): Likewise.
403 (global_auto_load): Likewise.
404 (auto_load_local_gdbinit): Likewise.
405 (auto_load_local_gdbinit_loaded): Likewise.
406 * auto-load.h (global_auto_load): Likewise.
407 (auto_load_local_gdbinit): Likewise.
408 (auto_load_local_gdbinit_loaded): Likewise.
409 * breakpoint.c (disconnected_dprintf): Likewise.
410 (breakpoint_proceeded): Likewise.
411 (automatic_hardware_breakpoints): Likewise.
412 (always_inserted_mode): Likewise.
413 (target_exact_watchpoints): Likewise.
414 (_initialize_breakpoint): Update.
415 * breakpoint.h (target_exact_watchpoints): Change to bool.
416 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
417 * cli/cli-cmds.c (trace_commands): Likewise.
418 * cli/cli-cmds.h (trace_commands): Likewise.
419 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
421 * cli/cli-logging.c (logging_overwrite): Change to bool.
422 (logging_redirect): Likewise.
423 (debug_redirect): Likewise.
424 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
425 (struct boolean_option_def) <get_var_address_cb_>: Change return type
427 <boolean_option_def>: Update.
428 (struct flag_option_def): Change default type of Context to bool
430 <flag_option_def>: Change return type of var_address_cb_ to bool*.
431 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
432 (get_setshow_command_value_string): Likewise.
433 * cli/cli-style.c (cli_styling): Change to bool.
434 (source_styling): Likewise.
435 * cli/cli-style.h (source_styling): Likewise.
436 (cli_styling): Likewise.
437 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
439 * command.h (var_types): Update comment.
440 (add_setshow_boolean_cmd): Change int* var argument to bool*.
441 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
443 (debug_compile_cplus_scopes): Likewise.
444 * compile/compile-internal.h (compile_debug): Likewise.
445 * compile/compile.c (compile_debug): Likewise.
446 (struct compile_options) <raw>: Likewise.
447 * cp-support.c (catch_demangler_crashes): Likewise.
448 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
449 (usr_cmd_cris_dwarf2_cfi): Likewise.
450 * csky-tdep.c (csky_debug): Likewise.
451 * darwin-nat.c (enable_mach_exceptions): Likewise.
452 * dcache.c (dcache_enabled_p): Likewise.
453 * defs.h (info_verbose): Likewise.
454 * demangle.c (demangle): Likewise.
455 (asm_demangle): Likewise.
456 * dwarf-index-cache.c (debug_index_cache): Likewise.
457 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
458 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
459 * dwarf2read.c (check_physname): Likewise.
460 (use_deprecated_index_sections): Likewise.
461 (dwarf_always_disassemble): Likewise.
462 * eval.c (overload_resolution): Likewise.
463 * event-top.c (set_editing_cmd_var): Likewise.
464 (exec_done_display_p): Likewise.
465 * event-top.h (set_editing_cmd_var): Likewise.
466 (exec_done_display_p): Likewise.
467 * exec.c (write_files): Likewise.
468 * fbsd-nat.c (debug_fbsd_lwp): Likewise
469 (debug_fbsd_nat): Likewise.
470 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
472 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
473 <backtrace_past_entry> Likewise.
474 * gdb-demangle.h (demangle): Likewise.
475 (asm_demangle): Likewise.
476 * gdb_bfd.c (bfd_sharing): Likewise.
477 * gdbcore.h (write_files): Likewise.
478 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
479 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
480 * gdbthread.h (print_thread_events): Likewise.
481 * gdbtypes.c (opaque_type_resolution): Likewise.
482 (strict_type_checking): Likewise.
483 * gnu-nat.c (gnu_debug_flag): Likewise.
484 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
485 * guile/scm-param.c (pascm_variable): Add boolval.
486 (add_setshow_generic): Update.
487 (pascm_param_value): Update.
488 (pascm_set_param_value_x): Update.
489 * hppa-tdep.c (hppa_debug): Change to bool..
490 * infcall.c (may_call_functions_p): Likewise.
491 (coerce_float_to_double_p): Likewise.
492 (unwind_on_signal_p): Likewise.
493 (unwind_on_terminating_exception_p): Likewise.
494 * infcmd.c (startup_with_shell): Likewise.
495 * inferior.c (print_inferior_events): Likewise.
496 * inferior.h (startup_with_shell): Likewise.
497 (print_inferior_events): Likewise.
498 * infrun.c (step_stop_if_no_debug): Likewise.
499 (detach_fork): Likewise.
500 (debug_displaced): Likewise.
501 (disable_randomization): Likewise.
502 (non_stop): Likewise.
503 (non_stop_1): Likewise.
504 (observer_mode): Likewise.
505 (observer_mode_1): Likewise.
506 (set_observer_mode): Update.
507 (sched_multi): Change to bool.
508 * infrun.h (debug_displaced): Likewise.
509 (sched_multi): Likewise.
510 (step_stop_if_no_debug): Likewise.
511 (non_stop): Likewise.
512 (disable_randomization): Likewise.
513 * linux-tdep.c (use_coredump_filter): Likewise.
514 (dump_excluded_mappings): Likewise.
515 * linux-thread-db.c (auto_load_thread_db): Likewise.
516 (check_thread_db_on_load): Likewise.
517 * main.c (captured_main_1): Update.
518 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
519 xx2_opt, boolean_opt>: Change to bool.
520 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
521 * maint.c (maintenance_profile_p): Likewise.
522 (per_command_time): Likewise.
523 (per_command_space): Likewise.
524 (per_command_symtab): Likewise.
525 * memattr.c (inaccessible_by_default): Likewise.
526 * mi/mi-main.c (mi_async): Likewise.
527 (mi_async_1): Likewise.
528 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
529 * nat/fork-inferior.h (startup_with_shell): Likewise.
530 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
531 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
532 * nios2-tdep.c (nios2_debug): Likewise.
533 * or1k-tdep.c (or1k_debug): Likewise.
534 * parse.c (parser_debug): Likewise.
535 * parser-defs.h (parser_debug): Likewise.
536 * printcmd.c (print_symbol_filename): Likewise.
537 * proc-api.c (procfs_trace): Likewise.
538 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
539 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
540 (set_parameter_value): Update.
541 (add_setshow_generic): Update.
542 * python/py-value.c (copy_py_bool_obj): Change argument from int*
544 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
546 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
547 * record-btrace.c (record_btrace_target::store_registers): Update.
548 * record-full.c (record_full_memory_query): Change to bool.
549 (record_full_stop_at_limit): Likewise.
550 * record-full.h (record_full_memory_query): Likewise.
551 * remote-notif.c (notif_debug): Likewise.
552 * remote-notif.h (notif_debug): Likewise.
553 * remote.c (use_range_stepping): Likewise.
554 (interrupt_on_connect): Likewise.
555 (remote_break): Likewise.
556 * ser-tcp.c (tcp_auto_retry): Likewise.
557 * ser-unix.c (serial_hwflow): Likewise.
558 * skip.c (debug_skip): Likewise.
559 * solib-aix.c (solib_aix_debug): Likewise.
560 * spu-tdep.c (spu_stop_on_load_p): Likewise.
561 (spu_auto_flush_cache_p): Likewise.
562 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
564 (struct info_print_options) <quiet>: Likewise.
565 * symfile-debug.c (debug_symfile): Likewise.
566 * symfile.c (auto_solib_add): Likewise.
567 (separate_debug_file_debug): Likewise.
568 * symfile.h (auto_solib_add): Likewise.
569 (separate_debug_file_debug): Likewise.
570 * symtab.c (basenames_may_differ): Likewise.
571 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
572 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
573 (struct info_types_options) <quiet>: Likewise.
574 * symtab.h (demangle): Likewise.
575 (basenames_may_differ): Likewise.
576 * target-dcache.c (stack_cache_enabled_1): Likewise.
577 (code_cache_enabled_1): Likewise.
578 * target.c (trust_readonly): Likewise.
579 (may_write_registers): Likewise.
580 (may_write_memory): Likewise.
581 (may_insert_breakpoints): Likewise.
582 (may_insert_tracepoints): Likewise.
583 (may_insert_fast_tracepoints): Likewise.
584 (may_stop): Likewise.
585 (auto_connect_native_target): Likewise.
586 (target_stop_and_wait): Update.
587 (target_async_permitted): Change to bool.
588 (target_async_permitted_1): Likewise.
589 (may_write_registers_1): Likewise.
590 (may_write_memory_1): Likewise.
591 (may_insert_breakpoints_1): Likewise.
592 (may_insert_tracepoints_1): Likewise.
593 (may_insert_fast_tracepoints_1): Likewise.
594 (may_stop_1): Likewise.
595 * target.h (target_async_permitted): Likewise.
596 (may_write_registers): Likewise.
597 (may_write_memory): Likewise.
598 (may_insert_breakpoints): Likewise.
599 (may_insert_tracepoints): Likewise.
600 (may_insert_fast_tracepoints): Likewise.
601 (may_stop): Likewise.
602 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
603 (make_thread_apply_all_options_def_group): Change argument from int*
605 (thread_apply_all_command): Update.
606 (print_thread_events): Change to bool.
607 * top.c (confirm): Likewise.
608 (command_editing_p): Likewise.
609 (history_expansion_p): Likewise.
610 (write_history_p): Likewise.
611 (info_verbose): Likewise.
612 * top.h (confirm): Likewise.
613 (history_expansion_p): Likewise.
614 * tracepoint.c (disconnected_tracing): Likewise.
615 (circular_trace_buffer): Likewise.
616 * typeprint.c (print_methods): Likewise.
617 (print_typedefs): Likewise.
618 * utils.c (debug_timestamp): Likewise.
619 (sevenbit_strings): Likewise.
620 (pagination_enabled): Likewise.
621 * utils.h (sevenbit_strings): Likewise.
622 (pagination_enabled): Likewise.
623 * valops.c (overload_resolution): Likewise.
624 * valprint.h (struct value_print_options) <prettyformat_arrays,
625 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
626 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
627 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
629 * windows-nat.c (new_console): Likewise.
630 (cygwin_exceptions): Likewise.
631 (new_group): Likewise.
632 (debug_exec): Likewise.
633 (debug_events): Likewise.
634 (debug_memory): Likewise.
635 (debug_exceptions): Likewise.
636 (useshell): Likewise.
637 * windows-tdep.c (maint_display_all_tib): Likewise.
638 * xml-support.c (debug_xml): Likewise.
640 2019-09-17 Mike Gulick <mgulick@mathworks.com>
642 * source.c (prepare_path_for_appending): New function.
643 (openp): Make use of new function.
644 (find_and_open_source): Search for the compilation directory and
645 source file as a relative path beneath the directory search path.
647 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
649 * source-cache.c (source_cache::get_line_charpos): Catch
650 exceptions and return false, this matches the behaviour documented
653 2019-09-17 Joel Brobecker <brobecker@adacore.com>
655 * ada-tasks.c (info_task): Remove quoting of the task's name.
657 2019-09-16 Christian Biesinger <cbiesinger@google.com>
659 * symfile.c (auto_solib_add): Replace comment with a reference
662 2019-09-14 Christian Biesinger <cbiesinger@google.com>
664 * NEWS: Mention that gdb can now be compiled with Python 3
667 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
669 * maint.c (maint_print_section_data::maint_print_section_data):
670 Force use of 'float log10 (float)' by casting the argument to
673 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
675 * maint.c: Add 'cmath' include.
676 (struct maint_print_section_data): New structure.
677 (print_section_index): New function.
678 (print_bfd_section_info): Add header comment, small whitespace
679 cleanup, and update to call new print_section_index function.
680 (print_objfile_section_info): Likewise.
681 (maint_obj_section_from_bfd_section): New function.
682 (print_bfd_section_info_maybe_relocated): New function.
683 (maintenance_info_sections): Add header comment, always use
684 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
686 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
688 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
689 inner scope, add check that the objfile has psymtabs before
690 checking psymtabs_addrmap.
691 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
693 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
695 * NEWS: Announce that Ada task names are now shown at more places,
696 and between quotes (except in info task output).
697 * gdb/ada-tasks.c (task_to_str): New function.
698 (display_current_task_id): Call task_to_str.
699 (task_command_1): Likewise.
700 (print_ada_task_info): In non-mi mode, Properly align headers and data
701 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
703 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
705 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
706 prstatus.pr_lwp.pr_info instead of making it up.
708 2019-09-11 Christian Biesinger <cbiesinger@google.com>
710 * auto-load.c (auto_load_expand_dir_vars): Update.
711 * defs.h (gdb_datadir): Change to std::string.
712 (python_libdir): Likewise.
713 (relocate_gdb_directory): Change return type to std::string.
714 * guile/guile.c (gdbscm_data_directory): Update.
715 (initialize_scheme_side): Update.
716 * jit.c (jit_reader_dir): Change to std::string.
717 (jit_reader_load_command): Update.
718 * main.c (gdb_datadir): Change to std::string.
719 (python_libdir): Likewise.
720 (set_gdb_data_directory): Update.
721 (relocate_path): Change to return std::string.
722 (relocate_gdb_directory): Change to return std::string.
723 (relocate_gdbinit_path_maybe_in_datadir): Update.
724 (captured_main_1): Update.
725 * python/python.c (do_start_initialization): Update.
726 * top.c (show_gdb_datadir): Update.
727 * xml-syscall.c (xml_init_syscalls_info): Update.
728 (init_syscalls_info): Update.
730 2019-09-11 Christian Biesinger <cbiesinger@google.com>
732 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
733 out of get_init_files.
734 (get_init_files): Update.
736 2019-09-11 Christian Biesinger <cbiesinger@google.com>
738 * main.c (get_init_files): Change to use std::string.
739 (captured_main_1): Update.
740 (print_gdb_help): Update.
742 2019-09-11 Ali Tamur <tamur@google.com>
744 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
747 2019-09-11 Christian Biesinger <cbiesinger@google.com>
749 * dbxread.c (read_dbx_symtab): Update.
750 * dwarf2read.c (load_partial_dies): Update.
751 * mdebugread.c (parse_partial_symbols): Update.
752 (handle_psymbol_enumerators): Update.
753 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
754 * psymtab.c (add_psymbol_to_bcache): Likewise.
755 (add_psymbol_to_list): Likewise.
756 * symtab.c (symbol_set_names): Likewise.
757 * symtab.h (symbol_set_names): Likewise.
758 * xcoffread.c (scan_xcoff_symtab): Update.
760 2019-09-11 Tom Tromey <tom@tromey.com>
762 * symfile-mem.c (symbol_file_add_from_memory): Use
764 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
765 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
767 2019-09-10 Tom Tromey <tromey@adacore.com>
769 * dwarf-index-write.c (write_psymbols): Extend error message.
770 (debug_names::insert): Add Ada code.
771 (debug_names::write_psymbols): Remove Ada check.
772 (debug_names) <m_string_obstack>: New member.
773 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
774 (gdb_index_symbol_name_matcher::matches): Remove.
775 (mapped_index_base::find_name_components_bounds): Add "lang"
777 (mapped_index_base::build_name_components): Also split names
778 according to Ada syntax.
779 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
780 type of "match_callback".
781 (check_match, check_find_bounds_finds)
782 (dw2_expand_symtabs_matching): Update.
783 (dw2_debug_names_iterator): Add new constructor.
784 (dw2_debug_names_map_matching_symbols): New function.
785 (dw2_debug_names_expand_symtabs_matching): Update.
786 (dwarf2_debug_names_functions): Use
787 dw2_debug_names_map_matching_symbols.
789 2019-09-10 Tom Tromey <tromey@adacore.com>
791 * dwarf2read.c (dw2_get_file_names_reader): Add the
792 CU's file name to the results.
794 2019-09-10 Tom Tromey <tromey@adacore.com>
796 * ada-lang.c (add_nonlocal_symbols): Combine calls to
797 map_matching_symbols. Update.
798 * dwarf2read.c (dw2_map_matching_symbols): Update.
799 * psymtab.c (match_partial_symbol): Change type; update.
800 (psym_map_matching_symbols): Likewise.
801 * symfile-debug.c (debug_qf_map_matching_symbols): Change
803 * symfile.h (struct quick_symbol_functions)
804 <map_matching_symbols>: Change "name" to be a lookup_name_info.
807 2019-09-10 Tom Tromey <tromey@adacore.com>
809 * psymtab.c (map_block): Remove.
810 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
811 * symtab.c (iterate_over_symbols_terminated): New function.
812 * symtab.c (iterate_over_symbols_terminated): Declare.
814 2019-09-10 Tom Tromey <tromey@adacore.com>
816 * ada-lang.c (ada_iterate_over_symbols): Return bool.
817 * language.h (struct language_defn) <la_iterate_over_symbols>:
819 * symtab.c (iterate_over_symbols): Return bool.
820 * symtab.h (iterate_over_symbols): Return bool.
822 2019-09-10 Tom Tromey <tromey@adacore.com>
824 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
825 (add_nonlocal_symbols): Update.
826 * dwarf2read.c (dw2_map_matching_symbols): Change type.
827 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
828 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
829 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
830 Change type of "callback". Remove "data".
833 2019-09-09 Ali Tamur <tamur@google.com>
835 * dwarf2read.c (comp_unit_head): Update comment.
836 (dwarf2_dwo_name): New function declaration.
837 (dwarf_unit_type_name): New function declaration.
838 (read_comp_unit_head): Add support for new compilation units,
839 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
840 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
841 (currently named as "signature") in their header. Also clarify error
843 (lookup_dwo_id): New function. Returns the dwo id of the given
845 (lookup_dwo_unit): Use the new lookup_dwo_id function.
846 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
848 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
849 (dwarf2_dwo_name): Get the dwo name if present.
850 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
853 2019-09-09 Tom Tromey <tom@tromey.com>
855 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
857 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
859 * python/python.c (do_start_initialization): Make progname_copy static,
860 to avoid a leak report.
862 2019-09-08 Tom Tromey <tom@tromey.com>
864 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
866 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
868 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
869 Change type to gdb::optional<block_enum>.
870 (dw2_symtab_iter_init): Change block_index parameter type
871 to gdb::optional<block_enum>.
872 (dw2_lookup_symbol): Change block_index parameter
874 (dw2_debug_names_lookup_symbol): Likewise.
875 * psymtab.c (psym_lookup_symbol): Likewise.
876 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
877 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
880 2019-09-06 Christian Biesinger <cbiesinger@google.com>
882 * defs.h (relocate_gdb_directory): Change int to bool in
883 signature and rename flag to relocatable.
884 * main.c (relocate_path): Likewise.
885 (relocate_gdb_directory): Likewise.
887 2019-09-06 Alan Modra <amodra@gmail.com>
889 * coffread.c (coff_symfile_read): Constify filename variable.
890 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
891 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
892 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
893 * solib.c (reload_shared_libraries_1): Likewise.
894 * symfile.c (reread_symbols): Likewise.
895 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
896 * solib-darwin.c (darwin_bfd_open): Likewise.
897 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
899 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
901 * psymtab.c (print_partial_symbols): Handle missing domain_enum
902 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
904 2019-09-03 Tom Tromey <tromey@adacore.com>
906 * ada-valprint.c (ada_val_print_num): Don't recurse for range
908 (has_negatives): Unbias a range type bound.
909 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
910 * gdbtypes.c (operator==): Handle new field.
911 (create_range_type): Add "bias" parameter.
912 (create_static_range_type, resolve_dynamic_range): Update.
913 * gdbtypes.h (struct range_bounds) <bias>: New member.
914 (create_range_type): Add bias parameter.
915 * printcmd.c (print_scalar_formatted): Unbias range types.
916 * value.c (unpack_long): Unbias range types.
917 (pack_long): Bias range types.
919 2019-09-02 Alan Hayward <alan.hayward@arm.com>
921 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
924 2019-09-02 Alan Hayward <alan.hayward@arm.com>
926 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
927 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
928 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
929 (compile_probe_arg): Likewise.
930 * probe.h (get_argument_count): Likewise.
931 * solib-svr4.c (solib_event_probe_action): Likewise.
932 * stap-probe.c (stap_probe::get_argument_count): Likewise.
934 2019-09-02 Alan Hayward <alan.hayward@arm.com>
936 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
938 (svr4_create_solib_event_breakpoints): ...from here.
940 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
942 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
943 suffix from warning message.
945 2019-08-30 Tom Tromey <tom@tromey.com>
947 * tui/tui-winsource.h (struct tui_source_window_base)
948 <refresh_all>: Don't declare.
949 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
951 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
952 tui_show_locator_content.
953 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
955 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
956 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
959 2019-08-30 Tom Tromey <tom@tromey.com>
961 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
963 2019-08-30 Tom Tromey <tom@tromey.com>
965 * tui/tui-stack.c (_initialize_tui_stack): Move later.
966 Remove unnecessary forward declarations.
968 2019-08-30 Tom Tromey <tom@tromey.com>
970 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
972 (tui_update_locator_fullname, tui_show_frame_info): Don't call
973 tui_show_locator_content.
975 2019-08-30 Tom Tromey <tom@tromey.com>
977 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
978 (tui_locator_window::rerender): Rewrite using body of previous
979 tui_show_locator_content.
981 2019-08-30 Tom Tromey <tom@tromey.com>
983 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
984 set_locator_fullname>: New methods.
985 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
986 Rename from tui_set_locator_fullname.
987 (tui_locator_window::set_locator_info): Rename from
988 tui_set_locator_info. Return bool.
989 (tui_update_locator_fullname, tui_show_frame_info): Update.
991 2019-08-30 Tom Tromey <tom@tromey.com>
993 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
995 2019-08-30 Tom Tromey <tom@tromey.com>
997 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
1000 2019-08-30 Tom Tromey <tom@tromey.com>
1002 * tui/tui-wingeneral.c (box_win): Assume win_info and
1003 win_info->handle cannot be NULL.
1005 2019-08-30 Tom Tromey <tom@tromey.com>
1007 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
1008 refresh_window>: Declare.
1009 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1011 (tui_data_item_window::rerender): Rename from
1012 tui_display_register.
1013 (tui_data_item_window::refresh_window): New method.
1014 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1017 2019-08-30 Tom Tromey <tom@tromey.com>
1019 * tui/tui-regs.h (struct tui_data_window) <regs_content,
1020 regs_column_count, current_group>: Move later. Now private.
1021 <get_current_group>: New method.
1022 * tui/tui-regs.c (tui_reg_command): Update.
1023 * tui/tui-layout.c (tui_set_layout): Update.
1025 2019-08-30 Tom Tromey <tom@tromey.com>
1027 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1028 (tui_data_window::rerender): Don't call
1029 check_and_display_highlight_if_needed.
1030 (tui_data_window::refresh_all): Remove call to
1033 2019-08-30 Tom Tromey <tom@tromey.com>
1035 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1036 (tui_data_window::display_registers_from)
1037 (tui_data_window::display_reg_element_at_line)
1038 (tui_data_window::display_registers_from_line): Remove checks of
1041 2019-08-30 Tom Tromey <tom@tromey.com>
1043 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1045 * tui/tui-regs.c (tui_data_window::show_registers): Call
1047 (tui_data_window::rerender): Rename from display_all_data.
1048 (tui_data_window::rerender): Remove old implementation.
1050 2019-08-30 Tom Tromey <tom@tromey.com>
1052 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1054 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1056 2019-08-29 Bernhard Wodok <barto@gmx.net>
1057 Sergio Durigan Junior <sergiodj@redhat.com>
1060 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1062 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1064 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1065 when searching for types.
1067 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1069 * f-lang.c (f_language_defn): Use f_print_typedef.
1070 * f-lang.h (f_print_typedef): Declare.
1071 * f-typeprint.c (f_print_typedef): Define.
1073 2019-08-27 Christian Biesinger <cbiesinger@google.com>
1075 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1077 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
1079 * cli/cli-utils.c (info_print_options_defs): Delete.
1080 (make_info_print_options_def_group): Delete.
1081 (extract_info_print_options): Delete.
1082 (info_print_command_completer): Delete.
1083 (info_print_args_help): Add extra parameter, and optionally
1084 include text about -n flag.
1085 * cli/cli-utils.h (struct info_print_options): Delete.
1086 (extract_info_print_options): Delete declaration.
1087 (info_print_command_completer): Delete declaration.
1088 (info_print_args_help): Add extra parameter, extend header
1090 * python/python.c (gdbpy_rbreak): Pass additional parameter to
1092 * stack.c (struct info_print_options): New type.
1093 (info_print_options_defs): New file scoped variable.
1094 (make_info_print_options_def_group): New static function.
1095 (info_print_command_completer): New static function.
1096 (info_locals_command): Update to use new local functions.
1097 (info_args_command): Likewise.
1098 (_initialize_stack): Add extra parameter to calls to
1099 info_print_args_help.
1100 * symtab.c (search_symbols): Add extra parameter, use this to
1101 possibly excluse non-debug symbols.
1102 (symtab_symbol_info): Add extra parameter, which is passed on to
1104 (struct info_print_options): New type.
1105 (info_print_options_defs): New file scoped variable.
1106 (make_info_print_options_def_group): New static function.
1107 (info_print_command_completer): New static function.
1108 (info_variables_command): Update to use local functions, and pass
1109 extra parameter through to symtab_symbol_info.
1110 (info_functions_command): Likewise.
1111 (info_types_command): Pass additional argument through to
1113 (rbreak_command): Pass extra argument to search_symbols.
1114 (_initialize_symtab): Add extra arguments for calls to
1115 info_print_args_help, and update help text for 'info variables',
1116 'whereis', and 'info functions' commands.
1117 * symtab.h (search_symbols): Add extra argument to declaration.
1118 * NEWS: Mention new flags.
1120 2019-08-26 Christian Biesinger <cbiesinger@google.com>
1122 * symtab.c (lookup_static_symbol): Call the new function (and move
1123 it down to be next to lookup_global_symbol).
1124 (struct global_sym_lookup_data): Add block_enum member and rename to...
1125 (struct global_or_static_sym_lookup_data): ...this.
1126 (lookup_symbol_global_iterator_cb): Pass block_index instead of
1127 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
1128 (lookup_symbol_global_or_static_iterator_cb): ...this.
1129 (lookup_global_or_static_symbol): New function.
1130 (lookup_global_symbol): Call new function.
1132 2019-08-26 Tom de Vries <tdevries@suse.de>
1135 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
1136 when pc_probe.prob == NULL.
1138 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
1140 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
1141 variable symbol_linkage to symbol_linkage_.
1143 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
1145 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1146 represent whether the symbol is static, dynamic, or we don't
1149 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1151 * gdb/rx-tdep.c (rx_register_names): New.
1152 (rx_register_name): Delete.
1153 (rx_psw_type): Delete.
1154 (rx_fpsw_type): Delete.
1155 (rx_register_type): Delete.
1156 (rx_gdbarch_init): Convert target-descriptions.
1157 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1158 * gdb/features/Makefile: Add rx.xml.
1159 * gdb/features/rx.xml: New.
1160 * gdb/features/rx.c: Generated.
1161 * gdb/NEWS: Mention target description support.
1163 2019-08-22 Christian Biesinger <cbiesinger@google.com>
1165 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1168 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1170 * configure.ac: Don't check for 'dlfcn.h' (moved to
1171 gdbsupport/common.m4).
1172 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1174 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1175 * compile/compile-c-support.c: Include
1176 'gdbsupport/gdb-dlfcn.h'.
1177 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1178 * gdb-dlfcn.c: Move to...
1179 * gdbsupport/gdb-dlfcn.c: ... here.
1180 * gdb-dlfcn.h: Move to...
1181 * gdbsupport/gdb-dlfcn.h: ... here.
1183 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1185 * nios2-tdep.c (struct reg_value): Improve comments. Make
1186 the offset field signed.
1188 2019-08-22 Christian Biesinger <cbiesinger@google.com>
1190 * python/lib/gdb/__init__.py (_execute_file): New function.
1191 * python/python.c (python_run_simple_file): Call gdb._execute_file
1194 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1196 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1197 all uses as this was never set to anything but a zero value.
1199 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1201 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1203 2019-08-21 Christian Biesinger <cbiesinger@google.com>
1205 * tui/tui-data.h (tui_gen_win_info): Add an =default
1206 move constructor, required by some GCC versions.
1208 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
1210 * go32-nat.c (go32_sysinfo): Add hygon_p.
1212 2019-08-20 Tom Tromey <tom@tromey.com>
1214 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
1215 line_from_reg_element_no, first_reg_element_no_inline,
1216 display_all_data, delete_data_content_windows,
1217 erase_data_content>: Now private.
1219 2019-08-20 Tom Tromey <tom@tromey.com>
1221 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
1222 (tui_unhighlight_win, tui_highlight_win)
1223 (tui_win_info::make_window): Update.
1224 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
1226 2019-08-20 Tom Tromey <tom@tromey.com>
1228 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1229 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1230 (MAX_PID_WIDTH): Move to tui-stack.c.
1231 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1232 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1233 (MAX_PID_WIDTH): Move from tui-data.h.
1235 2019-08-20 Tom Tromey <tom@tromey.com>
1237 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1238 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1240 (tui_gen_win_info::make_window): Rename from tui_make_window.
1241 (tui_win_info::make_window): New method.
1242 (tui_gen_win_info::make_visible): Update.
1243 * tui/tui-source.c (tui_source_window::set_contents): Update.
1244 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1245 (tui_data_window::display_registers_from): Update.
1246 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1247 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1251 (struct tui_win_info) <make_window>: Declare.
1252 <can_box>: Now virtual.
1253 <title>: New member.
1254 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1255 * tui/tui-command.c (tui_cmd_window::resize): Update.
1257 2019-08-20 Tom Tromey <tom@tromey.com>
1259 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
1260 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1261 (tui_data_window::check_register_values): Update.
1263 2019-08-20 Tom Tromey <tom@tromey.com>
1265 * tui/tui-regs.h (struct tui_data_window): Use
1266 DISABLE_COPY_AND_ASSIGN.
1267 <regs_content>: Change type, removing unique_ptr.
1268 <tui_data_window>: Add move constructor.
1269 * tui/tui-regs.c (tui_data_window::show_registers)
1270 (tui_data_window::show_register_group)
1271 (tui_data_window::display_registers_from)
1272 (tui_data_window::display_registers_from)
1273 (tui_data_window::first_data_item_displayed)
1274 (tui_data_window::delete_data_content_windows)
1275 (tui_data_window::rerender, tui_data_window::refresh_window)
1276 (tui_data_window::check_register_values): Update.
1278 2019-08-20 Tom Tromey <tom@tromey.com>
1280 * tui/tui-regs.h (struct tui_data_window) <show_registers,
1281 show_register_group>: Declare.
1282 (tui_show_register_group): Don't declare.
1283 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
1285 (tui_data_window::show_register_group): Rename from
1286 tui_show_register_group.
1287 (tui_data_window::check_register_values, tui_reg_command):
1289 * tui/tui-layout.c (tui_set_layout): Update.
1291 2019-08-20 Tom Tromey <tom@tromey.com>
1293 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
1295 (tui_check_register_values): Don't declare.
1296 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1297 from tui_check_register_values.
1298 * tui/tui-hooks.c (tui_register_changed): Update.
1300 2019-08-20 Tom Tromey <tom@tromey.com>
1302 * tui/tui-regs.c (tui_reg_layout): Move later.
1303 (tui_show_registers): Don't enable TUI mode or change layout.
1305 2019-08-20 Tom Tromey <tom@tromey.com>
1307 * tui/tui-regs.h (struct tui_data_item_window)
1308 <~tui_data_item_window>: Remove.
1309 <content>: Now a unique_xmalloc_ptr.
1310 * tui/tui-regs.c (tui_register_format): Return a
1312 (tui_get_register): Update.
1313 (~tui_data_item_window): Remove.
1314 (tui_data_window::display_registers_from, tui_display_register):
1316 * tui/tui-io.h (tui_expand_tabs): Update.
1317 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1318 Remove "col" parameter.
1320 2019-08-20 Tom Tromey <tom@tromey.com>
1322 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1324 * tui/tui-regs.c (~tui_data_item_window): Update.
1326 2019-08-20 Tom Tromey <tom@tromey.com>
1328 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1331 2019-08-20 Tom Tromey <tom@tromey.com>
1333 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1335 2019-08-20 Tom Tromey <tom@tromey.com>
1337 * tui/tui-source.h (struct tui_source_window): Update.
1338 * tui/tui-regs.c (tui_show_registers): Update.
1339 * tui/tui-disasm.h (struct tui_disasm_window): Update.
1340 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
1341 (NO_REGS_STRING): Remove defines.
1343 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
1345 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
1346 unnecessary thread walk if remote doesn't support the packet.
1348 2019-08-19 Tom Tromey <tromey@adacore.com>
1350 * python/py-value.c (value_has_field): Fix indentation.
1352 2019-08-19 Tom Tromey <tromey@adacore.com>
1354 * printcmd.c (do_one_display, info_display_command): Update.
1355 * block.h (contained_in): Return bool. Add allow_nested
1357 * block.c (contained_in): Return bool. Add allow_nested
1360 2019-08-19 Tom Tromey <tom@tromey.com>
1362 * configure: Rebuild.
1363 * configure.ac: Disallow the combination of -static-libstdc++ and
1365 * source-cache.c (get_language_name): Handle rust.
1366 (source_cache::get_source_lines): Ignore highlighting exceptions.
1368 2019-08-16 Tom Tromey <tom@tromey.com>
1370 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1371 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1372 (struct tui_source_window_base) <make_visible, refresh_window,
1373 resize>: Remove methods.
1374 <execution_info>: Remove field.
1375 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1376 (tui_show_source_line, tui_source_window_base)
1377 (~tui_source_window_base): Update.
1378 (tui_source_window_base::resize)
1379 (tui_source_window_base::make_visible)
1380 (tui_source_window_base::refresh_window): Remove.
1381 (tui_source_window_base::update_exec_info): Update.
1382 * tui/tui-source.c (tui_source_window::set_contents): Update.
1383 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1385 2019-08-16 Tom Tromey <tom@tromey.com>
1387 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1388 deprecated_query_hook.
1390 2019-08-16 Tom Tromey <tom@tromey.com>
1392 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1393 (tui_update_source_windows_with_line): Update.
1394 * tui/tui-source.h (struct tui_source_window)
1395 <show_symtab_source>: Declare.
1396 (tui_show_symtab_source): Don't declare.
1397 * tui/tui-source.c (tui_show_symtab_source): Rename from
1398 tui_show_symtab_source.
1400 2019-08-16 Tom Tromey <tom@tromey.com>
1402 * tui/tui-winsource.h (struct tui_source_window_base)
1403 <set_contents>: Declare.
1404 * tui/tui-winsource.c
1405 (tui_source_window_base::update_source_window_as_is): Update.
1406 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1408 (tui_set_source_content): Don't declare.
1409 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1410 tui_set_source_content.
1411 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1413 (tui_set_disassem_content): Don't declare.
1414 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1415 tui_set_disassem_content.
1417 2019-08-16 Tom Tromey <tom@tromey.com>
1419 * tui/tui-winsource.h (struct tui_source_window_base)
1420 <update_breakpoint_info>: Declare.
1421 (tui_update_breakpoint_info): Don't declare.
1422 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1423 (tui_update_all_breakpoint_info): Update.
1424 (tui_source_window_base::update_breakpoint_info): Rename from
1425 tui_update_breakpoint_info.
1426 (tui_source_window_base::update_exec_info): Update.
1428 2019-08-16 Tom Tromey <tom@tromey.com>
1430 * tui/tui-winsource.h (struct tui_source_window_base)
1431 <update_source_window>: Declare.
1432 (tui_update_source_window): Don't declare.
1433 * tui/tui-winsource.c
1434 (tui_source_window_base::update_source_window): Rename from
1435 tui_update_source_window.
1436 (tui_source_window_base::rerender): Update.
1437 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1438 * tui/tui-disasm.c (tui_show_disassem)
1439 (tui_show_disassem_and_update_source)
1440 (tui_disasm_window::maybe_update): Update.
1442 2019-08-16 Tom Tromey <tom@tromey.com>
1444 * tui/tui-winsource.h (struct tui_source_window_base)
1445 <update_source_window_as_is>: Declare.
1446 (tui_update_source_window_as_is): Don't declare.
1447 * tui/tui-winsource.c (tui_update_source_window): Update
1448 (tui_source_window_base::update_source_window_as_is): Rename from
1449 tui_update_source_window_as_is.
1450 (tui_source_window_base::refill): Update.
1451 * tui/tui-source.c (tui_show_symtab_source): Update.
1452 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1455 2019-08-16 Tom Tromey <tom@tromey.com>
1457 * tui/tui-winsource.h (tui_update_source_window)
1458 (tui_update_source_window_as_is): Remove "noerror" parameter.
1459 * tui/tui-winsource.c (tui_update_source_window)
1460 (tui_update_source_window_as_is): Remove "noerror" parameter.
1461 (tui_update_source_windows_with_addr)
1462 (tui_update_source_windows_with_line)
1463 (tui_source_window_base::rerender)
1464 (tui_source_window_base::refill): Update.
1465 * tui/tui-source.h (tui_set_source_content)
1466 (tui_show_symtab_source): Remove "noerror" parameter.
1467 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1469 (tui_show_symtab_source): Likewise.
1470 (tui_source_window::maybe_update): Update.
1471 * tui/tui-disasm.c (tui_show_disassem)
1472 (tui_show_disassem_and_update_source)
1473 (tui_disasm_window::do_scroll_vertical)
1474 (tui_disasm_window::maybe_update): Update.
1476 2019-08-16 Tom Tromey <tom@tromey.com>
1478 * tui/tui.c (tui_is_window_visible): Update.
1479 * tui/tui-wingeneral.c (tui_make_window)
1480 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1481 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1482 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1483 (tui_set_win_height_command, parse_scrolling_args): Update.
1484 * tui/tui-source.c (tui_source_window::style_changed): Update.
1485 * tui/tui-regs.c (tui_show_registers)
1486 (tui_data_window::first_data_item_displayed)
1487 (tui_data_window::delete_data_content_windows)
1488 (tui_check_register_values, tui_reg_command): Update.
1489 * tui/tui-disasm.c (tui_show_disassem): Update.
1490 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
1492 <is_visible>: Remove field.
1493 * tui/tui-data.c (tui_next_win, tui_prev_win)
1494 (tui_delete_invisible_windows): Update.
1496 2019-08-16 Tom Tromey <tom@tromey.com>
1498 * tui/tui-winsource.h (struct tui_source_window_base)
1499 <m_has_locator>: Remove.
1500 * tui/tui-layout.c (show_source_disasm_command, show_data)
1501 (show_source_or_disasm_and_command): Update.
1503 2019-08-16 Alan Hayward <alan.hayward@arm.com>
1505 * NEWS (Other MI changes): New subsection.
1506 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
1507 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
1508 * arch-utils.c (default_get_pc_address_flags): New function.
1509 * arch-utils.h (default_get_pc_address_flags): New declaration.
1510 * gdbarch.sh: Add get_pc_address_flags.
1511 * gdbarch.c: Regenerate.
1512 * gdbarch.h: Likewise.
1513 * stack.c (print_pc): New function.
1514 (print_frame_info) (print_frame): Call print_pc.
1516 2019-08-16 Tom de Vries <tdevries@suse.de>
1518 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
1519 print_objfile_section_info.
1521 2019-08-15 Tom Tromey <tom@tromey.com>
1523 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
1524 calling update_cmdwin_start_line.
1525 * tui/tui-winsource.h (struct tui_source_window_base)
1526 <do_make_visible_with_new_height, set_new_height>: Don't declare.
1527 <rerender>: Declare.
1528 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
1530 (tui_source_window_base::set_new_height): Remove.
1531 (tui_source_window_base::rerender): Rename from
1532 do_make_visible_with_new_height.
1533 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
1535 (tui_win_info::make_invisible_and_set_new_height)
1536 (tui_win_info::make_visible_with_new_height): Remove.
1537 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
1539 * tui/tui-stack.c (tui_locator_window::rerender): New method.
1540 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
1541 do_make_visible_with_new_height>: Don't declare.
1542 <rerender>: Declare.
1543 * tui/tui-regs.c (tui_data_window::rerender): Rename from
1545 (tui_data_window::do_make_visible_with_new_height): Remove.
1546 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
1547 call tui_show_locator_content.
1548 (tui_gen_win_info::resize): Call rerender.
1549 (show_source_or_disasm_and_command): Don't call
1550 tui_show_locator_content.
1551 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
1553 (struct tui_win_info) <rerender>: Declare.
1554 <set_new_height, make_invisible_and_set_new_height,
1555 make_visible_with_new_height>: Don't declare.
1556 * tui/tui-data.c (tui_win_list::rerender): New method.
1557 * tui/tui-command.h (struct tui_cmd_window)
1558 <do_make_visible_with_new_height>: Don't declare.
1560 (tui_cmd_window::do_make_visible_with_new_height): Remove.
1562 2019-08-15 Tom Tromey <tromey@adacore.com>
1564 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
1565 * ada-lang.c (ada_enum_name): Likewise.
1567 2019-08-15 Christian Biesinger <cbiesinger@google.com>
1569 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
1571 (GdbOutputErrorFile): Likewise.
1572 (global scope): Adjust constructor calls to GdbOutput{,Error}File
1574 (execute_unwinders): Rename to have a leading underscore.
1575 (auto_load_packages): Likewise.
1576 (global scope): Adjust call to auto_load_packages accordingly.
1577 (GdbSetPythonDirectory): Likewise.
1578 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
1579 instead of execute_unwinders.
1581 2019-08-15 Tom Tromey <tom@tromey.com>
1583 * tui/tui-layout.c (show_layout, show_source_disasm_command)
1584 (show_data): Don't change window visibility.
1585 (tui_gen_win_info::resize): Remove special case for command
1586 window. Use wresize, when available.
1587 (show_source_or_disasm_and_command): Don't change window
1589 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
1590 <make_visible>: New method.
1591 * tui/tui-command.c (tui_cmd_window::resize): New method.
1593 2019-08-15 Tom Tromey <tom@tromey.com>
1595 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
1596 (struct tui_source_windows): New.
1597 * tui/tui-winsource.c (tui_display_main): Update.
1598 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1599 (new_height_ok, parse_scrolling_args): Update.
1600 * tui/tui-layout.c (show_layout, show_data): Update.
1601 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
1602 (tui_add_to_source_windows): Don't declare.
1603 * tui/tui-data.c (source_windows, tui_source_windows)
1604 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
1606 2019-08-15 Tom Tromey <tom@tromey.com>
1608 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
1610 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
1611 * tui/tui-layout.c (show_source_disasm_command, show_data):
1613 (tui_gen_win_info::resize): Rename.
1614 (show_source_or_disasm_and_command): Update.
1615 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
1618 2019-08-15 Tom Tromey <tom@tromey.com>
1620 * tui/tui-stack.c (tui_initialize_static_data): Remove.
1621 * tui/tui-interp.c (tui_interp::init): Don't call
1622 tui_initialize_static_data.
1623 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
1625 2019-08-15 Tom Tromey <tom@tromey.com>
1627 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
1628 examine tui_win_list.
1630 2019-08-15 Tom Tromey <tom@tromey.com>
1632 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
1633 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
1634 tui_clear_source_content.
1635 (tui_clear_source_content): Remove.
1636 (tui_source_window_base::do_erase_source_content): Hoist call to
1638 * tui/tui-stack.c (tui_show_frame_info): Don't call
1639 tui_clear_source_content.
1641 2019-08-15 Tom Tromey <tom@tromey.com>
1643 * tui/tui-winsource.h (struct tui_source_window_base)
1644 <do_erase_source_content>: New method.
1645 <erase_source_content>: New method.
1646 (tui_erase_source_content): Don't declare.
1647 * tui/tui-winsource.c (tui_clear_source_content): Update.
1648 (tui_source_window_base::do_erase_source_content): Rename from
1649 tui_erase_source_content.
1650 (tui_source_window_base::show_source_content): Update.
1651 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1652 * tui/tui-source.h (struct tui_source_window)
1653 <erase_source_content>: New method.
1654 * tui/tui-disasm.h (struct tui_disasm_window)
1655 <erase_source_content>: New method.
1657 2019-08-15 Tom Tromey <tom@tromey.com>
1659 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
1660 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
1662 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
1663 * tui/tui-source.c (tui_set_source_content): Update.
1664 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1666 2019-08-15 Tom Tromey <tom@tromey.com>
1668 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
1669 * tui/tui-winsource.c (tui_line_is_displayed): Move to
1671 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
1673 * tui/tui-source.c (tui_source_window::line_is_displayed): New
1675 (tui_source_window::maybe_update): Update.
1677 2019-08-15 Tom Tromey <tom@tromey.com>
1679 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
1680 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
1682 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
1684 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
1686 (tui_disasm_window::maybe_update): Update.
1688 2019-08-15 Tom Tromey <tom@tromey.com>
1690 * tui/tui-winsource.h (struct tui_source_window_base)
1691 <maybe_update>: Declare.
1692 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
1694 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
1696 * tui/tui-source.c (tui_source_window::maybe_update): New method.
1697 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
1699 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
1701 2019-08-15 Tom Tromey <tom@tromey.com>
1703 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
1705 2019-08-15 Tom Tromey <tom@tromey.com>
1707 * tui/tui-wingeneral.c: Include tui-stack.h.
1708 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
1709 (struct tui_locator_window): Move from tui-data.h.
1710 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
1711 (tui_initialize_static_data): Move from tui-data.c.
1712 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
1713 (struct tui_locator_window): Move to tui-stack.c.
1714 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
1715 (tui_initialize_static_data): Move to tui-stack.c.
1717 2019-08-15 Tom Tromey <tom@tromey.com>
1719 * tui/tui-layout.c (show_source_disasm_command)
1720 (show_source_or_disasm_and_command): Use make_visible method, not
1722 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
1725 2019-08-15 Tom Tromey <tom@tromey.com>
1727 * tui/tui-wingeneral.h (tui_make_window): Update.
1728 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
1730 (tui_gen_win_info::make_visible): Update.
1731 * tui/tui-regs.c (tui_data_window::display_registers_from):
1733 * tui/tui-layout.c (show_source_disasm_command)
1734 (show_source_or_disasm_and_command): Update.
1735 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
1736 (enum tui_box): Remove.
1737 (struct tui_win_info) <can_box>: New method.
1738 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
1741 2019-08-15 Tom de Vries <tdevries@suse.de>
1743 * linux-nat-trad.c: Include gdbarch.h.
1745 2019-08-14 Alan Hayward <alan.hayward@arm.com>
1747 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
1750 2019-08-14 Tom Tromey <tromey@adacore.com>
1752 * darwin-nat.c: Include gdbarch.h.
1753 * darwin-nat-info.c: Include gdbarch.h.
1755 2019-08-13 Tom Tromey <tom@tromey.com>
1757 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
1759 * tui/tui-data.c (tui_initialize_static_data): Update.
1761 2019-08-13 Tom Tromey <tom@tromey.com>
1763 * tui/tui-winsource.h (struct tui_exec_info_window)
1764 <~tui_exec_info_window, maybe_allocate_content, get_content,
1766 (struct tui_source_window_base) <set_exec_info_content,
1767 show_exec_info_content>: Don't declare.
1768 * tui/tui-winsource.c
1769 (tui_exec_info_window::maybe_allocate_content): Remove.
1770 (tui_source_window_base::update_exec_info): Rename from
1771 set_exec_info_content.
1772 (tui_source_window_base::show_exec_info_content)
1773 (tui_source_window_base::update_exec_info): Remove.
1775 2019-08-13 Tom Tromey <tom@tromey.com>
1777 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
1779 * tui/tui-winsource.c (tui_update_source_window_as_is)
1780 (tui_update_source_windows_with_addr, tui_erase_source_content):
1782 (tui_clear_exec_info_content): Remove.
1784 2019-08-13 Tom Tromey <tom@tromey.com>
1786 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
1788 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
1789 call tui_erase_exec_info_content.
1790 (tui_clear_exec_info_content): Rename from
1791 tui_erase_exec_info_content.
1792 (tui_clear_exec_info_content): Delete.
1794 2019-08-13 Tom Tromey <tom@tromey.com>
1796 * tui/tui-winsource.h (struct tui_source_window_base)
1797 <show_exec_info_content>: Declare.
1798 (tui_show_exec_info_content): Don't declare.
1799 * tui/tui-winsource.c
1800 (tui_source_window_base::show_exec_info_content): Rename from
1801 tui_show_exec_info_content.
1802 (tui_source_window_base::update_exec_info): Update.
1804 2019-08-13 Tom Tromey <tom@tromey.com>
1806 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
1807 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
1808 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
1809 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
1810 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
1811 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
1814 2019-08-13 Tom Tromey <tom@tromey.com>
1816 * tui/tui-winsource.h (struct tui_source_window_base)
1817 <update_exec_info>: Declare.
1818 (tui_update_exec_info): Don't declare.
1819 * tui/tui-winsource.c (tui_update_source_window_as_is)
1820 (tui_source_window_base::refresh_all)
1821 (tui_update_all_breakpoint_info): Update.
1822 (tui_source_window_base::update_exec_info): Rename from
1823 tui_update_exec_info.
1824 * tui/tui-stack.c (tui_show_frame_info): Update.
1826 2019-08-13 Tom Tromey <tom@tromey.com>
1828 * tui/tui-winsource.h (struct tui_source_window_base)
1829 <set_exec_info_content>: Declare.
1830 (tui_set_exec_info_content): Don't declare.
1831 * tui/tui-winsource.c
1832 (tui_source_window_base::set_exec_info_content): Rename from
1833 tui_set_exec_info_content.
1834 (tui_update_exec_info): Update.
1836 2019-08-13 Tom Tromey <tom@tromey.com>
1838 * tui/tui-winsource.h (struct tui_source_window_base)
1839 <show_source_content>: Declare.
1840 (tui_show_source_content): Don't declare.
1841 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1842 (tui_source_window_base::show_source_content): Rename from
1843 tui_show_source_content.
1844 (tui_source_window_base::refresh_all): Update.
1845 * tui/tui-layout.c (show_source_disasm_command)
1846 (show_source_or_disasm_and_command): Update.
1848 2019-08-13 Tom Tromey <tom@tromey.com>
1850 * tui/tui-winsource.c (tui_erase_source_content)
1851 (tui_show_source_content, tui_source_window_base::refresh_all):
1853 * tui/tui-wingeneral.h
1854 (tui_check_and_display_highlight_if_needed): Don't declare.
1855 * tui/tui-wingeneral.c
1856 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1857 check_and_display_highlight_if_needed.
1858 * tui/tui-win.c (tui_rehighlight_all)
1859 (tui_win_info::make_visible_with_new_height): Update.
1860 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1861 (tui_data_window::erase_data_content)
1862 (tui_data_window::display_all_data): Update.
1863 * tui/tui-data.h (struct tui_win_info)
1864 <check_and_display_highlight_if_needed>: Declare.
1866 2019-08-13 Tom Tromey <tom@tromey.com>
1868 * tui/tui-win.c (tui_resize_all): Call
1869 tui_delete_invisible_windows.
1870 * tui/tui-layout.c (show_layout): Call
1871 tui_delete_invisible_windows.
1872 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1873 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1875 2019-08-13 Tom Tromey <tom@tromey.com>
1877 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1878 tui_add_win_to_layout.
1880 2019-08-13 Tom Tromey <tom@tromey.com>
1882 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1883 * tui/tui-layout.c (tui_default_win_height): Now static.
1885 2019-08-13 Tom Tromey <tom@tromey.com>
1887 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1889 (show_source_disasm_command, show_source_or_disasm_and_command):
1890 Don't check current layout.
1892 2019-08-13 Tom Tromey <tom@tromey.com>
1894 * tui/tui-wingeneral.c (make_all_visible): Remove.
1895 (tui_make_all_invisible): Simplify.
1896 * tui/tui-layout.c (tui_make_all_invisible): Move from
1897 tui-wingeneral.c; simplify.
1898 (show_layout): Hoist call to tui_make_all_invisible.
1899 (show_data): Don't call tui_make_all_invisible.
1901 2019-08-13 Tom Tromey <tom@tromey.com>
1903 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1904 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1906 2019-08-13 Tom Tromey <tom@tromey.com>
1908 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1910 (show_source_disasm_command, show_data)
1911 (show_source_or_disasm_and_command): Don't use
1912 tui_set_current_layout_to.
1913 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1914 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1916 (tui_set_current_layout_to): Remove.
1918 2019-08-13 Tom Tromey <tom@tromey.com>
1920 * tui/tui-layout.c (tui_set_layout): Update.
1921 * tui/tui-data.h (struct tui_layout_def): Remove.
1922 (tui_layout_def): Don't declare.
1923 * tui/tui-data.c (layout_def): Remove.
1924 (tui_layout_def): Remove.
1926 2019-08-13 Tom Tromey <tom@tromey.com>
1928 * tui/tui-winsource.h (struct tui_source_window_base)
1929 <clear_detail>: No longer "override".
1930 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1931 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1932 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1933 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1935 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1937 2019-08-13 Tom Tromey <tromey@adacore.com>
1939 * tracepoint.c: Don't include readline.h or history.h.
1941 2019-08-12 Tom Tromey <tom@tromey.com>
1943 * configure: Rebuild.
1944 * configure.ac: Check for readline 7.
1945 * NEWS: Mention readline 7 requirement.
1948 2019-08-12 Tom Tromey <tom@tromey.com>
1950 * mingw-hdep.c (gdb_select): Remove readline hack.
1952 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1954 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1955 when the function fails.
1957 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1959 * s390-tdep.c (s390_type_align): New function.
1960 (s390_gdbarch_init): Set it as type_align gdbarch method.
1962 2019-08-09 Tom de Vries <tdevries@suse.de>
1965 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
1966 pc_low with relocation offset.
1968 2019-08-07 Tom Tromey <tromey@adacore.com>
1970 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1971 (print_frame_args): Update.
1972 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
1974 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1975 * frame.h (struct frame_arg): Add initializers.
1976 <error>: Now a unique_xmalloc_ptr.
1978 2019-08-07 Alan Hayward <alan.hayward@arm.com>
1980 * NEWS: Expand the Pointer Authentication entry.
1981 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
1982 (aarch64_frame_unmask_lr): ... to this.
1983 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
1984 Call aarch64_frame_unmask_lr.
1985 * frame.c (struct frame_info): Add "masked" variable.
1986 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
1987 (fprint_frame): Check for masked pc.
1988 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
1990 * python/py-framefilter.c (py_print_frame): Check for masked pc.
1991 * stack.c (print_frame): Check for masked pc.
1993 2019-08-06 Tom Tromey <tom@tromey.com>
1995 * stabsread.c (patch_block_stabs, read_one_struct_field)
1996 (read_enum_type): Use obstack_strndup.
1997 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
1998 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
1999 * dwarf2read.c (guess_full_die_structure_name)
2000 (anonymous_struct_prefix): Use obstack_strndup.
2001 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
2002 * c-exp.y (yylex): Use obstack_strndup.
2003 * ada-exp.y (write_object_renaming, write_ambiguous_var)
2004 (write_var_or_type): Use obstack_strndup.
2006 2019-08-06 Tom Tromey <tom@tromey.com>
2008 * symfile.c (reread_symbols): Use obstack_strdup.
2009 * stabsread.c (read_type): Use obstack_strdup.
2010 * gdb_obstack.h (obstack_strdup): New overload.
2011 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2012 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2013 (dwarf2_canonicalize_name): Use obstack_strdup.
2014 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2015 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2018 2019-08-06 Tom Tromey <tom@tromey.com>
2020 * gdb_obstack.h (obstack_strdup): Define.
2021 * gdb_obstack.c (obstack_strdup): Don't define.
2023 2019-08-06 Tom Tromey <tom@tromey.com>
2025 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2027 * typeprint.c (typedef_hash_table::find_global_typedef): Use
2029 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2030 * stabsread.c (common_block_start): Use obstack_strdup.
2031 * objfiles.c (set_objfile_main_name, objfile): Use
2033 * namespace.c (add_using_directive): Use obstack_strdup.
2034 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2035 * jit.c (finalize_symtab): Use obstack_strdup.
2036 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2037 (guess_partial_die_structure_name, partial_die_info::fixup)
2038 (dwarf2_name): Use obstack_strdup.
2039 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2041 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2042 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2044 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2046 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2048 * unittests/help-doc-selftests.c: New file.
2049 * Makefile.in: Add the new file.
2051 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2053 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2054 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2055 the full first line, except when FOR_VALUE_PREFIX. In this case,
2056 the trailing '.' is not output, and the first character is uppercased.
2057 (print_help_for_command): Update call to print_doc_line.
2058 (print_doc_of_command): Likewise.
2059 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2060 * cli/cli-option.c (append_indented_doc): Do not append newline.
2061 (build_help_option): Append newline after first appended_indented_doc
2062 only if a second call is done.
2063 (build_help): Append 2 new lines before each option, except the first
2065 * compile/compile.c (_initialize_compile): Add new lines after
2066 %OPTIONS%, when not at the end of the help.
2067 Change help doc or code
2068 producing the help doc to respect the invariants.
2069 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2070 Also removed the new line after 'Options:', as all other commands
2071 do not put an empty line between 'Options:' and the first option.
2072 * printcmd.c (_initialize_printcmd): Likewise.
2073 * stack.c (_initialize_stack): Likewise.
2074 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2075 incorrectly telling COMMAND is optional.
2076 * ada-lang.c (_initialize_ada_language): Change help doc or code
2077 producing the help doc to respect the invariants.
2078 * ada-tasks.c (_initialize_ada_tasks): Likewise.
2079 * breakpoint.c (_initialize_breakpoint): Likewise.
2080 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2081 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2082 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2083 * cli/cli-style.c (cli_style_option::add_setshow_commands,
2084 _initialize_cli_style): Likewise.
2085 * corelow.c (core_target_info): Likewise.
2086 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2087 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
2088 * filesystem.c (_initialize_filesystem): Likewise.
2089 * frame.c (_initialize_frame): Likewise.
2090 * gnu-nat.c (add_task_commands): Likewise.
2091 * infcall.c (_initialize_infcall): Likewise.
2092 * infcmd.c (_initialize_infcmd): Likewise.
2093 * interps.c (_initialize_interpreter): Likewise.
2094 * language.c (_initialize_language): Likewise.
2095 * linux-fork.c (_initialize_linux_fork): Likewise.
2096 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
2097 * maint.c (_initialize_maint_cmds): Likewise.
2098 * memattr.c (_initialize_mem): Likewise.
2099 * printcmd.c (_initialize_printcmd): Likewise.
2100 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
2102 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
2103 * record-btrace.c (_initialize_record_btrace): Likewise.
2104 * record-full.c (_initialize_record_full): Likewise.
2105 * record.c (_initialize_record): Likewise.
2106 * regcache-dump.c (_initialize_regcache_dump): Likewise.
2107 * regcache.c (_initialize_regcache): Likewise.
2108 * remote.c (add_packet_config_cmd, init_remote_threadtests,
2109 _initialize_remote): Likewise.
2110 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2111 * serial.c (_initialize_serial): Likewise.
2112 * skip.c (_initialize_step_skip): Likewise.
2113 * source.c (_initialize_source): Likewise.
2114 * stack.c (_initialize_stack): Likewise.
2115 * symfile.c (_initialize_symfile): Likewise.
2116 * symtab.c (_initialize_symtab): Likewise.
2117 * target-descriptions.c (_initialize_target_descriptions): Likewise.
2118 * top.c (init_main): Likewise.
2119 * tracefile-tfile.c (tfile_target_info): Likewise.
2120 * tracepoint.c (_initialize_tracepoint): Likewise.
2121 * tui/tui-win.c (_initialize_tui_win): Likewise.
2122 * utils.c (add_internal_problem_command): Likewise.
2123 * valprint.c (value_print_option_defs): Likewise.
2125 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
2128 * configure.ac: Drop enable-libmcheck support.
2129 * configure, config.in: Rebuild.
2130 * libmcheck.m4: Remove.
2131 * acinclude.m4: Don't include it.
2132 * Makefile.in: Don't distribute it.
2133 * top.c (print_gdb_configuration): Don't mention it.
2135 2019-08-06 Tom Tromey <tom@tromey.com>
2137 * utils.c (set_output_style): Sometimes pass stream to
2139 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
2140 * record-btrace.c (btrace_insn_history): Update.
2141 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
2143 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2144 Update initializers.
2145 <m_uiout>: New field.
2147 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2148 Remove "uiout" parameter.
2149 (dump_insns): Update.
2150 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2151 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2153 2019-08-06 Christian Biesinger <cbiesinger@google.com>
2155 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2156 (error_in_psymtab_expansion): Likewise.
2157 (lookup_symbol_via_quick_fns): Likewise.
2158 (basic_lookup_transparent_type_quick): Likewise.
2159 (basic_lookup_transparent_type_1): Likewise.
2161 2019-08-06 Tom Tromey <tromey@adacore.com>
2163 * source.c (last_source_error): Now bool.
2164 (print_source_lines_base): Make "noprint" bool. Only open
2165 source file when last_source_visited changes.
2167 2019-08-06 Tom Tromey <tromey@adacore.com>
2169 * annotate.c (annotate_source_line): Use g_source_cache.
2170 * source-cache.c (source_cache::get_plain_source_lines): Change
2171 parameters. Populate m_offset_cache.
2172 (source_cache::ensure): New method.
2173 (source_cache::get_line_charpos): New method.
2174 (extract_lines): Move lower. Change parameters.
2175 (source_cache::get_source_lines): Move lower.
2176 * source-cache.h (class source_cache): Update comment.
2177 <get_line_charpos>: New method.
2178 <get_source_lines>: Update comment.
2179 <clear>: Clear m_offset_cache.
2180 <get_plain_source_lines>: Change parameters.
2181 <ensure>: New method
2182 <m_offset_cache>: New member.
2183 * source.c (forget_cached_source_info_for_objfile): Update.
2184 (info_source_command): Use g_source_cache.
2185 (find_source_lines, open_source_file_with_line_charpos): Remove.
2186 (print_source_lines_base, search_command_helper): Use g_source_cache.
2187 * source.h (open_source_file_with_line_charpos): Don't declare.
2188 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2189 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2192 2019-08-06 Tom Tromey <tromey@adacore.com>
2194 * source-cache.c (source_cache::get_plain_source_lines):
2195 Remove "first_line" and "last_line" parameters.
2196 (source_cache::get_source_lines): Cache plain text.
2197 * source-cache.h (class source_cache)
2198 <get_plain_source_lines>: Update.
2200 2019-08-06 Tom Tromey <tromey@adacore.com>
2202 * source-cache.c (extract_lines): No longer a method.
2203 Changed type of parameter. Include final newline.
2204 (selftests::extract_lines_test): New function.
2205 (_initialize_source_cache): Likewise.
2206 * source-cache.h (class source_cache)
2207 <extract_lines>: Don't declare.
2209 2019-08-06 Tom Tromey <tromey@adacore.com>
2211 * breakpoint.c (init_breakpoint_sal): Update.
2212 (breakpoint): Update.
2213 * breakpoint.h (struct breakpoint) <filter>: Now a
2216 2019-08-05 Christian Biesinger <cbiesinger@google.com>
2218 * NEWS: Mention dictionary access on blocks.
2219 * python/py-block.c (blpy_getitem): New function.
2220 (block_object_as_mapping): New struct.
2221 (block_object_type): Use new struct for tp_as_mapping field.
2223 2019-08-05 Christian Biesinger <cbiesinger@google.com>
2225 * objfiles.h (objfile): Add a comment describing partial symbols.
2227 2019-08-05 Tom Tromey <tromey@adacore.com>
2229 * compile/compile.c (_initialize_compile): Use _(), not N_().
2230 * thread.c (_initialize_thread): Use _(), not N_().
2231 * stack.c (_initialize_stack): Use _(), not N_().
2232 * printcmd.c (_initialize_printcmd): Use _(), not N_().
2234 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2236 * dwarf2read.c (struct dw2_symtab_iterator):
2237 <want_specific_block>: Remove.
2238 <block_index>: Change type to gdb::optional.
2239 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2240 change type of BLOCK_INDEX parameter to gdb::optional.
2241 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2242 (dw2_lookup_symbol): Don't pass argument for
2243 WANT_SPECIFIC_BLOCK.
2244 (dw2_expand_symtabs_for_function): Don't pass argument for
2245 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2246 (class dw2_debug_names_iterator)
2247 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2248 parameter, change BLOCK_INDEX type to gdb::optional.
2249 <m_want_specific_block>: Remove.
2250 <m_block_index>: Change type to gdb::optional.
2251 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2252 gdb::optional. Re-write in function of gdb::optional.
2253 (dw2_debug_names_lookup_symbol): Don't pass argument for
2254 WANT_SPECIFIC_BLOCK.
2255 (dw2_debug_names_expand_symtabs_for_function): Don't pass
2256 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
2259 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2261 * NEWS: Mention changes to "info sources" command.
2263 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2265 * symtab.c (filename_partial_match_opts): New struct type.
2266 (struct output_source_filename_data): New members
2267 regexp, c_regexp, partial_match.
2268 (output_source_filename): Use new members to decide to print file.
2269 (info_sources_option_defs): New variable.
2270 (make_info_sources_options_def_group, print_info_sources_header,
2271 info_sources_command_completer):
2273 (info_sources_command): Read new optional arguments.
2274 (_initialize_symtab): Update info sources help.
2276 2019-08-02 Alexandre Oliva <oliva@adacore.com>
2278 * ada-lang.c (exception_support_info_v0): Renamed from...
2279 (default_exception_support_info): ... this. Create new
2281 (ada_has_this_exception_support): Look up catch_handlers_sym.
2282 (ada_exception_support_info_sniffer): Try v0 after default.
2284 2019-08-01 Tom Tromey <tromey@adacore.com>
2286 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
2289 2019-08-01 Christian Biesinger <cbiesinger@google.com>
2291 * s12z-tdep.c: Fix include path for s12z-opc.h.
2293 2019-08-01 Alan Hayward <alan.hayward@arm.com>
2295 * NEWS: Require GNU make 3.82.
2297 2019-07-16 Tom Tromey <tom@tromey.com>
2299 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2302 2019-07-30 Tom Tromey <tromey@adacore.com>
2304 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2306 2019-07-30 Kevin Buettner <kevinb@redhat.com>
2308 * printcmd.c (print_address_symbolic): Print negative offsets.
2309 (build_address_symbolic): Force signed arithmetic when computing
2312 2019-07-30 Christian Biesinger <cbiesinger@google.com>
2314 PR/24474: Add a function to lookup static variables.
2315 * NEWS: Mention this new function.
2316 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2317 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2318 * python/python.c (python_GdbMethods): Add new function.
2320 2019-07-29 Christian Biesinger <cbiesinger@google.com>
2322 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2323 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2324 (objfpy_lookup_static_symbol): New function.
2325 (objfile_object_methods): Add new functions.
2327 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2329 * NEWS: Mention 'set|show print frame-info'. Mention new
2330 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2331 backtrace argument. Mention that python frame filtering code
2332 is now consistent with what 'backtrace' command prints.
2334 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2336 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2338 (print_frame_info_auto, print_frame_info_source_line,
2339 print_frame_info_location, print_frame_info_source_and_location,
2340 print_frame_info_location_and_address, print_frame_info_short_location):
2342 (struct frame_print_options): New member print_frame_info.
2343 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
2344 * stack.h (get_user_print_what_frame_info): New declaration.
2345 (frame_show_address): New declaration.
2346 * stack.c (print_frame_arguments_choices): New value 'presence'.
2347 (print_frame_info_auto, print_frame_info_source_line,
2348 print_frame_info_location, print_frame_info_source_and_location,
2349 print_frame_info_location_and_address, print_frame_info_short_location,
2350 print_frame_info_choices, print_frame_info_print_what): New definitions.
2351 (print_frame_args): Only print dots for args if print frame-arguments
2353 (frame_print_option_defs): New element for "frame-info".
2354 (get_user_print_what_frame_info): New function.
2355 (frame_show_address): Make non static. Move comment to stack.h.
2356 (print_frame_info_to_print_what): New function.
2357 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2358 to decide what to print.
2359 (backtrace_command_1): Handle the new print_frame_arguments_presence
2361 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2362 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2363 (py_print_frame): In non-mi mode, use LOCATION as default for
2364 print_what, similarly to frame information printed directly by
2365 backtrace command. Handle frame-info user option in non MI mode.
2367 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2369 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2370 Add case for debugging 32-bit target on 64-bit host. Revise
2373 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2375 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2376 instead of find_function_entry_range_from_pc.
2378 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2380 * stack.c (find_frame_funname): Remove code which preferred
2381 minsym over symtab sym in "certain pathological cases".
2383 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2384 parameter. Change type of "do_demangle" to bool.
2385 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2386 Pass suitable "prefer_sym_over_minsym" flag to
2387 build_address_symbolic(). Don't output "+" for negative offsets.
2388 * printcmd.c (print_address_symbolic): Update invocation of
2389 build_address_symbolic to include a "prefer_sym_over_minsym"
2391 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2392 Restrict cases in which use of minimal symbol is preferred to that
2393 of a found symbol. Update comments.
2395 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2396 for entry pc when entry pc is out of range for that FDE.
2398 2019-07-26 Brian Callahan <bcallah@openbsd.org>
2401 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2404 2019-07-25 Christian Biesinger <cbiesinger@google.com>
2406 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2407 this function's Python signature.
2410 2019-07-24 Christian Biesinger <cbiesinger@google.com>
2412 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2413 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2414 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2415 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2416 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2419 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2421 * h8300-tdep.c (h8300_register_name_common): New.
2422 h8300_register_name): Use h8300_register_name_common.
2423 (h8300s_register_name): Likewise.
2424 (h8300sx_register_name): Likewise.
2425 (h8300h_register_nam): New.
2426 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2429 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2431 * arm-tdep.c (arm_skip_cmse_entry): New function.
2432 (arm_is_sgstubs_section): New function.
2433 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2435 2019-07-22 Tom Tromey <tom@tromey.com>
2437 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2440 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2442 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2445 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2447 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2448 so that GDB doesn't match any msymbols when searching in the
2450 (print_symbol_info): Print using typedef_print or type_print based
2451 on the type of the symbol. Add updated FIXME comment moved from...
2452 (_initialize_symtab): ... move and update FIXME comment to above.
2454 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2456 * NEWS: Mention adding -q option to "info types".
2457 * symtab.c (struct info_types_options): New struct.
2458 (info_types_options_defs): New variable.
2459 (make_info_types_options_def_group): New function.
2460 (info_types_command): Use gdb::option framework to parse options.
2461 (info_types_command_completer): New function.
2462 (_initialize_symtab): Extend the help text on "info types" and
2463 register command completer.
2465 2019-07-21 Christian Biesinger <cbiesinger@google.com>
2467 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2468 (lookup_symbol_in_objfile): Change int to block_enum and add a
2469 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2471 2019-07-20 Christian Biesinger <cbiesinger@google.com>
2473 * MAINTAINERS (Write After Approval): Add self.
2475 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2477 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2478 instruction to the dummy code region.
2480 2019-07-19 Tom Tromey <tromey@adacore.com>
2482 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2483 (ARGSUSED, PARAMS, __func__): Remove rules.
2485 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2487 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
2488 * features/arm/arm-with-iwmmxt.c: Remove.
2489 * features/arm/arm-with-iwmmxt.xml: Remove.
2490 * features/arm/arm-with-m-fpa-layout.c: Remove.
2491 * features/arm/arm-with-m-fpa-layout.xml: Remove.
2492 * features/arm/arm-with-m-vfp-d16.c: Remove.
2493 * features/arm/arm-with-m-vfp-d16.xml: Remove.
2494 * features/arm/arm-with-m.c: Remove.
2495 * features/arm/arm-with-m.xml: Remove.
2496 * features/arm/arm-with-neon.c: Remove.
2497 * features/arm/arm-with-neon.xml: Remove.
2498 * features/arm/arm-with-vfpv2.c: Remove.
2499 * features/arm/arm-with-vfpv2.xml: Remove.
2500 * features/arm/arm-with-vfpv3.c: Remove.
2501 * features/arm/arm-with-vfpv3.xml: Remove.
2503 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2505 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
2507 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2509 * arch/aarch32.c (aarch32_create_target_description): Create
2510 target descriptions using features.
2511 * arch/arm.c (arm_create_target_description)
2512 (arm_create_mprofile_target_description): Likewise.
2513 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
2515 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2517 * Makefile.in: Add new files.
2518 * aarch32-tdep.c: New file.
2519 * aarch32-tdep.h: New file.
2520 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2521 Call aarch32_read_description.
2522 * arch/aarch32.c: New file.
2523 * arch/aarch32.h: New file.
2524 * arch/arm.c (arm_create_target_description)
2525 (arm_create_mprofile_target_description): New function.
2526 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
2527 (arm_create_target_description)
2528 (arm_create_mprofile_target_description): New declaration.
2529 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
2530 read_description functions.
2531 * arm-linux-nat.c (arm_linux_nat_target::read_description):
2533 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2534 * arm-tdep.c (tdesc_arm_list): New variable.
2535 (arm_register_g_packet_guesses): Call create description functions.
2536 (arm_read_description) (arm_read_mprofile_description): New
2538 * arm-tdep.h (arm_read_description)
2539 (arm_read_mprofile_description): Add declaration.
2540 * configure.tgt: Add new files.
2542 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
2544 * top.c (new_ui_command): Open specified terminal just once.
2546 2019-07-18 Tom Tromey <tromey@adacore.com>
2548 * symtab.c (main_name): Constify return type.
2549 * symfile.c (set_initial_language): Update.
2550 * symtab.h (main_name): Constify return type.
2552 2019-07-17 Tom Tromey <tom@tromey.com>
2554 * tui/tui-winsource.c (tui_update_source_window)
2555 (tui_update_source_window_as_is)
2556 (tui_update_source_windows_with_line): Remove return.
2557 * tui/tui-disasm.c (tui_show_disassem)
2558 (tui_show_disassem_and_update_source): Remove return.
2559 * tui/tui.c (tui_reset): Remove return.
2560 * tui/tui-wingeneral.c
2561 (tui_check_and_display_highlight_if_needed): Remove return.
2563 2019-07-17 Tom Tromey <tom@tromey.com>
2565 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2567 2019-07-17 Tom Tromey <tom@tromey.com>
2569 * tui/tui-winsource.h (struct tui_exec_info_window)
2570 (struct tui_source_window_base): Move from tui-data.h.
2571 * tui/tui-winsource.c: Move many method definitions from
2572 elsewhere. Remove "structuring" comments.
2573 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
2574 (tui_source_window_base::refresh_window): Move to
2576 * tui/tui-win.c (tui_source_window_base::refresh_all)
2577 (tui_source_window_base::update_tab_width)
2578 (tui_source_window_base::set_new_height)
2579 (tui_source_window_base::do_make_visible_with_new_height): Move to
2581 * tui/tui-source.h: Update.
2582 * tui/tui-source.c (tui_source_window_base::reset): Move to
2584 * tui/tui-disasm.h: Update.
2585 * tui/tui-data.h (struct tui_exec_info_window): Move to
2587 (struct tui_source_window_base): Likewise.
2588 * tui/tui-data.c (tui_source_window_base::clear_detail)
2589 (tui_source_window_base, ~tui_source_window_base): Move to
2592 2019-07-17 Tom Tromey <tom@tromey.com>
2594 * tui/tui-win.c (tui_resize_all)
2595 (tui_source_window_base::update_tab_width)
2596 (tui_adjust_win_heights): Update.
2597 (tui_win_info::make_invisible_and_set_new_height): Rename from
2598 make_invisible_and_set_new_height.
2599 * tui/tui-data.h (struct tui_win_info)
2600 <make_invisible_and_set_new_height>: New method.
2602 2019-07-17 Tom Tromey <tom@tromey.com>
2604 * tui/tui.c: Update.
2605 * tui/tui-source.h (struct tui_source_window): Move from
2607 * tui/tui-layout.c: Update.
2608 * tui/tui-disasm.c: Update.
2609 * tui/tui-data.h (struct tui_source_window): Move to
2612 2019-07-17 Tom Tromey <tom@tromey.com>
2614 * tui/tui-disasm.h (struct tui_disasm_window): Move from
2616 * tui/tui-data.h (struct tui_disasm_window): Move to
2619 2019-07-17 Tom Tromey <tom@tromey.com>
2621 * tui/tui-regs.h (struct tui_data_item_window): Move from
2623 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
2624 * tui/tui-data.h (struct tui_data_item_window): Move to
2626 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
2628 2019-07-17 Tom Tromey <tom@tromey.com>
2630 * tui/tui.c: Update.
2631 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
2632 (tui_cmd_window::max_height): Move to tui-command.c.
2633 * tui/tui-layout.c: Update.
2634 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
2635 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
2637 * tui/tui-command.h (struct tui_cmd_window): Move from
2639 * tui/tui-command.c: Remove "structuring" comments.
2640 (tui_cmd_window::clear_detail)
2641 (tui_cmd_window::do_make_visible_with_new_height)
2642 (tui_cmd_window::max_height): Move from elsewhere.
2644 2019-07-17 Tom Tromey <tom@tromey.com>
2646 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
2648 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
2649 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
2651 2019-07-17 Tom Tromey <tom@tromey.com>
2653 * tui/tui.c: Update.
2654 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
2656 * tui/tui-windata.h: Remove file.
2657 * tui/tui-windata.c: Remove file.
2658 * tui/tui-win.c (tui_data_window::set_new_height)
2659 (tui_data_window::do_make_visible_with_new_height): Move to
2661 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
2662 * tui/tui-regs.c: Remove "structuring" comments.
2663 (tui_data_window::first_data_item_displayed)
2664 (tui_data_window::delete_data_content_windows)
2665 (tui_data_window::erase_data_content)
2666 (tui_data_window::display_all_data)
2667 (tui_data_window::refresh_all)
2668 (tui_data_window::do_scroll_vertical)
2669 (tui_data_window::clear_detail, tui_data_window::set_new_height)
2670 (tui_data_window::do_make_visible_with_new_height)
2671 (tui_data_window::refresh_window): Move from elsewhere.
2672 (_initialize_tui_regs): Move to end of file.
2673 * tui/tui-layout.c: Update.
2674 * tui/tui-hooks.c: Update.
2675 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
2676 * tui/tui-data.c (tui_data_window::clear_detail): Move to
2678 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
2680 2019-07-17 Tom Tromey <tom@tromey.com>
2682 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
2685 2019-07-17 Tom Tromey <tom@tromey.com>
2687 * tui/tui-win.c (tui_source_window_base::set_new_height)
2688 (tui_source_window_base::do_make_visible_with_new_height): Use
2689 m_has_locator field directly.
2690 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
2692 (struct tui_source_window_base) <has_locator>: Likewise.
2694 2019-07-17 Tom Tromey <tom@tromey.com>
2696 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
2698 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
2700 * tui/tui-win.c (tui_source_window_base::set_new_height)
2701 (tui_source_window_base::set_new_height)
2702 (make_invisible_and_set_new_height)
2703 (tui_source_window_base::do_make_visible_with_new_height)
2704 (tui_source_window_base::do_make_visible_with_new_height):
2706 * tui/tui-layout.c (show_source_disasm_command, show_data)
2707 (show_source_or_disasm_and_command): Update.
2708 * tui/tui-layout.c (show_layout): Update.
2710 2019-07-17 Tom Tromey <tom@tromey.com>
2712 * tui/tui-layout.c (make_data_window): Remove.
2713 (show_data): Unify creation and re-initialization cases.
2715 2019-07-17 Tom Tromey <tom@tromey.com>
2717 * tui/tui-layout.c (make_source_window, make_disasm_window):
2719 (show_data): Unify creation and re-initialization cases.
2721 2019-07-17 Tom Tromey <tom@tromey.com>
2723 * tui/tui-layout.c (make_command_window): Remove.
2724 (show_source_disasm_command, show_source_or_disasm_and_command):
2725 Unify creation and re-initialization cases.
2727 2019-07-17 Tom Tromey <tom@tromey.com>
2729 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
2730 creation and re-initialization cases.
2732 2019-07-17 Tom Tromey <tom@tromey.com>
2734 * tui/tui-regs.c (tui_get_register): Return void.
2736 2019-07-17 Tom Tromey <tom@tromey.com>
2738 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
2741 2019-07-17 Tom Tromey <tom@tromey.com>
2743 * tui/tui-layout.c (show_source_disasm_command): Simplify window
2746 2019-07-17 Tom Tromey <tom@tromey.com>
2748 * tui/tui.h (tui_set_layout_by_name): Don't declare.
2749 * tui/tui-regs.c (tui_reg_layout): New function.
2750 (tui_show_registers, tui_reg_command): Use it.
2751 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
2752 (tui_layout_command): Rename from tui_set_layout_by_name. Change
2754 (tui_layout_command): Remove.
2756 2019-07-17 Tom Tromey <tom@tromey.com>
2758 * tui/tui-layout.h (tui/tui-layout): Return void.
2759 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
2761 2019-07-17 Tom Tromey <tom@tromey.com>
2763 * tui/tui-layout.c (show_source_disasm_command, show_data):
2765 (reset_locator): Remove.
2766 (show_source_or_disasm_and_command): Update.
2768 2019-07-17 Tom Tromey <tom@tromey.com>
2770 * tui/tui-source.c (tui_source_window_base::reset): Remove
2772 * tui/tui-layout.c (make_command_window, make_source_window)
2773 (make_disasm_window, make_data_window)
2774 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
2775 (reset_locator, show_source_or_disasm_and_command): Update.
2776 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
2778 (struct tui_source_window_base) <reset>: Likewise.
2780 2019-07-17 Tom Tromey <tom@tromey.com>
2782 * tui/tui-layout.c (show_source_disasm_command): Use
2784 (reset_locator): New function.
2785 (init_and_make_win): Remove.
2786 (show_source_or_disasm_and_command): Use reset_locator.
2788 2019-07-17 Tom Tromey <tom@tromey.com>
2790 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
2792 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
2794 * tui/tui-source.c (tui_source_window_base::reset): New method.
2795 * tui/tui-layout.c (make_command_window): Don't call
2797 (make_source_window, make_disasm_window): Don't call
2798 make_source_or_disasm_window.
2799 (make_data_window): Don't call init_and_make_win. Change calling
2801 (show_source_disasm_command, show_data): Simplify.
2802 (make_source_or_disasm_window): Remove.
2803 (show_source_or_disasm_and_command): Simplify.
2804 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
2805 (struct tui_source_window_base) <reset>: Likewise.
2806 <execution_info>: Remove initializer.
2807 * tui/tui-data.c (tui_source_window_base): Initialize
2810 2019-07-17 Tom Tromey <tom@tromey.com>
2812 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
2815 2019-07-17 Tom Tromey <tom@tromey.com>
2817 * tui/tui.c (tui_rl_other_window): Update.
2818 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
2819 superclass method first. Always iterate over regs_content.
2820 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
2822 * tui/tui-win.c (tui_set_focus_command): Update.
2824 2019-07-17 Tom Tromey <tom@tromey.com>
2826 * tui/tui-win.c (tui_set_focus_command): Rename from
2827 tui_set_focus. Call tui_enable.
2828 (tui_set_focus_command): Remove.
2830 2019-07-17 Tom Tromey <tom@tromey.com>
2832 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2834 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2836 (tui_data_window::refresh_window): Call refresh_window on data
2837 items. Always call superclass refresh_window.
2838 (tui_win_info::refresh): Remove.
2839 (tui_source_window_base::refresh_window): Update.
2840 (tui_refresh_all): Update.
2841 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2843 (show_source_or_disasm_and_command): Likewise.
2844 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2845 (struct tui_source_window_base) <refresh>: Likewise.
2847 2019-07-17 Tom Tromey <tom@tromey.com>
2849 * tui/tui-winsource.c (tui_clear_source_content)
2850 (tui_show_source_content): Update.
2851 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2852 whether content is empty.
2853 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2856 2019-07-17 Tom Tromey <tom@tromey.com>
2858 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2860 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2861 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2863 2019-07-17 Tom Tromey <tom@tromey.com>
2865 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2866 (struct tui_data_item_window): Update.
2868 2019-07-17 Tom Tromey <tom@tromey.com>
2870 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2871 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2874 2019-07-17 Tom Tromey <tom@tromey.com>
2876 * tui/tui-winsource.h (tui_erase_source_content)
2877 (tui_clear_source_content): Remove "display_prompt" parameter.
2878 * tui/tui-winsource.c (tui_update_source_window_as_is)
2879 (tui_update_source_windows_with_addr): Update.
2880 (tui_clear_source_content): Remove "display_prompt" parameter.
2881 (tui_erase_source_content): Likewise. Simplify.
2882 (tui_show_source_content): Update.
2883 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2884 * tui/tui-stack.c (tui_show_frame_info): Update.
2885 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2888 2019-07-17 Tom Tromey <tom@tromey.com>
2890 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2891 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2893 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2896 2019-07-17 Tom Tromey <tom@tromey.com>
2898 * tui/tui-winsource.c (tui_clear_source_content)
2899 (tui_show_source_content, tui_show_exec_info_content)
2900 (tui_clear_exec_info_content): Update.
2901 * tui/tui-stack.c (tui_show_locator_content): Update.
2902 (tui_show_frame_info): Update.
2903 * tui/tui-source.h (tui_source_window): Don't declare.
2904 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2905 from tui_source_is_displayed.
2906 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2908 (struct tui_source_window_base) <content_in_use>: New field. Now
2910 (struct tui_source_window) <showing_source_p>: New method.
2911 (TUI_SRC_WIN): Change cast.
2912 * tui/tui-data.c (tui_initialize_static_data): Update.
2914 2019-07-17 Tom Tromey <tom@tromey.com>
2916 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2918 * tui/tui-source.c (tui_source_window::location_matches_p): New
2920 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2922 * tui/tui-data.h (struct tui_source_window_base)
2923 <location_matches_p>: New method.
2924 (struct tui_source_window, struct tui_disasm_window)
2925 <location_matches_p>: Likewise.
2927 2019-07-17 Tom Tromey <tom@tromey.com>
2929 * tui/tui-win.c (tui_set_win_height_command): Rename from
2931 (tui_set_win_height_command): Remove.
2933 2019-07-17 Tom Tromey <tom@tromey.com>
2935 * tui/tui-source.c (tui_source_window): New constructor. Add
2937 (~tui_source_window): New destructor.
2938 (tui_source_window::style_changed): New method.
2939 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2940 (tui_attach_detach_observers): Update.
2941 * tui/tui-data.h (struct tui_source_window): Make constructor not
2942 inline. Add destructor.
2943 (struct tui_source_window) <style_changed>: New method.
2944 <m_observable>: New member.
2946 2019-07-17 Tom Tromey <tom@tromey.com>
2948 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2949 * tui/tui-win.c (tui_resize_all): Fix typo.
2951 2019-07-17 Tom Tromey <tom@tromey.com>
2953 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2954 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2955 (tui_refresh_all): Remove "list" parameter. Use foreach.
2956 * tui/tui-win.c (window_name_completer): Use foreach.
2957 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2958 (update_tab_width): Likewise.
2959 * tui/tui-layout.c (show_layout): Update.
2960 * tui/tui-data.h (class tui_window_iterator): New.
2961 (struct all_tui_windows): New.
2962 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
2964 2019-07-17 Tom Tromey <tom@tromey.com>
2966 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
2967 parameter. Don't reference globals.
2968 (tui_reg_command): Update.
2970 2019-07-17 Tom Tromey <tom@tromey.com>
2972 * tui/tui-regs.c (tui_show_registers): Simplify.
2974 2019-07-17 Tom Tromey <tom@tromey.com>
2976 * tui/tui-regs.c (tui_show_registers): Update.
2977 (tui_show_register_group): Add win_info parameter.
2979 2019-07-17 Tom Tromey <tom@tromey.com>
2981 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
2982 Rename from tui_display_reg_element_at_line.
2983 (tui_data_window::display_registers_from_line): Update.
2984 * tui/tui-data.h (struct tui_data_window)
2985 <display_reg_element_at_line>: New method.
2987 2019-07-17 Tom Tromey <tom@tromey.com>
2989 * tui/tui-regs.h (tui_display_registers_from)
2990 (tui_display_registers_from_line): Don't declare.
2991 * tui/tui-windata.c (tui_data_window::display_all_data)
2992 (tui_data_window::refresh_all)
2993 (tui_data_window::do_scroll_vertical): Update.
2994 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
2995 from tui_display_registers_from.
2996 (tui_display_reg_element_at_line): Update.
2997 (tui_data_window::display_registers_from_line): Rename from
2998 tui_display_registers_from_line.
2999 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
3000 display_registers_from_line>: New methods.
3002 2019-07-17 Tom Tromey <tom@tromey.com>
3004 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
3005 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
3006 from tui_erase_data_content.
3007 (tui_data_window::display_all_data)
3008 (tui_data_window::refresh_all)
3009 (tui_data_window::do_scroll_vertical): Update.
3010 * tui/tui-regs.c (tui_show_registers): Update.
3011 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3014 2019-07-17 Tom Tromey <tom@tromey.com>
3016 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3019 (tui_data_window::delete_data_content_windows): Rename from
3020 tui_delete_data_content_windows.
3021 (tui_data_window::display_all_data)
3022 (tui_data_window::do_scroll_vertical): Update.
3023 * tui/tui-data.h (struct tui_data_window)
3024 <delete_data_content_windows>: New method.
3026 2019-07-17 Tom Tromey <tom@tromey.com>
3028 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3029 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3031 2019-07-17 Tom Tromey <tom@tromey.com>
3033 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3034 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3035 from tui_display_all_data.
3037 (tui_data_window::do_make_visible_with_new_height): Update.
3038 * tui/tui-regs.c (tui_show_registers): Update.
3039 * tui/tui-layout.c (tui_set_layout): Update.
3040 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3043 2019-07-17 Tom Tromey <tom@tromey.com>
3045 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3046 * tui/tui-windata.c (tui_display_data_from): Remove.
3047 (tui_data_window::refresh_all): Update.
3049 2019-07-17 Tom Tromey <tom@tromey.com>
3051 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3052 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3053 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3054 tui_display_registers_from_line.
3055 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3056 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3057 "force_display" parameter.
3059 2019-07-17 Tom Tromey <tom@tromey.com>
3061 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3063 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3064 Rename from tui_first_reg_element_no_inline.
3065 (tui_display_reg_element_at_line)
3066 (tui_display_registers_from_line): Update.
3067 * tui/tui-data.h (struct tui_data_window)
3068 <first_reg_element_no_inline>: New method.
3070 2019-07-17 Tom Tromey <tom@tromey.com>
3072 * tui/tui-windata.c (tui_display_data_from)
3073 (tui_data_window::do_scroll_vertical): Update.
3074 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3075 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3076 Rename from tui_line_from_reg_element_no.
3077 (tui_display_registers_from_line): Update.
3078 * tui/tui-data.h (struct tui_data_window)
3079 <line_from_reg_element_no>: New method.
3081 2019-07-17 Tom Tromey <tom@tromey.com>
3083 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3084 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3085 tui_last_regs_line_no.
3086 (tui_display_reg_element_at_line)
3087 (tui_display_registers_from_line): Update.
3088 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
3091 2019-07-17 Tom Tromey <tom@tromey.com>
3094 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
3095 (tui_update_breakpoint_info): Add "being_deleted" parameter.
3096 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3097 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
3098 (tui_update_breakpoint_info): Likewise.
3099 * tui/tui-hooks.c (tui_event_create_breakpoint)
3100 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
3103 2019-07-17 Tom Tromey <tom@tromey.com>
3105 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
3107 2019-07-17 Tom Tromey <tom@tromey.com>
3109 * tui/tui-winsource.c (tui_update_source_window_as_is)
3110 (tui_update_source_windows_with_addr): Update.
3111 * tui/tui-source.h (tui_set_source_content)
3112 (tui_show_symtab_source): Add "win_info" parameter.
3113 * tui/tui-source.c (tui_set_source_content): Add "win_info"
3115 (tui_show_symtab_source): Likewise.
3117 2019-07-17 Tom Tromey <tom@tromey.com>
3119 * tui/tui-wingeneral.c
3120 (tui_check_and_display_highlight_if_needed): Check can_highlight.
3122 2019-07-17 Tom Tromey <tom@tromey.com>
3124 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
3125 (struct tui_cmd_window) <can_scroll>: New method.
3126 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
3129 2019-07-17 Tom Tromey <tromey@adacore.com>
3131 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
3132 do_field_signed>: Rename. Change type of "value".
3133 * ui-out.c (ui_out::field_signed): Rename from field_int.
3134 Change type of "value".
3135 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
3137 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
3138 do_field_int. Change type of "value".
3139 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
3140 do_field_int. Change type of "value".
3141 * tracepoint.c (trace_status_mi, tfind_1)
3142 (print_one_static_tracepoint_marker): Update.
3143 * thread.c (print_thread_info_1, print_selected_thread_frame):
3145 * stack.c (print_frame, print_frame_info): Update.
3146 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3148 * source.c (print_source_lines_base): Update.
3149 * skip.c (info_skip_command): Update.
3150 * record-btrace.c (btrace_ui_out_decode_error)
3151 (btrace_call_history_src_line): Update.
3152 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3154 * progspace.c (print_program_space): Update.
3155 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3156 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3157 do_field_int. Change type of "value".
3158 * mi/mi-out.c (mi_ui_out::do_table_begin)
3159 (mi_ui_out::do_table_header): Update.
3160 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3162 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3163 (mi_cmd_data_list_changed_registers, output_register)
3164 (mi_cmd_data_read_memory, mi_load_progress)
3165 (mi_cmd_trace_frame_collected): Update.
3166 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3168 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3169 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3170 (mi_cmd_var_list_children, varobj_update_one): Update.
3171 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3172 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3173 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3174 * inferior.c (print_inferior): Update.
3175 * gdb_bfd.c (print_one_bfd): Update.
3176 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3178 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3179 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3180 do_field_int. Change type of "value".
3181 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3182 do_field_int. Change type of "value".
3183 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3184 (print_one_breakpoint_location, print_it_catch_fork)
3185 (print_one_catch_fork, print_it_catch_vfork)
3186 (print_one_catch_vfork, print_it_catch_solib)
3187 (print_it_catch_exec, print_it_ranged_breakpoint)
3188 (print_mention_watchpoint, print_mention_masked_watchpoint)
3189 (bkpt_print_it, update_static_tracepoint): Update.
3190 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3191 * break-catch-syscall.c (print_it_catch_syscall): Update.
3192 * ada-tasks.c (print_ada_task_info): Update.
3193 * ada-lang.c (print_it_exception, print_mention_exception):
3196 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3198 PR breakpoints/24541
3199 * gdbarch.c: Regenerate.
3200 * gdbarch.h: Regenerate.
3201 * gdbarch.sh: Adjust return type and parameter types for
3202 'stap_adjust_register'.
3203 (i386_stap_adjust_register): Adjust signature and return new
3205 * stap-probe.c (stap_parse_register_operand): Adjust use of
3206 'gdbarch_stap_adjust_register'.
3208 2019-07-17 Tom Tromey <tromey@adacore.com>
3210 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
3212 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
3214 (struct s390_process_info): Add initializers.
3215 (s390_add_process): Use new.
3216 (s390_linux_nat_target::low_forget_process): Use delete.
3217 (s390_linux_nat_target::low_new_fork)
3218 (s390_linux_nat_target::stopped_by_watchpoint)
3219 (s390_linux_nat_target::low_prepare_to_resume)
3220 (s390_linux_nat_target::insert_watchpoint)
3221 (s390_linux_nat_target::insert_hw_breakpoint)
3222 (s390_linux_nat_target::remove_watchpoint)
3223 (s390_linux_nat_target::remove_hw_breakpoint): Update.
3225 2019-07-16 John Baldwin <jhb@FreeBSD.org>
3227 * aarch64-fbsd-nat.c: Include regcache.h.
3228 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
3230 (aarch64_fbsd_nat_target::fetch_registers)
3231 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
3233 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
3235 2019-07-16 John Baldwin <jhb@FreeBSD.org>
3237 * fbsd-nat.c: Include gdbarch.h.
3239 2019-07-15 Tom Tromey <tromey@adacore.com>
3241 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3243 2019-07-15 Tom Tromey <tromey@adacore.com>
3245 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3246 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3247 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3248 * cli-out.c (cli_ui_out::do_field_int): New method.
3249 * ui-out.c (ui_out::field_unsigned): New method.
3250 * symfile.c (generic_load): Use field_unsigned.
3251 (print_transfer_performance): Likewise.
3252 * record-btrace.c (ui_out_field_uint): Remove.
3253 (btrace_call_history_insn_range, btrace_call_history): Use
3255 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3257 * ui-out.h (class ui_out) <field_unsigned>: New method.
3258 <do_field_unsigned>: Likewise.
3260 2019-07-15 Tom Tromey <tromey@adacore.com>
3262 * mi/mi-main.c (list_available_thread_groups): Use field_string.
3263 * mi/mi-interp.c (mi_memory_changed): Use field_string.
3264 * target.c (flash_erase_command): Use field_string.
3265 * infrun.c (print_signal_received_reason): Use field_string.
3266 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
3267 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
3269 * ada-tasks.c (print_ada_task_info): Use field_string.
3271 2019-07-15 Tom Tromey <tromey@adacore.com>
3273 * target.c (flash_erase_command): Use field_core_addr.
3274 * symfile.c (generic_load): Use field_core_addr.
3275 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3276 Use field_core_addr.
3277 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3280 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3282 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
3283 value if its desired type is smaller than a CORE_ADDR and signed.
3285 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3287 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
3288 of changes to field names, and use new is_reference field to
3289 decide if a property is a reference or not.
3290 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
3292 (struct dwarf2_property_baton): Update header comment, rename
3293 'referenced_type' to 'property_type' and update comments.
3294 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3295 default property type, store in property baton, update to take
3296 accound of renamed field.
3297 (read_func_scope): Update call to attr_to_dynamic_prop.
3298 (read_array_type): Likewise.
3299 (dwarf2_per_cu_addr_sized_int_type): New function.
3300 (read_subrange_index_type): Move type finding code to
3301 dwarf2_per_cu_addr_sized_int_type.
3302 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3303 (dwarf2_per_cu_addr_type): New function.
3304 (set_die_type): Update calls to attr_to_dynamic_prop.
3306 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3308 * dwarf2read.c (read_subrange_index_type): New function.
3309 (read_subrange_type): Move code into new function and call it.
3310 * gdbtypes.c (create_range_type): Add some asserts.
3312 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3314 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3315 update return statements.
3316 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3317 declaration, and update comment to match.
3318 * gdbtypes.c (resolve_dynamic_array): Update call to
3319 dwarf2_evaluate_property to match new return type.
3321 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3323 * valarith.c (value_subscripted_rvalue): Change lowerbound
3324 parameter type from int to LONGEST.
3325 * value.h (value_subscripted_rvalue): Likewise in declaration.
3327 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3329 * cli/cli-utils.c (info_print_command_completer): New function.
3330 * cli/cli-utils.h: Add 'completer.h' include, and forward
3331 declaration for 'struct cmd_list_element'.
3332 (info_print_command_completer): Declare.
3333 * stack.c (_initialize_stack): Add completer for 'info locals' and
3335 * symtab.c (_initialize_symtab): Add completer for 'info
3336 variables' and 'info functions'.
3337 * NEWS: Mention completion for additional info commands.
3339 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3341 * cli/cli-utils.c (extract_info_print_args): Delete.
3342 (extract_arg_maybe_quoted): Delete.
3343 (info_print_options_defs): New variable.
3344 (make_info_print_options_def_group): New function.
3345 (extract_info_print_options): Define new function.
3346 * cli/cli-utils.h (extract_info_print_args): Delete.
3347 (struct info_print_options): New structure.
3348 (extract_info_print_options): Declare new function.
3349 * stack.c (info_locals_command): Update to use new
3350 extract_info_print_options, also add a header comment.
3351 (info_args_command): Likewise.
3352 * symtab.c (info_variables_command): Likewise.
3353 (info_functions_command): Likewise.
3355 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3357 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3358 to extract string arguments.
3359 * common/common-utils.c (extract_string_maybe_quoted): New function.
3360 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3362 2019-07-11 Tom Tromey <tromey@adacore.com>
3364 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3365 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3366 * top.h (gdbinit): Don't declare.
3367 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3369 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3370 * top.c (gdb_init): Don't call init_cli_cmds.
3372 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3374 2019-07-11 Tom Tromey <tromey@adacore.com>
3376 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3377 after it has been moved.
3379 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3381 * valops.c (value_must_coerce_to_target): Change return type to
3383 * value.h (value_must_coerce_to_target): Likewise.
3385 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
3387 * breakpoint.c (is_hardware_watchpoint): Remove
3388 forward-declaration.
3389 (is_masked_watchpoint): Change return type to bool.
3390 (is_tracepoint): Likewise.
3391 (is_breakpoint): Likewise.
3392 (is_hardware_watchpoint): Likewise.
3393 (is_watchpoint): Likewise.
3394 (is_no_memory_software_watchpoint): Likewise.
3395 (is_catchpoint): Likewise.
3396 (breakpoint_1): Make FILTER parameter's return type bool.
3397 is_masked_watchpoint): Change return type to bool.
3398 (save_breakpoints): Make FILTER parameter's return type bool.
3399 * breakpoint.h (is_breakpoint): Change return type to bool.
3400 (is_watchpoint): Likewise.
3401 (is_catchpoint): Likewise.
3402 (is_tracepoint): Likewise.
3404 2019-07-10 Tom Tromey <tom@tromey.com>
3406 * defs.h: Don't include gdbarch.h.
3407 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3408 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3409 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3410 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3411 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3412 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3413 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3414 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3415 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3416 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3417 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3418 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3419 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3420 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3421 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3422 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3423 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3424 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3425 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3426 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3427 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3428 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3429 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3430 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3431 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3432 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3433 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3435 2019-07-10 Tom Tromey <tromey@adacore.com>
3437 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3438 * breakpoint.c (init_ada_exception_breakpoint): Register as
3440 (print_one_breakpoint_location, print_one_breakpoint): Use
3441 is_ada_exception_catchpoint.
3442 * ada-lang.c (class ada_catchpoint_location): Pass
3443 bp_loc_software_breakpoint to bp_location constructor.
3444 (is_ada_exception_catchpoint): New function.
3446 2019-07-10 Tom Tromey <tromey@adacore.com>
3448 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3450 (struct arm_exidx_entry): New method operator<.
3451 (struct arm_exidx_data) <section_maps>: Change type.
3452 (arm_exidx_data_free): Remove.
3453 (arm_exidx_data_key): Change type. Move lower.
3454 (arm_exidx_new_objfile): Update.
3455 (arm_compare_exidx_entries): Remove.
3456 (arm_find_exidx_entry, _initialize_arm_tdep)
3458 2019-07-10 Tom Tromey <tromey@adacore.com>
3460 * solib-spu.c (ocl_program_data_key): Change type.
3461 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3464 2019-07-10 Tom Tromey <tromey@adacore.com>
3466 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3467 (struct solib_aix_inferior_data) <library_list>: Change type.
3468 (solib_aix_inferior_data_handle): Change type.
3469 (get_solib_aix_inferior_data): Update.
3470 (solib_aix_free_library_list): Remove.
3471 (library_list_start_library): Update.
3472 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3474 (solib_aix_get_library_list)
3475 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3476 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3478 2019-07-10 Tom Tromey <tromey@adacore.com>
3480 * solib-dsbt.c (struct dsbt_info): Add initializers.
3481 (solib_dsbt_pspace_data): Change type.
3482 (dsbt_pspace_data_cleanup): Remove.
3483 (get_dsbt_info, _initialize_dsbt_solib): Update.
3485 2019-07-10 Tom Tromey <tromey@adacore.com>
3487 * spu-tdep.c (spu_overlay_data): Change type.
3488 (spu_get_overlay_table, spu_overlay_new_objfile)
3489 (_initialize_spu_tdep): Update.
3491 2019-07-10 Tom Tromey <tromey@adacore.com>
3493 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
3495 (dbx_objfile_data_key): Change type and declare later.
3496 (DBX_SYMFILE_INFO): Rewrite.
3497 * dbxread.c (dbx_objfile_data_key): Change type.
3498 (dbx_symfile_init): Update.
3499 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
3500 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3501 (stabsect_build_psymtabs, _initialize_dbxread): Update.
3503 2019-07-10 Tom Tromey <tromey@adacore.com>
3505 * jit.c (jit_program_space_key): Change type. Move lower.
3506 (get_jit_program_space_data): Update.
3507 (jit_program_space_data_cleanup): Remove.
3508 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
3510 (struct jit_program_space_data): Add initializers.
3512 2019-07-10 Tom Tromey <tromey@adacore.com>
3514 * solib-darwin.c (struct darwin_info): Add initializers.
3515 (solib_darwin_pspace_data): Change type.
3516 (darwin_pspace_data_cleanup): Remove.
3517 (get_darwin_info, _initialize_darwin_solib): Update.
3519 2019-07-10 Tom Tromey <tromey@adacore.com>
3521 * remote-sim.c (struct sim_inferior_data): Add initializers,
3522 constructor, and destructor.
3523 (sim_inferior_data_key): Change type. Move lower.
3524 (check_for_duplicate_sim_descriptor): Update.
3525 (get_sim_inferior_data): Use new. Update.
3526 (~sim_inferior_data_cleanup): Rename from
3527 sim_inferior_data_cleanup. Simplify.
3528 (gdbsim_close_inferior, simulator_command)
3529 (sim_command_completer, _initialize_remote_sim): Update.
3530 (next_pid, INITIAL_PID): Move earlier.
3532 2019-07-10 Tom Tromey <tromey@adacore.com>
3534 * python/python-internal.h (create_thread_object): Return
3536 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
3537 * python/py-inferior.c (struct threadlist_entry): Add
3539 <thread_obj>: Now a gdbpy_ref.
3540 (thread_to_thread_object): Update.
3541 (add_thread_object): Use new.
3542 (delete_thread_object): Use delete.
3543 (infpy_threads): Update.
3544 (py_free_inferior): Update. Construct "inf_obj" after acquiring
3547 2019-07-10 Tom Tromey <tromey@adacore.com>
3549 * valops.c (value_cast): Specialize error message for Ada.
3551 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3553 * breakpoint.c (breakpoint_1): Update doc and parameter names.
3555 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3557 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
3558 bpstat_should_step): Return bool, adjust comments.
3559 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
3560 bpstat_should_step): Likewise.
3562 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3564 * features/Makefile: Use feature target descriptions for Arm.
3565 * features/arm/arm-core.c: Generate new file.
3566 * features/arm/arm-fpa.c: Likewise.
3567 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
3568 * features/arm/arm-m-profile.c: Likewise.
3569 * features/arm/arm-vfpv2.c: Likewise.
3570 * features/arm/arm-vfpv3.c: Likewise.
3571 * features/arm/xscale-iwmmxt.c: Likewise.
3572 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
3574 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3576 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
3579 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3581 * features/aarch64-pauth.c: Regenerate.
3583 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
3585 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
3587 (bpstat_what): Use false instead of 0.
3589 2019-07-09 Pedro Alves <palves@redhat.com>
3591 * break-catch-throw.c (is_exception_catchpoint): New.
3592 * breakpoint.c (print_one_breakpoint_location): New parameter
3593 'raw_loc'. Handle it. Use
3594 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
3595 looking at the breakpoint's type.
3596 (print_one_breakpoint): If handling "maint info breakpoints", also
3597 print locations of exception catchpoints.
3598 * breakpoint.h (is_exception_catchpoint): Declare.
3600 2019-07-09 Pedro Alves <palves@redhat.com>
3602 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
3604 (allocate_location_exception_catchpoint): New.
3605 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
3606 (initialize_throw_catchpoint_ops): Install
3607 allocate_location_exception_catchpoint as allocate_location
3609 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
3610 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
3612 (breakpoint_address_is_meaningful): Delete.
3613 (bl_address_is_meaningful): New.
3614 (breakpoint_locations_match): Adjust comment.
3615 (bp_location_from_bp_type): New, factored out of...
3616 (bp_location::bp_location(breakpoint *)): ... this.
3617 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
3619 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
3620 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
3621 breakpoint_address_is_meaningful.
3622 (bp_locations_compare): Adjust comment.
3623 (update_global_location_list): Use bl_address_is_meaningful
3624 instead of breakpoint_address_is_meaningful.
3625 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
3627 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
3628 * python/py-breakpoint.c (bppy_get_location): No longer check
3629 whether location is null.
3631 2019-07-09 Pedro Alves <palves@redhat.com>
3634 * breakpoint.c (print_one_breakpoint_location): Remove
3635 single-location assert.
3637 2019-07-09 Tom Tromey <tom@tromey.com>
3639 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
3640 * configure: Rebuild.
3641 * configure.ac: Change common to gdbsupport.
3642 * gdbsupport: Rename from common.
3643 * acinclude.m4: Change common to gdbsupport.
3644 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
3645 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
3647 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
3648 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
3649 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
3650 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
3651 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
3652 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
3653 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
3654 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
3655 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
3656 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
3657 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
3658 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
3659 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
3660 coff-pe-read.c, command.h, compile/compile-c-support.c,
3661 compile/compile-c.h, compile/compile-cplus-symbols.c,
3662 compile/compile-cplus-types.c, compile/compile-cplus.h,
3663 compile/compile-loc2c.c, compile/compile.c, completer.c,
3664 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
3665 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
3666 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
3667 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
3668 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
3669 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
3670 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
3671 features/aarch64-core.c, features/aarch64-fpu.c,
3672 features/aarch64-pauth.c, features/aarch64-sve.c,
3673 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
3674 features/i386/32bit-core.c, features/i386/32bit-linux.c,
3675 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
3676 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
3677 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
3678 features/i386/64bit-core.c, features/i386/64bit-linux.c,
3679 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
3680 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
3681 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
3682 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
3683 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
3684 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
3685 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
3686 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
3687 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
3688 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
3689 go32-nat.c, guile/guile.c, guile/scm-ports.c,
3690 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
3691 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
3692 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
3693 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
3694 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
3695 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
3696 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
3697 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
3698 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
3699 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
3700 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
3701 minsyms.c, mips-linux-tdep.c, namespace.h,
3702 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
3703 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
3704 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
3705 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
3706 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
3707 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
3708 nat/linux-waitpid.c, nat/mips-linux-watch.c,
3709 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
3710 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
3711 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
3712 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
3713 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
3714 procfs.c, producer.c, progspace.h, psymtab.h,
3715 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
3716 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
3717 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
3718 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
3719 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
3720 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
3721 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
3722 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
3723 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
3724 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
3725 target-memory.c, target.c, target.h, target/waitstatus.c,
3726 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
3727 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
3728 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
3729 unittests/array-view-selftests.c,
3730 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
3731 unittests/common-utils-selftests.c,
3732 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
3733 unittests/format_pieces-selftests.c,
3734 unittests/function-view-selftests.c,
3735 unittests/lookup_name_info-selftests.c,
3736 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
3737 unittests/mkdir-recursive-selftests.c,
3738 unittests/observable-selftests.c,
3739 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
3740 unittests/parse-connection-spec-selftests.c,
3741 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
3742 unittests/scoped_fd-selftests.c,
3743 unittests/scoped_mmap-selftests.c,
3744 unittests/scoped_restore-selftests.c,
3745 unittests/string_view-selftests.c, unittests/style-selftests.c,
3746 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
3747 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
3748 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
3749 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
3750 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
3751 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
3753 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3755 * linespec.c (decode_digits_list_mode): Set explicit_line to a
3757 (decode_digits_ordinary): Set explicit_line field in sal.
3758 * symtab.c (skip_prologue_sal): Don't skip prologue for a
3759 symtab_and_line that was set on an explicit line number in
3760 assembler code. Do always update the recorded symtab and line if
3761 we do skip the prologue.
3763 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3765 * breakpoint.c (set_breakpoint_location_function): Remove
3766 explicit_loc parameter.
3767 (momentary_breakpoint_from_master): Update call to
3768 set_breakpoint_location_function.
3769 (add_location_to_breakpoint): Likewise.
3771 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3773 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
3774 required features based on default bfd type when no specific bfd
3777 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3779 * NEWS: Mention that GDB printf and eval commands can now print
3780 C-style and Ada-style convenience var strings without
3781 calling the inferior.
3782 * printcmd.c (printf_c_string): Locally print GDB internal var
3783 instead of transiting via the inferior.
3784 (printf_wide_c_string): Likewise.
3786 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3788 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
3790 2019-07-04 Tom Tromey <tom@tromey.com>
3793 * tui/tui-winsource.c (tui_clear_source_content): Update.
3794 (tui_source_window_base::set_is_exec_point_at): Fix comment.
3795 (tui_update_breakpoint_info): Update.
3796 (tui_set_exec_info_content): Update.
3797 * tui/tui-source.c (tui_set_source_content_nil): Update.
3798 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
3800 * tui/tui-data.h (enum tui_bp_flag): New.
3801 (tui_bp_flags): New enum flags type.
3802 (struct tui_source_element) <break_mode>: Change type. Rename
3804 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
3805 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
3807 * tui/tui-winsource.h: Fix comment.
3809 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3811 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
3812 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
3813 (store_fpregs_to_thread)
3814 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3815 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
3816 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
3817 (IWMMXT_REGS_SIZE): Add define.
3818 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
3819 (fetch_vfp_regs, store_vfp_regs)
3820 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3821 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
3823 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3825 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
3827 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
3828 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
3829 (ARM_INT_REGISTER_SIZE): ...to this.
3830 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3831 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3832 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3833 (arm_linux_collect_gregset, supply_nwfpe_register)
3834 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3836 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3837 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3838 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3839 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3840 (arm_return_in_memory, arm_store_return_value)
3841 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3842 (arm_record_ld_st_multiple): Likewise.
3843 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3844 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3846 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3848 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3849 AARCH64_DISPLACED_MODIFIED_INSNS.
3850 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3851 (aarch64_displaced_step_copy_insn): Likewise.
3852 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3853 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3854 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3855 ARM_DISPLACED_MODIFIED_INSNS.
3856 * arm-tdep.c (arm_gdbarch_init): Likewise.
3857 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3858 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3859 (struct arm_displaced_step_closure): Use
3860 ARM_DISPLACED_MODIFIED_INSNS.
3862 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3864 * features/Makefile: Remove unused xml files.
3865 * features/aarch64.xml: Remove.
3866 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3867 * features/i386/amd64-avx-avx512.xml: Remove.
3868 * features/i386/amd64-avx-linux.xml: Remove.
3869 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3870 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3871 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3872 * features/i386/amd64-avx-mpx.xml: Remove.
3873 * features/i386/amd64-avx.xml: Remove.
3874 * features/i386/amd64-linux.xml: Remove.
3875 * features/i386/amd64-mpx-linux.xml: Remove.
3876 * features/i386/amd64-mpx.xml: Remove.
3877 * features/i386/amd64.xml: Remove.
3878 * features/i386/i386-avx-avx512-linux.xml: Remove.
3879 * features/i386/i386-avx-avx512.xml: Remove.
3880 * features/i386/i386-avx-linux.xml: Remove.
3881 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3882 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3883 * features/i386/i386-avx-mpx-linux.xml: Remove.
3884 * features/i386/i386-avx-mpx.xml: Remove.
3885 * features/i386/i386-avx.xml: Remove.
3886 * features/i386/i386-linux.xml: Remove.
3887 * features/i386/i386-mmx-linux.xml: Remove.
3888 * features/i386/i386-mmx.xml: Remove.
3889 * features/i386/i386-mpx-linux.xml: Remove.
3890 * features/i386/i386-mpx.xml: Remove.
3891 * features/i386/i386.xml: Remove.
3892 * features/i386/x32-avx-avx512-linux.xml: Remove.
3893 * features/i386/x32-avx-linux.xml: Remove.
3894 * features/i386/x32-linux.xml: Remove.
3896 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3898 * regformats/aarch64.dat: Remove.
3899 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3900 * regformats/i386/amd64-avx-linux.dat: Remove.
3901 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3902 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3903 * regformats/i386/amd64-linux.dat: Remove.
3904 * regformats/i386/amd64-mpx-linux.dat: Remove.
3905 * regformats/i386/amd64.dat: Remove.
3906 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3907 * regformats/i386/i386-avx-linux.dat: Remove.
3908 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3909 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3910 * regformats/i386/i386-linux.dat: Remove.
3911 * regformats/i386/i386-mmx-linux.dat: Remove.
3912 * regformats/i386/i386-mpx-linux.dat: Remove.
3913 * regformats/i386/i386.dat: Remove.
3914 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3915 * regformats/i386/x32-avx-linux.dat: Remove.
3916 * regformats/i386/x32-linux.dat: Remove.
3918 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3920 * aarch64-tdep.c: Remove xml self tests.
3921 * amd64-linux-tdep.c: Likewise.
3922 * amd64-tdep.c: Likewise.
3923 * i386-linux-tdep.c: Likewise.
3924 * i386-tdep.c: Likewise.
3926 2019-07-03 Pedro Alves <palves@redhat.com>
3929 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3930 (pipe_cmd_option_defs): New.
3931 (make_pipe_cmd_options_def_group): New.
3932 (pipe_command): Use gdb::option::process_options.
3933 (pipe_command_completer): New function.
3934 (_initialize_cli_cmds): Install completer for "pipe" command.
3936 2019-07-03 Pedro Alves <palves@redhat.com>
3938 * cli/cli-option.c (union option_value) <string>: New field.
3939 (struct option_def_and_value): Add ctor, move ctor, dtor and
3940 use DISABLE_COPY_AND_ASSIGN.
3941 (option_def_and_value::clear_value): New.
3942 (parse_option, save_option_value_in_ctx, get_val_type_str)
3943 (add_setshow_cmds_for_options): Handle var_string.
3944 * cli-option.h (union option_def::var_address) <string>: New
3946 (struct string_option_def): New.
3947 * maint-test-options.c (struct test_options_opts): Add default
3948 ctor and use DISABLE_COPY_AND_ASSIGN.
3949 <string_opt>: New field.
3950 (test_options_opts::~test_options_opts): New.
3951 (test_options_opts::dump): Also dump "-string".
3952 (test_options_option_defs): Install "string.
3954 2019-07-03 Pedro Alves <palves@redhat.com>
3956 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3957 option_value with a null enumeration.
3958 (complete_options): Save the option values in the context.
3959 (save_option_value_in_ctx): New, factored out from ...
3960 (process_options): ... here.
3961 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
3963 * maint-test-options.c (test_options_opts::dump): New, factored
3965 (maintenance_test_options_command_mode): ... here.
3966 (maintenance_test_options_command_completion_result): Delete.
3967 (maintenance_test_options_command_completion_text): Update
3969 (maintenance_show_test_options_completion_result): Change
3970 prototype. Just print
3971 maintenance_test_options_command_completion_text.
3972 (save_completion_result): New.
3973 (maintenance_test_options_completer_mode): Pass options context to
3974 complete_options, and then save a dump.
3975 (_initialize_maint_test_options): Use add_cmd to install "maint
3976 show test-options-completion-result".
3978 2019-07-03 Pedro Alves <palves@redhat.com>
3980 * NEWS (New commands): Mention "with" and "maint with".
3981 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
3982 (with_command, with_command_completer): New.
3983 (pipe_command): Adjust to new repeat_previous
3985 (_initialize_cli_cmds): Install the "with" command and its "w"
3987 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
3989 * cli/cli-setshow.c (parse_cli_var_uinteger)
3990 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
3991 argument strings for all var_types.
3992 (get_setshow_command_value_string): New, factored out from ...
3993 (do_show_command): ... this.
3994 * cli/cli-setshow.h: Include <string>.
3995 (get_setshow_command_value_string): Declare.
3996 * command.h (repeat_previous): Now returns const char *. Adjust
3998 * maint.c: Include "cli/cli-cmds.h".
3999 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4000 (_initialize_maint_cmds): Register the "maintenance with" command.
4001 * top.c (repeat_previous): Move bits from pipe_command here:
4002 Return the saved command line, if any; error out if there's no
4003 command to relaunch.
4005 2019-07-03 Pedro Alves <palves@redhat.com>
4007 * NEWS (New commands): Mention "maint set/show test-settings"
4008 instead of "maint test-settings".
4009 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4010 (maintenance_test_settings_set_list): Rename to ...
4011 (maintenance_set_test_settings_list): ... this.
4012 (maintenance_test_settings_show_list): Rename to ...
4013 (maintenance_show_test_settings_list): ... this.
4014 (maintenance_test_settings_cmd): Delete.
4015 (maintenance_test_settings_set_cmd): ...
4016 (maintenance_set_test_settings_cmd): ... this.
4017 (maintenance_test_settings_show_cmd): ...
4018 (maintenance_show_test_settings_cmd): ... this.
4019 (maintenance_test_settings_show_value_cmd):
4020 (maintenance_show_test_settings_value_cmd): ... this.
4021 (_initialize_maint_test_settings): No longer install the "maint
4022 test-settings" prefix command. Rename "maint test-settings set"
4023 to "maint set test-settings", and "maint test-settings show" to
4024 "maint show test-settings". Adjust all subcommands.
4026 2019-07-03 Pedro Alves <palves@redhat.com>
4028 * maint-test-settings.c: Fix file's intro comment. Replace all
4029 references to "test-options" with references to "test-settings",
4032 2019-07-03 Pedro Alves <palves@redhat.com>
4034 * maint-test-settings.c (maintenance_test_settings_xxx)
4035 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4037 (maintenance_test_settings_enums): Use them.
4038 (maintenance_test_settings_enum): Default to
4039 maintenance_test_settings_xxx.
4040 (_initialize_maint_test_settings): Initialize
4041 MAINTENANCE_TEST_SETTINGS_FILENAME.
4043 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4045 * breakpoint.h (remove_breakpoints_inf): Change return type to
4046 void, move function documentation here.
4047 * breakpoint.c (remove_breakpoints_inf): Change return type to
4048 void, move function documentation to header.
4050 2019-07-02 Pedro Alves <palves@redhat.com>
4052 * NEWS (Completion improvements): Mention "info threads".
4053 * thread.c (struct info_threads_opts, info_threads_option_defs)
4054 (make_info_threads_options_def_group): New.
4055 (info_threads_command): Use gdb::option::process_options.
4056 (info_threads_command_completer): New.
4057 (_initialize_thread): Use gdb::option::build_help to build the
4058 help text for "info threads".
4060 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4062 * defs.h (generic_load): Move from here...
4063 * symfile.h (generic_load): ... to here. Rename name parameter
4065 * symfile.c (generic_load): Add comment.
4067 2019-07-01 Tom Tromey <tromey@adacore.com>
4070 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4071 declaration of without_params. Fix formatting.
4073 2019-07-01 Tom Tromey <tromey@adacore.com>
4075 * ada-exp.y (find_primitive_type): Update.
4076 * ada-lang.h (ada_lookup_symbol): Update.
4077 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4079 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4081 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4083 PR breakpoints/24541
4084 * gdbarch.c: Regenerate.
4085 * gdbarch.h: Regenerate.
4086 * gdbarch.sh: Add 'stap_adjust_register'.
4087 * i386-tdep.c: Include '<unordered_set>'.
4088 (i386_stap_adjust_register): New function.
4089 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4090 * stap-probe.c (stap_parse_register_operand): Call
4091 'gdbarch_stap_adjust_register'.
4093 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4096 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4097 * python/python.c (do_start_initialization): Use 'xmalloc'
4098 instead of 'PyMem_Malloc'.
4100 2019-06-28 Tom Tromey <tromey@adacore.com>
4102 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4105 2019-06-27 Tom Tromey <tromey@adacore.com>
4107 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
4109 (arm_find_mapping_symbol, arm_record_special_symbol)
4110 (_initialize_arm_tdep): Update.
4111 (arm_objfile_data_free): Remove.
4113 2019-06-27 Tom Tromey <tromey@adacore.com>
4115 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4116 to cp_print_static_field.
4118 2019-06-26 Tom Tromey <tromey@adacore.com>
4120 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
4121 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
4124 2019-06-26 Alan Hayward <alan.hayward@arm.com>
4126 * features/aarch64-core.c (create_feature_aarch64_core):
4128 * features/aarch64-core.xml: Add cpsr flags.
4130 2019-06-26 Alan Hayward <alan.hayward@arm.com>
4132 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4133 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4135 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4137 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4139 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4141 (arm_record_special_symbol): Don't insert new symbol in sorted
4142 position, push it at the end.
4144 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4146 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4147 (arm_mapping_symbol_s): Remove.
4148 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4149 (arm_mapping_symbol_vec): New typedef.
4150 (struct arm_per_objfile): Add constructor.
4151 <section_maps>: Change type to
4152 std::unique_ptr<arm_mapping_symbol_vec[]>.
4153 (arm_compare_mapping_symbols): Remove.
4154 (arm_find_mapping_symbol): Adjust to section_maps type change.
4155 (arm_objfile_data_free): Call delete on arm_per_objfile.
4156 (arm_record_special_symbol): Adjust to section_maps type change.
4157 Allocate arm_per_objfile with new.
4159 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4161 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4162 with the command prefix.
4164 2019-06-25 Tom Tromey <tom@tromey.com>
4166 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4167 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4169 2019-06-25 Tom Tromey <tom@tromey.com>
4171 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4173 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4176 2019-06-25 Tom Tromey <tom@tromey.com>
4178 * tui/tui-winsource.c
4179 (tui_source_window_base::set_is_exec_point_at): Add check against
4182 2019-06-25 Tom Tromey <tom@tromey.com>
4184 * tui/tui-source.c (tui_set_source_content): Don't check before
4186 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4188 2019-06-25 Tom Tromey <tom@tromey.com>
4190 * tui/tui-winsource.h (tui_update_source_window_as_is)
4191 (tui_alloc_source_buffer, tui_line_is_displayed)
4192 (tui_addr_is_displayed): Change type of win_info.
4193 * tui/tui-winsource.c (tui_update_source_window_as_is)
4194 (tui_clear_source_content, tui_show_source_line)
4195 (tui_show_source_content, tui_source_window_base::refill)
4196 (tui_source_window_base::set_is_exec_point_at)
4197 (tui_source_window_base::set_is_exec_point_at)
4198 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4199 (tui_alloc_source_buffer, tui_line_is_displayed)
4200 (tui_addr_is_displayed): Change type of win_info. Update.
4201 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4202 (tui_source_window_base::do_make_visible_with_new_height):
4204 * tui/tui-source.c (tui_set_source_content)
4205 (tui_set_source_content_nil)
4206 (tui_source_window::do_scroll_vertical): Update.
4207 * tui/tui-layout.c (show_layout): Update.
4208 * tui/tui-disasm.c (tui_set_disassem_content)
4209 (tui_disasm_window::do_scroll_vertical): Update.
4210 * tui/tui-data.h (tui_win_content): Remove.
4211 (struct tui_gen_win_info) <content, content_size>: Remove.
4212 (struct tui_source_element): Add initializers and destructor.
4213 (union tui_which_element, struct tui_win_element): Remove.
4214 (struct tui_source_window_base) <content>: New field.
4215 (struct tui_data_window): Remove destructor.
4216 (tui_alloc_content, tui_free_win_content)
4217 (tui_free_all_source_wins_content): Don't declare.
4218 * tui/tui-data.c (tui_initialize_static_data): Update.
4219 (init_content_element, tui_alloc_content): Remove.
4220 (~tui_gen_win_info): Update.
4221 (~tui_data_window, tui_free_all_source_wins_content)
4222 (tui_free_win_content, free_content, free_content_elements):
4225 2019-06-25 Tom Tromey <tom@tromey.com>
4227 * tui/tui-winsource.h (tui_clear_source_content)
4228 (tui_erase_source_content, tui_show_source_content): Change type
4230 * tui/tui-winsource.c (tui_clear_source_content)
4231 (tui_erase_source_content, tui_show_source_content): Change type
4233 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4234 * tui/tui-source.h (tui_set_source_content_nil): Change type of
4236 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4238 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4240 2019-06-25 Tom Tromey <tom@tromey.com>
4242 * tui/tui-winsource.c (tui_clear_source_content)
4243 (tui_source_window_base::set_is_exec_point_at): Update.
4244 * tui/tui-source.c (tui_set_source_content_nil): Update.
4245 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4247 * tui/tui-data.c (init_content_element): Update.
4249 2019-06-25 Tom Tromey <tom@tromey.com>
4251 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4252 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4253 * tui/tui-layout.c (init_and_make_win): Update.
4254 * tui/tui.h (enum tui_win_type): Update.
4255 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
4256 tui_win_is_auxillary.
4257 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
4258 tui_win_is_auxillary.
4260 2019-06-25 Tom Tromey <tom@tromey.com>
4262 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
4263 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
4264 (tui_delete_data_content_windows, tui_display_all_data)
4265 (tui_data_window::do_scroll_vertical, tui_display_data_from):
4267 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
4268 * tui/tui-regs.c (tui_last_regs_line_no)
4269 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4270 (tui_show_registers): Update.
4271 (tui_show_register_group): Return void. Update.
4272 (tui_display_registers_from, tui_display_reg_element_at_line)
4273 (tui_display_registers_from_line, tui_check_register_values):
4275 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
4277 (struct tui_data_window) <regs_content>: Now a std::vector.
4278 <regs_content_count>: Remove.
4279 (tui_add_content_elements, tui_free_data_content): Don't declare.
4280 * tui/tui-data.c (tui_data_window::clear_detail): Update.
4281 (init_content_element): Remove DATA_WIN case. Add assert.
4282 (tui_add_content_elements): Remove.
4283 (tui_data_window): Update.
4284 (tui_free_data_content): Remove.
4285 (free_content_elements): Remove DATA_WIN case.
4287 2019-06-25 Tom Tromey <tom@tromey.com>
4289 * tui/tui-data.c (tui_data_item_window): Update.
4290 * tui/tui-windata.h (tui_check_data_values): Don't declare.
4291 * tui/tui-windata.c (tui_display_all_data)
4292 (tui_display_data_from_line): Update.
4293 (tui_check_data_values): Remove.
4294 * tui/tui-regs.c (tui_show_register_group)
4295 (tui_display_reg_element_at_line): Update.
4296 * tui/tui-hooks.c (tui_register_changed)
4297 (tui_refresh_frame_and_register_information): Call
4298 tui_check_register_values.
4299 * tui/tui-data.h (struct tui_data_window) <data_content,
4300 data_content_count, data_type>: Remove.
4301 (enum tui_data_type): Remove.
4303 * tui/tui-data.c (tui_data_window::clear_detail)
4304 (~tui_data_window): Update.
4306 2019-06-25 Tom Tromey <tom@tromey.com>
4308 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4310 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4311 Rename from tui_first_data_item_displayed. Update.
4312 (tui_data_window::refresh_all)
4313 (tui_data_window::do_scroll_vertical): Update.
4314 * tui/tui-data.h (struct tui_data_window)
4315 <first_data_item_displayed>: Declare new method.
4317 2019-06-25 Tom Tromey <tom@tromey.com>
4319 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4320 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4322 (tui_initialize_static_data): ...here.
4324 2019-06-25 Tom Tromey <tom@tromey.com>
4326 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4327 (tui_display_registers_from, tui_check_register_values): Update.
4328 (tui_display_register): Remove win_info parameter; update.
4329 (tui_get_register): Change type of parameters.
4330 * tui/tui-data.h (struct tui_data_element): Remove.
4331 (union tui_which_element) <data>: Remove.
4332 <data_window>: Change type.
4333 (struct tui_data_item_window): New.
4334 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4336 (~tui_data_item_window): New destructor.
4337 (free_content_elements): Remove DATA_ITEM_WIN case.
4339 2019-06-25 Tom Tromey <tom@tromey.com>
4341 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
4344 2019-06-25 Tom Tromey <tom@tromey.com>
4346 * tui/tui-data.h (struct tui_command_element): Remove.
4347 (union tui_which_element) <command>: Remove.
4348 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
4350 (free_content_elements): Remove CMD_WIN case.
4352 2019-06-25 Tom Tromey <tom@tromey.com>
4354 * tui/tui-layout.c (tui_set_layout): Update.
4355 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4356 * tui/tui-data.c (layout_def): Update.
4358 2019-06-25 Tom Tromey <tom@tromey.com>
4360 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4361 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4362 (tui_source_window_base::set_new_height): Update.
4363 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4365 (tui_set_locator_fullname, tui_set_locator_info)
4366 (tui_show_frame_info): Update.
4367 * tui/tui-source.c (tui_set_source_content)
4368 (tui_source_is_displayed): Update.
4369 * tui/tui-layout.c (show_source_disasm_command, show_data)
4370 (show_source_or_disasm_and_command): Update.
4371 * tui/tui-disasm.c (tui_set_disassem_content)
4372 (tui_get_begin_asm_address): Update.
4373 * tui/tui-data.h (struct tui_locator_element): Remove.
4374 (union tui_which_element) <locator>: Remove.
4375 (struct tui_locator_window): New.
4376 (tui_locator_win_info_ptr): Change return type.
4377 * tui/tui-data.c (_locator): Change type.
4378 (tui_locator_win_info_ptr): Change return type.
4379 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4380 (tui_alloc_content): Add assert.
4382 2019-06-25 Tom Tromey <tom@tromey.com>
4384 * tui/tui-winsource.c
4385 (tui_exec_info_window::maybe_allocate_content): New method.
4386 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4387 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4388 (make_source_or_disasm_window): Add cast.
4389 * tui/tui-data.h (union tui_which_element) <simple_string>:
4391 (struct tui_source_info): New.
4392 (struct tui_source_window_base) <execution_info>: Change type.
4393 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4394 case, and add assert.
4395 (tui_alloc_content): Add assert.
4397 2019-06-25 Tom Tromey <tom@tromey.com>
4399 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4400 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4401 * tui/tui-data.c (tui_alloc_win_info): Remove.
4403 2019-06-25 Tom Tromey <tom@tromey.com>
4405 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4406 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4409 2019-06-25 Tom Tromey <tom@tromey.com>
4411 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4412 make_visible_with_new_height method.
4413 (tui_win_info::make_visible_with_new_height): New method.
4414 (tui_source_window_base::do_make_visible_with_new_height)
4415 (tui_data_window::do_make_visible_with_new_height)
4416 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4417 (make_visible_with_new_height): Remove.
4418 (tui_resize_all, tui_adjust_win_heights): Use
4419 make_visible_with_new_height method.
4420 * tui/tui-data.h (struct tui_win_info)
4421 <do_make_visible_with_new_height, make_visible_with_new_height>:
4423 (struct tui_source_window_base, struct tui_data_window)
4424 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4427 2019-06-25 Tom Tromey <tom@tromey.com>
4429 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4431 (update_tab_width): Call update_tab_width method.
4432 * tui/tui-data.h (struct tui_win_info)
4433 (struct tui_source_window_base) <update_tab_width>: New methods.
4435 2019-06-25 Tom Tromey <tom@tromey.com>
4437 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4439 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4441 (tui_gen_win_info::make_visible): Update.
4442 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4444 * tui/tui-data.h (enum tui_box): New enum.
4445 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4447 2019-06-25 Tom Tromey <tom@tromey.com>
4449 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4450 init_and_make_win for EXEC_INFO_WIN.
4451 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4453 (struct tui_win_info) <~tui_win_info>: Inline.
4454 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4456 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4457 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4459 (tui_initialize_static_data): Update.
4460 (~tui_gen_win_info): Handle more cleanup here.
4461 (~tui_source_window_base): Delete "execution_info".
4462 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4464 2019-06-25 Tom Tromey <tom@tromey.com>
4466 * tui/tui-layout.c (make_command_window): Don't set
4468 (show_source_disasm_command): Call the reset method.
4469 (show_data): Don't set can_highlight. Call the reset method.
4470 (tui_gen_win_info::reset): Rename from init_gen_win_info
4471 (init_and_make_win): Simplify. Return tui_gen_win_info.
4472 (show_source_or_disasm_and_command): Call the reset method.
4473 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4474 (struct tui_cmd_window): Set can_highlight.
4476 2019-06-25 Tom Tromey <tom@tromey.com>
4478 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4480 (tui_make_visible, tui_make_invisible): Rewrite.
4481 (tui_win_info::make_visible): Remove.
4482 (tui_source_window_base::make_visible): Update.
4483 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4484 method. Moved from...
4485 (struct tui_win_info) <make_visible>: ...here.
4487 2019-06-25 Tom Tromey <tom@tromey.com>
4489 * tui/tui-winsource.c
4490 (tui_source_window_base::do_scroll_horizontal): Remove direction
4492 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
4493 direction parameter.
4494 * tui/tui-win.c (tui_win_info::forward_scroll)
4495 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4496 (tui_win_info::right_scroll): Update.
4497 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4498 direction parameter.
4499 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
4500 direction parameter.
4501 * tui/tui-data.h (enum tui_scroll_direction): Remove.
4502 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
4503 Remove direction parameter.
4504 (struct tui_source_window_base, struct tui_source_window)
4505 (struct tui_disasm_window, struct tui_data_window)
4506 (struct tui_cmd_window): Update.
4508 2019-06-25 Tom Tromey <tom@tromey.com>
4510 * tui/tui-winsource.h (tui_set_exec_info_content)
4511 (tui_show_exec_info_content, tui_erase_exec_info_content)
4512 (tui_clear_exec_info_content, tui_update_exec_info): Change
4513 argument to tui_source_window_base.
4514 * tui/tui-winsource.c (tui_set_exec_info_content)
4515 (tui_show_exec_info_content, tui_erase_exec_info_content)
4516 (tui_clear_exec_info_content, tui_update_exec_info): Change
4517 argument to tui_source_window_base.
4519 2019-06-25 Tom Tromey <tom@tromey.com>
4521 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
4522 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
4524 2019-06-25 Tom Tromey <tom@tromey.com>
4526 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
4529 2019-06-25 Tom Tromey <tom@tromey.com>
4531 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
4533 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
4535 * tui/tui-source.c (tui_set_source_content): Update.
4536 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4538 2019-06-25 Tom Tromey <tom@tromey.com>
4540 * tui/tui-win.c (window_name_completer, tui_set_focus)
4541 (tui_all_windows_info): Use name method.
4542 * tui/tui-data.h (struct tui_gen_win_info)
4543 (struct tui_source_window, struct tui_disasm_window)
4544 (struct tui_data_window, struct tui_cmd_window) <name>: New
4546 (tui_win_name): Don't declare.
4547 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
4548 (tui_win_name): Remove.
4550 2019-06-25 Tom Tromey <tom@tromey.com>
4552 * tui/tui-winsource.h (tui_update_source_window)
4553 (tui_update_source_window_as_is): Change parameter type.
4554 * tui/tui-winsource.c (tui_update_source_window): Change win_info
4555 to be a tui_source_window_base.
4556 (tui_update_source_window_as_is): Likewise.
4557 * tui/tui-win.c (make_visible_with_new_height): Update.
4559 2019-06-25 Tom Tromey <tom@tromey.com>
4561 * tui/tui-winsource.c (tui_erase_source_content)
4562 (tui_show_source_content, tui_show_exec_info_content)
4563 (tui_erase_exec_info_content): Use refresh_window method.
4564 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
4565 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
4566 from tui_refresh_win.
4567 (tui_data_window::refresh_window): New method.
4568 (tui_win_info::refresh, tui_source_window_base::refresh)
4569 (tui_refresh_all): Use refresh_window method.
4570 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
4572 * tui/tui-regs.c (tui_display_register): Call refresh_window
4574 * tui/tui-layout.c (show_source_disasm_command)
4575 (show_source_or_disasm_and_command): Call refresh_window method.
4576 * tui/tui-data.h (struct tui_gen_win_info)
4577 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
4580 2019-06-25 Tom Tromey <tom@tromey.com>
4582 * tui/tui.c (tui_rl_other_window, tui_enable)
4583 (tui_is_window_visible, tui_get_command_dimension): Update.
4584 * tui/tui-winsource.c (tui_update_source_window_as_is)
4585 (tui_clear_source_content, tui_erase_source_content)
4586 (tui_show_source_line, tui_source_window_base::refill)
4587 (tui_source_window_base::do_scroll_horizontal)
4588 (tui_source_window_base::set_is_exec_point_at)
4589 (tui_update_breakpoint_info, tui_set_exec_info_content)
4590 (tui_alloc_source_buffer, tui_line_is_displayed)
4591 (tui_addr_is_displayed): Update.
4592 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4593 (tui_check_and_display_highlight_if_needed)
4594 (tui_win_info::make_visible, tui_win_info::refresh)
4595 (tui_refresh_all): Update.
4596 * tui/tui-windata.c (tui_first_data_item_displayed)
4597 (tui_delete_data_content_windows, tui_erase_data_content)
4598 (tui_display_all_data, tui_data_window::refresh_all)
4599 (tui_check_data_values): Update.
4600 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
4601 (tui_set_win_focus_to, tui_win_info::forward_scroll)
4602 (tui_win_info::backward_scroll, tui_refresh_all_win)
4603 (tui_resize_all, tui_set_focus, tui_all_windows_info)
4604 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
4605 (tui_source_window_base::set_new_height)
4606 (tui_data_window::set_new_height)
4607 (make_invisible_and_set_new_height)
4608 (make_visible_with_new_height, new_height_ok)
4609 (parse_scrolling_args): Update.
4610 * tui/tui-stack.c (tui_show_frame_info): Update.
4611 * tui/tui-source.c (tui_set_source_content)
4612 (tui_set_source_content_nil, tui_source_is_displayed)
4613 (tui_source_window::do_scroll_vertical): Update.
4614 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4615 (tui_display_registers_from, tui_display_reg_element_at_line)
4616 (tui_check_register_values, tui_reg_command): Update.
4617 * tui/tui-layout.c (tui_default_win_height)
4618 (show_source_disasm_command, show_data, init_and_make_win)
4619 (show_source_or_disasm_and_command): Update.
4620 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
4621 (tui_redisplay_readline, tui_mld_flush)
4622 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
4624 * tui/tui-disasm.c (tui_set_disassem_content)
4625 (tui_disasm_window::do_scroll_vertical): Update.
4626 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
4628 (struct tui_win_info): Derive from tui_gen_win_info.
4629 <~tui_win_info>: Mark as override.
4630 <generic>: Remove member.
4631 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
4632 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
4633 (~tui_data_window, ~tui_win_info)
4634 (tui_free_all_source_wins_content): Update.
4635 * tui/tui-command.c (tui_refresh_cmd_win): Update.
4637 2019-06-25 Tom Tromey <tom@tromey.com>
4639 * tui/tui-layout.c (init_and_make_win): Use new.
4640 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
4641 destructor, initializers.
4642 (tui_alloc_generic_win_info): Don't declare.
4643 * tui/tui-data.c (_locator): Add argument to constructor.
4644 (source_win, disasm_win): New globals.
4645 (exec_info): Remove.
4646 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4648 (tui_alloc_generic_win_info): Remove.
4649 (init_content_element): Use new.
4650 (tui_win_info::tui_win_info): Update.
4651 (free_content_elements) <case DATA_WIN>: Use delete.
4653 2019-06-25 Tom Tromey <tom@tromey.com>
4655 * tui/tui-wingeneral.c (tui_refresh_win): Update.
4656 * tui/tui-windata.c (tui_first_data_item_displayed)
4657 (tui_delete_data_content_windows): Update.
4658 * tui/tui-win.c (tui_data_window::set_new_height): Update.
4659 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4660 (tui_display_registers_from, tui_check_register_values): Update.
4661 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
4663 * tui/tui-data.c (init_content_element): Update. Allocate the new
4665 (tui_free_data_content): Update.
4666 (free_content_elements) <case DATA_WIN>: Free the window.
4668 2019-06-25 Tom Tromey <tom@tromey.com>
4670 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
4672 * tui/tui-layout.c (make_command_window)
4673 (show_source_disasm_command, show_data, init_and_make_win)
4674 (show_source_or_disasm_and_command): Update.
4675 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
4677 <can_highight, is_highlighted>: Now bool.
4678 (tui_set_win_highlight): Don't declare.
4679 * tui/tui-data.c (tui_set_win_highlight): Remove.
4681 2019-06-25 Tom Tromey <tom@tromey.com>
4683 * tui/tui-wingeneral.c (make_visible): Remove check of window
4686 2019-06-25 Tom Tromey <tom@tromey.com>
4688 * tui/tui-win.c (tui_win_info::max_height)
4689 (tui_cmd_window::max_height): New methods.
4690 (new_height_ok): Call max_height.
4691 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
4692 <max_height>: New method.
4694 2019-06-25 Tom Tromey <tom@tromey.com>
4696 * tui/tui-win.c (tui_source_window_base::set_new_height)
4697 (tui_data_window::set_new_height): New methods.
4698 (make_invisible_and_set_new_height): Call set_new_height method.
4699 * tui/tui-data.h (struct tui_win_info)
4700 (struct tui_source_window_base, struct tui_data_window)
4701 <set_new_height>: New method.
4703 2019-06-25 Tom Tromey <tom@tromey.com>
4705 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
4706 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
4707 tui_refresh_data_win.
4708 * tui/tui-win.c (tui_source_window_base::refresh_all): New
4710 (tui_refresh_all_win): Call the refresh_all method.
4711 (tui_set_focus): Likewise.
4712 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
4713 (struct tui_source_window_base, struct tui_data_window) <refresh>:
4716 2019-06-25 Tom Tromey <tom@tromey.com>
4718 * tui/tui-winsource.h (tui_refill_source_window)
4719 (tui_set_is_exec_point_at): Don't declare.
4720 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4721 (tui_source_window_base::refill): Rename from
4722 tui_refill_source_window.
4723 (tui_source_window_base::do_scroll_horizontal): Update.
4724 (tui_source_window_base::set_is_exec_point_at): Rename from
4725 tui_set_is_exec_point_at.
4726 (tui_update_all_breakpoint_info): Update.
4727 * tui/tui-stack.c (tui_show_frame_info): Update.
4728 * tui/tui-layout.c (show_data): Add cast.
4729 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
4730 * tui/tui-data.h (struct tui_source_window_base) <refill,
4731 set_is_exec_point_at>: New methods.
4732 (tui_source_windows, tui_add_to_source_windows): Update types.
4733 (tui_add_to_source_windows): Remove redundant declaration.
4734 * tui/tui-data.c (source_windows): Store tui_source_window_base.
4735 (tui_source_windows): Change return type.
4736 (tui_clear_source_windows_detail): Update.
4737 (tui_add_to_source_windows): Change type of parameter.
4738 (tui_free_all_source_wins_content): Update.
4740 2019-06-25 Tom Tromey <tom@tromey.com>
4742 * tui/tui-wingeneral.c (tui_win_info::refresh)
4743 (tui_source_window_base::refresh): New methods.
4744 (tui_refresh_all): Call the refresh method.
4745 * tui/tui-data.h (struct tui_win_info)
4746 (struct tui_source_window_base) <refresh>: New method.
4748 2019-06-25 Tom Tromey <tom@tromey.com>
4750 * tui/tui.h (tui_is_window_visible): Return bool.
4751 * tui/tui.c (tui_is_window_visible): Return bool.
4752 * tui/tui-wingeneral.c (tui_make_window, make_visible)
4753 (tui_make_visible, tui_make_invisible)
4754 (tui_win_info::make_visible)
4755 (tui_source_window_base::make_visible, make_all_visible)
4756 (tui_make_all_visible, tui_make_all_invisible): Update.
4757 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
4758 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
4760 (struct tui_win_info, struct tui_source_window_base)
4761 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
4762 * tui/tui-data.c (tui_init_generic_part): Update.
4764 2019-06-25 Tom Tromey <tom@tromey.com>
4766 * tui/tui-wingeneral.c (tui_win_info::make_visible)
4767 (tui_source_window_base::make_visible): New methods.
4768 (make_all_visible): Make method call.
4769 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
4770 (struct tui_source_window_base, struct tui_cmd_window): Override
4772 (tui_win_is_source_type): Don't declare.
4773 * tui/tui-data.c (tui_win_is_source_type): Remove.
4775 2019-06-25 Tom Tromey <tom@tromey.com>
4777 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
4780 2019-06-25 Tom Tromey <tom@tromey.com>
4782 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
4783 Inline constructor. Add initializers for members.
4784 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
4785 constructors; now inline in class.
4787 2019-06-25 Tom Tromey <tom@tromey.com>
4789 * tui/tui-regs.c (tui_show_registers): Update.
4790 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
4792 * tui/tui-data.c (tui_data_window::clear_detail)
4793 (tui_data_window): Update.
4795 2019-06-25 Tom Tromey <tom@tromey.com>
4797 * tui/tui-windata.c (tui_display_all_data)
4798 (tui_display_data_from_line, tui_display_data_from)
4799 (tui_check_data_values, tui_data_window::do_scroll_vertical):
4801 * tui/tui-regs.c (tui_last_regs_line_no)
4802 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4803 (tui_show_registers, tui_show_register_group)
4804 (tui_display_registers_from, tui_display_reg_element_at_line)
4805 (tui_display_registers_from_line, tui_check_register_values)
4806 (tui_reg_next, tui_reg_prev): Update.
4807 * tui/tui-layout.c (tui_set_layout, show_data): Update.
4808 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
4810 (struct tui_win_info) <detail>: Remove. Add new fields from
4812 (TUI_DATA_WIN): Add cast.
4813 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
4814 (~tui_data_window): Simplify.
4816 2019-06-25 Tom Tromey <tom@tromey.com>
4818 * tui/tui-layout.c (show_source_disasm_command)
4819 (show_source_or_disasm_and_command): Update.
4820 * tui/tui-io.c (update_cmdwin_start_line)
4821 (tui_redisplay_readline): Update.
4822 * tui/tui-data.h (struct tui_command_info): Remove.
4823 (struct tui_win_info) <detail>: Remove command_info member.
4824 (struct tui_data_window) <start_line>: New member, from
4826 (TUI_CMD_WIN): Add casts.
4828 2019-06-25 Tom Tromey <tom@tromey.com>
4830 * tui/tui-winsource.c (tui_update_source_window)
4831 (tui_refill_source_window)
4832 (tui_source_window_base::do_scroll_horizontal)
4833 (tui_update_breakpoint_info, tui_set_exec_info_content)
4834 (tui_show_exec_info_content, tui_erase_exec_info_content)
4835 (tui_clear_exec_info_content): Update.
4836 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4838 * tui/tui-win.c (make_invisible_and_set_new_height)
4839 (make_visible_with_new_height): Update.
4840 * tui/tui-source.c (tui_set_source_content)
4841 (tui_show_symtab_source): Update.
4842 * tui/tui-layout.c (extract_display_start_addr)
4843 (show_source_disasm_command, show_data)
4844 (make_source_or_disasm_window)
4845 (show_source_or_disasm_and_command): Update.
4846 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4847 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4849 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4850 to tui_source_window_base.
4851 (struct tui_win_info) <detail>: Remove source_info member.
4852 (struct tui_source_window_base) <has_locator>: Inline.
4853 Move contents from tui_source_info; rename has_locator member to
4855 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4856 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4858 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4860 (tui_free_all_source_wins_content): Cast to
4861 tui_source_window_base.
4863 2019-06-25 Tom Tromey <tom@tromey.com>
4865 * tui/tui-win.c (make_invisible_and_set_new_height)
4866 (make_visible_with_new_height): Call has_locator method.
4867 * tui/tui-layout.c (show_source_disasm_command, show_data)
4868 (show_source_or_disasm_and_command): Update for bool change.
4869 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4870 (tui_win_info) <has_locator>: New method.
4871 (struct tui_source_window_base) <has_locator>: New method.
4872 (tui_win_has_locator): Don't declare.
4873 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4874 from tui_win_has_locator.
4875 (tui_source_window_base): Use false, not FALSE.
4877 2019-06-25 Tom Tromey <tom@tromey.com>
4879 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4880 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4881 clear_detail method directly.
4882 (tui_clear_win_detail): Remove.
4884 2019-06-25 Tom Tromey <tom@tromey.com>
4886 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4887 "this", not TUI_DISASM_WIN.
4889 2019-06-25 Tom Tromey <tom@tromey.com>
4891 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4893 * tui/tui-winsource.c
4894 (tui_source_window_base::do_scroll_horizontal): Rename from
4895 tui_horizontal_source_scroll.
4896 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4897 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4898 from tui_vertical_data_scroll.
4899 * tui/tui-win.h (tui_scroll): Don't declare.
4900 * tui/tui-win.c (tui_win_info::forward_scroll)
4901 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4902 (tui_win_info::right_scroll): Rename and update.
4903 (tui_scroll_forward_command, tui_scroll_backward_command)
4904 (tui_scroll_left_command, tui_scroll_right_command): Update.
4905 (tui_scroll): Remove.
4906 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4907 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4908 from tui_vertical_source_scroll.
4909 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4910 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4911 from tui_vertical_disassem_scroll.
4912 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4913 do_scroll_horizontal>: New methods.
4914 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4916 (struct tui_source_window_base): Add do_scroll_horizontal.
4917 (struct tui_source_window, struct tui_disasm_window): Add
4919 (struct tui_data_window, struct tui_cmd_window): Add
4920 do_scroll_horizontal and do_scroll_vertical.
4921 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4923 2019-06-25 Tom Tromey <tom@tromey.com>
4925 * tui/tui-data.h (struct tui_source_window_base): New struct.
4926 (struct tui_source_window): Derive from tui_source_window_base.
4927 (struct tui_disasm_window): New struct.
4928 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4929 from tui_source_window::clear_detail.
4930 (tui_source_window_base): Rename from tui_source_window.
4931 (~tui_source_window_base): Rename from ~tui_source_window.
4932 (tui_alloc_win_info): Create a tui_disasm_window.
4934 2019-06-25 Tom Tromey <tom@tromey.com>
4936 * tui/tui-data.h (struct tui_source_window)
4937 (struct tui_data_window): Declare destructors.
4938 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4940 (tui_win_info): Simplify.
4942 2019-06-25 Tom Tromey <tom@tromey.com>
4944 * tui/tui-winsource.c (tui_display_main)
4945 (tui_update_source_windows_with_addr)
4946 (tui_update_all_breakpoint_info): Update.
4947 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4948 (new_height_ok, parse_scrolling_args): Update.
4949 * tui/tui-stack.c (tui_show_frame_info): Update.
4950 * tui/tui-data.h (struct tui_list): Remove.
4951 (tui_source_windows): Return a reference to a std::vector.
4952 * tui/tui-data.c (source_windows): Now a std::vector.
4953 (tui_source_windows): Change return type.
4954 (tui_clear_source_windows): Rewrite.
4955 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4956 (tui_free_all_source_wins_content): Rewrite.
4958 2019-06-25 Tom Tromey <tom@tromey.com>
4960 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
4961 (struct tui_data_window, struct tui_cmd_window): Declare
4962 clear_detail method.
4963 * tui/tui-data.c (tui_source_window::clear_detail)
4964 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
4966 (tui_clear_win_detail): Simplify.
4968 2019-06-25 Tom Tromey <tom@tromey.com>
4970 * tui/tui-layout.c (make_source_window, make_disasm_window)
4971 (make_source_or_disasm_window): Remove win_info_ptr parameter.
4972 Return the new window.
4973 (show_source_disasm_command, show_data)
4974 (show_source_or_disasm_and_command): Update.
4976 2019-06-25 Tom Tromey <tom@tromey.com>
4978 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
4979 parameter. Return the new window.
4980 (show_source_disasm_command): Update and remove NULL check.
4981 (show_source_or_disasm_and_command): Update.
4983 2019-06-25 Tom Tromey <tom@tromey.com>
4985 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
4987 2019-06-25 Tom Tromey <tom@tromey.com>
4989 * tui/tui-data.h (struct tui_win_info): Make constructor
4990 protected. Make destructor virtual. Add initializers.
4991 (tui_source_window, tui_data_window, tui_cmd_window): New
4993 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
4994 constructor. Add "type" parameter.
4995 (tui_source_window, tui_data_window, tui_cmd_window): New
4997 (tui_alloc_win_info): Instantiate the appropriate subclass.
4999 2019-06-25 Tom Tromey <tom@tromey.com>
5001 * tui/tui-win.c (tui_resize_all): Use delete.
5002 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5004 (tui_free_window): Don't declare.
5005 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5008 2019-06-25 Tom Tromey <tom@tromey.com>
5010 * tui/tui-data.h (struct tui_win_info): Add constructor.
5011 * tui/tui-data.c (tui_alloc_win_info): Use new.
5012 (tui_free_window): Use delete.
5014 2019-06-22 Tom Tromey <tom@tromey.com>
5016 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5018 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5020 2019-06-22 Tom Tromey <tom@tromey.com>
5022 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5024 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5026 2019-06-22 Tom de Vries <tdevries@suse.de>
5028 * dwarf2read.c (create_addrmap_from_aranges)
5029 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5032 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
5034 * dwarf2read.h (dwarf2_section_info_def): Remove.
5035 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5036 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5037 std::vector<dwarf2_section_info>.
5038 (struct dwo_file) <~dwo_file>: Remove.
5039 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5041 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5042 (dwarf2_read_debug_names): Likewise.
5043 (create_debug_types_hash_table): Change parameter type to
5044 array_view, adjust code accordingly.
5045 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5046 (partial_die_info::fixup): Likewise.
5047 (determine_prefix): Likewise.
5048 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5050 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5052 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5054 <~dwo_file>: Remove call to gdb_bfd_unref.
5055 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5056 gdb_bfd_ref_ptr::get.
5058 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5060 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5062 * dwarf2read.c (struct dwo_file): Initialize fields.
5064 (free_dwo_file): Remove, move content to ~dwo_file.
5065 (struct dwo_file_deleter): Remove.
5066 (dwo_file_up>: Remove custom deleter.
5067 (free_dwo_files): Remove.
5068 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5070 (process_skeletonless_type_units): Call unique_ptr::get.
5071 (allocate_dwo_file_hash_table): Add deleter to created hash
5072 table. Change return type to htab_up.
5073 (lookup_dwo_file_slot): Don't memset dwo_file, call
5075 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5076 (create_dwo_unit_in_dwp_v2): Likewise.
5077 (open_and_init_dwo_file): Likewise.
5078 (free_dwo_file_from_slot): Remove.
5080 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5082 * dwarf2read.h (struct dwarf2_section_info) <readin,
5083 is_virtual>: Change type to bool.
5084 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5087 2019-06-19 Tom Tromey <tom@tromey.com>
5089 * tui/tui-data.h (tui_init_content_element): Don't declare.
5091 2019-06-19 Tom Tromey <tom@tromey.com>
5093 * tui/tui-data.h (tui_init_win_info): Don't declare.
5095 2019-06-19 Tom de Vries <tdevries@suse.de>
5097 * dwarf2read.h (abstract_to_concrete): Change type to
5098 std::unordered_map<sect_offset, std::vector<sect_offset>,
5099 gdb::hash_enum<sect_offset>>.
5101 2019-06-19 Tom Tromey <tromey@adacore.com>
5103 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5104 EVAL_AVOID_SIDE_EFFECTS specially.
5106 2019-06-19 Tom Tromey <tromey@adacore.com>
5108 * source-cache.c (highlighter): New global.
5109 (source_cache::get_source_lines): Create a highlighter on demand.
5111 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
5113 * defs.h (deprecated_interactive_hook): Delete declaration.
5114 * interps.c (clear_interpreter_hooks): Remove use of
5115 deprecated_interactive_hook.
5116 * top.c (deprecated_interactive_hook): Delete definition.
5117 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
5119 2019-06-18 Tom de Vries <tdevries@suse.de>
5122 * dwarf2read.h (abstract_to_concrete): Change type from
5123 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
5124 std::unordered_map<sect_offset, std::vector<sect_offset>>.
5125 * dwarf2read.c (read_variable): Update.
5126 (dwarf2_fetch_die_loc_sect_off): Update.
5128 2019-06-17 Tom de Vries <tdevries@suse.de>
5131 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5132 accessing parent[parent_len - 1].
5134 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5137 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5138 call dtrace_process_dof with NULL dof.
5140 2019-06-16 Tom de Vries <tdevries@suse.de>
5143 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5145 2019-06-16 Tom Tromey <tom@tromey.com>
5147 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5148 (make_all_visible): Use address of member.
5150 2019-06-16 Tom Tromey <tom@tromey.com>
5152 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5153 (tui_free_window, free_content, free_content_elements): Remove
5155 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5157 * tui/tui-regs.c (tui_show_register_group)
5158 (tui_display_registers_from, tui_display_reg_element_at_line):
5159 Remove unnecessary cast.
5161 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5163 * linux-nat.c (normal_mask): Delete.
5164 (_initialize_linux_nat): Don't initialise normal_mask.
5166 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5169 * dwarf-index-write.h (write_psymtabs_to_index): Add
5170 dwz_basename parameter.
5171 * dwarf-index-write.c (write_gdbindex): Move file writing to
5172 write_gdbindex_1. Change return type void.
5173 (assert_file_size): Move up, remove filename parameter.
5174 (write_gdbindex_1): New function.
5175 (write_debug_names): Change return type to void, call
5177 (struct index_wip_file): New struct.
5178 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5179 file logic to index_wip_file. Write index for dwz file if
5181 (save_gdb_index_command): Pass basename of dwz file, if present.
5182 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5183 build-id of dwz file, if present.
5184 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5185 (dwarf2_get_dwz_file): Likewise.
5186 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5187 (dwarf2_get_dwz_file): Likewise.
5189 2019-06-16 Tom Tromey <tom@tromey.com>
5191 * coffread.c (process_coff_symbol): Use xstrdup.
5192 * value.c (create_internalvar): Use xstrdup.
5194 2019-06-16 Tom Tromey <tom@tromey.com>
5196 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5197 * breakpoint.c (stopin_command, stopat_command)
5198 (until_break_command, decode_location_default): Remove unnecessary
5200 * utils.c (subset_compare): Remove unnecessary cast.
5201 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5203 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5205 * infcmd.c (path_command): Remove unnecessary cast.
5206 * coffread.c (decode_type): Remove unnecessary cast.
5207 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5208 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5209 * tui/tui-stack.c (tui_show_locator_content)
5210 (tui_show_frame_info): Remove unnecessary cast.
5211 * tui/tui-win.c (tui_scroll_forward_command)
5212 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5213 (parse_scrolling_args): Remove unnecessary cast.
5214 * tui/tui-data.c (init_win_info, tui_del_window)
5215 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5216 (free_content_elements): Remove unnecessary cast.
5217 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
5219 * tui/tui-source.c (tui_set_source_content)
5220 (tui_vertical_source_scroll): Remove unnecessary cast.
5221 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
5223 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
5224 * tui/tui-regs.c (tui_display_registers_from)
5225 (tui_display_register): Remove unnecessary cast.
5226 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
5227 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
5228 (make_visible): Remove unnecessary cast.
5229 * tui/tui-winsource.c (tui_erase_source_content)
5230 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
5232 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
5233 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
5234 * stabsread.c (read_type, read_array_type, read_range_type):
5235 Remove unnecessary cast.
5236 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
5237 (parse_symbol, parse_type, upgrade_type, parse_external)
5238 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5240 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5242 2019-06-16 Tom Tromey <tom@tromey.com>
5244 * tui/tui-data.c (tui_alloc_generic_win_info)
5245 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5248 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5249 Andrew Burgess <andrew.burgess@embecosm.com>
5251 * f-typeprint.c (f_print_type): Don't return early for not
5252 associated or not allocated types.
5253 (f_type_print_varspec_suffix): Add print_rank parameter and print
5254 ranks of array types in case they dangling.
5255 (f_type_print_base): Add print_rank parameter.
5257 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5259 * NEWS: Mention new MI commands.
5260 * break-catch-throw.c (enum exception_event_kind): Move to
5262 (print_mention_exception_catchpoint): Output text as a single
5264 (catch_exception_command_1): Rename to...
5265 (catch_exception_event): ...this, make non-static, update header
5266 command, and change some parameter types.
5267 (catch_catch_command): Update for changes to
5268 catch_exception_command_1.
5269 (catch_throw_command): Likewise.
5270 (catch_rethrow_command): Likewise.
5271 * breakpoint.c (enum exception_event_kind): Delete.
5272 * breakpoint.h (enum exception_event_kind): Moved here from
5273 break-catch-throw.c.
5274 (catch_exception_event): Declare.
5275 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
5276 (mi_cmd_catch_throw): New function.
5277 (mi_cmd_catch_rethrow): New function.
5278 (mi_cmd_catch_catch): New function.
5279 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
5280 'catch-catch' entries.
5281 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
5282 (mi_cmd_catch_rethrow): Declare.
5283 (mi_cmd_catch_catch): Declare.
5285 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5287 * annotate.c (annotate_source_line): Change return type to void,
5288 update implementation to match.
5289 * annotate.h (annotate_source_line): Change return type to void,
5290 update header comment.
5291 * stack.c (print_frame_info): Don't change what frame information
5292 is printed based on whether annotations are on or not.
5294 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5296 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5297 (annotate_source): Make static.
5298 (annotate_source_line): Moved from source.c and renamed from
5299 identify_source_line. Update the return type.
5300 * annotate.h (annotate_source): Delete declaration.
5301 (annotate_source_line): Declaration moved from source.h, and
5302 renamed from identify_source_line. Return type updated.
5303 * source.c (identify_source_line): Moved to annotate.c and renamed
5304 to annotate_source_line.
5305 (info_line_command): Remove check of annotation_level.
5306 * source.h (identify_source_line): Move declaration to annotate.h
5307 and rename to annotate_source_line.
5308 * stack.c: Add 'annotate.h' include.
5309 (print_frame_info): Remove check of annotation_level before
5310 calling annotate_source_line.
5312 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5314 * source-cache.c (source_cache::get_plain_source_lines): Use
5315 open_source_file_with_line_charpos instead of just
5316 open_source_file, remove call to find_source_lines.
5317 (source_cache::get_source_lines): Likewise.
5318 * source.c (find_source_lines): Make static.
5319 (get_filename_and_charpos): Renamed into...
5320 (open_source_file_with_line_charpos): ..this along with changes to
5321 return a scoped_fd, and some other minor clean ups.
5322 (identify_source_line): Use open_source_file_with_line_charpos.
5323 (search_command_helper): Use open_source_file_with_line_charpos
5324 instead of just open_source_file, remove call to
5326 * source.h (open_source_file_with_line_charpos): Declare new
5328 (find_source_lines): Delete declaration.
5330 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5332 * source.c (get_filename_and_charpos): Remove fullname
5334 (identify_source_line): Update call to get_filename_and_charpos.
5336 2019-06-14 Tom Tromey <tromey@adacore.com>
5339 * ui-style.h (skip_ansi_escape): Update comment.
5340 * ui-file.h (class no_terminal_escape_file): New class.
5341 * ui-file.c (no_terminal_escape_file::write)
5342 (no_terminal_escape_file::puts): New methods.
5343 * cli/cli-logging.c (handle_redirections): Use
5344 no_terminal_escape_file.
5346 2019-06-14 Tom Tromey <tromey@adacore.com>
5348 * NEWS: Move convenience variable news above Python news.
5350 2019-06-14 Tom Tromey <tom@tromey.com>
5352 * gnulib: Move directory to top-level.
5353 * configure.ac: Don't configure gnulib.
5354 * configure: Rebuild.
5355 * common/common-defs.h: Use new path to gnulib.
5356 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5358 (INCGNU): Look in new gnulib location.
5359 (HFILES_NO_SRCDIR): Remove gnulib files.
5360 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5361 (generated_files): Remove GNULIB_H.
5362 ($(LIBGNU), all-lib): Remove targets.
5363 (distclean): Don't mention GNULIB_BUILDDIR.
5364 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5366 2019-06-14 Tom Tromey <tromey@adacore.com>
5368 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5369 Warn if symbol file does not provide any symbols.
5371 2019-06-14 Tom Tromey <tromey@adacore.com>
5373 * source.c (find_and_open_source): Respect basenames_may_differ.
5375 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5377 * annotate.c (annotate_breakpoints_invalid): Make use of
5378 scoped_restore_terminal_state.
5379 (annotate_frames_invalid): Likewise.
5381 2019-06-14 Tom Tromey <tromey@adacore.com>
5383 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5384 allow assignment to an internalvar.
5386 2019-06-14 Tom Tromey <tromey@adacore.com>
5388 * ada-lex.l: Allow "_" in attribute names.
5390 2019-06-14 Tom Tromey <tromey@adacore.com>
5393 * regcache.c (registers_changed): Don't call alloca.
5394 * top.c (execute_command): Don't call alloca.
5396 2019-06-13 Pedro Alves <palves@redhat.com>
5398 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5399 'expression'. When parsing an expression, error out if there's
5400 junk after "unlimited".
5401 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5402 (do_set_command): Adjust calls to is_unlimited_literal.
5404 2019-06-13 Pedro Alves <palves@redhat.com>
5406 * compile/compile.c (make_compile_options_def_group): Add braces
5407 around array_view initializer.
5408 * thread.c (make_thread_apply_all_options_def_group)
5409 (make_thread_apply_all_options_def_group): Likewise.
5411 2019-06-13 Pedro Alves <palves@redhat.com>
5413 * NEWS (New commands): Mention "maint test-options
5414 require-delimiter", "maint test-options unknown-is-error", "maint
5415 test-options unknown-is-operand" and "maint show
5416 test-options-completion-result".
5417 (New command options, command completion): New section.
5418 (Completion improvements): New section.
5419 Mention that you can abbreviate "unlimited".
5421 2019-06-13 Pedro Alves <palves@redhat.com>
5423 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5424 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5425 * unittests/cli-utils-selftests.c (test_parse_flags)
5426 (test_parse_flags_qcs): Delete.
5427 (test_cli_utils): Don't call deleted functions.
5429 2019-06-13 Pedro Alves <palves@redhat.com>
5431 * thread.c: Include "cli/cli-option.h".
5432 (tp_array_compar_ascending): Global.
5433 (tp_array_compar): Delete function.
5434 (tp_array_compar_ascending, tp_array_compar_descending): New
5436 (ascending_option_def, qcs_flag_option_def)
5437 (thr_qcs_flags_option_defs)
5438 (make_thread_apply_all_options_def_group)
5439 (make_thread_apply_options_def_group): New.
5440 (thread_apply_all_command): Use gdb::option::process_options.
5441 (thread_apply_command_completer)
5442 (thread_apply_all_command_completer): New.
5443 (thread_apply_command): Use gdb::option::process_options.
5444 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5445 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5446 to generate help text of "thread apply". Adjust "taas"'s help.
5447 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5448 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5450 2019-06-13 Pedro Alves <palves@redhat.com>
5452 * thread.c (thread_apply_command): Check for invalid TID with
5453 isdigit instead of !isalpha.
5455 2019-06-13 Pedro Alves <palves@redhat.com>
5457 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5458 (validate_flags_qcs): New.
5459 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5460 (validate_flags_qcs): Declare.
5461 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5462 (make_frame_apply_options_def_group): New.
5463 (frame_apply_command_count): Process options with
5464 gdb::option::process_options.
5465 (frame_apply_completer): New.
5466 (frame_apply_level_completer, frame_apply_all_completer)
5467 (frame_apply_completer): New.
5468 (_initialize_stack): Update help of "frame apply", "frame apply
5469 level", "frame apply all" and "faas" to mention supported options
5470 and install command completers.
5471 * stack.h (frame_apply_all_completer): Declare.
5472 * thread.c: Include "stack.h".
5473 (tfaas_command): Add "--".
5474 (_initialize_thread): Update help "tfaas" to mention supported
5475 options and install command completer.
5477 2019-06-13 Pedro Alves <palves@redhat.com>
5479 * completer.c (complete_nested_command_line): New.
5480 (gdb_completion_word_break_characters_throw): Add assertion.
5481 * completer.h (complete_nested_command_line): Declare.
5483 2019-06-13 Pedro Alves <palves@redhat.com>
5485 * stack.c (parse_backtrace_qualifiers): New.
5486 (backtrace_command): Use it.
5487 (backtrace_command_completer): Complete on qualifiers.
5489 2019-06-13 Pedro Alves <palves@redhat.com>
5491 * frame.c: Include "cli/cli-option.h.
5492 (user_set_backtrace_options): New.
5493 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
5495 (get_prev_frame): Adjust.
5496 (boolean_option_def, uinteger_option_def)
5497 (set_backtrace_option_defs): New.
5498 (_initialize_frame): Adjust and use
5499 gdb::option::add_setshow_cmds_for_options to install "set
5500 backtrace past-main" and "set backtrace past-entry".
5501 * frame.h: Include "cli/cli-option.h".
5502 (struct frame_print_options): Forward declare.
5503 (print_frame_arguments_all, print_frame_arguments_scalars)
5504 (print_frame_arguments_none): Declare.
5505 (print_entry_values): Delete declaration.
5506 (struct frame_print_options, user_frame_print_options): New.
5507 (struct set_backtrace_options): New.
5508 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
5509 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
5510 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5511 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
5512 (list_args_or_locals): Add frame_print_options parameter.
5513 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5514 * python/py-framefilter.c (enumerate_args): Pass down
5515 USER_FRAME_PRINT_OPTIONS.
5516 * stack.c: Include "cli/cli-option.h".
5517 (print_frame_arguments_all, print_frame_arguments_scalars)
5518 (print_frame_arguments_none): Declare.
5519 (print_raw_frame_arguments, print_entry_values): Delete.
5520 (user_frame_print_options): New.
5521 (boolean_option_def, enum_option_def, frame_print_option_defs):
5523 (struct backtrace_cmd_options): New.
5524 (bt_flag_option_def): New.
5525 (backtrace_command_option_defs): New.
5526 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5527 (print_frame_arg, read_frame_arg, print_frame_args)
5528 (print_frame_info, print_frame): Add frame_print_options parameter
5530 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
5531 (backtrace_command_1): Add frame_print_options and
5532 backtrace_cmd_options parameters and use them.
5533 (make_backtrace_options_def_group): New.
5534 (backtrace_command): Process command options with
5535 gdb::option::process_options.
5536 (backtrace_command_completer): New.
5537 (_initialize_stack): Extend "backtrace"'s help to mention
5538 supported options. Install completer for "backtrace".
5539 Install some settings commands with add_setshow_cmds_for_options.
5541 2019-06-13 Pedro Alves <palves@redhat.com>
5543 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
5544 and that "set/show print raw frame-arguments" are now deprecated.
5546 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
5548 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
5549 * stack.c (_initialize_stack): Install "set/show print
5550 raw-frame-arguments", and deprecate "set/show print raw
5552 * valprint.c (_initialize_valprint): Deprecate "set/show print
5555 2019-06-13 Pedro Alves <palves@redhat.com>
5557 * compile/compile.c (struct compile_options): New.
5558 (compile_flag_option_def, compile_command_option_defs)
5559 (make_compile_options_def_group): New.
5560 (compile_file_command): Handle options with
5561 gdb::option::process_options.
5562 (compile_file_command_completer): New function.
5563 (compile_code_command): Handle options with
5564 gdb::option::process_options.
5565 (compile_code_command_completer): New function.
5566 (_initialize_compiler): Install completers for "compile code" and
5567 "compile file". Mention available options in "compile code" and
5568 "compile code"'s help.
5569 * completer.c (advance_to_completion_word): New, factored out from
5571 (advance_to_expression_complete_word_point): ... this.
5572 (advance_to_filename_complete_word_point): New.
5573 * completer.h (advance_to_filename_complete_word_point): New
5576 2019-06-13 Pedro Alves <palves@redhat.com>
5578 * compile/compile.c: Include "cli/cli-option.h".
5579 (compile_print_value): Scope data pointer is now a
5580 value_print_options pointer; adjust.
5581 (compile_print_command): Process options. Scope data pointer is
5582 now a value_print_options pointer; adjust.
5583 (_initialize_compile): Update "compile print"'s help to include
5584 supported options. Install a completer for "compile print".
5585 * cp-valprint.c (show_vtblprint, show_objectprint)
5586 (show_static_field_print): Delete.
5587 (_initialize_cp_valprint): Don't install "set print
5588 static-members", "set print vtbl", "set print object" here.
5589 * printcmd.c: Include "cli/cli-option.h" and
5590 "common/gdb_optional.h".
5591 (print_command_parse_format): Rework to fill in a
5592 value_print_options instead of a format_data.
5593 (print_value): Change parameter type from format_data pointer to
5594 value_print_options reference. Adjust.
5595 (print_command_1): Process options. Adjust to pass down a
5596 value_print_options.
5597 (print_command_completer): New.
5598 (_initialize_printcmd): Install print_command_completer as
5599 handle_brkchars completer for the "print" command. Update
5600 "print"'s help to include supported options.
5601 * valprint.c: Include "cli/cli-option.h".
5602 (show_vtblprint, show_objectprint, show_static_field_print): Moved
5603 here from cp-valprint.c.
5604 (boolean_option_def, uinteger_option_def)
5605 (value_print_option_defs, make_value_print_options_def_group):
5606 New. Use gdb::option::add_setshow_cmds_for_options to install
5607 "set print elements", "set print null-stop", "set print repeats",
5608 "set print pretty", "set print union", "set print array", "set
5609 print address", "set print symbol", "set print array-indexes".
5610 * valprint.h: Include <string> and "cli/cli-option.h".
5611 (make_value_print_options_def_group): Declare.
5612 (print_value): Change parameter type from format_data pointer to
5613 value_print_options reference.
5614 (print_command_completer): Declare.
5616 2019-06-13 Pedro Alves <palves@redhat.com>
5618 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
5619 (COMMON_SFILES): Add maint-test-settings.c.
5620 * cli/cli-decode.c (boolean_enums): New global, factored out from
5622 (add_setshow_boolean_cmd): ... here.
5623 * cli/cli-decode.h (boolean_enums): Declare.
5624 * cli/cli-option.c: New file.
5625 * cli/cli-option.h: New file.
5626 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
5627 factored out from ...
5628 (parse_cli_boolean_value(const char *)): ... this.
5629 (is_unlimited_literal): Change parameter type to pointer to
5630 pointer. Adjust and advance ARG pointer.
5631 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5632 (parse_cli_var_enum): New, factored out from ...
5633 (do_set_command): ... this. Adjust.
5634 * cli/cli-setshow.h (parse_cli_boolean_value)
5635 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5636 (parse_cli_var_enum): Declare.
5637 * cli/cli-utils.c: Include "cli/cli-option.h".
5638 (get_ulongest): New.
5639 * cli/cli-utils.h (get_ulongest): Declare.
5640 (check_for_argument): New overloads.
5641 * maint-test-options.c: New file.
5643 2019-06-13 Pedro Alves <palves@redhat.com>
5645 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
5646 parse a range if "-" is at the end of the string.
5648 2019-06-13 Pedro Alves <palves@redhat.com>
5650 * cli/cli-setshow.c (parse_auto_binary_operation)
5651 (parse_cli_boolean_value): Don't allow "o".
5653 2019-06-13 Pedro Alves <palves@redhat.com>
5655 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
5656 * NEWS: Mention maint test-settings KIND.
5657 * maint-test-settings.c: New file.
5659 2019-06-13 Pedro Alves <palves@redhat.com>
5661 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
5663 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
5666 2019-06-13 Pedro Alves <palves@redhat.com>
5668 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
5671 2019-06-13 Pedro Alves <palves@redhat.com>
5673 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
5675 2019-06-13 Pedro Alves <palves@redhat.com>
5677 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
5678 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
5680 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
5681 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
5683 (check_for_argument): Skip spaces after argument.
5685 2019-06-13 Pedro Alves <palves@redhat.com>
5687 * thread.c (thread_apply_command): Adjust TID parsing.
5688 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
5689 detected before end of string.
5690 (tid_is_in_list): Error out if LIST is invalid.
5692 2019-06-13 Pedro Alves <palves@redhat.com>
5694 * completer.c (complete_line_internal_1): Rewind completion word
5696 (completion_tracker::advance_custom_word_point_by): Change
5697 parameter type to int.
5698 * completer.h (completion_tracker::advance_custom_word_point_by):
5701 2019-06-13 Pedro Alves <palves@redhat.com>
5703 * completer.c (advance_to_completion_word): Handle delimiters.
5705 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
5707 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
5709 2019-06-11 Tom Tromey <tom@tromey.com>
5711 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
5712 (xmalloc_failed): Move to alloc.c.
5713 * alloc.c: New file.
5714 * Makefile.in (COMMON_SFILES): Add alloc.c.
5716 2019-06-11 Tom Tromey <tom@tromey.com>
5718 * nat/linux-waitpid.c: Don't include server.h.
5719 (linux_debug): Remove.
5720 (my_waitpid): Update.
5722 2019-06-11 Tom Tromey <tromey@adacore.com>
5724 * infcall.c (_initialize_infcall): Remove trailing newline from
5726 * user-regs.c (_initialize_user_regs): Remove trailing newline
5728 * typeprint.c (_initialize_typeprint): Remove trailing newline
5730 * reverse.c (_initialize_reverse): Remove trailing newlines from
5732 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
5734 * language.c (add_set_language_command): Remove trailing newline
5736 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
5738 * disasm.c (_initialize_disasm): Remove trailing newline from
5740 * top.c (init_main): Remove trailing newline from help.
5741 * interps.c (_initialize_interpreter): Remove trailing newline
5743 * btrace.c (_initialize_btrace): Remove trailing newlines from
5745 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
5747 * python/python.c (_initialize_python): Remove trailing newline
5749 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
5751 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
5752 from help. Reformat some text.
5753 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
5755 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
5758 2019-06-11 Tom Tromey <tromey@adacore.com>
5760 * darwin-nat.c (darwin_decode_exception_message)
5761 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
5763 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
5765 * valops.c (value_slice): Check for not allocated or not
5768 2019-06-10 Tom de Vries <tdevries@suse.de>
5771 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
5772 sure an empty slot (defined by a 32-bit zero pair) is recognized as
5775 2019-06-10 Tom de Vries <tdevries@suse.de>
5778 * linespec.c (linespec_lexer_lex_string): Remove incorrect
5779 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
5781 2019-06-10 Tom de Vries <tdevries@suse.de>
5784 * symtab.c (struct demangled_name_entry): Add language field.
5785 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
5786 static minimal symbol". Set and use language field.
5788 2019-06-10 Tom Tromey <tromey@adacore.com>
5790 * ada-lang.c (_initialize_ada_language): Update help text.
5792 2019-06-10 Tom Tromey <tromey@adacore.com>
5794 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
5796 * guile/guile.c (handle_boot_error): Don't end warning with a
5798 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
5799 warning with a newline.
5800 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
5802 (s12z_frame_cache): Likewise.
5803 * dwarf-index-cache.c (index_cache::store): Don't end warning with
5805 * solib-svr4.c (disable_probes_interface): Don't end warning with
5807 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
5809 * python/python.c (do_finish_initialization): Don't end warning
5812 2019-06-10 Tom Tromey <tom@tromey.com>
5814 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5815 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5818 2019-06-10 Tom Tromey <tromey@adacore.com>
5820 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
5822 (elf_new_init): Don't call stabsread_new_init.
5823 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
5824 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
5825 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
5827 2019-06-10 Tom de Vries <tdevries@suse.de>
5831 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5833 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5835 * source.c (find_and_open_source): Also rewrite relative file
5838 2019-04-26 Amos Bird <amosbird@gmail.com>
5840 * annotate.c (annotate_thread_exited): Add "thread-exited"
5843 2019-06-06 Tom Tromey <tromey@adacore.com>
5845 * maint.h (class scoped_command_stats): Use
5846 DISABLE_COPY_AND_ASSIGN.
5847 <print_time>: New method.
5848 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5850 (scoped_command_stats::print_time): New method.
5852 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5854 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5855 instructions of lengths 6 or 8 bytes.
5857 2019-06-04 Pedro Alves <palves@redhat.com>
5859 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5861 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5862 * breakpoint.c (condition_completer): Likewise.
5863 * cli/cli-dump.c (scan_expression): Likewise.
5864 * common/filestuff.c (mkdir_recursive): Likewise.
5865 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5866 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5867 (gdb_abspath): Likewise.
5868 * compile/compile-cplus-types.c
5869 (compile_cplus_instance::decl_name): Likewise.
5870 * completer.c (complete_explicit_location):
5871 (signal_completer, reg_or_group_completer_1): Likewise.
5872 * cp-support.c (cp_remove_params_if_any): Likewise.
5873 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5874 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5875 * infcmd.c (strip_bg_char): Likewise.
5876 * linespec.c (copy_token_string): Likewise.
5877 * mi/mi-main.c (output_cores): Likewise.
5878 * psymtab.c (psymtab_search_name):
5879 * symfile.c (test_set_ext_lang_command): Likewise.
5880 * target.c (target_fileio_read_stralloc): Likewise.
5881 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5882 * value.c (complete_internalvar): Likewise.
5884 2019-06-04 Christian Biesinger <cbiesinger@google.com>
5886 Add objfile property to gdb.Type.
5887 * NEWS: Mention Python API addition.
5888 * python/py-type.c (typy_get_objfile): New method.
5890 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5892 * NEWS: Mention the new set|show style [title|highlight].
5893 Mention changes to "show style", "help" and "apropos".
5895 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5897 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5898 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5899 instead of print_help_for_command.
5900 (print_doc_of_command): New function.
5901 (help_list): Add 'apropos -v word' suggestion.
5902 (print_help_for_command): Style the command name using title style.
5903 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5904 (_initialize_cli_cmds): Describe -v in apropos_command help.
5906 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5908 * cli/cli-style.h (cli_style_option): Add name in constructor,
5909 add m_name class member, add constructor with intensity,
5910 add name class function.
5911 (cli_style_option::add_setshow_commands): Remove name argument.
5912 (highlight_style, title_style): New styles.
5913 * cli/cli-style.c (do_show): New function that shows a style
5914 characteristic styling the style name with itself.
5915 (set_style_name): New function.
5916 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5917 Update all callers according to the changes in cli/cli-style.h.
5918 * utils.h (fputs_highlighted): New function.
5919 * utils.c (fputs_highlighted): Likewise.
5921 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5923 * NEWS: Mention new pipe command and new convenience variables.
5925 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5927 * cli/cli-cmds.c (pipe_command): New function.
5928 (_initialize_cli_cmds): Call add_com for pipe_command.
5929 Define | as an alias for pipe.
5930 (exit_status_set_internal_vars): New function.
5931 (shell_escape): Call exit_status_set_internal_vars.
5932 cli/cli-decode.c (find_command_name_length): Recognize | as
5933 a single character command.
5935 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5937 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5938 top.c (execute_command_to_ui_file): New function, mostly a copy
5939 of execute_command_to_string.
5940 (execute_command_to_string): Implement by calling
5941 execute_command_to_ui_file.
5943 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5945 * top.h (saved_command_line): Remove declaration.
5946 * top.c (previous_saved_command_line, previous_repeat_arguments):
5948 (saved_command_line): Make static, define together with other
5950 (dont_repeat): Clear repeat_arguments.
5951 (repeat_previous, get_saved_command_line, save_command_line):
5953 (gdb_init): Initialize saved_command_line
5954 and previous_saved_command_line.
5955 * main.c (captured_main_1): Remove saved_command_line initialization.
5956 * event-top.c (handle_line_of_input): Update to use
5957 the new 'repeat' related functions instead of direct access to
5959 * command.h (repeat_previous, get_saved_command_line,
5960 save_command_line): New declarations.
5961 (dont_repeat): Add comment.
5963 2019-05-30 Tom Tromey <tromey@adacore.com>
5965 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
5967 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
5969 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
5972 * completer.c (complete): Initialize variable word.
5974 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
5976 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5977 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
5978 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
5979 'body' is NULL to the outter 'if', protecting the '!is_define'
5982 2019-05-29 Tom Tromey <tromey@adacore.com>
5984 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
5985 (dwarf_unknown): New function.
5986 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
5987 (dwarf_type_encoding_name): Use dwarf_unknown.
5989 2019-05-29 Tom Tromey <tromey@adacore.com>
5992 * cp-valprint.c (cp_print_value_fields): Call
5993 cp_print_static_field inside "try".
5995 2019-05-29 Tom Tromey <tromey@adacore.com>
5997 * inflow.c (struct terminal_info): Add default operator=.
5998 * configure: Rebuild.
5999 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6000 -Wdeprecated-copy-dtor, -Wredundant-move.
6002 2019-05-29 Tom Tromey <tromey@adacore.com>
6005 * infcmd.c (print_return_value_1): Handle finish_print
6007 (show_print_finish): New function.
6008 (_initialize_infcmd): Add "set/show print finish" commands.
6009 * valprint.c (user_print_options): Initialize new member.
6010 * valprint.h (struct value_print_options) <finish_print>: New
6013 2019-05-28 Tom Tromey <tromey@adacore.com>
6015 * ada-lang.c (ada_remove_Xbn_suffix)
6016 (find_old_style_renaming_symbol)
6017 (parse_old_style_renaming): Remove.
6018 (ada_find_renaming_symbol): Don't call
6019 find_old_style_renaming_symbol.
6020 (ada_is_renaming_symbol): Rename from
6021 ada_find_renaming_symbol. Remove "block" parameter. Return
6023 (ada_read_var_value): Update and simplify.
6024 * ada-exp.y (write_var_or_type): Remove old code.
6026 2019-05-28 Alan Hayward <alan.hayward@arm.com>
6028 * event-top.c: Remove include comment.
6029 * inflow.c (class scoped_ignore_sigttou): Move from here...
6030 * inflow.h (class scoped_ignore_sigttou): ...to here.
6031 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6032 * top.c: Remove include comment.
6034 2019-05-27 Tom Tromey <tom@tromey.com>
6038 2019-05-22 Tom Tromey <tromey@adacore.com>
6040 * target.c (target_follow_exec): Constify parameter.
6041 * target-delegates.c: Rebuild.
6042 * remote.c (remote_target::follow_exec): Constify parameter.
6043 * infrun.c (follow_exec): Constify parameter.
6044 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6045 (target_follow_exec): Likewise.
6047 2019-05-22 Alan Hayward <alan.hayward@arm.com>
6049 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6050 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6052 2019-05-22 Alan Hayward <alan.hayward@arm.com>
6054 * NEWS: Add debugredirect and testsuite sections.
6056 2019-05-22 Simon Cook <simon.cook@embecosm.com>
6058 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6059 target descriptions using exclusively floating point register name
6062 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6065 * f-lang.c (build_fortran_types): Handle the case where
6066 gdbarch_floatformat_for_type returns a nullptr.
6068 2019-05-21 Tom de Vries <tdevries@suse.de>
6071 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6073 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6076 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6078 * i386-tdep.c (i386_floatformat_for_type): Use
6079 floatformats_ia64_quad for the 16-byte floating point component
6080 within a fortran 32-byte complex number.
6082 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6084 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6085 delete default constructor.
6086 (find_partial_die): Update to return const struct.
6087 (partial_die_parent_scope): Move variable declaration into scope
6088 of its use and change its type to auto.
6089 (guess_partial_die_structure_name): Likewise.
6090 (partial_die_info::fixup): Likewise.
6092 2019-05-17 Tom Tromey <tromey@adacore.com>
6094 * source.c (find_and_open_source): Remove cast.
6096 2019-05-17 Tom Tromey <tromey@adacore.com>
6098 * annotate.c (annotate_source): Make "filename" const.
6099 * annotate.h (annotate_source): Use const.
6101 2019-05-17 Alan Hayward <alan.hayward@arm.com>
6103 * disasm.c (set_disassembler_options): Send errors to stderr.
6105 2019-05-17 Alan Hayward <alan.hayward@arm.com>
6107 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6108 (cli_interp_base::set_logging): Check debug_redirect.
6109 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6110 * cli/cli-logging.c (debug_redirect): Add static variable.
6111 (pop_output_files): Add default param.
6112 (handle_redirections): Print debug setting.
6113 (show_logging_command): Likewise.
6114 (_initialize_cli_logging): Add debugredirect command.
6115 * interps.c (current_interp_set_logging): Add debug_redirect
6117 * interps.h (set_logging): Add debug_redirect parameter.
6118 (current_interp_set_logging): Likewise.
6119 * mi/mi-common.h: Likewise.
6120 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
6122 2019-05-17 Alan Hayward <alan.hayward@arm.com>
6123 Tom Tromey <tromey@adacore.com>
6125 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
6127 * cli/cli-interp.h (make_logging_output): Remove declaration.
6128 * cli/cli-logging.c (make_logging_output): Remove function.
6129 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6131 * ui-file.c (tee_file::tee_file): Remove bools.
6132 (tee_file::~tee_file): Remove deletes.
6133 * ui-file.h (tee_file): Remove bools.
6135 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
6137 * mi/mi-cmds.h (mi_cmd_complete): New function.
6138 * mi/mi-main.c (mi_cmd_complete): Likewise.
6139 * mi/mi-cmds.c: Define new MI command -complete.
6140 * NEWS: Mention new -complete command.
6142 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6144 * completer.h (complete): New function.
6145 * completer.c (complete): Likewise.
6146 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6147 function defined in completer.h.
6149 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6151 * MAINTAINERS (Write After Approval): Add myself.
6153 2019-05-17 Tom de Vries <tdevries@suse.de>
6156 * dwarf2read.c (struct cu_partial_die_info): New struct.
6157 (find_partial_die): Return cu_partial_die_info.
6158 (partial_die_parent_scope, guess_partial_die_structure_name)
6159 (partial_die_info::fixup): Handle new return type of find_partial_die.
6161 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6163 PR breakpoints/24541
6164 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6165 "std::string", simplifying the algorithm.
6167 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6169 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6170 (stap_static_probe_ops::get_probes): Likewise.
6172 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6174 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6175 '-')" and "else if".
6176 (stap_parse_single_operand): Join checks for
6177 "gdbarch_stap_parse_special_token_p" and
6178 "gdbarch_stap_parse_special_token" in the same "if" statement.
6179 Invert check when verifying for operation on register
6182 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6184 * stap-probe.c (stap_get_opcode): Update comment.
6185 (stap_get_expected_argument_type): Likewise.
6186 (handle_stap_probe): Likewise.
6188 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6190 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6191 return type to 'bool'. Adjust comment. Use 'bool' when
6193 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6194 * stap-probe.c (stap_parse_argument_1): Likewise.
6195 (stap_is_operator): Likewise.
6196 (stap_is_generic_prefix): Likewise.
6197 (stap_is_register_prefix): Likewise.
6198 (stap_is_register_indirection_prefix): Likewise.
6199 (stap_is_integer_prefix): Likewise.
6200 (stap_generic_check_suffix): Likewise.
6201 (stap_check_integer_suffix): Likewise.
6202 (stap_check_register_suffix): Likewise.
6203 (stap_check_register_indirection_suffix): Likewise.
6204 (stap_parse_register_operand): Likewise.
6205 (stap_parse_single_operand): Likewise.
6206 (stap_parse_argument_1): Likewise.
6207 (stap_probe::get_argument_count): Likewise.
6208 (stap_is_operator): Likewise.
6210 2019-05-16 Tom Tromey <tromey@adacore.com>
6212 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6215 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
6217 * linux-thread-db.c (try_thread_db_load_1): Change return type
6219 (try_thread_db_load): Likewise.
6220 (try_thread_db_load_from_pdir_1): Likewise.
6221 (try_thread_db_load_from_pdir): Likewise.
6222 (try_thread_db_load_from_sdir): Likewise.
6223 (try_thread_db_load_from_dir): Likewise.
6224 (thread_db_load_search): Likewise.
6225 (has_libpthread): Likewise.
6226 (thread_db_load): Likewise.
6228 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
6230 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6231 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
6232 NULL, and complain/return if that's the case.
6234 2019-05-15 John Darrington <john@darrington.wattle.id.au>
6236 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
6237 (advance, posn, abstract_read_memory): New functions.
6238 [struct mem_read_abstraction]: New struct.
6239 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6241 2019-05-14 Tom Tromey <tromey@adacore.com>
6243 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6244 value is not lval_memory.
6246 2019-05-14 Tom Tromey <tromey@adacore.com>
6248 * solib.c (info_sharedlibrary_command): Style the file name.
6250 2019-05-14 Alan Hayward <alan.hayward@arm.com>
6252 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6253 (aarch64_vnv_type): Likewise.
6254 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
6255 * common/tdesc.c: Likewise.
6256 * common/tdesc.h (enum tdesc_type_kind): Likewise.
6257 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
6258 * features/aarch64-fpu.xml: Add ieee half view.
6259 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
6260 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
6261 * gdbtypes.h (struct builtin_type): Likewise.
6262 (struct objfile_type): Likewise.
6264 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
6266 * language.c (language_sniff_from_mangled_name): Fix "langauge"
6268 * location.h (string_to_event_location): Likewise.
6270 2019-05-11 Joel Brobecker <brobecker@adacore.com>
6274 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
6276 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
6277 New variable declaration.
6278 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6280 (print_one_breakpoint): Use ui_out::test_flags and new global
6281 variable to compute use_fixed_output.
6282 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
6284 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
6285 (mi_multi_location_breakpoint_output_fixed): Remove.
6286 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
6288 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
6289 fix_multi_location_breakpoint_output flag if version >= 3.
6290 * ui-out.h (enum ui_out_flag)
6291 <fix_multi_location_breakpoint_output>: New enumerator.
6293 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
6295 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6297 2019-05-10 Tom Tromey <tromey@adacore.com>
6299 * ada-lang.c (catch_ada_completer): New function.
6300 (_initialize_ada_language): Use it.
6302 2019-05-10 Tom Tromey <tromey@adacore.com>
6304 * thread.c (print_thread_info): Make "requested_threads" const.
6305 * gdbthread.h (print_thread_info): Make "requested_threads"
6307 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6308 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6310 2019-05-08 Tom Tromey <tom@tromey.com>
6312 * gdbtypes.c (objfile_type_data): Change type.
6313 (objfile_type, _initialize_gdbtypes): Update.
6315 2019-05-08 Tom Tromey <tom@tromey.com>
6317 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6318 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6319 (_initialize_dwarf2_frame): Update.
6321 2019-05-08 Tom Tromey <tom@tromey.com>
6323 * objc-lang.c (objc_objfile_data): Change type.
6324 (find_methods): Update.
6325 (_initialize_objc_lang): Remove.
6327 2019-05-08 Tom Tromey <tom@tromey.com>
6329 * stabsread.c (rs6000_builtin_type_data): Change type.
6330 (rs6000_builtin_type, _initialize_stabsread): Update.
6332 2019-05-08 Tom Tromey <tom@tromey.com>
6334 * mips-tdep.c (mips_pdr_data): Remove.
6335 (_initialize_mips_tdep): Update.
6337 2019-05-08 Tom Tromey <tom@tromey.com>
6339 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
6340 (hppa_init_objfile_priv_data, read_unwind_info)
6341 (find_unwind_entry, _initialize_hppa_tdep): Update.
6343 2019-05-08 Tom Tromey <tom@tromey.com>
6345 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
6346 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
6348 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
6350 2019-05-08 Tom Tromey <tom@tromey.com>
6352 * mdebugread.c (basic_type_data): Change type.
6353 (basic_type, _initialize_mdebugread): Update.
6355 2019-05-08 Tom Tromey <tom@tromey.com>
6357 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6359 2019-05-08 Tom Tromey <tom@tromey.com>
6361 * nto-tdep.c (nto_inferior_data_reg): Change type.
6362 (nto_inferior_data): Update.
6363 (nto_inferior_data_cleanup, nto_new_inferior_data)
6364 (_initialize_nto_tdep): Remove.
6365 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6367 2019-05-08 Tom Tromey <tom@tromey.com>
6369 * ada-lang.c (struct ada_inferior_data): Add initializers.
6370 (ada_inferior_data): Change type.
6371 (ada_inferior_data_cleanup): Remove.
6372 (get_ada_inferior_data, ada_inferior_exit)
6373 (struct ada_pspace_data): Add initializers, destructor.
6374 (ada_pspace_data_handle): Change type.
6375 (get_ada_pspace_data): Update.
6376 (ada_pspace_data_cleanup): Remove.
6378 2019-05-08 Tom Tromey <tom@tromey.com>
6380 * coffread.c (struct coff_symfile_info): Add initializers.
6381 (coff_objfile_data_key): Move lower. Change type.
6382 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6384 (coff_free_info): Remove.
6386 2019-05-08 Tom Tromey <tom@tromey.com>
6388 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6389 (fbsd_pspace_data_handle): Move lower. Change type.
6390 (get_fbsd_pspace_data): Update.
6391 (fbsd_pspace_data_cleanup): Remove.
6392 (_initialize_fbsd_tdep): Update.
6394 2019-05-08 Tom Tromey <tom@tromey.com>
6396 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6397 (get_ada_tasks_pspace_data): Update.
6398 (ada_tasks_pspace_data_cleanup): Remove.
6399 (_initialize_tasks): Update.
6400 (ada_tasks_inferior_data_handle): Change type.
6401 (get_ada_tasks_inferior_data): Update.
6402 (ada_tasks_inferior_data_cleanup): Remove.
6403 (struct ada_tasks_pspace_data): Add initializers.
6405 2019-05-08 Tom Tromey <tom@tromey.com>
6407 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6408 * symfile-debug.c (debug_sym_get_probes): Change type.
6409 * stap-probe.c (handle_stap_probe):
6410 (stap_static_probe_ops::get_probes): Change type.
6411 * probe.h (class static_probe_ops) <get_probes>: Change type.
6412 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6413 (parse_probes_in_pspace): Update.
6414 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6416 (any_static_probe_ops::get_probes): Change type.
6417 * elfread.c (elfread_data): New typedef.
6418 (probe_key): Change type.
6419 (elf_get_probes): Likewise. Update.
6420 (probe_key_free): Remove.
6421 (_initialize_elfread): Update.
6422 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6424 (dtrace_process_dof_probe, dtrace_process_dof)
6425 (dtrace_static_probe_ops::get_probe): Change type.
6427 2019-05-08 Tom Tromey <tom@tromey.com>
6429 * xcoffread.c (struct xcoff_symfile_info): Rename from
6430 coff_symfile_info. Add initializers.
6431 (xcoff_objfile_data_key): Move lower. Change type.
6432 (XCOFF_DATA): Rewrite.
6433 (xcoff_free_info): Remove.
6434 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6435 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6436 (xcoff_initial_scan): Update.
6438 2019-05-08 Tom Tromey <tom@tromey.com>
6440 * solib-svr4.c (struct svr4_info): Add initializers and
6442 <probes_table>: Now an htab_up.
6443 (solib_svr4_pspace_data): Change type.
6444 (free_probes_table): Simplify.
6445 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6446 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6447 (probes_table_remove_objfile_probes, register_solib_event_probe)
6448 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6449 (_initialize_svr4_solib): Update.
6451 2019-05-08 Tom Tromey <tom@tromey.com>
6453 * remote.c (remote_pspace_data): Change type.
6454 (remote_pspace_data_cleanup): Remove.
6455 (get_remote_exec_file, set_pspace_remote_exec_file)
6456 (_initialize_remote): Update.
6458 2019-05-08 Tom Tromey <tom@tromey.com>
6460 * breakpoint.c (breakpoint_objfile_key): Change type.
6461 (get_breakpoint_objfile_data): Update.
6462 (free_breakpoint_objfile_data): Remove.
6463 (_initialize_breakpoint): Update.
6465 2019-05-08 Tom Tromey <tom@tromey.com>
6467 * linux-tdep.c (struct linux_info): Add initializers.
6468 (linux_inferior_data): Move. Change type.
6469 (invalidate_linux_cache_inf): Update.
6470 (linux_inferior_data_cleanup): Remove.
6471 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6473 2019-05-08 Tom Tromey <tom@tromey.com>
6475 * auxv.c (auxv_inferior_data): Move. Change type.
6476 (auxv_inferior_data_cleanup): Remove.
6477 (invalidate_auxv_cache_inf): Rewrite.
6478 (get_auxv_inferior_data, _initialize_auxv): Update.
6480 2019-05-08 Tom Tromey <tom@tromey.com>
6482 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6483 (symfile_debug_objfile_data_key): Change type.
6484 (symfile_debug_installed, debug_qf_has_symbols)
6485 (debug_qf_find_last_source_symtab)
6486 (debug_qf_forget_cached_source_info)
6487 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
6488 (debug_qf_print_stats, debug_qf_dump)
6489 (debug_qf_expand_symtabs_for_function)
6490 (debug_qf_expand_all_symtabs)
6491 (debug_qf_expand_symtabs_with_fullname)
6492 (debug_qf_map_matching_symbols)
6493 (debug_qf_expand_symtabs_matching)
6494 (debug_qf_find_pc_sect_compunit_symtab)
6495 (debug_qf_map_symbol_filenames)
6496 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
6497 (debug_sym_new_init, debug_sym_init, debug_sym_read)
6498 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
6499 (debug_sym_read_linetable, debug_sym_relocate): Update.
6500 (symfile_debug_free_objfile): Remove.
6501 (install_symfile_debug_logging, _initialize_symfile_debug):
6504 2019-05-08 Tom Tromey <tom@tromey.com>
6506 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
6507 allocate_on_obstack.
6508 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
6509 (get_dwarf2_per_objfile): Update.
6510 (set_dwarf2_per_objfile): Remove.
6511 (dwarf2_has_info, dwarf2_get_section_info): Update.
6512 (dwarf2_free_objfile): Remove.
6513 (_initialize_dwarf2_read): Update.
6515 2019-05-08 Tom Tromey <tom@tromey.com>
6517 * auto-load.c (struct auto_load_pspace_info): Add destructor and
6519 <unsupported_script_warning_printed,
6520 script_not_found_warning_printed>: Now bool.
6521 (auto_load_pspace_data): Change type.
6522 (~auto_load_pspace_info): Rename from
6523 auto_load_pspace_data_cleanup.
6524 (get_auto_load_pspace_data, init_loaded_scripts_info)
6525 (clear_section_scripts, maybe_print_unsupported_script_warning)
6526 (maybe_print_script_not_found_warning, _initialize_auto_load):
6529 2019-05-08 Tom Tromey <tom@tromey.com>
6531 * objfiles.c (objfile_pspace_info): Add destructor and
6533 (objfiles_pspace_data): Change type.
6534 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
6535 (get_objfile_pspace_data): Update.
6536 (objfiles_bfd_data): Change type.
6537 (get_objfile_bfd_data): Update.
6538 (objfile_bfd_data_free, _initialize_objfiles): Remove.
6540 2019-05-08 Tom Tromey <tom@tromey.com>
6542 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
6544 (get_catch_syscall_inferior_data): Update.
6545 (catch_syscall_inferior_data_cleanup): Remove.
6546 (_initialize_break_catch_syscall): Update.
6548 2019-05-08 Tom Tromey <tom@tromey.com>
6550 * inflow.c (struct terminal_info): Add destructor and
6552 (inflow_inferior_data): Change type.
6553 (~terminal_info): Rename from inflow_inferior_data_cleanup.
6554 (get_inflow_inferior_data, inflow_inferior_exit)
6555 (swap_terminal_info, _initialize_inflow): Update.
6557 2019-05-08 Tom Tromey <tom@tromey.com>
6559 * target-dcache.c (target_dcache_cleanup): Remove.
6560 (target_dcache_aspace_key): Change type.
6561 (target_dcache_init_p, target_dcache_invalidate)
6562 (target_dcache_get, target_dcache_get_or_init)
6563 (_initialize_target_dcache): Update.
6564 * dcache.h (struct dcache_deleter): New.
6566 2019-05-08 Tom Tromey <tom@tromey.com>
6568 * symtab.c (struct symbol_cache): Add destructor and
6570 (symbol_cache_key): Move. Change type.
6571 (make_symbol_cache, free_symbol_cache): Remove.
6572 (get_symbol_cache): Update.
6573 (symbol_cache_cleanup): Remove.
6574 (ALL_PSPACES, symbol_cache_flush)
6575 (maintenance_print_symbol_cache)
6576 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
6579 2019-05-08 Tom Tromey <tom@tromey.com>
6581 * symtab.c (struct main_info): Add destructor and initializers.
6582 (main_progspace_key): Move. Change type.
6583 (get_main_info): Update.
6584 (main_info_cleanup): Remove.
6585 (_initialize_symtab): Update.
6587 2019-05-08 Tom Tromey <tom@tromey.com>
6589 * registry.h (DECLARE_REGISTRY): Define the _key class.
6591 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6593 * NEWS: Merge two 'New commands' sections.
6595 2019-05-08 Joel Brobecker <brobecker@adacore.com>
6597 * ada-valprint.c (ada_val_print_gnat_array): Remove language
6598 parameter and use Ada language definition instead.
6599 (ada_val_print_ptr): Remove unused language parameter.
6600 (ada_val_print_num): Remove language parameter and use Ada language
6602 (ada_val_print_enum, ada_val_print_flt): Remove unused language
6604 (ada_val_print_struct_union, ada_val_print_ref): Remove language
6605 parameter and use Ada language definition instead.
6606 (ada_val_print_1): Update all ada_val_print_xxx calls.
6607 Remove language parameter.
6608 (ada_val_print): Update ada_val_print_1 call.
6610 2019-05-08 Tom Tromey <tromey@adacore.com>
6612 * remote.c (remote_hw_watchpoint_limit)
6613 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
6616 2019-05-08 Tom Tromey <tromey@adacore.com>
6618 * maint.c (_initialize_maint_cmds): Move initialization code to
6620 (watchdog, show_watchdog): Move to remote.c.
6621 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
6623 (_initialize_remote): Move initialization code from maint.c.
6624 * defs.h (watchdog): Don't declare.
6626 2019-05-08 Tom Tromey <tromey@adacore.com>
6628 * tui/tui-interp.c: Include main.h.
6629 * interps.c: Include main.h.
6630 * main.h (interpreter_p): Declare.
6631 * defs.h (interpreter_p): Don't declare.
6633 2019-05-08 Tom Tromey <tromey@adacore.com>
6635 * dwarf2loc.c: Include dwarf2read.h.
6636 * defs.h (read_unsigned_leb128): Don't declare.
6637 * dwarf2read.h (read_unsigned_leb128): Declare.
6639 2019-05-08 Tom Tromey <tromey@adacore.com>
6641 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
6644 2019-05-08 Tom Tromey <tromey@adacore.com>
6646 * utils.c (fputs_maybe_filtered): Reset style after paging, even
6647 when no wrap column is set.
6649 2019-05-08 Tom Tromey <tromey@adacore.com>
6651 * c-lang.c (c_get_string): Handle non-C-style arrays.
6653 2019-05-08 Tom Tromey <tromey@adacore.com>
6655 * typeprint.c (print_offset_data::update): Print the bit offset,
6656 not the number of bits remaining.
6658 2019-05-08 Tom Tromey <tromey@adacore.com>
6660 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
6661 padding at end of comment.
6663 2019-05-08 Tom Tromey <tromey@adacore.com>
6665 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
6668 2019-05-06 Tom Tromey <tom@tromey.com>
6670 * common/scoped_mmap.c: Include common-defs.h.
6671 * common/scoped_mmap.h: Don't include config.h.
6673 2019-05-04 Tom Tromey <tom@tromey.com>
6675 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
6676 (struct aarch64_call_info): Add initializers.
6677 <si>: Now a std::vector.
6678 (pass_on_stack, aarch64_push_dummy_call): Update.
6680 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
6681 Tom Tromey <tom@tromey.com>
6683 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
6684 (ppc_threads): Now a std::vector. Now static.
6685 (hwdebug_find_thread_points_by_tid)
6686 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
6689 2019-05-04 Tom Tromey <tom@tromey.com>
6691 * arc-tdep.c (arc_tdesc_init): Return bool.
6693 2019-05-04 Tom Tromey <tom@tromey.com>
6695 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
6696 Use gdb_assert_not_reached.
6698 2019-05-04 Tom Tromey <tom@tromey.com>
6700 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
6703 2019-05-04 Tom Tromey <tom@tromey.com>
6705 * arc-tdep.c (arc_tdesc_init): Use bool.
6707 2019-05-04 Tom Tromey <tom@tromey.com>
6709 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
6711 2019-05-04 Tom Tromey <tom@tromey.com>
6713 * cli/cli-cmds.c (valid_command_p): Return bool.
6715 2019-05-04 Tom Tromey <tom@tromey.com>
6717 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
6718 * command.h (valid_user_defined_cmd_name_p): Channge return type.
6720 2019-05-04 Raul Tambre <raul@tambre.ee>
6722 * python/lib/gdb/prompt.py (_ExtendedPrompt)
6723 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
6724 operator for comparison.
6726 2019-05-04 Tom Tromey <tom@tromey.com>
6728 * psymtab.c (psymbol_name_matches, match_partial_symbol)
6729 (lookup_partial_symbol, print_partial_symbols)
6730 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
6731 (psymbol_compare): Update.
6732 (add_psymbol_to_bcache): Clear the entire psymbol.
6733 (maintenance_check_psymtabs): Update.
6734 * psympriv.h (struct partial_symbol): Don't derive from
6735 general_symbol_info.
6736 <obj_section, unrelocated_address, address,
6737 set_unrelocated_address>: Update.
6738 <ginfo>: New member.
6739 * dwarf-index-write.c (write_psymbols, debug_names::insert)
6740 (debug_names::write_psymbols): Update.
6742 2019-05-04 Tom de Vries <tdevries@suse.de>
6744 * contrib/cc-with-tweaks.sh: Support -n arg.
6746 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6748 * corelow.c (core_target::detach): Ensure frame cache and
6749 register caches are cleared.
6750 inferior.c (exit_inferior_1): Likewise.
6752 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
6753 Tom Tromey <tom@tromey.com>
6755 * dictionary.c (collate_pending_symbols_by_language): Remove
6756 "struct" from foreach.
6757 * symtab.c (lookup_global_symbol_from_objfile)
6758 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
6760 * ser-tcp.c (net_open): Remove "struct" from foreach.
6761 * objfiles.c (objfile_relocate, objfile_rebase)
6762 (objfile_has_symbols): Remove "struct" from foreach.
6763 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
6765 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
6767 * darwin-nat.c (thread_info_from_private_thread_info): Remove
6768 "struct" from foreach.
6769 * ada-lang.c (create_excep_cond_exprs)
6770 (ada_exception_catchpoint_cond_string): Remove "struct" from
6773 2019-05-03 Tom Tromey <tromey@adacore.com>
6775 * ada-exp.y (convert_char_literal): Check suffix of each
6778 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
6781 * ada-exp.y (yywrap): Don't define.
6782 * ada-lex.l (%option): Add noyywrap
6785 2019-05-03 Eli Zaretskii <eliz@gnu.org>
6787 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
6788 _WIN32_WINNT to the XP level, unless already defined to a higher
6791 * unittests/parse-connection-spec-selftests.c:
6793 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
6796 * symfile.c (find_separate_debug_file): Remove colon from the
6797 drive spec of DOS/Windows file names of the target, so that the
6798 file name produced from DEBUGDIR and the target's directory will
6799 be valid on DOS/Windows systems.
6801 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
6803 * rust-lang.c (val_print_struct): Handle printing structures
6806 2019-05-02 Tom Tromey <tromey@adacore.com>
6808 * valarith.c (_initialize_valarith): Remove.
6810 2019-05-01 Tom Tromey <tromey@adacore.com>
6812 * ada-lang.c (ada_value_primitive_field): Treat more fields as
6815 2019-05-01 Tom Tromey <tromey@adacore.com>
6817 * ada-lang.c (ada_value_assign): Correctly compute starting offset
6818 for big-endian copies.
6820 2019-04-30 Ali Tamur <tamur@google.com>
6821 * gdb/dwarf2read.c (read_3_bytes): New declaration.
6822 (read_attribute_value): Added DW_FORM_strx1-4 cases.
6823 (read_3_bytes): New function.
6825 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6827 * windows-nat.c (main_thread_id): Delete.
6828 (handle_output_debug_string): Replace main_thread_id by
6829 current_event.dwThreadId.
6830 (fake_create_process): Likewise.
6831 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6832 Do not set main_thread_id.
6833 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6834 current_event.dwThreadId.
6835 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6837 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6839 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6840 Use current_event.dwThreadId instead of main_thread_id.
6842 2019-04-30 Tom Tromey <tromey@adacore.com>
6844 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6845 (create_excep_cond_exprs): Iterate over program spaces.
6846 (ada_exception_catchpoint_cond_string): Examine all minimal
6847 symbols for exception types.
6849 2019-04-30 Tom Tromey <tromey@adacore.com>
6852 * dwarf2read.c (process_structure_scope): Handle case where type
6853 has template parameters but no symbol was created.
6855 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6856 Chris January <chris.january@arm.com>
6858 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6860 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6862 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6864 * f-typeprint.c (f_print_type): Update rules for printing
6866 (f_type_print_varspec_suffix): Likewise.
6868 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6869 Chris January <chris.january@arm.com>
6871 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6874 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6876 * f-lang.c (build_fortran_types): Change name of void type to
6878 * f-typeprint.c (f_type_print_base): Print the name of the void
6879 type, rather than a fixed string.
6880 * f-valprint.c (f_decorations): Use lower case void string.
6882 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6883 Chris January <chris.january@arm.com>
6885 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6888 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6889 Chris January <chris.january@arm.com>
6890 David Lecomber <david.lecomber@arm.com>
6892 * f-exp.y (BINOP_INTRINSIC): New token.
6893 (exp): New parser rule handling BINOP_INTRINSIC.
6894 (f77_keywords): Add new builtin procedures.
6895 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6896 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6897 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6898 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6899 (print_unop_subexp_f): New function.
6900 (print_binop_subexp_f): New function.
6901 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6902 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6903 (dump_subexp_body_f): Likewise.
6904 (operator_check_f): Likewise.
6905 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6906 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6908 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6910 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6912 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6913 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6914 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6915 (operator_length_f): New fuction.
6916 (print_subexp_f): New function.
6917 (op_name_f): New function.
6918 (dump_subexp_body_f): New function.
6919 (operator_check_f): New function.
6920 (exp_descriptor_f): Replace standard expression handling functions
6922 * gdb/fortran-operator.def: New file.
6923 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6924 * gdb/std-operator.def: Remove UNOP_KIND.
6926 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6928 * std-operator.def: Remove unbalanced, stray double quote
6931 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6932 Chris January <chris.january@arm.com>
6933 Daniel Everett <daniel.everett@arm.com>
6934 Nick Forrington <nick.forrington@arm.com>
6935 Richard Bunt <richard.bunt@arm.com>
6937 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6938 of depth when printing anonymous structs or unions.
6939 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6940 Don't print either the top-level value, or the children if the
6941 max-depth is exceeded.
6942 (ppscm_print_children): When printing the key of a map, allow one
6943 extra level of depth.
6944 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6945 print either the top-level value, or the children if the max-depth
6947 (print_children): When printing the key of a map, allow one extra
6949 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6950 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6951 (user_print_options): Initialise max_depth field.
6952 (val_print_scalar_or_string_type_p): New function.
6953 (val_print): Check to see if the max depth has been reached.
6954 (val_print_check_max_depth): Define new function.
6955 (show_print_max_depth): New function.
6956 (_initialize_valprint): Add 'print max-depth' option.
6957 * valprint.h (struct value_print_options) <max_depth>: New field.
6958 (val_print_check_max_depth): Declare new function.
6959 * NEWS: Document new feature.
6961 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6963 * ada-lang.c (ada_language_defn): Initialise new field.
6964 * c-lang.c (c_is_string_type_p): New function.
6965 (c_language_defn): Initialise new field.
6966 (cplus_language_defn): Initialise new field.
6967 (asm_language_defn): Initialise new field.
6968 (minimal_language_defn): Initialise new field.
6969 * c-lang.h (c_is_string_type_p): Declare new function.
6970 * d-lang.c (d_language_defn): Initialise new field.
6971 * f-lang.c (f_is_string_type_p): New function.
6972 (f_language_defn): Initialise new field.
6973 * go-lang.c (go_is_string_type_p): New function.
6974 (go_language_defn): Initialise new field.
6975 * language.c (default_is_string_type_p): New function.
6976 (unknown_language_defn): Initialise new field.
6977 (auto_language_defn): Initialise new field.
6978 * language.h (struct language_defn) <la_is_string_type_p>: New
6980 (default_is_string_type_p): Declare new function.
6981 * m2-lang.c (m2_language_defn): Initialise new field.
6982 * objc-lang.c (objc_language_defn): Initialise new field.
6983 * opencl-lang.c (opencl_language_defn): Initialise new field.
6984 * p-lang.c (pascal_is_string_type_p): New function.
6985 (pascal_language_defn): Initialise new field.
6986 * rust-lang.c (rust_is_string_type_p): New function.
6987 (rust_language_defn): Initialise new field.
6989 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6991 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
6993 * ada-lang.c (ada_language_defn): Initialise new field.
6994 * c-lang.c (c_language_defn): Likewise.
6995 (cplus_language_defn): Likewise.
6996 (asm_language_defn): Likewise.
6997 (minimal_language_defn): Likewise.
6998 * d-lang.c (d_language_defn): Likewise.
6999 * f-lang.c (f_language_defn): Likewise.
7000 * go-lang.c (go_language_defn): Likewise.
7001 * language.c (unknown_language_defn): Likewise.
7002 (auto_language_defn): Likewise.
7003 * m2-lang.c (m2_language_defn): Likewise.
7004 * objc-lang.c (objc_language_defn): Likewise.
7005 * opencl-lang.c (opencl_language_defn): Likewise.
7006 * p-lang.c (pascal_language_defn): Likewise.
7007 * rust-lang.c (rust_language_defn): Likewise.
7009 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7011 * ada-lang.c (ada_is_character_type): Change return type to bool.
7012 (ada_is_string_type): Likewise.
7013 * ada-lang.h (ada_is_character_type): Update declaration
7014 (ada_is_string_type): Likewise.
7016 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7018 Support style in 'frame|thread apply'
7020 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7021 * record.c (record_start, record_stop): Update callers of
7022 execute_command_to_string with false.
7023 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7024 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7026 (class string_file): New constructor with term_out parameter.
7027 Override methods term_out and can_emit_style_escape. New member
7029 (class stdio_file): Override can_emit_style_escape.
7030 (class tee_file): Override term_out and can_emit_style_escape.
7031 * utils.h (can_emit_style_escape): Remove.
7032 * utils.c (can_emit_style_escape): Likewise.
7033 Update all callers of can_emit_style_escape (SOMESTREAM) to
7034 SOMESTREAM->can_emit_style_escape.
7035 * source-cache.c (source_cache::get_source_lines): Likewise.
7036 * stack.c (frame_apply_command_count): Call execute_command_to_string
7037 passing the term_out characteristic of the current gdb_stdout.
7038 * thread.c (thr_try_catch_cmd): Likewise.
7039 * top.c (execute_command_to_string): pass term_out parameter
7040 to construct the string_file for the command output.
7041 * ui-file.c (term_cli_styling): New function (most code moved
7042 from utils.c can_emit_style_escape).
7043 (string_file::string_file, string_file::can_emit_style_escape,
7044 stdio_file::can_emit_style_escape, tee_file::term_out,
7045 tee_file::can_emit_style_escape): New functions.
7047 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7049 * NEWS: Mention the new set|show may-call-functions.
7050 * infcall.c (may_call_functions_p): New variable.
7051 (show_may_call_functions_p): New function.
7052 (call_function_by_hand_dummy): Throws an error if not
7054 (_initialize_infcall): Call add_setshow_boolean_cmd for
7057 2019-04-25 Keith Seitz <keiths@redhat.com>
7060 * cp-support.c (inspect_type): Don't attempt substitutions
7061 of symbol with the same name.
7063 2019-04-25 Tom Tromey <tromey@adacore.com>
7066 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7069 2019-04-25 Tom Tromey <tromey@adacore.com>
7071 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7073 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7074 (gdb_xml_parser::parse): Use std::move.
7075 * python/python-internal.h (gdbpy_convert_exception): Take a const
7077 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7079 * python/py-utils.c (gdbpy_convert_exception): Take a const
7081 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7083 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7085 * mi/mi-main.c (mi_print_exception): Take a const reference.
7086 * main.c (handle_command_errors): Take a const reference.
7087 * linespec.c (parse_linespec): Use std::move.
7088 * infcall.c (run_inferior_call): Use std::move.
7089 (call_function_by_hand_dummy): Use std::move.
7090 * exec.c (try_open_exec_file): Use std::move.
7091 * exceptions.h (exception_print, exception_fprintf)
7092 (exception_print_same): Update.
7093 * exceptions.c (print_exception, exception_print)
7094 (exception_fprintf, exception_print_same): Change parameters to
7096 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7097 * common/new-op.c: Use std::move.
7098 * common/common-exceptions.h (struct gdb_exception): Add move
7100 (struct gdb_exception_error, struct gdb_exception_quit, struct
7101 gdb_quit_bad_alloc): Change constructor to move constructor.
7102 (throw_exception): Change parameter to rvalue reference.
7103 * common/common-exceptions.c (throw_exception): Take rvalue
7105 * cli/cli-interp.c (safe_execute_command): Use std::move.
7106 * breakpoint.c (insert_bp_location, location_to_sals): Use
7109 2019-04-25 Tom Tromey <tromey@adacore.com>
7111 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7112 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7113 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7114 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7115 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
7116 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
7117 guile/scm-value.c: Use unpack.
7118 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
7119 gdbscm_gdb_exception.
7120 (gdbscm_throw_gdb_exception): Likewise.
7121 (struct gdbscm_gdb_exception): New.
7122 (unpack): New function.
7123 (gdbscm_wrap): Use unpack.
7125 2019-04-25 Tom Tromey <tromey@adacore.com>
7127 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7128 (gdb_rl_callback_handler): Use std::move.
7129 * common/common-exceptions.h (struct gdb_exception): Add move
7130 assignment operator.
7131 (throw_exception_sjlj): Change "exception" to const reference.
7132 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7133 (throw_exception_sjlj): Change "exception" to const reference.
7135 2019-04-25 Tom Tromey <tromey@adacore.com>
7137 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7138 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7139 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7141 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7143 * mi/mi-interp.c (mi_interp::exec): Update.
7144 * linespec.c (parse_linespec): Update.
7145 * infcall.c (run_inferior_call): Update.
7146 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7147 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7148 (gdbscm_lookup_global_symbol): Update.
7149 * guile/scm-param.c (gdbscm_parameter_value): Update.
7150 * guile/scm-frame.c (gdbscm_frame_read_register)
7151 (gdbscm_frame_read_var): Update.
7152 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7153 * exec.c (try_open_exec_file): Update.
7154 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7155 (gdb_rl_callback_handler): Update.
7156 * common/common-exceptions.h (exception_none): Don't declare.
7157 * common/common-exceptions.c (exception_none): Don't define.
7158 (struct catcher) <exception>: Update.
7159 * cli/cli-interp.c (safe_execute_command): Update.
7160 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7162 2019-04-25 Ali Tamur <tamur@google.com>
7164 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7165 (read_attribute_value): Likewise.
7166 (dwarf2_read_addr_index): Update comment.
7167 (read_str_index): Add DW_FORM_strx.
7168 (dwarf2_string_attr): Likewise.
7169 (dwarf2_const_value_attr): Likewise.
7170 (dump_die_shallow): Likewise.
7171 (dwarf2_fetch_constant_bytes): Likewise.
7172 (skip_form_bytes): Likewise.
7173 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7175 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7179 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7180 OFFSET. Verify if current mapping contains an ELF header.
7181 (linux_find_memory_regions_full): Adjust call to
7184 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7185 Kang Li <kanglictf@gmail.com>
7189 * dwarf2-frame.c (read_initial_length): Be consistent about using
7190 unsigned representation of length.
7191 (decode_frame_entry_1): Likewise. Check for wraparound of
7192 end pointer as well as buffer overflow.
7194 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7196 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7199 2019-04-24 Tom Tromey <tromey@adacore.com>
7201 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7203 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7205 * s12z-tdep.c (s12z_unwind_pc): Delete.
7206 (s12z_unwind_sp): Delete.
7207 (s12z_gdbarch_init): Don't register deleted functions with
7210 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7212 * rl78-tdep.c (rl78_unwind_sp): Delete.
7213 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7215 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7217 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
7218 (xstormy16_unwind_pc): Delete.
7219 (xstormy16_dummy_id): Delete.
7220 (xstormy16_gdbarch_init): Don't register deleted functions with
7223 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7225 * vax-tdep.c (vax_unwind_pc): Delete.
7226 (vax_gdbarch_init): Don't register deleted function with gdbarch.
7228 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7230 * v850-tdep.c (v850_unwind_sp): Delete.
7231 (v850_unwind_pc): Delete.
7232 (v850_dummy_id): Delete.
7233 (v850_gdbarch_init): Don't register deleted functions with
7236 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7238 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7239 (tilegx_unwind_pc): Delete.
7240 (tilegx_unwind_dummy_id): Delete.
7241 (tilegx_gdbarch_init): Don't register deleted functions with
7244 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7246 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7247 (tic6x_dummy_id): Delete.
7248 (tic6x_gdbarch_init): Don't register deleted functions with
7251 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7253 * sparc-tdep.c (sparc_unwind_pc): Delete.
7254 (sparc32_gdbarch_init): Don't register deleted function with
7257 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7259 * sh-tdep.c (sh_unwind_sp): Delete.
7260 (sh_unwind_pc): Delete.
7261 (sh_dummy_id): Delete.
7262 (sh_gdbarch_init): Don't register deleted functions with
7265 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7267 * score-tdep.c (score_unwind_sp): Delete.
7268 (score_unwind_pc): Delete.
7269 (score_dummy_id): Delete.
7270 (score_gdbarch_init): Don't register deleted functions with
7273 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7275 * rx-tdep.c (rx_unwind_pc): Delete.
7276 (rx_unwind_sp): Delete.
7277 (rx_dummy_id): Delete.
7278 (rx_gdbarch_init): Don't register deleted functions with
7279 gdbarch. Update comment.
7281 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7283 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
7284 (rs6000_dummy_id): Delete.
7285 (rs6000_gdbarch_init): Don't register deleted functions with
7288 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7290 * or1k-tdep.c (or1k_dummy_id): Delete.
7291 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
7293 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7295 * nios2-tdep.c (nios2_dummy_id): Delete.
7296 (nios2_unwind_sp): Delete.
7297 (nios2_gdbarch_init): Don't register deleted functions with
7300 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7302 * nds32-tdep.c (nds32_dummy_id): Delete.
7303 (nds32_unwind_pc): Delete.
7304 (nds32_unwind_sp): Delete.
7305 (nds32_gdbarch_init): Don't register deleted functions with
7308 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7310 * msp430-tdep.c (msp430_unwind_pc): Delete.
7311 (msp430_unwind_sp): Delete.
7312 (msp430_dummy_id): Delete.
7313 (msp430_gdbarch_init): Don't register deleted functions with
7316 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7318 * moxie-tdep.c (moxie_unwind_sp): Delete.
7319 (moxie_unwind_pc): Delete.
7320 (moxie_dummy_id): Delete.
7321 (moxie_gdbarch_init): Don't register deleted functions with
7324 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7326 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7327 (mn10300_unwind_pc): Delete.
7328 (mn10300_unwind_sp): Delete.
7329 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7331 (mn10300_frame_unwind_init): Don't register deleted functions with
7334 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7336 * mep-tdep.c (mep_unwind_pc): Delete.
7337 (mep_unwind_sp): Delete.
7338 (mep_dummy_id): Delete.
7339 (mep_gdbarch_init): Don't register deleted functions with
7342 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7344 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
7345 (m68hc11_unwind_sp): Delete.
7346 (m68hc11_gdbarch_init): Don't register deleted functions with
7349 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7351 * m32r-tdep.c (m32r_unwind_sp): Delete.
7352 (m32r_unwind_pc): Delete.
7353 (m32r_dummy_id): Delete.
7354 (m32r_gdbarch_init): Don't register deleted functions with
7357 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7359 * m32c-tdep.c (m32c_unwind_pc): Delete.
7360 (m32c_unwind_sp): Delete.
7361 (m32c_dummy_id): Delete.
7362 (m32c_gdbarch_init): Don't register deleted functions with
7365 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7367 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7368 (lm32_unwind_pc): Delete.
7369 (lm32_dummy_id): Delete.
7370 (lm32_gdbarch_init): Don't register deleted functions with
7373 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7375 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7376 (iq2000_unwind_pc): Delete.
7377 (iq2000_dummy_id): Delete.
7378 (iq2000_gdbarch_init): Don't register deleted functions with
7381 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7383 * nds32-tdep.c (nds32_type_align): Delete.
7384 (nds32_push_dummy_call): Use type_align instead.
7386 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7388 * arm-tdep.c (arm_type_align): Only handle vector override case.
7389 (arm_push_dummy_call): Use type_align.
7390 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7392 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7394 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7396 (pass_on_stack): Use type_align.
7397 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7400 2019-04-23 Tom Tromey <tromey@adacore.com>
7402 * dwarf2read.c (line_header::file_name_at): Remove unused
7405 2019-04-23 Tom de Vries <tdevries@suse.de>
7408 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7412 2019-03-27 Ali Tamur <tamur@google.com>
7414 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7415 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7416 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7417 (dwarf_expr_context::get_addr_index): Likewise
7418 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7419 (symbol_needs_eval_context::get_addr_index): Likewise
7420 (disassemble_dwarf_expression): Add DW_OP_addrx
7421 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7422 (read_cutu_die_from_dwo): Update comment
7423 (skip_one_die): Add DW_FORM_addrx
7424 (read_attribute_value): Likewise
7425 (var_decode_location): Add DW_OP_addrx
7426 (dwarf2_const_value_attr): Add DW_FORM_addrx
7427 (dump_die_shallow): Likewise
7428 (dwarf2_fetch_constant_bytes): Likewise
7429 (decode_locdesc): Add DW_OP_addrx
7430 (skip_form_bytes): Add DW_FORM_addrx
7432 2019-04-22 Ali Tamur <tamur@google.com>
7434 * MAINTAINERS (Write After Approval): Add self.
7436 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
7438 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7439 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7440 (open_symbol_file_object): Likewise.
7441 (svr4_default_sos): Add info parameter.
7442 (svr4_read_so_list): Likewise.
7443 (svr4_current_sos_direct): Adjust functions calls to pass down
7445 (svr4_current_sos_1): Add info parameter.
7446 (svr4_current_sos): Call get_svr4_info, pass info down to
7448 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7450 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7452 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7454 (probes_table_remove_objfile_probes): Likewise.
7455 (register_solib_event_probe): Add info parameter.
7456 (solist_update_incremental): Pass info parameter down to
7458 (disable_probes_interface): Add info parameter.
7459 (svr4_handle_solib_event): Pass current_program_space to
7460 get_svr4_info. Adjust disable_probes_interface cleanup.
7461 (svr4_create_probe_breakpoints): Add info parameter, pass it
7462 down to register_solib_event_probe.
7463 (svr4_create_solib_event_breakpoints): Add info parameter,
7464 pass it down to svr4_create_probe_breakpoints.
7465 (enable_break): Pass info down to
7466 svr4_create_solib_event_breakpoints.
7467 (svr4_solib_create_inferior_hook): Pass current_program_space to
7469 (svr4_clear_solib): Likewise.
7471 2019-04-22 Pedro Alves <palves@redhat.com>
7473 * solib-svr4.c (svr4_free_objfile_observer): New.
7474 (probe_and_action::objfile): New field.
7475 (probes_table_htab_remove_objfile_probes)
7476 (probes_table_remove_objfile_probes): New functions.
7477 (register_solib_event_probe): Add 'objfile' parameter. Store it
7478 in the new probe_and_action. Don't store the probe in 'lookup'.
7479 (svr4_create_probe_breakpoints): Pass objfile to
7480 register_solib_event_probe.
7481 (_initialize_svr4_solib): Register a free_objfile observer.
7483 2019-04-19 Tom Tromey <tom@tromey.com>
7485 * common/queue.h: Remove.
7487 2019-04-19 Tom Tromey <tom@tromey.com>
7489 * event-loop.c: Don't include "common/queue.h".
7491 2019-04-19 Tom Tromey <tom@tromey.com>
7493 * remote.c (remote_target): Use delete.
7494 * remote-notif.h: Include <list>, not "common/queue.h".
7495 (notif_client_p): Remove typedef.
7496 (remote_notif_state): Add constructor, destructor, initializer.
7497 <notif_queue>: Now a std::list.
7498 (remote_notif_state_xfree): Don't declare.
7499 * remote-notif.c (remote_notif_process, handle_notification)
7500 (remote_notif_state_allocate): Update.
7501 (~remote_notif_state): Rename from remote_notif_state_xfree.
7503 2019-04-19 Tom Tromey <tom@tromey.com>
7505 * symfile.c (reread_symbols): Update.
7506 * objfiles.c (objfile_register_static_link)
7507 (objfile_lookup_static_link): Update
7508 (~objfile) Don't delete static_links.
7509 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
7511 2019-04-19 Tom Tromey <tom@tromey.com>
7513 * type-stack.h (struct type_stack) <insert>: Constify string.
7514 * type-stack.c (type_stack::insert): Constify string.
7515 * gdbtypes.h (lookup_template_type): Update.
7516 (address_space_name_to_int): Update.
7517 * gdbtypes.c (address_space_name_to_int): Make space_identifier
7519 (lookup_template_type): Make name const.
7520 * c-exp.y: Update rules.
7521 (lex_one_token, classify_name, classify_inner_name)
7522 (c_print_token): Update.
7523 * p-exp.y: Update rules.
7525 * f-exp.y: Update rules.
7527 * d-exp.y: Update rules.
7528 (lex_one_token, classify_name, classify_inner_name): Update.
7529 * parse.c (write_dollar_variable, copy_name): Return std::string.
7530 * parser-defs.h (copy_name): Change return type.
7531 * m2-exp.y: Update rules.
7533 * go-exp.y (lex_one_token): Update.
7535 (classify_unsafe_function, classify_packaged_name)
7536 (classify_name, yylex): Update.
7538 2019-04-19 Sergei Trofimovich <siarheit@google.com>
7540 * configure.ac: add --enable-source-highlight switch.
7541 * configure: Regenerate.
7542 * top.c (print_gdb_version): plumb --enable-source-highlight
7543 status to "show configuration".
7545 2019-04-19 Tom Tromey <tromey@adacore.com>
7547 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
7549 (empty_record, ada_template_to_fixed_record_type_1)
7550 (template_to_static_fixed_type)
7551 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
7552 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
7553 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
7556 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7559 * source.c (print_source_lines_base): Advance "iter" when a
7560 control character is seen.
7562 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7564 * inferior.h (struct infcall_suspend_state_deleter):
7565 Catch exception in destructor to avoid crash.
7567 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7569 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
7570 close to the add_com "shell".
7572 2019-04-18 Tom Tromey <tromey@adacore.com>
7574 * process-stratum-target.h (class process_stratum_target)
7575 <stratum>: Add "final".
7577 2019-04-17 Tom Tromey <tromey@adacore.com>
7579 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
7580 against nullptr before use.
7582 2019-04-17 Alan Hayward <alan.hayward@arm.com>
7584 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
7586 2019-04-17 Jim Wilson <jimw@sifive.com>
7587 Andrew Burgess <andrew.burgess@embecosm.com>
7589 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
7590 code read might fail, assume 4-byte breakpoint in that case.
7592 2019-04-15 Leszek Swirski <leszeks@google.com>
7594 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
7595 rather than a hand-rolled POD check when checking for forced MEMORY
7598 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7600 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
7601 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
7603 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
7604 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
7605 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
7608 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7610 * aarch64-linux-nat.c
7611 (aarch64_linux_nat_target::thread_architecture): Add override.
7612 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
7615 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7617 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
7619 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
7621 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
7622 target types of size 96-bits, add some additional comments, and
7623 check that the builtin type we found was the correct size.
7625 2019-04-12 Eli Zaretskii <eliz@gnu.org>
7627 * utils.c (prompt_for_continue): Don't restore the styling at the
7628 end, as applied_style has the wrong value. This fixes styling in
7629 long lists of file names that are interrupted by the "Continue?"
7632 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
7634 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
7635 * c-lang.c (c_language_defn): Likewise.
7636 (cplus_language_defn): Likewise.
7637 (asm_language_defn): Likewise.
7638 (minimal_language_defn): Likewise.
7639 * d-lang.c (d_language_defn): Likewise.
7640 * f-lang.c (f_language_defn): Likewise.
7641 * go-lang.c (go_language_defn): Likewise.
7642 * language.c (unknown_language_defn): Likewise.
7643 (auto_language_defn): Likewise.
7644 * language.h (struct language_defn): Remove la_magic field.
7645 (LANG_MAGIC): Delete.
7646 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
7647 * objc-lang.c (objc_language_defn): Likewise.
7648 * opencl-lang.c (opencl_language_defn): Likewise.
7649 * p-lang.c (pascal_language_defn): Likewise.
7650 * rust-lang.c (rust_language_defn): Likewise.
7652 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7654 * riscv-tdep.c (riscv_type_align): New function.
7655 (riscv_type_alignment): Delete.
7656 (riscv_arg_location): Use 'type_align'.
7657 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
7659 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7661 * gdbtypes.c (type_align): A struct with no non-static fields also
7664 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7666 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
7668 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
7670 (riscv_struct_info::analyse): New implementation using new
7671 analyse_inner member function.
7672 (riscv_struct_info::field_offset): New member function.
7673 (riscv_struct_info::m_offsets): New member variable.
7674 (riscv_struct_info::analyse_inner): New private member function,
7675 takes the old implementation of riscv_struct_info::analyse but
7676 extended to track field offsets.
7677 (riscv_call_arg_struct): Update the struct folding special cases
7678 to handle cases where empty C++ structs, which are non-zero
7680 (riscv_arg_location): Initialise the length of each location, a
7681 non-zero length now indicates the location is in use.
7682 (riscv_push_dummy_call): Allow for the first location having a
7683 non-zero offset when setting up arguments.
7684 (riscv_return_value): Likewise, but for return values.
7686 2019-04-11 Tom Tromey <tromey@adacore.com>
7688 * utils.c (internal_vproblem): Make "msg" const.
7690 2019-04-11 Alan Hayward <alan.hayward@arm.com>
7692 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
7693 * trad-frame.c (trad_frame_reset_saved_regs): New function.
7694 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
7695 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
7697 2019-04-10 Kevin Buettner <kevinb@redhat.com>
7699 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
7701 (fill_gregset): Call amd64_linux_collect_native_gregset instead
7702 of amd64_collect_native_gregset.
7703 (amd64_linux_nat_target::store_registers): Likewise.
7705 2019-04-10 Tom Tromey <tom@tromey.com>
7707 * symtab.c (lookup_global_symbol_from_objfile)
7708 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
7709 * objfiles.h (class separate_debug_iterator): New.
7710 (class separate_debug_range): New.
7711 (struct objfile) <separate_debug_objfiles>: New method.
7712 (objfile_separate_debug_iterate): Don't declare.
7713 * objfiles.c (separate_debug_iterator::operator++): Rename from
7714 objfile_separate_debug_iterate.
7715 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
7717 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
7720 2019-04-10 Tom Tromey <tom@tromey.com>
7722 * symfile.c (reread_symbols): Remove old comment.
7723 * objfiles.c (free_all_objfiles): Fix a typo.
7725 2019-04-10 Tom Tromey <tom@tromey.com>
7727 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
7728 * minsyms.c (lookup_minimal_symbol): Use foreach.
7729 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7730 (lookup_minimal_symbol_solib_trampoline): Likewise.
7731 * symfile.c (reread_symbols): Use foreach.
7733 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
7734 Tom Tromey <tromey@adacore.com>
7737 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
7738 (rust_lex_int_test): Change "value" to be LONGEST.
7739 (rust_lex_tests): Add test for long integer literal.
7741 2019-04-09 Tom Tromey <tromey@adacore.com>
7743 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
7745 (extended_remote_target::attach): Update.
7746 (remote_target::remote_notice_new_inferior): Update.
7747 (remote_target::add_current_inferior_and_thread): Update.
7748 * inferior.c (exit_inferior_1): Use "false".
7749 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
7751 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
7753 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
7754 the "start" command.
7756 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7758 * python/py-inferior.c (infpy_thread_from_thread_handle):
7759 Adjust comments to reflect renaming of thread_from_thread_handle
7760 to thread_from_handle. Adjust keywords. Fix type error message.
7761 (inferior_object_methods): Add thread_from_handle. Retain
7762 thread_from_thread_handle, but mark it as deprecated.
7764 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7766 * gdbthread.h (find_thread_by_handle): Revise declaration.
7767 * thread.c (find_thread_by_handle): Likewise. Adjust
7769 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
7770 support for buffer objects as handles.
7772 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7774 * python/py-infthread.c (thpy_thread_handle): New function.
7775 (thread_object_methods): Register thpy_thread_handle.
7777 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7779 * gdbthread.h (thread_to_thread_handle): Declare.
7780 * thread.c (gdbtypes.h): Include.
7781 (thread_to_thread_handle): New function.
7783 * target.h (struct target_ops): Add thread_info_to_thread_handle.
7784 (target_thread_info_to_thread_handle): Declare.
7785 * target.c (target_thread_info_to_thread_handle): New function.
7786 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
7787 * target-delegates.c: Regenerate.
7789 * linux-thread-db.c (class thread_db_target): Add method
7790 thread_info_to_thread_handle.
7791 (thread_db_target::thread_info_to_thread_handle): Define.
7792 * remote.c (class remote_target): Add new method
7793 thread_info_to_thread_handle.
7794 (remote_target::thread_info_to_thread_handle): Define.
7796 2019-04-08 Pedro Alves <palves@redhat.com>
7798 * common/common-exceptions.c (throw_exception): Don't create
7799 named object to throw; throw directly.
7800 (throw_it): Likewise. Don't initialize gdb_exception::message
7801 here, with new; pass FMT and AP to the ctor instead.
7802 * common/common-exceptions.h: Include <string>.
7803 (gdb_exception::gdb_exception(enum return_reason, enum errors,
7804 const char *, va_list)): New ctor. Use std::make_shared.
7805 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
7807 (gdb_exception_error::gdb_exception_error(enum errors, const char
7809 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
7811 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
7813 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
7814 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
7817 2019-04-08 Tom Tromey <tom@tromey.com>
7819 * valops.c (value_rtti_indirect_type): Replace throw_exception
7821 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
7823 * thread.c (thr_try_catch_cmd): Replace throw_exception with
7825 * target.c (target_translate_tls_address): Replace throw_exception
7827 * stack.c (frame_apply_command_count): Replace throw_exception
7829 * solib-spu.c (append_ocl_sos): Replace throw_exception with
7831 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7833 * rs6000-tdep.c (rs6000_frame_cache)
7834 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7835 * remote.c: Replace throw_exception with throw.
7836 * record-full.c (record_full_message, record_full_wait_1)
7837 (record_full_restore): Replace throw_exception with throw.
7839 (get_thread_current_frame_id, record_btrace_start_replaying)
7840 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7841 (cmd_record_btrace_start): Replace throw_exception with throw.
7842 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7844 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7845 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7847 (find_linespec_symbols): Replace throw_exception with throw.
7848 * infrun.c (displaced_step_prepare, resume): Replace
7849 throw_exception with throw.
7850 * infcmd.c (post_create_inferior): Replace throw_exception with
7852 * inf-loop.c (inferior_event_handler): Replace throw_exception
7854 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7855 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7856 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7857 (get_prev_frame_always, get_frame_pc_if_available)
7858 (get_frame_address_in_block_if_available, get_frame_language):
7859 Replace throw_exception with throw.
7860 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7861 throw_exception with throw.
7862 * eval.c (fetch_subexp_value, evaluate_var_value)
7863 (evaluate_funcall, evaluate_subexp_standard): Replace
7864 throw_exception with throw.
7865 * dwarf2loc.c (call_site_find_chain)
7866 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7867 Replace throw_exception with throw.
7868 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7870 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7872 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7873 * completer.c (complete_line_internal): Replace throw_exception
7875 * compile/compile-object-run.c (compile_object_run): Replace
7876 throw_exception with throw.
7877 * cli/cli-script.c (process_next_line): Replace throw_exception
7879 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7880 (btrace_enable, btrace_maint_update_pt_packets): Replace
7881 throw_exception with throw.
7882 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7883 throw_exception with throw.
7884 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7885 throw_exception with throw.
7886 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7887 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7888 * aarch64-tdep.c (aarch64_make_prologue_cache)
7889 (aarch64_make_stub_cache): Replace throw_exception with throw.
7891 2019-04-08 Tom Tromey <tom@tromey.com>
7893 * common/common-exceptions.c (throw_exception): Rename from
7894 throw_exception_cxx. Remove old copy. Make argument const.
7895 (throw_it): Create and throw exception objects directly.
7896 * common/common-exceptions.h (throw_exception): Make argument
7898 (struct gdb_exception_error): Add constructor.
7899 (struct gdb_exception_quit): Add constructor.
7901 2019-04-08 Tom Tromey <tom@tromey.com>
7903 * common/common-exceptions.h (exception_rethrow): Don't declare.
7904 (TRY_SJLJ): Update comment.
7905 (TRY, CATCH, END_CATCH): Remove.
7906 * common/common-exceptions.c (exception_rethrow): Remove.
7908 2019-04-08 Tom Tromey <tom@tromey.com>
7910 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7912 (gdb_exception_error): Rename from
7913 gdb_exception_RETURN_MASK_ERROR.
7914 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7915 (gdb_quit_bad_alloc): Update.
7916 * aarch64-tdep.c: Update.
7917 * ada-lang.c: Update.
7918 * ada-typeprint.c: Update.
7919 * ada-valprint.c: Update.
7920 * amd64-tdep.c: Update.
7921 * arch-utils.c: Update.
7922 * break-catch-throw.c: Update.
7923 * breakpoint.c: Update.
7925 * c-varobj.c: Update.
7926 * cli/cli-cmds.c: Update.
7927 * cli/cli-interp.c: Update.
7928 * cli/cli-script.c: Update.
7929 * common/common-exceptions.c: Update.
7930 * common/new-op.c: Update.
7931 * common/selftest.c: Update.
7932 * compile/compile-c-symbols.c: Update.
7933 * compile/compile-cplus-symbols.c: Update.
7934 * compile/compile-object-load.c: Update.
7935 * compile/compile-object-run.c: Update.
7936 * completer.c: Update.
7937 * corelow.c: Update.
7939 * cp-support.c: Update.
7940 * cp-valprint.c: Update.
7941 * darwin-nat.c: Update.
7942 * disasm-selftests.c: Update.
7943 * dtrace-probe.c: Update.
7944 * dwarf-index-cache.c: Update.
7945 * dwarf-index-write.c: Update.
7946 * dwarf2-frame-tailcall.c: Update.
7947 * dwarf2-frame.c: Update.
7948 * dwarf2loc.c: Update.
7949 * dwarf2read.c: Update.
7951 * event-loop.c: Update.
7952 * event-top.c: Update.
7954 * f-valprint.c: Update.
7955 * fbsd-tdep.c: Update.
7956 * frame-unwind.c: Update.
7958 * gdbtypes.c: Update.
7959 * gnu-v3-abi.c: Update.
7960 * guile/guile-internal.h: Update.
7961 * guile/scm-block.c: Update.
7962 * guile/scm-breakpoint.c: Update.
7963 * guile/scm-cmd.c: Update.
7964 * guile/scm-disasm.c: Update.
7965 * guile/scm-frame.c: Update.
7966 * guile/scm-lazy-string.c: Update.
7967 * guile/scm-math.c: Update.
7968 * guile/scm-param.c: Update.
7969 * guile/scm-ports.c: Update.
7970 * guile/scm-pretty-print.c: Update.
7971 * guile/scm-symbol.c: Update.
7972 * guile/scm-symtab.c: Update.
7973 * guile/scm-type.c: Update.
7974 * guile/scm-value.c: Update.
7975 * i386-linux-tdep.c: Update.
7976 * i386-tdep.c: Update.
7977 * inf-loop.c: Update.
7978 * infcall.c: Update.
7982 * language.c: Update.
7983 * linespec.c: Update.
7984 * linux-fork.c: Update.
7985 * linux-nat.c: Update.
7986 * linux-tdep.c: Update.
7987 * linux-thread-db.c: Update.
7989 * mi/mi-cmd-break.c: Update.
7990 * mi/mi-cmd-stack.c: Update.
7991 * mi/mi-interp.c: Update.
7992 * mi/mi-main.c: Update.
7993 * objc-lang.c: Update.
7994 * p-valprint.c: Update.
7996 * ppc-linux-tdep.c: Update.
7997 * printcmd.c: Update.
7998 * python/py-arch.c: Update.
7999 * python/py-breakpoint.c: Update.
8000 * python/py-cmd.c: Update.
8001 * python/py-finishbreakpoint.c: Update.
8002 * python/py-frame.c: Update.
8003 * python/py-framefilter.c: Update.
8004 * python/py-gdb-readline.c: Update.
8005 * python/py-inferior.c: Update.
8006 * python/py-infthread.c: Update.
8007 * python/py-lazy-string.c: Update.
8008 * python/py-linetable.c: Update.
8009 * python/py-objfile.c: Update.
8010 * python/py-param.c: Update.
8011 * python/py-prettyprint.c: Update.
8012 * python/py-progspace.c: Update.
8013 * python/py-record-btrace.c: Update.
8014 * python/py-record.c: Update.
8015 * python/py-symbol.c: Update.
8016 * python/py-type.c: Update.
8017 * python/py-unwind.c: Update.
8018 * python/py-utils.c: Update.
8019 * python/py-value.c: Update.
8020 * python/python.c: Update.
8021 * record-btrace.c: Update.
8022 * record-full.c: Update.
8023 * remote-fileio.c: Update.
8025 * riscv-tdep.c: Update.
8026 * rs6000-aix-tdep.c: Update.
8027 * rs6000-tdep.c: Update.
8028 * rust-exp.y: Update.
8029 * rust-lang.c: Update.
8030 * s390-tdep.c: Update.
8031 * selftest-arch.c: Update.
8032 * solib-dsbt.c: Update.
8033 * solib-frv.c: Update.
8034 * solib-spu.c: Update.
8035 * solib-svr4.c: Update.
8037 * sparc64-linux-tdep.c: Update.
8039 * symfile-mem.c: Update.
8040 * symmisc.c: Update.
8044 * tracefile-tfile.c: Update.
8045 * tui/tui.c: Update.
8046 * typeprint.c: Update.
8047 * unittests/cli-utils-selftests.c: Update.
8048 * unittests/parse-connection-spec-selftests.c: Update.
8050 * valprint.c: Update.
8053 * windows-nat.c: Update.
8054 * x86-linux-nat.c: Update.
8055 * xml-support.c: Update.
8057 2019-04-08 Tom Tromey <tom@tromey.com>
8059 * xml-support.c: Use C++ exception handling.
8060 * x86-linux-nat.c: Use C++ exception handling.
8061 * windows-nat.c: Use C++ exception handling.
8062 * varobj.c: Use C++ exception handling.
8063 * value.c: Use C++ exception handling.
8064 * valprint.c: Use C++ exception handling.
8065 * valops.c: Use C++ exception handling.
8066 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8068 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8069 * typeprint.c: Use C++ exception handling.
8070 * tui/tui.c: Use C++ exception handling.
8071 * tracefile-tfile.c: Use C++ exception handling.
8072 * top.c: Use C++ exception handling.
8073 * thread.c: Use C++ exception handling.
8074 * target.c: Use C++ exception handling.
8075 * symmisc.c: Use C++ exception handling.
8076 * symfile-mem.c: Use C++ exception handling.
8077 * stack.c: Use C++ exception handling.
8078 * sparc64-linux-tdep.c: Use C++ exception handling.
8079 * solib.c: Use C++ exception handling.
8080 * solib-svr4.c: Use C++ exception handling.
8081 * solib-spu.c: Use C++ exception handling.
8082 * solib-frv.c: Use C++ exception handling.
8083 * solib-dsbt.c: Use C++ exception handling.
8084 * selftest-arch.c: Use C++ exception handling.
8085 * s390-tdep.c: Use C++ exception handling.
8086 * rust-lang.c: Use C++ exception handling.
8087 * rust-exp.y: Use C++ exception handling.
8088 * rs6000-tdep.c: Use C++ exception handling.
8089 * rs6000-aix-tdep.c: Use C++ exception handling.
8090 * riscv-tdep.c: Use C++ exception handling.
8091 * remote.c: Use C++ exception handling.
8092 * remote-fileio.c: Use C++ exception handling.
8093 * record-full.c: Use C++ exception handling.
8094 * record-btrace.c: Use C++ exception handling.
8095 * python/python.c: Use C++ exception handling.
8096 * python/py-value.c: Use C++ exception handling.
8097 * python/py-utils.c: Use C++ exception handling.
8098 * python/py-unwind.c: Use C++ exception handling.
8099 * python/py-type.c: Use C++ exception handling.
8100 * python/py-symbol.c: Use C++ exception handling.
8101 * python/py-record.c: Use C++ exception handling.
8102 * python/py-record-btrace.c: Use C++ exception handling.
8103 * python/py-progspace.c: Use C++ exception handling.
8104 * python/py-prettyprint.c: Use C++ exception handling.
8105 * python/py-param.c: Use C++ exception handling.
8106 * python/py-objfile.c: Use C++ exception handling.
8107 * python/py-linetable.c: Use C++ exception handling.
8108 * python/py-lazy-string.c: Use C++ exception handling.
8109 * python/py-infthread.c: Use C++ exception handling.
8110 * python/py-inferior.c: Use C++ exception handling.
8111 * python/py-gdb-readline.c: Use C++ exception handling.
8112 * python/py-framefilter.c: Use C++ exception handling.
8113 * python/py-frame.c: Use C++ exception handling.
8114 * python/py-finishbreakpoint.c: Use C++ exception handling.
8115 * python/py-cmd.c: Use C++ exception handling.
8116 * python/py-breakpoint.c: Use C++ exception handling.
8117 * python/py-arch.c: Use C++ exception handling.
8118 * printcmd.c: Use C++ exception handling.
8119 * ppc-linux-tdep.c: Use C++ exception handling.
8120 * parse.c: Use C++ exception handling.
8121 * p-valprint.c: Use C++ exception handling.
8122 * objc-lang.c: Use C++ exception handling.
8123 * mi/mi-main.c: Use C++ exception handling.
8124 * mi/mi-interp.c: Use C++ exception handling.
8125 * mi/mi-cmd-stack.c: Use C++ exception handling.
8126 * mi/mi-cmd-break.c: Use C++ exception handling.
8127 * main.c: Use C++ exception handling.
8128 * linux-thread-db.c: Use C++ exception handling.
8129 * linux-tdep.c: Use C++ exception handling.
8130 * linux-nat.c: Use C++ exception handling.
8131 * linux-fork.c: Use C++ exception handling.
8132 * linespec.c: Use C++ exception handling.
8133 * language.c: Use C++ exception handling.
8134 * jit.c: Use C++ exception handling.
8135 * infrun.c: Use C++ exception handling.
8136 * infcmd.c: Use C++ exception handling.
8137 * infcall.c: Use C++ exception handling.
8138 * inf-loop.c: Use C++ exception handling.
8139 * i386-tdep.c: Use C++ exception handling.
8140 * i386-linux-tdep.c: Use C++ exception handling.
8141 * guile/scm-value.c: Use C++ exception handling.
8142 * guile/scm-type.c: Use C++ exception handling.
8143 * guile/scm-symtab.c: Use C++ exception handling.
8144 * guile/scm-symbol.c: Use C++ exception handling.
8145 * guile/scm-pretty-print.c: Use C++ exception handling.
8146 * guile/scm-ports.c: Use C++ exception handling.
8147 * guile/scm-param.c: Use C++ exception handling.
8148 * guile/scm-math.c: Use C++ exception handling.
8149 * guile/scm-lazy-string.c: Use C++ exception handling.
8150 * guile/scm-frame.c: Use C++ exception handling.
8151 * guile/scm-disasm.c: Use C++ exception handling.
8152 * guile/scm-cmd.c: Use C++ exception handling.
8153 * guile/scm-breakpoint.c: Use C++ exception handling.
8154 * guile/scm-block.c: Use C++ exception handling.
8155 * guile/guile-internal.h: Use C++ exception handling.
8156 * gnu-v3-abi.c: Use C++ exception handling.
8157 * gdbtypes.c: Use C++ exception handling.
8158 * frame.c: Use C++ exception handling.
8159 * frame-unwind.c: Use C++ exception handling.
8160 * fbsd-tdep.c: Use C++ exception handling.
8161 * f-valprint.c: Use C++ exception handling.
8162 * exec.c: Use C++ exception handling.
8163 * event-top.c: Use C++ exception handling.
8164 * event-loop.c: Use C++ exception handling.
8165 * eval.c: Use C++ exception handling.
8166 * dwarf2read.c: Use C++ exception handling.
8167 * dwarf2loc.c: Use C++ exception handling.
8168 * dwarf2-frame.c: Use C++ exception handling.
8169 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8170 * dwarf-index-write.c: Use C++ exception handling.
8171 * dwarf-index-cache.c: Use C++ exception handling.
8172 * dtrace-probe.c: Use C++ exception handling.
8173 * disasm-selftests.c: Use C++ exception handling.
8174 * darwin-nat.c: Use C++ exception handling.
8175 * cp-valprint.c: Use C++ exception handling.
8176 * cp-support.c: Use C++ exception handling.
8177 * cp-abi.c: Use C++ exception handling.
8178 * corelow.c: Use C++ exception handling.
8179 * completer.c: Use C++ exception handling.
8180 * compile/compile-object-run.c: Use C++ exception handling.
8181 * compile/compile-object-load.c: Use C++ exception handling.
8182 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8183 * compile/compile-c-symbols.c: Use C++ exception handling.
8184 * common/selftest.c: Use C++ exception handling.
8185 * common/new-op.c: Use C++ exception handling.
8186 * cli/cli-script.c: Use C++ exception handling.
8187 * cli/cli-interp.c: Use C++ exception handling.
8188 * cli/cli-cmds.c: Use C++ exception handling.
8189 * c-varobj.c: Use C++ exception handling.
8190 * btrace.c: Use C++ exception handling.
8191 * breakpoint.c: Use C++ exception handling.
8192 * break-catch-throw.c: Use C++ exception handling.
8193 * arch-utils.c: Use C++ exception handling.
8194 * amd64-tdep.c: Use C++ exception handling.
8195 * ada-valprint.c: Use C++ exception handling.
8196 * ada-typeprint.c: Use C++ exception handling.
8197 * ada-lang.c: Use C++ exception handling.
8198 * aarch64-tdep.c: Use C++ exception handling.
8200 2019-04-08 Tom Tromey <tom@tromey.com>
8202 * xml-support.c (gdb_xml_parser::parse): Update.
8203 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8204 * value.c (show_convenience): Update.
8205 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8206 (test_parse_flags_qcs): Update.
8207 * thread.c (thr_try_catch_cmd): Update.
8208 * target.c (target_translate_tls_address): Update.
8209 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8210 (info_frame_command_core, frame_apply_command_count): Update.
8211 * rust-exp.y (rust_lex_exception_test): Update.
8212 * riscv-tdep.c (riscv_print_one_register_info): Update.
8213 * remote.c (remote_target::enable_btrace): Update.
8214 * record-btrace.c (record_btrace_enable_warn): Update.
8215 * python/py-utils.c (gdbpy_convert_exception): Update.
8216 * printcmd.c (do_one_display, print_variable_and_value): Update.
8217 * mi/mi-main.c (mi_print_exception): Update.
8218 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
8219 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
8220 * linux-nat.c (linux_nat_target::attach): Update.
8221 * linux-fork.c (class scoped_switch_fork_info): Update.
8222 * infrun.c (displaced_step_prepare): Update.
8223 * infcall.c (call_function_by_hand_dummy): Update.
8224 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
8225 * gnu-v3-abi.c (print_one_vtable): Update.
8226 * frame.c (get_prev_frame_always): Update.
8227 * f-valprint.c (info_common_command_for_block): Update.
8228 * exec.c (try_open_exec_file): Update.
8229 * exceptions.c (print_exception, exception_print)
8230 (exception_fprintf, exception_print_same): Update.
8231 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
8232 * dwarf-index-cache.c (index_cache::store)
8233 (index_cache::lookup_gdb_index): Update.
8234 * darwin-nat.c (maybe_cache_shell): Update.
8235 * cp-valprint.c (cp_print_value_fields): Update.
8236 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
8237 (gcc_cplus_symbol_address): Update.
8238 * compile/compile-c-symbols.c (gcc_convert_symbol)
8239 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8240 * common/selftest.c: Update.
8241 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8243 (exception_try_scope_entry, exception_try_scope_exit): Don't
8245 (struct exception_try_scope): Remove.
8246 (TRY): Don't use exception_try_scope.
8247 (struct gdb_exception): Add constructor, operator=.
8249 (struct gdb_exception_RETURN_MASK_ALL)
8250 (struct gdb_exception_RETURN_MASK_ERROR)
8251 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8252 (struct gdb_quit_bad_alloc): Update.
8253 * common/common-exceptions.c (exception_none): Change
8255 (struct catcher) <state, exception>: Initialize inline.
8256 <prev>: Remove member.
8257 (current_catcher): Remove.
8258 (catchers): New global.
8259 (exceptions_state_mc_init): Simplify.
8260 (catcher_pop): Remove.
8261 (exceptions_state_mc, exceptions_state_mc_catch): Update.
8262 (try_scope_depth, exception_try_scope_entry)
8263 (exception_try_scope_exit): Remove.
8264 (throw_exception_sjlj): Update.
8265 (exception_messages, exception_messages_size): Remove.
8266 (throw_it): Simplify.
8267 (gdb_exception_sliced_copy): Remove.
8268 (throw_exception_cxx): Update.
8269 * cli/cli-script.c (script_from_file): Update.
8270 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
8272 * ada-valprint.c (ada_val_print): Update.
8273 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
8274 (create_excep_cond_exprs): Update.
8276 2019-04-08 Tom Tromey <tom@tromey.com>
8278 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8279 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
8280 (TRY, CATCH, END_CATCH): Remove some definitions.
8281 * common/common-exceptions.c: Don't use GDB_XCPT.
8282 (catcher_list_size): Remove.
8283 (throw_exception, throw_it): Simplify.
8285 2019-04-05 Tom Tromey <tom@tromey.com>
8287 Revert the header-sorting patch.
8288 * ft32-tdep.c: Revert.
8289 * frv-tdep.c: Revert.
8290 * frv-linux-tdep.c: Revert.
8292 * frame-unwind.c: Revert.
8293 * frame-base.c: Revert.
8294 * fork-child.c: Revert.
8295 * findvar.c: Revert.
8296 * findcmd.c: Revert.
8297 * filesystem.c: Revert.
8298 * filename-seen-cache.h: Revert.
8299 * filename-seen-cache.c: Revert.
8300 * fbsd-tdep.c: Revert.
8301 * fbsd-nat.h: Revert.
8302 * fbsd-nat.c: Revert.
8303 * f-valprint.c: Revert.
8304 * f-typeprint.c: Revert.
8306 * extension.h: Revert.
8307 * extension.c: Revert.
8308 * extension-priv.h: Revert.
8309 * expprint.c: Revert.
8312 * exceptions.c: Revert.
8313 * event-top.c: Revert.
8314 * event-loop.c: Revert.
8316 * elfread.c: Revert.
8317 * dwarf2read.h: Revert.
8318 * dwarf2read.c: Revert.
8319 * dwarf2loc.c: Revert.
8320 * dwarf2expr.h: Revert.
8321 * dwarf2expr.c: Revert.
8322 * dwarf2-frame.c: Revert.
8323 * dwarf2-frame-tailcall.c: Revert.
8324 * dwarf-index-write.h: Revert.
8325 * dwarf-index-write.c: Revert.
8326 * dwarf-index-common.c: Revert.
8327 * dwarf-index-cache.h: Revert.
8328 * dwarf-index-cache.c: Revert.
8329 * dummy-frame.c: Revert.
8330 * dtrace-probe.c: Revert.
8333 * disasm-selftests.c: Revert.
8334 * dictionary.c: Revert.
8335 * dicos-tdep.c: Revert.
8336 * demangle.c: Revert.
8339 * darwin-nat.h: Revert.
8340 * darwin-nat.c: Revert.
8341 * darwin-nat-info.c: Revert.
8342 * d-valprint.c: Revert.
8343 * d-namespace.c: Revert.
8346 * csky-tdep.c: Revert.
8347 * csky-linux-tdep.c: Revert.
8348 * cris-tdep.c: Revert.
8349 * cris-linux-tdep.c: Revert.
8350 * cp-valprint.c: Revert.
8351 * cp-support.c: Revert.
8352 * cp-namespace.c: Revert.
8354 * corelow.c: Revert.
8355 * corefile.c: Revert.
8356 * continuations.c: Revert.
8357 * completer.h: Revert.
8358 * completer.c: Revert.
8359 * complaints.c: Revert.
8360 * coffread.c: Revert.
8361 * coff-pe-read.c: Revert.
8362 * cli-out.h: Revert.
8363 * cli-out.c: Revert.
8364 * charset.c: Revert.
8365 * c-varobj.c: Revert.
8366 * c-valprint.c: Revert.
8367 * c-typeprint.c: Revert.
8369 * buildsym.c: Revert.
8370 * buildsym-legacy.c: Revert.
8371 * build-id.h: Revert.
8372 * build-id.c: Revert.
8374 * bsd-uthread.c: Revert.
8375 * breakpoint.h: Revert.
8376 * breakpoint.c: Revert.
8377 * break-catch-throw.c: Revert.
8378 * break-catch-syscall.c: Revert.
8379 * break-catch-sig.c: Revert.
8380 * blockframe.c: Revert.
8382 * bfin-tdep.c: Revert.
8383 * bfin-linux-tdep.c: Revert.
8384 * bfd-target.c: Revert.
8386 * ax-general.c: Revert.
8389 * avr-tdep.c: Revert.
8391 * auto-load.c: Revert.
8392 * arm-wince-tdep.c: Revert.
8393 * arm-tdep.c: Revert.
8394 * arm-symbian-tdep.c: Revert.
8395 * arm-pikeos-tdep.c: Revert.
8396 * arm-obsd-tdep.c: Revert.
8397 * arm-nbsd-tdep.c: Revert.
8398 * arm-nbsd-nat.c: Revert.
8399 * arm-linux-tdep.c: Revert.
8400 * arm-linux-nat.c: Revert.
8401 * arm-fbsd-tdep.c: Revert.
8402 * arm-fbsd-nat.c: Revert.
8403 * arm-bsd-tdep.c: Revert.
8404 * arch-utils.c: Revert.
8405 * arc-tdep.c: Revert.
8406 * arc-newlib-tdep.c: Revert.
8407 * annotate.h: Revert.
8408 * annotate.c: Revert.
8409 * amd64-windows-tdep.c: Revert.
8410 * amd64-windows-nat.c: Revert.
8411 * amd64-tdep.c: Revert.
8412 * amd64-sol2-tdep.c: Revert.
8413 * amd64-obsd-tdep.c: Revert.
8414 * amd64-obsd-nat.c: Revert.
8415 * amd64-nbsd-tdep.c: Revert.
8416 * amd64-nbsd-nat.c: Revert.
8417 * amd64-nat.c: Revert.
8418 * amd64-linux-tdep.c: Revert.
8419 * amd64-linux-nat.c: Revert.
8420 * amd64-fbsd-tdep.c: Revert.
8421 * amd64-fbsd-nat.c: Revert.
8422 * amd64-dicos-tdep.c: Revert.
8423 * amd64-darwin-tdep.c: Revert.
8424 * amd64-bsd-nat.c: Revert.
8425 * alpha-tdep.c: Revert.
8426 * alpha-obsd-tdep.c: Revert.
8427 * alpha-nbsd-tdep.c: Revert.
8428 * alpha-mdebug-tdep.c: Revert.
8429 * alpha-linux-tdep.c: Revert.
8430 * alpha-linux-nat.c: Revert.
8431 * alpha-bsd-tdep.c: Revert.
8432 * alpha-bsd-nat.c: Revert.
8433 * aix-thread.c: Revert.
8435 * addrmap.c: Revert.
8436 * ada-varobj.c: Revert.
8437 * ada-valprint.c: Revert.
8438 * ada-typeprint.c: Revert.
8439 * ada-tasks.c: Revert.
8440 * ada-lang.c: Revert.
8441 * aarch64-tdep.c: Revert.
8442 * aarch64-ravenscar-thread.c: Revert.
8443 * aarch64-newlib-tdep.c: Revert.
8444 * aarch64-linux-tdep.c: Revert.
8445 * aarch64-linux-nat.c: Revert.
8446 * aarch64-fbsd-tdep.c: Revert.
8447 * aarch64-fbsd-nat.c: Revert.
8448 * aarch32-linux-nat.c: Revert.
8450 2019-04-05 Tom Tromey <tom@tromey.com>
8452 * ft32-tdep.c: Sort headers.
8453 * frv-tdep.c: Sort headers.
8454 * frv-linux-tdep.c: Sort headers.
8455 * frame.c: Sort headers.
8456 * frame-unwind.c: Sort headers.
8457 * frame-base.c: Sort headers.
8458 * fork-child.c: Sort headers.
8459 * findvar.c: Sort headers.
8460 * findcmd.c: Sort headers.
8461 * filesystem.c: Sort headers.
8462 * filename-seen-cache.h: Sort headers.
8463 * filename-seen-cache.c: Sort headers.
8464 * fbsd-tdep.c: Sort headers.
8465 * fbsd-nat.h: Sort headers.
8466 * fbsd-nat.c: Sort headers.
8467 * f-valprint.c: Sort headers.
8468 * f-typeprint.c: Sort headers.
8469 * f-lang.c: Sort headers.
8470 * extension.h: Sort headers.
8471 * extension.c: Sort headers.
8472 * extension-priv.h: Sort headers.
8473 * expprint.c: Sort headers.
8474 * exec.h: Sort headers.
8475 * exec.c: Sort headers.
8476 * exceptions.c: Sort headers.
8477 * event-top.c: Sort headers.
8478 * event-loop.c: Sort headers.
8479 * eval.c: Sort headers.
8480 * elfread.c: Sort headers.
8481 * dwarf2read.h: Sort headers.
8482 * dwarf2read.c: Sort headers.
8483 * dwarf2loc.c: Sort headers.
8484 * dwarf2expr.h: Sort headers.
8485 * dwarf2expr.c: Sort headers.
8486 * dwarf2-frame.c: Sort headers.
8487 * dwarf2-frame-tailcall.c: Sort headers.
8488 * dwarf-index-write.h: Sort headers.
8489 * dwarf-index-write.c: Sort headers.
8490 * dwarf-index-common.c: Sort headers.
8491 * dwarf-index-cache.h: Sort headers.
8492 * dwarf-index-cache.c: Sort headers.
8493 * dummy-frame.c: Sort headers.
8494 * dtrace-probe.c: Sort headers.
8495 * disasm.h: Sort headers.
8496 * disasm.c: Sort headers.
8497 * disasm-selftests.c: Sort headers.
8498 * dictionary.c: Sort headers.
8499 * dicos-tdep.c: Sort headers.
8500 * demangle.c: Sort headers.
8501 * dcache.h: Sort headers.
8502 * dcache.c: Sort headers.
8503 * darwin-nat.h: Sort headers.
8504 * darwin-nat.c: Sort headers.
8505 * darwin-nat-info.c: Sort headers.
8506 * d-valprint.c: Sort headers.
8507 * d-namespace.c: Sort headers.
8508 * d-lang.c: Sort headers.
8509 * ctf.c: Sort headers.
8510 * csky-tdep.c: Sort headers.
8511 * csky-linux-tdep.c: Sort headers.
8512 * cris-tdep.c: Sort headers.
8513 * cris-linux-tdep.c: Sort headers.
8514 * cp-valprint.c: Sort headers.
8515 * cp-support.c: Sort headers.
8516 * cp-namespace.c: Sort headers.
8517 * cp-abi.c: Sort headers.
8518 * corelow.c: Sort headers.
8519 * corefile.c: Sort headers.
8520 * continuations.c: Sort headers.
8521 * completer.h: Sort headers.
8522 * completer.c: Sort headers.
8523 * complaints.c: Sort headers.
8524 * coffread.c: Sort headers.
8525 * coff-pe-read.c: Sort headers.
8526 * cli-out.h: Sort headers.
8527 * cli-out.c: Sort headers.
8528 * charset.c: Sort headers.
8529 * c-varobj.c: Sort headers.
8530 * c-valprint.c: Sort headers.
8531 * c-typeprint.c: Sort headers.
8532 * c-lang.c: Sort headers.
8533 * buildsym.c: Sort headers.
8534 * buildsym-legacy.c: Sort headers.
8535 * build-id.h: Sort headers.
8536 * build-id.c: Sort headers.
8537 * btrace.c: Sort headers.
8538 * bsd-uthread.c: Sort headers.
8539 * breakpoint.h: Sort headers.
8540 * breakpoint.c: Sort headers.
8541 * break-catch-throw.c: Sort headers.
8542 * break-catch-syscall.c: Sort headers.
8543 * break-catch-sig.c: Sort headers.
8544 * blockframe.c: Sort headers.
8545 * block.c: Sort headers.
8546 * bfin-tdep.c: Sort headers.
8547 * bfin-linux-tdep.c: Sort headers.
8548 * bfd-target.c: Sort headers.
8549 * bcache.c: Sort headers.
8550 * ax-general.c: Sort headers.
8551 * ax-gdb.h: Sort headers.
8552 * ax-gdb.c: Sort headers.
8553 * avr-tdep.c: Sort headers.
8554 * auxv.c: Sort headers.
8555 * auto-load.c: Sort headers.
8556 * arm-wince-tdep.c: Sort headers.
8557 * arm-tdep.c: Sort headers.
8558 * arm-symbian-tdep.c: Sort headers.
8559 * arm-pikeos-tdep.c: Sort headers.
8560 * arm-obsd-tdep.c: Sort headers.
8561 * arm-nbsd-tdep.c: Sort headers.
8562 * arm-nbsd-nat.c: Sort headers.
8563 * arm-linux-tdep.c: Sort headers.
8564 * arm-linux-nat.c: Sort headers.
8565 * arm-fbsd-tdep.c: Sort headers.
8566 * arm-fbsd-nat.c: Sort headers.
8567 * arm-bsd-tdep.c: Sort headers.
8568 * arch-utils.c: Sort headers.
8569 * arc-tdep.c: Sort headers.
8570 * arc-newlib-tdep.c: Sort headers.
8571 * annotate.h: Sort headers.
8572 * annotate.c: Sort headers.
8573 * amd64-windows-tdep.c: Sort headers.
8574 * amd64-windows-nat.c: Sort headers.
8575 * amd64-tdep.c: Sort headers.
8576 * amd64-sol2-tdep.c: Sort headers.
8577 * amd64-obsd-tdep.c: Sort headers.
8578 * amd64-obsd-nat.c: Sort headers.
8579 * amd64-nbsd-tdep.c: Sort headers.
8580 * amd64-nbsd-nat.c: Sort headers.
8581 * amd64-nat.c: Sort headers.
8582 * amd64-linux-tdep.c: Sort headers.
8583 * amd64-linux-nat.c: Sort headers.
8584 * amd64-fbsd-tdep.c: Sort headers.
8585 * amd64-fbsd-nat.c: Sort headers.
8586 * amd64-dicos-tdep.c: Sort headers.
8587 * amd64-darwin-tdep.c: Sort headers.
8588 * amd64-bsd-nat.c: Sort headers.
8589 * alpha-tdep.c: Sort headers.
8590 * alpha-obsd-tdep.c: Sort headers.
8591 * alpha-nbsd-tdep.c: Sort headers.
8592 * alpha-mdebug-tdep.c: Sort headers.
8593 * alpha-linux-tdep.c: Sort headers.
8594 * alpha-linux-nat.c: Sort headers.
8595 * alpha-bsd-tdep.c: Sort headers.
8596 * alpha-bsd-nat.c: Sort headers.
8597 * aix-thread.c: Sort headers.
8598 * agent.c: Sort headers.
8599 * addrmap.c: Sort headers.
8600 * ada-varobj.c: Sort headers.
8601 * ada-valprint.c: Sort headers.
8602 * ada-typeprint.c: Sort headers.
8603 * ada-tasks.c: Sort headers.
8604 * ada-lang.c: Sort headers.
8605 * aarch64-tdep.c: Sort headers.
8606 * aarch64-ravenscar-thread.c: Sort headers.
8607 * aarch64-newlib-tdep.c: Sort headers.
8608 * aarch64-linux-tdep.c: Sort headers.
8609 * aarch64-linux-nat.c: Sort headers.
8610 * aarch64-fbsd-tdep.c: Sort headers.
8611 * aarch64-fbsd-nat.c: Sort headers.
8612 * aarch32-linux-nat.c: Sort headers.
8614 2019-04-04 Tom Tromey <tom@tromey.com>
8616 * varobj.c (varobj_create): Update.
8617 * rust-exp.y (struct rust_parser) <update_innermost_block,
8618 lookup_symbol>: New methods.
8619 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
8621 (rust_parser::rust_lookup_type)
8622 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8623 * printcmd.c (display_command, do_one_display): Update.
8624 * parser-defs.h (struct parser_state) <parser_state>: Add
8625 "tracker" parameter.
8626 (block_tracker): New member.
8627 (class innermost_block_tracker) <innermost_block_tracker>: Add
8629 <reset>: Remove method.
8630 (innermost_block): Don't declare.
8631 (null_post_parser): Update.
8632 * parse.c (innermost_block): Remove global.
8633 (write_dollar_variable): Update.
8634 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
8635 Remove "tracker_types" parameter.
8636 (parse_expression): Add "tracker" parameter.
8637 (parse_expression_for_completion): Update.
8638 (null_post_parser): Add "tracker" parameter.
8639 * p-exp.y: Update rules.
8640 * m2-exp.y: Update rules.
8641 * language.h (struct language_defn) <la_post_parser>: Add
8642 "tracker" parameter.
8643 * go-exp.y: Update rules.
8644 * f-exp.y: Update rules.
8645 * expression.h (parse_expression, parse_exp_1): Add "tracker"
8647 * d-exp.y: Update rules.
8648 * c-exp.y: Update rules.
8649 * breakpoint.c (set_breakpoint_condition): Create an
8650 innermost_block_tracker.
8651 (watch_command_1): Likewise.
8652 * ada-lang.c (resolve): Add "tracker" parameter.
8653 (resolve_subexp): Likewise.
8654 * ada-exp.y (write_var_from_sym): Update.
8656 2019-04-04 Tom Tromey <tom@tromey.com>
8658 * type-stack.h: New file.
8659 * type-stack.c: New file.
8660 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
8662 (insert_into_type_stack, insert_type, push_type, push_type_int)
8663 (insert_type_address_space, pop_type, pop_type_int)
8664 (pop_typelist, pop_type_stack, append_type_stack)
8665 (push_type_stack, get_type_stack, push_typelist)
8666 (follow_type_instance_flags, follow_types): Don't declare.
8667 * parse.c (type_stack): Remove global.
8668 (parse_exp_in_context): Update.
8669 (insert_into_type_stack, insert_type, push_type, push_type_int)
8670 (insert_type_address_space, pop_type, pop_type_int)
8671 (pop_typelist, pop_type_stack, append_type_stack)
8672 (push_type_stack, get_type_stack, push_typelist)
8673 (follow_type_instance_flags, follow_types): Remove (moved to
8675 * f-exp.y (type_stack): New global.
8677 (push_kind_type, f_parse): Update.
8678 * d-exp.y (type_stack): New global.
8681 * c-exp.y (struct c_parse_state) <type_stack>: New member.
8683 * Makefile.in (COMMON_SFILES): Add type-stack.c.
8684 (HFILES_NO_SRCDIR): Add type-stack.h.
8686 2019-04-04 Tom Tromey <tom@tromey.com>
8688 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
8689 (rust_parser::convert_ast_to_expression, rust_parse)
8690 (rust_lex_test_completion, rust_lex_tests): Update.
8691 * parser-defs.h (struct expr_completion_state): New.
8692 (struct parser_state) <parser_state>: Add completion parameter.
8693 <mark_struct_expression, mark_completion_tag>: New methods.
8694 <parse_completion, m_completion_state>: New members.
8695 (prefixify_expression, null_post_parser): Update.
8696 (mark_struct_expression, mark_completion_tag): Don't declare.
8697 * parse.c (parse_completion, expout_last_struct)
8698 (expout_tag_completion_type, expout_completion_name): Remove
8700 (parser_state::mark_struct_expression)
8701 (parser_state::mark_completion_tag): Now methods.
8702 (prefixify_expression): Add last_struct parameter.
8703 (prefixify_subexp): Likewise.
8704 (parse_exp_1): Update.
8705 (parse_exp_in_context): Add cstate parameter. Update.
8706 (parse_expression_for_completion): Create an
8707 expr_completion_state.
8708 (null_post_parser): Add "completion" parameter.
8709 * p-exp.y: Update rules.
8711 * language.h (struct language_defn) <la_post_parser>: Add
8712 "completing" parameter.
8713 * go-exp.y: Update rules.
8714 (lex_one_token): Update.
8715 * expression.h (parse_completion): Don't declare.
8716 * d-exp.y: Update rules.
8717 (lex_one_token): Update rules.
8718 * c-exp.y: Update rules.
8719 (lex_one_token): Update.
8720 * ada-lang.c (resolve): Add "parse_completion" parameter.
8721 (resolve_subexp): Likewise.
8722 (ada_resolve_function): Likewise.
8724 2019-04-04 Tom Tromey <tom@tromey.com>
8726 * parser-defs.h (struct parser_state) <start_arglist,
8727 end_arglist>: New methods.
8728 <arglist_len, m_funcall_chain>: New members.
8729 (arglist_len, start_arglist, end_arglist): Don't declare.
8730 * parse.c (arglist_len, funcall_chain): Remove global.
8731 (start_arglist, end_arglist): Remove functions.
8732 (parse_exp_in_context): Update.
8733 * p-exp.y: Update rules.
8734 * m2-exp.y: Update rules.
8735 * go-exp.y: Update rules.
8736 * f-exp.y: Update rules.
8737 * d-exp.y: Update rules.
8738 * c-exp.y: Update rules.
8740 2019-04-04 Tom Tromey <tom@tromey.com>
8742 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
8743 lex_operator, push_back>: New methods.
8745 (rust_parser::lex_hex, lex_escape): Rename and update.
8746 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
8747 (rust_parser::lex_operator): Rename and update.
8748 (rust_parser::lex_number, rustyylex, rustyyerror)
8749 (rust_lex_test_init, rust_lex_test_sequence)
8750 (rust_lex_test_push_back, rust_lex_tests): Update.
8751 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
8753 <lexptr, prev_lexptr>: New members.
8754 (lexptr, prev_lexptr): Don't declare.
8755 * parse.c (lexptr, prev_lexptr): Remove globals.
8756 (parse_exp_in_context): Update.
8757 * p-exp.y (yylex, yyerror): Update.
8758 * m2-exp.y (parse_number, yylex, yyerror): Update.
8759 * go-exp.y (lex_one_token, yyerror): Update.
8760 * f-exp.y (match_string_literal, yylex, yyerror): Update.
8761 * d-exp.y (lex_one_token, yyerror): Update.
8762 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
8763 (lex_one_token, yyerror): Update.
8764 * ada-lex.l (YY_INPUT): Update.
8765 (rewind_to_char): Update.
8766 * ada-exp.y (yyerror): Update.
8768 2019-04-04 Tom Tromey <tom@tromey.com>
8770 * rust-exp.y (rustyylex, rust_lex_tests): Update.
8771 * parser-defs.h (struct parser_state) <parser_state>: Add new
8773 <comma_terminates>: New member.
8774 (comma_terminates): Don't declare global.
8775 * parse.c (comma_terminates): Remove global.
8776 (parse_exp_in_context): Update.
8777 * p-exp.y (yylex): Update.
8778 * m2-exp.y (yylex): Update.
8779 * go-exp.y (lex_one_token): Update.
8780 * f-exp.y (yylex): Update.
8781 * d-exp.y (lex_one_token): Update.
8782 * c-exp.y (lex_one_token): Update.
8783 * ada-lex.l: Update.
8785 2019-04-04 Tom Tromey <tom@tromey.com>
8787 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
8788 (rustyylex, rust_lex_test_init, rust_lex_test_one)
8789 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
8790 * parser-defs.h (paren_depth): Don't declare.
8791 * parse.c (paren_depth): Remove global.
8792 (parse_exp_in_context): Update.
8793 * p-exp.y (paren_depth): New global.
8794 (pascal_parse): Initialize it.
8795 * m2-exp.y (paren_depth): New global.
8796 (m2_parse): Initialize it.
8797 * go-exp.y (paren_depth): New global.
8798 (go_parse): Initialize it.
8799 * f-exp.y (paren_depth): New global.
8800 (f_parse): Initialize it.
8801 * d-exp.y (paren_depth): New global.
8802 (d_parse): Initialize it.
8803 * c-exp.y (paren_depth): New global.
8804 (c_parse): Initialize it.
8805 * ada-lex.l (paren_depth): New global.
8806 (lexer_init): Initialize it.
8808 2019-04-04 Tom Tromey <tom@tromey.com>
8810 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
8811 (rust_parser::convert_ast_to_type)
8812 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8813 * parser-defs.h (struct parser_state) <parser_state>: Add
8814 parameters. Initialize new members.
8815 <expression_context_block, expression_context_pc>: New members.
8816 * parse.c (expression_context_block, expression_context_pc):
8818 (parse_exp_in_context): Update.
8819 * p-exp.y: Update all rules.
8821 * m2-exp.y: Update all rules.
8823 * go-exp.y (yylex): Update.
8824 * f-exp.y (yylex): Update.
8825 * d-exp.y: Update all rules.
8827 * c-exp.y: Update all rules.
8828 (lex_one_token, classify_name, yylex, c_parse): Update.
8829 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
8831 2019-04-04 Tom Tromey <tom@tromey.com>
8833 * gdbarch.h, gdbarch.c: Rebuild.
8834 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8836 (struct stap_parse_info): Replace "parser_state" with
8838 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8839 (parser_state): New class.
8840 * parse.c (expr_builder): Rename.
8841 (expr_builder::release): Rename.
8842 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8843 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8844 (write_exp_elt_longcst, write_exp_elt_floatcst)
8845 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8846 (write_exp_string_vector, write_exp_bitstring)
8847 (write_exp_msymbol, mark_struct_expression)
8848 (write_dollar_variable)
8849 (insert_type_address_space, increase_expout_size): Replace
8850 "parser_state" with "expr_builder".
8851 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8852 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8853 "parser_state" with "expr_builder".
8855 2019-04-04 Tom Tromey <tom@tromey.com>
8857 * rust-exp.y: Replace "parse_language" with method call.
8859 (yylex): Replace "parse_language" with method call.
8861 (yylex): Replace "parse_language" with method call.
8862 * go-exp.y (classify_name): Replace "parse_language" with method
8864 * f-exp.y (yylex): Replace "parse_language" with method call.
8865 * d-exp.y (lex_one_token): Replace "parse_language" with method
8868 (lex_one_token, classify_name, yylex): Replace "parse_language"
8870 * ada-exp.y (find_primitive_type, type_char)
8871 (type_system_address): Replace "parse_language" with method call.
8873 2019-04-04 Tom Tromey <tom@tromey.com>
8875 * rust-exp.y: Replace "parse_gdbarch" with method call.
8876 * parse.c (write_dollar_variable, insert_type_address_space):
8877 Replace "parse_gdbarch" with method call.
8878 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8880 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8882 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8883 "parse_gdbarch" with method call.
8884 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8886 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8887 "parse_gdbarch" with method call.
8888 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8889 "parse_gdbarch" with method call.
8890 * c-exp.y (parse_type, parse_number, classify_name): Replace
8891 "parse_gdbarch" with method call.
8892 * ada-lex.l: Replace "parse_gdbarch" with method call.
8893 * ada-exp.y (parse_type, find_primitive_type, type_char)
8894 (type_system_address): Replace "parse_gdbarch" with method call.
8896 2019-04-04 Tom Tromey <tom@tromey.com>
8898 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8899 * stap-probe.c (stap_parse_argument): Update.
8900 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8901 initial_size parameter.
8902 * rust-exp.y (rust_lex_tests): Update.
8903 * parse.c (parser_state): Update.
8904 (parse_exp_in_context): Update.
8905 * parser-defs.h (struct parser_state) <parser_state>: Remove
8906 "initial_size" parameter.
8908 2019-04-04 Tom Tromey <tom@tromey.com>
8910 * parser-defs.h (increase_expout_size): Don't declare.
8911 * parse.c (increase_expout_size): Now static.
8913 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8915 * gnu-nat.c (gnu_nat_target::wait): Fix
8916 target_waitstatus_to_string call.
8918 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8920 * eval.c (evaluate_subexp_standard): Handle internal functions
8921 during Fortran function call handling.
8923 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8925 * NEWS: Mention new internal functions.
8926 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8927 (read_base_type): Use dwarf2_init_complex_target_type.
8928 * value.c (creal_internal_fn): New function.
8929 (cimag_internal_fn): New function.
8930 (_initialize_values): Register new internal functions.
8932 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8934 * infrun.c (stop_all_threads): If debug_infrun, always
8935 trace the wait status after wait_one, using
8936 target_waitstatus_to_string and target_pid_to_str.
8937 (handle_inferior_event): Replace various trace of
8938 wait status kind by a single trace.
8939 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8940 wait status kind image by target_waitstatus_to_string.
8941 * target/waitstatus.c (target_waitstatus_to_string): Fix
8944 2019-04-01 Tom Tromey <tromey@adacore.com>
8947 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8949 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8950 Pedro Alves <palves@redhat.com>
8952 * top.c (quit_force): Call 'finalize_values'.
8953 * value.c (finalize_values): New function.
8954 * value.h (finalize_values): Declare.
8956 2019-03-30 Eli Zaretskii <eliz@gnu.org>
8958 * NEWS: Announce $_gdb_major and $_gdb_minor.
8960 * top.c (init_gdb_version_vars): New function.
8961 (gdb_init): Call init_gdb_version_vars.
8963 2019-03-29 Tom Tromey <tromey@adacore.com>
8965 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
8966 help text. Remove dead code.
8968 2019-03-29 Keith Seitz <keiths@redhat.com>
8970 From Siddhesh Poyarekar:
8971 * f-lang.h (f77_get_upperbound): Return LONGEST.
8972 (f77_get_lowerbound): Likewise.
8973 * f-typeprint.c (f_type_print_varspec_suffix): Expand
8974 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
8976 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
8977 plongest to format print it.
8978 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
8979 (f77_get_upperbound): Likewise.
8980 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
8981 LOWER_BOUND to LONGEST.
8982 (f77_create_arrayprint_offset_tbl): Likewise.
8984 2019-03-29 Keith Seitz <keiths@redhat.com>
8986 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
8987 %s/pulongest for TYPE_LENGTH instead of %d in format
8989 * ada-typerint.c (ada_print_type): Likewise.
8990 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
8991 * compile/compile-c-support.c (generate_register_struct): Likewise.
8992 * gdbtypes.c (recursive_dump_type): Likewise.
8993 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
8994 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
8995 instead of %d in format strings.
8996 * riscv-tdep.c (riscv_type_alignment): Cast second argument
8997 to std::min to ULONGEST.
8998 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
8999 instead of %d in format strings.
9000 * tracepoint.c (info_scope_command): Likewise.
9001 * typeprint.c (print_offset_data::update)
9002 (print_offset_data::finish): Likewise.
9003 * xtensa-tdep.c (xtensa_store_return_value)
9004 (xtensa_push_dummy_call): Likewise.
9006 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
9008 * windows-nat.c (display_selector): Fixed format specifications
9011 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9013 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9015 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9017 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9018 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9019 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9020 (nios2_linux_init_abi): Install it.
9022 2019-03-28 Alan Hayward <alan.hayward@arm.com>
9024 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9026 2019-03-28 Alan Hayward <alan.hayward@arm.com>
9028 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9030 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9031 Tom Tromey <tromey@adacore.com>
9033 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9035 2019-03-26 Joel Brobecker <brobecker@adacore.com>
9037 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9038 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9039 method to compute the bounds of range types. Also print "[evaluated]"
9040 if the bounds' values come from a dynamic evaluation.
9042 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9044 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9045 whitespace when pretty printing is on.
9047 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9049 * ppc-linux-nat.c: Add include.
9051 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9053 * NEWS: Mention AArch64 Pointer Authentication.
9055 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9057 * arm-linux-nat.c: Add include.
9059 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9061 * source-cache.c (source_cache::get_source_lines): Re-read
9062 fullname after calling open_source_file.
9064 2019-03-25 John Baldwin <jhb@FreeBSD.org>
9066 * NEWS: Mention TLS support for FreeBSD.
9068 2019-03-25 Tom Tromey <tromey@adacore.com>
9070 * minsyms.c (BUNCH_SIZE): Update comment.
9071 (~minimal_symbol_reader): Remove old comment.
9072 (compact_minimal_symbols): Update comment.
9073 (minimal_symbol_reader::install): Remove old comment. Update
9076 2019-03-25 Alan Hayward <alan.hayward@arm.com>
9078 * s390-linux-nat.c: Add include.
9080 2019-03-25 Alan Hayward <alan.hayward@arm.com>
9082 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9083 Call linux_get_hwcap.
9084 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9086 (aarch64_linux_get_hwcap): Remove function.
9087 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9089 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9091 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9092 * linux-tdep.c (linux_get_hwcap): Add function.
9093 (linux_get_hwcap2): Likewise.
9094 * linux-tdep.h (linux_get_hwcap): Add declaration.
9095 (linux_get_hwcap2): Likewise.
9096 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9097 (ppc_linux_get_hwcap2): Likewise.
9098 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9100 (ppc_linux_nat_target::insert_watchpoint): Likewise.
9101 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9102 (ppc_linux_nat_target::read_description): Likewise.
9103 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9104 * s390-linux-nat.c: Likewise.
9105 * s390-linux-tdep.c (s390_core_read_description): Likewise.
9107 2019-03-24 Tom Tromey <tom@tromey.com>
9109 * ada-lang.c (standard_lookup): Simplify initialization.
9110 (ada_lookup_symbol_nonlocal): Simplify return.
9111 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9112 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9113 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9114 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9116 * solib.c (solib_global_lookup): Simplify.
9117 * symtab.c (null_block_symbol): Remove.
9118 (symbol_cache_lookup): Simplify returns.
9119 (lookup_language_this): Simplify returns.
9120 (lookup_symbol_aux): Simplify return.
9121 (lookup_local_symbol): Simplify returns.
9122 (lookup_global_symbol_from_objfile): Simplify return.
9123 (lookup_symbol_in_objfile_symtabs)
9124 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
9125 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
9126 (lookup_static_symbol, lookup_global_symbol): Simplify return.
9127 * cp-namespace.c (cp_lookup_bare_symbol)
9128 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
9129 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9130 (cp_lookup_nested_symbol): Don't use null_block_symbol.
9131 (cp_lookup_symbol_via_imports): Simplify initialization.
9132 (find_symbol_in_baseclass): Likewise.
9133 * symtab.h (null_block_symbol): Remove.
9134 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9135 (d_lookup_nested_symbol, d_lookup_symbol_imports)
9136 (d_lookup_symbol_module): Likewise.
9137 (find_symbol_in_baseclass): Simplify initialization.
9139 2019-03-24 Tom Tromey <tom@tromey.com>
9141 * expression.h: Don't include symtab.h.
9142 (struct block): Forward declare.
9144 2019-03-24 Tom Tromey <tom@tromey.com>
9146 * c-exp.y (typebase): Remove casts.
9147 * gdbtypes.c (lookup_unsigned_typename, )
9148 (lookup_signed_typename): Remove cast.
9149 * eval.c (parse_to_comma_and_eval): Remove cast.
9150 * parse.c (write_dollar_variable): Remove cast.
9151 * block.h (struct block) <superblock>: Now const.
9152 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9153 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9154 (map_block): Make "block" const.
9155 * symfile.h (struct quick_symbol_functions)
9156 <map_matching_symbols>: Constify block argument to "callback".
9157 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9159 (find_pc_sect_compunit_symtab): Make "b" const.
9160 (find_symbol_at_address): Likewise.
9161 (search_symbols): Likewise.
9162 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9163 (dw2_debug_names_lookup_symbol): Likewise.
9164 (dw2_map_matching_symbols): Update.
9165 * p-valprint.c (pascal_val_print): Remove "block".
9166 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9167 (aux_add_nonlocal_symbols): Make "block" const.
9168 (resolve_subexp): Remove cast.
9169 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9171 (iterate_over_file_blocks): Likewise.
9172 * f-exp.y (%union) <bval>: Remove.
9173 * coffread.c (patch_opaque_types): Make "b" const.
9174 * spu-tdep.c (spu_catch_start): Make "block" const.
9175 * c-valprint.c (print_unpacked_pointer): Remove "block".
9176 * symmisc.c (dump_symtab_1): Make "b" const.
9177 (block_depth): Make "block" const.
9178 * d-exp.y (%union) <bval>: Remove.
9179 * cp-support.h (cp_lookup_rtti_type): Update.
9180 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9181 * psymtab.c (psym_lookup_symbol): Make "block" const.
9182 (maintenance_check_psymtabs): Make "b" const.
9183 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9184 (enumerate_locals, enumerate_args): Update.
9185 * python/py-symtab.c (stpy_global_block): Make "block" const.
9186 (stpy_static_block): Likewise.
9187 * inline-frame.c (block_starting_point_at): Make "new_block"
9189 * block.c (find_block_in_blockvector): Make return type const.
9190 (blockvector_for_pc_sect): Make "b" const.
9191 (find_block_in_blockvector): Make "b" const.
9193 2019-03-23 Tom Tromey <tom@tromey.com>
9195 * varobj.c (varobj_create): Update.
9196 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9197 * printcmd.c (display_command, do_one_display): Don't reset
9199 * parser-defs.h (enum innermost_block_tracker_type): Move to
9201 (innermost_block): Update comment.
9202 * parse.c (parse_exp_1): Add tracker_types parameter.
9203 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9204 tracker_types parameter. Reset innermost_block.
9205 (parse_exp_in_context): Remove.
9206 (parse_expression_for_completion): Update.
9207 * objfiles.c (~objfile): Don't reset expression_context_block or
9209 * expression.h (enum innermost_block_tracker_type): Move from
9211 (parse_exp_1): Add tracker_types parameter.
9212 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9213 reset innermost_block.
9215 2019-03-23 Tom Tromey <tom@tromey.com>
9217 * objfiles.h: Include bcache.h.
9219 2019-03-23 Tom Tromey <tom@tromey.com>
9221 * linespec.c (get_current_search_block): Use
9222 scoped_restore_current_language.
9223 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
9225 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9226 Jiong Wang <jiong.wang@arm.com>
9228 * aarch64-linux-tdep.c
9229 (aarch64_linux_iterate_over_regset_sections): Check for pauth
9231 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
9233 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9234 Jiong Wang <jiong.wang@arm.com>
9236 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9238 (aarch64_analyze_prologue_test): Add PACIASP test.
9239 (aarch64_prologue_prev_register): Unmask PC value.
9241 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9242 Jiong Wang <jiong.wang@arm.com>
9244 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9245 (aarch64_dwarf2_prev_register): Unmask PC value.
9246 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9247 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9248 DW_CFA_AARCH64_negate_ra_state.
9249 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9251 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9252 Jiong Wang <jiong.wang@arm.com>
9254 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
9256 (aarch64_pseudo_register_name): Likewise.
9257 (aarch64_pseudo_register_type): Likewise.
9258 (aarch64_pseudo_register_reggroup_p): Likewise.
9259 (aarch64_gdbarch_init): Add pauth registers.
9260 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
9261 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
9262 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
9263 (struct gdbarch_tdep): Add regnum for ra_state.
9265 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9266 Jiong Wang <jiong.wang@arm.com>
9268 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
9270 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9271 Jiong Wang <jiong.wang@arm.com>
9273 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
9275 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
9276 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
9277 (aarch64_gdbarch_init): Add puth registers.
9278 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9279 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
9280 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
9282 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9283 Jiong Wang <jiong.wang@arm.com>
9285 * aarch64-linux-nat.c
9286 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
9287 * aarch64-linux-tdep.c
9288 (aarch64_linux_core_read_description): Likewise.
9289 (aarch64_linux_get_hwcap): New function.
9290 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
9291 (aarch64_linux_get_hwcap): New declaration.
9293 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9294 Jiong Wang <jiong.wang@arm.com>
9296 * aarch64-linux-nat.c
9297 (aarch64_linux_nat_target::read_description): Add pauth param.
9298 * aarch64-linux-tdep.c
9299 (aarch64_linux_core_read_description): Likewise.
9300 * aarch64-tdep.c (struct target_desc): Add in pauth.
9301 (aarch64_read_description): Add pauth param.
9302 (aarch64_gdbarch_init): Likewise.
9303 * aarch64-tdep.h (aarch64_read_description): Likewise.
9304 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9305 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9306 * features/Makefile: Add new files.
9307 * features/aarch64-pauth.c: New file.
9308 * features/aarch64-pauth.xml: New file.
9310 2019-03-20 Tom Tromey <tromey@adacore.com>
9312 * infrun.c (handle_inferior_event): Rename from
9313 handle_inferior_event_1. Create a scoped_value_mark.
9314 (handle_inferior_event): Remove.
9316 2019-03-19 Tom Tromey <tromey@adacore.com>
9318 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9319 * infrun.h (print_stop_event): Add "displays" parameter.
9320 * infrun.c (print_stop_event): Add "displays" parameter.
9322 2019-03-19 Pedro Alves <palves@redhat.com>
9324 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9325 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9326 to -1. Fix TABs vs spaces.
9327 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9328 * tui/tui-out.h (tui_ui_out) Add intro comments.
9329 <m_line, m_start_of_line>: In-class initialize, and add describing
9332 2019-03-18 Alan Hayward <alan.hayward@arm.com>
9334 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9336 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9338 2019-03-18 Pedro Alves <palves@redhat.com>
9339 Eli Zaretskii <eliz@gnu.org>
9341 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
9342 m_line and m_start_of_line.
9344 2019-03-18 Eli Zaretskii <eliz@gnu.org>
9346 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
9347 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
9348 it returns a newline. This fixes a regression in TU mode, whereby
9349 the next line is output on the same screen line as the user input.
9351 2019-03-18 Tom Tromey <tromey@adacore.com>
9353 * minsyms.c (minimal_symbol_reader::install): Remove call to
9356 2019-03-18 Pedro Alves <palves@redhat.com>
9358 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9360 (apply_style): New, factored out from ...
9361 (apply_ansi_escape): ... this. Handle reverse video mode.
9362 (tui_set_reverse_mode): New function.
9363 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9364 * tui/tui-winsource.c (tui_show_source_line): Use
9365 tui_set_reverse_mode instead of setting A_STANDOUT.
9366 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9369 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
9371 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9374 2019-03-18 Tom Tromey <tromey@adacore.com>
9376 * ada-lang.c (empty_array): Add "high" parameter.
9377 (ada_evaluate_subexp): Update.
9379 2019-03-17 Sergei Trofimovich <siarheit@google.com>
9381 * unittests/string_view-selftests.c: Define
9382 _initialize_string_view_selftests unconditionally.
9384 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9387 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9389 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9392 * windows-nat.c (display_selector): Fix format specifiers.
9394 2019-03-17 Eli Zaretskii <eliz@gnu.org>
9396 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9397 tui_refill_source_window instead of tui_refresh_win, to update the
9398 current execution line. This fixes redisplay of the current line
9399 when stepping through the code with "next" or "step".
9401 2019-03-16 Eli Zaretskii <eliz@gnu.org>
9403 * source-cache.c (source_cache::get_source_lines): Call
9404 find_source_lines to initialize s->nlines. This fixes vertical
9405 scrolling of TUI source window when the DOWN arrow is pressed.
9407 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9409 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9410 linux-thread-db.c (_initialize_thread_db): Likewise.
9412 2019-03-16 Eli Zaretskii <eliz@gnu.org>
9414 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9415 wclrtoeol in tui_show_source_line". This reverts changes made in
9416 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9418 2019-03-15 Tom Tromey <tom@tromey.com>
9420 * symtab.h (struct minimal_symbol): Derive from
9421 general_symbol_info.
9422 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9423 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9424 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9425 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9426 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9427 (MSYMBOL_SEARCH_NAME): Update.
9428 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9429 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9430 * minsyms.c (minimal_symbol_reader::record_full): Update.
9432 2019-03-15 Tom Tromey <tom@tromey.com>
9434 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9436 2019-03-15 Tom Tromey <tom@tromey.com>
9438 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9440 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9442 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9443 (build_minimal_symbol_hash_tables)
9444 (minimal_symbol_reader::install): Update.
9446 2019-03-15 Tom Tromey <tom@tromey.com>
9448 * symtab.c (create_demangled_names_hash): Update.
9449 (symbol_set_names): Update.
9450 * objfiles.h (struct objfile_per_bfd_storage)
9451 <demangled_names_hash>: Now an htab_up.
9452 * objfiles.c (objfile_per_bfd_storage): Simplify.
9454 2019-03-15 Tom Tromey <tom@tromey.com>
9456 * objfiles.h (struct objfile_per_bfd_storage): Declare
9458 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9460 (get_objfile_bfd_data): Use new. Don't initialize
9462 (free_objfile_per_bfd_storage): Remove.
9463 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9465 2019-03-15 Tom Tromey <tom@tromey.com>
9467 * symfile.c (reread_symbols): Update.
9468 * objfiles.c (objfile::objfile): Update.
9469 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9470 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9472 (minimal_symbol_reader::install): Update.
9473 (terminate_minimal_symbol_table): Remove.
9474 * jit.c (jit_object_close_impl): Update.
9476 2019-03-15 Tom Tromey <tom@tromey.com>
9478 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9481 2019-03-15 Tom Tromey <tom@tromey.com>
9483 * objfiles.h (struct objfile_per_bfd_storage)
9484 <demangled_hash_languages>: Now a bitset.
9485 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
9486 (lookup_minimal_symbol): Update.
9488 2019-03-15 Tom Tromey <tom@tromey.com>
9490 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
9491 Don't return the symbol.
9492 * coffread.c (record_minimal_symbol): Use record_full.
9494 2019-03-14 Eli Zaretskii <eliz@gnu.org>
9496 The MS-Windows port of ncurses fails to switch to a color pair if
9497 one or both of the colors are the implicit default colors. This
9498 change records the default colors when TUI is initialized, and
9499 then specifies them explicitly when a color pair uses the default
9500 colors. This allows color styling in TUI mode on MS-Windows.
9502 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
9504 (tui_initialize_io) [__MINGW32__]: Record the default terminal
9505 colors in ncurses_norm_attr.
9506 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
9507 "none", replace it with the default color recorded in
9510 2019-03-14 Tom Tromey <tromey@adacore.com>
9512 * source-cache.h (class source_cache) <get_source_lines>: Return
9514 * source-cache.c (source_cache::extract_lines): Handle case where
9515 first_pos==npos. Return std::string.
9516 (source_cache::get_source_lines): Update.
9518 2019-03-14 Tom Tromey <tromey@adacore.com>
9520 * NEWS: Add item for "style sources" commands.
9521 * source-cache.c (source_cache::get_source_lines): Check
9523 * cli/cli-style.c (source_styling): New global.
9524 (_initialize_cli_style): Add "style sources" commands.
9525 (show_style_sources): New function.
9526 * cli/cli-style.h (source_styling): Declare.
9528 2019-03-14 Pedro Alves <palves@redhat.com>
9529 Tom Tromey <tromey@adacore.com>
9531 * tui/tui-winsource.h (tui_refill_source_window): Declare.
9532 * tui/tui-winsource.c (tui_refill_source_window): New function,
9534 (tui_horizontal_source_scroll): ... here. Move some logic.
9535 * cli/cli-style.c (set_style_enabled): Notify new observable.
9536 * tui/tui-hooks.c (tui_redisplay_source): New function.
9537 (tui_attach_detach_observers): Attach or detach
9538 tui_redisplay_source.
9539 * observable.h (source_styling_changed): New observable.
9540 * observable.c: Define source_styling_changed observable.
9542 2019-03-13 Tom Tromey <tromey@adacore.com>
9544 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
9545 (i386_gnu_nat_target::store_registers): Update.
9546 * target-debug.h (target_debug_print_std_string): New macro.
9547 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9548 * windows-tdep.c (display_one_tib): Update.
9549 * tui/tui-stack.c (tui_make_status_line): Update.
9550 * top.c (print_inferior_quit_action): Update.
9551 * thread.c (thr_try_catch_cmd): Update.
9552 (add_thread_with_info): Update.
9553 (thread_target_id_str): Update.
9554 (thr_try_catch_cmd): Update.
9555 (thread_command): Update.
9556 (thread_find_command): Update.
9557 * record-btrace.c (record_btrace_target::info_record)
9558 (record_btrace_resume_thread, record_btrace_target::resume)
9559 (record_btrace_cancel_resume, record_btrace_step_thread)
9560 (record_btrace_target::wait, record_btrace_target::wait)
9561 (record_btrace_target::wait, record_btrace_target::stop): Update.
9562 * progspace.c (print_program_space): Update.
9563 * process-stratum-target.c
9564 (process_stratum_target::thread_address_space): Update.
9565 * linux-fork.c (linux_fork_mourn_inferior)
9566 (detach_checkpoint_command, info_checkpoints_command)
9567 (linux_fork_context): Update.
9568 (linux_fork_detach): Update.
9569 (class scoped_switch_fork_info): Update.
9570 (delete_checkpoint_command): Update.
9571 * infrun.c (follow_fork_inferior): Update.
9572 (follow_fork_inferior): Update.
9573 (proceed_after_vfork_done): Update.
9574 (handle_vfork_child_exec_or_exit): Update.
9575 (follow_exec): Update.
9576 (displaced_step_prepare_throw): Update.
9577 (displaced_step_restore): Update.
9578 (start_step_over): Update.
9580 (clear_proceed_status_thread): Update.
9582 (print_target_wait_results): Update.
9583 (do_target_wait): Update.
9584 (context_switch): Update.
9585 (stop_all_threads): Update.
9586 (restart_threads): Update.
9587 (finish_step_over): Update.
9588 (handle_signal_stop): Update.
9589 (switch_back_to_stepped_thread): Update.
9590 (keep_going_pass_signal): Update.
9591 (print_exited_reason): Update.
9592 (normal_stop): Update.
9593 * inferior.c (inferior_pid_to_str): Change return type.
9594 (print_selected_inferior): Update.
9595 (add_inferior): Update.
9596 (detach_inferior): Update.
9597 * dummy-frame.c (fprint_dummy_frames): Update.
9598 * dcache.c (dcache_info_1): Update.
9599 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
9600 (btrace_fetch, btrace_clear): Update.
9601 * linux-tdep.c (linux_core_pid_to_str): Change return type.
9602 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
9604 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
9605 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
9606 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
9607 * gdbarch.c, gdbarch.h: Rebuild.
9608 * gdbarch.sh (core_pid_to_str): Change return type.
9609 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
9611 (windows_nat_target::pid_to_str): Change return type.
9612 (windows_delete_thread): Update.
9613 (windows_nat_target::attach): Update.
9614 (windows_nat_target::files_info): Update.
9615 * target-delegates.c: Rebuild.
9616 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
9618 (sol_thread_target::pid_to_str): Change return type.
9619 * remote.c (class remote_target) <pid_to_str>: Change return
9621 (remote_target::pid_to_str): Change return type.
9622 (extended_remote_target::attach, remote_target::remote_stop_ns)
9623 (remote_target::remote_notif_remove_queued_reply)
9624 (remote_target::push_stop_reply, remote_target::disable_btrace):
9626 (extended_remote_target::attach): Update.
9627 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
9629 (gdbsim_target::pid_to_str): Change return type.
9630 * ravenscar-thread.c (struct ravenscar_thread_target)
9631 <pid_to_str>: Change return type.
9632 (ravenscar_thread_target::pid_to_str): Change return type.
9633 * procfs.c (class procfs_target) <pid_to_str>: Change return
9635 (procfs_target::pid_to_str): Change return type.
9636 (procfs_target::attach): Update.
9637 (procfs_target::detach): Update.
9638 (procfs_target::fetch_registers): Update.
9639 (procfs_target::store_registers): Update.
9640 (procfs_target::wait): Update.
9641 (procfs_target::files_info): Update.
9642 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
9643 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
9645 (nto_procfs_target::pid_to_str): Change return type.
9646 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
9647 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
9649 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
9651 (attach_proc_task_lwp_callback, get_detach_signal)
9652 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
9653 (linux_nat_target::resume, wait_lwp, stop_callback)
9654 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
9655 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
9656 (linux_nat_wait_1, resume_stopped_resumed_lwps)
9657 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
9658 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
9660 (inf_ptrace_target::attach): Update.
9661 (inf_ptrace_target::files_info): Update.
9662 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
9664 (go32_nat_target::pid_to_str): Change return type.
9665 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
9666 (gnu_nat_target::wait): Update.
9667 (gnu_nat_target::wait): Update.
9668 (gnu_nat_target::resume): Update.
9669 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
9670 (fbsd_nat_target::wait): Update.
9671 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
9673 (darwin_nat_target::attach): Update.
9674 * corelow.c (class core_target) <pid_to_str>: Change return type.
9675 (core_target::pid_to_str): Change return type.
9676 * target.c (normal_pid_to_str): Change return type.
9677 (default_pid_to_str): Likewise.
9678 (target_pid_to_str): Change return type.
9679 (target_translate_tls_address): Update.
9680 (target_announce_detach): Update.
9681 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
9683 (bsd_uthread_target::pid_to_str): Change return type.
9684 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
9686 (bsd_kvm_target::pid_to_str): Change return type.
9687 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
9689 (aix_thread_target::pid_to_str): Change return type.
9690 * target.h (struct target_ops) <pid_to_str>: Change return type.
9691 (target_pid_to_str, normal_pid_to_str): Likewise.
9692 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
9694 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
9696 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
9698 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
9700 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
9702 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
9705 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
9707 * NEWS: Mention that the new default MI version is 3. Mention
9708 changes to the output of commands and events that deal with
9709 multi-location breakpoints.
9710 * breakpoint.c: Include "mi/mi-out.h".
9711 (print_one_breakpoint): Change output syntax if using MI version
9713 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
9715 (mi_multi_location_breakpoint_output_fixed): New.
9716 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
9717 (mi_cmd_fix_multi_location_breakpoint_output): New.
9718 (mi_multi_location_breakpoint_output_fixed): New.
9719 * mi/mi-cmds.c (mi_cmds): Register command
9720 -fix-multi-location-breakpoint-output.
9721 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
9724 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9726 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
9727 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
9728 instantiate mi_ui_out based on interpreter name.
9729 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
9730 * mi/mi-main.c (mi_load_progress): Likewise.
9732 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9734 * NEWS: Combine separate "New targets" sections for 8.3.
9736 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9738 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
9739 (ppcfbsd_init_abi): Install gdbarch
9740 "fetch_tls_load_module_address" and "get_thread_local_address"
9743 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9745 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
9746 (riscv_fbsd_init_abi): Install gdbarch
9747 "fetch_tls_load_module_address" and "get_thread_local_address"
9750 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9752 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
9753 (i386fbsd_init_abi): Install gdbarch
9754 "fetch_tls_load_module_address" and "get_thread_local_address"
9757 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9759 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
9760 (amd64fbsd_init_abi): Install gdbarch
9761 "fetch_tls_load_module_address" and "get_thread_local_address"
9764 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9766 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
9767 (struct fbsd_pspace_data): New type.
9768 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
9769 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
9770 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
9771 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
9772 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
9774 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9776 * gdbtypes.c (lookup_struct_elt): New function.
9777 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
9778 * gdbtypes.h (struct struct_elt): New type.
9779 (lookup_struct_elt): New prototype.
9781 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9783 * gdbtypes.c (lookup_struct_elt_type): Update comment and
9784 remove disabled code block.
9786 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9788 * gdbarch.sh (get_thread_local_address): New method.
9789 * gdbarch.h, gdbarch.c: Regenerate.
9790 * target.c (target_translate_tls_address): Use
9791 gdbarch_get_thread_local_address if present instead of
9792 target::get_thread_local_address.
9794 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9796 * target.h (target::get_thread_local_address): Update comment.
9798 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9800 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
9801 objfile->separate_debug_objfile_backlink if not NULL.
9803 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9805 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9806 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
9807 (amd64bsd_store_inferior_registers): Likewise.
9808 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9809 Enable segment base registers.
9810 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
9811 PT_GETFSBASE and PT_GETGSBASE.
9812 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
9814 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
9815 segment base registers.
9816 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9818 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9820 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9821 Update calls to i386_target_description to add 'segments'
9823 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
9824 add segment base registers.
9825 * arch/i386.c (i386_create_target_description): Add 'segments'
9826 parameter to enable segment base registers.
9827 * arch/i386.h (i386_create_target_description): Likewise.
9828 * features/i386/32bit-segments.xml: New file.
9829 * features/i386/32bit-segments.c: Generate.
9830 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
9831 call to i386_target_description to add 'segments' parameter.
9832 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9833 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9834 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9835 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9836 if feature is present.
9837 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9838 Add 'segments' parameter to call to i386_target_description.
9839 (i386_target_description): Add 'segments' parameter to enable
9840 segment base registers.
9841 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9842 to call to i386_target_description.
9843 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9844 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9845 Define I386_NUM_REGS.
9846 (i386_target_description): Add 'segments' parameter to enable
9847 segment base registers.
9849 2019-03-12 Eli Zaretskii <eliz@gnu.org>
9852 * source-cache.c: #undef open and close, to avoid unresolved
9853 externals during linking.
9855 2019-03-12 Tom Tromey <tromey@adacore.com>
9857 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9858 const. Add initializers.
9859 (_initialize_remote): Don't initialize ptid globals.
9861 2019-03-12 Pedro Alves <palves@redhat.com>
9863 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9865 2019-03-12 Pedro Alves <palves@redhat.com>
9867 * cp-name-parser.y (main): Remove unused 'len' variable.
9869 2019-03-12 Tom Tromey <tromey@adacore.com>
9871 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9872 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9874 2019-03-12 Tom Tromey <tromey@adacore.com>
9876 * linux-nat.c (iterate_over_lwps): Update.
9877 (stop_callback): Remove parameter.
9878 (stop_wait_callback, detach_callback, resume_set_callback)
9879 (select_singlestep_lwp_callback, set_ignore_sigint)
9880 (status_callback, resumed_callback, resume_clear_callback)
9881 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9883 (linux_nat_target::detach, linux_nat_target::resume)
9884 (linux_stop_and_wait_all_lwps, select_event_lwp)
9885 (linux_nat_filter_event, linux_nat_wait_1)
9886 (linux_nat_target::kill, linux_nat_target::stop)
9887 (linux_nat_target::stop): Update.
9888 (linux_nat_resume_callback): Change type.
9889 (resume_stopped_resumed_lwps, count_events_callback)
9890 (select_event_lwp_callback): Likewise.
9891 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9892 * arm-linux-nat.c (struct update_registers_data): Remove.
9893 (update_registers_callback): Change type.
9894 (arm_linux_insert_hw_breakpoint1): Update.
9895 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9897 (x86_linux_dr_set_addr): Update.
9898 (x86_linux_dr_set_control): Update.
9899 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9900 (iterate_over_lwps): Use gdb::function_view.
9901 * nat/aarch64-linux-hw-point.c (struct
9902 aarch64_dr_update_callback_param): Remove.
9903 (debug_reg_change_callback): Change type.
9904 (aarch64_notify_debug_reg_change): Update.
9905 * s390-linux-nat.c (s390_refresh_per_info): Update.
9907 2019-03-11 Tom Tromey <tromey@adacore.com>
9909 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9910 redundant assignment to "this_cu".
9912 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9914 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9916 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9918 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9920 (rank_one_type): ... this.
9922 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9924 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9926 (rank_one_type): ... this.
9928 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9930 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9932 (rank_one_type): ... this.
9934 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9936 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9938 (rank_one_type): ... this.
9940 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9942 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9944 (rank_one_type): ... this.
9946 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9948 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9950 (rank_one_type): ... this.
9952 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9954 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9956 (rank_one_type): ... this.
9958 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9960 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
9962 (rank_one_type): ... this.
9964 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9966 * gdbtypes.c (rank_one_type_parm_int): New function extracted
9968 (rank_one_type): ... this.
9970 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9972 * gdbtypes.c (rank_one_type_parm_func): New function extracted
9974 (rank_one_type): ... this.
9976 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9978 * gdbtypes.c (rank_one_type_parm_array): New function extracted
9980 (rank_one_type): ... this.
9982 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9984 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
9986 (rank_one_type): ... this.
9988 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9990 * inferior.c (initialize_inferiors): Ensure 'help set/show print
9991 inferior-events' shows the example events.
9993 2019-03-08 Eli Zaretskii <eliz@gnu.org>
9995 Support styling on native MS-Windows console
9998 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
9999 on MS-Windows if $TERM is not defined.
10001 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10003 * posix-hdep.c (gdb_console_fputs):
10004 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10006 * ui-file.h (gdb_console_fputs): Add prototype.
10008 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10009 back to fputs only if the former returns zero.
10011 2019-03-07 Tom Tromey <tom@tromey.com>
10013 * symmisc.c (print_symbol_bcache_statistics): Update.
10014 (print_objfile_statistics): Update.
10015 * symfile.c (allocate_symtab): Update.
10016 * stabsread.c: Don't include bcache.h.
10017 * psymtab.h (struct psymbol_bcache): Don't declare.
10018 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10019 (psymbol_bcache_init, psymbol_bcache_free)
10020 (psymbol_bcache_get_bcache): Don't declare.
10021 * psymtab.c (struct psymbol_bcache): Remove.
10022 (psymtab_storage::psymtab_storage): Update.
10023 (psymtab_storage::~psymtab_storage): Update.
10024 (psymbol_bcache_init, psymbol_bcache_free)
10025 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10026 (add_psymbol_to_bcache): Update.
10027 (allocate_psymtab): Update.
10028 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10029 macro_cache>: No longer pointers.
10030 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10031 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10032 * macrotab.c (macro_bcache): Update.
10033 * macroexp.c: Don't include bcache.h.
10034 * gdbtypes.c (check_types_worklist): Update.
10035 (types_deeply_equal): Remove TRY/CATCH. Update.
10036 * elfread.c (elf_symtab_read): Update.
10037 * dwarf2read.c: Don't include bcache.h.
10038 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10039 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10040 (print_bcache_statistics, bcache_memory_used): Don't declare.
10041 (struct bcache): Move from bcache.c. Add constructor, destructor,
10042 methods. Rename all data members.
10043 * bcache.c (struct bcache): Move to bcache.h.
10044 (bcache::expand_hash_table): Rename from expand_hash_table.
10046 (bcache::insert): Rename from bcache_full.
10047 (bcache::compare): Rename from bcache_compare.
10048 (bcache_xmalloc): Remove.
10049 (bcache::~bcache): Rename from bcache_xfree.
10050 (bcache::print_statistics): Rename from print_bcache_statistics.
10051 (bcache::memory_used): Rename from bcache_memory_used.
10053 2019-03-07 Pedro Alves <palves@redhat.com>
10055 * infrun.c (normal_stop): Also check for
10056 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10058 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10060 * f-lang.c (value_from_host_double): Moved to...
10061 * value.c (value_from_host_double): ...here.
10062 * value.h (value_from_host_double): Declare.
10063 * guile/scm-math.c (vlscm_convert_typed_number): Use
10064 value_from_host_double.
10065 (vlscm_convert_number): Likewise.
10066 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10067 * python/py-value.c (convert_value_from_python): Likewise.
10069 2019-03-06 Tom Tromey <tom@tromey.com>
10071 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10073 2019-03-06 Tom Tromey <tom@tromey.com>
10075 * utils.h (free_current_contents): Don't declare.
10076 * utils.c (free_current_contents): Remove.
10078 2019-03-06 Tom Tromey <tom@tromey.com>
10080 * top.c (quit_force): Update.
10081 * main.c (captured_command_loop): Update.
10082 * common/new-op.c (operator new): Update.
10083 * common/common-exceptions.c (struct catcher)
10084 <save_cleanup_chain>: Remove member.
10085 (exceptions_state_mc_init): Update.
10086 (exception_try_scope_entry): Return nullptr.
10087 (exception_try_scope_exit, exception_rethrow)
10088 (throw_exception_sjlj, throw_exception_cxx): Update.
10089 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10090 (all_cleanups, do_cleanups, discard_cleanups)
10091 (discard_final_cleanups, save_cleanups, save_final_cleanups)
10092 (restore_cleanups, restore_final_cleanups): Don't declare.
10093 (do_final_cleanups): Remove parameter.
10094 * common/cleanups.c (cleanup_chain, make_cleanup)
10095 (make_cleanup_dtor, all_cleanups, do_cleanups)
10096 (discard_my_cleanups, discard_cleanups)
10097 (discard_final_cleanups, save_my_cleanups, save_cleanups)
10098 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10099 (null_cleanup): Remove.
10100 (do_final_cleanups): Remove parameter.
10102 2019-03-06 Tom Tromey <tom@tromey.com>
10104 * remote.c (remote_target::remote_parse_stop_reply): Use
10105 unique_xmalloc_ptr.
10107 2019-03-06 Tom Tromey <tom@tromey.com>
10109 * stabsread.c (struct stabs_field_info): Rename from field_info.
10110 <list, fnlist>: Add initializers.
10111 <obstack>: New member.
10112 (read_member_functions, read_struct_fields, read_baseclasses):
10113 Allocate on obstack. Don't use cleanups.
10114 (read_one_struct_field, read_member_functions, read_struct_fields)
10115 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
10116 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
10117 (read_struct_type): Update.
10119 2019-03-06 Tom Tromey <tom@tromey.com>
10121 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
10122 * common/filestuff.h (make_cleanup_close): Don't declare.
10123 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
10126 2019-03-06 Tom Tromey <tom@tromey.com>
10128 * solib-aix.c: Use make_scope_exit.
10130 2019-03-06 Tom Tromey <tom@tromey.com>
10132 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10133 Use make_scope_exit.
10135 2019-03-06 Tom Tromey <tom@tromey.com>
10137 * solib-svr4.c (disable_probes_interface): Remove parameter.
10138 (svr4_handle_solib_event): Use make_scope_exit.
10140 2019-03-06 Tom Tromey <tom@tromey.com>
10142 * remote.c (struct stop_reply_deleter): Remove.
10143 (stop_reply_up): Update.
10144 (struct stop_reply): Derive from notif_event. Don't typedef.
10145 <regcache>: Now a std::vector.
10146 (stop_reply_xfree): Remove.
10147 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10148 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10149 (remote_target::discard_pending_stop_replies): Use delete.
10150 (remote_target::remote_parse_stop_reply): Update.
10151 (remote_target::process_stop_reply): Update.
10152 * remote-notif.h (struct notif_event): Add virtual destructor.
10153 Remove "dtr" member.
10154 (struct notif_client) <alloc_event>: Return a unique_ptr.
10155 (notif_event_xfree): Don't declare.
10156 (notif_event_up): New typedef.
10157 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10158 (notif_event_xfree, do_notif_event_xfree): Remove.
10159 (remote_notif_state_xfree): Update.
10161 2019-03-06 Tom Tromey <tom@tromey.com>
10163 * infrun.c (displaced_step_clear_cleanup): Now a
10164 forward_scope_exit type.
10165 (displaced_step_prepare_throw): Update.
10166 (displaced_step_fixup): Update.
10168 2019-03-06 Tom Tromey <tom@tromey.com>
10170 * inferior.h (class inferior): Update comment.
10171 * gdbthread.h (class thread_info): Update comment.
10173 2019-03-06 Joel Brobecker <brobecker@adacore.com>
10174 Tom Tromey <tom@tromey.com>
10176 * stabsread.h (struct stab_section_list): Remove.
10177 (coffstab_build_psymtabs): Update.
10178 * dbxread.c (symbuf_sections): Now a std::vector.
10179 (sect_idx): New global.
10180 (fill_symbuf): Update.
10181 (coffstab_build_psymtabs): Change type of stabsects parameter.
10183 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10185 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10186 (coff_locate_sections): Update.
10187 (coff_symfile_read): Remove cleanups. Update.
10188 (init_stringtab): Add storage parameter.
10189 (free_stringtab, free_stringtab_cleanup): Remove.
10190 (init_lineno): Add storage parameter.
10191 (free_linetab, free_linetab_cleanup): Remove.
10193 2019-03-06 Pedro Alves <palves@redhat.com>
10195 * linux-fork.c (fork_info::clobber_regs): Delete.
10196 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10197 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10199 (scoped_switch_fork_info::scoped_switch_fork_info)
10200 (checkpoint_command, linux_fork_context): Adjust
10201 fork_save_infrun_state calls.
10203 2019-03-06 Pedro Alves <palves@redhat.com>
10205 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10206 (inf_has_multiple_threads): Return 'bool' and rewrite using
10207 inferior_info::threads().
10209 2019-03-06 Pedro Alves <palves@redhat.com>
10211 * linux-fork.c: Include <list>.
10212 (fork_list): Now a std::list instance.
10213 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10214 (forks_exist_p, find_last_fork): Adjust.
10215 (new_fork): Delete.
10217 (add_fork): Adjust.
10218 (free_fork): Delete, folded into fork_info::~fork_info().
10219 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
10221 (init_fork_list): Delete.
10222 (linux_fork_killall, linux_fork_mourn_inferior)
10223 (linux_fork_detach, info_checkpoints_command): Adjust.
10224 (_initialize_linux_fork): No longer call init_fork_list.
10226 2019-03-06 Pedro Alves <palves@redhat.com>
10228 * linux-fork.c (new_fork): New, split out of ...
10229 (add_fork): ... this. Return void. Move "first fork" special
10230 case from here, to ...
10231 (checkpoint_command): ... here.
10232 * linux-linux.h (add_fork): Return void.
10234 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10236 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10238 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10239 Chris January <chris.january@arm.com>
10240 David Lecomber <david.lecomber@arm.com>
10242 * f-exp.y: New token, UNOP_INTRINSIC.
10243 (exp): New pattern using UNOP_INTRINSIC token.
10244 (f77_keywords): Add 'abs' keyword.
10245 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10246 (value_from_host_double): New function.
10247 (evaluate_subexp_f): Support UNOP_ABS.
10249 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10251 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10254 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10256 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
10257 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
10258 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
10260 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10262 * f-exp.y (convert_to_kind_type): Handle more type kinds.
10264 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10265 Chris January <chris.january@arm.com>
10267 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
10268 * f-exp.y: Define 'KIND' token.
10269 (exp): New pattern for KIND expressions.
10270 (ptype): Handle types with a kind extension.
10271 (direct_abs_decl): Extend to spot kind extensions.
10272 (f77_keywords): Add 'kind' to the list.
10273 (push_kind_type): New function.
10274 (convert_to_kind_type): New function.
10275 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
10276 * parse.c (operator_length_standard): Likewise.
10277 * parser-defs.h (enum type_pieces): Add tp_kind.
10278 * std-operator.def: Add UNOP_KIND.
10280 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10282 * f-exp.y (f_parse): Set yydebug.
10284 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10286 * f-lang.c (evaluate_subexp_f): New function.
10287 (exp_descriptor_f): New global.
10288 (f_language_defn): Use exp_descriptor_f instead of
10289 exp_descriptor_standard.
10291 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10293 * f-exp.y (struct token): Add comments.
10294 (dot_ops): Remove uppercase versions and the end marker.
10295 (f77_keywords): Likewise.
10296 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10297 entries in the dot_ops array are case insensitive, and use
10298 strncasecmp to compare strings. Also some whitespace cleanup in
10299 this area. Similar for the f77_keywords array, except entries in
10300 this list might be case sensitive.
10302 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10304 * f-exp.y (struct f77_boolean_val): Add comments.
10305 (boolean_values): Remove uppercase versions, and end marker.
10306 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10307 and use strncasecmp to achieve case insensitivity. Additionally,
10308 perform whitespace cleanup around this code.
10310 2019-03-06 Tom Tromey <tromey@adacore.com>
10312 * remote-sim.c (gdbsim_target_open): Use result of
10315 2019-03-06 Richard Bunt <richard.bunt@arm.com>
10316 Dirk Schubert <dirk.schubert@arm.com>
10317 Chris January <chris.january@arm.com>
10319 * eval.c (evaluate_subexp_standard): Call Fortran argument
10321 * f-lang.c (struct value): A value which can be passed into a
10322 Fortran function call.
10323 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10325 (struct type): Value ready for a Fortran function call.
10326 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10328 * f-lang.h (fortran_argument_convert): Declaration.
10329 (fortran_preserve_arg_pointer): Declaration.
10330 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10332 2019-03-05 Tom Tromey <tromey@adacore.com>
10334 * python/py-prettyprint.c (print_string_repr): Remove #if.
10335 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10337 2019-03-05 Tom Tromey <tromey@adacore.com>
10339 * target.c (the_dummy_target): Move later. Change type to
10341 (initialize_targets): Don't initialize the_dummy_target.
10343 2019-03-05 Tom Tromey <tromey@adacore.com>
10345 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
10346 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
10348 2019-03-05 Tom Tromey <tromey@adacore.com>
10350 * windows-nat.c (windows_nat_target::attach)
10351 (windows_nat_target::detach): Don't call gdb_flush.
10352 * valprint.c (generic_val_print, val_print, val_print_string):
10353 Don't call gdb_flush.
10354 * utils.c (defaulted_query): Don't call gdb_flush.
10355 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10356 * target.c (target_announce_detach): Don't call gdb_flush.
10357 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10358 * remote.c (extended_remote_target::attach): Don't call
10360 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10361 * printcmd.c (do_examine): Don't call gdb_flush.
10362 (info_display_command): Don't call gdb_flush.
10363 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10364 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10365 * memattr.c (info_mem_command): Don't call gdb_flush.
10366 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10367 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10368 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10369 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10370 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10371 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10372 (gnu_nat_target::detach): Don't call gdb_flush.
10373 * f-valprint.c (f_val_print): Don't call gdb_flush.
10374 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10375 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10376 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10378 * c-valprint.c (c_val_print): Don't call gdb_flush.
10379 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10381 2019-03-05 Tom Tromey <tromey@adacore.com>
10383 * varobj.c (update_dynamic_varobj_children): Update.
10384 (install_default_visualizer): Use reset, not release.
10385 * value.c (set_internalvar): Update.
10386 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10387 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10388 ATTRIBUTE_UNUSED_RESULT.
10390 2019-03-05 Tom Tromey <tromey@adacore.com>
10392 * remote.c (class scoped_remote_fd) <release>: Add
10393 ATTRIBUTE_UNUSED_RESULT.
10395 2019-03-05 Tom Tromey <tromey@adacore.com>
10397 * macroexp.c (struct macro_buffer) <release>: Add
10398 ATTRIBUTE_UNUSED_RESULT.
10400 2019-03-05 Tom Tromey <tromey@adacore.com>
10402 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10403 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10404 ATTRIBUTE_UNUSED_RESULT.
10406 2019-03-05 Tom Tromey <tromey@adacore.com>
10408 * common/scoped_fd.h (class scoped_fd) <release>: Add
10409 ATTRIBUTE_UNUSED_RESULT.
10411 2019-03-05 Tom Tromey <tromey@adacore.com>
10413 * parser-defs.h (struct parser_state) <release>: Add
10414 ATTRIBUTE_UNUSED_RESULT.
10416 2019-03-05 Tom Tromey <tromey@adacore.com>
10418 * utils.h (class gdb_argv) <release>: Add
10419 ATTRIBUTE_UNUSED_RESULT.
10420 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10422 2019-03-02 Eli Zaretskii <eliz@gnu.org>
10424 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10425 for-loop range, to avoid compiler warnings.
10427 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10428 avoid compiler warnings about unused variables.
10430 * NEWS: Mention end of support for native debugging on MS-Windows
10434 * common/netstuff.c:
10435 * gdbserver/gdbreplay.c
10436 * gdbserver/remote-utils.c:
10438 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10439 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10440 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10441 'getaddrinfo' and 'freeaddrinfo' were not available before
10442 Windows XP, and mingw.org's MinGW headers by default define
10443 _WIN32_WINNT to 0x500.
10445 2019-03-01 Gary Benson <gbenson@redhat.com>
10447 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10449 2019-02-28 Brian Vandenberg <phantall@gmail.com>
10450 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10453 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10454 set_sigint_trap, clear_sigint_trap.
10456 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10458 * target.c (target_detach): Clear the regcache and the
10461 2019-02-27 Pedro Alves <palves@redhat.com>
10463 * utils.c (set_screen_size): When we cap the height/width sizes,
10464 tweak the corresponding command variable to show "unlimited":
10466 2019-02-27 Saagar Jha <saagar@saagarjha.com>
10467 Pedro Alves <palves@redhat.com>
10469 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10470 before calling rl_set_screen_size.
10472 2019-02-27 Tom Tromey <tromey@adacore.com>
10474 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10476 * python/py-value.c: Remove Python 2.4 workaround.
10477 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10479 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10480 Python 2.4 workaround.
10481 * python/python-internal.h: Remove Python 2.4 comment.
10482 (Py_ssize_t): Don't define.
10483 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10484 (gdb_Py_DECREF): Remove Python 2.4 workaround.
10485 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
10486 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
10487 * python/python.c (do_start_initialization): Remove Python 2.4
10489 * python/py-prettyprint.c (class dummy_python_frame): Remove.
10490 (print_children): Remove Python 2.4 workaround.
10491 * python/py-inferior.c (buffer_procs): Remove Python 2.4
10493 (CHARBUFFERPROC_NAME): Remove.
10494 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
10495 Python 2.4 workaround.
10497 2019-02-27 Kevin Buettner <kevinb@redhat.com>
10499 * NEWS: Note minimum Python version.
10501 2019-02-27 Kevin Buettner <kevinb@redhat.com>
10503 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
10504 code from these functions. Remove corresponding ifdefs. Use
10505 Py_buffer_up instead of explicit calls to PyBuffer_Release.
10506 Remove gotos and target of gotos.
10507 (infpy_search_memory): Likewise.
10509 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10511 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
10512 (hppa_gdbarch_init): Don't register deleted functions with
10515 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10517 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
10518 (h8300_unwind_sp): Delete.
10519 (h8300_dummy_id): Delete.
10520 (h8300_gdbarch_init): Don't register deleted functions with
10523 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10525 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
10526 (ft32_unwind_pc): Delete.
10527 (ft32_unwind_sp): Delete.
10528 (ft32_gdbarch_init): Don't register deleted functions with
10531 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10533 * gdb/frv-tdep.c (frv_dummy_id): Delete.
10534 (frv_unwind_pc): Delete.
10535 (frv_unwind_sp): Delete.
10536 (frv_gdbarch_init): Don't register deleted functions with
10539 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10541 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
10542 (riscv_unwind_pc): Delete.
10543 (riscv_unwind_sp): Delete.
10544 (riscv_gdbarch_init): Don't register deleted functions with
10547 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10549 * gdb/csky-tdep.c (csky_dummy_id): Delete.
10550 (csky_unwind_pc): Delete.
10551 (csky_unwind_sp): Delete.
10552 (csky_gdbarch_init): Don't register deleted functions with
10555 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10557 * gdb/cris-tdep.c (cris_dummy_id): Delete.
10558 (cris_unwind_pc): Delete.
10559 (cris_unwind_sp): Delete.
10560 (cris_gdbarch_init): Don't register deleted functions with
10563 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10565 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
10566 (bfin_unwind_pc): Delete.
10567 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
10569 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10571 * gdb/arm-tdep.c (arm_dummy_id): Delete.
10572 (arm_unwind_pc): Delete.
10573 (arm_unwind_sp): Delete.
10574 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
10576 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10578 * gdb/arc-tdep.c (arc_dummy_id): Delete.
10579 (arc_unwind_pc): Delete.
10580 (arc_unwind_sp): Delete.
10581 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
10583 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10585 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
10586 (alpha_unwind_pc): Delete.
10587 (alpha_gdbarch_init): Don't register deleted functions with
10590 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10592 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
10593 (aarch64_unwind_pc): Delete.
10594 (aarch64_unwind_sp): Delete.
10595 (aarch64_gdbarch_init): Don't register deleted functions with
10598 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10600 * gdbtypes.c (type_align): Don't consider static members when
10601 computing structure alignment.
10603 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10605 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
10606 return 0 for other types.
10607 * arch-utils.c (default_type_align): Always return 0.
10608 * gdbarch.h: Regenerate.
10609 * gdbarch.sh (type_align): Extend comment.
10610 * gdbtypes.c (type_align): Add additional comments, always call
10611 gdbarch_type_align before applying the default rules.
10612 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
10613 generic code will then apply a suitable default.
10614 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
10615 types, return 0 for other types.
10617 2019-02-27 Joel Brobecker <brobecker@adacore.com>
10619 * NEWS: Create a new section for the next release branch.
10620 Rename the section of the current branch, now that it has
10623 2019-02-27 Joel Brobecker <brobecker@adacore.com>
10625 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
10626 * version.in: Bump version to 8.3.50.DATE-git.
10628 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
10630 * aix-thread.c (ptid_cmp): Remove unused variable.
10631 (get_signaled_thread): Likewise.
10632 (store_regs_user_thread): Likewise.
10633 (store_regs_kernel_thread): Likewise.
10634 (fetch_regs_kernel_thread): Remove shadowed variable.
10636 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
10638 * features/riscv/32bit-cpu.xml: Add register numbers.
10639 * features/riscv/32bit-fpu.c: Regenerate.
10640 * features/riscv/32bit-fpu.xml: Add register numbers.
10641 * features/riscv/64bit-cpu.xml: Add register numbers.
10642 * features/riscv/64bit-fpu.c: Regenerate.
10643 * features/riscv/64bit-fpu.xml: Add register numbers.
10645 2019-02-26 Kevin Buettner <kevinb@redhat.com>
10647 * NEWS: Mention two argument form of gdb.Value constructor.
10648 * python/py-value.c (convert_buffer_and_type_to_value): New
10650 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
10651 Add support for handling an optional second argument. Call
10652 convert_buffer_and_type_to_value as appropriate.
10653 * python/python-internal.h (Py_buffer_deleter): New struct.
10654 (Py_buffer_up): New typedef.
10656 2019-02-25 John Baldwin <jhb@FreeBSD.org>
10658 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
10659 instead of releasing ownership.
10661 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
10663 * dwarf2read.c (open_and_init_dwp_file): Call
10664 elf_numsections instead of bfd_count_sections to initialize
10665 dwp_file->num_sections.
10667 2019-02-25 Tom Tromey <tromey@adacore.com>
10669 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
10671 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
10673 * gcore.in: Add '--readnever' option when invoking GDB.
10675 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10677 * MAINTAINERS: Update my email address.
10679 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10681 * build-id.c (build_id_to_debug_bfd_1): New function.
10682 (build_id_to_debug_bfd): Look for separate debug file in
10685 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
10687 * gdbarch.sh: Update the copyright year range that is placed into
10690 2019-02-22 Keith Seitz <keiths@redhat.com>
10693 * linespec.c (create_sals_line_offset): Search for the default
10694 symtab's filename instead of its fullname.
10696 2019-02-21 Alan Hayward <alan.hayward@arm.com>
10698 * NEWS: Update style defaults.
10700 2019-02-21 Alan Hayward <alan.hayward@arm.com>
10702 * main.c (captured_main_1): Disable styling in batch mode.
10704 2019-02-20 Tom Tromey <tom@tromey.com>
10706 * symtab.c (symtab_symbol_info): Fix typos.
10708 2019-02-20 Tom Tromey <tromey@adacore.com>
10710 * findcmd.c (_initialize_mem_search): Use upper case for
10711 metasyntactic variables.
10713 2019-02-20 Alan Hayward <alan.hayward@arm.com>
10715 * aarch64-tdep.c (aarch64_add_reggroups): New function.
10716 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
10718 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
10720 * top.h (source_file_name): Change to std::string.
10721 * top.c (source_file_name): Likewise.
10722 (command_line_input): Adjust.
10723 * cli/cli-script.c (script_from_file): Adjust.
10725 2019-02-19 Tom Tromey <tromey@adacore.com>
10727 * ravenscar-thread.c
10728 (ravenscar_thread_target::update_thread_list): Don't call
10729 ada_build_task_list.
10730 * ada-lang.h (ada_build_task_list): Don't declare.
10731 * ada-tasks.c (struct ada_tasks_inferior_data)
10732 <task_list_valid_p>: Now bool.
10733 (read_known_tasks, ada_task_list_changed)
10734 (ada_tasks_invalidate_inferior_data): Update.
10735 (read_known_tasks_array): Return bool.
10736 (read_known_tasks_list): Likewise.
10737 (read_known_tasks): Return void.
10738 (ada_build_task_list): Now static.
10740 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
10742 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
10743 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
10745 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10747 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
10748 variant for ada_tasks_pspace_data_handle and
10749 ada_tasks_inferior_data_handle.
10750 (ada_tasks_pspace_data_cleanup): New function.
10751 (ada_tasks_inferior_data_cleanup): New function.
10753 2019-02-17 Tom Tromey <tom@tromey.com>
10755 * macrotab.h (macro_source_fullname): Return a std::string.
10756 * macrotab.c (macro_include, check_for_redefinition)
10757 (macro_undef, macro_lookup_definition, foreach_macro)
10758 (foreach_macro_in_scope): Update.
10759 (macro_source_fullname): Return a std::string.
10760 * macrocmd.c (show_pp_source_pos): Update.
10762 2019-02-17 Tom Tromey <tom@tromey.com>
10764 * macrocmd.c (show_pp_source_pos): Style the file names.
10766 2019-02-17 Tom Tromey <tom@tromey.com>
10769 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
10771 2019-02-17 Tom Tromey <tom@tromey.com>
10773 * ada-lang.c (user_select_syms): Use filtered printing.
10774 * utils.c (wrap_style): New global.
10775 (desired_style): Remove.
10776 (emit_style_escape): Add stream parameter.
10777 (set_output_style, reset_terminal_style, prompt_for_continue):
10779 (flush_wrap_buffer): Only flush gdb_stdout.
10780 (wrap_here): Set wrap_style.
10781 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
10782 treat escape sequences as a character. Change when wrap buffer is
10784 (fputs_styled): Do not set the output style when the default is
10786 * ui-style.h (struct ui_file_style) <is_default>: New method.
10787 * source.c (print_source_lines_base): Emit escape sequences in one
10790 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10792 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
10793 integers and enumeration types.
10795 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10797 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
10798 instead of lookup_symbol_in_language
10799 (do_exact_match): New function.
10800 (ada_get_symbol_name_matcher): Return do_exact_match when
10801 doing a verbatim match.
10803 2019-02-15 Tom Tromey <tromey@adacore.com>
10805 * ravenscar-thread.c (ravenscar_thread_target::resume)
10806 (ravenscar_thread_target::wait): Special case wildcard requests.
10808 2019-02-15 Tom Tromey <tromey@adacore.com>
10810 * ravenscar-thread.c (base_ptid): Remove.
10811 (struct ravenscar_thread_target) <close>: New method.
10812 <m_base_ptid>: New member.
10813 <update_inferior_ptid, active_task, task_is_currently_active,
10814 runtime_initialized>: Declare methods.
10815 <ravenscar_thread_target>: Add constructor.
10816 (ravenscar_thread_target::task_is_currently_active)
10817 (ravenscar_thread_target::update_inferior_ptid)
10818 (ravenscar_runtime_initialized): Rename. Now methods.
10819 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
10820 (ravenscar_thread_target::update_thread_list): Update.
10821 (ravenscar_thread_target::active_task): Now method.
10822 (ravenscar_thread_target::store_registers)
10823 (ravenscar_thread_target::prepare_to_store)
10824 (ravenscar_thread_target::prepare_to_store)
10825 (ravenscar_thread_target::mourn_inferior): Update.
10826 (ravenscar_inferior_created): Use "new" to create target.
10827 (ravenscar_thread_target::get_ada_task_ptid): Update.
10828 (_initialize_ravenscar): Don't initialize base_ptid.
10829 (ravenscar_ops): Remove global.
10831 2019-02-15 Tom Tromey <tromey@adacore.com>
10833 * target.h (push_target): Declare new overload.
10834 * target.c (push_target): New overload, taking an rvalue reference.
10835 * remote.c (remote_target::open_1): Use push_target overload.
10836 * corelow.c (core_target_open): Use push_target overload.
10838 2019-02-15 Tom Tromey <tromey@adacore.com>
10840 * ravenscar-thread.c (is_ravenscar_task)
10841 (ravenscar_task_is_currently_active): Return bool.
10842 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10843 (_initialize_ravenscar): Remove "(void)".
10844 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10847 2019-02-15 Tom Tromey <tromey@adacore.com>
10849 * ravenscar-thread.c (ravenscar_runtime_initializer)
10850 (has_ravenscar_runtime, get_running_thread_id)
10851 (ravenscar_thread_target::resume): Fix indentation.
10853 2019-02-15 Tom Tromey <tromey@adacore.com>
10855 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10856 from ravenscar_arch_ops.
10857 (sparc_ravenscar_ops::fetch_registers)
10858 (sparc_ravenscar_ops::store_registers): Now methods.
10859 (sparc_ravenscar_prepare_to_store): Remove.
10860 (sparc_ravenscar_ops): Redefine.
10861 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10862 methods and destructor. Remove members.
10863 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10864 (ravenscar_thread_target::store_registers)
10865 (ravenscar_thread_target::prepare_to_store): Update.
10866 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10868 (struct ppc_ravenscar_powerpc_ops): Derive from
10869 ravenscar_arch_ops.
10870 (ppc_ravenscar_powerpc_ops::fetch_registers)
10871 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10872 (ppc_ravenscar_powerpc_ops): Redefine.
10873 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10874 (ppc_ravenscar_e500_ops::fetch_registers)
10875 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10876 (ppc_ravenscar_e500_ops): Redefine.
10877 * aarch64-ravenscar-thread.c
10878 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10879 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10880 (aarch64_ravenscar_fetch_registers)
10881 (aarch64_ravenscar_store_registers): Now methods.
10882 (aarch64_ravenscar_ops): Redefine.
10884 2019-02-15 Tom Tromey <tromey@adacore.com>
10886 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10887 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10888 (ravenscar_thread_target::stopped_by_watchpoint)
10889 (ravenscar_thread_target::stopped_data_address)
10890 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10892 2019-02-15 Tom Tromey <tromey@adacore.com>
10894 * ravenscar-thread.c: Fix some typos.
10896 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10897 Tom Tromey <tromey@adacore.com>
10899 * ada-lang.c (ada_exception_sal): Change addr_string to a
10901 (create_ada_exception_catchpoint): Update.
10903 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10904 Tom Tromey <tromey@adacore.com>
10906 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10907 (bp_location_ops): Remove.
10908 (base_breakpoint_allocate_location): Update.
10909 (free_bp_location): Update.
10910 * ada-lang.c (class ada_catchpoint_location)
10911 <ada_catchpoint_location>: Remove ops parameter.
10912 (ada_catchpoint_location_dtor): Remove.
10913 (ada_catchpoint_location_ops): Remove.
10914 (allocate_location_exception): Update.
10915 * breakpoint.h (struct bp_location_ops): Remove.
10916 (class bp_location) <bp_location>: Remove bp_location_ops
10918 <~bp_location>: Add destructor.
10921 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10922 Pedro Alves <palves@redhat.com>
10924 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10927 2019-02-14 David Michael <fedora.dm0@gmail.com>
10928 Samuel Thibault <samuel.thibault@gnu.org>
10929 Thomas Schwinge <thomas@codesourcery.com>
10931 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10932 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10934 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10936 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10937 (check_empty): Use "const char *".
10939 * gnu-nat.c (gnu_nat_target::detach): Instead of
10940 'detach_inferior (pid)' call
10941 'detach_inferior (find_inferior_pid (pid))'.
10943 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10944 'nat/fork-inferior.o'.
10945 * gnu-nat.c: #include "nat/fork-inferior.h".
10947 * gnu-nat.c (gnu_nat_target::detach): Instead of
10948 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10949 * gnu-nat.h: #include "inf-child.h".
10950 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10951 'i386_gnu_nat_target::fetch_registers'.
10952 (gnu_store_registers): Rename/move to
10953 'i386_gnu_nat_target::store_registers'.
10955 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10956 * gnu-nat.h (mach_thread_info): New function.
10957 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10959 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10961 2019-02-14 Frederic Konrad <konrad@adacore.com>
10963 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
10965 2019-02-14 Joel Brobecker <brobecker@adacore.com>
10967 * windows-nat.c (windows_add_thread): Add new parameter
10968 "main_thread_p" with default value set to false. Update
10969 function documentation as well as all callers.
10970 (windows_delete_thread): Likewise.
10971 (fake_create_process): Update call to windows_add_thread.
10972 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
10973 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
10974 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
10975 call to windows_delete_thread.
10977 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
10979 * MAINTAINERS: Add Andrew Burgess as global maintainer.
10981 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10983 * symfile.c (find_separate_debug_file): Use canonical path of
10984 sysroot with child_path instead of gdb_sysroot if it is valid.
10986 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10988 * symfile.c (find_separate_debug_file): Use child_path to
10989 determine if an object file is under a sysroot.
10991 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10993 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10994 unittests/child-path-selftests.c.
10995 * common/pathstuff.c (child_path): New function.
10996 * common/pathstuff.h (child_path): New prototype.
10997 * unittests/child-path-selftests.c: New file.
10999 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11001 * symfile.c (find_separate_debug_file): Look for separate debug
11002 files in debug directories under the sysroot.
11004 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11006 * symtab.h (struct minimal_symbol data_p): New const method.
11007 (struct minimal_symbol text_p): Likewise.
11008 * symtab.c (output_source_filename): Use file name style
11009 to print file name.
11010 (print_symbol_info): Likewise.
11011 (print_msymbol_info): Use address style to print addresses.
11012 Use function name style to print executable text symbols.
11013 (expand_symtab_containing_pc): Use data_p.
11014 (find_pc_sect_compunit_symtab): Likewise.
11016 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11018 * breakpoint.c (describe_other_breakpoints): Use address style
11019 to print addresses.
11020 (say_where): Likewise.
11022 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11024 * ada-typeprint.c (print_func_type): Print function name
11025 style to print function name.
11026 * c-typeprint.c (c_print_type_1): Likewise.
11028 2019-02-11 Alan Hayward <alan.hayward@arm.com>
11030 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11033 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11035 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11038 2019-02-10 Joel Brobecker <brobecker@adacore.com>
11040 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11041 TYPE_CODE_REF types.
11043 2019-02-08 Jim Wilson <jimw@sifive.com>
11045 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11046 (riscv_linux_fregset): New.
11047 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11049 2019-02-07 Tom Tromey <tom@tromey.com>
11051 * thread.c (thread_cancel_execution_command): Update.
11052 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11054 (struct thread_fsm_ops): Remove.
11055 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11056 (thread_fsm_should_stop, thread_fsm_return_value)
11057 (thread_fsm_set_finished, thread_fsm_finished_p)
11058 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11060 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11061 * infrun.c (clear_proceed_status_thread)
11062 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11063 (print_stop_event): Update.
11064 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11066 (step_command_fsm_ops): Remove.
11067 (new_step_command_fsm): Remove.
11069 (step_command_fsm::should_stop): Rename from
11070 step_command_fsm_should_stop.
11071 (step_command_fsm::clean_up): Rename from
11072 step_command_fsm_clean_up.
11073 (step_command_fsm::do_async_reply_reason): Rename from
11074 step_command_fsm_async_reply_reason.
11075 (struct until_next_fsm): Inherit from thread_fsm. Add
11077 (until_next_fsm_ops): Remove.
11078 (new_until_next_fsm): Remove.
11079 (until_next_fsm::should_stop): Rename from
11080 until_next_fsm_should_stop.
11081 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11082 (until_next_fsm::do_async_reply_reason): Rename from
11083 until_next_fsm_async_reply_reason.
11084 (struct finish_command_fsm): Inherit from thread_fsm. Add
11085 constructor. Change type of breakpoint.
11086 (finish_command_fsm_ops): Remove.
11087 (new_finish_command_fsm): Remove.
11088 (finish_command_fsm::should_stop): Rename from
11089 finish_command_fsm_should_stop.
11090 (finish_command_fsm::clean_up): Rename from
11091 finish_command_fsm_clean_up.
11092 (finish_command_fsm::return_value): Rename from
11093 finish_command_fsm_return_value.
11094 (finish_command_fsm::do_async_reply_reason): Rename from
11095 finish_command_fsm_async_reply_reason.
11096 (finish_command): Update.
11097 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11099 (call_thread_fsm_ops): Remove.
11100 (call_thread_fsm::call_thread_fsm): Rename from
11101 new_call_thread_fsm.
11102 (call_thread_fsm::should_stop): Rename from
11103 call_thread_fsm_should_stop.
11104 (call_thread_fsm::should_notify_stop): Rename from
11105 call_thread_fsm_should_notify_stop.
11106 (run_inferior_call, call_function_by_hand_dummy): Update.
11107 * cli/cli-interp.c (should_print_stop_to_console): Update.
11108 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11109 Add constructor. Change type of location_breakpoint,
11111 (until_break_fsm_ops): Remove.
11112 (new_until_break_fsm): Remove.
11113 (until_break_fsm::should_stop): Rename from
11114 until_break_fsm_should_stop.
11115 (until_break_fsm::clean_up): Rename from
11116 until_break_fsm_clean_up.
11117 (until_break_fsm::do_async_reply_reason): Rename from
11118 until_break_fsm_async_reply_reason.
11119 (until_break_command): Update.
11120 * thread-fsm.c: Remove.
11121 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
11123 2019-02-07 Tom Tromey <tom@tromey.com>
11125 * yy-remap.h: Add include guard.
11126 * xtensa-tdep.h: Add include guard.
11127 * xcoffread.h: Rename include guard.
11128 * varobj-iter.h: Add include guard.
11129 * tui/tui.h: Rename include guard.
11130 * tui/tui-winsource.h: Rename include guard.
11131 * tui/tui-wingeneral.h: Rename include guard.
11132 * tui/tui-windata.h: Rename include guard.
11133 * tui/tui-win.h: Rename include guard.
11134 * tui/tui-stack.h: Rename include guard.
11135 * tui/tui-source.h: Rename include guard.
11136 * tui/tui-regs.h: Rename include guard.
11137 * tui/tui-out.h: Rename include guard.
11138 * tui/tui-layout.h: Rename include guard.
11139 * tui/tui-io.h: Rename include guard.
11140 * tui/tui-hooks.h: Rename include guard.
11141 * tui/tui-file.h: Rename include guard.
11142 * tui/tui-disasm.h: Rename include guard.
11143 * tui/tui-data.h: Rename include guard.
11144 * tui/tui-command.h: Rename include guard.
11145 * tic6x-tdep.h: Add include guard.
11146 * target/waitstatus.h: Rename include guard.
11147 * target/wait.h: Rename include guard.
11148 * target/target.h: Rename include guard.
11149 * target/resume.h: Rename include guard.
11150 * target-float.h: Rename include guard.
11151 * stabsread.h: Add include guard.
11152 * rs6000-tdep.h: Add include guard.
11153 * riscv-fbsd-tdep.h: Add include guard.
11154 * regformats/regdef.h: Rename include guard.
11155 * record.h: Rename include guard.
11156 * python/python.h: Rename include guard.
11157 * python/python-internal.h: Rename include guard.
11158 * python/py-stopevent.h: Rename include guard.
11159 * python/py-ref.h: Rename include guard.
11160 * python/py-record.h: Rename include guard.
11161 * python/py-record-full.h: Rename include guard.
11162 * python/py-record-btrace.h: Rename include guard.
11163 * python/py-instruction.h: Rename include guard.
11164 * python/py-events.h: Rename include guard.
11165 * python/py-event.h: Rename include guard.
11166 * procfs.h: Add include guard.
11167 * proc-utils.h: Add include guard.
11168 * p-lang.h: Add include guard.
11169 * or1k-tdep.h: Rename include guard.
11170 * observable.h: Rename include guard.
11171 * nto-tdep.h: Rename include guard.
11172 * nat/x86-linux.h: Rename include guard.
11173 * nat/x86-linux-dregs.h: Rename include guard.
11174 * nat/x86-gcc-cpuid.h: Add include guard.
11175 * nat/x86-dregs.h: Rename include guard.
11176 * nat/x86-cpuid.h: Rename include guard.
11177 * nat/ppc-linux.h: Rename include guard.
11178 * nat/mips-linux-watch.h: Rename include guard.
11179 * nat/linux-waitpid.h: Rename include guard.
11180 * nat/linux-ptrace.h: Rename include guard.
11181 * nat/linux-procfs.h: Rename include guard.
11182 * nat/linux-osdata.h: Rename include guard.
11183 * nat/linux-nat.h: Rename include guard.
11184 * nat/linux-namespaces.h: Rename include guard.
11185 * nat/linux-btrace.h: Rename include guard.
11186 * nat/glibc_thread_db.h: Rename include guard.
11187 * nat/gdb_thread_db.h: Rename include guard.
11188 * nat/gdb_ptrace.h: Rename include guard.
11189 * nat/fork-inferior.h: Rename include guard.
11190 * nat/amd64-linux-siginfo.h: Rename include guard.
11191 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11192 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11193 * nat/aarch64-linux.h: Rename include guard.
11194 * nat/aarch64-linux-hw-point.h: Rename include guard.
11195 * mn10300-tdep.h: Add include guard.
11196 * mips-linux-tdep.h: Add include guard.
11197 * mi/mi-parse.h: Rename include guard.
11198 * mi/mi-out.h: Rename include guard.
11199 * mi/mi-main.h: Rename include guard.
11200 * mi/mi-interp.h: Rename include guard.
11201 * mi/mi-getopt.h: Rename include guard.
11202 * mi/mi-console.h: Rename include guard.
11203 * mi/mi-common.h: Rename include guard.
11204 * mi/mi-cmds.h: Rename include guard.
11205 * mi/mi-cmd-break.h: Rename include guard.
11206 * m2-lang.h: Add include guard.
11207 * location.h: Rename include guard.
11208 * linux-record.h: Rename include guard.
11209 * linux-nat.h: Add include guard.
11210 * linux-fork.h: Add include guard.
11211 * i386-darwin-tdep.h: Rename include guard.
11212 * hppa-linux-offsets.h: Add include guard.
11213 * guile/guile.h: Rename include guard.
11214 * guile/guile-internal.h: Rename include guard.
11215 * gnu-nat.h: Rename include guard.
11216 * gdb-stabs.h: Rename include guard.
11217 * frv-tdep.h: Add include guard.
11218 * f-lang.h: Add include guard.
11219 * event-loop.h: Add include guard.
11220 * darwin-nat.h: Rename include guard.
11221 * cp-abi.h: Rename include guard.
11222 * config/sparc/nm-sol2.h: Rename include guard.
11223 * config/nm-nto.h: Rename include guard.
11224 * config/nm-linux.h: Add include guard.
11225 * config/i386/nm-i386gnu.h: Rename include guard.
11226 * config/djgpp/nl_types.h: Rename include guard.
11227 * config/djgpp/langinfo.h: Rename include guard.
11228 * compile/gcc-cp-plugin.h: Add include guard.
11229 * compile/gcc-c-plugin.h: Add include guard.
11230 * compile/compile.h: Rename include guard.
11231 * compile/compile-object-run.h: Rename include guard.
11232 * compile/compile-object-load.h: Rename include guard.
11233 * compile/compile-internal.h: Rename include guard.
11234 * compile/compile-cplus.h: Rename include guard.
11235 * compile/compile-c.h: Rename include guard.
11236 * common/xml-utils.h: Rename include guard.
11237 * common/x86-xstate.h: Rename include guard.
11238 * common/version.h: Rename include guard.
11239 * common/vec.h: Rename include guard.
11240 * common/tdesc.h: Rename include guard.
11241 * common/selftest.h: Rename include guard.
11242 * common/scoped_restore.h: Rename include guard.
11243 * common/scoped_mmap.h: Rename include guard.
11244 * common/scoped_fd.h: Rename include guard.
11245 * common/safe-iterator.h: Rename include guard.
11246 * common/run-time-clock.h: Rename include guard.
11247 * common/refcounted-object.h: Rename include guard.
11248 * common/queue.h: Rename include guard.
11249 * common/ptid.h: Rename include guard.
11250 * common/print-utils.h: Rename include guard.
11251 * common/preprocessor.h: Rename include guard.
11252 * common/pathstuff.h: Rename include guard.
11253 * common/observable.h: Rename include guard.
11254 * common/netstuff.h: Rename include guard.
11255 * common/job-control.h: Rename include guard.
11256 * common/host-defs.h: Rename include guard.
11257 * common/gdb_wait.h: Rename include guard.
11258 * common/gdb_vecs.h: Rename include guard.
11259 * common/gdb_unlinker.h: Rename include guard.
11260 * common/gdb_unique_ptr.h: Rename include guard.
11261 * common/gdb_tilde_expand.h: Rename include guard.
11262 * common/gdb_sys_time.h: Rename include guard.
11263 * common/gdb_string_view.h: Rename include guard.
11264 * common/gdb_splay_tree.h: Rename include guard.
11265 * common/gdb_setjmp.h: Rename include guard.
11266 * common/gdb_ref_ptr.h: Rename include guard.
11267 * common/gdb_optional.h: Rename include guard.
11268 * common/gdb_locale.h: Rename include guard.
11269 * common/gdb_assert.h: Rename include guard.
11270 * common/filtered-iterator.h: Rename include guard.
11271 * common/filestuff.h: Rename include guard.
11272 * common/fileio.h: Rename include guard.
11273 * common/environ.h: Rename include guard.
11274 * common/common-utils.h: Rename include guard.
11275 * common/common-types.h: Rename include guard.
11276 * common/common-regcache.h: Rename include guard.
11277 * common/common-inferior.h: Rename include guard.
11278 * common/common-gdbthread.h: Rename include guard.
11279 * common/common-exceptions.h: Rename include guard.
11280 * common/common-defs.h: Rename include guard.
11281 * common/common-debug.h: Rename include guard.
11282 * common/cleanups.h: Rename include guard.
11283 * common/buffer.h: Rename include guard.
11284 * common/btrace-common.h: Rename include guard.
11285 * common/break-common.h: Rename include guard.
11286 * cli/cli-utils.h: Rename include guard.
11287 * cli/cli-style.h: Rename include guard.
11288 * cli/cli-setshow.h: Rename include guard.
11289 * cli/cli-script.h: Rename include guard.
11290 * cli/cli-interp.h: Rename include guard.
11291 * cli/cli-decode.h: Rename include guard.
11292 * cli/cli-cmds.h: Rename include guard.
11293 * charset-list.h: Add include guard.
11294 * buildsym-legacy.h: Rename include guard.
11295 * bfin-tdep.h: Add include guard.
11296 * ax.h: Rename include guard.
11297 * arm-linux-tdep.h: Add include guard.
11298 * arm-fbsd-tdep.h: Add include guard.
11299 * arch/xtensa.h: Rename include guard.
11300 * arch/tic6x.h: Add include guard.
11301 * arch/i386.h: Add include guard.
11302 * arch/arm.h: Rename include guard.
11303 * arch/arm-linux.h: Rename include guard.
11304 * arch/arm-get-next-pcs.h: Rename include guard.
11305 * arch/amd64.h: Add include guard.
11306 * arch/aarch64-insn.h: Rename include guard.
11307 * arch-utils.h: Rename include guard.
11308 * annotate.h: Add include guard.
11309 * amd64-darwin-tdep.h: Rename include guard.
11310 * aarch64-linux-tdep.h: Add include guard.
11311 * aarch64-fbsd-tdep.h: Add include guard.
11312 * aarch32-linux-nat.h: Add include guard.
11314 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11316 * macrotab.c (macro_define_internal): New function that
11317 factorizes macro_define_object_internal and macro_define_function
11319 (macro_define_object_internal): Use macro_define_internal.
11320 (macro_define_function): Likewise.
11322 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11324 * macrocmd.c (extract_identifier): Return
11325 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11328 2019-02-06 John Baldwin <jhb@FreeBSD.org>
11330 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11332 2019-02-05 Tom Tromey <tom@tromey.com>
11334 * target.c (target_stack::unpush): Move assertion earlier.
11336 2019-01-30 Tom Tromey <tom@tromey.com>
11339 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
11340 (gdbpy_parse_and_eval): Likewise.
11341 * python/python-internal.h (gdbpy_allow_threads): New class.
11343 2019-01-28 John Baldwin <jhb@FreeBSD.org>
11345 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
11346 (aarch64_fbsd_fpregmap): Move earlier.
11347 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
11348 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11349 instead of individual calls to trad_frame_set_reg_addr.
11350 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11352 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11353 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11354 instead of individual calls to trad_frame_set_reg_addr.
11356 2019-01-28 Alan Hayward <alan.hayward@arm.com>
11358 * CONTRIBUTE: Replace contribution list with wiki link.
11360 2019-01-25 Tom Tromey <tom@tromey.com>
11362 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11364 2019-01-25 Tom Tromey <tom@tromey.com>
11366 * xtensa-linux-nat.c: Fix common/ includes.
11367 * xml-support.h: Fix common/ includes.
11368 * xml-support.c: Fix common/ includes.
11369 * x86-linux-nat.c: Fix common/ includes.
11370 * windows-nat.c: Fix common/ includes.
11371 * varobj.h: Fix common/ includes.
11372 * varobj.c: Fix common/ includes.
11373 * value.c: Fix common/ includes.
11374 * valops.c: Fix common/ includes.
11375 * utils.c: Fix common/ includes.
11376 * unittests/xml-utils-selftests.c: Fix common/ includes.
11377 * unittests/utils-selftests.c: Fix common/ includes.
11378 * unittests/unpack-selftests.c: Fix common/ includes.
11379 * unittests/tracepoint-selftests.c: Fix common/ includes.
11380 * unittests/style-selftests.c: Fix common/ includes.
11381 * unittests/string_view-selftests.c: Fix common/ includes.
11382 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11383 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11384 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11385 * unittests/rsp-low-selftests.c: Fix common/ includes.
11386 * unittests/parse-connection-spec-selftests.c: Fix common/
11388 * unittests/optional-selftests.c: Fix common/ includes.
11389 * unittests/offset-type-selftests.c: Fix common/ includes.
11390 * unittests/observable-selftests.c: Fix common/ includes.
11391 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11392 * unittests/memrange-selftests.c: Fix common/ includes.
11393 * unittests/memory-map-selftests.c: Fix common/ includes.
11394 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11395 * unittests/function-view-selftests.c: Fix common/ includes.
11396 * unittests/environ-selftests.c: Fix common/ includes.
11397 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11398 * unittests/common-utils-selftests.c: Fix common/ includes.
11399 * unittests/cli-utils-selftests.c: Fix common/ includes.
11400 * unittests/array-view-selftests.c: Fix common/ includes.
11401 * ui-file.c: Fix common/ includes.
11402 * tui/tui-io.c: Fix common/ includes.
11403 * tracepoint.h: Fix common/ includes.
11404 * tracepoint.c: Fix common/ includes.
11405 * tracefile-tfile.c: Fix common/ includes.
11406 * top.h: Fix common/ includes.
11407 * top.c: Fix common/ includes.
11408 * thread.c: Fix common/ includes.
11409 * target/waitstatus.h: Fix common/ includes.
11410 * target/waitstatus.c: Fix common/ includes.
11411 * target.h: Fix common/ includes.
11412 * target.c: Fix common/ includes.
11413 * target-memory.c: Fix common/ includes.
11414 * target-descriptions.c: Fix common/ includes.
11415 * symtab.h: Fix common/ includes.
11416 * symfile.c: Fix common/ includes.
11417 * stap-probe.c: Fix common/ includes.
11418 * spu-linux-nat.c: Fix common/ includes.
11419 * sparc-nat.c: Fix common/ includes.
11420 * source.c: Fix common/ includes.
11421 * solib.c: Fix common/ includes.
11422 * solib-target.c: Fix common/ includes.
11423 * ser-unix.c: Fix common/ includes.
11424 * ser-tcp.c: Fix common/ includes.
11425 * ser-pipe.c: Fix common/ includes.
11426 * ser-base.c: Fix common/ includes.
11427 * selftest-arch.c: Fix common/ includes.
11428 * s12z-tdep.c: Fix common/ includes.
11429 * rust-exp.y: Fix common/ includes.
11430 * rs6000-aix-tdep.c: Fix common/ includes.
11431 * riscv-tdep.c: Fix common/ includes.
11432 * remote.c: Fix common/ includes.
11433 * remote-notif.h: Fix common/ includes.
11434 * remote-fileio.h: Fix common/ includes.
11435 * remote-fileio.c: Fix common/ includes.
11436 * regcache.h: Fix common/ includes.
11437 * regcache.c: Fix common/ includes.
11438 * record-btrace.c: Fix common/ includes.
11439 * python/python.c: Fix common/ includes.
11440 * python/py-type.c: Fix common/ includes.
11441 * python/py-inferior.c: Fix common/ includes.
11442 * progspace.h: Fix common/ includes.
11443 * producer.c: Fix common/ includes.
11444 * procfs.c: Fix common/ includes.
11445 * proc-api.c: Fix common/ includes.
11446 * printcmd.c: Fix common/ includes.
11447 * ppc-linux-nat.c: Fix common/ includes.
11448 * parser-defs.h: Fix common/ includes.
11449 * osdata.c: Fix common/ includes.
11450 * obsd-nat.c: Fix common/ includes.
11451 * nat/x86-linux.c: Fix common/ includes.
11452 * nat/x86-linux-dregs.c: Fix common/ includes.
11453 * nat/x86-dregs.h: Fix common/ includes.
11454 * nat/x86-dregs.c: Fix common/ includes.
11455 * nat/ppc-linux.c: Fix common/ includes.
11456 * nat/mips-linux-watch.h: Fix common/ includes.
11457 * nat/mips-linux-watch.c: Fix common/ includes.
11458 * nat/linux-waitpid.c: Fix common/ includes.
11459 * nat/linux-ptrace.h: Fix common/ includes.
11460 * nat/linux-ptrace.c: Fix common/ includes.
11461 * nat/linux-procfs.c: Fix common/ includes.
11462 * nat/linux-personality.c: Fix common/ includes.
11463 * nat/linux-osdata.c: Fix common/ includes.
11464 * nat/linux-namespaces.c: Fix common/ includes.
11465 * nat/linux-btrace.h: Fix common/ includes.
11466 * nat/linux-btrace.c: Fix common/ includes.
11467 * nat/fork-inferior.c: Fix common/ includes.
11468 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11469 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11470 * nat/aarch64-linux.c: Fix common/ includes.
11471 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11472 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11473 * namespace.h: Fix common/ includes.
11474 * mips-linux-tdep.c: Fix common/ includes.
11475 * minsyms.c: Fix common/ includes.
11476 * mi/mi-parse.h: Fix common/ includes.
11477 * mi/mi-main.c: Fix common/ includes.
11478 * mi/mi-cmd-env.c: Fix common/ includes.
11479 * memrange.h: Fix common/ includes.
11480 * memattr.c: Fix common/ includes.
11481 * maint.h: Fix common/ includes.
11482 * maint.c: Fix common/ includes.
11483 * main.c: Fix common/ includes.
11484 * machoread.c: Fix common/ includes.
11485 * location.c: Fix common/ includes.
11486 * linux-thread-db.c: Fix common/ includes.
11487 * linux-nat.c: Fix common/ includes.
11488 * linux-fork.c: Fix common/ includes.
11489 * inline-frame.c: Fix common/ includes.
11490 * infrun.c: Fix common/ includes.
11491 * inflow.c: Fix common/ includes.
11492 * inferior.h: Fix common/ includes.
11493 * inferior.c: Fix common/ includes.
11494 * infcmd.c: Fix common/ includes.
11495 * inf-ptrace.c: Fix common/ includes.
11496 * inf-child.c: Fix common/ includes.
11497 * ia64-linux-nat.c: Fix common/ includes.
11498 * i387-tdep.c: Fix common/ includes.
11499 * i386-tdep.c: Fix common/ includes.
11500 * i386-linux-tdep.c: Fix common/ includes.
11501 * i386-linux-nat.c: Fix common/ includes.
11502 * i386-go32-tdep.c: Fix common/ includes.
11503 * i386-fbsd-tdep.c: Fix common/ includes.
11504 * i386-fbsd-nat.c: Fix common/ includes.
11505 * guile/scm-type.c: Fix common/ includes.
11506 * guile/guile.c: Fix common/ includes.
11507 * go32-nat.c: Fix common/ includes.
11508 * gnu-nat.c: Fix common/ includes.
11509 * gdbthread.h: Fix common/ includes.
11510 * gdbarch-selftests.c: Fix common/ includes.
11511 * gdb_usleep.c: Fix common/ includes.
11512 * gdb_select.h: Fix common/ includes.
11513 * gdb_bfd.c: Fix common/ includes.
11514 * gcore.c: Fix common/ includes.
11515 * fork-child.c: Fix common/ includes.
11516 * findvar.c: Fix common/ includes.
11517 * fbsd-nat.c: Fix common/ includes.
11518 * event-top.c: Fix common/ includes.
11519 * event-loop.c: Fix common/ includes.
11520 * dwarf2read.c: Fix common/ includes.
11521 * dwarf2loc.c: Fix common/ includes.
11522 * dwarf2-frame.c: Fix common/ includes.
11523 * dwarf-index-cache.c: Fix common/ includes.
11524 * dtrace-probe.c: Fix common/ includes.
11525 * disasm-selftests.c: Fix common/ includes.
11526 * defs.h: Fix common/ includes.
11527 * csky-tdep.c: Fix common/ includes.
11528 * cp-valprint.c: Fix common/ includes.
11529 * cp-support.h: Fix common/ includes.
11530 * cp-support.c: Fix common/ includes.
11531 * corelow.c: Fix common/ includes.
11532 * completer.h: Fix common/ includes.
11533 * completer.c: Fix common/ includes.
11534 * compile/compile.c: Fix common/ includes.
11535 * compile/compile-loc2c.c: Fix common/ includes.
11536 * compile/compile-cplus-types.c: Fix common/ includes.
11537 * compile/compile-cplus-symbols.c: Fix common/ includes.
11538 * command.h: Fix common/ includes.
11539 * cli/cli-dump.c: Fix common/ includes.
11540 * cli/cli-cmds.c: Fix common/ includes.
11541 * charset.c: Fix common/ includes.
11542 * build-id.c: Fix common/ includes.
11543 * btrace.h: Fix common/ includes.
11544 * btrace.c: Fix common/ includes.
11545 * breakpoint.h: Fix common/ includes.
11546 * breakpoint.c: Fix common/ includes.
11548 (enum agent_op): Fix common/ includes.
11549 * ax-general.c (struct aop_map): Fix common/ includes.
11550 * ax-gdb.c: Fix common/ includes.
11551 * auxv.c: Fix common/ includes.
11552 * auto-load.c: Fix common/ includes.
11553 * arm-tdep.c: Fix common/ includes.
11554 * arch/riscv.c: Fix common/ includes.
11555 * arch/ppc-linux-common.c: Fix common/ includes.
11556 * arch/i386.c: Fix common/ includes.
11557 * arch/arm.c: Fix common/ includes.
11558 * arch/arm-linux.c: Fix common/ includes.
11559 * arch/arm-get-next-pcs.c: Fix common/ includes.
11560 * arch/amd64.c: Fix common/ includes.
11561 * arch/aarch64.c: Fix common/ includes.
11562 * arch/aarch64-insn.c: Fix common/ includes.
11563 * arch-utils.c: Fix common/ includes.
11564 * amd64-windows-tdep.c: Fix common/ includes.
11565 * amd64-tdep.c: Fix common/ includes.
11566 * amd64-sol2-tdep.c: Fix common/ includes.
11567 * amd64-obsd-tdep.c: Fix common/ includes.
11568 * amd64-nbsd-tdep.c: Fix common/ includes.
11569 * amd64-linux-tdep.c: Fix common/ includes.
11570 * amd64-linux-nat.c: Fix common/ includes.
11571 * amd64-fbsd-tdep.c: Fix common/ includes.
11572 * amd64-fbsd-nat.c: Fix common/ includes.
11573 * amd64-dicos-tdep.c: Fix common/ includes.
11574 * amd64-darwin-tdep.c: Fix common/ includes.
11575 * agent.c: Fix common/ includes.
11576 * ada-lang.h: Fix common/ includes.
11577 * ada-lang.c: Fix common/ includes.
11578 * aarch64-tdep.c: Fix common/ includes.
11580 2019-01-25 Tom Tromey <tom@tromey.com>
11582 * common/create-version.sh: Use common/version.h.
11584 2019-01-24 Pedro Alves <palves@redhat.com>
11586 * infrun.c (signal_stop, signal_print, signal_program)
11587 (signal_catch, signal_pass): Now arrays instead of pointers.
11588 (update_signals_program_target, do_target_resume)
11589 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
11590 * linux-nat.c (linux_nat_target::pass_signals)
11591 (linux_nat_target::create_inferior, linux_nat_target::attach):
11593 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
11594 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
11595 * procfs.c (procfs_target::pass_signals): Adjust.
11596 * record-full.c (record_full_target::resume): Adjust.
11597 * remote.c (remote_target::pass_signals)
11598 (remote_target::program_signals): Adjust.
11599 * target-debug.h (target_debug_print_signals): Now takes a
11600 gdb::array_view as parameter. Adjust.
11601 * target.h (target_ops) <pass_signals, program_signals>: Replace
11602 pointer and length parameters with gdb::array_view.
11603 (target_pass_signals, target_program_signals): Likewise.
11604 * target-delegates.c: Regenerate.
11606 2019-01-24 Pedro Alves <palves@redhat.com>
11608 * common/forward-scope-exit.h
11609 (forward_scope_exit::forward_scope_exit): Pass arguments to
11610 m_bind_function directly, instead of creating a std::bind and
11613 2019-01-24 Alan Hayward <alan.hayward@arm.com>
11615 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11616 for static members.
11617 (pass_in_v_vfp_candidate): Likewise.
11619 2019-01-23 Tom Tromey <tom@tromey.com>
11620 Pedro Alves <palves@redhat.com>
11622 * regcache.c (class regcache_invalidator): Remove.
11623 (regcache::raw_write): Use make_scope_exit.
11625 2019-01-23 Tom Tromey <tom@tromey.com>
11627 * ui-out.h (class ui_out_emit_type): Update comment.
11629 2019-01-23 Tom Tromey <tom@tromey.com>
11631 * infrun.c (fetch_inferior_event): Update comment.
11633 2019-01-23 Tom Tromey <tom@tromey.com>
11634 Pedro Alves <palves@redhat.com>
11636 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
11638 (fetch_inferior_event): Use SCOPE_EXIT.
11641 2019-01-23 Tom Tromey <tom@tromey.com>
11642 Pedro Alves <palves@redhat.com>
11644 * infrun.c (disable_thread_events): Delete.
11645 (stop_all_threads): Use SCOPE_EXIT.
11647 2019-01-23 Tom Tromey <tom@tromey.com>
11648 Pedro Alves <palves@redhat.com>
11650 * symfile.c: Include forward-scope-exit.h.
11651 (clear_symtab_users_cleanup): Replace forward declaration with
11652 a FORWARD_SCOPE_EXIT.
11653 (syms_from_objfile_1): Use the forward_scope_exit and
11654 gdb::optional instead of cleanup_function.
11655 (reread_symbols): Use the forward_scope_exit instead of
11657 (clear_symtab_users_cleanup): Remove function.
11659 2019-01-23 Tom Tromey <tom@tromey.com>
11660 Pedro Alves <palves@redhat.com>
11662 * linux-nat.c: Include scope-exit.h.
11663 (cleanup_target_stop): Remove.
11664 (linux_nat_target::static_tracepoint_markers_by_strid): Use
11667 2019-01-23 Tom Tromey <tom@tromey.com>
11668 Pedro Alves <palves@redhat.com>
11670 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
11671 (call_function_by_hand_dummy): Use SCOPE_EXIT.
11673 2019-01-23 Tom Tromey <tom@tromey.com>
11674 Andrew Burgess <andrew.burgess@embecosm.com>
11675 Pedro Alves <palves@redhat.com>
11677 * infrun.c (fetch_inferior_event): Use scope_exit.
11678 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
11679 * top.c (execute_command): Use scope_exit.
11680 * breakpoint.c (bpstat_do_actions): Use scope_exit.
11681 * utils.c (do_bpstat_clear_actions_cleanup)
11682 (make_bpstat_clear_actions_cleanup): Remove.
11684 2019-01-23 Tom Tromey <tom@tromey.com>
11685 Pedro Alves <palves@redhat.com>
11687 * infrun.c: Include "common/scope-exit.h"
11688 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
11689 (wait_for_inferior): Use SCOPE_EXIT.
11690 (fetch_inferior_event): Use scope_exit.
11692 2019-01-23 Tom Tromey <tom@tromey.com>
11693 Pedro Alves <palves@redhat.com>
11695 * breakpoint.c (create_breakpoint): Remove cleanup.
11697 2019-01-23 Tom Tromey <tom@tromey.com>
11698 Andrew Burgess <andrew.burgess@embecosm.com>
11699 Pedro Alves <palves@redhat.com>
11701 2019-01-23 Pedro Alves <palves@redhat.com>
11703 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
11705 2019-01-23 Pedro Alves <palves@redhat.com>
11706 Andrew Burgess <andrew.burgess@embecosm.com>
11708 * gdbthread.h: Include "common/forward-scope-exit.h".
11709 (scoped_finish_thread_state): Redefine custom class in terms of
11710 forward_scope_exit.
11712 2019-01-23 Pedro Alves <palves@redhat.com>
11713 Andrew Burgess <andrew.burgess@embecosm.com>
11715 * common/forward-scope-exit.h: New file.
11717 2019-01-23 Pedro Alves <palves@redhat.com>
11718 Andrew Burgess <andrew.burgess@embecosm.com>
11719 Tom Tromey <tom@tromey.com>
11721 * common/scope-exit.h: New file.
11723 2019-01-23 Pedro Alves <palves@redhat.com>
11725 * common/preprocessor.h (ESC): Rename to ...
11726 (ESC_PARENS): ... this.
11727 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
11728 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
11730 2019-01-23 Tom Tromey <tom@tromey.com>
11732 * language.h (class scoped_switch_to_sym_language_if_auto):
11733 Initialize m_lang in both cases.
11735 2019-01-23 Alan Hayward <alan.hayward@arm.com>
11737 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
11740 2019-01-22 Tom Tromey <tom@tromey.com>
11742 * corelow.c: Do not include sys/file.h.
11744 2019-01-22 Tom Tromey <tom@tromey.com>
11746 * tui/tui-wingeneral.h: Include gdb_curses.h.
11748 2019-01-22 Tom Tromey <tom@tromey.com>
11750 * source-cache.h (class source_cache) <get_source_lines,
11751 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
11753 2019-01-22 Tom Tromey <tom@tromey.com>
11755 * remote-fileio.h (struct remote_target): Declare.
11757 2019-01-22 Tom Tromey <tom@tromey.com>
11759 * python/py-arch.c: Do not include py-ref.h.
11760 * python/py-bpevent.c: Do not include py-ref.h.
11761 * python/py-cmd.c: Do not include py-ref.h.
11762 * python/py-continueevent.c: Do not include py-ref.h.
11763 * python/py-event.h: Do not include py-ref.h.
11764 * python/py-evtregistry.c: Do not include py-ref.h.
11765 * python/py-finishbreakpoint.c: Do not include py-ref.h.
11766 * python/py-frame.c: Do not include py-ref.h.
11767 * python/py-framefilter.c: Do not include py-ref.h.
11768 * python/py-function.c: Do not include py-ref.h.
11769 * python/py-infevents.c: Do not include py-ref.h.
11770 * python/py-linetable.c: Do not include py-ref.h.
11771 * python/py-objfile.c: Do not include py-ref.h.
11772 * python/py-param.c: Do not include py-ref.h.
11773 * python/py-prettyprint.c: Do not include py-ref.h.
11774 * python/py-progspace.c: Do not include py-ref.h.
11775 * python/py-symbol.c: Do not include py-ref.h.
11776 * python/py-symtab.c: Do not include py-ref.h.
11777 * python/py-type.c: Do not include py-ref.h.
11778 * python/py-unwind.c: Do not include py-ref.h.
11779 * python/py-utils.c: Do not include py-ref.h.
11780 * python/py-value.c: Do not include py-ref.h.
11781 * python/py-varobj.c: Do not include py-ref.h.
11782 * python/py-xmethods.c: Do not include py-ref.h.
11783 * python/python.c: Do not include py-ref.h.
11784 * varobj.c: Do not include py-ref.h.
11786 2019-01-22 Tom Tromey <tom@tromey.com>
11788 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
11789 keyword for bcache.
11791 2019-01-22 Tom Tromey <tom@tromey.com>
11793 * compile/compile-cplus-types.c: Remove a comment by #include.
11795 2019-01-22 Tom Tromey <tom@tromey.com>
11797 * compile/gcc-c-plugin.h: Include compile-internal.h.
11799 2019-01-22 Tom Tromey <tom@tromey.com>
11801 * stabsread.c (EXTERN): Do not define.
11802 (symnum, next_symbol_text_func, processing_gcc_compilation)
11803 (within_function, global_sym_chain, global_stabs)
11804 (previous_stab_code, this_object_header_files)
11805 (n_this_object_header_files)
11806 (n_allocated_this_object_header_files): Define.
11807 * stabsread.h (EXTERN): Never define. Use "extern".
11809 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11811 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
11814 2019-01-21 Tom Tromey <tom@tromey.com>
11816 * ui-out.c: Fix includes.
11817 * tui/tui-source.c: Fix includes.
11818 * target.c: Fix includes.
11819 * remote.c: Fix includes.
11820 * regcache.c: Fix includes.
11821 * python/py-block.c: Fix includes.
11822 * printcmd.c: Fix includes.
11823 * or1k-tdep.c: Fix includes.
11824 * mi/mi-main.c: Fix includes.
11825 * m32r-tdep.c: Fix includes.
11826 * csky-tdep.c: Fix includes.
11827 * compile/compile-cplus-types.c: Fix includes.
11828 * cli/cli-interp.c: Fix includes.
11830 2019-01-21 Alan Hayward <alan.hayward@arm.com>
11832 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11835 2019-01-16 Tom Tromey <tom@tromey.com>
11837 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11839 (struct objfile) <msymbols_range>: Move from top level.
11840 <msymbols>: New method.
11841 (class objfile_msymbols): Remove.
11842 * symtab.c (default_collect_symbol_completion_matches_break_on):
11844 * symmisc.c (dump_msymbols): Update.
11845 * stabsread.c (scan_file_globals): Update.
11846 * objc-lang.c (info_selectors_command, info_classes_command)
11847 (find_methods): Update.
11848 * minsyms.c (find_solib_trampoline_target): Update.
11849 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11850 * coffread.c (coff_symfile_read): Update.
11851 * ada-lang.c (ada_lookup_simple_minsym)
11852 (ada_collect_symbol_completion_matches): Update.
11854 2019-01-16 Tom Tromey <tom@tromey.com>
11856 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11857 type. Remove no-argument constructor.
11858 <iterator::operator++>: Simplify.
11860 <end>: Use minimal_symbol_count.
11862 2019-01-16 Tom Tromey <tom@tromey.com>
11864 * objfiles.h (struct objfile) <psymtabs>: New method.
11865 (class objfile_psymtabs): Remove.
11866 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11868 <range>: New method.
11869 (require_partial_symbols): Change return type.
11870 * psymtab.c (require_partial_symbols)
11871 (psym_expand_symtabs_matching): Update.
11872 * mdebugread.c (parse_partial_symbols): Update.
11873 * dbxread.c (dbx_end_psymtab): Update.
11875 2019-01-15 Tom Tromey <tom@tromey.com>
11877 * symtab.c (lookup_objfile_from_block)
11878 (lookup_symbol_in_objfile_symtabs)
11879 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11880 (find_line_symtab, info_sources_command)
11881 (default_collect_symbol_completion_matches_break_on)
11882 (make_source_files_completion_list): Update.
11883 * symmisc.c (print_objfile_statistics, dump_objfile)
11884 (maintenance_print_symbols, maintenance_info_symtabs)
11885 (maintenance_check_symtabs, maintenance_info_line_tables):
11887 * source.c (select_source_symtab)
11888 (forget_cached_source_info_for_objfile): Update.
11889 * objfiles.h (class objfile_compunits): Remove.
11890 (struct objfile) <compunits_range>: New typedef.
11891 (compunits): New method.
11892 * objfiles.c (objfile_relocate1): Update.
11893 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11894 * maint.c (count_symtabs_and_blocks): Update.
11895 * linespec.c (iterate_over_all_matching_symtabs): Update.
11896 * cp-support.c (add_symbol_overload_list_qualified): Update.
11897 * coffread.c (coff_symtab_read): Update.
11898 * ada-lang.c (add_nonlocal_symbols)
11899 (ada_collect_symbol_completion_matches)
11900 (ada_add_global_exceptions): Update.
11902 2019-01-15 Tom Tromey <tom@tromey.com>
11904 * progspace.h (program_space) <objfiles_safe_range>: New
11906 <objfiles_safe>: New method.
11907 * objfiles.h (class all_objfiles_safe): Remove.
11908 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11909 * jit.c (jit_inferior_exit_hook): Update.
11911 2019-01-17 Tom Tromey <tom@tromey.com>
11913 * progspace.h (program_space) <objfiles_range>: New typedef.
11914 <objfiles>: New method.
11915 <objfiles_head>: Rename from objfiles.
11916 (object_files): Update.
11917 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11918 * guile/scm-pretty-print.c
11919 (ppscm_find_pretty_printer_from_objfiles): Update.
11920 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11921 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11923 * python/py-progspace.c (pspy_get_objfiles): Update.
11924 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11926 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11927 (objfpy_lookup_objfile_by_build_id): Update.
11928 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11929 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11931 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11932 (expand_symtab_containing_pc, lookup_objfile_from_block)
11933 (lookup_static_symbol, basic_lookup_transparent_type)
11934 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11935 (find_line_symtab, info_sources_command)
11936 (default_collect_symbol_completion_matches_break_on)
11937 (make_source_files_completion_list, find_main_name): Update.
11938 * symmisc.c (print_symbol_bcache_statistics)
11939 (print_objfile_statistics, maintenance_print_symbols)
11940 (maintenance_print_msymbols, maintenance_print_objfiles)
11941 (maintenance_info_symtabs, maintenance_check_symtabs)
11942 (maintenance_expand_symtabs, maintenance_info_line_tables):
11944 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11945 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11946 (map_overlay_command, unmap_overlay_command)
11947 (simple_overlay_update, expand_symtabs_matching)
11948 (map_symbol_filenames): Update.
11949 * symfile-debug.c (set_debug_symfile): Update.
11950 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11952 * source.c (select_source_symtab, forget_cached_source_info):
11954 * solib.c (solib_read_symbols): Update.
11955 * solib-spu.c (append_ocl_sos): Update.
11956 * psymtab.c (maintenance_print_psymbols)
11957 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11958 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11959 * printcmd.c (info_symbol_command): Update.
11960 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
11962 * objfiles.h (class all_objfiles): Remove.
11963 * objfiles.c (have_partial_symbols, have_full_symbols)
11964 (have_minimal_symbols, qsort_cmp, update_section_map)
11965 (shared_objfile_contains_address_p)
11966 (default_iterate_over_objfiles_in_search_order): Update.
11967 * objc-lang.c (info_selectors_command, info_classes_command)
11968 (find_methods): Update.
11969 * minsyms.c (find_solib_trampoline_target): Update.
11970 * maint.c (maintenance_info_sections)
11971 (maintenance_translate_address, count_symtabs_and_blocks):
11973 * main.c (captured_main_1): Update.
11974 * linux-thread-db.c (try_thread_db_load_from_pdir)
11975 (has_libpthread): Update.
11976 * linespec.c (iterate_over_all_matching_symtabs)
11977 (search_minsyms_for_name): Update.
11978 * jit.c (jit_find_objf_with_entry_addr): Update.
11979 * hppa-tdep.c (find_unwind_entry)
11980 (hppa_lookup_stub_minimal_symbol): Update.
11981 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
11983 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11984 (elf_gnu_ifunc_resolve_by_got): Update.
11985 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
11986 * dwarf-index-write.c (save_gdb_index_command): Update.
11987 * cp-support.c (add_symbol_overload_list_qualified): Update.
11988 * breakpoint.c (create_overlay_event_breakpoint)
11989 (create_longjmp_master_breakpoint)
11990 (create_std_terminate_master_breakpoint)
11991 (create_exception_master_breakpoint): Update.
11992 * blockframe.c (find_pc_partial_function): Update.
11993 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
11994 (ada_collect_symbol_completion_matches)
11995 (ada_add_global_exceptions): Update.
11997 2019-01-17 Tom Tromey <tom@tromey.com>
11999 * solib-target.c (lm_info_target_p): Remove typedef. Don't
12001 (solib_target_parse_libraries): Change return type.
12002 (library_list_start_segment, library_list_start_section)
12003 (library_list_end_library, library_list_start_library); Update.
12004 (solib_target_free_library_list): Remove.
12005 (solib_target_parse_libraries): Remove cleanup. Change return
12007 (solib_target_current_sos): Update.
12009 2019-01-17 Tom Tromey <tromey@bapiya>
12011 * valprint.c: Replace "the the" with "the".
12012 * symtab.c: Replace "the the" with "the".
12013 * solib.c: Replace "the the" with "the".
12014 * solib-dsbt.c: Replace "the the" with "the".
12015 * linespec.c: Replace "the the" with "the".
12016 * dwarf2loc.h: Replace "the the" with "the".
12017 * amd64-windows-tdep.c: Replace "the the" with "the".
12018 * aarch64-tdep.c: Replace "the the" with "the".
12020 2019-01-16 Keith Seitz <keiths@redhat.com>
12023 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12024 <builder>: Rename to ..
12025 <m_builder>: ... this and make private.
12026 (dwarf2_cu::get_builder): New method. Change all users of
12027 `builder' to use this method.
12028 (dwarf2_start_symtab): Move to ...
12029 (dwarf2_cu::start_symtab): ... here. Update all callers
12030 (setup_type_unit_groups): Move to ...
12031 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12033 (dwarf2_cu::reset_builder): New method.
12034 (process_full_compunit, process_full_type_unit): Use
12035 dwarf2_cu::reset_builder.
12036 (follow_die_offset): Record the ancestor CU if it is different
12037 from the followed DIE's CU.
12038 (follow_die_sig_1): Likewise.
12040 2019-01-15 Tom Tromey <tom@tromey.com>
12042 * remote.c (class remote_state) <buf>: Now a char_vector.
12043 <buf_size>: Remove.
12044 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12046 (remote_target::getpkt_or_notif_sane_1)
12047 (remote_target::getpkt_sane)
12048 (remote_target::getpkt_or_notif_sane): Likewise.
12049 (class remote_target) <putpkt>: New overload.
12050 (remote_target::read_frame): Change type of "buf_p". Remove
12051 sizeof_p parameter.
12052 (packet_ok): New overload.
12053 (packet_check_result): New overload.
12056 2019-01-14 Tom Tromey <tom@tromey.com>
12058 * remote-notif.c (handle_notification, remote_notif_ack)
12059 (remote_notif_parse): Make "buf" const.
12060 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12062 (remote_notif_parse, remote_notif_ack, handle_notification):
12064 * remote.c (remote_notif_stop_parse): Make "buf" const.
12065 (remote_target::remote_parse_stop_reply): Make "buf" const.
12066 (remote_notif_stop_ack): Make "buf" const.
12068 2019-01-14 Tom Tromey <tom@tromey.com>
12070 * remote.c (remote_console_output): Make parameter const.
12072 2019-01-14 Tom Tromey <tom@tromey.com>
12074 * target-debug.h (target_debug_print_signals): Constify.
12075 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12076 * procfs.c (procfs_target::pass_signals): Update.
12077 * linux-nat.c (linux_nat_target::pass_signals): Update.
12078 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12079 * target-delegates.c: Rebuild.
12080 * remote.c (remote_target::program_signals): Update.
12081 (remote_target::pass_signals): Update.
12082 * target.c (target_pass_signals): Constify argument.
12083 (target_program_signals): Likewise.
12084 * target.h (struct target_ops) <pass_signals, program_signals>:
12086 (target_pass_signals, target_program_signals): Constify argument.
12088 2019-01-14 Tom Tromey <tom@tromey.com>
12091 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12093 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12095 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12097 * rs6000-tdep.c: Include reggroups.h.
12098 (IS_V_ALIAS_PSEUDOREG): Define.
12099 (rs6000_register_name): Return names for the "vX" aliases.
12100 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12101 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
12102 aliases. Call default_register_reggroup_p for all other
12104 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12106 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12107 Handle "vX" aliases.
12108 (v_alias_pseudo_register_collect): New function.
12109 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12110 (rs6000_gdbarch_init): Initialize "vX" aliases as
12111 pseudo-registers. Restore registration of
12112 rs6000_pseudo_register_reggroup_p with
12113 set_tdesc_pseudo_register_reggroup_p.
12115 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
12117 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
12118 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
12119 set_gdbarch_num_pseudo_regs.
12121 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12123 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
12124 Remove arg prefixname, add do_set and do_show.
12125 Add member functions set_list and show_list.
12126 * cli/cli-style.c (class cli_style_option): Update accordingly.
12127 (style_set_list): Move to file scope.
12128 (style_show_list): Likewise.
12129 (set_style): Call help_list.
12130 (show_style): Call cmd_show_list.
12131 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12132 Update to use the new macro.
12134 2019-10-12 Joel Brobecker <brobecker@adacore.com>
12136 * ada-lang.c (_initialize_ada_language): Expand the help text
12137 for the "catch exception" command.
12139 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12141 * symtab.c (matching_obj_sections): Initialize obj,
12142 declare it closer to its usage.
12144 2019-01-10 Tom Tromey <tom@tromey.com>
12146 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12147 (basic_inf_threads_range): Remove.
12148 (inf_threads_range, inf_non_exited_threads_range)
12149 (safe_inf_threads_range): Use next_adapter.
12151 2019-01-10 Keith Seitz <keiths@redhat.com>
12155 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12156 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12158 2019-01-10 Keith Seitz <keiths@redhat.com>
12162 * dictionary.c (pending_to_vector): Remove.
12163 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12164 Remove _1 suffix, replacing functions of the same name. Update
12166 (dict_create_hashed, dict_create_hashed_expandable)
12167 (dict_create_linear, dict_create_linear_expandable, dict_free)
12168 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12169 Make functions static.
12171 2019-01-10 Keith Seitz <keiths@redhat.com>
12175 * dictionary.h (struct dictionary): Replace declaration with
12177 (dict_create_hashed, dict_create_hashed_expandable)
12178 (dict_create_linear, dict_create_linear_expandable)
12179 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12180 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12181 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12182 taking multidictionary argument.
12183 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12184 * block.h (struct block) <dict>: Change to multidictionary
12185 and rename `multidict'.
12186 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12187 symmisc.c: Update all dictionary references to multidictionary.
12189 2019-01-10 Keith Seitz <keiths@redhat.com>
12193 * dictionary.c: Include unordered_map.
12194 (pending_to_vector): New function.
12195 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12196 Rewrite the non-"_1" functions to take vector instead
12198 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12199 "new" _1 versions of the same name.
12200 (multidictionary): Define.
12201 (std::hash<enum language): New definition.
12202 (collate_pending_symbols_by_language, mdict_create_hashed)
12203 (mdict_create_hashed_expandable, mdict_create_linear)
12204 (mdict_create_linear_expandable, mdict_free)
12205 (find_language_dictionary, create_new_language_dictionary)
12206 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12207 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12208 (mdict_size, mdict_empty): New functions.
12209 * dictionary.h (mdict_iterator): Define.
12211 2019-01-10 Pedro Alves <palves@redhat.com>
12213 * breakpoint.c (read_uploaded_action)
12214 (create_tracepoint_from_upload): Adjust to use
12215 gdb::unique_xmalloc_ptr.
12216 * ctf.c (ctf_write_uploaded_tp):
12217 (SET_ARRAY_FIELD): Use emplace_back.
12218 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
12219 * tracefile-tfile.c (tfile_write_uploaded_tp):
12220 * tracepoint.c (parse_tracepoint_definition): Adjust to use
12221 gdb::unique_xmalloc_ptr.
12222 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
12223 at_string, cond_string, cmd_strings>: Replace char pointers
12224 with gdb::unique_xmalloc_ptr.
12226 2019-01-10 Pedro Alves <palves@redhat.com>
12228 * solib-target.c (library_list_start_library): Don't xstrdup name.
12230 2019-01-10 Pedro Alves <palves@redhat.com>
12232 * mdebugread.c (parse_partial_symbols): Use
12233 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
12235 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12237 * linux-fork.c (scoped_switch_fork_info)
12238 <~scoped_switch_fork_info>: Fix incorrect variable name.
12240 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12242 * linux-fork.c (scoped_switch_fork_info)
12243 <scoped_switch_fork_info>: Make explicit.
12244 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12246 2019-01-10 Tom Tromey <tom@tromey.com>
12248 * objfiles.h (objfile::reset_psymtabs): Update.
12249 * objfiles.c (objfile::objfile): Update.
12250 * psymtab.h (psymtab_storage::obstack): Update.
12251 (psymtab_storage::m_obstack): Use gdb::optional.
12252 (class psymtab_storage): Update comment. Remove objfile
12254 * psymtab.c (psymtab_storage::psymtab_storage): Update.
12256 2019-01-10 Tom Tromey <tom@tromey.com>
12258 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
12259 <free_psymtabs>: Now private.
12260 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
12261 (allocate_psymtab): Use new method.
12263 2019-01-10 Tom Tromey <tom@tromey.com>
12265 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
12266 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
12267 * mdebugread.c (parse_partial_symbols): Use
12268 allocate_dependencies.
12269 * dwarf2read.c (dwarf2_create_include_psymtab): Use
12270 allocate_dependencies.
12271 (process_psymtab_comp_unit_reader)
12272 (build_type_psymtab_dependencies): Likewise.
12273 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12275 2019-01-10 Tom Tromey <tom@tromey.com>
12277 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12278 PSYMBOL_SET_LANGUAGE.
12279 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
12281 2019-01-10 Tom Tromey <tom@tromey.com>
12283 * psymtab.h (psymtab_storage::obstack): New method.
12284 <m_obstack>: Rename from obstack; now private.
12285 * psymtab.c (psymtab_storage): Update.
12286 * dwarf2read.c (create_addrmap_from_index)
12287 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
12290 2019-01-10 Tom Tromey <tom@tromey.com>
12292 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
12293 * objfiles.h (objfile::reset_psymtabs): New method.
12295 2019-01-10 Tom Tromey <tom@tromey.com>
12297 * symmisc.c (print_symbol_bcache_statistics): Update.
12298 (print_objfile_statistics): Update.
12299 * symfile.c (reread_symbols): Update.
12300 * psymtab.h (class psymtab_storage): New.
12301 * psymtab.c (psymtab_storage): New constructor.
12302 (~psymtab_storage): New destructor.
12303 (require_partial_symbols): Update.
12304 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12305 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12306 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12307 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12308 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12309 (start_psymtab_common, end_psymtab_common)
12310 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12311 (allocate_psymtab): Update.
12312 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12314 (dump_psymtab_addrmap, maintenance_print_psymbols)
12315 (maintenance_check_psymtabs): Update.
12316 (class objfile_psymtabs): Move to objfiles.h.
12317 * psympriv.h (discard_psymtab): Now inline.
12318 (psymtab_discarder::psymtab_discarder): Update.
12319 (psymtab_discarder::~psymtab_discarder): Update.
12320 (ALL_OBJFILE_PSYMTABS): Rewrite.
12321 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12322 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12324 <partial_symtabs>: New field.
12325 (class objfile_psymtabs): Move from psymtab.h. Update.
12326 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12328 (objfile::~objfile): Don't destroy psymbol_cache.
12329 * mdebugread.c (parse_partial_symbols): Update.
12330 * dwarf2read.c (create_addrmap_from_index)
12331 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12332 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12333 (add_partial_subprogram, dwarf2_ranges_read): Update.
12334 * dwarf-index-write.c (write_address_map)
12335 (write_one_signatured_type, recursively_write_psymbols)
12336 (class debug_names, class debug_names, write_psymtabs_to_index):
12339 2019-01-10 Tom Tromey <tom@tromey.com>
12341 * symtab.h (SYMBOL_SET_NAMES): Update.
12342 (symbol_set_names): Update.
12343 (MSYMBOL_SET_NAMES): Update.
12344 * symtab.c (symbol_set_names): Change argument to be an
12345 objfile_per_bfd_storage.
12346 * psymtab.c (add_psymbol_to_bcache): Update.
12347 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
12349 2019-01-10 Tom Tromey <tom@tromey.com>
12351 * symtab.c (create_demangled_names_hash): Change argument to be an
12352 objfile_per_bfd_storage.
12353 (symbol_set_names): Update.
12355 2019-01-10 Tom Tromey <tom@tromey.com>
12357 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12359 * psymtab.c (init_psymbol_list): Do nothing if already called.
12360 * psympriv.h (init_psymbol_list): Add comment.
12361 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12363 * dbxread.c (dbx_symfile_read): Unconditionally call
12366 2019-01-10 Tom Tromey <tom@tromey.com>
12368 * xcoffread.c (scan_xcoff_symtab): Update.
12369 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12371 * mdebugread.c (parse_partial_symbols)
12372 (handle_psymbol_enumerators): Update.
12373 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12374 * dbxread.c (read_dbx_symtab): Update.
12375 * psympriv.h (psymbol_placement): New enum.
12376 (add_psymbol_to_list): Update.
12378 2019-01-10 Tom Tromey <tom@tromey.com>
12380 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12381 static_psymbols parameters.
12382 (scan_xcoff_symtab): Update.
12383 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12384 static_psymbols parameters.
12385 * psympriv.h (start_psymtab_common): Update.
12386 * mdebugread.c (parse_partial_symbols): Update.
12387 * dwarf2read.c (create_partial_symtab): Update.
12388 * dbxread.c (read_dbx_symtab): Update.
12389 (start_psymtab): Remove global_psymbols and static_psymbols
12392 2019-01-10 Tom Tromey <tom@tromey.com>
12394 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12395 * psymtab.c (allocate_psymtab): Add comment.
12396 * psympriv.h (allocate_psymtab): Add comment.
12397 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12399 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12401 2019-01-10 Tom Tromey <tom@tromey.com>
12403 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12405 * mipsread.c: Include mdebugread.h.
12406 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12408 * elfread.c: Include mdebugread.h.
12410 2019-01-09 Tom Tromey <tom@tromey.com>
12412 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12413 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12414 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12415 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12416 (psym_lookup_symbol, psym_find_last_source_symtab)
12417 (psym_forget_cached_source_info, psym_print_stats)
12418 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12419 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12420 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12421 (psym_find_compunit_symtab_by_address)
12422 (maintenance_print_psymbols, maintenance_info_psymtabs)
12423 (maintenance_check_psymtabs): Use ranged for.
12424 * psymtab.h (class objfile_psymtabs): New.
12425 (require_partial_symbols): Return objfile_psymtabs.
12426 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12428 2019-01-09 Tom Tromey <tom@tromey.com>
12430 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12431 (find_pc_mapped_section, list_overlays_command)
12432 (map_overlay_command, unmap_overlay_command)
12433 (simple_overlay_update): Use all_objfiles.
12434 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12435 * printcmd.c (info_symbol_command): Use all_objfiles.
12436 * objfiles.h (ALL_OBJSECTIONS): Remove.
12437 * maint.c (maintenance_translate_address): Use all_objfiles.
12438 * gcore.c (gcore_create_callback): Use all_objfiles.
12439 (objfile_find_memory_regions): Likewise.
12441 2019-01-09 Tom Tromey <tom@tromey.com>
12443 * symtab.c (find_line_symtab, info_sources_command)
12444 (make_source_files_completion_list): Use objfile_compunits.
12445 * source.c (select_source_symtab): Use objfile_compunits.
12446 * objfiles.h (struct objfile): Update comment.
12447 (ALL_OBJFILES): Remove.
12448 (ALL_FILETABS): Remove.
12449 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12452 2019-01-09 Tom Tromey <tom@tromey.com>
12454 * symmisc.c (print_objfile_statistics, dump_objfile)
12455 (maintenance_print_symbols): Use compunit_filetabs.
12456 * source.c (forget_cached_source_info_for_objfile): Use
12458 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12459 (ALL_FILETABS): Use compunit_filetabs.
12460 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12461 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12463 2019-01-09 Tom Tromey <tom@tromey.com>
12465 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12466 (compunit_filetabs): New.
12467 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12469 (info_sources_command, make_source_files_completion_list): Remove
12471 * symmisc.c (print_objfile_statistics, dump_objfile)
12472 (maintenance_print_symbols): Remove declaration.
12473 (maintenance_info_symtabs): Use compunit_filetabs.
12474 (maintenance_info_line_tables): Likewise.
12475 * source.c (select_source_symtab): Change local variable name.
12476 (forget_cached_source_info_for_objfile): Remove declaration.
12477 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12478 * objfiles.c (objfile_relocate1): Remove declaration.
12479 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12481 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12482 * coffread.c (coff_symtab_read): Remove declaration.
12483 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12486 2019-01-09 Tom Tromey <tom@tromey.com>
12488 * symtab.c (lookup_objfile_from_block)
12489 (find_pc_sect_compunit_symtab, search_symbols)
12490 (default_collect_symbol_completion_matches_break_on): Use
12492 * objfiles.h (ALL_COMPUNITS): Remove.
12493 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
12494 * cp-support.c (add_symbol_overload_list_qualified): Use
12496 * ada-lang.c (ada_collect_symbol_completion_matches)
12497 (ada_add_global_exceptions): Use objfile_compunits.
12499 2019-01-09 Tom Tromey <tom@tromey.com>
12501 * source.c (select_source_symtab)
12502 (forget_cached_source_info_for_objfile): Remove declaration.
12503 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12505 * maint.c (count_symtabs_and_blocks): Remove declaration.
12506 * cp-support.c (add_symbol_overload_list_qualified): Remove
12508 * coffread.c (coff_symtab_read): Remove declaration.
12509 * symtab.c (lookup_symbol_in_objfile_symtabs)
12510 (basic_lookup_transparent_type_1): Use objfile_compunits.
12511 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
12512 (info_sources_command, search_symbols)
12513 (default_collect_symbol_completion_matches_break_on)
12514 (make_source_files_completion_list): Remove declaration.
12515 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
12516 (ada_collect_symbol_completion_matches)
12517 (ada_add_global_exceptions): Remove declaration.
12518 * linespec.c (iterate_over_all_matching_symtabs): Use
12520 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
12521 (class objfile_compunits): New.
12522 (ALL_COMPUNITS): Use objfile_compunits.
12523 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
12524 (maintenance_check_symtabs, maintenance_info_line_tables): Use
12526 * objfiles.c (objfile_relocate1): Use objfile_compunits.
12528 2019-01-09 Tom Tromey <tom@tromey.com>
12530 * symtab.c (search_symbols)
12531 (default_collect_symbol_completion_matches_break_on): Use
12533 * ada-lang.c (ada_lookup_simple_minsym)
12534 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
12535 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
12536 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
12538 * coffread.c (coff_symfile_read): Use objfile_msymbols.
12539 * symmisc.c (dump_msymbols): Use objfile_msymbols.
12540 * objc-lang.c (find_methods): Use objfile_msymbols.
12541 (info_selectors_command, info_classes_command): Likewise.
12542 * stabsread.c (scan_file_globals): Use objfile_msymbols.
12543 * objfiles.h (class objfile_msymbols): New.
12544 (ALL_OBJFILE_MSYMBOLS): Remove.
12545 (ALL_MSYMBOLS): Remove.
12547 2019-01-09 Tom Tromey <tom@tromey.com>
12549 * common/next-iterator.h (next_adapter): Add Iterator template
12551 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
12552 (class all_objfiles_safe): New.
12553 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
12554 * objfiles.c (put_objfile_before): Update comment.
12555 (add_separate_debug_objfile): Likewise.
12556 (free_all_objfiles): Use all_objfiles_safe.
12557 (objfile_purge_solibs): Likewise.
12559 2019-01-09 Tom Tromey <tom@tromey.com>
12561 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12562 (expand_symtab_containing_pc, lookup_static_symbol)
12563 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
12564 (find_symbol_at_address, find_line_symtab, find_main_name): Use
12566 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
12567 * breakpoint.c (create_overlay_event_breakpoint)
12568 (create_longjmp_master_breakpoint)
12569 (create_std_terminate_master_breakpoint)
12570 (create_exception_master_breakpoint): Use all_objfiles.
12571 * linux-thread-db.c (try_thread_db_load_from_pdir)
12572 (has_libpthread): Use all_objfiles.
12573 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
12574 * linespec.c (iterate_over_all_matching_symtabs)
12575 (search_minsyms_for_name): Use all_objfiles.
12576 * maint.c (maintenance_info_sections): Use all_objfiles.
12577 * main.c (captured_main_1): Use all_objfiles.
12578 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
12579 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
12580 * guile/scm-pretty-print.c
12581 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
12582 * solib-spu.c (append_ocl_sos): Use all_objfiles.
12583 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
12584 (maintenance_print_msymbols): Use all_objfiles.
12585 * source.c (select_source_symtab): Use all_objfiles.
12586 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
12587 * symfile.c (remove_symbol_file_command)
12588 (expand_symtabs_matching, map_symbol_filenames): Use
12590 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
12592 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
12593 * objc-lang.c (find_methods): Use all_objfiles.
12594 * objfiles.c (have_partial_symbols, have_full_symbols)
12595 (have_minimal_symbols, qsort_cmp)
12596 (default_iterate_over_objfiles_in_search_order): Use
12598 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
12599 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
12600 (maintenance_check_psymtabs): Use all_objfiles.
12601 (ALL_PSYMTABS): Remove.
12602 * compile/compile-object-run.c (do_module_cleanup): Use
12604 * blockframe.c (find_pc_partial_function): Use all_objfiles.
12605 * cp-support.c (add_symbol_overload_list_qualified): Use
12607 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12609 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
12610 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
12612 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12613 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
12614 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12616 * solib.c (solib_read_symbols): Use all_objfiles
12618 2019-01-09 Tom Tromey <tom@tromey.com>
12620 * probe.c (parse_probes_in_pspace): Use all_objfiles.
12621 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
12623 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
12624 * symmisc.c (print_symbol_bcache_statistics)
12625 (print_objfile_statistics, maintenance_print_objfiles)
12626 (maintenance_info_symtabs, maintenance_check_symtabs)
12627 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
12629 * source.c (forget_cached_source_info): Use all_objfiles.
12630 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
12631 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12632 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
12633 * objfiles.c (update_section_map): Use all_objfiles.
12634 (shared_objfile_contains_address_p): Likewise.
12635 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
12636 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
12638 2019-01-09 Tom Tromey <tom@tromey.com>
12640 * common/next-iterator.h: New file.
12641 * objfiles.h (class all_objfiles): New.
12642 (struct objfile_iterator): New.
12644 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12646 * NEWS: Move the description of the changed "frame", "select-frame",
12647 and "info frame" commands to the Changed commands section.
12649 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
12651 * gdbtypes.c (check_stub_method_group): Remove handling of old
12653 * linespec.c (find_methods): Likewise.
12654 * stabsread.c (read_member_functions): Likewise.
12655 * valops.c (search_struct_method): Likewise.
12656 (value_struct_elt_for_reference): Likewise.
12657 * NEWS: Mention this change.
12659 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12661 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
12662 print_source_lines.
12663 * source.c (print_source_lines_base): Update line number check.
12664 (print_source_lines): New function.
12665 (source_lines_range::source_lines_range): New function.
12666 * source.h (class source_lines_range): New class.
12667 (print_source_lines): New declaration.
12669 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12671 * linespec.c (linespec_state_destructor): Free self->canonical_names.
12673 2019-01-08 Tom Tromey <tom@tromey.com>
12674 Simon Marchi <simon.marchi@ericsson.com>
12677 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
12678 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
12679 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12680 * f-exp.y (DOLLAR_VARIABLE): Likewise.
12681 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
12682 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12684 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12686 * source.c (select_source_symtab): Move header comment to
12687 declaration in source.h.
12688 (forget_cached_source_info_for_objfile): Likewise.
12689 (forget_cached_source_info): Likewise.
12690 (identify_source_line): Likewise.
12691 * source.h (identify_source_line): Move declaration from symtab.h
12692 and add comment from source.c
12693 (print_source_lines): Likewise.
12694 (forget_cached_source_info_for_objfile): Likewise.
12695 (forget_cached_source_info): Likewise.
12696 (select_source_symtab): Likewise.
12697 (enum print_source_lines_flag): Move definition from symtab.h.
12698 * symtab.h (identify_source_line): Move declaration to source.h.
12699 (print_source_lines): Likewise.
12700 (forget_cached_source_info_for_objfile): Likewise.
12701 (forget_cached_source_info): Likewise.
12702 (select_source_symtab): Likewise.
12703 (enum print_source_lines_flag): Move definition to source.h.
12704 * tui/tui-hooks.c: Add 'source.h' include.
12706 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12708 * source.c (print_source_lines_base): Handle requests to print
12709 reverse line number sequences, and guard against empty lines
12712 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12714 * source.c (print_source_lines_base): Fix skip of '\r' if next
12717 2019-01-06 Tom Tromey <tom@tromey.com>
12719 * c-exp.y (struct c_parse_state) <macro_original_text,
12720 expansion_obstack>: New member.
12721 (macro_original_text, expansion_obstack): Remove globals.
12722 (scan_macro_expansion, scanning_macro_expansion)
12723 (finished_macro_expansion): Update.
12724 (scan_macro_cleanup): Remove.
12725 (yylex, c_parse): Update.
12727 2019-01-06 Tom Tromey <tom@tromey.com>
12729 * c-exp.y (struct c_parse_state) <strings>: New member.
12730 (operator_stoken): Update.
12732 2019-01-06 Tom Tromey <tom@tromey.com>
12734 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
12735 (union type_stack_elt) <typelist_val>: Now a pointer to
12737 (type_stack_cleanup): Don't declare.
12738 (push_typelist): Update.
12739 * parse.c (pop_typelist): Return a std::vector.
12740 (push_typelist): Take a std::vector.
12741 (follow_types): Update. Do not free args.
12742 (type_stack_cleanup): Remove.
12743 * c-exp.y (struct c_parse_state): New.
12744 (cpstate): New global.
12745 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
12746 (nonempty_typelist): Update.
12747 (func_mod): Create a new vector.
12748 (c_parse): Create a c_parse_state.
12749 (check_parameter_typelist): Do not delete params.
12750 (function_method): Update. Do not delete type_list.
12752 2019-01-06 Tom Tromey <tom@tromey.com>
12755 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
12757 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
12758 (print_return_value): Likewise.
12760 2019-01-05 Tom Tromey <tom@tromey.com>
12762 * contrib/cleanup_check.py: Remove.
12763 * contrib/gcc-with-excheck: Remove.
12764 * contrib/exsummary.py: Remove.
12765 * contrib/excheck.py: Remove.
12767 2019-01-05 Joel Brobecker <brobecker@adacore.com>
12769 * thread.c (delete_thread_1): Add gdb_assert that THR is not
12770 NULL. Initialize tpprev to NULL instead of assigning it
12771 to NULL on the next statement.
12772 * windows-nat.c (windows_delete_thread): Remove check for
12773 main_thread_id before printing thread exit notifications.
12774 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
12775 Remove thread ID check against main_thread_id.
12776 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
12777 windows_delete_thread.
12778 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
12780 2019-01-04 Tom Tromey <tom@tromey.com>
12782 * compile/compile.c (_initialize_compile): Use upper case for
12783 metasyntactic variables.
12784 * symmisc.c (_initialize_symmisc): Use upper case for
12785 metasyntactic variables.
12786 * psymtab.c (_initialize_psymtab): Use upper case for
12787 metasyntactic variables.
12788 * demangle.c (demangle_command): Use upper case for metasyntactic
12790 (_initialize_demangler): Likewise.
12791 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
12794 2019-01-03 Tom Tromey <tom@tromey.com>
12796 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
12798 2019-01-03 Tom Tromey <tom@tromey.com>
12800 * python/py-symtab.c (salpy_str): Update.
12801 (struct salpy_sal_object) <symtab>: Now a PyObject.
12802 (salpy_dealloc): Update.
12803 (del_objfile_sal): Use gdbpy_ref.
12805 2019-01-03 Tom Tromey <tom@tromey.com>
12807 * python/py-type.c (convert_field): Use new_reference. Return
12809 (make_fielditem): Return gdbpy_ref.
12810 (typy_fields): Update.
12811 (typy_getitem): Update.
12812 (field_name): Return gdbpy_ref. Use new_reference.
12813 (typy_iterator_iternext): Update.
12815 2019-01-03 Tom Tromey <tom@tromey.com>
12817 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
12819 2019-01-03 Tom Tromey <tom@tromey.com>
12821 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
12822 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
12823 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
12824 (pspy_set_frame_filters, pspy_set_frame_unwinders)
12825 (pspy_set_type_printers): Likewise.
12826 * python/py-function.c (fnpy_init): Use gdbpy_ref.
12827 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
12828 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
12829 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
12830 (objfpy_set_type_printers): Likewise.
12832 2019-01-03 Tom Tromey <tom@tromey.com>
12834 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12835 (gdbpy_print_stack): Use gdbpy_err_fetch.
12836 * python/python-internal.h (class gdbpy_err_fetch): New class.
12837 (class gdbpy_enter) <m_error_type, m_error_value,
12838 m_error_traceback>: Remove.
12839 <m_error>: New member.
12840 (gdbpy_exception_to_string): Don't declare.
12841 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12842 * python/py-value.c (convert_value_from_python): Use
12844 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12845 gdbpy_exception_to_string.
12846 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12847 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12850 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12852 * linux-nat.c (delete_lwp_cleanup): Delete.
12853 (struct lwp_deleter): New struct.
12854 (lwp_info_up): New typedef.
12855 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12858 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12860 * linux-fork.c (class scoped_switch_fork_info): New class.
12861 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12863 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12865 * valops.c (find_overload_match): Remove use of null_cleanup, and
12866 calls to do_cleanups.
12868 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12870 * compile/compile-cplus-types.c
12871 (compile_cplus_instance::decl_name): Handle changes to
12873 * cp-support.c (cp_func_name): Update header comment, update
12875 * cp-support.h (cp_func_name): Update return type in declaration.
12876 * valops.c (find_overload_match): Move temp_func local to top
12877 level of function and change its type. Use temp_func to hold and
12878 delete temporary string obtained from cp_func_name.
12880 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12882 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12883 gdb::char_vector, remove cleanup, and update uses of `msg`.
12885 2019-01-03 Jim Wilson <jimw@sifive.com>
12887 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12889 2019-01-02 Tom Tromey <tom@tromey.com>
12891 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12892 (tdesc_parse_xml): Remove cleanups.
12893 * target-descriptions.h (make_cleanup_free_target_description):
12895 (target_desc_deleter): New struct.
12896 (target_desc_up): New typedef.
12897 * target-descriptions.c (target_desc_deleter::operator()): Rename
12898 from free_target_description.
12899 (make_cleanup_free_target_description): Remove.
12901 2019-01-02 Tom Tromey <tom@tromey.com>
12903 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12904 constructor, destructor.
12905 (linespec_parser): Remove typedef.
12906 (~linespec_parser): Rename from linespec_parser_delete.
12907 (linespec_lex_to_end, linespec_complete_label)
12908 (linespec_complete): Update.
12909 (decode_line_full): Remove cleanups.
12910 (decode_line_1): Update.
12912 2019-01-02 Tom Tromey <tom@tromey.com>
12914 * python/python-internal.h (inferior_to_inferior_object): Change
12916 * python/py-exitedevent.c (create_exited_event_object): Update.
12917 * python/py-inferior.c (inferior_to_inferior_object): Return
12919 (python_new_inferior, python_inferior_deleted)
12920 (thread_to_thread_object, delete_thread_object)
12921 (build_inferior_list, gdbpy_selected_inferior): Update.
12922 * python/py-infthread.c (create_thread_object): Update. Also fail
12923 if inferior_to_inferior_object fails.
12925 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12927 * inferior.h (class inferior) <displaced_step_state>: New field.
12928 * infrun.h (struct displaced_step_state): Move here from
12929 infrun.c. Initialize fields, add constructor.
12930 <inf>: Remove field.
12931 <reset>: New method.
12932 * infrun.c (struct displaced_step_inferior_state): Move to
12934 (displaced_step_inferior_states): Remove.
12935 (get_displaced_stepping_state): Adust.
12936 (displaced_step_in_progress_any_inferior): Adjust.
12937 (displaced_step_in_progress_thread): Adjust.
12938 (displaced_step_in_progress): Adjust.
12939 (add_displaced_stepping_state): Remove.
12940 (get_displaced_step_closure_by_addr): Adjust.
12941 (remove_displaced_stepping_state): Remove.
12942 (infrun_inferior_exit): Call displaced_step_state.reset.
12943 (use_displaced_stepping): Don't check for NULL.
12944 (displaced_step_prepare_throw): Call
12945 get_displaced_stepping_state.
12946 (displaced_step_fixup): Don't check for NULL.
12947 (prepare_for_detach): Don't check for NULL.
12949 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12951 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12952 in case of call that did not complete.
12954 2019-01-02 Andrey Utkin <autkin@undo.io>
12956 * symfile.c (find_separate_debug_file): Fix search of debug files for
12959 2019-01-02 Tom Tromey <tom@tromey.com>
12961 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
12963 * python/py-frame.c (frapy_older): Remove cast.
12964 (frapy_newer): Likewise.
12965 * python/py-breakpoint.c (local_setattro): Remove cast.
12966 * python/py-arch.c (archpy_name): Remove local variable.
12967 * python/py-type.c (gdbpy_lookup_type): Remove cast.
12969 2019-01-02 Joel Brobecker <brobecker@adacore.com>
12971 * unittests/basic_string_view/element_access/char/empty.cc:
12972 Fix year range in copyright header.
12974 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
12976 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
12978 <operator==>: Update with for removed field.
12980 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
12981 <isa_features>: ...this.
12982 <abi_features>: New field.
12983 (riscv_isa_flen): Update comment.
12984 (riscv_abi_xlen): New declaration.
12985 (riscv_abi_flen): New declaration.
12986 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
12988 (riscv_abi_xlen): New function.
12989 (riscv_isa_flen): Update to get answer from isa_features.
12990 (riscv_abi_flen): New function.
12991 (riscv_has_fp_abi): Update to get answer from abi_features.
12992 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
12994 (riscv_call_info) <xlen, flen>: Update comment.
12995 (riscv_call_arg_struct): Remove invalid assertions
12996 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
12998 (riscv_gdbarch_init): Gather isa features and abi features
12999 separately, ensure both match on the gdbarch when reusing an old
13000 gdbarch. Relax an error check to allow 32-bit abi float to run on
13001 a target with 64-bit float hardware.
13003 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13005 * source.c (search_command_helper): Stop reverse search
13006 when line 1 has been searched.
13008 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13010 * record-full.c (record_full_base_target::close): Rewrite
13011 record_full_core_buf_list free logic.
13013 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13015 * break-catch-syscall.c (print_one_catch_syscall): xfree
13018 2019-01-01 Joel Brobecker <brobecker@adacore.com>
13020 * top.c (print_gdb_version): Update Copyright year in version
13023 2019-01-01 Joel Brobecker <brobecker@adacore.com>
13025 Update copyright year range in all GDB files.
13027 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
13029 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
13031 For older changes see ChangeLog-2018.
13037 version-control: never