1 2019-09-26 Tom Tromey <tom@tromey.com>
3 * utils.h (initialize_utils): Don't declare.
4 * top.c (gdb_init): Don't call initialize_utils.
5 * utils.c (initialize_utils): Remove. Move contents...
6 (_initialize_utils): ... here.
8 2019-09-25 Tom Tromey <tom@tromey.com>
10 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
11 * utils.h (make_hex_string): Don't declare.
12 * utils.c (make_hex_string): Remove.
14 2019-09-24 Tom de Vries <tdevries@suse.de>
17 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
18 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
20 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
22 * NEWS: Mention new simulator port for PRU.
24 2019-09-23 Christian Biesinger <cbiesinger@google.com>
26 * ada-exp.y (write_object_remaining): Update.
27 * ada-lang.c (ada_decode): Return a std::string instead of a char*
28 and eliminate the static buffer.
29 (ada_decode_symbol): Update.
30 (ada_la_decode): Update.
31 (ada_sniff_from_mangled_name): Update.
32 (is_valid_name_for_wild_match): Update.
33 (ada_lookup_name_info::matches): Update and simplify.
34 (name_matches_regex): Update.
35 (ada_add_global_exceptions): Update.
36 * ada-lang.h (ada_decode): Update signature.
37 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
38 * dwarf-index-write.c (debug_names::insert): Update.
40 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
42 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
45 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
47 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
48 Change "nonzero" to "true" in documentation.
50 2019-09-20 Christian Biesinger <cbiesinger@google.com>
52 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
53 (_initialize_darwin_solib): Don't set
54 darwin_so_ops.lookup_lib_global_symbol.
55 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
56 set_gdbarch_iterate_over_objfiles_in_search_order.
57 (elf_lookup_lib_symbol): Rename to...
58 (svr4_iterate_over_objfiles_in_search_order): this, and update
60 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
61 * solib.c (solib_global_lookup): Remove.
62 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
63 (solib_global_lookup): Remove.
64 * symtab.c (lookup_global_or_static_symbol): Remove call to
67 2019-09-20 Joel Brobecker <brobecker@adacore.com>
69 * NEWS: Move entries about default MI version now being
70 version 3, and about the GDB/MI fix for multi-location
71 breakpoints to the "since GDB 8.3" section.
73 2019-09-20 Joel Brobecker <brobecker@adacore.com>
77 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
79 * NEWS: Mention that Cell/B.E. debugging support was removed.
80 * MAINTAINERS: Remove spu target.
82 * config/djgpp/fnchange.lst: Remove entries for removed files.
84 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
85 spu-multiarch.o, and spu-tdep.o.
86 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
87 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
88 spu-multiarch.c, and spu-tdep.c.
89 * spu-linux-nat.c: Remove file.
90 * spu-multiarch.c: Remove file.
91 * spu-tdep.c: Remove file.
92 * spu-tdep.h: Remove file.
93 * solib-spu.c: Remove file.
94 * solib-spu.h: Remove file.
96 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
97 * configure.nat (spu-linux): Remove.
98 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
99 solib-multiarch.o from gdb_target_obs.
102 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
104 (ppc_linux_no_features): Update.
105 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
107 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
108 (tdesc_powerpc_cell64l): Likewise.
109 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
110 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
112 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
113 Do not include "features/rs6000/powerpc-cell32l.c" or
114 "features/rs6000/powerpc-cell64l.c".
115 (ppc_linux_spu_section): Remove.
116 (ppc_linux_core_read_description): Remove Cell/B.E. support.
117 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
118 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
119 (ppc_linux_spe_context_lookup): Remove.
120 (ppc_linux_spe_context_inferior_created): Remove.
121 (ppc_linux_spe_context_solib_loaded): Remove.
122 (ppc_linux_spe_context_solib_unloaded): Remove.
123 (ppc_linux_spe_context): Remove.
124 (struct ppu2spu_cache): Remove.
125 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
126 (struct ppu2spu_data): Remove.
127 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
128 ppu2spu_unwind): Remove.
129 (ppc_linux_init_abi): Remove Cell/B.E. support.
130 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
132 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
133 (rs6000/powerpc-cell64l-expedite): Likewise
134 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
135 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
136 rs6000/powerpc-cell64l.xml.
137 * features/rs6000/powerpc-cell32l.xml: Remove.
138 * features/rs6000/powerpc-cell64l.xml: Likewise.
139 * features/rs6000/powerpc-cell32l.c: Remove generated file.
140 * features/rs6000/powerpc-cell64l.c: Likewise.
141 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
142 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
143 * regformats/reg-spu.dat: Remove.
145 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
146 * corelow.c (struct spuid_list): Remove.
147 (add_to_spuid_list): Remove.
148 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
149 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
150 (remote_protocol_features): Remove associated entries.
151 (_initialize_remote): No longer initialize them.
152 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
153 * linux-nat.c (SPUFS_MAGIC): Remove.
154 (linux_proc_xfer_spu): Remove.
155 (spu_enumerate_spu_ids): Remove.
156 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
157 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
158 (linux_make_corefile_notes): No longer call it.
160 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
161 (cooked_write_test): Likewise.
163 2019-09-20 Tom Tromey <tom@tromey.com>
165 * NEWS: Mention case-sensitivity of TUI commands.
166 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
167 (tui_set_win_height_command, parse_scrolling_args): Likewise.
168 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
170 2019-09-20 Tom Tromey <tom@tromey.com>
172 * tui/tui-source.c (tui_source_window::set_contents): Use
174 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
177 2019-09-20 Tom Tromey <tom@tromey.com>
179 * tui/tui-data.c: Remove separator comments.
180 * tui/tui-layout.c: Remove separator comments.
181 * tui/tui-win.c: Remove separator comments.
182 * tui/tui-wingeneral.c: Remove separator comments.
184 2019-09-20 Tom Tromey <tom@tromey.com>
186 * tui/tui.h (strcat_to_buf): Don't declare.
187 * tui/tui.c (strcat_to_buf): Remove.
189 2019-09-20 Tom Tromey <tom@tromey.com>
191 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
193 * tui/tui-source.c (tui_source_window::set_contents)
194 (tui_source_window::location_matches_p)
195 (tui_source_window::maybe_update): Update.
197 2019-09-20 Tom Tromey <tom@tromey.com>
199 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
201 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
203 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
204 (tui_data_window::line_from_reg_element_no)
205 (tui_data_window::first_reg_element_no_inline)
206 (tui_data_window::show_registers)
207 (tui_data_window::show_register_group)
208 (tui_data_window::display_registers_from)
209 (tui_data_window::display_registers_from_line)
210 (tui_data_window::first_data_item_displayed)
211 (tui_data_window::delete_data_content_windows)
212 (tui_data_window::erase_data_content)
213 (tui_data_window::do_scroll_vertical)
214 (tui_data_window::refresh_window)
215 (tui_data_window::check_register_values): Update.
217 2019-09-20 Tom Tromey <tom@tromey.com>
219 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
220 (struct tui_locator_window) <full_name, proc_name>: Now
222 * tui/tui-stack.c (tui_locator_window::make_status_line)
223 (tui_locator_window::set_locator_fullname)
224 (tui_locator_window::set_locator_info): Update.
225 * tui/tui-source.c (tui_source_window::set_contents)
226 (tui_source_window::showing_source_p): Update.
228 2019-09-20 Tom Tromey <tom@tromey.com>
230 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
231 Don't call tui_locator_win_info_ptr.
233 2019-09-20 Tom Tromey <tom@tromey.com>
235 * tui/tui-win.c (tui_resize_all): Don't call refresh.
237 2019-09-20 Tom Tromey <tom@tromey.com>
239 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
241 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
242 * tui/tui-layout.c (show_source_disasm_command, show_data)
243 (show_source_or_disasm_and_command): Use 1 as height for locator.
245 2019-09-20 Tom Tromey <tom@tromey.com>
247 * tui/tui.c (tui_enable): Update.
248 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
250 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
252 * tui/tui-data.c (win_resized): Now bool.
253 (tui_win_resized): Return bool.
254 (tui_set_win_resized_to): Accept a bool.
256 2019-09-20 Tom Tromey <tom@tromey.com>
258 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
259 Change type of "refresh_values_only".
260 * tui/tui-regs.c (tui_data_window::show_register_group): Change
261 type of "refresh_values_only".
263 2019-09-20 Tom Tromey <tom@tromey.com>
265 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
267 (tui_disassemble): Add "pos" parameter.
268 (tui_disasm_window::set_contents): Simplify.
270 2019-09-20 Tom Tromey <tom@tromey.com>
272 * tui/tui-winsource.h (struct tui_source_window_base)
273 <show_source_content>: Now private.
274 * tui/tui-winsource.c
275 (tui_source_window_base::show_source_content): Don't handle empty
278 2019-09-20 Tom Tromey <tom@tromey.com>
280 * tui/tui-layout.c (show_source_disasm_command)
281 (show_source_or_disasm_and_command): Don't call
284 2019-09-20 Tom Tromey <tom@tromey.com>
286 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
288 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
289 from tui_make_status_line.
290 (tui_locator_window::rerender): Update.
292 2019-09-20 Tom Tromey <tom@tromey.com>
294 * tui/tui-stack.c (tui_make_status_line): Return std::string.
295 (tui_locator_window::rerender): Update.
297 2019-09-20 Tom Tromey <tom@tromey.com>
299 * tui/tui-winsource.h (struct tui_source_window_base)
300 <~tui_source_window_base>: Don't declare.
302 * tui/tui-winsource.c (~tui_source_window_base): Remove.
303 * tui/tui-source.h (struct tui_source_window) <fullname>: New
305 * tui/tui-source.c (tui_source_window::set_contents): Update.
306 (tui_source_window::location_matches_p)
307 (tui_source_window::maybe_update): Update.
309 2019-09-20 Tom Tromey <tom@tromey.com>
311 * tui/tui-winsource.h (~tui_source_element): Remove.
312 (tui_source_element): Update.
313 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
314 * tui/tui-winsource.c (tui_show_source_line): Update.
315 * tui/tui-source.c (tui_source_window::set_contents): Update.
316 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
318 2019-09-20 Tom Tromey <tom@tromey.com>
320 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
322 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
323 tui_clear_source_windows_detail.
324 * tui/tui-winsource.h (struct tui_source_window_base)
325 <clear_detail>: Don't declare.
326 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
328 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
330 2019-09-20 Tom Tromey <tromey@adacore.com>
333 * block.c (contained_in): Fix final return value.
335 2019-09-20 Alan Modra <amodra@gmail.com>
337 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
338 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
339 (read_indirect_string_from_dwz): Use bfd accessor.
340 * dwarf2read.h (struct dwz_file <filename>): Likewise.
341 * machoread.c (macho_symfile_read_all_oso): Likewise.
342 * solib.c (solib_bfd_open): Likewise.
344 2019-09-19 Christian Biesinger <cbiesinger@google.com>
346 * eval.c: Move declaration of overload_resolution to...
349 2019-09-19 Christian Biesinger <cbiesinger@google.com>
351 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
352 * arm-linux-tdep.c: Likewise.
353 * arm-nbsd-nat.c: Likewise.
354 * arm-tdep.h: Declare arm_apcs_32.
355 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
357 2019-09-19 Christian Biesinger <cbiesinger@google.com>
359 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
360 * dwarf2read.h: Declare dwarf_always_disassemble.
362 2019-09-19 Tom de Vries <tdevries@suse.de>
365 * source-cache.c (source_cache::ensure): Catch exception thrown during
366 construction of the highlighter.
368 2019-09-18 Alan Modra <amodra@gmail.com>
370 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
371 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
372 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
373 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
374 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
375 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
376 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
377 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
378 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
379 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
380 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
381 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
382 * solib-spu.c, * solib-svr4.c, * solib-target.c,
383 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
384 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
385 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
386 * mi/mi-interp.c: Update throughout for bfd section macro and
388 * gcore (gcore_create_callback): Use bfd_set_section_lma.
389 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
391 2019-09-18 Tom Tromey <tom@tromey.com>
394 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
396 (tui_enable): Do not call rl_initialize.
398 2019-09-18 Christian Groessler <chris@groessler.org>
400 * alpha-linux-nat.c: Include gdbarch.h.
402 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
404 * ui-file.c: Include cli/cli-style.h.
405 (term_cli_styling): Remove cli_styling declaration.
407 2019-09-18 Alan Modra <amodra@gmail.com>
409 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
410 to bfd_asymbol_section.
412 2019-09-18 Alan Modra <amodra@gmail.com>
414 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
415 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
416 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
418 2019-09-18 Alan Modra <amodra@gmail.com>
420 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
421 * spu-linux-nat.c (spu_bfd_open): Likewise.
423 2019-09-18 Christian Biesinger <cbiesinger@google.com>
425 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
426 to bool to match definition in dwarf2read.c.
428 2019-09-17 Christian Biesinger <cbiesinger@google.com>
430 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
431 (print_signatures): Likewise.
432 (trust_pad_over_xvs): Likewise.
433 * arch/aarch64-insn.c (aarch64_debug): Likewise.
434 * arch/aarch64-insn.h (aarch64_debug): Likewise.
435 * arm-linux-nat.c (arm_apcs_32): Likewise.
436 * arm-linux-tdep.c (arm_apcs_32): Likewise.
437 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
438 * arm-tdep.c (arm_debug): Likewise.
439 (arm_apcs_32): Likewise.
440 * auto-load.c (debug_auto_load): Likewise.
441 (auto_load_gdb_scripts): Likewise.
442 (global_auto_load): Likewise.
443 (auto_load_local_gdbinit): Likewise.
444 (auto_load_local_gdbinit_loaded): Likewise.
445 * auto-load.h (global_auto_load): Likewise.
446 (auto_load_local_gdbinit): Likewise.
447 (auto_load_local_gdbinit_loaded): Likewise.
448 * breakpoint.c (disconnected_dprintf): Likewise.
449 (breakpoint_proceeded): Likewise.
450 (automatic_hardware_breakpoints): Likewise.
451 (always_inserted_mode): Likewise.
452 (target_exact_watchpoints): Likewise.
453 (_initialize_breakpoint): Update.
454 * breakpoint.h (target_exact_watchpoints): Change to bool.
455 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
456 * cli/cli-cmds.c (trace_commands): Likewise.
457 * cli/cli-cmds.h (trace_commands): Likewise.
458 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
460 * cli/cli-logging.c (logging_overwrite): Change to bool.
461 (logging_redirect): Likewise.
462 (debug_redirect): Likewise.
463 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
464 (struct boolean_option_def) <get_var_address_cb_>: Change return type
466 <boolean_option_def>: Update.
467 (struct flag_option_def): Change default type of Context to bool
469 <flag_option_def>: Change return type of var_address_cb_ to bool*.
470 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
471 (get_setshow_command_value_string): Likewise.
472 * cli/cli-style.c (cli_styling): Change to bool.
473 (source_styling): Likewise.
474 * cli/cli-style.h (source_styling): Likewise.
475 (cli_styling): Likewise.
476 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
478 * command.h (var_types): Update comment.
479 (add_setshow_boolean_cmd): Change int* var argument to bool*.
480 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
482 (debug_compile_cplus_scopes): Likewise.
483 * compile/compile-internal.h (compile_debug): Likewise.
484 * compile/compile.c (compile_debug): Likewise.
485 (struct compile_options) <raw>: Likewise.
486 * cp-support.c (catch_demangler_crashes): Likewise.
487 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
488 (usr_cmd_cris_dwarf2_cfi): Likewise.
489 * csky-tdep.c (csky_debug): Likewise.
490 * darwin-nat.c (enable_mach_exceptions): Likewise.
491 * dcache.c (dcache_enabled_p): Likewise.
492 * defs.h (info_verbose): Likewise.
493 * demangle.c (demangle): Likewise.
494 (asm_demangle): Likewise.
495 * dwarf-index-cache.c (debug_index_cache): Likewise.
496 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
497 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
498 * dwarf2read.c (check_physname): Likewise.
499 (use_deprecated_index_sections): Likewise.
500 (dwarf_always_disassemble): Likewise.
501 * eval.c (overload_resolution): Likewise.
502 * event-top.c (set_editing_cmd_var): Likewise.
503 (exec_done_display_p): Likewise.
504 * event-top.h (set_editing_cmd_var): Likewise.
505 (exec_done_display_p): Likewise.
506 * exec.c (write_files): Likewise.
507 * fbsd-nat.c (debug_fbsd_lwp): Likewise
508 (debug_fbsd_nat): Likewise.
509 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
511 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
512 <backtrace_past_entry> Likewise.
513 * gdb-demangle.h (demangle): Likewise.
514 (asm_demangle): Likewise.
515 * gdb_bfd.c (bfd_sharing): Likewise.
516 * gdbcore.h (write_files): Likewise.
517 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
518 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
519 * gdbthread.h (print_thread_events): Likewise.
520 * gdbtypes.c (opaque_type_resolution): Likewise.
521 (strict_type_checking): Likewise.
522 * gnu-nat.c (gnu_debug_flag): Likewise.
523 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
524 * guile/scm-param.c (pascm_variable): Add boolval.
525 (add_setshow_generic): Update.
526 (pascm_param_value): Update.
527 (pascm_set_param_value_x): Update.
528 * hppa-tdep.c (hppa_debug): Change to bool..
529 * infcall.c (may_call_functions_p): Likewise.
530 (coerce_float_to_double_p): Likewise.
531 (unwind_on_signal_p): Likewise.
532 (unwind_on_terminating_exception_p): Likewise.
533 * infcmd.c (startup_with_shell): Likewise.
534 * inferior.c (print_inferior_events): Likewise.
535 * inferior.h (startup_with_shell): Likewise.
536 (print_inferior_events): Likewise.
537 * infrun.c (step_stop_if_no_debug): Likewise.
538 (detach_fork): Likewise.
539 (debug_displaced): Likewise.
540 (disable_randomization): Likewise.
541 (non_stop): Likewise.
542 (non_stop_1): Likewise.
543 (observer_mode): Likewise.
544 (observer_mode_1): Likewise.
545 (set_observer_mode): Update.
546 (sched_multi): Change to bool.
547 * infrun.h (debug_displaced): Likewise.
548 (sched_multi): Likewise.
549 (step_stop_if_no_debug): Likewise.
550 (non_stop): Likewise.
551 (disable_randomization): Likewise.
552 * linux-tdep.c (use_coredump_filter): Likewise.
553 (dump_excluded_mappings): Likewise.
554 * linux-thread-db.c (auto_load_thread_db): Likewise.
555 (check_thread_db_on_load): Likewise.
556 * main.c (captured_main_1): Update.
557 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
558 xx2_opt, boolean_opt>: Change to bool.
559 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
560 * maint.c (maintenance_profile_p): Likewise.
561 (per_command_time): Likewise.
562 (per_command_space): Likewise.
563 (per_command_symtab): Likewise.
564 * memattr.c (inaccessible_by_default): Likewise.
565 * mi/mi-main.c (mi_async): Likewise.
566 (mi_async_1): Likewise.
567 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
568 * nat/fork-inferior.h (startup_with_shell): Likewise.
569 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
570 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
571 * nios2-tdep.c (nios2_debug): Likewise.
572 * or1k-tdep.c (or1k_debug): Likewise.
573 * parse.c (parser_debug): Likewise.
574 * parser-defs.h (parser_debug): Likewise.
575 * printcmd.c (print_symbol_filename): Likewise.
576 * proc-api.c (procfs_trace): Likewise.
577 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
578 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
579 (set_parameter_value): Update.
580 (add_setshow_generic): Update.
581 * python/py-value.c (copy_py_bool_obj): Change argument from int*
583 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
585 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
586 * record-btrace.c (record_btrace_target::store_registers): Update.
587 * record-full.c (record_full_memory_query): Change to bool.
588 (record_full_stop_at_limit): Likewise.
589 * record-full.h (record_full_memory_query): Likewise.
590 * remote-notif.c (notif_debug): Likewise.
591 * remote-notif.h (notif_debug): Likewise.
592 * remote.c (use_range_stepping): Likewise.
593 (interrupt_on_connect): Likewise.
594 (remote_break): Likewise.
595 * ser-tcp.c (tcp_auto_retry): Likewise.
596 * ser-unix.c (serial_hwflow): Likewise.
597 * skip.c (debug_skip): Likewise.
598 * solib-aix.c (solib_aix_debug): Likewise.
599 * spu-tdep.c (spu_stop_on_load_p): Likewise.
600 (spu_auto_flush_cache_p): Likewise.
601 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
603 (struct info_print_options) <quiet>: Likewise.
604 * symfile-debug.c (debug_symfile): Likewise.
605 * symfile.c (auto_solib_add): Likewise.
606 (separate_debug_file_debug): Likewise.
607 * symfile.h (auto_solib_add): Likewise.
608 (separate_debug_file_debug): Likewise.
609 * symtab.c (basenames_may_differ): Likewise.
610 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
611 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
612 (struct info_types_options) <quiet>: Likewise.
613 * symtab.h (demangle): Likewise.
614 (basenames_may_differ): Likewise.
615 * target-dcache.c (stack_cache_enabled_1): Likewise.
616 (code_cache_enabled_1): Likewise.
617 * target.c (trust_readonly): Likewise.
618 (may_write_registers): Likewise.
619 (may_write_memory): Likewise.
620 (may_insert_breakpoints): Likewise.
621 (may_insert_tracepoints): Likewise.
622 (may_insert_fast_tracepoints): Likewise.
623 (may_stop): Likewise.
624 (auto_connect_native_target): Likewise.
625 (target_stop_and_wait): Update.
626 (target_async_permitted): Change to bool.
627 (target_async_permitted_1): Likewise.
628 (may_write_registers_1): Likewise.
629 (may_write_memory_1): Likewise.
630 (may_insert_breakpoints_1): Likewise.
631 (may_insert_tracepoints_1): Likewise.
632 (may_insert_fast_tracepoints_1): Likewise.
633 (may_stop_1): Likewise.
634 * target.h (target_async_permitted): Likewise.
635 (may_write_registers): Likewise.
636 (may_write_memory): Likewise.
637 (may_insert_breakpoints): Likewise.
638 (may_insert_tracepoints): Likewise.
639 (may_insert_fast_tracepoints): Likewise.
640 (may_stop): Likewise.
641 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
642 (make_thread_apply_all_options_def_group): Change argument from int*
644 (thread_apply_all_command): Update.
645 (print_thread_events): Change to bool.
646 * top.c (confirm): Likewise.
647 (command_editing_p): Likewise.
648 (history_expansion_p): Likewise.
649 (write_history_p): Likewise.
650 (info_verbose): Likewise.
651 * top.h (confirm): Likewise.
652 (history_expansion_p): Likewise.
653 * tracepoint.c (disconnected_tracing): Likewise.
654 (circular_trace_buffer): Likewise.
655 * typeprint.c (print_methods): Likewise.
656 (print_typedefs): Likewise.
657 * utils.c (debug_timestamp): Likewise.
658 (sevenbit_strings): Likewise.
659 (pagination_enabled): Likewise.
660 * utils.h (sevenbit_strings): Likewise.
661 (pagination_enabled): Likewise.
662 * valops.c (overload_resolution): Likewise.
663 * valprint.h (struct value_print_options) <prettyformat_arrays,
664 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
665 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
666 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
668 * windows-nat.c (new_console): Likewise.
669 (cygwin_exceptions): Likewise.
670 (new_group): Likewise.
671 (debug_exec): Likewise.
672 (debug_events): Likewise.
673 (debug_memory): Likewise.
674 (debug_exceptions): Likewise.
675 (useshell): Likewise.
676 * windows-tdep.c (maint_display_all_tib): Likewise.
677 * xml-support.c (debug_xml): Likewise.
679 2019-09-17 Mike Gulick <mgulick@mathworks.com>
681 * source.c (prepare_path_for_appending): New function.
682 (openp): Make use of new function.
683 (find_and_open_source): Search for the compilation directory and
684 source file as a relative path beneath the directory search path.
686 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
688 * source-cache.c (source_cache::get_line_charpos): Catch
689 exceptions and return false, this matches the behaviour documented
692 2019-09-17 Joel Brobecker <brobecker@adacore.com>
694 * ada-tasks.c (info_task): Remove quoting of the task's name.
696 2019-09-16 Christian Biesinger <cbiesinger@google.com>
698 * symfile.c (auto_solib_add): Replace comment with a reference
701 2019-09-14 Christian Biesinger <cbiesinger@google.com>
703 * NEWS: Mention that gdb can now be compiled with Python 3
706 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
708 * maint.c (maint_print_section_data::maint_print_section_data):
709 Force use of 'float log10 (float)' by casting the argument to
712 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
714 * maint.c: Add 'cmath' include.
715 (struct maint_print_section_data): New structure.
716 (print_section_index): New function.
717 (print_bfd_section_info): Add header comment, small whitespace
718 cleanup, and update to call new print_section_index function.
719 (print_objfile_section_info): Likewise.
720 (maint_obj_section_from_bfd_section): New function.
721 (print_bfd_section_info_maybe_relocated): New function.
722 (maintenance_info_sections): Add header comment, always use
723 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
725 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
727 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
728 inner scope, add check that the objfile has psymtabs before
729 checking psymtabs_addrmap.
730 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
732 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
734 * NEWS: Announce that Ada task names are now shown at more places,
735 and between quotes (except in info task output).
736 * gdb/ada-tasks.c (task_to_str): New function.
737 (display_current_task_id): Call task_to_str.
738 (task_command_1): Likewise.
739 (print_ada_task_info): In non-mi mode, Properly align headers and data
740 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
742 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
744 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
745 prstatus.pr_lwp.pr_info instead of making it up.
747 2019-09-11 Christian Biesinger <cbiesinger@google.com>
749 * auto-load.c (auto_load_expand_dir_vars): Update.
750 * defs.h (gdb_datadir): Change to std::string.
751 (python_libdir): Likewise.
752 (relocate_gdb_directory): Change return type to std::string.
753 * guile/guile.c (gdbscm_data_directory): Update.
754 (initialize_scheme_side): Update.
755 * jit.c (jit_reader_dir): Change to std::string.
756 (jit_reader_load_command): Update.
757 * main.c (gdb_datadir): Change to std::string.
758 (python_libdir): Likewise.
759 (set_gdb_data_directory): Update.
760 (relocate_path): Change to return std::string.
761 (relocate_gdb_directory): Change to return std::string.
762 (relocate_gdbinit_path_maybe_in_datadir): Update.
763 (captured_main_1): Update.
764 * python/python.c (do_start_initialization): Update.
765 * top.c (show_gdb_datadir): Update.
766 * xml-syscall.c (xml_init_syscalls_info): Update.
767 (init_syscalls_info): Update.
769 2019-09-11 Christian Biesinger <cbiesinger@google.com>
771 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
772 out of get_init_files.
773 (get_init_files): Update.
775 2019-09-11 Christian Biesinger <cbiesinger@google.com>
777 * main.c (get_init_files): Change to use std::string.
778 (captured_main_1): Update.
779 (print_gdb_help): Update.
781 2019-09-11 Ali Tamur <tamur@google.com>
783 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
786 2019-09-11 Christian Biesinger <cbiesinger@google.com>
788 * dbxread.c (read_dbx_symtab): Update.
789 * dwarf2read.c (load_partial_dies): Update.
790 * mdebugread.c (parse_partial_symbols): Update.
791 (handle_psymbol_enumerators): Update.
792 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
793 * psymtab.c (add_psymbol_to_bcache): Likewise.
794 (add_psymbol_to_list): Likewise.
795 * symtab.c (symbol_set_names): Likewise.
796 * symtab.h (symbol_set_names): Likewise.
797 * xcoffread.c (scan_xcoff_symtab): Update.
799 2019-09-11 Tom Tromey <tom@tromey.com>
801 * symfile-mem.c (symbol_file_add_from_memory): Use
803 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
804 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
806 2019-09-10 Tom Tromey <tromey@adacore.com>
808 * dwarf-index-write.c (write_psymbols): Extend error message.
809 (debug_names::insert): Add Ada code.
810 (debug_names::write_psymbols): Remove Ada check.
811 (debug_names) <m_string_obstack>: New member.
812 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
813 (gdb_index_symbol_name_matcher::matches): Remove.
814 (mapped_index_base::find_name_components_bounds): Add "lang"
816 (mapped_index_base::build_name_components): Also split names
817 according to Ada syntax.
818 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
819 type of "match_callback".
820 (check_match, check_find_bounds_finds)
821 (dw2_expand_symtabs_matching): Update.
822 (dw2_debug_names_iterator): Add new constructor.
823 (dw2_debug_names_map_matching_symbols): New function.
824 (dw2_debug_names_expand_symtabs_matching): Update.
825 (dwarf2_debug_names_functions): Use
826 dw2_debug_names_map_matching_symbols.
828 2019-09-10 Tom Tromey <tromey@adacore.com>
830 * dwarf2read.c (dw2_get_file_names_reader): Add the
831 CU's file name to the results.
833 2019-09-10 Tom Tromey <tromey@adacore.com>
835 * ada-lang.c (add_nonlocal_symbols): Combine calls to
836 map_matching_symbols. Update.
837 * dwarf2read.c (dw2_map_matching_symbols): Update.
838 * psymtab.c (match_partial_symbol): Change type; update.
839 (psym_map_matching_symbols): Likewise.
840 * symfile-debug.c (debug_qf_map_matching_symbols): Change
842 * symfile.h (struct quick_symbol_functions)
843 <map_matching_symbols>: Change "name" to be a lookup_name_info.
846 2019-09-10 Tom Tromey <tromey@adacore.com>
848 * psymtab.c (map_block): Remove.
849 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
850 * symtab.c (iterate_over_symbols_terminated): New function.
851 * symtab.c (iterate_over_symbols_terminated): Declare.
853 2019-09-10 Tom Tromey <tromey@adacore.com>
855 * ada-lang.c (ada_iterate_over_symbols): Return bool.
856 * language.h (struct language_defn) <la_iterate_over_symbols>:
858 * symtab.c (iterate_over_symbols): Return bool.
859 * symtab.h (iterate_over_symbols): Return bool.
861 2019-09-10 Tom Tromey <tromey@adacore.com>
863 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
864 (add_nonlocal_symbols): Update.
865 * dwarf2read.c (dw2_map_matching_symbols): Change type.
866 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
867 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
868 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
869 Change type of "callback". Remove "data".
872 2019-09-09 Ali Tamur <tamur@google.com>
874 * dwarf2read.c (comp_unit_head): Update comment.
875 (dwarf2_dwo_name): New function declaration.
876 (dwarf_unit_type_name): New function declaration.
877 (read_comp_unit_head): Add support for new compilation units,
878 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
879 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
880 (currently named as "signature") in their header. Also clarify error
882 (lookup_dwo_id): New function. Returns the dwo id of the given
884 (lookup_dwo_unit): Use the new lookup_dwo_id function.
885 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
887 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
888 (dwarf2_dwo_name): Get the dwo name if present.
889 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
892 2019-09-09 Tom Tromey <tom@tromey.com>
894 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
896 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
898 * python/python.c (do_start_initialization): Make progname_copy static,
899 to avoid a leak report.
901 2019-09-08 Tom Tromey <tom@tromey.com>
903 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
905 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
907 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
908 Change type to gdb::optional<block_enum>.
909 (dw2_symtab_iter_init): Change block_index parameter type
910 to gdb::optional<block_enum>.
911 (dw2_lookup_symbol): Change block_index parameter
913 (dw2_debug_names_lookup_symbol): Likewise.
914 * psymtab.c (psym_lookup_symbol): Likewise.
915 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
916 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
919 2019-09-06 Christian Biesinger <cbiesinger@google.com>
921 * defs.h (relocate_gdb_directory): Change int to bool in
922 signature and rename flag to relocatable.
923 * main.c (relocate_path): Likewise.
924 (relocate_gdb_directory): Likewise.
926 2019-09-06 Alan Modra <amodra@gmail.com>
928 * coffread.c (coff_symfile_read): Constify filename variable.
929 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
930 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
931 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
932 * solib.c (reload_shared_libraries_1): Likewise.
933 * symfile.c (reread_symbols): Likewise.
934 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
935 * solib-darwin.c (darwin_bfd_open): Likewise.
936 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
938 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
940 * psymtab.c (print_partial_symbols): Handle missing domain_enum
941 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
943 2019-09-03 Tom Tromey <tromey@adacore.com>
945 * ada-valprint.c (ada_val_print_num): Don't recurse for range
947 (has_negatives): Unbias a range type bound.
948 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
949 * gdbtypes.c (operator==): Handle new field.
950 (create_range_type): Add "bias" parameter.
951 (create_static_range_type, resolve_dynamic_range): Update.
952 * gdbtypes.h (struct range_bounds) <bias>: New member.
953 (create_range_type): Add bias parameter.
954 * printcmd.c (print_scalar_formatted): Unbias range types.
955 * value.c (unpack_long): Unbias range types.
956 (pack_long): Bias range types.
958 2019-09-02 Alan Hayward <alan.hayward@arm.com>
960 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
963 2019-09-02 Alan Hayward <alan.hayward@arm.com>
965 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
966 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
967 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
968 (compile_probe_arg): Likewise.
969 * probe.h (get_argument_count): Likewise.
970 * solib-svr4.c (solib_event_probe_action): Likewise.
971 * stap-probe.c (stap_probe::get_argument_count): Likewise.
973 2019-09-02 Alan Hayward <alan.hayward@arm.com>
975 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
977 (svr4_create_solib_event_breakpoints): ...from here.
979 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
981 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
982 suffix from warning message.
984 2019-08-30 Tom Tromey <tom@tromey.com>
986 * tui/tui-winsource.h (struct tui_source_window_base)
987 <refresh_all>: Don't declare.
988 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
990 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
991 tui_show_locator_content.
992 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
994 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
995 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
998 2019-08-30 Tom Tromey <tom@tromey.com>
1000 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
1002 2019-08-30 Tom Tromey <tom@tromey.com>
1004 * tui/tui-stack.c (_initialize_tui_stack): Move later.
1005 Remove unnecessary forward declarations.
1007 2019-08-30 Tom Tromey <tom@tromey.com>
1009 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
1011 (tui_update_locator_fullname, tui_show_frame_info): Don't call
1012 tui_show_locator_content.
1014 2019-08-30 Tom Tromey <tom@tromey.com>
1016 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
1017 (tui_locator_window::rerender): Rewrite using body of previous
1018 tui_show_locator_content.
1020 2019-08-30 Tom Tromey <tom@tromey.com>
1022 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
1023 set_locator_fullname>: New methods.
1024 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1025 Rename from tui_set_locator_fullname.
1026 (tui_locator_window::set_locator_info): Rename from
1027 tui_set_locator_info. Return bool.
1028 (tui_update_locator_fullname, tui_show_frame_info): Update.
1030 2019-08-30 Tom Tromey <tom@tromey.com>
1032 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
1034 2019-08-30 Tom Tromey <tom@tromey.com>
1036 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
1039 2019-08-30 Tom Tromey <tom@tromey.com>
1041 * tui/tui-wingeneral.c (box_win): Assume win_info and
1042 win_info->handle cannot be NULL.
1044 2019-08-30 Tom Tromey <tom@tromey.com>
1046 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
1047 refresh_window>: Declare.
1048 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1050 (tui_data_item_window::rerender): Rename from
1051 tui_display_register.
1052 (tui_data_item_window::refresh_window): New method.
1053 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1056 2019-08-30 Tom Tromey <tom@tromey.com>
1058 * tui/tui-regs.h (struct tui_data_window) <regs_content,
1059 regs_column_count, current_group>: Move later. Now private.
1060 <get_current_group>: New method.
1061 * tui/tui-regs.c (tui_reg_command): Update.
1062 * tui/tui-layout.c (tui_set_layout): Update.
1064 2019-08-30 Tom Tromey <tom@tromey.com>
1066 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1067 (tui_data_window::rerender): Don't call
1068 check_and_display_highlight_if_needed.
1069 (tui_data_window::refresh_all): Remove call to
1072 2019-08-30 Tom Tromey <tom@tromey.com>
1074 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1075 (tui_data_window::display_registers_from)
1076 (tui_data_window::display_reg_element_at_line)
1077 (tui_data_window::display_registers_from_line): Remove checks of
1080 2019-08-30 Tom Tromey <tom@tromey.com>
1082 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1084 * tui/tui-regs.c (tui_data_window::show_registers): Call
1086 (tui_data_window::rerender): Rename from display_all_data.
1087 (tui_data_window::rerender): Remove old implementation.
1089 2019-08-30 Tom Tromey <tom@tromey.com>
1091 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1093 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1095 2019-08-29 Bernhard Wodok <barto@gmx.net>
1096 Sergio Durigan Junior <sergiodj@redhat.com>
1099 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1101 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1103 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1104 when searching for types.
1106 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1108 * f-lang.c (f_language_defn): Use f_print_typedef.
1109 * f-lang.h (f_print_typedef): Declare.
1110 * f-typeprint.c (f_print_typedef): Define.
1112 2019-08-27 Christian Biesinger <cbiesinger@google.com>
1114 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1116 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
1118 * cli/cli-utils.c (info_print_options_defs): Delete.
1119 (make_info_print_options_def_group): Delete.
1120 (extract_info_print_options): Delete.
1121 (info_print_command_completer): Delete.
1122 (info_print_args_help): Add extra parameter, and optionally
1123 include text about -n flag.
1124 * cli/cli-utils.h (struct info_print_options): Delete.
1125 (extract_info_print_options): Delete declaration.
1126 (info_print_command_completer): Delete declaration.
1127 (info_print_args_help): Add extra parameter, extend header
1129 * python/python.c (gdbpy_rbreak): Pass additional parameter to
1131 * stack.c (struct info_print_options): New type.
1132 (info_print_options_defs): New file scoped variable.
1133 (make_info_print_options_def_group): New static function.
1134 (info_print_command_completer): New static function.
1135 (info_locals_command): Update to use new local functions.
1136 (info_args_command): Likewise.
1137 (_initialize_stack): Add extra parameter to calls to
1138 info_print_args_help.
1139 * symtab.c (search_symbols): Add extra parameter, use this to
1140 possibly excluse non-debug symbols.
1141 (symtab_symbol_info): Add extra parameter, which is passed on to
1143 (struct info_print_options): New type.
1144 (info_print_options_defs): New file scoped variable.
1145 (make_info_print_options_def_group): New static function.
1146 (info_print_command_completer): New static function.
1147 (info_variables_command): Update to use local functions, and pass
1148 extra parameter through to symtab_symbol_info.
1149 (info_functions_command): Likewise.
1150 (info_types_command): Pass additional argument through to
1152 (rbreak_command): Pass extra argument to search_symbols.
1153 (_initialize_symtab): Add extra arguments for calls to
1154 info_print_args_help, and update help text for 'info variables',
1155 'whereis', and 'info functions' commands.
1156 * symtab.h (search_symbols): Add extra argument to declaration.
1157 * NEWS: Mention new flags.
1159 2019-08-26 Christian Biesinger <cbiesinger@google.com>
1161 * symtab.c (lookup_static_symbol): Call the new function (and move
1162 it down to be next to lookup_global_symbol).
1163 (struct global_sym_lookup_data): Add block_enum member and rename to...
1164 (struct global_or_static_sym_lookup_data): ...this.
1165 (lookup_symbol_global_iterator_cb): Pass block_index instead of
1166 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
1167 (lookup_symbol_global_or_static_iterator_cb): ...this.
1168 (lookup_global_or_static_symbol): New function.
1169 (lookup_global_symbol): Call new function.
1171 2019-08-26 Tom de Vries <tdevries@suse.de>
1174 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
1175 when pc_probe.prob == NULL.
1177 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
1179 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
1180 variable symbol_linkage to symbol_linkage_.
1182 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
1184 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1185 represent whether the symbol is static, dynamic, or we don't
1188 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1190 * gdb/rx-tdep.c (rx_register_names): New.
1191 (rx_register_name): Delete.
1192 (rx_psw_type): Delete.
1193 (rx_fpsw_type): Delete.
1194 (rx_register_type): Delete.
1195 (rx_gdbarch_init): Convert target-descriptions.
1196 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1197 * gdb/features/Makefile: Add rx.xml.
1198 * gdb/features/rx.xml: New.
1199 * gdb/features/rx.c: Generated.
1200 * gdb/NEWS: Mention target description support.
1202 2019-08-22 Christian Biesinger <cbiesinger@google.com>
1204 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1207 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1209 * configure.ac: Don't check for 'dlfcn.h' (moved to
1210 gdbsupport/common.m4).
1211 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1213 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1214 * compile/compile-c-support.c: Include
1215 'gdbsupport/gdb-dlfcn.h'.
1216 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1217 * gdb-dlfcn.c: Move to...
1218 * gdbsupport/gdb-dlfcn.c: ... here.
1219 * gdb-dlfcn.h: Move to...
1220 * gdbsupport/gdb-dlfcn.h: ... here.
1222 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1224 * nios2-tdep.c (struct reg_value): Improve comments. Make
1225 the offset field signed.
1227 2019-08-22 Christian Biesinger <cbiesinger@google.com>
1229 * python/lib/gdb/__init__.py (_execute_file): New function.
1230 * python/python.c (python_run_simple_file): Call gdb._execute_file
1233 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1235 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1236 all uses as this was never set to anything but a zero value.
1238 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1240 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1242 2019-08-21 Christian Biesinger <cbiesinger@google.com>
1244 * tui/tui-data.h (tui_gen_win_info): Add an =default
1245 move constructor, required by some GCC versions.
1247 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
1249 * go32-nat.c (go32_sysinfo): Add hygon_p.
1251 2019-08-20 Tom Tromey <tom@tromey.com>
1253 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
1254 line_from_reg_element_no, first_reg_element_no_inline,
1255 display_all_data, delete_data_content_windows,
1256 erase_data_content>: Now private.
1258 2019-08-20 Tom Tromey <tom@tromey.com>
1260 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
1261 (tui_unhighlight_win, tui_highlight_win)
1262 (tui_win_info::make_window): Update.
1263 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
1265 2019-08-20 Tom Tromey <tom@tromey.com>
1267 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1268 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1269 (MAX_PID_WIDTH): Move to tui-stack.c.
1270 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1271 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1272 (MAX_PID_WIDTH): Move from tui-data.h.
1274 2019-08-20 Tom Tromey <tom@tromey.com>
1276 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1277 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1279 (tui_gen_win_info::make_window): Rename from tui_make_window.
1280 (tui_win_info::make_window): New method.
1281 (tui_gen_win_info::make_visible): Update.
1282 * tui/tui-source.c (tui_source_window::set_contents): Update.
1283 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1284 (tui_data_window::display_registers_from): Update.
1285 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1286 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1290 (struct tui_win_info) <make_window>: Declare.
1291 <can_box>: Now virtual.
1292 <title>: New member.
1293 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1294 * tui/tui-command.c (tui_cmd_window::resize): Update.
1296 2019-08-20 Tom Tromey <tom@tromey.com>
1298 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
1299 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1300 (tui_data_window::check_register_values): Update.
1302 2019-08-20 Tom Tromey <tom@tromey.com>
1304 * tui/tui-regs.h (struct tui_data_window): Use
1305 DISABLE_COPY_AND_ASSIGN.
1306 <regs_content>: Change type, removing unique_ptr.
1307 <tui_data_window>: Add move constructor.
1308 * tui/tui-regs.c (tui_data_window::show_registers)
1309 (tui_data_window::show_register_group)
1310 (tui_data_window::display_registers_from)
1311 (tui_data_window::display_registers_from)
1312 (tui_data_window::first_data_item_displayed)
1313 (tui_data_window::delete_data_content_windows)
1314 (tui_data_window::rerender, tui_data_window::refresh_window)
1315 (tui_data_window::check_register_values): Update.
1317 2019-08-20 Tom Tromey <tom@tromey.com>
1319 * tui/tui-regs.h (struct tui_data_window) <show_registers,
1320 show_register_group>: Declare.
1321 (tui_show_register_group): Don't declare.
1322 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
1324 (tui_data_window::show_register_group): Rename from
1325 tui_show_register_group.
1326 (tui_data_window::check_register_values, tui_reg_command):
1328 * tui/tui-layout.c (tui_set_layout): Update.
1330 2019-08-20 Tom Tromey <tom@tromey.com>
1332 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
1334 (tui_check_register_values): Don't declare.
1335 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1336 from tui_check_register_values.
1337 * tui/tui-hooks.c (tui_register_changed): Update.
1339 2019-08-20 Tom Tromey <tom@tromey.com>
1341 * tui/tui-regs.c (tui_reg_layout): Move later.
1342 (tui_show_registers): Don't enable TUI mode or change layout.
1344 2019-08-20 Tom Tromey <tom@tromey.com>
1346 * tui/tui-regs.h (struct tui_data_item_window)
1347 <~tui_data_item_window>: Remove.
1348 <content>: Now a unique_xmalloc_ptr.
1349 * tui/tui-regs.c (tui_register_format): Return a
1351 (tui_get_register): Update.
1352 (~tui_data_item_window): Remove.
1353 (tui_data_window::display_registers_from, tui_display_register):
1355 * tui/tui-io.h (tui_expand_tabs): Update.
1356 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1357 Remove "col" parameter.
1359 2019-08-20 Tom Tromey <tom@tromey.com>
1361 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1363 * tui/tui-regs.c (~tui_data_item_window): Update.
1365 2019-08-20 Tom Tromey <tom@tromey.com>
1367 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1370 2019-08-20 Tom Tromey <tom@tromey.com>
1372 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1374 2019-08-20 Tom Tromey <tom@tromey.com>
1376 * tui/tui-source.h (struct tui_source_window): Update.
1377 * tui/tui-regs.c (tui_show_registers): Update.
1378 * tui/tui-disasm.h (struct tui_disasm_window): Update.
1379 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
1380 (NO_REGS_STRING): Remove defines.
1382 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
1384 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
1385 unnecessary thread walk if remote doesn't support the packet.
1387 2019-08-19 Tom Tromey <tromey@adacore.com>
1389 * python/py-value.c (value_has_field): Fix indentation.
1391 2019-08-19 Tom Tromey <tromey@adacore.com>
1393 * printcmd.c (do_one_display, info_display_command): Update.
1394 * block.h (contained_in): Return bool. Add allow_nested
1396 * block.c (contained_in): Return bool. Add allow_nested
1399 2019-08-19 Tom Tromey <tom@tromey.com>
1401 * configure: Rebuild.
1402 * configure.ac: Disallow the combination of -static-libstdc++ and
1404 * source-cache.c (get_language_name): Handle rust.
1405 (source_cache::get_source_lines): Ignore highlighting exceptions.
1407 2019-08-16 Tom Tromey <tom@tromey.com>
1409 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1410 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1411 (struct tui_source_window_base) <make_visible, refresh_window,
1412 resize>: Remove methods.
1413 <execution_info>: Remove field.
1414 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1415 (tui_show_source_line, tui_source_window_base)
1416 (~tui_source_window_base): Update.
1417 (tui_source_window_base::resize)
1418 (tui_source_window_base::make_visible)
1419 (tui_source_window_base::refresh_window): Remove.
1420 (tui_source_window_base::update_exec_info): Update.
1421 * tui/tui-source.c (tui_source_window::set_contents): Update.
1422 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1424 2019-08-16 Tom Tromey <tom@tromey.com>
1426 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1427 deprecated_query_hook.
1429 2019-08-16 Tom Tromey <tom@tromey.com>
1431 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1432 (tui_update_source_windows_with_line): Update.
1433 * tui/tui-source.h (struct tui_source_window)
1434 <show_symtab_source>: Declare.
1435 (tui_show_symtab_source): Don't declare.
1436 * tui/tui-source.c (tui_show_symtab_source): Rename from
1437 tui_show_symtab_source.
1439 2019-08-16 Tom Tromey <tom@tromey.com>
1441 * tui/tui-winsource.h (struct tui_source_window_base)
1442 <set_contents>: Declare.
1443 * tui/tui-winsource.c
1444 (tui_source_window_base::update_source_window_as_is): Update.
1445 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1447 (tui_set_source_content): Don't declare.
1448 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1449 tui_set_source_content.
1450 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1452 (tui_set_disassem_content): Don't declare.
1453 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1454 tui_set_disassem_content.
1456 2019-08-16 Tom Tromey <tom@tromey.com>
1458 * tui/tui-winsource.h (struct tui_source_window_base)
1459 <update_breakpoint_info>: Declare.
1460 (tui_update_breakpoint_info): Don't declare.
1461 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1462 (tui_update_all_breakpoint_info): Update.
1463 (tui_source_window_base::update_breakpoint_info): Rename from
1464 tui_update_breakpoint_info.
1465 (tui_source_window_base::update_exec_info): Update.
1467 2019-08-16 Tom Tromey <tom@tromey.com>
1469 * tui/tui-winsource.h (struct tui_source_window_base)
1470 <update_source_window>: Declare.
1471 (tui_update_source_window): Don't declare.
1472 * tui/tui-winsource.c
1473 (tui_source_window_base::update_source_window): Rename from
1474 tui_update_source_window.
1475 (tui_source_window_base::rerender): Update.
1476 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1477 * tui/tui-disasm.c (tui_show_disassem)
1478 (tui_show_disassem_and_update_source)
1479 (tui_disasm_window::maybe_update): Update.
1481 2019-08-16 Tom Tromey <tom@tromey.com>
1483 * tui/tui-winsource.h (struct tui_source_window_base)
1484 <update_source_window_as_is>: Declare.
1485 (tui_update_source_window_as_is): Don't declare.
1486 * tui/tui-winsource.c (tui_update_source_window): Update
1487 (tui_source_window_base::update_source_window_as_is): Rename from
1488 tui_update_source_window_as_is.
1489 (tui_source_window_base::refill): Update.
1490 * tui/tui-source.c (tui_show_symtab_source): Update.
1491 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1494 2019-08-16 Tom Tromey <tom@tromey.com>
1496 * tui/tui-winsource.h (tui_update_source_window)
1497 (tui_update_source_window_as_is): Remove "noerror" parameter.
1498 * tui/tui-winsource.c (tui_update_source_window)
1499 (tui_update_source_window_as_is): Remove "noerror" parameter.
1500 (tui_update_source_windows_with_addr)
1501 (tui_update_source_windows_with_line)
1502 (tui_source_window_base::rerender)
1503 (tui_source_window_base::refill): Update.
1504 * tui/tui-source.h (tui_set_source_content)
1505 (tui_show_symtab_source): Remove "noerror" parameter.
1506 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1508 (tui_show_symtab_source): Likewise.
1509 (tui_source_window::maybe_update): Update.
1510 * tui/tui-disasm.c (tui_show_disassem)
1511 (tui_show_disassem_and_update_source)
1512 (tui_disasm_window::do_scroll_vertical)
1513 (tui_disasm_window::maybe_update): Update.
1515 2019-08-16 Tom Tromey <tom@tromey.com>
1517 * tui/tui.c (tui_is_window_visible): Update.
1518 * tui/tui-wingeneral.c (tui_make_window)
1519 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1520 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1521 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1522 (tui_set_win_height_command, parse_scrolling_args): Update.
1523 * tui/tui-source.c (tui_source_window::style_changed): Update.
1524 * tui/tui-regs.c (tui_show_registers)
1525 (tui_data_window::first_data_item_displayed)
1526 (tui_data_window::delete_data_content_windows)
1527 (tui_check_register_values, tui_reg_command): Update.
1528 * tui/tui-disasm.c (tui_show_disassem): Update.
1529 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
1531 <is_visible>: Remove field.
1532 * tui/tui-data.c (tui_next_win, tui_prev_win)
1533 (tui_delete_invisible_windows): Update.
1535 2019-08-16 Tom Tromey <tom@tromey.com>
1537 * tui/tui-winsource.h (struct tui_source_window_base)
1538 <m_has_locator>: Remove.
1539 * tui/tui-layout.c (show_source_disasm_command, show_data)
1540 (show_source_or_disasm_and_command): Update.
1542 2019-08-16 Alan Hayward <alan.hayward@arm.com>
1544 * NEWS (Other MI changes): New subsection.
1545 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
1546 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
1547 * arch-utils.c (default_get_pc_address_flags): New function.
1548 * arch-utils.h (default_get_pc_address_flags): New declaration.
1549 * gdbarch.sh: Add get_pc_address_flags.
1550 * gdbarch.c: Regenerate.
1551 * gdbarch.h: Likewise.
1552 * stack.c (print_pc): New function.
1553 (print_frame_info) (print_frame): Call print_pc.
1555 2019-08-16 Tom de Vries <tdevries@suse.de>
1557 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
1558 print_objfile_section_info.
1560 2019-08-15 Tom Tromey <tom@tromey.com>
1562 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
1563 calling update_cmdwin_start_line.
1564 * tui/tui-winsource.h (struct tui_source_window_base)
1565 <do_make_visible_with_new_height, set_new_height>: Don't declare.
1566 <rerender>: Declare.
1567 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
1569 (tui_source_window_base::set_new_height): Remove.
1570 (tui_source_window_base::rerender): Rename from
1571 do_make_visible_with_new_height.
1572 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
1574 (tui_win_info::make_invisible_and_set_new_height)
1575 (tui_win_info::make_visible_with_new_height): Remove.
1576 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
1578 * tui/tui-stack.c (tui_locator_window::rerender): New method.
1579 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
1580 do_make_visible_with_new_height>: Don't declare.
1581 <rerender>: Declare.
1582 * tui/tui-regs.c (tui_data_window::rerender): Rename from
1584 (tui_data_window::do_make_visible_with_new_height): Remove.
1585 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
1586 call tui_show_locator_content.
1587 (tui_gen_win_info::resize): Call rerender.
1588 (show_source_or_disasm_and_command): Don't call
1589 tui_show_locator_content.
1590 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
1592 (struct tui_win_info) <rerender>: Declare.
1593 <set_new_height, make_invisible_and_set_new_height,
1594 make_visible_with_new_height>: Don't declare.
1595 * tui/tui-data.c (tui_win_list::rerender): New method.
1596 * tui/tui-command.h (struct tui_cmd_window)
1597 <do_make_visible_with_new_height>: Don't declare.
1599 (tui_cmd_window::do_make_visible_with_new_height): Remove.
1601 2019-08-15 Tom Tromey <tromey@adacore.com>
1603 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
1604 * ada-lang.c (ada_enum_name): Likewise.
1606 2019-08-15 Christian Biesinger <cbiesinger@google.com>
1608 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
1610 (GdbOutputErrorFile): Likewise.
1611 (global scope): Adjust constructor calls to GdbOutput{,Error}File
1613 (execute_unwinders): Rename to have a leading underscore.
1614 (auto_load_packages): Likewise.
1615 (global scope): Adjust call to auto_load_packages accordingly.
1616 (GdbSetPythonDirectory): Likewise.
1617 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
1618 instead of execute_unwinders.
1620 2019-08-15 Tom Tromey <tom@tromey.com>
1622 * tui/tui-layout.c (show_layout, show_source_disasm_command)
1623 (show_data): Don't change window visibility.
1624 (tui_gen_win_info::resize): Remove special case for command
1625 window. Use wresize, when available.
1626 (show_source_or_disasm_and_command): Don't change window
1628 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
1629 <make_visible>: New method.
1630 * tui/tui-command.c (tui_cmd_window::resize): New method.
1632 2019-08-15 Tom Tromey <tom@tromey.com>
1634 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
1635 (struct tui_source_windows): New.
1636 * tui/tui-winsource.c (tui_display_main): Update.
1637 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1638 (new_height_ok, parse_scrolling_args): Update.
1639 * tui/tui-layout.c (show_layout, show_data): Update.
1640 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
1641 (tui_add_to_source_windows): Don't declare.
1642 * tui/tui-data.c (source_windows, tui_source_windows)
1643 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
1645 2019-08-15 Tom Tromey <tom@tromey.com>
1647 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
1649 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
1650 * tui/tui-layout.c (show_source_disasm_command, show_data):
1652 (tui_gen_win_info::resize): Rename.
1653 (show_source_or_disasm_and_command): Update.
1654 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
1657 2019-08-15 Tom Tromey <tom@tromey.com>
1659 * tui/tui-stack.c (tui_initialize_static_data): Remove.
1660 * tui/tui-interp.c (tui_interp::init): Don't call
1661 tui_initialize_static_data.
1662 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
1664 2019-08-15 Tom Tromey <tom@tromey.com>
1666 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
1667 examine tui_win_list.
1669 2019-08-15 Tom Tromey <tom@tromey.com>
1671 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
1672 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
1673 tui_clear_source_content.
1674 (tui_clear_source_content): Remove.
1675 (tui_source_window_base::do_erase_source_content): Hoist call to
1677 * tui/tui-stack.c (tui_show_frame_info): Don't call
1678 tui_clear_source_content.
1680 2019-08-15 Tom Tromey <tom@tromey.com>
1682 * tui/tui-winsource.h (struct tui_source_window_base)
1683 <do_erase_source_content>: New method.
1684 <erase_source_content>: New method.
1685 (tui_erase_source_content): Don't declare.
1686 * tui/tui-winsource.c (tui_clear_source_content): Update.
1687 (tui_source_window_base::do_erase_source_content): Rename from
1688 tui_erase_source_content.
1689 (tui_source_window_base::show_source_content): Update.
1690 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1691 * tui/tui-source.h (struct tui_source_window)
1692 <erase_source_content>: New method.
1693 * tui/tui-disasm.h (struct tui_disasm_window)
1694 <erase_source_content>: New method.
1696 2019-08-15 Tom Tromey <tom@tromey.com>
1698 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
1699 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
1701 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
1702 * tui/tui-source.c (tui_set_source_content): Update.
1703 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1705 2019-08-15 Tom Tromey <tom@tromey.com>
1707 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
1708 * tui/tui-winsource.c (tui_line_is_displayed): Move to
1710 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
1712 * tui/tui-source.c (tui_source_window::line_is_displayed): New
1714 (tui_source_window::maybe_update): Update.
1716 2019-08-15 Tom Tromey <tom@tromey.com>
1718 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
1719 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
1721 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
1723 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
1725 (tui_disasm_window::maybe_update): Update.
1727 2019-08-15 Tom Tromey <tom@tromey.com>
1729 * tui/tui-winsource.h (struct tui_source_window_base)
1730 <maybe_update>: Declare.
1731 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
1733 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
1735 * tui/tui-source.c (tui_source_window::maybe_update): New method.
1736 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
1738 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
1740 2019-08-15 Tom Tromey <tom@tromey.com>
1742 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
1744 2019-08-15 Tom Tromey <tom@tromey.com>
1746 * tui/tui-wingeneral.c: Include tui-stack.h.
1747 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
1748 (struct tui_locator_window): Move from tui-data.h.
1749 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
1750 (tui_initialize_static_data): Move from tui-data.c.
1751 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
1752 (struct tui_locator_window): Move to tui-stack.c.
1753 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
1754 (tui_initialize_static_data): Move to tui-stack.c.
1756 2019-08-15 Tom Tromey <tom@tromey.com>
1758 * tui/tui-layout.c (show_source_disasm_command)
1759 (show_source_or_disasm_and_command): Use make_visible method, not
1761 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
1764 2019-08-15 Tom Tromey <tom@tromey.com>
1766 * tui/tui-wingeneral.h (tui_make_window): Update.
1767 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
1769 (tui_gen_win_info::make_visible): Update.
1770 * tui/tui-regs.c (tui_data_window::display_registers_from):
1772 * tui/tui-layout.c (show_source_disasm_command)
1773 (show_source_or_disasm_and_command): Update.
1774 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
1775 (enum tui_box): Remove.
1776 (struct tui_win_info) <can_box>: New method.
1777 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
1780 2019-08-15 Tom de Vries <tdevries@suse.de>
1782 * linux-nat-trad.c: Include gdbarch.h.
1784 2019-08-14 Alan Hayward <alan.hayward@arm.com>
1786 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
1789 2019-08-14 Tom Tromey <tromey@adacore.com>
1791 * darwin-nat.c: Include gdbarch.h.
1792 * darwin-nat-info.c: Include gdbarch.h.
1794 2019-08-13 Tom Tromey <tom@tromey.com>
1796 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
1798 * tui/tui-data.c (tui_initialize_static_data): Update.
1800 2019-08-13 Tom Tromey <tom@tromey.com>
1802 * tui/tui-winsource.h (struct tui_exec_info_window)
1803 <~tui_exec_info_window, maybe_allocate_content, get_content,
1805 (struct tui_source_window_base) <set_exec_info_content,
1806 show_exec_info_content>: Don't declare.
1807 * tui/tui-winsource.c
1808 (tui_exec_info_window::maybe_allocate_content): Remove.
1809 (tui_source_window_base::update_exec_info): Rename from
1810 set_exec_info_content.
1811 (tui_source_window_base::show_exec_info_content)
1812 (tui_source_window_base::update_exec_info): Remove.
1814 2019-08-13 Tom Tromey <tom@tromey.com>
1816 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
1818 * tui/tui-winsource.c (tui_update_source_window_as_is)
1819 (tui_update_source_windows_with_addr, tui_erase_source_content):
1821 (tui_clear_exec_info_content): Remove.
1823 2019-08-13 Tom Tromey <tom@tromey.com>
1825 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
1827 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
1828 call tui_erase_exec_info_content.
1829 (tui_clear_exec_info_content): Rename from
1830 tui_erase_exec_info_content.
1831 (tui_clear_exec_info_content): Delete.
1833 2019-08-13 Tom Tromey <tom@tromey.com>
1835 * tui/tui-winsource.h (struct tui_source_window_base)
1836 <show_exec_info_content>: Declare.
1837 (tui_show_exec_info_content): Don't declare.
1838 * tui/tui-winsource.c
1839 (tui_source_window_base::show_exec_info_content): Rename from
1840 tui_show_exec_info_content.
1841 (tui_source_window_base::update_exec_info): Update.
1843 2019-08-13 Tom Tromey <tom@tromey.com>
1845 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
1846 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
1847 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
1848 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
1849 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
1850 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
1853 2019-08-13 Tom Tromey <tom@tromey.com>
1855 * tui/tui-winsource.h (struct tui_source_window_base)
1856 <update_exec_info>: Declare.
1857 (tui_update_exec_info): Don't declare.
1858 * tui/tui-winsource.c (tui_update_source_window_as_is)
1859 (tui_source_window_base::refresh_all)
1860 (tui_update_all_breakpoint_info): Update.
1861 (tui_source_window_base::update_exec_info): Rename from
1862 tui_update_exec_info.
1863 * tui/tui-stack.c (tui_show_frame_info): Update.
1865 2019-08-13 Tom Tromey <tom@tromey.com>
1867 * tui/tui-winsource.h (struct tui_source_window_base)
1868 <set_exec_info_content>: Declare.
1869 (tui_set_exec_info_content): Don't declare.
1870 * tui/tui-winsource.c
1871 (tui_source_window_base::set_exec_info_content): Rename from
1872 tui_set_exec_info_content.
1873 (tui_update_exec_info): Update.
1875 2019-08-13 Tom Tromey <tom@tromey.com>
1877 * tui/tui-winsource.h (struct tui_source_window_base)
1878 <show_source_content>: Declare.
1879 (tui_show_source_content): Don't declare.
1880 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1881 (tui_source_window_base::show_source_content): Rename from
1882 tui_show_source_content.
1883 (tui_source_window_base::refresh_all): Update.
1884 * tui/tui-layout.c (show_source_disasm_command)
1885 (show_source_or_disasm_and_command): Update.
1887 2019-08-13 Tom Tromey <tom@tromey.com>
1889 * tui/tui-winsource.c (tui_erase_source_content)
1890 (tui_show_source_content, tui_source_window_base::refresh_all):
1892 * tui/tui-wingeneral.h
1893 (tui_check_and_display_highlight_if_needed): Don't declare.
1894 * tui/tui-wingeneral.c
1895 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1896 check_and_display_highlight_if_needed.
1897 * tui/tui-win.c (tui_rehighlight_all)
1898 (tui_win_info::make_visible_with_new_height): Update.
1899 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1900 (tui_data_window::erase_data_content)
1901 (tui_data_window::display_all_data): Update.
1902 * tui/tui-data.h (struct tui_win_info)
1903 <check_and_display_highlight_if_needed>: Declare.
1905 2019-08-13 Tom Tromey <tom@tromey.com>
1907 * tui/tui-win.c (tui_resize_all): Call
1908 tui_delete_invisible_windows.
1909 * tui/tui-layout.c (show_layout): Call
1910 tui_delete_invisible_windows.
1911 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1912 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1914 2019-08-13 Tom Tromey <tom@tromey.com>
1916 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1917 tui_add_win_to_layout.
1919 2019-08-13 Tom Tromey <tom@tromey.com>
1921 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1922 * tui/tui-layout.c (tui_default_win_height): Now static.
1924 2019-08-13 Tom Tromey <tom@tromey.com>
1926 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1928 (show_source_disasm_command, show_source_or_disasm_and_command):
1929 Don't check current layout.
1931 2019-08-13 Tom Tromey <tom@tromey.com>
1933 * tui/tui-wingeneral.c (make_all_visible): Remove.
1934 (tui_make_all_invisible): Simplify.
1935 * tui/tui-layout.c (tui_make_all_invisible): Move from
1936 tui-wingeneral.c; simplify.
1937 (show_layout): Hoist call to tui_make_all_invisible.
1938 (show_data): Don't call tui_make_all_invisible.
1940 2019-08-13 Tom Tromey <tom@tromey.com>
1942 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1943 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1945 2019-08-13 Tom Tromey <tom@tromey.com>
1947 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1949 (show_source_disasm_command, show_data)
1950 (show_source_or_disasm_and_command): Don't use
1951 tui_set_current_layout_to.
1952 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1953 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1955 (tui_set_current_layout_to): Remove.
1957 2019-08-13 Tom Tromey <tom@tromey.com>
1959 * tui/tui-layout.c (tui_set_layout): Update.
1960 * tui/tui-data.h (struct tui_layout_def): Remove.
1961 (tui_layout_def): Don't declare.
1962 * tui/tui-data.c (layout_def): Remove.
1963 (tui_layout_def): Remove.
1965 2019-08-13 Tom Tromey <tom@tromey.com>
1967 * tui/tui-winsource.h (struct tui_source_window_base)
1968 <clear_detail>: No longer "override".
1969 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1970 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1971 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1972 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1974 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1976 2019-08-13 Tom Tromey <tromey@adacore.com>
1978 * tracepoint.c: Don't include readline.h or history.h.
1980 2019-08-12 Tom Tromey <tom@tromey.com>
1982 * configure: Rebuild.
1983 * configure.ac: Check for readline 7.
1984 * NEWS: Mention readline 7 requirement.
1987 2019-08-12 Tom Tromey <tom@tromey.com>
1989 * mingw-hdep.c (gdb_select): Remove readline hack.
1991 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1993 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1994 when the function fails.
1996 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1998 * s390-tdep.c (s390_type_align): New function.
1999 (s390_gdbarch_init): Set it as type_align gdbarch method.
2001 2019-08-09 Tom de Vries <tdevries@suse.de>
2004 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
2005 pc_low with relocation offset.
2007 2019-08-07 Tom Tromey <tromey@adacore.com>
2009 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2010 (print_frame_args): Update.
2011 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
2013 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2014 * frame.h (struct frame_arg): Add initializers.
2015 <error>: Now a unique_xmalloc_ptr.
2017 2019-08-07 Alan Hayward <alan.hayward@arm.com>
2019 * NEWS: Expand the Pointer Authentication entry.
2020 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
2021 (aarch64_frame_unmask_lr): ... to this.
2022 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
2023 Call aarch64_frame_unmask_lr.
2024 * frame.c (struct frame_info): Add "masked" variable.
2025 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
2026 (fprint_frame): Check for masked pc.
2027 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
2029 * python/py-framefilter.c (py_print_frame): Check for masked pc.
2030 * stack.c (print_frame): Check for masked pc.
2032 2019-08-06 Tom Tromey <tom@tromey.com>
2034 * stabsread.c (patch_block_stabs, read_one_struct_field)
2035 (read_enum_type): Use obstack_strndup.
2036 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
2037 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
2038 * dwarf2read.c (guess_full_die_structure_name)
2039 (anonymous_struct_prefix): Use obstack_strndup.
2040 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
2041 * c-exp.y (yylex): Use obstack_strndup.
2042 * ada-exp.y (write_object_renaming, write_ambiguous_var)
2043 (write_var_or_type): Use obstack_strndup.
2045 2019-08-06 Tom Tromey <tom@tromey.com>
2047 * symfile.c (reread_symbols): Use obstack_strdup.
2048 * stabsread.c (read_type): Use obstack_strdup.
2049 * gdb_obstack.h (obstack_strdup): New overload.
2050 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2051 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2052 (dwarf2_canonicalize_name): Use obstack_strdup.
2053 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2054 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2057 2019-08-06 Tom Tromey <tom@tromey.com>
2059 * gdb_obstack.h (obstack_strdup): Define.
2060 * gdb_obstack.c (obstack_strdup): Don't define.
2062 2019-08-06 Tom Tromey <tom@tromey.com>
2064 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2066 * typeprint.c (typedef_hash_table::find_global_typedef): Use
2068 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2069 * stabsread.c (common_block_start): Use obstack_strdup.
2070 * objfiles.c (set_objfile_main_name, objfile): Use
2072 * namespace.c (add_using_directive): Use obstack_strdup.
2073 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2074 * jit.c (finalize_symtab): Use obstack_strdup.
2075 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2076 (guess_partial_die_structure_name, partial_die_info::fixup)
2077 (dwarf2_name): Use obstack_strdup.
2078 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2080 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2081 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2083 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2085 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2087 * unittests/help-doc-selftests.c: New file.
2088 * Makefile.in: Add the new file.
2090 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2092 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2093 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2094 the full first line, except when FOR_VALUE_PREFIX. In this case,
2095 the trailing '.' is not output, and the first character is uppercased.
2096 (print_help_for_command): Update call to print_doc_line.
2097 (print_doc_of_command): Likewise.
2098 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2099 * cli/cli-option.c (append_indented_doc): Do not append newline.
2100 (build_help_option): Append newline after first appended_indented_doc
2101 only if a second call is done.
2102 (build_help): Append 2 new lines before each option, except the first
2104 * compile/compile.c (_initialize_compile): Add new lines after
2105 %OPTIONS%, when not at the end of the help.
2106 Change help doc or code
2107 producing the help doc to respect the invariants.
2108 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2109 Also removed the new line after 'Options:', as all other commands
2110 do not put an empty line between 'Options:' and the first option.
2111 * printcmd.c (_initialize_printcmd): Likewise.
2112 * stack.c (_initialize_stack): Likewise.
2113 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2114 incorrectly telling COMMAND is optional.
2115 * ada-lang.c (_initialize_ada_language): Change help doc or code
2116 producing the help doc to respect the invariants.
2117 * ada-tasks.c (_initialize_ada_tasks): Likewise.
2118 * breakpoint.c (_initialize_breakpoint): Likewise.
2119 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2120 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2121 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2122 * cli/cli-style.c (cli_style_option::add_setshow_commands,
2123 _initialize_cli_style): Likewise.
2124 * corelow.c (core_target_info): Likewise.
2125 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2126 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
2127 * filesystem.c (_initialize_filesystem): Likewise.
2128 * frame.c (_initialize_frame): Likewise.
2129 * gnu-nat.c (add_task_commands): Likewise.
2130 * infcall.c (_initialize_infcall): Likewise.
2131 * infcmd.c (_initialize_infcmd): Likewise.
2132 * interps.c (_initialize_interpreter): Likewise.
2133 * language.c (_initialize_language): Likewise.
2134 * linux-fork.c (_initialize_linux_fork): Likewise.
2135 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
2136 * maint.c (_initialize_maint_cmds): Likewise.
2137 * memattr.c (_initialize_mem): Likewise.
2138 * printcmd.c (_initialize_printcmd): Likewise.
2139 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
2141 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
2142 * record-btrace.c (_initialize_record_btrace): Likewise.
2143 * record-full.c (_initialize_record_full): Likewise.
2144 * record.c (_initialize_record): Likewise.
2145 * regcache-dump.c (_initialize_regcache_dump): Likewise.
2146 * regcache.c (_initialize_regcache): Likewise.
2147 * remote.c (add_packet_config_cmd, init_remote_threadtests,
2148 _initialize_remote): Likewise.
2149 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2150 * serial.c (_initialize_serial): Likewise.
2151 * skip.c (_initialize_step_skip): Likewise.
2152 * source.c (_initialize_source): Likewise.
2153 * stack.c (_initialize_stack): Likewise.
2154 * symfile.c (_initialize_symfile): Likewise.
2155 * symtab.c (_initialize_symtab): Likewise.
2156 * target-descriptions.c (_initialize_target_descriptions): Likewise.
2157 * top.c (init_main): Likewise.
2158 * tracefile-tfile.c (tfile_target_info): Likewise.
2159 * tracepoint.c (_initialize_tracepoint): Likewise.
2160 * tui/tui-win.c (_initialize_tui_win): Likewise.
2161 * utils.c (add_internal_problem_command): Likewise.
2162 * valprint.c (value_print_option_defs): Likewise.
2164 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
2167 * configure.ac: Drop enable-libmcheck support.
2168 * configure, config.in: Rebuild.
2169 * libmcheck.m4: Remove.
2170 * acinclude.m4: Don't include it.
2171 * Makefile.in: Don't distribute it.
2172 * top.c (print_gdb_configuration): Don't mention it.
2174 2019-08-06 Tom Tromey <tom@tromey.com>
2176 * utils.c (set_output_style): Sometimes pass stream to
2178 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
2179 * record-btrace.c (btrace_insn_history): Update.
2180 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
2182 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2183 Update initializers.
2184 <m_uiout>: New field.
2186 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2187 Remove "uiout" parameter.
2188 (dump_insns): Update.
2189 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2190 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2192 2019-08-06 Christian Biesinger <cbiesinger@google.com>
2194 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2195 (error_in_psymtab_expansion): Likewise.
2196 (lookup_symbol_via_quick_fns): Likewise.
2197 (basic_lookup_transparent_type_quick): Likewise.
2198 (basic_lookup_transparent_type_1): Likewise.
2200 2019-08-06 Tom Tromey <tromey@adacore.com>
2202 * source.c (last_source_error): Now bool.
2203 (print_source_lines_base): Make "noprint" bool. Only open
2204 source file when last_source_visited changes.
2206 2019-08-06 Tom Tromey <tromey@adacore.com>
2208 * annotate.c (annotate_source_line): Use g_source_cache.
2209 * source-cache.c (source_cache::get_plain_source_lines): Change
2210 parameters. Populate m_offset_cache.
2211 (source_cache::ensure): New method.
2212 (source_cache::get_line_charpos): New method.
2213 (extract_lines): Move lower. Change parameters.
2214 (source_cache::get_source_lines): Move lower.
2215 * source-cache.h (class source_cache): Update comment.
2216 <get_line_charpos>: New method.
2217 <get_source_lines>: Update comment.
2218 <clear>: Clear m_offset_cache.
2219 <get_plain_source_lines>: Change parameters.
2220 <ensure>: New method
2221 <m_offset_cache>: New member.
2222 * source.c (forget_cached_source_info_for_objfile): Update.
2223 (info_source_command): Use g_source_cache.
2224 (find_source_lines, open_source_file_with_line_charpos): Remove.
2225 (print_source_lines_base, search_command_helper): Use g_source_cache.
2226 * source.h (open_source_file_with_line_charpos): Don't declare.
2227 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2228 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2231 2019-08-06 Tom Tromey <tromey@adacore.com>
2233 * source-cache.c (source_cache::get_plain_source_lines):
2234 Remove "first_line" and "last_line" parameters.
2235 (source_cache::get_source_lines): Cache plain text.
2236 * source-cache.h (class source_cache)
2237 <get_plain_source_lines>: Update.
2239 2019-08-06 Tom Tromey <tromey@adacore.com>
2241 * source-cache.c (extract_lines): No longer a method.
2242 Changed type of parameter. Include final newline.
2243 (selftests::extract_lines_test): New function.
2244 (_initialize_source_cache): Likewise.
2245 * source-cache.h (class source_cache)
2246 <extract_lines>: Don't declare.
2248 2019-08-06 Tom Tromey <tromey@adacore.com>
2250 * breakpoint.c (init_breakpoint_sal): Update.
2251 (breakpoint): Update.
2252 * breakpoint.h (struct breakpoint) <filter>: Now a
2255 2019-08-05 Christian Biesinger <cbiesinger@google.com>
2257 * NEWS: Mention dictionary access on blocks.
2258 * python/py-block.c (blpy_getitem): New function.
2259 (block_object_as_mapping): New struct.
2260 (block_object_type): Use new struct for tp_as_mapping field.
2262 2019-08-05 Christian Biesinger <cbiesinger@google.com>
2264 * objfiles.h (objfile): Add a comment describing partial symbols.
2266 2019-08-05 Tom Tromey <tromey@adacore.com>
2268 * compile/compile.c (_initialize_compile): Use _(), not N_().
2269 * thread.c (_initialize_thread): Use _(), not N_().
2270 * stack.c (_initialize_stack): Use _(), not N_().
2271 * printcmd.c (_initialize_printcmd): Use _(), not N_().
2273 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2275 * dwarf2read.c (struct dw2_symtab_iterator):
2276 <want_specific_block>: Remove.
2277 <block_index>: Change type to gdb::optional.
2278 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2279 change type of BLOCK_INDEX parameter to gdb::optional.
2280 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2281 (dw2_lookup_symbol): Don't pass argument for
2282 WANT_SPECIFIC_BLOCK.
2283 (dw2_expand_symtabs_for_function): Don't pass argument for
2284 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2285 (class dw2_debug_names_iterator)
2286 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2287 parameter, change BLOCK_INDEX type to gdb::optional.
2288 <m_want_specific_block>: Remove.
2289 <m_block_index>: Change type to gdb::optional.
2290 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2291 gdb::optional. Re-write in function of gdb::optional.
2292 (dw2_debug_names_lookup_symbol): Don't pass argument for
2293 WANT_SPECIFIC_BLOCK.
2294 (dw2_debug_names_expand_symtabs_for_function): Don't pass
2295 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
2298 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2300 * NEWS: Mention changes to "info sources" command.
2302 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2304 * symtab.c (filename_partial_match_opts): New struct type.
2305 (struct output_source_filename_data): New members
2306 regexp, c_regexp, partial_match.
2307 (output_source_filename): Use new members to decide to print file.
2308 (info_sources_option_defs): New variable.
2309 (make_info_sources_options_def_group, print_info_sources_header,
2310 info_sources_command_completer):
2312 (info_sources_command): Read new optional arguments.
2313 (_initialize_symtab): Update info sources help.
2315 2019-08-02 Alexandre Oliva <oliva@adacore.com>
2317 * ada-lang.c (exception_support_info_v0): Renamed from...
2318 (default_exception_support_info): ... this. Create new
2320 (ada_has_this_exception_support): Look up catch_handlers_sym.
2321 (ada_exception_support_info_sniffer): Try v0 after default.
2323 2019-08-01 Tom Tromey <tromey@adacore.com>
2325 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
2328 2019-08-01 Christian Biesinger <cbiesinger@google.com>
2330 * s12z-tdep.c: Fix include path for s12z-opc.h.
2332 2019-08-01 Alan Hayward <alan.hayward@arm.com>
2334 * NEWS: Require GNU make 3.82.
2336 2019-07-16 Tom Tromey <tom@tromey.com>
2338 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2341 2019-07-30 Tom Tromey <tromey@adacore.com>
2343 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2345 2019-07-30 Kevin Buettner <kevinb@redhat.com>
2347 * printcmd.c (print_address_symbolic): Print negative offsets.
2348 (build_address_symbolic): Force signed arithmetic when computing
2351 2019-07-30 Christian Biesinger <cbiesinger@google.com>
2353 PR/24474: Add a function to lookup static variables.
2354 * NEWS: Mention this new function.
2355 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2356 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2357 * python/python.c (python_GdbMethods): Add new function.
2359 2019-07-29 Christian Biesinger <cbiesinger@google.com>
2361 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2362 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2363 (objfpy_lookup_static_symbol): New function.
2364 (objfile_object_methods): Add new functions.
2366 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2368 * NEWS: Mention 'set|show print frame-info'. Mention new
2369 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2370 backtrace argument. Mention that python frame filtering code
2371 is now consistent with what 'backtrace' command prints.
2373 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2375 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2377 (print_frame_info_auto, print_frame_info_source_line,
2378 print_frame_info_location, print_frame_info_source_and_location,
2379 print_frame_info_location_and_address, print_frame_info_short_location):
2381 (struct frame_print_options): New member print_frame_info.
2382 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
2383 * stack.h (get_user_print_what_frame_info): New declaration.
2384 (frame_show_address): New declaration.
2385 * stack.c (print_frame_arguments_choices): New value 'presence'.
2386 (print_frame_info_auto, print_frame_info_source_line,
2387 print_frame_info_location, print_frame_info_source_and_location,
2388 print_frame_info_location_and_address, print_frame_info_short_location,
2389 print_frame_info_choices, print_frame_info_print_what): New definitions.
2390 (print_frame_args): Only print dots for args if print frame-arguments
2392 (frame_print_option_defs): New element for "frame-info".
2393 (get_user_print_what_frame_info): New function.
2394 (frame_show_address): Make non static. Move comment to stack.h.
2395 (print_frame_info_to_print_what): New function.
2396 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2397 to decide what to print.
2398 (backtrace_command_1): Handle the new print_frame_arguments_presence
2400 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2401 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2402 (py_print_frame): In non-mi mode, use LOCATION as default for
2403 print_what, similarly to frame information printed directly by
2404 backtrace command. Handle frame-info user option in non MI mode.
2406 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2408 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2409 Add case for debugging 32-bit target on 64-bit host. Revise
2412 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2414 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2415 instead of find_function_entry_range_from_pc.
2417 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2419 * stack.c (find_frame_funname): Remove code which preferred
2420 minsym over symtab sym in "certain pathological cases".
2422 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2423 parameter. Change type of "do_demangle" to bool.
2424 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2425 Pass suitable "prefer_sym_over_minsym" flag to
2426 build_address_symbolic(). Don't output "+" for negative offsets.
2427 * printcmd.c (print_address_symbolic): Update invocation of
2428 build_address_symbolic to include a "prefer_sym_over_minsym"
2430 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2431 Restrict cases in which use of minimal symbol is preferred to that
2432 of a found symbol. Update comments.
2434 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2435 for entry pc when entry pc is out of range for that FDE.
2437 2019-07-26 Brian Callahan <bcallah@openbsd.org>
2440 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2443 2019-07-25 Christian Biesinger <cbiesinger@google.com>
2445 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2446 this function's Python signature.
2449 2019-07-24 Christian Biesinger <cbiesinger@google.com>
2451 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2452 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2453 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2454 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2455 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2458 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2460 * h8300-tdep.c (h8300_register_name_common): New.
2461 h8300_register_name): Use h8300_register_name_common.
2462 (h8300s_register_name): Likewise.
2463 (h8300sx_register_name): Likewise.
2464 (h8300h_register_nam): New.
2465 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2468 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2470 * arm-tdep.c (arm_skip_cmse_entry): New function.
2471 (arm_is_sgstubs_section): New function.
2472 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2474 2019-07-22 Tom Tromey <tom@tromey.com>
2476 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2479 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2481 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2484 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2486 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2487 so that GDB doesn't match any msymbols when searching in the
2489 (print_symbol_info): Print using typedef_print or type_print based
2490 on the type of the symbol. Add updated FIXME comment moved from...
2491 (_initialize_symtab): ... move and update FIXME comment to above.
2493 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2495 * NEWS: Mention adding -q option to "info types".
2496 * symtab.c (struct info_types_options): New struct.
2497 (info_types_options_defs): New variable.
2498 (make_info_types_options_def_group): New function.
2499 (info_types_command): Use gdb::option framework to parse options.
2500 (info_types_command_completer): New function.
2501 (_initialize_symtab): Extend the help text on "info types" and
2502 register command completer.
2504 2019-07-21 Christian Biesinger <cbiesinger@google.com>
2506 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2507 (lookup_symbol_in_objfile): Change int to block_enum and add a
2508 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2510 2019-07-20 Christian Biesinger <cbiesinger@google.com>
2512 * MAINTAINERS (Write After Approval): Add self.
2514 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2516 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2517 instruction to the dummy code region.
2519 2019-07-19 Tom Tromey <tromey@adacore.com>
2521 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2522 (ARGSUSED, PARAMS, __func__): Remove rules.
2524 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2526 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
2527 * features/arm/arm-with-iwmmxt.c: Remove.
2528 * features/arm/arm-with-iwmmxt.xml: Remove.
2529 * features/arm/arm-with-m-fpa-layout.c: Remove.
2530 * features/arm/arm-with-m-fpa-layout.xml: Remove.
2531 * features/arm/arm-with-m-vfp-d16.c: Remove.
2532 * features/arm/arm-with-m-vfp-d16.xml: Remove.
2533 * features/arm/arm-with-m.c: Remove.
2534 * features/arm/arm-with-m.xml: Remove.
2535 * features/arm/arm-with-neon.c: Remove.
2536 * features/arm/arm-with-neon.xml: Remove.
2537 * features/arm/arm-with-vfpv2.c: Remove.
2538 * features/arm/arm-with-vfpv2.xml: Remove.
2539 * features/arm/arm-with-vfpv3.c: Remove.
2540 * features/arm/arm-with-vfpv3.xml: Remove.
2542 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2544 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
2546 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2548 * arch/aarch32.c (aarch32_create_target_description): Create
2549 target descriptions using features.
2550 * arch/arm.c (arm_create_target_description)
2551 (arm_create_mprofile_target_description): Likewise.
2552 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
2554 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2556 * Makefile.in: Add new files.
2557 * aarch32-tdep.c: New file.
2558 * aarch32-tdep.h: New file.
2559 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2560 Call aarch32_read_description.
2561 * arch/aarch32.c: New file.
2562 * arch/aarch32.h: New file.
2563 * arch/arm.c (arm_create_target_description)
2564 (arm_create_mprofile_target_description): New function.
2565 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
2566 (arm_create_target_description)
2567 (arm_create_mprofile_target_description): New declaration.
2568 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
2569 read_description functions.
2570 * arm-linux-nat.c (arm_linux_nat_target::read_description):
2572 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2573 * arm-tdep.c (tdesc_arm_list): New variable.
2574 (arm_register_g_packet_guesses): Call create description functions.
2575 (arm_read_description) (arm_read_mprofile_description): New
2577 * arm-tdep.h (arm_read_description)
2578 (arm_read_mprofile_description): Add declaration.
2579 * configure.tgt: Add new files.
2581 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
2583 * top.c (new_ui_command): Open specified terminal just once.
2585 2019-07-18 Tom Tromey <tromey@adacore.com>
2587 * symtab.c (main_name): Constify return type.
2588 * symfile.c (set_initial_language): Update.
2589 * symtab.h (main_name): Constify return type.
2591 2019-07-17 Tom Tromey <tom@tromey.com>
2593 * tui/tui-winsource.c (tui_update_source_window)
2594 (tui_update_source_window_as_is)
2595 (tui_update_source_windows_with_line): Remove return.
2596 * tui/tui-disasm.c (tui_show_disassem)
2597 (tui_show_disassem_and_update_source): Remove return.
2598 * tui/tui.c (tui_reset): Remove return.
2599 * tui/tui-wingeneral.c
2600 (tui_check_and_display_highlight_if_needed): Remove return.
2602 2019-07-17 Tom Tromey <tom@tromey.com>
2604 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2606 2019-07-17 Tom Tromey <tom@tromey.com>
2608 * tui/tui-winsource.h (struct tui_exec_info_window)
2609 (struct tui_source_window_base): Move from tui-data.h.
2610 * tui/tui-winsource.c: Move many method definitions from
2611 elsewhere. Remove "structuring" comments.
2612 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
2613 (tui_source_window_base::refresh_window): Move to
2615 * tui/tui-win.c (tui_source_window_base::refresh_all)
2616 (tui_source_window_base::update_tab_width)
2617 (tui_source_window_base::set_new_height)
2618 (tui_source_window_base::do_make_visible_with_new_height): Move to
2620 * tui/tui-source.h: Update.
2621 * tui/tui-source.c (tui_source_window_base::reset): Move to
2623 * tui/tui-disasm.h: Update.
2624 * tui/tui-data.h (struct tui_exec_info_window): Move to
2626 (struct tui_source_window_base): Likewise.
2627 * tui/tui-data.c (tui_source_window_base::clear_detail)
2628 (tui_source_window_base, ~tui_source_window_base): Move to
2631 2019-07-17 Tom Tromey <tom@tromey.com>
2633 * tui/tui-win.c (tui_resize_all)
2634 (tui_source_window_base::update_tab_width)
2635 (tui_adjust_win_heights): Update.
2636 (tui_win_info::make_invisible_and_set_new_height): Rename from
2637 make_invisible_and_set_new_height.
2638 * tui/tui-data.h (struct tui_win_info)
2639 <make_invisible_and_set_new_height>: New method.
2641 2019-07-17 Tom Tromey <tom@tromey.com>
2643 * tui/tui.c: Update.
2644 * tui/tui-source.h (struct tui_source_window): Move from
2646 * tui/tui-layout.c: Update.
2647 * tui/tui-disasm.c: Update.
2648 * tui/tui-data.h (struct tui_source_window): Move to
2651 2019-07-17 Tom Tromey <tom@tromey.com>
2653 * tui/tui-disasm.h (struct tui_disasm_window): Move from
2655 * tui/tui-data.h (struct tui_disasm_window): Move to
2658 2019-07-17 Tom Tromey <tom@tromey.com>
2660 * tui/tui-regs.h (struct tui_data_item_window): Move from
2662 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
2663 * tui/tui-data.h (struct tui_data_item_window): Move to
2665 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
2667 2019-07-17 Tom Tromey <tom@tromey.com>
2669 * tui/tui.c: Update.
2670 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
2671 (tui_cmd_window::max_height): Move to tui-command.c.
2672 * tui/tui-layout.c: Update.
2673 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
2674 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
2676 * tui/tui-command.h (struct tui_cmd_window): Move from
2678 * tui/tui-command.c: Remove "structuring" comments.
2679 (tui_cmd_window::clear_detail)
2680 (tui_cmd_window::do_make_visible_with_new_height)
2681 (tui_cmd_window::max_height): Move from elsewhere.
2683 2019-07-17 Tom Tromey <tom@tromey.com>
2685 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
2687 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
2688 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
2690 2019-07-17 Tom Tromey <tom@tromey.com>
2692 * tui/tui.c: Update.
2693 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
2695 * tui/tui-windata.h: Remove file.
2696 * tui/tui-windata.c: Remove file.
2697 * tui/tui-win.c (tui_data_window::set_new_height)
2698 (tui_data_window::do_make_visible_with_new_height): Move to
2700 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
2701 * tui/tui-regs.c: Remove "structuring" comments.
2702 (tui_data_window::first_data_item_displayed)
2703 (tui_data_window::delete_data_content_windows)
2704 (tui_data_window::erase_data_content)
2705 (tui_data_window::display_all_data)
2706 (tui_data_window::refresh_all)
2707 (tui_data_window::do_scroll_vertical)
2708 (tui_data_window::clear_detail, tui_data_window::set_new_height)
2709 (tui_data_window::do_make_visible_with_new_height)
2710 (tui_data_window::refresh_window): Move from elsewhere.
2711 (_initialize_tui_regs): Move to end of file.
2712 * tui/tui-layout.c: Update.
2713 * tui/tui-hooks.c: Update.
2714 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
2715 * tui/tui-data.c (tui_data_window::clear_detail): Move to
2717 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
2719 2019-07-17 Tom Tromey <tom@tromey.com>
2721 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
2724 2019-07-17 Tom Tromey <tom@tromey.com>
2726 * tui/tui-win.c (tui_source_window_base::set_new_height)
2727 (tui_source_window_base::do_make_visible_with_new_height): Use
2728 m_has_locator field directly.
2729 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
2731 (struct tui_source_window_base) <has_locator>: Likewise.
2733 2019-07-17 Tom Tromey <tom@tromey.com>
2735 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
2737 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
2739 * tui/tui-win.c (tui_source_window_base::set_new_height)
2740 (tui_source_window_base::set_new_height)
2741 (make_invisible_and_set_new_height)
2742 (tui_source_window_base::do_make_visible_with_new_height)
2743 (tui_source_window_base::do_make_visible_with_new_height):
2745 * tui/tui-layout.c (show_source_disasm_command, show_data)
2746 (show_source_or_disasm_and_command): Update.
2747 * tui/tui-layout.c (show_layout): Update.
2749 2019-07-17 Tom Tromey <tom@tromey.com>
2751 * tui/tui-layout.c (make_data_window): Remove.
2752 (show_data): Unify creation and re-initialization cases.
2754 2019-07-17 Tom Tromey <tom@tromey.com>
2756 * tui/tui-layout.c (make_source_window, make_disasm_window):
2758 (show_data): Unify creation and re-initialization cases.
2760 2019-07-17 Tom Tromey <tom@tromey.com>
2762 * tui/tui-layout.c (make_command_window): Remove.
2763 (show_source_disasm_command, show_source_or_disasm_and_command):
2764 Unify creation and re-initialization cases.
2766 2019-07-17 Tom Tromey <tom@tromey.com>
2768 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
2769 creation and re-initialization cases.
2771 2019-07-17 Tom Tromey <tom@tromey.com>
2773 * tui/tui-regs.c (tui_get_register): Return void.
2775 2019-07-17 Tom Tromey <tom@tromey.com>
2777 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
2780 2019-07-17 Tom Tromey <tom@tromey.com>
2782 * tui/tui-layout.c (show_source_disasm_command): Simplify window
2785 2019-07-17 Tom Tromey <tom@tromey.com>
2787 * tui/tui.h (tui_set_layout_by_name): Don't declare.
2788 * tui/tui-regs.c (tui_reg_layout): New function.
2789 (tui_show_registers, tui_reg_command): Use it.
2790 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
2791 (tui_layout_command): Rename from tui_set_layout_by_name. Change
2793 (tui_layout_command): Remove.
2795 2019-07-17 Tom Tromey <tom@tromey.com>
2797 * tui/tui-layout.h (tui/tui-layout): Return void.
2798 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
2800 2019-07-17 Tom Tromey <tom@tromey.com>
2802 * tui/tui-layout.c (show_source_disasm_command, show_data):
2804 (reset_locator): Remove.
2805 (show_source_or_disasm_and_command): Update.
2807 2019-07-17 Tom Tromey <tom@tromey.com>
2809 * tui/tui-source.c (tui_source_window_base::reset): Remove
2811 * tui/tui-layout.c (make_command_window, make_source_window)
2812 (make_disasm_window, make_data_window)
2813 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
2814 (reset_locator, show_source_or_disasm_and_command): Update.
2815 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
2817 (struct tui_source_window_base) <reset>: Likewise.
2819 2019-07-17 Tom Tromey <tom@tromey.com>
2821 * tui/tui-layout.c (show_source_disasm_command): Use
2823 (reset_locator): New function.
2824 (init_and_make_win): Remove.
2825 (show_source_or_disasm_and_command): Use reset_locator.
2827 2019-07-17 Tom Tromey <tom@tromey.com>
2829 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
2831 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
2833 * tui/tui-source.c (tui_source_window_base::reset): New method.
2834 * tui/tui-layout.c (make_command_window): Don't call
2836 (make_source_window, make_disasm_window): Don't call
2837 make_source_or_disasm_window.
2838 (make_data_window): Don't call init_and_make_win. Change calling
2840 (show_source_disasm_command, show_data): Simplify.
2841 (make_source_or_disasm_window): Remove.
2842 (show_source_or_disasm_and_command): Simplify.
2843 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
2844 (struct tui_source_window_base) <reset>: Likewise.
2845 <execution_info>: Remove initializer.
2846 * tui/tui-data.c (tui_source_window_base): Initialize
2849 2019-07-17 Tom Tromey <tom@tromey.com>
2851 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
2854 2019-07-17 Tom Tromey <tom@tromey.com>
2856 * tui/tui.c (tui_rl_other_window): Update.
2857 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
2858 superclass method first. Always iterate over regs_content.
2859 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
2861 * tui/tui-win.c (tui_set_focus_command): Update.
2863 2019-07-17 Tom Tromey <tom@tromey.com>
2865 * tui/tui-win.c (tui_set_focus_command): Rename from
2866 tui_set_focus. Call tui_enable.
2867 (tui_set_focus_command): Remove.
2869 2019-07-17 Tom Tromey <tom@tromey.com>
2871 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2873 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2875 (tui_data_window::refresh_window): Call refresh_window on data
2876 items. Always call superclass refresh_window.
2877 (tui_win_info::refresh): Remove.
2878 (tui_source_window_base::refresh_window): Update.
2879 (tui_refresh_all): Update.
2880 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2882 (show_source_or_disasm_and_command): Likewise.
2883 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2884 (struct tui_source_window_base) <refresh>: Likewise.
2886 2019-07-17 Tom Tromey <tom@tromey.com>
2888 * tui/tui-winsource.c (tui_clear_source_content)
2889 (tui_show_source_content): Update.
2890 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2891 whether content is empty.
2892 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2895 2019-07-17 Tom Tromey <tom@tromey.com>
2897 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2899 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2900 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2902 2019-07-17 Tom Tromey <tom@tromey.com>
2904 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2905 (struct tui_data_item_window): Update.
2907 2019-07-17 Tom Tromey <tom@tromey.com>
2909 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2910 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2913 2019-07-17 Tom Tromey <tom@tromey.com>
2915 * tui/tui-winsource.h (tui_erase_source_content)
2916 (tui_clear_source_content): Remove "display_prompt" parameter.
2917 * tui/tui-winsource.c (tui_update_source_window_as_is)
2918 (tui_update_source_windows_with_addr): Update.
2919 (tui_clear_source_content): Remove "display_prompt" parameter.
2920 (tui_erase_source_content): Likewise. Simplify.
2921 (tui_show_source_content): Update.
2922 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2923 * tui/tui-stack.c (tui_show_frame_info): Update.
2924 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2927 2019-07-17 Tom Tromey <tom@tromey.com>
2929 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2930 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2932 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2935 2019-07-17 Tom Tromey <tom@tromey.com>
2937 * tui/tui-winsource.c (tui_clear_source_content)
2938 (tui_show_source_content, tui_show_exec_info_content)
2939 (tui_clear_exec_info_content): Update.
2940 * tui/tui-stack.c (tui_show_locator_content): Update.
2941 (tui_show_frame_info): Update.
2942 * tui/tui-source.h (tui_source_window): Don't declare.
2943 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2944 from tui_source_is_displayed.
2945 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2947 (struct tui_source_window_base) <content_in_use>: New field. Now
2949 (struct tui_source_window) <showing_source_p>: New method.
2950 (TUI_SRC_WIN): Change cast.
2951 * tui/tui-data.c (tui_initialize_static_data): Update.
2953 2019-07-17 Tom Tromey <tom@tromey.com>
2955 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2957 * tui/tui-source.c (tui_source_window::location_matches_p): New
2959 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2961 * tui/tui-data.h (struct tui_source_window_base)
2962 <location_matches_p>: New method.
2963 (struct tui_source_window, struct tui_disasm_window)
2964 <location_matches_p>: Likewise.
2966 2019-07-17 Tom Tromey <tom@tromey.com>
2968 * tui/tui-win.c (tui_set_win_height_command): Rename from
2970 (tui_set_win_height_command): Remove.
2972 2019-07-17 Tom Tromey <tom@tromey.com>
2974 * tui/tui-source.c (tui_source_window): New constructor. Add
2976 (~tui_source_window): New destructor.
2977 (tui_source_window::style_changed): New method.
2978 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2979 (tui_attach_detach_observers): Update.
2980 * tui/tui-data.h (struct tui_source_window): Make constructor not
2981 inline. Add destructor.
2982 (struct tui_source_window) <style_changed>: New method.
2983 <m_observable>: New member.
2985 2019-07-17 Tom Tromey <tom@tromey.com>
2987 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2988 * tui/tui-win.c (tui_resize_all): Fix typo.
2990 2019-07-17 Tom Tromey <tom@tromey.com>
2992 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2993 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2994 (tui_refresh_all): Remove "list" parameter. Use foreach.
2995 * tui/tui-win.c (window_name_completer): Use foreach.
2996 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2997 (update_tab_width): Likewise.
2998 * tui/tui-layout.c (show_layout): Update.
2999 * tui/tui-data.h (class tui_window_iterator): New.
3000 (struct all_tui_windows): New.
3001 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
3003 2019-07-17 Tom Tromey <tom@tromey.com>
3005 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
3006 parameter. Don't reference globals.
3007 (tui_reg_command): Update.
3009 2019-07-17 Tom Tromey <tom@tromey.com>
3011 * tui/tui-regs.c (tui_show_registers): Simplify.
3013 2019-07-17 Tom Tromey <tom@tromey.com>
3015 * tui/tui-regs.c (tui_show_registers): Update.
3016 (tui_show_register_group): Add win_info parameter.
3018 2019-07-17 Tom Tromey <tom@tromey.com>
3020 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
3021 Rename from tui_display_reg_element_at_line.
3022 (tui_data_window::display_registers_from_line): Update.
3023 * tui/tui-data.h (struct tui_data_window)
3024 <display_reg_element_at_line>: New method.
3026 2019-07-17 Tom Tromey <tom@tromey.com>
3028 * tui/tui-regs.h (tui_display_registers_from)
3029 (tui_display_registers_from_line): Don't declare.
3030 * tui/tui-windata.c (tui_data_window::display_all_data)
3031 (tui_data_window::refresh_all)
3032 (tui_data_window::do_scroll_vertical): Update.
3033 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
3034 from tui_display_registers_from.
3035 (tui_display_reg_element_at_line): Update.
3036 (tui_data_window::display_registers_from_line): Rename from
3037 tui_display_registers_from_line.
3038 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
3039 display_registers_from_line>: New methods.
3041 2019-07-17 Tom Tromey <tom@tromey.com>
3043 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
3044 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
3045 from tui_erase_data_content.
3046 (tui_data_window::display_all_data)
3047 (tui_data_window::refresh_all)
3048 (tui_data_window::do_scroll_vertical): Update.
3049 * tui/tui-regs.c (tui_show_registers): Update.
3050 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3053 2019-07-17 Tom Tromey <tom@tromey.com>
3055 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3058 (tui_data_window::delete_data_content_windows): Rename from
3059 tui_delete_data_content_windows.
3060 (tui_data_window::display_all_data)
3061 (tui_data_window::do_scroll_vertical): Update.
3062 * tui/tui-data.h (struct tui_data_window)
3063 <delete_data_content_windows>: New method.
3065 2019-07-17 Tom Tromey <tom@tromey.com>
3067 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3068 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3070 2019-07-17 Tom Tromey <tom@tromey.com>
3072 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3073 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3074 from tui_display_all_data.
3076 (tui_data_window::do_make_visible_with_new_height): Update.
3077 * tui/tui-regs.c (tui_show_registers): Update.
3078 * tui/tui-layout.c (tui_set_layout): Update.
3079 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3082 2019-07-17 Tom Tromey <tom@tromey.com>
3084 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3085 * tui/tui-windata.c (tui_display_data_from): Remove.
3086 (tui_data_window::refresh_all): Update.
3088 2019-07-17 Tom Tromey <tom@tromey.com>
3090 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3091 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3092 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3093 tui_display_registers_from_line.
3094 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3095 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3096 "force_display" parameter.
3098 2019-07-17 Tom Tromey <tom@tromey.com>
3100 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3102 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3103 Rename from tui_first_reg_element_no_inline.
3104 (tui_display_reg_element_at_line)
3105 (tui_display_registers_from_line): Update.
3106 * tui/tui-data.h (struct tui_data_window)
3107 <first_reg_element_no_inline>: New method.
3109 2019-07-17 Tom Tromey <tom@tromey.com>
3111 * tui/tui-windata.c (tui_display_data_from)
3112 (tui_data_window::do_scroll_vertical): Update.
3113 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3114 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3115 Rename from tui_line_from_reg_element_no.
3116 (tui_display_registers_from_line): Update.
3117 * tui/tui-data.h (struct tui_data_window)
3118 <line_from_reg_element_no>: New method.
3120 2019-07-17 Tom Tromey <tom@tromey.com>
3122 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3123 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3124 tui_last_regs_line_no.
3125 (tui_display_reg_element_at_line)
3126 (tui_display_registers_from_line): Update.
3127 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
3130 2019-07-17 Tom Tromey <tom@tromey.com>
3133 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
3134 (tui_update_breakpoint_info): Add "being_deleted" parameter.
3135 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3136 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
3137 (tui_update_breakpoint_info): Likewise.
3138 * tui/tui-hooks.c (tui_event_create_breakpoint)
3139 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
3142 2019-07-17 Tom Tromey <tom@tromey.com>
3144 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
3146 2019-07-17 Tom Tromey <tom@tromey.com>
3148 * tui/tui-winsource.c (tui_update_source_window_as_is)
3149 (tui_update_source_windows_with_addr): Update.
3150 * tui/tui-source.h (tui_set_source_content)
3151 (tui_show_symtab_source): Add "win_info" parameter.
3152 * tui/tui-source.c (tui_set_source_content): Add "win_info"
3154 (tui_show_symtab_source): Likewise.
3156 2019-07-17 Tom Tromey <tom@tromey.com>
3158 * tui/tui-wingeneral.c
3159 (tui_check_and_display_highlight_if_needed): Check can_highlight.
3161 2019-07-17 Tom Tromey <tom@tromey.com>
3163 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
3164 (struct tui_cmd_window) <can_scroll>: New method.
3165 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
3168 2019-07-17 Tom Tromey <tromey@adacore.com>
3170 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
3171 do_field_signed>: Rename. Change type of "value".
3172 * ui-out.c (ui_out::field_signed): Rename from field_int.
3173 Change type of "value".
3174 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
3176 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
3177 do_field_int. Change type of "value".
3178 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
3179 do_field_int. Change type of "value".
3180 * tracepoint.c (trace_status_mi, tfind_1)
3181 (print_one_static_tracepoint_marker): Update.
3182 * thread.c (print_thread_info_1, print_selected_thread_frame):
3184 * stack.c (print_frame, print_frame_info): Update.
3185 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3187 * source.c (print_source_lines_base): Update.
3188 * skip.c (info_skip_command): Update.
3189 * record-btrace.c (btrace_ui_out_decode_error)
3190 (btrace_call_history_src_line): Update.
3191 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3193 * progspace.c (print_program_space): Update.
3194 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3195 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3196 do_field_int. Change type of "value".
3197 * mi/mi-out.c (mi_ui_out::do_table_begin)
3198 (mi_ui_out::do_table_header): Update.
3199 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3201 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3202 (mi_cmd_data_list_changed_registers, output_register)
3203 (mi_cmd_data_read_memory, mi_load_progress)
3204 (mi_cmd_trace_frame_collected): Update.
3205 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3207 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3208 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3209 (mi_cmd_var_list_children, varobj_update_one): Update.
3210 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3211 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3212 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3213 * inferior.c (print_inferior): Update.
3214 * gdb_bfd.c (print_one_bfd): Update.
3215 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3217 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3218 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3219 do_field_int. Change type of "value".
3220 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3221 do_field_int. Change type of "value".
3222 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3223 (print_one_breakpoint_location, print_it_catch_fork)
3224 (print_one_catch_fork, print_it_catch_vfork)
3225 (print_one_catch_vfork, print_it_catch_solib)
3226 (print_it_catch_exec, print_it_ranged_breakpoint)
3227 (print_mention_watchpoint, print_mention_masked_watchpoint)
3228 (bkpt_print_it, update_static_tracepoint): Update.
3229 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3230 * break-catch-syscall.c (print_it_catch_syscall): Update.
3231 * ada-tasks.c (print_ada_task_info): Update.
3232 * ada-lang.c (print_it_exception, print_mention_exception):
3235 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3237 PR breakpoints/24541
3238 * gdbarch.c: Regenerate.
3239 * gdbarch.h: Regenerate.
3240 * gdbarch.sh: Adjust return type and parameter types for
3241 'stap_adjust_register'.
3242 (i386_stap_adjust_register): Adjust signature and return new
3244 * stap-probe.c (stap_parse_register_operand): Adjust use of
3245 'gdbarch_stap_adjust_register'.
3247 2019-07-17 Tom Tromey <tromey@adacore.com>
3249 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
3251 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
3253 (struct s390_process_info): Add initializers.
3254 (s390_add_process): Use new.
3255 (s390_linux_nat_target::low_forget_process): Use delete.
3256 (s390_linux_nat_target::low_new_fork)
3257 (s390_linux_nat_target::stopped_by_watchpoint)
3258 (s390_linux_nat_target::low_prepare_to_resume)
3259 (s390_linux_nat_target::insert_watchpoint)
3260 (s390_linux_nat_target::insert_hw_breakpoint)
3261 (s390_linux_nat_target::remove_watchpoint)
3262 (s390_linux_nat_target::remove_hw_breakpoint): Update.
3264 2019-07-16 John Baldwin <jhb@FreeBSD.org>
3266 * aarch64-fbsd-nat.c: Include regcache.h.
3267 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
3269 (aarch64_fbsd_nat_target::fetch_registers)
3270 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
3272 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
3274 2019-07-16 John Baldwin <jhb@FreeBSD.org>
3276 * fbsd-nat.c: Include gdbarch.h.
3278 2019-07-15 Tom Tromey <tromey@adacore.com>
3280 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3282 2019-07-15 Tom Tromey <tromey@adacore.com>
3284 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3285 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3286 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3287 * cli-out.c (cli_ui_out::do_field_int): New method.
3288 * ui-out.c (ui_out::field_unsigned): New method.
3289 * symfile.c (generic_load): Use field_unsigned.
3290 (print_transfer_performance): Likewise.
3291 * record-btrace.c (ui_out_field_uint): Remove.
3292 (btrace_call_history_insn_range, btrace_call_history): Use
3294 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3296 * ui-out.h (class ui_out) <field_unsigned>: New method.
3297 <do_field_unsigned>: Likewise.
3299 2019-07-15 Tom Tromey <tromey@adacore.com>
3301 * mi/mi-main.c (list_available_thread_groups): Use field_string.
3302 * mi/mi-interp.c (mi_memory_changed): Use field_string.
3303 * target.c (flash_erase_command): Use field_string.
3304 * infrun.c (print_signal_received_reason): Use field_string.
3305 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
3306 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
3308 * ada-tasks.c (print_ada_task_info): Use field_string.
3310 2019-07-15 Tom Tromey <tromey@adacore.com>
3312 * target.c (flash_erase_command): Use field_core_addr.
3313 * symfile.c (generic_load): Use field_core_addr.
3314 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3315 Use field_core_addr.
3316 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3319 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3321 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
3322 value if its desired type is smaller than a CORE_ADDR and signed.
3324 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3326 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
3327 of changes to field names, and use new is_reference field to
3328 decide if a property is a reference or not.
3329 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
3331 (struct dwarf2_property_baton): Update header comment, rename
3332 'referenced_type' to 'property_type' and update comments.
3333 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3334 default property type, store in property baton, update to take
3335 accound of renamed field.
3336 (read_func_scope): Update call to attr_to_dynamic_prop.
3337 (read_array_type): Likewise.
3338 (dwarf2_per_cu_addr_sized_int_type): New function.
3339 (read_subrange_index_type): Move type finding code to
3340 dwarf2_per_cu_addr_sized_int_type.
3341 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3342 (dwarf2_per_cu_addr_type): New function.
3343 (set_die_type): Update calls to attr_to_dynamic_prop.
3345 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3347 * dwarf2read.c (read_subrange_index_type): New function.
3348 (read_subrange_type): Move code into new function and call it.
3349 * gdbtypes.c (create_range_type): Add some asserts.
3351 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3353 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3354 update return statements.
3355 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3356 declaration, and update comment to match.
3357 * gdbtypes.c (resolve_dynamic_array): Update call to
3358 dwarf2_evaluate_property to match new return type.
3360 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3362 * valarith.c (value_subscripted_rvalue): Change lowerbound
3363 parameter type from int to LONGEST.
3364 * value.h (value_subscripted_rvalue): Likewise in declaration.
3366 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3368 * cli/cli-utils.c (info_print_command_completer): New function.
3369 * cli/cli-utils.h: Add 'completer.h' include, and forward
3370 declaration for 'struct cmd_list_element'.
3371 (info_print_command_completer): Declare.
3372 * stack.c (_initialize_stack): Add completer for 'info locals' and
3374 * symtab.c (_initialize_symtab): Add completer for 'info
3375 variables' and 'info functions'.
3376 * NEWS: Mention completion for additional info commands.
3378 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3380 * cli/cli-utils.c (extract_info_print_args): Delete.
3381 (extract_arg_maybe_quoted): Delete.
3382 (info_print_options_defs): New variable.
3383 (make_info_print_options_def_group): New function.
3384 (extract_info_print_options): Define new function.
3385 * cli/cli-utils.h (extract_info_print_args): Delete.
3386 (struct info_print_options): New structure.
3387 (extract_info_print_options): Declare new function.
3388 * stack.c (info_locals_command): Update to use new
3389 extract_info_print_options, also add a header comment.
3390 (info_args_command): Likewise.
3391 * symtab.c (info_variables_command): Likewise.
3392 (info_functions_command): Likewise.
3394 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3396 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3397 to extract string arguments.
3398 * common/common-utils.c (extract_string_maybe_quoted): New function.
3399 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3401 2019-07-11 Tom Tromey <tromey@adacore.com>
3403 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3404 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3405 * top.h (gdbinit): Don't declare.
3406 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3408 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3409 * top.c (gdb_init): Don't call init_cli_cmds.
3411 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3413 2019-07-11 Tom Tromey <tromey@adacore.com>
3415 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3416 after it has been moved.
3418 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3420 * valops.c (value_must_coerce_to_target): Change return type to
3422 * value.h (value_must_coerce_to_target): Likewise.
3424 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
3426 * breakpoint.c (is_hardware_watchpoint): Remove
3427 forward-declaration.
3428 (is_masked_watchpoint): Change return type to bool.
3429 (is_tracepoint): Likewise.
3430 (is_breakpoint): Likewise.
3431 (is_hardware_watchpoint): Likewise.
3432 (is_watchpoint): Likewise.
3433 (is_no_memory_software_watchpoint): Likewise.
3434 (is_catchpoint): Likewise.
3435 (breakpoint_1): Make FILTER parameter's return type bool.
3436 is_masked_watchpoint): Change return type to bool.
3437 (save_breakpoints): Make FILTER parameter's return type bool.
3438 * breakpoint.h (is_breakpoint): Change return type to bool.
3439 (is_watchpoint): Likewise.
3440 (is_catchpoint): Likewise.
3441 (is_tracepoint): Likewise.
3443 2019-07-10 Tom Tromey <tom@tromey.com>
3445 * defs.h: Don't include gdbarch.h.
3446 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3447 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3448 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3449 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3450 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3451 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3452 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3453 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3454 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3455 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3456 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3457 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3458 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3459 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3460 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3461 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3462 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3463 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3464 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3465 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3466 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3467 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3468 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3469 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3470 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3471 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3472 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3474 2019-07-10 Tom Tromey <tromey@adacore.com>
3476 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3477 * breakpoint.c (init_ada_exception_breakpoint): Register as
3479 (print_one_breakpoint_location, print_one_breakpoint): Use
3480 is_ada_exception_catchpoint.
3481 * ada-lang.c (class ada_catchpoint_location): Pass
3482 bp_loc_software_breakpoint to bp_location constructor.
3483 (is_ada_exception_catchpoint): New function.
3485 2019-07-10 Tom Tromey <tromey@adacore.com>
3487 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3489 (struct arm_exidx_entry): New method operator<.
3490 (struct arm_exidx_data) <section_maps>: Change type.
3491 (arm_exidx_data_free): Remove.
3492 (arm_exidx_data_key): Change type. Move lower.
3493 (arm_exidx_new_objfile): Update.
3494 (arm_compare_exidx_entries): Remove.
3495 (arm_find_exidx_entry, _initialize_arm_tdep)
3497 2019-07-10 Tom Tromey <tromey@adacore.com>
3499 * solib-spu.c (ocl_program_data_key): Change type.
3500 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3503 2019-07-10 Tom Tromey <tromey@adacore.com>
3505 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3506 (struct solib_aix_inferior_data) <library_list>: Change type.
3507 (solib_aix_inferior_data_handle): Change type.
3508 (get_solib_aix_inferior_data): Update.
3509 (solib_aix_free_library_list): Remove.
3510 (library_list_start_library): Update.
3511 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3513 (solib_aix_get_library_list)
3514 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3515 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3517 2019-07-10 Tom Tromey <tromey@adacore.com>
3519 * solib-dsbt.c (struct dsbt_info): Add initializers.
3520 (solib_dsbt_pspace_data): Change type.
3521 (dsbt_pspace_data_cleanup): Remove.
3522 (get_dsbt_info, _initialize_dsbt_solib): Update.
3524 2019-07-10 Tom Tromey <tromey@adacore.com>
3526 * spu-tdep.c (spu_overlay_data): Change type.
3527 (spu_get_overlay_table, spu_overlay_new_objfile)
3528 (_initialize_spu_tdep): Update.
3530 2019-07-10 Tom Tromey <tromey@adacore.com>
3532 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
3534 (dbx_objfile_data_key): Change type and declare later.
3535 (DBX_SYMFILE_INFO): Rewrite.
3536 * dbxread.c (dbx_objfile_data_key): Change type.
3537 (dbx_symfile_init): Update.
3538 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
3539 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3540 (stabsect_build_psymtabs, _initialize_dbxread): Update.
3542 2019-07-10 Tom Tromey <tromey@adacore.com>
3544 * jit.c (jit_program_space_key): Change type. Move lower.
3545 (get_jit_program_space_data): Update.
3546 (jit_program_space_data_cleanup): Remove.
3547 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
3549 (struct jit_program_space_data): Add initializers.
3551 2019-07-10 Tom Tromey <tromey@adacore.com>
3553 * solib-darwin.c (struct darwin_info): Add initializers.
3554 (solib_darwin_pspace_data): Change type.
3555 (darwin_pspace_data_cleanup): Remove.
3556 (get_darwin_info, _initialize_darwin_solib): Update.
3558 2019-07-10 Tom Tromey <tromey@adacore.com>
3560 * remote-sim.c (struct sim_inferior_data): Add initializers,
3561 constructor, and destructor.
3562 (sim_inferior_data_key): Change type. Move lower.
3563 (check_for_duplicate_sim_descriptor): Update.
3564 (get_sim_inferior_data): Use new. Update.
3565 (~sim_inferior_data_cleanup): Rename from
3566 sim_inferior_data_cleanup. Simplify.
3567 (gdbsim_close_inferior, simulator_command)
3568 (sim_command_completer, _initialize_remote_sim): Update.
3569 (next_pid, INITIAL_PID): Move earlier.
3571 2019-07-10 Tom Tromey <tromey@adacore.com>
3573 * python/python-internal.h (create_thread_object): Return
3575 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
3576 * python/py-inferior.c (struct threadlist_entry): Add
3578 <thread_obj>: Now a gdbpy_ref.
3579 (thread_to_thread_object): Update.
3580 (add_thread_object): Use new.
3581 (delete_thread_object): Use delete.
3582 (infpy_threads): Update.
3583 (py_free_inferior): Update. Construct "inf_obj" after acquiring
3586 2019-07-10 Tom Tromey <tromey@adacore.com>
3588 * valops.c (value_cast): Specialize error message for Ada.
3590 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3592 * breakpoint.c (breakpoint_1): Update doc and parameter names.
3594 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3596 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
3597 bpstat_should_step): Return bool, adjust comments.
3598 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
3599 bpstat_should_step): Likewise.
3601 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3603 * features/Makefile: Use feature target descriptions for Arm.
3604 * features/arm/arm-core.c: Generate new file.
3605 * features/arm/arm-fpa.c: Likewise.
3606 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
3607 * features/arm/arm-m-profile.c: Likewise.
3608 * features/arm/arm-vfpv2.c: Likewise.
3609 * features/arm/arm-vfpv3.c: Likewise.
3610 * features/arm/xscale-iwmmxt.c: Likewise.
3611 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
3613 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3615 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
3618 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3620 * features/aarch64-pauth.c: Regenerate.
3622 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
3624 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
3626 (bpstat_what): Use false instead of 0.
3628 2019-07-09 Pedro Alves <palves@redhat.com>
3630 * break-catch-throw.c (is_exception_catchpoint): New.
3631 * breakpoint.c (print_one_breakpoint_location): New parameter
3632 'raw_loc'. Handle it. Use
3633 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
3634 looking at the breakpoint's type.
3635 (print_one_breakpoint): If handling "maint info breakpoints", also
3636 print locations of exception catchpoints.
3637 * breakpoint.h (is_exception_catchpoint): Declare.
3639 2019-07-09 Pedro Alves <palves@redhat.com>
3641 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
3643 (allocate_location_exception_catchpoint): New.
3644 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
3645 (initialize_throw_catchpoint_ops): Install
3646 allocate_location_exception_catchpoint as allocate_location
3648 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
3649 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
3651 (breakpoint_address_is_meaningful): Delete.
3652 (bl_address_is_meaningful): New.
3653 (breakpoint_locations_match): Adjust comment.
3654 (bp_location_from_bp_type): New, factored out of...
3655 (bp_location::bp_location(breakpoint *)): ... this.
3656 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
3658 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
3659 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
3660 breakpoint_address_is_meaningful.
3661 (bp_locations_compare): Adjust comment.
3662 (update_global_location_list): Use bl_address_is_meaningful
3663 instead of breakpoint_address_is_meaningful.
3664 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
3666 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
3667 * python/py-breakpoint.c (bppy_get_location): No longer check
3668 whether location is null.
3670 2019-07-09 Pedro Alves <palves@redhat.com>
3673 * breakpoint.c (print_one_breakpoint_location): Remove
3674 single-location assert.
3676 2019-07-09 Tom Tromey <tom@tromey.com>
3678 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
3679 * configure: Rebuild.
3680 * configure.ac: Change common to gdbsupport.
3681 * gdbsupport: Rename from common.
3682 * acinclude.m4: Change common to gdbsupport.
3683 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
3684 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
3686 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
3687 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
3688 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
3689 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
3690 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
3691 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
3692 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
3693 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
3694 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
3695 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
3696 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
3697 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
3698 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
3699 coff-pe-read.c, command.h, compile/compile-c-support.c,
3700 compile/compile-c.h, compile/compile-cplus-symbols.c,
3701 compile/compile-cplus-types.c, compile/compile-cplus.h,
3702 compile/compile-loc2c.c, compile/compile.c, completer.c,
3703 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
3704 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
3705 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
3706 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
3707 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
3708 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
3709 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
3710 features/aarch64-core.c, features/aarch64-fpu.c,
3711 features/aarch64-pauth.c, features/aarch64-sve.c,
3712 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
3713 features/i386/32bit-core.c, features/i386/32bit-linux.c,
3714 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
3715 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
3716 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
3717 features/i386/64bit-core.c, features/i386/64bit-linux.c,
3718 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
3719 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
3720 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
3721 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
3722 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
3723 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
3724 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
3725 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
3726 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
3727 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
3728 go32-nat.c, guile/guile.c, guile/scm-ports.c,
3729 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
3730 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
3731 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
3732 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
3733 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
3734 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
3735 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
3736 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
3737 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
3738 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
3739 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
3740 minsyms.c, mips-linux-tdep.c, namespace.h,
3741 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
3742 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
3743 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
3744 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
3745 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
3746 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
3747 nat/linux-waitpid.c, nat/mips-linux-watch.c,
3748 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
3749 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
3750 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
3751 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
3752 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
3753 procfs.c, producer.c, progspace.h, psymtab.h,
3754 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
3755 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
3756 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
3757 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
3758 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
3759 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
3760 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
3761 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
3762 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
3763 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
3764 target-memory.c, target.c, target.h, target/waitstatus.c,
3765 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
3766 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
3767 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
3768 unittests/array-view-selftests.c,
3769 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
3770 unittests/common-utils-selftests.c,
3771 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
3772 unittests/format_pieces-selftests.c,
3773 unittests/function-view-selftests.c,
3774 unittests/lookup_name_info-selftests.c,
3775 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
3776 unittests/mkdir-recursive-selftests.c,
3777 unittests/observable-selftests.c,
3778 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
3779 unittests/parse-connection-spec-selftests.c,
3780 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
3781 unittests/scoped_fd-selftests.c,
3782 unittests/scoped_mmap-selftests.c,
3783 unittests/scoped_restore-selftests.c,
3784 unittests/string_view-selftests.c, unittests/style-selftests.c,
3785 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
3786 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
3787 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
3788 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
3789 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
3790 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
3792 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3794 * linespec.c (decode_digits_list_mode): Set explicit_line to a
3796 (decode_digits_ordinary): Set explicit_line field in sal.
3797 * symtab.c (skip_prologue_sal): Don't skip prologue for a
3798 symtab_and_line that was set on an explicit line number in
3799 assembler code. Do always update the recorded symtab and line if
3800 we do skip the prologue.
3802 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3804 * breakpoint.c (set_breakpoint_location_function): Remove
3805 explicit_loc parameter.
3806 (momentary_breakpoint_from_master): Update call to
3807 set_breakpoint_location_function.
3808 (add_location_to_breakpoint): Likewise.
3810 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3812 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
3813 required features based on default bfd type when no specific bfd
3816 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3818 * NEWS: Mention that GDB printf and eval commands can now print
3819 C-style and Ada-style convenience var strings without
3820 calling the inferior.
3821 * printcmd.c (printf_c_string): Locally print GDB internal var
3822 instead of transiting via the inferior.
3823 (printf_wide_c_string): Likewise.
3825 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3827 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
3829 2019-07-04 Tom Tromey <tom@tromey.com>
3832 * tui/tui-winsource.c (tui_clear_source_content): Update.
3833 (tui_source_window_base::set_is_exec_point_at): Fix comment.
3834 (tui_update_breakpoint_info): Update.
3835 (tui_set_exec_info_content): Update.
3836 * tui/tui-source.c (tui_set_source_content_nil): Update.
3837 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
3839 * tui/tui-data.h (enum tui_bp_flag): New.
3840 (tui_bp_flags): New enum flags type.
3841 (struct tui_source_element) <break_mode>: Change type. Rename
3843 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
3844 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
3846 * tui/tui-winsource.h: Fix comment.
3848 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3850 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
3851 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
3852 (store_fpregs_to_thread)
3853 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3854 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
3855 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
3856 (IWMMXT_REGS_SIZE): Add define.
3857 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
3858 (fetch_vfp_regs, store_vfp_regs)
3859 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3860 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
3862 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3864 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
3866 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
3867 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
3868 (ARM_INT_REGISTER_SIZE): ...to this.
3869 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3870 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3871 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3872 (arm_linux_collect_gregset, supply_nwfpe_register)
3873 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3875 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3876 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3877 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3878 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3879 (arm_return_in_memory, arm_store_return_value)
3880 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3881 (arm_record_ld_st_multiple): Likewise.
3882 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3883 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3885 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3887 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3888 AARCH64_DISPLACED_MODIFIED_INSNS.
3889 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3890 (aarch64_displaced_step_copy_insn): Likewise.
3891 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3892 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3893 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3894 ARM_DISPLACED_MODIFIED_INSNS.
3895 * arm-tdep.c (arm_gdbarch_init): Likewise.
3896 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3897 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3898 (struct arm_displaced_step_closure): Use
3899 ARM_DISPLACED_MODIFIED_INSNS.
3901 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3903 * features/Makefile: Remove unused xml files.
3904 * features/aarch64.xml: Remove.
3905 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3906 * features/i386/amd64-avx-avx512.xml: Remove.
3907 * features/i386/amd64-avx-linux.xml: Remove.
3908 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3909 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3910 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3911 * features/i386/amd64-avx-mpx.xml: Remove.
3912 * features/i386/amd64-avx.xml: Remove.
3913 * features/i386/amd64-linux.xml: Remove.
3914 * features/i386/amd64-mpx-linux.xml: Remove.
3915 * features/i386/amd64-mpx.xml: Remove.
3916 * features/i386/amd64.xml: Remove.
3917 * features/i386/i386-avx-avx512-linux.xml: Remove.
3918 * features/i386/i386-avx-avx512.xml: Remove.
3919 * features/i386/i386-avx-linux.xml: Remove.
3920 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3921 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3922 * features/i386/i386-avx-mpx-linux.xml: Remove.
3923 * features/i386/i386-avx-mpx.xml: Remove.
3924 * features/i386/i386-avx.xml: Remove.
3925 * features/i386/i386-linux.xml: Remove.
3926 * features/i386/i386-mmx-linux.xml: Remove.
3927 * features/i386/i386-mmx.xml: Remove.
3928 * features/i386/i386-mpx-linux.xml: Remove.
3929 * features/i386/i386-mpx.xml: Remove.
3930 * features/i386/i386.xml: Remove.
3931 * features/i386/x32-avx-avx512-linux.xml: Remove.
3932 * features/i386/x32-avx-linux.xml: Remove.
3933 * features/i386/x32-linux.xml: Remove.
3935 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3937 * regformats/aarch64.dat: Remove.
3938 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3939 * regformats/i386/amd64-avx-linux.dat: Remove.
3940 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3941 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3942 * regformats/i386/amd64-linux.dat: Remove.
3943 * regformats/i386/amd64-mpx-linux.dat: Remove.
3944 * regformats/i386/amd64.dat: Remove.
3945 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3946 * regformats/i386/i386-avx-linux.dat: Remove.
3947 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3948 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3949 * regformats/i386/i386-linux.dat: Remove.
3950 * regformats/i386/i386-mmx-linux.dat: Remove.
3951 * regformats/i386/i386-mpx-linux.dat: Remove.
3952 * regformats/i386/i386.dat: Remove.
3953 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3954 * regformats/i386/x32-avx-linux.dat: Remove.
3955 * regformats/i386/x32-linux.dat: Remove.
3957 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3959 * aarch64-tdep.c: Remove xml self tests.
3960 * amd64-linux-tdep.c: Likewise.
3961 * amd64-tdep.c: Likewise.
3962 * i386-linux-tdep.c: Likewise.
3963 * i386-tdep.c: Likewise.
3965 2019-07-03 Pedro Alves <palves@redhat.com>
3968 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3969 (pipe_cmd_option_defs): New.
3970 (make_pipe_cmd_options_def_group): New.
3971 (pipe_command): Use gdb::option::process_options.
3972 (pipe_command_completer): New function.
3973 (_initialize_cli_cmds): Install completer for "pipe" command.
3975 2019-07-03 Pedro Alves <palves@redhat.com>
3977 * cli/cli-option.c (union option_value) <string>: New field.
3978 (struct option_def_and_value): Add ctor, move ctor, dtor and
3979 use DISABLE_COPY_AND_ASSIGN.
3980 (option_def_and_value::clear_value): New.
3981 (parse_option, save_option_value_in_ctx, get_val_type_str)
3982 (add_setshow_cmds_for_options): Handle var_string.
3983 * cli-option.h (union option_def::var_address) <string>: New
3985 (struct string_option_def): New.
3986 * maint-test-options.c (struct test_options_opts): Add default
3987 ctor and use DISABLE_COPY_AND_ASSIGN.
3988 <string_opt>: New field.
3989 (test_options_opts::~test_options_opts): New.
3990 (test_options_opts::dump): Also dump "-string".
3991 (test_options_option_defs): Install "string.
3993 2019-07-03 Pedro Alves <palves@redhat.com>
3995 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3996 option_value with a null enumeration.
3997 (complete_options): Save the option values in the context.
3998 (save_option_value_in_ctx): New, factored out from ...
3999 (process_options): ... here.
4000 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
4002 * maint-test-options.c (test_options_opts::dump): New, factored
4004 (maintenance_test_options_command_mode): ... here.
4005 (maintenance_test_options_command_completion_result): Delete.
4006 (maintenance_test_options_command_completion_text): Update
4008 (maintenance_show_test_options_completion_result): Change
4009 prototype. Just print
4010 maintenance_test_options_command_completion_text.
4011 (save_completion_result): New.
4012 (maintenance_test_options_completer_mode): Pass options context to
4013 complete_options, and then save a dump.
4014 (_initialize_maint_test_options): Use add_cmd to install "maint
4015 show test-options-completion-result".
4017 2019-07-03 Pedro Alves <palves@redhat.com>
4019 * NEWS (New commands): Mention "with" and "maint with".
4020 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
4021 (with_command, with_command_completer): New.
4022 (pipe_command): Adjust to new repeat_previous
4024 (_initialize_cli_cmds): Install the "with" command and its "w"
4026 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
4028 * cli/cli-setshow.c (parse_cli_var_uinteger)
4029 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
4030 argument strings for all var_types.
4031 (get_setshow_command_value_string): New, factored out from ...
4032 (do_show_command): ... this.
4033 * cli/cli-setshow.h: Include <string>.
4034 (get_setshow_command_value_string): Declare.
4035 * command.h (repeat_previous): Now returns const char *. Adjust
4037 * maint.c: Include "cli/cli-cmds.h".
4038 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4039 (_initialize_maint_cmds): Register the "maintenance with" command.
4040 * top.c (repeat_previous): Move bits from pipe_command here:
4041 Return the saved command line, if any; error out if there's no
4042 command to relaunch.
4044 2019-07-03 Pedro Alves <palves@redhat.com>
4046 * NEWS (New commands): Mention "maint set/show test-settings"
4047 instead of "maint test-settings".
4048 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4049 (maintenance_test_settings_set_list): Rename to ...
4050 (maintenance_set_test_settings_list): ... this.
4051 (maintenance_test_settings_show_list): Rename to ...
4052 (maintenance_show_test_settings_list): ... this.
4053 (maintenance_test_settings_cmd): Delete.
4054 (maintenance_test_settings_set_cmd): ...
4055 (maintenance_set_test_settings_cmd): ... this.
4056 (maintenance_test_settings_show_cmd): ...
4057 (maintenance_show_test_settings_cmd): ... this.
4058 (maintenance_test_settings_show_value_cmd):
4059 (maintenance_show_test_settings_value_cmd): ... this.
4060 (_initialize_maint_test_settings): No longer install the "maint
4061 test-settings" prefix command. Rename "maint test-settings set"
4062 to "maint set test-settings", and "maint test-settings show" to
4063 "maint show test-settings". Adjust all subcommands.
4065 2019-07-03 Pedro Alves <palves@redhat.com>
4067 * maint-test-settings.c: Fix file's intro comment. Replace all
4068 references to "test-options" with references to "test-settings",
4071 2019-07-03 Pedro Alves <palves@redhat.com>
4073 * maint-test-settings.c (maintenance_test_settings_xxx)
4074 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4076 (maintenance_test_settings_enums): Use them.
4077 (maintenance_test_settings_enum): Default to
4078 maintenance_test_settings_xxx.
4079 (_initialize_maint_test_settings): Initialize
4080 MAINTENANCE_TEST_SETTINGS_FILENAME.
4082 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4084 * breakpoint.h (remove_breakpoints_inf): Change return type to
4085 void, move function documentation here.
4086 * breakpoint.c (remove_breakpoints_inf): Change return type to
4087 void, move function documentation to header.
4089 2019-07-02 Pedro Alves <palves@redhat.com>
4091 * NEWS (Completion improvements): Mention "info threads".
4092 * thread.c (struct info_threads_opts, info_threads_option_defs)
4093 (make_info_threads_options_def_group): New.
4094 (info_threads_command): Use gdb::option::process_options.
4095 (info_threads_command_completer): New.
4096 (_initialize_thread): Use gdb::option::build_help to build the
4097 help text for "info threads".
4099 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4101 * defs.h (generic_load): Move from here...
4102 * symfile.h (generic_load): ... to here. Rename name parameter
4104 * symfile.c (generic_load): Add comment.
4106 2019-07-01 Tom Tromey <tromey@adacore.com>
4109 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4110 declaration of without_params. Fix formatting.
4112 2019-07-01 Tom Tromey <tromey@adacore.com>
4114 * ada-exp.y (find_primitive_type): Update.
4115 * ada-lang.h (ada_lookup_symbol): Update.
4116 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4118 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4120 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4122 PR breakpoints/24541
4123 * gdbarch.c: Regenerate.
4124 * gdbarch.h: Regenerate.
4125 * gdbarch.sh: Add 'stap_adjust_register'.
4126 * i386-tdep.c: Include '<unordered_set>'.
4127 (i386_stap_adjust_register): New function.
4128 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4129 * stap-probe.c (stap_parse_register_operand): Call
4130 'gdbarch_stap_adjust_register'.
4132 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4135 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4136 * python/python.c (do_start_initialization): Use 'xmalloc'
4137 instead of 'PyMem_Malloc'.
4139 2019-06-28 Tom Tromey <tromey@adacore.com>
4141 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4144 2019-06-27 Tom Tromey <tromey@adacore.com>
4146 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
4148 (arm_find_mapping_symbol, arm_record_special_symbol)
4149 (_initialize_arm_tdep): Update.
4150 (arm_objfile_data_free): Remove.
4152 2019-06-27 Tom Tromey <tromey@adacore.com>
4154 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4155 to cp_print_static_field.
4157 2019-06-26 Tom Tromey <tromey@adacore.com>
4159 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
4160 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
4163 2019-06-26 Alan Hayward <alan.hayward@arm.com>
4165 * features/aarch64-core.c (create_feature_aarch64_core):
4167 * features/aarch64-core.xml: Add cpsr flags.
4169 2019-06-26 Alan Hayward <alan.hayward@arm.com>
4171 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4172 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4174 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4176 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4178 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4180 (arm_record_special_symbol): Don't insert new symbol in sorted
4181 position, push it at the end.
4183 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4185 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4186 (arm_mapping_symbol_s): Remove.
4187 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4188 (arm_mapping_symbol_vec): New typedef.
4189 (struct arm_per_objfile): Add constructor.
4190 <section_maps>: Change type to
4191 std::unique_ptr<arm_mapping_symbol_vec[]>.
4192 (arm_compare_mapping_symbols): Remove.
4193 (arm_find_mapping_symbol): Adjust to section_maps type change.
4194 (arm_objfile_data_free): Call delete on arm_per_objfile.
4195 (arm_record_special_symbol): Adjust to section_maps type change.
4196 Allocate arm_per_objfile with new.
4198 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4200 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4201 with the command prefix.
4203 2019-06-25 Tom Tromey <tom@tromey.com>
4205 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4206 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4208 2019-06-25 Tom Tromey <tom@tromey.com>
4210 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4212 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4215 2019-06-25 Tom Tromey <tom@tromey.com>
4217 * tui/tui-winsource.c
4218 (tui_source_window_base::set_is_exec_point_at): Add check against
4221 2019-06-25 Tom Tromey <tom@tromey.com>
4223 * tui/tui-source.c (tui_set_source_content): Don't check before
4225 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4227 2019-06-25 Tom Tromey <tom@tromey.com>
4229 * tui/tui-winsource.h (tui_update_source_window_as_is)
4230 (tui_alloc_source_buffer, tui_line_is_displayed)
4231 (tui_addr_is_displayed): Change type of win_info.
4232 * tui/tui-winsource.c (tui_update_source_window_as_is)
4233 (tui_clear_source_content, tui_show_source_line)
4234 (tui_show_source_content, tui_source_window_base::refill)
4235 (tui_source_window_base::set_is_exec_point_at)
4236 (tui_source_window_base::set_is_exec_point_at)
4237 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4238 (tui_alloc_source_buffer, tui_line_is_displayed)
4239 (tui_addr_is_displayed): Change type of win_info. Update.
4240 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4241 (tui_source_window_base::do_make_visible_with_new_height):
4243 * tui/tui-source.c (tui_set_source_content)
4244 (tui_set_source_content_nil)
4245 (tui_source_window::do_scroll_vertical): Update.
4246 * tui/tui-layout.c (show_layout): Update.
4247 * tui/tui-disasm.c (tui_set_disassem_content)
4248 (tui_disasm_window::do_scroll_vertical): Update.
4249 * tui/tui-data.h (tui_win_content): Remove.
4250 (struct tui_gen_win_info) <content, content_size>: Remove.
4251 (struct tui_source_element): Add initializers and destructor.
4252 (union tui_which_element, struct tui_win_element): Remove.
4253 (struct tui_source_window_base) <content>: New field.
4254 (struct tui_data_window): Remove destructor.
4255 (tui_alloc_content, tui_free_win_content)
4256 (tui_free_all_source_wins_content): Don't declare.
4257 * tui/tui-data.c (tui_initialize_static_data): Update.
4258 (init_content_element, tui_alloc_content): Remove.
4259 (~tui_gen_win_info): Update.
4260 (~tui_data_window, tui_free_all_source_wins_content)
4261 (tui_free_win_content, free_content, free_content_elements):
4264 2019-06-25 Tom Tromey <tom@tromey.com>
4266 * tui/tui-winsource.h (tui_clear_source_content)
4267 (tui_erase_source_content, tui_show_source_content): Change type
4269 * tui/tui-winsource.c (tui_clear_source_content)
4270 (tui_erase_source_content, tui_show_source_content): Change type
4272 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4273 * tui/tui-source.h (tui_set_source_content_nil): Change type of
4275 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4277 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4279 2019-06-25 Tom Tromey <tom@tromey.com>
4281 * tui/tui-winsource.c (tui_clear_source_content)
4282 (tui_source_window_base::set_is_exec_point_at): Update.
4283 * tui/tui-source.c (tui_set_source_content_nil): Update.
4284 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4286 * tui/tui-data.c (init_content_element): Update.
4288 2019-06-25 Tom Tromey <tom@tromey.com>
4290 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4291 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4292 * tui/tui-layout.c (init_and_make_win): Update.
4293 * tui/tui.h (enum tui_win_type): Update.
4294 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
4295 tui_win_is_auxillary.
4296 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
4297 tui_win_is_auxillary.
4299 2019-06-25 Tom Tromey <tom@tromey.com>
4301 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
4302 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
4303 (tui_delete_data_content_windows, tui_display_all_data)
4304 (tui_data_window::do_scroll_vertical, tui_display_data_from):
4306 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
4307 * tui/tui-regs.c (tui_last_regs_line_no)
4308 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4309 (tui_show_registers): Update.
4310 (tui_show_register_group): Return void. Update.
4311 (tui_display_registers_from, tui_display_reg_element_at_line)
4312 (tui_display_registers_from_line, tui_check_register_values):
4314 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
4316 (struct tui_data_window) <regs_content>: Now a std::vector.
4317 <regs_content_count>: Remove.
4318 (tui_add_content_elements, tui_free_data_content): Don't declare.
4319 * tui/tui-data.c (tui_data_window::clear_detail): Update.
4320 (init_content_element): Remove DATA_WIN case. Add assert.
4321 (tui_add_content_elements): Remove.
4322 (tui_data_window): Update.
4323 (tui_free_data_content): Remove.
4324 (free_content_elements): Remove DATA_WIN case.
4326 2019-06-25 Tom Tromey <tom@tromey.com>
4328 * tui/tui-data.c (tui_data_item_window): Update.
4329 * tui/tui-windata.h (tui_check_data_values): Don't declare.
4330 * tui/tui-windata.c (tui_display_all_data)
4331 (tui_display_data_from_line): Update.
4332 (tui_check_data_values): Remove.
4333 * tui/tui-regs.c (tui_show_register_group)
4334 (tui_display_reg_element_at_line): Update.
4335 * tui/tui-hooks.c (tui_register_changed)
4336 (tui_refresh_frame_and_register_information): Call
4337 tui_check_register_values.
4338 * tui/tui-data.h (struct tui_data_window) <data_content,
4339 data_content_count, data_type>: Remove.
4340 (enum tui_data_type): Remove.
4342 * tui/tui-data.c (tui_data_window::clear_detail)
4343 (~tui_data_window): Update.
4345 2019-06-25 Tom Tromey <tom@tromey.com>
4347 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4349 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4350 Rename from tui_first_data_item_displayed. Update.
4351 (tui_data_window::refresh_all)
4352 (tui_data_window::do_scroll_vertical): Update.
4353 * tui/tui-data.h (struct tui_data_window)
4354 <first_data_item_displayed>: Declare new method.
4356 2019-06-25 Tom Tromey <tom@tromey.com>
4358 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4359 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4361 (tui_initialize_static_data): ...here.
4363 2019-06-25 Tom Tromey <tom@tromey.com>
4365 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4366 (tui_display_registers_from, tui_check_register_values): Update.
4367 (tui_display_register): Remove win_info parameter; update.
4368 (tui_get_register): Change type of parameters.
4369 * tui/tui-data.h (struct tui_data_element): Remove.
4370 (union tui_which_element) <data>: Remove.
4371 <data_window>: Change type.
4372 (struct tui_data_item_window): New.
4373 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4375 (~tui_data_item_window): New destructor.
4376 (free_content_elements): Remove DATA_ITEM_WIN case.
4378 2019-06-25 Tom Tromey <tom@tromey.com>
4380 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
4383 2019-06-25 Tom Tromey <tom@tromey.com>
4385 * tui/tui-data.h (struct tui_command_element): Remove.
4386 (union tui_which_element) <command>: Remove.
4387 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
4389 (free_content_elements): Remove CMD_WIN case.
4391 2019-06-25 Tom Tromey <tom@tromey.com>
4393 * tui/tui-layout.c (tui_set_layout): Update.
4394 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4395 * tui/tui-data.c (layout_def): Update.
4397 2019-06-25 Tom Tromey <tom@tromey.com>
4399 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4400 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4401 (tui_source_window_base::set_new_height): Update.
4402 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4404 (tui_set_locator_fullname, tui_set_locator_info)
4405 (tui_show_frame_info): Update.
4406 * tui/tui-source.c (tui_set_source_content)
4407 (tui_source_is_displayed): Update.
4408 * tui/tui-layout.c (show_source_disasm_command, show_data)
4409 (show_source_or_disasm_and_command): Update.
4410 * tui/tui-disasm.c (tui_set_disassem_content)
4411 (tui_get_begin_asm_address): Update.
4412 * tui/tui-data.h (struct tui_locator_element): Remove.
4413 (union tui_which_element) <locator>: Remove.
4414 (struct tui_locator_window): New.
4415 (tui_locator_win_info_ptr): Change return type.
4416 * tui/tui-data.c (_locator): Change type.
4417 (tui_locator_win_info_ptr): Change return type.
4418 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4419 (tui_alloc_content): Add assert.
4421 2019-06-25 Tom Tromey <tom@tromey.com>
4423 * tui/tui-winsource.c
4424 (tui_exec_info_window::maybe_allocate_content): New method.
4425 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4426 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4427 (make_source_or_disasm_window): Add cast.
4428 * tui/tui-data.h (union tui_which_element) <simple_string>:
4430 (struct tui_source_info): New.
4431 (struct tui_source_window_base) <execution_info>: Change type.
4432 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4433 case, and add assert.
4434 (tui_alloc_content): Add assert.
4436 2019-06-25 Tom Tromey <tom@tromey.com>
4438 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4439 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4440 * tui/tui-data.c (tui_alloc_win_info): Remove.
4442 2019-06-25 Tom Tromey <tom@tromey.com>
4444 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4445 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4448 2019-06-25 Tom Tromey <tom@tromey.com>
4450 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4451 make_visible_with_new_height method.
4452 (tui_win_info::make_visible_with_new_height): New method.
4453 (tui_source_window_base::do_make_visible_with_new_height)
4454 (tui_data_window::do_make_visible_with_new_height)
4455 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4456 (make_visible_with_new_height): Remove.
4457 (tui_resize_all, tui_adjust_win_heights): Use
4458 make_visible_with_new_height method.
4459 * tui/tui-data.h (struct tui_win_info)
4460 <do_make_visible_with_new_height, make_visible_with_new_height>:
4462 (struct tui_source_window_base, struct tui_data_window)
4463 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4466 2019-06-25 Tom Tromey <tom@tromey.com>
4468 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4470 (update_tab_width): Call update_tab_width method.
4471 * tui/tui-data.h (struct tui_win_info)
4472 (struct tui_source_window_base) <update_tab_width>: New methods.
4474 2019-06-25 Tom Tromey <tom@tromey.com>
4476 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4478 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4480 (tui_gen_win_info::make_visible): Update.
4481 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4483 * tui/tui-data.h (enum tui_box): New enum.
4484 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4486 2019-06-25 Tom Tromey <tom@tromey.com>
4488 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4489 init_and_make_win for EXEC_INFO_WIN.
4490 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4492 (struct tui_win_info) <~tui_win_info>: Inline.
4493 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4495 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4496 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4498 (tui_initialize_static_data): Update.
4499 (~tui_gen_win_info): Handle more cleanup here.
4500 (~tui_source_window_base): Delete "execution_info".
4501 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4503 2019-06-25 Tom Tromey <tom@tromey.com>
4505 * tui/tui-layout.c (make_command_window): Don't set
4507 (show_source_disasm_command): Call the reset method.
4508 (show_data): Don't set can_highlight. Call the reset method.
4509 (tui_gen_win_info::reset): Rename from init_gen_win_info
4510 (init_and_make_win): Simplify. Return tui_gen_win_info.
4511 (show_source_or_disasm_and_command): Call the reset method.
4512 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4513 (struct tui_cmd_window): Set can_highlight.
4515 2019-06-25 Tom Tromey <tom@tromey.com>
4517 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4519 (tui_make_visible, tui_make_invisible): Rewrite.
4520 (tui_win_info::make_visible): Remove.
4521 (tui_source_window_base::make_visible): Update.
4522 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4523 method. Moved from...
4524 (struct tui_win_info) <make_visible>: ...here.
4526 2019-06-25 Tom Tromey <tom@tromey.com>
4528 * tui/tui-winsource.c
4529 (tui_source_window_base::do_scroll_horizontal): Remove direction
4531 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
4532 direction parameter.
4533 * tui/tui-win.c (tui_win_info::forward_scroll)
4534 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4535 (tui_win_info::right_scroll): Update.
4536 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4537 direction parameter.
4538 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
4539 direction parameter.
4540 * tui/tui-data.h (enum tui_scroll_direction): Remove.
4541 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
4542 Remove direction parameter.
4543 (struct tui_source_window_base, struct tui_source_window)
4544 (struct tui_disasm_window, struct tui_data_window)
4545 (struct tui_cmd_window): Update.
4547 2019-06-25 Tom Tromey <tom@tromey.com>
4549 * tui/tui-winsource.h (tui_set_exec_info_content)
4550 (tui_show_exec_info_content, tui_erase_exec_info_content)
4551 (tui_clear_exec_info_content, tui_update_exec_info): Change
4552 argument to tui_source_window_base.
4553 * tui/tui-winsource.c (tui_set_exec_info_content)
4554 (tui_show_exec_info_content, tui_erase_exec_info_content)
4555 (tui_clear_exec_info_content, tui_update_exec_info): Change
4556 argument to tui_source_window_base.
4558 2019-06-25 Tom Tromey <tom@tromey.com>
4560 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
4561 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
4563 2019-06-25 Tom Tromey <tom@tromey.com>
4565 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
4568 2019-06-25 Tom Tromey <tom@tromey.com>
4570 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
4572 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
4574 * tui/tui-source.c (tui_set_source_content): Update.
4575 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4577 2019-06-25 Tom Tromey <tom@tromey.com>
4579 * tui/tui-win.c (window_name_completer, tui_set_focus)
4580 (tui_all_windows_info): Use name method.
4581 * tui/tui-data.h (struct tui_gen_win_info)
4582 (struct tui_source_window, struct tui_disasm_window)
4583 (struct tui_data_window, struct tui_cmd_window) <name>: New
4585 (tui_win_name): Don't declare.
4586 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
4587 (tui_win_name): Remove.
4589 2019-06-25 Tom Tromey <tom@tromey.com>
4591 * tui/tui-winsource.h (tui_update_source_window)
4592 (tui_update_source_window_as_is): Change parameter type.
4593 * tui/tui-winsource.c (tui_update_source_window): Change win_info
4594 to be a tui_source_window_base.
4595 (tui_update_source_window_as_is): Likewise.
4596 * tui/tui-win.c (make_visible_with_new_height): Update.
4598 2019-06-25 Tom Tromey <tom@tromey.com>
4600 * tui/tui-winsource.c (tui_erase_source_content)
4601 (tui_show_source_content, tui_show_exec_info_content)
4602 (tui_erase_exec_info_content): Use refresh_window method.
4603 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
4604 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
4605 from tui_refresh_win.
4606 (tui_data_window::refresh_window): New method.
4607 (tui_win_info::refresh, tui_source_window_base::refresh)
4608 (tui_refresh_all): Use refresh_window method.
4609 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
4611 * tui/tui-regs.c (tui_display_register): Call refresh_window
4613 * tui/tui-layout.c (show_source_disasm_command)
4614 (show_source_or_disasm_and_command): Call refresh_window method.
4615 * tui/tui-data.h (struct tui_gen_win_info)
4616 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
4619 2019-06-25 Tom Tromey <tom@tromey.com>
4621 * tui/tui.c (tui_rl_other_window, tui_enable)
4622 (tui_is_window_visible, tui_get_command_dimension): Update.
4623 * tui/tui-winsource.c (tui_update_source_window_as_is)
4624 (tui_clear_source_content, tui_erase_source_content)
4625 (tui_show_source_line, tui_source_window_base::refill)
4626 (tui_source_window_base::do_scroll_horizontal)
4627 (tui_source_window_base::set_is_exec_point_at)
4628 (tui_update_breakpoint_info, tui_set_exec_info_content)
4629 (tui_alloc_source_buffer, tui_line_is_displayed)
4630 (tui_addr_is_displayed): Update.
4631 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4632 (tui_check_and_display_highlight_if_needed)
4633 (tui_win_info::make_visible, tui_win_info::refresh)
4634 (tui_refresh_all): Update.
4635 * tui/tui-windata.c (tui_first_data_item_displayed)
4636 (tui_delete_data_content_windows, tui_erase_data_content)
4637 (tui_display_all_data, tui_data_window::refresh_all)
4638 (tui_check_data_values): Update.
4639 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
4640 (tui_set_win_focus_to, tui_win_info::forward_scroll)
4641 (tui_win_info::backward_scroll, tui_refresh_all_win)
4642 (tui_resize_all, tui_set_focus, tui_all_windows_info)
4643 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
4644 (tui_source_window_base::set_new_height)
4645 (tui_data_window::set_new_height)
4646 (make_invisible_and_set_new_height)
4647 (make_visible_with_new_height, new_height_ok)
4648 (parse_scrolling_args): Update.
4649 * tui/tui-stack.c (tui_show_frame_info): Update.
4650 * tui/tui-source.c (tui_set_source_content)
4651 (tui_set_source_content_nil, tui_source_is_displayed)
4652 (tui_source_window::do_scroll_vertical): Update.
4653 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4654 (tui_display_registers_from, tui_display_reg_element_at_line)
4655 (tui_check_register_values, tui_reg_command): Update.
4656 * tui/tui-layout.c (tui_default_win_height)
4657 (show_source_disasm_command, show_data, init_and_make_win)
4658 (show_source_or_disasm_and_command): Update.
4659 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
4660 (tui_redisplay_readline, tui_mld_flush)
4661 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
4663 * tui/tui-disasm.c (tui_set_disassem_content)
4664 (tui_disasm_window::do_scroll_vertical): Update.
4665 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
4667 (struct tui_win_info): Derive from tui_gen_win_info.
4668 <~tui_win_info>: Mark as override.
4669 <generic>: Remove member.
4670 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
4671 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
4672 (~tui_data_window, ~tui_win_info)
4673 (tui_free_all_source_wins_content): Update.
4674 * tui/tui-command.c (tui_refresh_cmd_win): Update.
4676 2019-06-25 Tom Tromey <tom@tromey.com>
4678 * tui/tui-layout.c (init_and_make_win): Use new.
4679 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
4680 destructor, initializers.
4681 (tui_alloc_generic_win_info): Don't declare.
4682 * tui/tui-data.c (_locator): Add argument to constructor.
4683 (source_win, disasm_win): New globals.
4684 (exec_info): Remove.
4685 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4687 (tui_alloc_generic_win_info): Remove.
4688 (init_content_element): Use new.
4689 (tui_win_info::tui_win_info): Update.
4690 (free_content_elements) <case DATA_WIN>: Use delete.
4692 2019-06-25 Tom Tromey <tom@tromey.com>
4694 * tui/tui-wingeneral.c (tui_refresh_win): Update.
4695 * tui/tui-windata.c (tui_first_data_item_displayed)
4696 (tui_delete_data_content_windows): Update.
4697 * tui/tui-win.c (tui_data_window::set_new_height): Update.
4698 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4699 (tui_display_registers_from, tui_check_register_values): Update.
4700 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
4702 * tui/tui-data.c (init_content_element): Update. Allocate the new
4704 (tui_free_data_content): Update.
4705 (free_content_elements) <case DATA_WIN>: Free the window.
4707 2019-06-25 Tom Tromey <tom@tromey.com>
4709 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
4711 * tui/tui-layout.c (make_command_window)
4712 (show_source_disasm_command, show_data, init_and_make_win)
4713 (show_source_or_disasm_and_command): Update.
4714 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
4716 <can_highight, is_highlighted>: Now bool.
4717 (tui_set_win_highlight): Don't declare.
4718 * tui/tui-data.c (tui_set_win_highlight): Remove.
4720 2019-06-25 Tom Tromey <tom@tromey.com>
4722 * tui/tui-wingeneral.c (make_visible): Remove check of window
4725 2019-06-25 Tom Tromey <tom@tromey.com>
4727 * tui/tui-win.c (tui_win_info::max_height)
4728 (tui_cmd_window::max_height): New methods.
4729 (new_height_ok): Call max_height.
4730 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
4731 <max_height>: New method.
4733 2019-06-25 Tom Tromey <tom@tromey.com>
4735 * tui/tui-win.c (tui_source_window_base::set_new_height)
4736 (tui_data_window::set_new_height): New methods.
4737 (make_invisible_and_set_new_height): Call set_new_height method.
4738 * tui/tui-data.h (struct tui_win_info)
4739 (struct tui_source_window_base, struct tui_data_window)
4740 <set_new_height>: New method.
4742 2019-06-25 Tom Tromey <tom@tromey.com>
4744 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
4745 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
4746 tui_refresh_data_win.
4747 * tui/tui-win.c (tui_source_window_base::refresh_all): New
4749 (tui_refresh_all_win): Call the refresh_all method.
4750 (tui_set_focus): Likewise.
4751 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
4752 (struct tui_source_window_base, struct tui_data_window) <refresh>:
4755 2019-06-25 Tom Tromey <tom@tromey.com>
4757 * tui/tui-winsource.h (tui_refill_source_window)
4758 (tui_set_is_exec_point_at): Don't declare.
4759 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4760 (tui_source_window_base::refill): Rename from
4761 tui_refill_source_window.
4762 (tui_source_window_base::do_scroll_horizontal): Update.
4763 (tui_source_window_base::set_is_exec_point_at): Rename from
4764 tui_set_is_exec_point_at.
4765 (tui_update_all_breakpoint_info): Update.
4766 * tui/tui-stack.c (tui_show_frame_info): Update.
4767 * tui/tui-layout.c (show_data): Add cast.
4768 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
4769 * tui/tui-data.h (struct tui_source_window_base) <refill,
4770 set_is_exec_point_at>: New methods.
4771 (tui_source_windows, tui_add_to_source_windows): Update types.
4772 (tui_add_to_source_windows): Remove redundant declaration.
4773 * tui/tui-data.c (source_windows): Store tui_source_window_base.
4774 (tui_source_windows): Change return type.
4775 (tui_clear_source_windows_detail): Update.
4776 (tui_add_to_source_windows): Change type of parameter.
4777 (tui_free_all_source_wins_content): Update.
4779 2019-06-25 Tom Tromey <tom@tromey.com>
4781 * tui/tui-wingeneral.c (tui_win_info::refresh)
4782 (tui_source_window_base::refresh): New methods.
4783 (tui_refresh_all): Call the refresh method.
4784 * tui/tui-data.h (struct tui_win_info)
4785 (struct tui_source_window_base) <refresh>: New method.
4787 2019-06-25 Tom Tromey <tom@tromey.com>
4789 * tui/tui.h (tui_is_window_visible): Return bool.
4790 * tui/tui.c (tui_is_window_visible): Return bool.
4791 * tui/tui-wingeneral.c (tui_make_window, make_visible)
4792 (tui_make_visible, tui_make_invisible)
4793 (tui_win_info::make_visible)
4794 (tui_source_window_base::make_visible, make_all_visible)
4795 (tui_make_all_visible, tui_make_all_invisible): Update.
4796 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
4797 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
4799 (struct tui_win_info, struct tui_source_window_base)
4800 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
4801 * tui/tui-data.c (tui_init_generic_part): Update.
4803 2019-06-25 Tom Tromey <tom@tromey.com>
4805 * tui/tui-wingeneral.c (tui_win_info::make_visible)
4806 (tui_source_window_base::make_visible): New methods.
4807 (make_all_visible): Make method call.
4808 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
4809 (struct tui_source_window_base, struct tui_cmd_window): Override
4811 (tui_win_is_source_type): Don't declare.
4812 * tui/tui-data.c (tui_win_is_source_type): Remove.
4814 2019-06-25 Tom Tromey <tom@tromey.com>
4816 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
4819 2019-06-25 Tom Tromey <tom@tromey.com>
4821 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
4822 Inline constructor. Add initializers for members.
4823 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
4824 constructors; now inline in class.
4826 2019-06-25 Tom Tromey <tom@tromey.com>
4828 * tui/tui-regs.c (tui_show_registers): Update.
4829 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
4831 * tui/tui-data.c (tui_data_window::clear_detail)
4832 (tui_data_window): Update.
4834 2019-06-25 Tom Tromey <tom@tromey.com>
4836 * tui/tui-windata.c (tui_display_all_data)
4837 (tui_display_data_from_line, tui_display_data_from)
4838 (tui_check_data_values, tui_data_window::do_scroll_vertical):
4840 * tui/tui-regs.c (tui_last_regs_line_no)
4841 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4842 (tui_show_registers, tui_show_register_group)
4843 (tui_display_registers_from, tui_display_reg_element_at_line)
4844 (tui_display_registers_from_line, tui_check_register_values)
4845 (tui_reg_next, tui_reg_prev): Update.
4846 * tui/tui-layout.c (tui_set_layout, show_data): Update.
4847 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
4849 (struct tui_win_info) <detail>: Remove. Add new fields from
4851 (TUI_DATA_WIN): Add cast.
4852 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
4853 (~tui_data_window): Simplify.
4855 2019-06-25 Tom Tromey <tom@tromey.com>
4857 * tui/tui-layout.c (show_source_disasm_command)
4858 (show_source_or_disasm_and_command): Update.
4859 * tui/tui-io.c (update_cmdwin_start_line)
4860 (tui_redisplay_readline): Update.
4861 * tui/tui-data.h (struct tui_command_info): Remove.
4862 (struct tui_win_info) <detail>: Remove command_info member.
4863 (struct tui_data_window) <start_line>: New member, from
4865 (TUI_CMD_WIN): Add casts.
4867 2019-06-25 Tom Tromey <tom@tromey.com>
4869 * tui/tui-winsource.c (tui_update_source_window)
4870 (tui_refill_source_window)
4871 (tui_source_window_base::do_scroll_horizontal)
4872 (tui_update_breakpoint_info, tui_set_exec_info_content)
4873 (tui_show_exec_info_content, tui_erase_exec_info_content)
4874 (tui_clear_exec_info_content): Update.
4875 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4877 * tui/tui-win.c (make_invisible_and_set_new_height)
4878 (make_visible_with_new_height): Update.
4879 * tui/tui-source.c (tui_set_source_content)
4880 (tui_show_symtab_source): Update.
4881 * tui/tui-layout.c (extract_display_start_addr)
4882 (show_source_disasm_command, show_data)
4883 (make_source_or_disasm_window)
4884 (show_source_or_disasm_and_command): Update.
4885 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4886 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4888 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4889 to tui_source_window_base.
4890 (struct tui_win_info) <detail>: Remove source_info member.
4891 (struct tui_source_window_base) <has_locator>: Inline.
4892 Move contents from tui_source_info; rename has_locator member to
4894 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4895 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4897 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4899 (tui_free_all_source_wins_content): Cast to
4900 tui_source_window_base.
4902 2019-06-25 Tom Tromey <tom@tromey.com>
4904 * tui/tui-win.c (make_invisible_and_set_new_height)
4905 (make_visible_with_new_height): Call has_locator method.
4906 * tui/tui-layout.c (show_source_disasm_command, show_data)
4907 (show_source_or_disasm_and_command): Update for bool change.
4908 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4909 (tui_win_info) <has_locator>: New method.
4910 (struct tui_source_window_base) <has_locator>: New method.
4911 (tui_win_has_locator): Don't declare.
4912 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4913 from tui_win_has_locator.
4914 (tui_source_window_base): Use false, not FALSE.
4916 2019-06-25 Tom Tromey <tom@tromey.com>
4918 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4919 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4920 clear_detail method directly.
4921 (tui_clear_win_detail): Remove.
4923 2019-06-25 Tom Tromey <tom@tromey.com>
4925 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4926 "this", not TUI_DISASM_WIN.
4928 2019-06-25 Tom Tromey <tom@tromey.com>
4930 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4932 * tui/tui-winsource.c
4933 (tui_source_window_base::do_scroll_horizontal): Rename from
4934 tui_horizontal_source_scroll.
4935 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4936 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4937 from tui_vertical_data_scroll.
4938 * tui/tui-win.h (tui_scroll): Don't declare.
4939 * tui/tui-win.c (tui_win_info::forward_scroll)
4940 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4941 (tui_win_info::right_scroll): Rename and update.
4942 (tui_scroll_forward_command, tui_scroll_backward_command)
4943 (tui_scroll_left_command, tui_scroll_right_command): Update.
4944 (tui_scroll): Remove.
4945 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4946 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4947 from tui_vertical_source_scroll.
4948 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4949 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4950 from tui_vertical_disassem_scroll.
4951 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4952 do_scroll_horizontal>: New methods.
4953 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4955 (struct tui_source_window_base): Add do_scroll_horizontal.
4956 (struct tui_source_window, struct tui_disasm_window): Add
4958 (struct tui_data_window, struct tui_cmd_window): Add
4959 do_scroll_horizontal and do_scroll_vertical.
4960 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4962 2019-06-25 Tom Tromey <tom@tromey.com>
4964 * tui/tui-data.h (struct tui_source_window_base): New struct.
4965 (struct tui_source_window): Derive from tui_source_window_base.
4966 (struct tui_disasm_window): New struct.
4967 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4968 from tui_source_window::clear_detail.
4969 (tui_source_window_base): Rename from tui_source_window.
4970 (~tui_source_window_base): Rename from ~tui_source_window.
4971 (tui_alloc_win_info): Create a tui_disasm_window.
4973 2019-06-25 Tom Tromey <tom@tromey.com>
4975 * tui/tui-data.h (struct tui_source_window)
4976 (struct tui_data_window): Declare destructors.
4977 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4979 (tui_win_info): Simplify.
4981 2019-06-25 Tom Tromey <tom@tromey.com>
4983 * tui/tui-winsource.c (tui_display_main)
4984 (tui_update_source_windows_with_addr)
4985 (tui_update_all_breakpoint_info): Update.
4986 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4987 (new_height_ok, parse_scrolling_args): Update.
4988 * tui/tui-stack.c (tui_show_frame_info): Update.
4989 * tui/tui-data.h (struct tui_list): Remove.
4990 (tui_source_windows): Return a reference to a std::vector.
4991 * tui/tui-data.c (source_windows): Now a std::vector.
4992 (tui_source_windows): Change return type.
4993 (tui_clear_source_windows): Rewrite.
4994 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4995 (tui_free_all_source_wins_content): Rewrite.
4997 2019-06-25 Tom Tromey <tom@tromey.com>
4999 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
5000 (struct tui_data_window, struct tui_cmd_window): Declare
5001 clear_detail method.
5002 * tui/tui-data.c (tui_source_window::clear_detail)
5003 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
5005 (tui_clear_win_detail): Simplify.
5007 2019-06-25 Tom Tromey <tom@tromey.com>
5009 * tui/tui-layout.c (make_source_window, make_disasm_window)
5010 (make_source_or_disasm_window): Remove win_info_ptr parameter.
5011 Return the new window.
5012 (show_source_disasm_command, show_data)
5013 (show_source_or_disasm_and_command): Update.
5015 2019-06-25 Tom Tromey <tom@tromey.com>
5017 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
5018 parameter. Return the new window.
5019 (show_source_disasm_command): Update and remove NULL check.
5020 (show_source_or_disasm_and_command): Update.
5022 2019-06-25 Tom Tromey <tom@tromey.com>
5024 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
5026 2019-06-25 Tom Tromey <tom@tromey.com>
5028 * tui/tui-data.h (struct tui_win_info): Make constructor
5029 protected. Make destructor virtual. Add initializers.
5030 (tui_source_window, tui_data_window, tui_cmd_window): New
5032 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
5033 constructor. Add "type" parameter.
5034 (tui_source_window, tui_data_window, tui_cmd_window): New
5036 (tui_alloc_win_info): Instantiate the appropriate subclass.
5038 2019-06-25 Tom Tromey <tom@tromey.com>
5040 * tui/tui-win.c (tui_resize_all): Use delete.
5041 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5043 (tui_free_window): Don't declare.
5044 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5047 2019-06-25 Tom Tromey <tom@tromey.com>
5049 * tui/tui-data.h (struct tui_win_info): Add constructor.
5050 * tui/tui-data.c (tui_alloc_win_info): Use new.
5051 (tui_free_window): Use delete.
5053 2019-06-22 Tom Tromey <tom@tromey.com>
5055 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5057 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5059 2019-06-22 Tom Tromey <tom@tromey.com>
5061 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5063 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5065 2019-06-22 Tom de Vries <tdevries@suse.de>
5067 * dwarf2read.c (create_addrmap_from_aranges)
5068 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5071 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
5073 * dwarf2read.h (dwarf2_section_info_def): Remove.
5074 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5075 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5076 std::vector<dwarf2_section_info>.
5077 (struct dwo_file) <~dwo_file>: Remove.
5078 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5080 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5081 (dwarf2_read_debug_names): Likewise.
5082 (create_debug_types_hash_table): Change parameter type to
5083 array_view, adjust code accordingly.
5084 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5085 (partial_die_info::fixup): Likewise.
5086 (determine_prefix): Likewise.
5087 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5089 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5091 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5093 <~dwo_file>: Remove call to gdb_bfd_unref.
5094 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5095 gdb_bfd_ref_ptr::get.
5097 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5099 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5101 * dwarf2read.c (struct dwo_file): Initialize fields.
5103 (free_dwo_file): Remove, move content to ~dwo_file.
5104 (struct dwo_file_deleter): Remove.
5105 (dwo_file_up>: Remove custom deleter.
5106 (free_dwo_files): Remove.
5107 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5109 (process_skeletonless_type_units): Call unique_ptr::get.
5110 (allocate_dwo_file_hash_table): Add deleter to created hash
5111 table. Change return type to htab_up.
5112 (lookup_dwo_file_slot): Don't memset dwo_file, call
5114 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5115 (create_dwo_unit_in_dwp_v2): Likewise.
5116 (open_and_init_dwo_file): Likewise.
5117 (free_dwo_file_from_slot): Remove.
5119 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5121 * dwarf2read.h (struct dwarf2_section_info) <readin,
5122 is_virtual>: Change type to bool.
5123 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5126 2019-06-19 Tom Tromey <tom@tromey.com>
5128 * tui/tui-data.h (tui_init_content_element): Don't declare.
5130 2019-06-19 Tom Tromey <tom@tromey.com>
5132 * tui/tui-data.h (tui_init_win_info): Don't declare.
5134 2019-06-19 Tom de Vries <tdevries@suse.de>
5136 * dwarf2read.h (abstract_to_concrete): Change type to
5137 std::unordered_map<sect_offset, std::vector<sect_offset>,
5138 gdb::hash_enum<sect_offset>>.
5140 2019-06-19 Tom Tromey <tromey@adacore.com>
5142 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5143 EVAL_AVOID_SIDE_EFFECTS specially.
5145 2019-06-19 Tom Tromey <tromey@adacore.com>
5147 * source-cache.c (highlighter): New global.
5148 (source_cache::get_source_lines): Create a highlighter on demand.
5150 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
5152 * defs.h (deprecated_interactive_hook): Delete declaration.
5153 * interps.c (clear_interpreter_hooks): Remove use of
5154 deprecated_interactive_hook.
5155 * top.c (deprecated_interactive_hook): Delete definition.
5156 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
5158 2019-06-18 Tom de Vries <tdevries@suse.de>
5161 * dwarf2read.h (abstract_to_concrete): Change type from
5162 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
5163 std::unordered_map<sect_offset, std::vector<sect_offset>>.
5164 * dwarf2read.c (read_variable): Update.
5165 (dwarf2_fetch_die_loc_sect_off): Update.
5167 2019-06-17 Tom de Vries <tdevries@suse.de>
5170 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5171 accessing parent[parent_len - 1].
5173 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5176 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5177 call dtrace_process_dof with NULL dof.
5179 2019-06-16 Tom de Vries <tdevries@suse.de>
5182 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5184 2019-06-16 Tom Tromey <tom@tromey.com>
5186 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5187 (make_all_visible): Use address of member.
5189 2019-06-16 Tom Tromey <tom@tromey.com>
5191 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5192 (tui_free_window, free_content, free_content_elements): Remove
5194 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5196 * tui/tui-regs.c (tui_show_register_group)
5197 (tui_display_registers_from, tui_display_reg_element_at_line):
5198 Remove unnecessary cast.
5200 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5202 * linux-nat.c (normal_mask): Delete.
5203 (_initialize_linux_nat): Don't initialise normal_mask.
5205 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5208 * dwarf-index-write.h (write_psymtabs_to_index): Add
5209 dwz_basename parameter.
5210 * dwarf-index-write.c (write_gdbindex): Move file writing to
5211 write_gdbindex_1. Change return type void.
5212 (assert_file_size): Move up, remove filename parameter.
5213 (write_gdbindex_1): New function.
5214 (write_debug_names): Change return type to void, call
5216 (struct index_wip_file): New struct.
5217 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5218 file logic to index_wip_file. Write index for dwz file if
5220 (save_gdb_index_command): Pass basename of dwz file, if present.
5221 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5222 build-id of dwz file, if present.
5223 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5224 (dwarf2_get_dwz_file): Likewise.
5225 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5226 (dwarf2_get_dwz_file): Likewise.
5228 2019-06-16 Tom Tromey <tom@tromey.com>
5230 * coffread.c (process_coff_symbol): Use xstrdup.
5231 * value.c (create_internalvar): Use xstrdup.
5233 2019-06-16 Tom Tromey <tom@tromey.com>
5235 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5236 * breakpoint.c (stopin_command, stopat_command)
5237 (until_break_command, decode_location_default): Remove unnecessary
5239 * utils.c (subset_compare): Remove unnecessary cast.
5240 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5242 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5244 * infcmd.c (path_command): Remove unnecessary cast.
5245 * coffread.c (decode_type): Remove unnecessary cast.
5246 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5247 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5248 * tui/tui-stack.c (tui_show_locator_content)
5249 (tui_show_frame_info): Remove unnecessary cast.
5250 * tui/tui-win.c (tui_scroll_forward_command)
5251 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5252 (parse_scrolling_args): Remove unnecessary cast.
5253 * tui/tui-data.c (init_win_info, tui_del_window)
5254 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5255 (free_content_elements): Remove unnecessary cast.
5256 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
5258 * tui/tui-source.c (tui_set_source_content)
5259 (tui_vertical_source_scroll): Remove unnecessary cast.
5260 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
5262 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
5263 * tui/tui-regs.c (tui_display_registers_from)
5264 (tui_display_register): Remove unnecessary cast.
5265 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
5266 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
5267 (make_visible): Remove unnecessary cast.
5268 * tui/tui-winsource.c (tui_erase_source_content)
5269 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
5271 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
5272 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
5273 * stabsread.c (read_type, read_array_type, read_range_type):
5274 Remove unnecessary cast.
5275 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
5276 (parse_symbol, parse_type, upgrade_type, parse_external)
5277 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5279 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5281 2019-06-16 Tom Tromey <tom@tromey.com>
5283 * tui/tui-data.c (tui_alloc_generic_win_info)
5284 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5287 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5288 Andrew Burgess <andrew.burgess@embecosm.com>
5290 * f-typeprint.c (f_print_type): Don't return early for not
5291 associated or not allocated types.
5292 (f_type_print_varspec_suffix): Add print_rank parameter and print
5293 ranks of array types in case they dangling.
5294 (f_type_print_base): Add print_rank parameter.
5296 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5298 * NEWS: Mention new MI commands.
5299 * break-catch-throw.c (enum exception_event_kind): Move to
5301 (print_mention_exception_catchpoint): Output text as a single
5303 (catch_exception_command_1): Rename to...
5304 (catch_exception_event): ...this, make non-static, update header
5305 command, and change some parameter types.
5306 (catch_catch_command): Update for changes to
5307 catch_exception_command_1.
5308 (catch_throw_command): Likewise.
5309 (catch_rethrow_command): Likewise.
5310 * breakpoint.c (enum exception_event_kind): Delete.
5311 * breakpoint.h (enum exception_event_kind): Moved here from
5312 break-catch-throw.c.
5313 (catch_exception_event): Declare.
5314 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
5315 (mi_cmd_catch_throw): New function.
5316 (mi_cmd_catch_rethrow): New function.
5317 (mi_cmd_catch_catch): New function.
5318 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
5319 'catch-catch' entries.
5320 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
5321 (mi_cmd_catch_rethrow): Declare.
5322 (mi_cmd_catch_catch): Declare.
5324 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5326 * annotate.c (annotate_source_line): Change return type to void,
5327 update implementation to match.
5328 * annotate.h (annotate_source_line): Change return type to void,
5329 update header comment.
5330 * stack.c (print_frame_info): Don't change what frame information
5331 is printed based on whether annotations are on or not.
5333 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5335 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5336 (annotate_source): Make static.
5337 (annotate_source_line): Moved from source.c and renamed from
5338 identify_source_line. Update the return type.
5339 * annotate.h (annotate_source): Delete declaration.
5340 (annotate_source_line): Declaration moved from source.h, and
5341 renamed from identify_source_line. Return type updated.
5342 * source.c (identify_source_line): Moved to annotate.c and renamed
5343 to annotate_source_line.
5344 (info_line_command): Remove check of annotation_level.
5345 * source.h (identify_source_line): Move declaration to annotate.h
5346 and rename to annotate_source_line.
5347 * stack.c: Add 'annotate.h' include.
5348 (print_frame_info): Remove check of annotation_level before
5349 calling annotate_source_line.
5351 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5353 * source-cache.c (source_cache::get_plain_source_lines): Use
5354 open_source_file_with_line_charpos instead of just
5355 open_source_file, remove call to find_source_lines.
5356 (source_cache::get_source_lines): Likewise.
5357 * source.c (find_source_lines): Make static.
5358 (get_filename_and_charpos): Renamed into...
5359 (open_source_file_with_line_charpos): ..this along with changes to
5360 return a scoped_fd, and some other minor clean ups.
5361 (identify_source_line): Use open_source_file_with_line_charpos.
5362 (search_command_helper): Use open_source_file_with_line_charpos
5363 instead of just open_source_file, remove call to
5365 * source.h (open_source_file_with_line_charpos): Declare new
5367 (find_source_lines): Delete declaration.
5369 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5371 * source.c (get_filename_and_charpos): Remove fullname
5373 (identify_source_line): Update call to get_filename_and_charpos.
5375 2019-06-14 Tom Tromey <tromey@adacore.com>
5378 * ui-style.h (skip_ansi_escape): Update comment.
5379 * ui-file.h (class no_terminal_escape_file): New class.
5380 * ui-file.c (no_terminal_escape_file::write)
5381 (no_terminal_escape_file::puts): New methods.
5382 * cli/cli-logging.c (handle_redirections): Use
5383 no_terminal_escape_file.
5385 2019-06-14 Tom Tromey <tromey@adacore.com>
5387 * NEWS: Move convenience variable news above Python news.
5389 2019-06-14 Tom Tromey <tom@tromey.com>
5391 * gnulib: Move directory to top-level.
5392 * configure.ac: Don't configure gnulib.
5393 * configure: Rebuild.
5394 * common/common-defs.h: Use new path to gnulib.
5395 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5397 (INCGNU): Look in new gnulib location.
5398 (HFILES_NO_SRCDIR): Remove gnulib files.
5399 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5400 (generated_files): Remove GNULIB_H.
5401 ($(LIBGNU), all-lib): Remove targets.
5402 (distclean): Don't mention GNULIB_BUILDDIR.
5403 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5405 2019-06-14 Tom Tromey <tromey@adacore.com>
5407 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5408 Warn if symbol file does not provide any symbols.
5410 2019-06-14 Tom Tromey <tromey@adacore.com>
5412 * source.c (find_and_open_source): Respect basenames_may_differ.
5414 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5416 * annotate.c (annotate_breakpoints_invalid): Make use of
5417 scoped_restore_terminal_state.
5418 (annotate_frames_invalid): Likewise.
5420 2019-06-14 Tom Tromey <tromey@adacore.com>
5422 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5423 allow assignment to an internalvar.
5425 2019-06-14 Tom Tromey <tromey@adacore.com>
5427 * ada-lex.l: Allow "_" in attribute names.
5429 2019-06-14 Tom Tromey <tromey@adacore.com>
5432 * regcache.c (registers_changed): Don't call alloca.
5433 * top.c (execute_command): Don't call alloca.
5435 2019-06-13 Pedro Alves <palves@redhat.com>
5437 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5438 'expression'. When parsing an expression, error out if there's
5439 junk after "unlimited".
5440 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5441 (do_set_command): Adjust calls to is_unlimited_literal.
5443 2019-06-13 Pedro Alves <palves@redhat.com>
5445 * compile/compile.c (make_compile_options_def_group): Add braces
5446 around array_view initializer.
5447 * thread.c (make_thread_apply_all_options_def_group)
5448 (make_thread_apply_all_options_def_group): Likewise.
5450 2019-06-13 Pedro Alves <palves@redhat.com>
5452 * NEWS (New commands): Mention "maint test-options
5453 require-delimiter", "maint test-options unknown-is-error", "maint
5454 test-options unknown-is-operand" and "maint show
5455 test-options-completion-result".
5456 (New command options, command completion): New section.
5457 (Completion improvements): New section.
5458 Mention that you can abbreviate "unlimited".
5460 2019-06-13 Pedro Alves <palves@redhat.com>
5462 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5463 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5464 * unittests/cli-utils-selftests.c (test_parse_flags)
5465 (test_parse_flags_qcs): Delete.
5466 (test_cli_utils): Don't call deleted functions.
5468 2019-06-13 Pedro Alves <palves@redhat.com>
5470 * thread.c: Include "cli/cli-option.h".
5471 (tp_array_compar_ascending): Global.
5472 (tp_array_compar): Delete function.
5473 (tp_array_compar_ascending, tp_array_compar_descending): New
5475 (ascending_option_def, qcs_flag_option_def)
5476 (thr_qcs_flags_option_defs)
5477 (make_thread_apply_all_options_def_group)
5478 (make_thread_apply_options_def_group): New.
5479 (thread_apply_all_command): Use gdb::option::process_options.
5480 (thread_apply_command_completer)
5481 (thread_apply_all_command_completer): New.
5482 (thread_apply_command): Use gdb::option::process_options.
5483 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5484 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5485 to generate help text of "thread apply". Adjust "taas"'s help.
5486 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5487 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5489 2019-06-13 Pedro Alves <palves@redhat.com>
5491 * thread.c (thread_apply_command): Check for invalid TID with
5492 isdigit instead of !isalpha.
5494 2019-06-13 Pedro Alves <palves@redhat.com>
5496 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5497 (validate_flags_qcs): New.
5498 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5499 (validate_flags_qcs): Declare.
5500 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5501 (make_frame_apply_options_def_group): New.
5502 (frame_apply_command_count): Process options with
5503 gdb::option::process_options.
5504 (frame_apply_completer): New.
5505 (frame_apply_level_completer, frame_apply_all_completer)
5506 (frame_apply_completer): New.
5507 (_initialize_stack): Update help of "frame apply", "frame apply
5508 level", "frame apply all" and "faas" to mention supported options
5509 and install command completers.
5510 * stack.h (frame_apply_all_completer): Declare.
5511 * thread.c: Include "stack.h".
5512 (tfaas_command): Add "--".
5513 (_initialize_thread): Update help "tfaas" to mention supported
5514 options and install command completer.
5516 2019-06-13 Pedro Alves <palves@redhat.com>
5518 * completer.c (complete_nested_command_line): New.
5519 (gdb_completion_word_break_characters_throw): Add assertion.
5520 * completer.h (complete_nested_command_line): Declare.
5522 2019-06-13 Pedro Alves <palves@redhat.com>
5524 * stack.c (parse_backtrace_qualifiers): New.
5525 (backtrace_command): Use it.
5526 (backtrace_command_completer): Complete on qualifiers.
5528 2019-06-13 Pedro Alves <palves@redhat.com>
5530 * frame.c: Include "cli/cli-option.h.
5531 (user_set_backtrace_options): New.
5532 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
5534 (get_prev_frame): Adjust.
5535 (boolean_option_def, uinteger_option_def)
5536 (set_backtrace_option_defs): New.
5537 (_initialize_frame): Adjust and use
5538 gdb::option::add_setshow_cmds_for_options to install "set
5539 backtrace past-main" and "set backtrace past-entry".
5540 * frame.h: Include "cli/cli-option.h".
5541 (struct frame_print_options): Forward declare.
5542 (print_frame_arguments_all, print_frame_arguments_scalars)
5543 (print_frame_arguments_none): Declare.
5544 (print_entry_values): Delete declaration.
5545 (struct frame_print_options, user_frame_print_options): New.
5546 (struct set_backtrace_options): New.
5547 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
5548 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
5549 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5550 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
5551 (list_args_or_locals): Add frame_print_options parameter.
5552 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5553 * python/py-framefilter.c (enumerate_args): Pass down
5554 USER_FRAME_PRINT_OPTIONS.
5555 * stack.c: Include "cli/cli-option.h".
5556 (print_frame_arguments_all, print_frame_arguments_scalars)
5557 (print_frame_arguments_none): Declare.
5558 (print_raw_frame_arguments, print_entry_values): Delete.
5559 (user_frame_print_options): New.
5560 (boolean_option_def, enum_option_def, frame_print_option_defs):
5562 (struct backtrace_cmd_options): New.
5563 (bt_flag_option_def): New.
5564 (backtrace_command_option_defs): New.
5565 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5566 (print_frame_arg, read_frame_arg, print_frame_args)
5567 (print_frame_info, print_frame): Add frame_print_options parameter
5569 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
5570 (backtrace_command_1): Add frame_print_options and
5571 backtrace_cmd_options parameters and use them.
5572 (make_backtrace_options_def_group): New.
5573 (backtrace_command): Process command options with
5574 gdb::option::process_options.
5575 (backtrace_command_completer): New.
5576 (_initialize_stack): Extend "backtrace"'s help to mention
5577 supported options. Install completer for "backtrace".
5578 Install some settings commands with add_setshow_cmds_for_options.
5580 2019-06-13 Pedro Alves <palves@redhat.com>
5582 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
5583 and that "set/show print raw frame-arguments" are now deprecated.
5585 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
5587 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
5588 * stack.c (_initialize_stack): Install "set/show print
5589 raw-frame-arguments", and deprecate "set/show print raw
5591 * valprint.c (_initialize_valprint): Deprecate "set/show print
5594 2019-06-13 Pedro Alves <palves@redhat.com>
5596 * compile/compile.c (struct compile_options): New.
5597 (compile_flag_option_def, compile_command_option_defs)
5598 (make_compile_options_def_group): New.
5599 (compile_file_command): Handle options with
5600 gdb::option::process_options.
5601 (compile_file_command_completer): New function.
5602 (compile_code_command): Handle options with
5603 gdb::option::process_options.
5604 (compile_code_command_completer): New function.
5605 (_initialize_compiler): Install completers for "compile code" and
5606 "compile file". Mention available options in "compile code" and
5607 "compile code"'s help.
5608 * completer.c (advance_to_completion_word): New, factored out from
5610 (advance_to_expression_complete_word_point): ... this.
5611 (advance_to_filename_complete_word_point): New.
5612 * completer.h (advance_to_filename_complete_word_point): New
5615 2019-06-13 Pedro Alves <palves@redhat.com>
5617 * compile/compile.c: Include "cli/cli-option.h".
5618 (compile_print_value): Scope data pointer is now a
5619 value_print_options pointer; adjust.
5620 (compile_print_command): Process options. Scope data pointer is
5621 now a value_print_options pointer; adjust.
5622 (_initialize_compile): Update "compile print"'s help to include
5623 supported options. Install a completer for "compile print".
5624 * cp-valprint.c (show_vtblprint, show_objectprint)
5625 (show_static_field_print): Delete.
5626 (_initialize_cp_valprint): Don't install "set print
5627 static-members", "set print vtbl", "set print object" here.
5628 * printcmd.c: Include "cli/cli-option.h" and
5629 "common/gdb_optional.h".
5630 (print_command_parse_format): Rework to fill in a
5631 value_print_options instead of a format_data.
5632 (print_value): Change parameter type from format_data pointer to
5633 value_print_options reference. Adjust.
5634 (print_command_1): Process options. Adjust to pass down a
5635 value_print_options.
5636 (print_command_completer): New.
5637 (_initialize_printcmd): Install print_command_completer as
5638 handle_brkchars completer for the "print" command. Update
5639 "print"'s help to include supported options.
5640 * valprint.c: Include "cli/cli-option.h".
5641 (show_vtblprint, show_objectprint, show_static_field_print): Moved
5642 here from cp-valprint.c.
5643 (boolean_option_def, uinteger_option_def)
5644 (value_print_option_defs, make_value_print_options_def_group):
5645 New. Use gdb::option::add_setshow_cmds_for_options to install
5646 "set print elements", "set print null-stop", "set print repeats",
5647 "set print pretty", "set print union", "set print array", "set
5648 print address", "set print symbol", "set print array-indexes".
5649 * valprint.h: Include <string> and "cli/cli-option.h".
5650 (make_value_print_options_def_group): Declare.
5651 (print_value): Change parameter type from format_data pointer to
5652 value_print_options reference.
5653 (print_command_completer): Declare.
5655 2019-06-13 Pedro Alves <palves@redhat.com>
5657 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
5658 (COMMON_SFILES): Add maint-test-settings.c.
5659 * cli/cli-decode.c (boolean_enums): New global, factored out from
5661 (add_setshow_boolean_cmd): ... here.
5662 * cli/cli-decode.h (boolean_enums): Declare.
5663 * cli/cli-option.c: New file.
5664 * cli/cli-option.h: New file.
5665 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
5666 factored out from ...
5667 (parse_cli_boolean_value(const char *)): ... this.
5668 (is_unlimited_literal): Change parameter type to pointer to
5669 pointer. Adjust and advance ARG pointer.
5670 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5671 (parse_cli_var_enum): New, factored out from ...
5672 (do_set_command): ... this. Adjust.
5673 * cli/cli-setshow.h (parse_cli_boolean_value)
5674 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5675 (parse_cli_var_enum): Declare.
5676 * cli/cli-utils.c: Include "cli/cli-option.h".
5677 (get_ulongest): New.
5678 * cli/cli-utils.h (get_ulongest): Declare.
5679 (check_for_argument): New overloads.
5680 * maint-test-options.c: New file.
5682 2019-06-13 Pedro Alves <palves@redhat.com>
5684 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
5685 parse a range if "-" is at the end of the string.
5687 2019-06-13 Pedro Alves <palves@redhat.com>
5689 * cli/cli-setshow.c (parse_auto_binary_operation)
5690 (parse_cli_boolean_value): Don't allow "o".
5692 2019-06-13 Pedro Alves <palves@redhat.com>
5694 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
5695 * NEWS: Mention maint test-settings KIND.
5696 * maint-test-settings.c: New file.
5698 2019-06-13 Pedro Alves <palves@redhat.com>
5700 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
5702 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
5705 2019-06-13 Pedro Alves <palves@redhat.com>
5707 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
5710 2019-06-13 Pedro Alves <palves@redhat.com>
5712 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
5714 2019-06-13 Pedro Alves <palves@redhat.com>
5716 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
5717 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
5719 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
5720 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
5722 (check_for_argument): Skip spaces after argument.
5724 2019-06-13 Pedro Alves <palves@redhat.com>
5726 * thread.c (thread_apply_command): Adjust TID parsing.
5727 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
5728 detected before end of string.
5729 (tid_is_in_list): Error out if LIST is invalid.
5731 2019-06-13 Pedro Alves <palves@redhat.com>
5733 * completer.c (complete_line_internal_1): Rewind completion word
5735 (completion_tracker::advance_custom_word_point_by): Change
5736 parameter type to int.
5737 * completer.h (completion_tracker::advance_custom_word_point_by):
5740 2019-06-13 Pedro Alves <palves@redhat.com>
5742 * completer.c (advance_to_completion_word): Handle delimiters.
5744 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
5746 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
5748 2019-06-11 Tom Tromey <tom@tromey.com>
5750 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
5751 (xmalloc_failed): Move to alloc.c.
5752 * alloc.c: New file.
5753 * Makefile.in (COMMON_SFILES): Add alloc.c.
5755 2019-06-11 Tom Tromey <tom@tromey.com>
5757 * nat/linux-waitpid.c: Don't include server.h.
5758 (linux_debug): Remove.
5759 (my_waitpid): Update.
5761 2019-06-11 Tom Tromey <tromey@adacore.com>
5763 * infcall.c (_initialize_infcall): Remove trailing newline from
5765 * user-regs.c (_initialize_user_regs): Remove trailing newline
5767 * typeprint.c (_initialize_typeprint): Remove trailing newline
5769 * reverse.c (_initialize_reverse): Remove trailing newlines from
5771 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
5773 * language.c (add_set_language_command): Remove trailing newline
5775 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
5777 * disasm.c (_initialize_disasm): Remove trailing newline from
5779 * top.c (init_main): Remove trailing newline from help.
5780 * interps.c (_initialize_interpreter): Remove trailing newline
5782 * btrace.c (_initialize_btrace): Remove trailing newlines from
5784 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
5786 * python/python.c (_initialize_python): Remove trailing newline
5788 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
5790 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
5791 from help. Reformat some text.
5792 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
5794 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
5797 2019-06-11 Tom Tromey <tromey@adacore.com>
5799 * darwin-nat.c (darwin_decode_exception_message)
5800 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
5802 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
5804 * valops.c (value_slice): Check for not allocated or not
5807 2019-06-10 Tom de Vries <tdevries@suse.de>
5810 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
5811 sure an empty slot (defined by a 32-bit zero pair) is recognized as
5814 2019-06-10 Tom de Vries <tdevries@suse.de>
5817 * linespec.c (linespec_lexer_lex_string): Remove incorrect
5818 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
5820 2019-06-10 Tom de Vries <tdevries@suse.de>
5823 * symtab.c (struct demangled_name_entry): Add language field.
5824 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
5825 static minimal symbol". Set and use language field.
5827 2019-06-10 Tom Tromey <tromey@adacore.com>
5829 * ada-lang.c (_initialize_ada_language): Update help text.
5831 2019-06-10 Tom Tromey <tromey@adacore.com>
5833 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
5835 * guile/guile.c (handle_boot_error): Don't end warning with a
5837 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
5838 warning with a newline.
5839 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
5841 (s12z_frame_cache): Likewise.
5842 * dwarf-index-cache.c (index_cache::store): Don't end warning with
5844 * solib-svr4.c (disable_probes_interface): Don't end warning with
5846 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
5848 * python/python.c (do_finish_initialization): Don't end warning
5851 2019-06-10 Tom Tromey <tom@tromey.com>
5853 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5854 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5857 2019-06-10 Tom Tromey <tromey@adacore.com>
5859 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
5861 (elf_new_init): Don't call stabsread_new_init.
5862 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
5863 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
5864 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
5866 2019-06-10 Tom de Vries <tdevries@suse.de>
5870 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5872 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5874 * source.c (find_and_open_source): Also rewrite relative file
5877 2019-04-26 Amos Bird <amosbird@gmail.com>
5879 * annotate.c (annotate_thread_exited): Add "thread-exited"
5882 2019-06-06 Tom Tromey <tromey@adacore.com>
5884 * maint.h (class scoped_command_stats): Use
5885 DISABLE_COPY_AND_ASSIGN.
5886 <print_time>: New method.
5887 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5889 (scoped_command_stats::print_time): New method.
5891 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5893 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5894 instructions of lengths 6 or 8 bytes.
5896 2019-06-04 Pedro Alves <palves@redhat.com>
5898 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5900 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5901 * breakpoint.c (condition_completer): Likewise.
5902 * cli/cli-dump.c (scan_expression): Likewise.
5903 * common/filestuff.c (mkdir_recursive): Likewise.
5904 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5905 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5906 (gdb_abspath): Likewise.
5907 * compile/compile-cplus-types.c
5908 (compile_cplus_instance::decl_name): Likewise.
5909 * completer.c (complete_explicit_location):
5910 (signal_completer, reg_or_group_completer_1): Likewise.
5911 * cp-support.c (cp_remove_params_if_any): Likewise.
5912 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5913 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5914 * infcmd.c (strip_bg_char): Likewise.
5915 * linespec.c (copy_token_string): Likewise.
5916 * mi/mi-main.c (output_cores): Likewise.
5917 * psymtab.c (psymtab_search_name):
5918 * symfile.c (test_set_ext_lang_command): Likewise.
5919 * target.c (target_fileio_read_stralloc): Likewise.
5920 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5921 * value.c (complete_internalvar): Likewise.
5923 2019-06-04 Christian Biesinger <cbiesinger@google.com>
5925 Add objfile property to gdb.Type.
5926 * NEWS: Mention Python API addition.
5927 * python/py-type.c (typy_get_objfile): New method.
5929 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5931 * NEWS: Mention the new set|show style [title|highlight].
5932 Mention changes to "show style", "help" and "apropos".
5934 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5936 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5937 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5938 instead of print_help_for_command.
5939 (print_doc_of_command): New function.
5940 (help_list): Add 'apropos -v word' suggestion.
5941 (print_help_for_command): Style the command name using title style.
5942 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5943 (_initialize_cli_cmds): Describe -v in apropos_command help.
5945 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5947 * cli/cli-style.h (cli_style_option): Add name in constructor,
5948 add m_name class member, add constructor with intensity,
5949 add name class function.
5950 (cli_style_option::add_setshow_commands): Remove name argument.
5951 (highlight_style, title_style): New styles.
5952 * cli/cli-style.c (do_show): New function that shows a style
5953 characteristic styling the style name with itself.
5954 (set_style_name): New function.
5955 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5956 Update all callers according to the changes in cli/cli-style.h.
5957 * utils.h (fputs_highlighted): New function.
5958 * utils.c (fputs_highlighted): Likewise.
5960 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5962 * NEWS: Mention new pipe command and new convenience variables.
5964 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5966 * cli/cli-cmds.c (pipe_command): New function.
5967 (_initialize_cli_cmds): Call add_com for pipe_command.
5968 Define | as an alias for pipe.
5969 (exit_status_set_internal_vars): New function.
5970 (shell_escape): Call exit_status_set_internal_vars.
5971 cli/cli-decode.c (find_command_name_length): Recognize | as
5972 a single character command.
5974 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5976 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5977 top.c (execute_command_to_ui_file): New function, mostly a copy
5978 of execute_command_to_string.
5979 (execute_command_to_string): Implement by calling
5980 execute_command_to_ui_file.
5982 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5984 * top.h (saved_command_line): Remove declaration.
5985 * top.c (previous_saved_command_line, previous_repeat_arguments):
5987 (saved_command_line): Make static, define together with other
5989 (dont_repeat): Clear repeat_arguments.
5990 (repeat_previous, get_saved_command_line, save_command_line):
5992 (gdb_init): Initialize saved_command_line
5993 and previous_saved_command_line.
5994 * main.c (captured_main_1): Remove saved_command_line initialization.
5995 * event-top.c (handle_line_of_input): Update to use
5996 the new 'repeat' related functions instead of direct access to
5998 * command.h (repeat_previous, get_saved_command_line,
5999 save_command_line): New declarations.
6000 (dont_repeat): Add comment.
6002 2019-05-30 Tom Tromey <tromey@adacore.com>
6004 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
6006 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
6008 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
6011 * completer.c (complete): Initialize variable word.
6013 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
6015 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6016 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
6017 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
6018 'body' is NULL to the outter 'if', protecting the '!is_define'
6021 2019-05-29 Tom Tromey <tromey@adacore.com>
6023 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
6024 (dwarf_unknown): New function.
6025 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
6026 (dwarf_type_encoding_name): Use dwarf_unknown.
6028 2019-05-29 Tom Tromey <tromey@adacore.com>
6031 * cp-valprint.c (cp_print_value_fields): Call
6032 cp_print_static_field inside "try".
6034 2019-05-29 Tom Tromey <tromey@adacore.com>
6036 * inflow.c (struct terminal_info): Add default operator=.
6037 * configure: Rebuild.
6038 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6039 -Wdeprecated-copy-dtor, -Wredundant-move.
6041 2019-05-29 Tom Tromey <tromey@adacore.com>
6044 * infcmd.c (print_return_value_1): Handle finish_print
6046 (show_print_finish): New function.
6047 (_initialize_infcmd): Add "set/show print finish" commands.
6048 * valprint.c (user_print_options): Initialize new member.
6049 * valprint.h (struct value_print_options) <finish_print>: New
6052 2019-05-28 Tom Tromey <tromey@adacore.com>
6054 * ada-lang.c (ada_remove_Xbn_suffix)
6055 (find_old_style_renaming_symbol)
6056 (parse_old_style_renaming): Remove.
6057 (ada_find_renaming_symbol): Don't call
6058 find_old_style_renaming_symbol.
6059 (ada_is_renaming_symbol): Rename from
6060 ada_find_renaming_symbol. Remove "block" parameter. Return
6062 (ada_read_var_value): Update and simplify.
6063 * ada-exp.y (write_var_or_type): Remove old code.
6065 2019-05-28 Alan Hayward <alan.hayward@arm.com>
6067 * event-top.c: Remove include comment.
6068 * inflow.c (class scoped_ignore_sigttou): Move from here...
6069 * inflow.h (class scoped_ignore_sigttou): ...to here.
6070 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6071 * top.c: Remove include comment.
6073 2019-05-27 Tom Tromey <tom@tromey.com>
6077 2019-05-22 Tom Tromey <tromey@adacore.com>
6079 * target.c (target_follow_exec): Constify parameter.
6080 * target-delegates.c: Rebuild.
6081 * remote.c (remote_target::follow_exec): Constify parameter.
6082 * infrun.c (follow_exec): Constify parameter.
6083 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6084 (target_follow_exec): Likewise.
6086 2019-05-22 Alan Hayward <alan.hayward@arm.com>
6088 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6089 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6091 2019-05-22 Alan Hayward <alan.hayward@arm.com>
6093 * NEWS: Add debugredirect and testsuite sections.
6095 2019-05-22 Simon Cook <simon.cook@embecosm.com>
6097 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6098 target descriptions using exclusively floating point register name
6101 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6104 * f-lang.c (build_fortran_types): Handle the case where
6105 gdbarch_floatformat_for_type returns a nullptr.
6107 2019-05-21 Tom de Vries <tdevries@suse.de>
6110 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6112 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6115 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6117 * i386-tdep.c (i386_floatformat_for_type): Use
6118 floatformats_ia64_quad for the 16-byte floating point component
6119 within a fortran 32-byte complex number.
6121 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6123 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6124 delete default constructor.
6125 (find_partial_die): Update to return const struct.
6126 (partial_die_parent_scope): Move variable declaration into scope
6127 of its use and change its type to auto.
6128 (guess_partial_die_structure_name): Likewise.
6129 (partial_die_info::fixup): Likewise.
6131 2019-05-17 Tom Tromey <tromey@adacore.com>
6133 * source.c (find_and_open_source): Remove cast.
6135 2019-05-17 Tom Tromey <tromey@adacore.com>
6137 * annotate.c (annotate_source): Make "filename" const.
6138 * annotate.h (annotate_source): Use const.
6140 2019-05-17 Alan Hayward <alan.hayward@arm.com>
6142 * disasm.c (set_disassembler_options): Send errors to stderr.
6144 2019-05-17 Alan Hayward <alan.hayward@arm.com>
6146 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6147 (cli_interp_base::set_logging): Check debug_redirect.
6148 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6149 * cli/cli-logging.c (debug_redirect): Add static variable.
6150 (pop_output_files): Add default param.
6151 (handle_redirections): Print debug setting.
6152 (show_logging_command): Likewise.
6153 (_initialize_cli_logging): Add debugredirect command.
6154 * interps.c (current_interp_set_logging): Add debug_redirect
6156 * interps.h (set_logging): Add debug_redirect parameter.
6157 (current_interp_set_logging): Likewise.
6158 * mi/mi-common.h: Likewise.
6159 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
6161 2019-05-17 Alan Hayward <alan.hayward@arm.com>
6162 Tom Tromey <tromey@adacore.com>
6164 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
6166 * cli/cli-interp.h (make_logging_output): Remove declaration.
6167 * cli/cli-logging.c (make_logging_output): Remove function.
6168 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6170 * ui-file.c (tee_file::tee_file): Remove bools.
6171 (tee_file::~tee_file): Remove deletes.
6172 * ui-file.h (tee_file): Remove bools.
6174 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
6176 * mi/mi-cmds.h (mi_cmd_complete): New function.
6177 * mi/mi-main.c (mi_cmd_complete): Likewise.
6178 * mi/mi-cmds.c: Define new MI command -complete.
6179 * NEWS: Mention new -complete command.
6181 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6183 * completer.h (complete): New function.
6184 * completer.c (complete): Likewise.
6185 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6186 function defined in completer.h.
6188 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6190 * MAINTAINERS (Write After Approval): Add myself.
6192 2019-05-17 Tom de Vries <tdevries@suse.de>
6195 * dwarf2read.c (struct cu_partial_die_info): New struct.
6196 (find_partial_die): Return cu_partial_die_info.
6197 (partial_die_parent_scope, guess_partial_die_structure_name)
6198 (partial_die_info::fixup): Handle new return type of find_partial_die.
6200 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6202 PR breakpoints/24541
6203 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6204 "std::string", simplifying the algorithm.
6206 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6208 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6209 (stap_static_probe_ops::get_probes): Likewise.
6211 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6213 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6214 '-')" and "else if".
6215 (stap_parse_single_operand): Join checks for
6216 "gdbarch_stap_parse_special_token_p" and
6217 "gdbarch_stap_parse_special_token" in the same "if" statement.
6218 Invert check when verifying for operation on register
6221 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6223 * stap-probe.c (stap_get_opcode): Update comment.
6224 (stap_get_expected_argument_type): Likewise.
6225 (handle_stap_probe): Likewise.
6227 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6229 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6230 return type to 'bool'. Adjust comment. Use 'bool' when
6232 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6233 * stap-probe.c (stap_parse_argument_1): Likewise.
6234 (stap_is_operator): Likewise.
6235 (stap_is_generic_prefix): Likewise.
6236 (stap_is_register_prefix): Likewise.
6237 (stap_is_register_indirection_prefix): Likewise.
6238 (stap_is_integer_prefix): Likewise.
6239 (stap_generic_check_suffix): Likewise.
6240 (stap_check_integer_suffix): Likewise.
6241 (stap_check_register_suffix): Likewise.
6242 (stap_check_register_indirection_suffix): Likewise.
6243 (stap_parse_register_operand): Likewise.
6244 (stap_parse_single_operand): Likewise.
6245 (stap_parse_argument_1): Likewise.
6246 (stap_probe::get_argument_count): Likewise.
6247 (stap_is_operator): Likewise.
6249 2019-05-16 Tom Tromey <tromey@adacore.com>
6251 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6254 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
6256 * linux-thread-db.c (try_thread_db_load_1): Change return type
6258 (try_thread_db_load): Likewise.
6259 (try_thread_db_load_from_pdir_1): Likewise.
6260 (try_thread_db_load_from_pdir): Likewise.
6261 (try_thread_db_load_from_sdir): Likewise.
6262 (try_thread_db_load_from_dir): Likewise.
6263 (thread_db_load_search): Likewise.
6264 (has_libpthread): Likewise.
6265 (thread_db_load): Likewise.
6267 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
6269 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6270 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
6271 NULL, and complain/return if that's the case.
6273 2019-05-15 John Darrington <john@darrington.wattle.id.au>
6275 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
6276 (advance, posn, abstract_read_memory): New functions.
6277 [struct mem_read_abstraction]: New struct.
6278 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6280 2019-05-14 Tom Tromey <tromey@adacore.com>
6282 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6283 value is not lval_memory.
6285 2019-05-14 Tom Tromey <tromey@adacore.com>
6287 * solib.c (info_sharedlibrary_command): Style the file name.
6289 2019-05-14 Alan Hayward <alan.hayward@arm.com>
6291 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6292 (aarch64_vnv_type): Likewise.
6293 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
6294 * common/tdesc.c: Likewise.
6295 * common/tdesc.h (enum tdesc_type_kind): Likewise.
6296 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
6297 * features/aarch64-fpu.xml: Add ieee half view.
6298 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
6299 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
6300 * gdbtypes.h (struct builtin_type): Likewise.
6301 (struct objfile_type): Likewise.
6303 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
6305 * language.c (language_sniff_from_mangled_name): Fix "langauge"
6307 * location.h (string_to_event_location): Likewise.
6309 2019-05-11 Joel Brobecker <brobecker@adacore.com>
6313 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
6315 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
6316 New variable declaration.
6317 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6319 (print_one_breakpoint): Use ui_out::test_flags and new global
6320 variable to compute use_fixed_output.
6321 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
6323 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
6324 (mi_multi_location_breakpoint_output_fixed): Remove.
6325 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
6327 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
6328 fix_multi_location_breakpoint_output flag if version >= 3.
6329 * ui-out.h (enum ui_out_flag)
6330 <fix_multi_location_breakpoint_output>: New enumerator.
6332 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
6334 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6336 2019-05-10 Tom Tromey <tromey@adacore.com>
6338 * ada-lang.c (catch_ada_completer): New function.
6339 (_initialize_ada_language): Use it.
6341 2019-05-10 Tom Tromey <tromey@adacore.com>
6343 * thread.c (print_thread_info): Make "requested_threads" const.
6344 * gdbthread.h (print_thread_info): Make "requested_threads"
6346 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6347 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6349 2019-05-08 Tom Tromey <tom@tromey.com>
6351 * gdbtypes.c (objfile_type_data): Change type.
6352 (objfile_type, _initialize_gdbtypes): Update.
6354 2019-05-08 Tom Tromey <tom@tromey.com>
6356 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6357 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6358 (_initialize_dwarf2_frame): Update.
6360 2019-05-08 Tom Tromey <tom@tromey.com>
6362 * objc-lang.c (objc_objfile_data): Change type.
6363 (find_methods): Update.
6364 (_initialize_objc_lang): Remove.
6366 2019-05-08 Tom Tromey <tom@tromey.com>
6368 * stabsread.c (rs6000_builtin_type_data): Change type.
6369 (rs6000_builtin_type, _initialize_stabsread): Update.
6371 2019-05-08 Tom Tromey <tom@tromey.com>
6373 * mips-tdep.c (mips_pdr_data): Remove.
6374 (_initialize_mips_tdep): Update.
6376 2019-05-08 Tom Tromey <tom@tromey.com>
6378 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
6379 (hppa_init_objfile_priv_data, read_unwind_info)
6380 (find_unwind_entry, _initialize_hppa_tdep): Update.
6382 2019-05-08 Tom Tromey <tom@tromey.com>
6384 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
6385 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
6387 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
6389 2019-05-08 Tom Tromey <tom@tromey.com>
6391 * mdebugread.c (basic_type_data): Change type.
6392 (basic_type, _initialize_mdebugread): Update.
6394 2019-05-08 Tom Tromey <tom@tromey.com>
6396 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6398 2019-05-08 Tom Tromey <tom@tromey.com>
6400 * nto-tdep.c (nto_inferior_data_reg): Change type.
6401 (nto_inferior_data): Update.
6402 (nto_inferior_data_cleanup, nto_new_inferior_data)
6403 (_initialize_nto_tdep): Remove.
6404 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6406 2019-05-08 Tom Tromey <tom@tromey.com>
6408 * ada-lang.c (struct ada_inferior_data): Add initializers.
6409 (ada_inferior_data): Change type.
6410 (ada_inferior_data_cleanup): Remove.
6411 (get_ada_inferior_data, ada_inferior_exit)
6412 (struct ada_pspace_data): Add initializers, destructor.
6413 (ada_pspace_data_handle): Change type.
6414 (get_ada_pspace_data): Update.
6415 (ada_pspace_data_cleanup): Remove.
6417 2019-05-08 Tom Tromey <tom@tromey.com>
6419 * coffread.c (struct coff_symfile_info): Add initializers.
6420 (coff_objfile_data_key): Move lower. Change type.
6421 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6423 (coff_free_info): Remove.
6425 2019-05-08 Tom Tromey <tom@tromey.com>
6427 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6428 (fbsd_pspace_data_handle): Move lower. Change type.
6429 (get_fbsd_pspace_data): Update.
6430 (fbsd_pspace_data_cleanup): Remove.
6431 (_initialize_fbsd_tdep): Update.
6433 2019-05-08 Tom Tromey <tom@tromey.com>
6435 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6436 (get_ada_tasks_pspace_data): Update.
6437 (ada_tasks_pspace_data_cleanup): Remove.
6438 (_initialize_tasks): Update.
6439 (ada_tasks_inferior_data_handle): Change type.
6440 (get_ada_tasks_inferior_data): Update.
6441 (ada_tasks_inferior_data_cleanup): Remove.
6442 (struct ada_tasks_pspace_data): Add initializers.
6444 2019-05-08 Tom Tromey <tom@tromey.com>
6446 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6447 * symfile-debug.c (debug_sym_get_probes): Change type.
6448 * stap-probe.c (handle_stap_probe):
6449 (stap_static_probe_ops::get_probes): Change type.
6450 * probe.h (class static_probe_ops) <get_probes>: Change type.
6451 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6452 (parse_probes_in_pspace): Update.
6453 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6455 (any_static_probe_ops::get_probes): Change type.
6456 * elfread.c (elfread_data): New typedef.
6457 (probe_key): Change type.
6458 (elf_get_probes): Likewise. Update.
6459 (probe_key_free): Remove.
6460 (_initialize_elfread): Update.
6461 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6463 (dtrace_process_dof_probe, dtrace_process_dof)
6464 (dtrace_static_probe_ops::get_probe): Change type.
6466 2019-05-08 Tom Tromey <tom@tromey.com>
6468 * xcoffread.c (struct xcoff_symfile_info): Rename from
6469 coff_symfile_info. Add initializers.
6470 (xcoff_objfile_data_key): Move lower. Change type.
6471 (XCOFF_DATA): Rewrite.
6472 (xcoff_free_info): Remove.
6473 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6474 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6475 (xcoff_initial_scan): Update.
6477 2019-05-08 Tom Tromey <tom@tromey.com>
6479 * solib-svr4.c (struct svr4_info): Add initializers and
6481 <probes_table>: Now an htab_up.
6482 (solib_svr4_pspace_data): Change type.
6483 (free_probes_table): Simplify.
6484 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6485 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6486 (probes_table_remove_objfile_probes, register_solib_event_probe)
6487 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6488 (_initialize_svr4_solib): Update.
6490 2019-05-08 Tom Tromey <tom@tromey.com>
6492 * remote.c (remote_pspace_data): Change type.
6493 (remote_pspace_data_cleanup): Remove.
6494 (get_remote_exec_file, set_pspace_remote_exec_file)
6495 (_initialize_remote): Update.
6497 2019-05-08 Tom Tromey <tom@tromey.com>
6499 * breakpoint.c (breakpoint_objfile_key): Change type.
6500 (get_breakpoint_objfile_data): Update.
6501 (free_breakpoint_objfile_data): Remove.
6502 (_initialize_breakpoint): Update.
6504 2019-05-08 Tom Tromey <tom@tromey.com>
6506 * linux-tdep.c (struct linux_info): Add initializers.
6507 (linux_inferior_data): Move. Change type.
6508 (invalidate_linux_cache_inf): Update.
6509 (linux_inferior_data_cleanup): Remove.
6510 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6512 2019-05-08 Tom Tromey <tom@tromey.com>
6514 * auxv.c (auxv_inferior_data): Move. Change type.
6515 (auxv_inferior_data_cleanup): Remove.
6516 (invalidate_auxv_cache_inf): Rewrite.
6517 (get_auxv_inferior_data, _initialize_auxv): Update.
6519 2019-05-08 Tom Tromey <tom@tromey.com>
6521 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6522 (symfile_debug_objfile_data_key): Change type.
6523 (symfile_debug_installed, debug_qf_has_symbols)
6524 (debug_qf_find_last_source_symtab)
6525 (debug_qf_forget_cached_source_info)
6526 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
6527 (debug_qf_print_stats, debug_qf_dump)
6528 (debug_qf_expand_symtabs_for_function)
6529 (debug_qf_expand_all_symtabs)
6530 (debug_qf_expand_symtabs_with_fullname)
6531 (debug_qf_map_matching_symbols)
6532 (debug_qf_expand_symtabs_matching)
6533 (debug_qf_find_pc_sect_compunit_symtab)
6534 (debug_qf_map_symbol_filenames)
6535 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
6536 (debug_sym_new_init, debug_sym_init, debug_sym_read)
6537 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
6538 (debug_sym_read_linetable, debug_sym_relocate): Update.
6539 (symfile_debug_free_objfile): Remove.
6540 (install_symfile_debug_logging, _initialize_symfile_debug):
6543 2019-05-08 Tom Tromey <tom@tromey.com>
6545 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
6546 allocate_on_obstack.
6547 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
6548 (get_dwarf2_per_objfile): Update.
6549 (set_dwarf2_per_objfile): Remove.
6550 (dwarf2_has_info, dwarf2_get_section_info): Update.
6551 (dwarf2_free_objfile): Remove.
6552 (_initialize_dwarf2_read): Update.
6554 2019-05-08 Tom Tromey <tom@tromey.com>
6556 * auto-load.c (struct auto_load_pspace_info): Add destructor and
6558 <unsupported_script_warning_printed,
6559 script_not_found_warning_printed>: Now bool.
6560 (auto_load_pspace_data): Change type.
6561 (~auto_load_pspace_info): Rename from
6562 auto_load_pspace_data_cleanup.
6563 (get_auto_load_pspace_data, init_loaded_scripts_info)
6564 (clear_section_scripts, maybe_print_unsupported_script_warning)
6565 (maybe_print_script_not_found_warning, _initialize_auto_load):
6568 2019-05-08 Tom Tromey <tom@tromey.com>
6570 * objfiles.c (objfile_pspace_info): Add destructor and
6572 (objfiles_pspace_data): Change type.
6573 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
6574 (get_objfile_pspace_data): Update.
6575 (objfiles_bfd_data): Change type.
6576 (get_objfile_bfd_data): Update.
6577 (objfile_bfd_data_free, _initialize_objfiles): Remove.
6579 2019-05-08 Tom Tromey <tom@tromey.com>
6581 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
6583 (get_catch_syscall_inferior_data): Update.
6584 (catch_syscall_inferior_data_cleanup): Remove.
6585 (_initialize_break_catch_syscall): Update.
6587 2019-05-08 Tom Tromey <tom@tromey.com>
6589 * inflow.c (struct terminal_info): Add destructor and
6591 (inflow_inferior_data): Change type.
6592 (~terminal_info): Rename from inflow_inferior_data_cleanup.
6593 (get_inflow_inferior_data, inflow_inferior_exit)
6594 (swap_terminal_info, _initialize_inflow): Update.
6596 2019-05-08 Tom Tromey <tom@tromey.com>
6598 * target-dcache.c (target_dcache_cleanup): Remove.
6599 (target_dcache_aspace_key): Change type.
6600 (target_dcache_init_p, target_dcache_invalidate)
6601 (target_dcache_get, target_dcache_get_or_init)
6602 (_initialize_target_dcache): Update.
6603 * dcache.h (struct dcache_deleter): New.
6605 2019-05-08 Tom Tromey <tom@tromey.com>
6607 * symtab.c (struct symbol_cache): Add destructor and
6609 (symbol_cache_key): Move. Change type.
6610 (make_symbol_cache, free_symbol_cache): Remove.
6611 (get_symbol_cache): Update.
6612 (symbol_cache_cleanup): Remove.
6613 (ALL_PSPACES, symbol_cache_flush)
6614 (maintenance_print_symbol_cache)
6615 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
6618 2019-05-08 Tom Tromey <tom@tromey.com>
6620 * symtab.c (struct main_info): Add destructor and initializers.
6621 (main_progspace_key): Move. Change type.
6622 (get_main_info): Update.
6623 (main_info_cleanup): Remove.
6624 (_initialize_symtab): Update.
6626 2019-05-08 Tom Tromey <tom@tromey.com>
6628 * registry.h (DECLARE_REGISTRY): Define the _key class.
6630 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6632 * NEWS: Merge two 'New commands' sections.
6634 2019-05-08 Joel Brobecker <brobecker@adacore.com>
6636 * ada-valprint.c (ada_val_print_gnat_array): Remove language
6637 parameter and use Ada language definition instead.
6638 (ada_val_print_ptr): Remove unused language parameter.
6639 (ada_val_print_num): Remove language parameter and use Ada language
6641 (ada_val_print_enum, ada_val_print_flt): Remove unused language
6643 (ada_val_print_struct_union, ada_val_print_ref): Remove language
6644 parameter and use Ada language definition instead.
6645 (ada_val_print_1): Update all ada_val_print_xxx calls.
6646 Remove language parameter.
6647 (ada_val_print): Update ada_val_print_1 call.
6649 2019-05-08 Tom Tromey <tromey@adacore.com>
6651 * remote.c (remote_hw_watchpoint_limit)
6652 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
6655 2019-05-08 Tom Tromey <tromey@adacore.com>
6657 * maint.c (_initialize_maint_cmds): Move initialization code to
6659 (watchdog, show_watchdog): Move to remote.c.
6660 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
6662 (_initialize_remote): Move initialization code from maint.c.
6663 * defs.h (watchdog): Don't declare.
6665 2019-05-08 Tom Tromey <tromey@adacore.com>
6667 * tui/tui-interp.c: Include main.h.
6668 * interps.c: Include main.h.
6669 * main.h (interpreter_p): Declare.
6670 * defs.h (interpreter_p): Don't declare.
6672 2019-05-08 Tom Tromey <tromey@adacore.com>
6674 * dwarf2loc.c: Include dwarf2read.h.
6675 * defs.h (read_unsigned_leb128): Don't declare.
6676 * dwarf2read.h (read_unsigned_leb128): Declare.
6678 2019-05-08 Tom Tromey <tromey@adacore.com>
6680 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
6683 2019-05-08 Tom Tromey <tromey@adacore.com>
6685 * utils.c (fputs_maybe_filtered): Reset style after paging, even
6686 when no wrap column is set.
6688 2019-05-08 Tom Tromey <tromey@adacore.com>
6690 * c-lang.c (c_get_string): Handle non-C-style arrays.
6692 2019-05-08 Tom Tromey <tromey@adacore.com>
6694 * typeprint.c (print_offset_data::update): Print the bit offset,
6695 not the number of bits remaining.
6697 2019-05-08 Tom Tromey <tromey@adacore.com>
6699 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
6700 padding at end of comment.
6702 2019-05-08 Tom Tromey <tromey@adacore.com>
6704 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
6707 2019-05-06 Tom Tromey <tom@tromey.com>
6709 * common/scoped_mmap.c: Include common-defs.h.
6710 * common/scoped_mmap.h: Don't include config.h.
6712 2019-05-04 Tom Tromey <tom@tromey.com>
6714 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
6715 (struct aarch64_call_info): Add initializers.
6716 <si>: Now a std::vector.
6717 (pass_on_stack, aarch64_push_dummy_call): Update.
6719 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
6720 Tom Tromey <tom@tromey.com>
6722 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
6723 (ppc_threads): Now a std::vector. Now static.
6724 (hwdebug_find_thread_points_by_tid)
6725 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
6728 2019-05-04 Tom Tromey <tom@tromey.com>
6730 * arc-tdep.c (arc_tdesc_init): Return bool.
6732 2019-05-04 Tom Tromey <tom@tromey.com>
6734 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
6735 Use gdb_assert_not_reached.
6737 2019-05-04 Tom Tromey <tom@tromey.com>
6739 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
6742 2019-05-04 Tom Tromey <tom@tromey.com>
6744 * arc-tdep.c (arc_tdesc_init): Use bool.
6746 2019-05-04 Tom Tromey <tom@tromey.com>
6748 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
6750 2019-05-04 Tom Tromey <tom@tromey.com>
6752 * cli/cli-cmds.c (valid_command_p): Return bool.
6754 2019-05-04 Tom Tromey <tom@tromey.com>
6756 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
6757 * command.h (valid_user_defined_cmd_name_p): Channge return type.
6759 2019-05-04 Raul Tambre <raul@tambre.ee>
6761 * python/lib/gdb/prompt.py (_ExtendedPrompt)
6762 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
6763 operator for comparison.
6765 2019-05-04 Tom Tromey <tom@tromey.com>
6767 * psymtab.c (psymbol_name_matches, match_partial_symbol)
6768 (lookup_partial_symbol, print_partial_symbols)
6769 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
6770 (psymbol_compare): Update.
6771 (add_psymbol_to_bcache): Clear the entire psymbol.
6772 (maintenance_check_psymtabs): Update.
6773 * psympriv.h (struct partial_symbol): Don't derive from
6774 general_symbol_info.
6775 <obj_section, unrelocated_address, address,
6776 set_unrelocated_address>: Update.
6777 <ginfo>: New member.
6778 * dwarf-index-write.c (write_psymbols, debug_names::insert)
6779 (debug_names::write_psymbols): Update.
6781 2019-05-04 Tom de Vries <tdevries@suse.de>
6783 * contrib/cc-with-tweaks.sh: Support -n arg.
6785 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6787 * corelow.c (core_target::detach): Ensure frame cache and
6788 register caches are cleared.
6789 inferior.c (exit_inferior_1): Likewise.
6791 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
6792 Tom Tromey <tom@tromey.com>
6794 * dictionary.c (collate_pending_symbols_by_language): Remove
6795 "struct" from foreach.
6796 * symtab.c (lookup_global_symbol_from_objfile)
6797 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
6799 * ser-tcp.c (net_open): Remove "struct" from foreach.
6800 * objfiles.c (objfile_relocate, objfile_rebase)
6801 (objfile_has_symbols): Remove "struct" from foreach.
6802 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
6804 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
6806 * darwin-nat.c (thread_info_from_private_thread_info): Remove
6807 "struct" from foreach.
6808 * ada-lang.c (create_excep_cond_exprs)
6809 (ada_exception_catchpoint_cond_string): Remove "struct" from
6812 2019-05-03 Tom Tromey <tromey@adacore.com>
6814 * ada-exp.y (convert_char_literal): Check suffix of each
6817 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
6820 * ada-exp.y (yywrap): Don't define.
6821 * ada-lex.l (%option): Add noyywrap
6824 2019-05-03 Eli Zaretskii <eliz@gnu.org>
6826 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
6827 _WIN32_WINNT to the XP level, unless already defined to a higher
6830 * unittests/parse-connection-spec-selftests.c:
6832 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
6835 * symfile.c (find_separate_debug_file): Remove colon from the
6836 drive spec of DOS/Windows file names of the target, so that the
6837 file name produced from DEBUGDIR and the target's directory will
6838 be valid on DOS/Windows systems.
6840 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
6842 * rust-lang.c (val_print_struct): Handle printing structures
6845 2019-05-02 Tom Tromey <tromey@adacore.com>
6847 * valarith.c (_initialize_valarith): Remove.
6849 2019-05-01 Tom Tromey <tromey@adacore.com>
6851 * ada-lang.c (ada_value_primitive_field): Treat more fields as
6854 2019-05-01 Tom Tromey <tromey@adacore.com>
6856 * ada-lang.c (ada_value_assign): Correctly compute starting offset
6857 for big-endian copies.
6859 2019-04-30 Ali Tamur <tamur@google.com>
6860 * gdb/dwarf2read.c (read_3_bytes): New declaration.
6861 (read_attribute_value): Added DW_FORM_strx1-4 cases.
6862 (read_3_bytes): New function.
6864 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6866 * windows-nat.c (main_thread_id): Delete.
6867 (handle_output_debug_string): Replace main_thread_id by
6868 current_event.dwThreadId.
6869 (fake_create_process): Likewise.
6870 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6871 Do not set main_thread_id.
6872 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6873 current_event.dwThreadId.
6874 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6876 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6878 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6879 Use current_event.dwThreadId instead of main_thread_id.
6881 2019-04-30 Tom Tromey <tromey@adacore.com>
6883 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6884 (create_excep_cond_exprs): Iterate over program spaces.
6885 (ada_exception_catchpoint_cond_string): Examine all minimal
6886 symbols for exception types.
6888 2019-04-30 Tom Tromey <tromey@adacore.com>
6891 * dwarf2read.c (process_structure_scope): Handle case where type
6892 has template parameters but no symbol was created.
6894 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6895 Chris January <chris.january@arm.com>
6897 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6899 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6901 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6903 * f-typeprint.c (f_print_type): Update rules for printing
6905 (f_type_print_varspec_suffix): Likewise.
6907 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6908 Chris January <chris.january@arm.com>
6910 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6913 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6915 * f-lang.c (build_fortran_types): Change name of void type to
6917 * f-typeprint.c (f_type_print_base): Print the name of the void
6918 type, rather than a fixed string.
6919 * f-valprint.c (f_decorations): Use lower case void string.
6921 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6922 Chris January <chris.january@arm.com>
6924 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6927 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6928 Chris January <chris.january@arm.com>
6929 David Lecomber <david.lecomber@arm.com>
6931 * f-exp.y (BINOP_INTRINSIC): New token.
6932 (exp): New parser rule handling BINOP_INTRINSIC.
6933 (f77_keywords): Add new builtin procedures.
6934 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6935 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6936 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6937 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6938 (print_unop_subexp_f): New function.
6939 (print_binop_subexp_f): New function.
6940 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6941 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6942 (dump_subexp_body_f): Likewise.
6943 (operator_check_f): Likewise.
6944 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6945 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6947 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6949 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6951 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6952 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6953 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6954 (operator_length_f): New fuction.
6955 (print_subexp_f): New function.
6956 (op_name_f): New function.
6957 (dump_subexp_body_f): New function.
6958 (operator_check_f): New function.
6959 (exp_descriptor_f): Replace standard expression handling functions
6961 * gdb/fortran-operator.def: New file.
6962 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6963 * gdb/std-operator.def: Remove UNOP_KIND.
6965 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6967 * std-operator.def: Remove unbalanced, stray double quote
6970 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6971 Chris January <chris.january@arm.com>
6972 Daniel Everett <daniel.everett@arm.com>
6973 Nick Forrington <nick.forrington@arm.com>
6974 Richard Bunt <richard.bunt@arm.com>
6976 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6977 of depth when printing anonymous structs or unions.
6978 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6979 Don't print either the top-level value, or the children if the
6980 max-depth is exceeded.
6981 (ppscm_print_children): When printing the key of a map, allow one
6982 extra level of depth.
6983 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6984 print either the top-level value, or the children if the max-depth
6986 (print_children): When printing the key of a map, allow one extra
6988 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6989 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6990 (user_print_options): Initialise max_depth field.
6991 (val_print_scalar_or_string_type_p): New function.
6992 (val_print): Check to see if the max depth has been reached.
6993 (val_print_check_max_depth): Define new function.
6994 (show_print_max_depth): New function.
6995 (_initialize_valprint): Add 'print max-depth' option.
6996 * valprint.h (struct value_print_options) <max_depth>: New field.
6997 (val_print_check_max_depth): Declare new function.
6998 * NEWS: Document new feature.
7000 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7002 * ada-lang.c (ada_language_defn): Initialise new field.
7003 * c-lang.c (c_is_string_type_p): New function.
7004 (c_language_defn): Initialise new field.
7005 (cplus_language_defn): Initialise new field.
7006 (asm_language_defn): Initialise new field.
7007 (minimal_language_defn): Initialise new field.
7008 * c-lang.h (c_is_string_type_p): Declare new function.
7009 * d-lang.c (d_language_defn): Initialise new field.
7010 * f-lang.c (f_is_string_type_p): New function.
7011 (f_language_defn): Initialise new field.
7012 * go-lang.c (go_is_string_type_p): New function.
7013 (go_language_defn): Initialise new field.
7014 * language.c (default_is_string_type_p): New function.
7015 (unknown_language_defn): Initialise new field.
7016 (auto_language_defn): Initialise new field.
7017 * language.h (struct language_defn) <la_is_string_type_p>: New
7019 (default_is_string_type_p): Declare new function.
7020 * m2-lang.c (m2_language_defn): Initialise new field.
7021 * objc-lang.c (objc_language_defn): Initialise new field.
7022 * opencl-lang.c (opencl_language_defn): Initialise new field.
7023 * p-lang.c (pascal_is_string_type_p): New function.
7024 (pascal_language_defn): Initialise new field.
7025 * rust-lang.c (rust_is_string_type_p): New function.
7026 (rust_language_defn): Initialise new field.
7028 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7030 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
7032 * ada-lang.c (ada_language_defn): Initialise new field.
7033 * c-lang.c (c_language_defn): Likewise.
7034 (cplus_language_defn): Likewise.
7035 (asm_language_defn): Likewise.
7036 (minimal_language_defn): Likewise.
7037 * d-lang.c (d_language_defn): Likewise.
7038 * f-lang.c (f_language_defn): Likewise.
7039 * go-lang.c (go_language_defn): Likewise.
7040 * language.c (unknown_language_defn): Likewise.
7041 (auto_language_defn): Likewise.
7042 * m2-lang.c (m2_language_defn): Likewise.
7043 * objc-lang.c (objc_language_defn): Likewise.
7044 * opencl-lang.c (opencl_language_defn): Likewise.
7045 * p-lang.c (pascal_language_defn): Likewise.
7046 * rust-lang.c (rust_language_defn): Likewise.
7048 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7050 * ada-lang.c (ada_is_character_type): Change return type to bool.
7051 (ada_is_string_type): Likewise.
7052 * ada-lang.h (ada_is_character_type): Update declaration
7053 (ada_is_string_type): Likewise.
7055 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7057 Support style in 'frame|thread apply'
7059 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7060 * record.c (record_start, record_stop): Update callers of
7061 execute_command_to_string with false.
7062 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7063 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7065 (class string_file): New constructor with term_out parameter.
7066 Override methods term_out and can_emit_style_escape. New member
7068 (class stdio_file): Override can_emit_style_escape.
7069 (class tee_file): Override term_out and can_emit_style_escape.
7070 * utils.h (can_emit_style_escape): Remove.
7071 * utils.c (can_emit_style_escape): Likewise.
7072 Update all callers of can_emit_style_escape (SOMESTREAM) to
7073 SOMESTREAM->can_emit_style_escape.
7074 * source-cache.c (source_cache::get_source_lines): Likewise.
7075 * stack.c (frame_apply_command_count): Call execute_command_to_string
7076 passing the term_out characteristic of the current gdb_stdout.
7077 * thread.c (thr_try_catch_cmd): Likewise.
7078 * top.c (execute_command_to_string): pass term_out parameter
7079 to construct the string_file for the command output.
7080 * ui-file.c (term_cli_styling): New function (most code moved
7081 from utils.c can_emit_style_escape).
7082 (string_file::string_file, string_file::can_emit_style_escape,
7083 stdio_file::can_emit_style_escape, tee_file::term_out,
7084 tee_file::can_emit_style_escape): New functions.
7086 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7088 * NEWS: Mention the new set|show may-call-functions.
7089 * infcall.c (may_call_functions_p): New variable.
7090 (show_may_call_functions_p): New function.
7091 (call_function_by_hand_dummy): Throws an error if not
7093 (_initialize_infcall): Call add_setshow_boolean_cmd for
7096 2019-04-25 Keith Seitz <keiths@redhat.com>
7099 * cp-support.c (inspect_type): Don't attempt substitutions
7100 of symbol with the same name.
7102 2019-04-25 Tom Tromey <tromey@adacore.com>
7105 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7108 2019-04-25 Tom Tromey <tromey@adacore.com>
7110 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7112 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7113 (gdb_xml_parser::parse): Use std::move.
7114 * python/python-internal.h (gdbpy_convert_exception): Take a const
7116 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7118 * python/py-utils.c (gdbpy_convert_exception): Take a const
7120 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7122 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7124 * mi/mi-main.c (mi_print_exception): Take a const reference.
7125 * main.c (handle_command_errors): Take a const reference.
7126 * linespec.c (parse_linespec): Use std::move.
7127 * infcall.c (run_inferior_call): Use std::move.
7128 (call_function_by_hand_dummy): Use std::move.
7129 * exec.c (try_open_exec_file): Use std::move.
7130 * exceptions.h (exception_print, exception_fprintf)
7131 (exception_print_same): Update.
7132 * exceptions.c (print_exception, exception_print)
7133 (exception_fprintf, exception_print_same): Change parameters to
7135 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7136 * common/new-op.c: Use std::move.
7137 * common/common-exceptions.h (struct gdb_exception): Add move
7139 (struct gdb_exception_error, struct gdb_exception_quit, struct
7140 gdb_quit_bad_alloc): Change constructor to move constructor.
7141 (throw_exception): Change parameter to rvalue reference.
7142 * common/common-exceptions.c (throw_exception): Take rvalue
7144 * cli/cli-interp.c (safe_execute_command): Use std::move.
7145 * breakpoint.c (insert_bp_location, location_to_sals): Use
7148 2019-04-25 Tom Tromey <tromey@adacore.com>
7150 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7151 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7152 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7153 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7154 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
7155 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
7156 guile/scm-value.c: Use unpack.
7157 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
7158 gdbscm_gdb_exception.
7159 (gdbscm_throw_gdb_exception): Likewise.
7160 (struct gdbscm_gdb_exception): New.
7161 (unpack): New function.
7162 (gdbscm_wrap): Use unpack.
7164 2019-04-25 Tom Tromey <tromey@adacore.com>
7166 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7167 (gdb_rl_callback_handler): Use std::move.
7168 * common/common-exceptions.h (struct gdb_exception): Add move
7169 assignment operator.
7170 (throw_exception_sjlj): Change "exception" to const reference.
7171 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7172 (throw_exception_sjlj): Change "exception" to const reference.
7174 2019-04-25 Tom Tromey <tromey@adacore.com>
7176 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7177 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7178 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7180 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7182 * mi/mi-interp.c (mi_interp::exec): Update.
7183 * linespec.c (parse_linespec): Update.
7184 * infcall.c (run_inferior_call): Update.
7185 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7186 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7187 (gdbscm_lookup_global_symbol): Update.
7188 * guile/scm-param.c (gdbscm_parameter_value): Update.
7189 * guile/scm-frame.c (gdbscm_frame_read_register)
7190 (gdbscm_frame_read_var): Update.
7191 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7192 * exec.c (try_open_exec_file): Update.
7193 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7194 (gdb_rl_callback_handler): Update.
7195 * common/common-exceptions.h (exception_none): Don't declare.
7196 * common/common-exceptions.c (exception_none): Don't define.
7197 (struct catcher) <exception>: Update.
7198 * cli/cli-interp.c (safe_execute_command): Update.
7199 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7201 2019-04-25 Ali Tamur <tamur@google.com>
7203 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7204 (read_attribute_value): Likewise.
7205 (dwarf2_read_addr_index): Update comment.
7206 (read_str_index): Add DW_FORM_strx.
7207 (dwarf2_string_attr): Likewise.
7208 (dwarf2_const_value_attr): Likewise.
7209 (dump_die_shallow): Likewise.
7210 (dwarf2_fetch_constant_bytes): Likewise.
7211 (skip_form_bytes): Likewise.
7212 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7214 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7218 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7219 OFFSET. Verify if current mapping contains an ELF header.
7220 (linux_find_memory_regions_full): Adjust call to
7223 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7224 Kang Li <kanglictf@gmail.com>
7228 * dwarf2-frame.c (read_initial_length): Be consistent about using
7229 unsigned representation of length.
7230 (decode_frame_entry_1): Likewise. Check for wraparound of
7231 end pointer as well as buffer overflow.
7233 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7235 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7238 2019-04-24 Tom Tromey <tromey@adacore.com>
7240 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7242 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7244 * s12z-tdep.c (s12z_unwind_pc): Delete.
7245 (s12z_unwind_sp): Delete.
7246 (s12z_gdbarch_init): Don't register deleted functions with
7249 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7251 * rl78-tdep.c (rl78_unwind_sp): Delete.
7252 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7254 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7256 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
7257 (xstormy16_unwind_pc): Delete.
7258 (xstormy16_dummy_id): Delete.
7259 (xstormy16_gdbarch_init): Don't register deleted functions with
7262 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7264 * vax-tdep.c (vax_unwind_pc): Delete.
7265 (vax_gdbarch_init): Don't register deleted function with gdbarch.
7267 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7269 * v850-tdep.c (v850_unwind_sp): Delete.
7270 (v850_unwind_pc): Delete.
7271 (v850_dummy_id): Delete.
7272 (v850_gdbarch_init): Don't register deleted functions with
7275 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7277 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7278 (tilegx_unwind_pc): Delete.
7279 (tilegx_unwind_dummy_id): Delete.
7280 (tilegx_gdbarch_init): Don't register deleted functions with
7283 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7285 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7286 (tic6x_dummy_id): Delete.
7287 (tic6x_gdbarch_init): Don't register deleted functions with
7290 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7292 * sparc-tdep.c (sparc_unwind_pc): Delete.
7293 (sparc32_gdbarch_init): Don't register deleted function with
7296 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7298 * sh-tdep.c (sh_unwind_sp): Delete.
7299 (sh_unwind_pc): Delete.
7300 (sh_dummy_id): Delete.
7301 (sh_gdbarch_init): Don't register deleted functions with
7304 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7306 * score-tdep.c (score_unwind_sp): Delete.
7307 (score_unwind_pc): Delete.
7308 (score_dummy_id): Delete.
7309 (score_gdbarch_init): Don't register deleted functions with
7312 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7314 * rx-tdep.c (rx_unwind_pc): Delete.
7315 (rx_unwind_sp): Delete.
7316 (rx_dummy_id): Delete.
7317 (rx_gdbarch_init): Don't register deleted functions with
7318 gdbarch. Update comment.
7320 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7322 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
7323 (rs6000_dummy_id): Delete.
7324 (rs6000_gdbarch_init): Don't register deleted functions with
7327 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7329 * or1k-tdep.c (or1k_dummy_id): Delete.
7330 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
7332 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7334 * nios2-tdep.c (nios2_dummy_id): Delete.
7335 (nios2_unwind_sp): Delete.
7336 (nios2_gdbarch_init): Don't register deleted functions with
7339 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7341 * nds32-tdep.c (nds32_dummy_id): Delete.
7342 (nds32_unwind_pc): Delete.
7343 (nds32_unwind_sp): Delete.
7344 (nds32_gdbarch_init): Don't register deleted functions with
7347 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7349 * msp430-tdep.c (msp430_unwind_pc): Delete.
7350 (msp430_unwind_sp): Delete.
7351 (msp430_dummy_id): Delete.
7352 (msp430_gdbarch_init): Don't register deleted functions with
7355 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7357 * moxie-tdep.c (moxie_unwind_sp): Delete.
7358 (moxie_unwind_pc): Delete.
7359 (moxie_dummy_id): Delete.
7360 (moxie_gdbarch_init): Don't register deleted functions with
7363 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7365 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7366 (mn10300_unwind_pc): Delete.
7367 (mn10300_unwind_sp): Delete.
7368 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7370 (mn10300_frame_unwind_init): Don't register deleted functions with
7373 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7375 * mep-tdep.c (mep_unwind_pc): Delete.
7376 (mep_unwind_sp): Delete.
7377 (mep_dummy_id): Delete.
7378 (mep_gdbarch_init): Don't register deleted functions with
7381 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7383 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
7384 (m68hc11_unwind_sp): Delete.
7385 (m68hc11_gdbarch_init): Don't register deleted functions with
7388 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7390 * m32r-tdep.c (m32r_unwind_sp): Delete.
7391 (m32r_unwind_pc): Delete.
7392 (m32r_dummy_id): Delete.
7393 (m32r_gdbarch_init): Don't register deleted functions with
7396 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7398 * m32c-tdep.c (m32c_unwind_pc): Delete.
7399 (m32c_unwind_sp): Delete.
7400 (m32c_dummy_id): Delete.
7401 (m32c_gdbarch_init): Don't register deleted functions with
7404 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7406 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7407 (lm32_unwind_pc): Delete.
7408 (lm32_dummy_id): Delete.
7409 (lm32_gdbarch_init): Don't register deleted functions with
7412 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7414 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7415 (iq2000_unwind_pc): Delete.
7416 (iq2000_dummy_id): Delete.
7417 (iq2000_gdbarch_init): Don't register deleted functions with
7420 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7422 * nds32-tdep.c (nds32_type_align): Delete.
7423 (nds32_push_dummy_call): Use type_align instead.
7425 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7427 * arm-tdep.c (arm_type_align): Only handle vector override case.
7428 (arm_push_dummy_call): Use type_align.
7429 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7431 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7433 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7435 (pass_on_stack): Use type_align.
7436 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7439 2019-04-23 Tom Tromey <tromey@adacore.com>
7441 * dwarf2read.c (line_header::file_name_at): Remove unused
7444 2019-04-23 Tom de Vries <tdevries@suse.de>
7447 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7451 2019-03-27 Ali Tamur <tamur@google.com>
7453 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7454 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7455 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7456 (dwarf_expr_context::get_addr_index): Likewise
7457 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7458 (symbol_needs_eval_context::get_addr_index): Likewise
7459 (disassemble_dwarf_expression): Add DW_OP_addrx
7460 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7461 (read_cutu_die_from_dwo): Update comment
7462 (skip_one_die): Add DW_FORM_addrx
7463 (read_attribute_value): Likewise
7464 (var_decode_location): Add DW_OP_addrx
7465 (dwarf2_const_value_attr): Add DW_FORM_addrx
7466 (dump_die_shallow): Likewise
7467 (dwarf2_fetch_constant_bytes): Likewise
7468 (decode_locdesc): Add DW_OP_addrx
7469 (skip_form_bytes): Add DW_FORM_addrx
7471 2019-04-22 Ali Tamur <tamur@google.com>
7473 * MAINTAINERS (Write After Approval): Add self.
7475 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
7477 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7478 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7479 (open_symbol_file_object): Likewise.
7480 (svr4_default_sos): Add info parameter.
7481 (svr4_read_so_list): Likewise.
7482 (svr4_current_sos_direct): Adjust functions calls to pass down
7484 (svr4_current_sos_1): Add info parameter.
7485 (svr4_current_sos): Call get_svr4_info, pass info down to
7487 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7489 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7491 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7493 (probes_table_remove_objfile_probes): Likewise.
7494 (register_solib_event_probe): Add info parameter.
7495 (solist_update_incremental): Pass info parameter down to
7497 (disable_probes_interface): Add info parameter.
7498 (svr4_handle_solib_event): Pass current_program_space to
7499 get_svr4_info. Adjust disable_probes_interface cleanup.
7500 (svr4_create_probe_breakpoints): Add info parameter, pass it
7501 down to register_solib_event_probe.
7502 (svr4_create_solib_event_breakpoints): Add info parameter,
7503 pass it down to svr4_create_probe_breakpoints.
7504 (enable_break): Pass info down to
7505 svr4_create_solib_event_breakpoints.
7506 (svr4_solib_create_inferior_hook): Pass current_program_space to
7508 (svr4_clear_solib): Likewise.
7510 2019-04-22 Pedro Alves <palves@redhat.com>
7512 * solib-svr4.c (svr4_free_objfile_observer): New.
7513 (probe_and_action::objfile): New field.
7514 (probes_table_htab_remove_objfile_probes)
7515 (probes_table_remove_objfile_probes): New functions.
7516 (register_solib_event_probe): Add 'objfile' parameter. Store it
7517 in the new probe_and_action. Don't store the probe in 'lookup'.
7518 (svr4_create_probe_breakpoints): Pass objfile to
7519 register_solib_event_probe.
7520 (_initialize_svr4_solib): Register a free_objfile observer.
7522 2019-04-19 Tom Tromey <tom@tromey.com>
7524 * common/queue.h: Remove.
7526 2019-04-19 Tom Tromey <tom@tromey.com>
7528 * event-loop.c: Don't include "common/queue.h".
7530 2019-04-19 Tom Tromey <tom@tromey.com>
7532 * remote.c (remote_target): Use delete.
7533 * remote-notif.h: Include <list>, not "common/queue.h".
7534 (notif_client_p): Remove typedef.
7535 (remote_notif_state): Add constructor, destructor, initializer.
7536 <notif_queue>: Now a std::list.
7537 (remote_notif_state_xfree): Don't declare.
7538 * remote-notif.c (remote_notif_process, handle_notification)
7539 (remote_notif_state_allocate): Update.
7540 (~remote_notif_state): Rename from remote_notif_state_xfree.
7542 2019-04-19 Tom Tromey <tom@tromey.com>
7544 * symfile.c (reread_symbols): Update.
7545 * objfiles.c (objfile_register_static_link)
7546 (objfile_lookup_static_link): Update
7547 (~objfile) Don't delete static_links.
7548 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
7550 2019-04-19 Tom Tromey <tom@tromey.com>
7552 * type-stack.h (struct type_stack) <insert>: Constify string.
7553 * type-stack.c (type_stack::insert): Constify string.
7554 * gdbtypes.h (lookup_template_type): Update.
7555 (address_space_name_to_int): Update.
7556 * gdbtypes.c (address_space_name_to_int): Make space_identifier
7558 (lookup_template_type): Make name const.
7559 * c-exp.y: Update rules.
7560 (lex_one_token, classify_name, classify_inner_name)
7561 (c_print_token): Update.
7562 * p-exp.y: Update rules.
7564 * f-exp.y: Update rules.
7566 * d-exp.y: Update rules.
7567 (lex_one_token, classify_name, classify_inner_name): Update.
7568 * parse.c (write_dollar_variable, copy_name): Return std::string.
7569 * parser-defs.h (copy_name): Change return type.
7570 * m2-exp.y: Update rules.
7572 * go-exp.y (lex_one_token): Update.
7574 (classify_unsafe_function, classify_packaged_name)
7575 (classify_name, yylex): Update.
7577 2019-04-19 Sergei Trofimovich <siarheit@google.com>
7579 * configure.ac: add --enable-source-highlight switch.
7580 * configure: Regenerate.
7581 * top.c (print_gdb_version): plumb --enable-source-highlight
7582 status to "show configuration".
7584 2019-04-19 Tom Tromey <tromey@adacore.com>
7586 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
7588 (empty_record, ada_template_to_fixed_record_type_1)
7589 (template_to_static_fixed_type)
7590 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
7591 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
7592 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
7595 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7598 * source.c (print_source_lines_base): Advance "iter" when a
7599 control character is seen.
7601 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7603 * inferior.h (struct infcall_suspend_state_deleter):
7604 Catch exception in destructor to avoid crash.
7606 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7608 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
7609 close to the add_com "shell".
7611 2019-04-18 Tom Tromey <tromey@adacore.com>
7613 * process-stratum-target.h (class process_stratum_target)
7614 <stratum>: Add "final".
7616 2019-04-17 Tom Tromey <tromey@adacore.com>
7618 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
7619 against nullptr before use.
7621 2019-04-17 Alan Hayward <alan.hayward@arm.com>
7623 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
7625 2019-04-17 Jim Wilson <jimw@sifive.com>
7626 Andrew Burgess <andrew.burgess@embecosm.com>
7628 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
7629 code read might fail, assume 4-byte breakpoint in that case.
7631 2019-04-15 Leszek Swirski <leszeks@google.com>
7633 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
7634 rather than a hand-rolled POD check when checking for forced MEMORY
7637 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7639 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
7640 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
7642 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
7643 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
7644 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
7647 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7649 * aarch64-linux-nat.c
7650 (aarch64_linux_nat_target::thread_architecture): Add override.
7651 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
7654 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7656 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
7658 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
7660 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
7661 target types of size 96-bits, add some additional comments, and
7662 check that the builtin type we found was the correct size.
7664 2019-04-12 Eli Zaretskii <eliz@gnu.org>
7666 * utils.c (prompt_for_continue): Don't restore the styling at the
7667 end, as applied_style has the wrong value. This fixes styling in
7668 long lists of file names that are interrupted by the "Continue?"
7671 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
7673 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
7674 * c-lang.c (c_language_defn): Likewise.
7675 (cplus_language_defn): Likewise.
7676 (asm_language_defn): Likewise.
7677 (minimal_language_defn): Likewise.
7678 * d-lang.c (d_language_defn): Likewise.
7679 * f-lang.c (f_language_defn): Likewise.
7680 * go-lang.c (go_language_defn): Likewise.
7681 * language.c (unknown_language_defn): Likewise.
7682 (auto_language_defn): Likewise.
7683 * language.h (struct language_defn): Remove la_magic field.
7684 (LANG_MAGIC): Delete.
7685 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
7686 * objc-lang.c (objc_language_defn): Likewise.
7687 * opencl-lang.c (opencl_language_defn): Likewise.
7688 * p-lang.c (pascal_language_defn): Likewise.
7689 * rust-lang.c (rust_language_defn): Likewise.
7691 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7693 * riscv-tdep.c (riscv_type_align): New function.
7694 (riscv_type_alignment): Delete.
7695 (riscv_arg_location): Use 'type_align'.
7696 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
7698 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7700 * gdbtypes.c (type_align): A struct with no non-static fields also
7703 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7705 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
7707 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
7709 (riscv_struct_info::analyse): New implementation using new
7710 analyse_inner member function.
7711 (riscv_struct_info::field_offset): New member function.
7712 (riscv_struct_info::m_offsets): New member variable.
7713 (riscv_struct_info::analyse_inner): New private member function,
7714 takes the old implementation of riscv_struct_info::analyse but
7715 extended to track field offsets.
7716 (riscv_call_arg_struct): Update the struct folding special cases
7717 to handle cases where empty C++ structs, which are non-zero
7719 (riscv_arg_location): Initialise the length of each location, a
7720 non-zero length now indicates the location is in use.
7721 (riscv_push_dummy_call): Allow for the first location having a
7722 non-zero offset when setting up arguments.
7723 (riscv_return_value): Likewise, but for return values.
7725 2019-04-11 Tom Tromey <tromey@adacore.com>
7727 * utils.c (internal_vproblem): Make "msg" const.
7729 2019-04-11 Alan Hayward <alan.hayward@arm.com>
7731 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
7732 * trad-frame.c (trad_frame_reset_saved_regs): New function.
7733 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
7734 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
7736 2019-04-10 Kevin Buettner <kevinb@redhat.com>
7738 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
7740 (fill_gregset): Call amd64_linux_collect_native_gregset instead
7741 of amd64_collect_native_gregset.
7742 (amd64_linux_nat_target::store_registers): Likewise.
7744 2019-04-10 Tom Tromey <tom@tromey.com>
7746 * symtab.c (lookup_global_symbol_from_objfile)
7747 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
7748 * objfiles.h (class separate_debug_iterator): New.
7749 (class separate_debug_range): New.
7750 (struct objfile) <separate_debug_objfiles>: New method.
7751 (objfile_separate_debug_iterate): Don't declare.
7752 * objfiles.c (separate_debug_iterator::operator++): Rename from
7753 objfile_separate_debug_iterate.
7754 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
7756 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
7759 2019-04-10 Tom Tromey <tom@tromey.com>
7761 * symfile.c (reread_symbols): Remove old comment.
7762 * objfiles.c (free_all_objfiles): Fix a typo.
7764 2019-04-10 Tom Tromey <tom@tromey.com>
7766 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
7767 * minsyms.c (lookup_minimal_symbol): Use foreach.
7768 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7769 (lookup_minimal_symbol_solib_trampoline): Likewise.
7770 * symfile.c (reread_symbols): Use foreach.
7772 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
7773 Tom Tromey <tromey@adacore.com>
7776 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
7777 (rust_lex_int_test): Change "value" to be LONGEST.
7778 (rust_lex_tests): Add test for long integer literal.
7780 2019-04-09 Tom Tromey <tromey@adacore.com>
7782 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
7784 (extended_remote_target::attach): Update.
7785 (remote_target::remote_notice_new_inferior): Update.
7786 (remote_target::add_current_inferior_and_thread): Update.
7787 * inferior.c (exit_inferior_1): Use "false".
7788 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
7790 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
7792 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
7793 the "start" command.
7795 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7797 * python/py-inferior.c (infpy_thread_from_thread_handle):
7798 Adjust comments to reflect renaming of thread_from_thread_handle
7799 to thread_from_handle. Adjust keywords. Fix type error message.
7800 (inferior_object_methods): Add thread_from_handle. Retain
7801 thread_from_thread_handle, but mark it as deprecated.
7803 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7805 * gdbthread.h (find_thread_by_handle): Revise declaration.
7806 * thread.c (find_thread_by_handle): Likewise. Adjust
7808 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
7809 support for buffer objects as handles.
7811 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7813 * python/py-infthread.c (thpy_thread_handle): New function.
7814 (thread_object_methods): Register thpy_thread_handle.
7816 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7818 * gdbthread.h (thread_to_thread_handle): Declare.
7819 * thread.c (gdbtypes.h): Include.
7820 (thread_to_thread_handle): New function.
7822 * target.h (struct target_ops): Add thread_info_to_thread_handle.
7823 (target_thread_info_to_thread_handle): Declare.
7824 * target.c (target_thread_info_to_thread_handle): New function.
7825 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
7826 * target-delegates.c: Regenerate.
7828 * linux-thread-db.c (class thread_db_target): Add method
7829 thread_info_to_thread_handle.
7830 (thread_db_target::thread_info_to_thread_handle): Define.
7831 * remote.c (class remote_target): Add new method
7832 thread_info_to_thread_handle.
7833 (remote_target::thread_info_to_thread_handle): Define.
7835 2019-04-08 Pedro Alves <palves@redhat.com>
7837 * common/common-exceptions.c (throw_exception): Don't create
7838 named object to throw; throw directly.
7839 (throw_it): Likewise. Don't initialize gdb_exception::message
7840 here, with new; pass FMT and AP to the ctor instead.
7841 * common/common-exceptions.h: Include <string>.
7842 (gdb_exception::gdb_exception(enum return_reason, enum errors,
7843 const char *, va_list)): New ctor. Use std::make_shared.
7844 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
7846 (gdb_exception_error::gdb_exception_error(enum errors, const char
7848 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
7850 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
7852 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
7853 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
7856 2019-04-08 Tom Tromey <tom@tromey.com>
7858 * valops.c (value_rtti_indirect_type): Replace throw_exception
7860 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
7862 * thread.c (thr_try_catch_cmd): Replace throw_exception with
7864 * target.c (target_translate_tls_address): Replace throw_exception
7866 * stack.c (frame_apply_command_count): Replace throw_exception
7868 * solib-spu.c (append_ocl_sos): Replace throw_exception with
7870 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7872 * rs6000-tdep.c (rs6000_frame_cache)
7873 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7874 * remote.c: Replace throw_exception with throw.
7875 * record-full.c (record_full_message, record_full_wait_1)
7876 (record_full_restore): Replace throw_exception with throw.
7878 (get_thread_current_frame_id, record_btrace_start_replaying)
7879 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7880 (cmd_record_btrace_start): Replace throw_exception with throw.
7881 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7883 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7884 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7886 (find_linespec_symbols): Replace throw_exception with throw.
7887 * infrun.c (displaced_step_prepare, resume): Replace
7888 throw_exception with throw.
7889 * infcmd.c (post_create_inferior): Replace throw_exception with
7891 * inf-loop.c (inferior_event_handler): Replace throw_exception
7893 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7894 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7895 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7896 (get_prev_frame_always, get_frame_pc_if_available)
7897 (get_frame_address_in_block_if_available, get_frame_language):
7898 Replace throw_exception with throw.
7899 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7900 throw_exception with throw.
7901 * eval.c (fetch_subexp_value, evaluate_var_value)
7902 (evaluate_funcall, evaluate_subexp_standard): Replace
7903 throw_exception with throw.
7904 * dwarf2loc.c (call_site_find_chain)
7905 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7906 Replace throw_exception with throw.
7907 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7909 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7911 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7912 * completer.c (complete_line_internal): Replace throw_exception
7914 * compile/compile-object-run.c (compile_object_run): Replace
7915 throw_exception with throw.
7916 * cli/cli-script.c (process_next_line): Replace throw_exception
7918 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7919 (btrace_enable, btrace_maint_update_pt_packets): Replace
7920 throw_exception with throw.
7921 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7922 throw_exception with throw.
7923 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7924 throw_exception with throw.
7925 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7926 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7927 * aarch64-tdep.c (aarch64_make_prologue_cache)
7928 (aarch64_make_stub_cache): Replace throw_exception with throw.
7930 2019-04-08 Tom Tromey <tom@tromey.com>
7932 * common/common-exceptions.c (throw_exception): Rename from
7933 throw_exception_cxx. Remove old copy. Make argument const.
7934 (throw_it): Create and throw exception objects directly.
7935 * common/common-exceptions.h (throw_exception): Make argument
7937 (struct gdb_exception_error): Add constructor.
7938 (struct gdb_exception_quit): Add constructor.
7940 2019-04-08 Tom Tromey <tom@tromey.com>
7942 * common/common-exceptions.h (exception_rethrow): Don't declare.
7943 (TRY_SJLJ): Update comment.
7944 (TRY, CATCH, END_CATCH): Remove.
7945 * common/common-exceptions.c (exception_rethrow): Remove.
7947 2019-04-08 Tom Tromey <tom@tromey.com>
7949 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7951 (gdb_exception_error): Rename from
7952 gdb_exception_RETURN_MASK_ERROR.
7953 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7954 (gdb_quit_bad_alloc): Update.
7955 * aarch64-tdep.c: Update.
7956 * ada-lang.c: Update.
7957 * ada-typeprint.c: Update.
7958 * ada-valprint.c: Update.
7959 * amd64-tdep.c: Update.
7960 * arch-utils.c: Update.
7961 * break-catch-throw.c: Update.
7962 * breakpoint.c: Update.
7964 * c-varobj.c: Update.
7965 * cli/cli-cmds.c: Update.
7966 * cli/cli-interp.c: Update.
7967 * cli/cli-script.c: Update.
7968 * common/common-exceptions.c: Update.
7969 * common/new-op.c: Update.
7970 * common/selftest.c: Update.
7971 * compile/compile-c-symbols.c: Update.
7972 * compile/compile-cplus-symbols.c: Update.
7973 * compile/compile-object-load.c: Update.
7974 * compile/compile-object-run.c: Update.
7975 * completer.c: Update.
7976 * corelow.c: Update.
7978 * cp-support.c: Update.
7979 * cp-valprint.c: Update.
7980 * darwin-nat.c: Update.
7981 * disasm-selftests.c: Update.
7982 * dtrace-probe.c: Update.
7983 * dwarf-index-cache.c: Update.
7984 * dwarf-index-write.c: Update.
7985 * dwarf2-frame-tailcall.c: Update.
7986 * dwarf2-frame.c: Update.
7987 * dwarf2loc.c: Update.
7988 * dwarf2read.c: Update.
7990 * event-loop.c: Update.
7991 * event-top.c: Update.
7993 * f-valprint.c: Update.
7994 * fbsd-tdep.c: Update.
7995 * frame-unwind.c: Update.
7997 * gdbtypes.c: Update.
7998 * gnu-v3-abi.c: Update.
7999 * guile/guile-internal.h: Update.
8000 * guile/scm-block.c: Update.
8001 * guile/scm-breakpoint.c: Update.
8002 * guile/scm-cmd.c: Update.
8003 * guile/scm-disasm.c: Update.
8004 * guile/scm-frame.c: Update.
8005 * guile/scm-lazy-string.c: Update.
8006 * guile/scm-math.c: Update.
8007 * guile/scm-param.c: Update.
8008 * guile/scm-ports.c: Update.
8009 * guile/scm-pretty-print.c: Update.
8010 * guile/scm-symbol.c: Update.
8011 * guile/scm-symtab.c: Update.
8012 * guile/scm-type.c: Update.
8013 * guile/scm-value.c: Update.
8014 * i386-linux-tdep.c: Update.
8015 * i386-tdep.c: Update.
8016 * inf-loop.c: Update.
8017 * infcall.c: Update.
8021 * language.c: Update.
8022 * linespec.c: Update.
8023 * linux-fork.c: Update.
8024 * linux-nat.c: Update.
8025 * linux-tdep.c: Update.
8026 * linux-thread-db.c: Update.
8028 * mi/mi-cmd-break.c: Update.
8029 * mi/mi-cmd-stack.c: Update.
8030 * mi/mi-interp.c: Update.
8031 * mi/mi-main.c: Update.
8032 * objc-lang.c: Update.
8033 * p-valprint.c: Update.
8035 * ppc-linux-tdep.c: Update.
8036 * printcmd.c: Update.
8037 * python/py-arch.c: Update.
8038 * python/py-breakpoint.c: Update.
8039 * python/py-cmd.c: Update.
8040 * python/py-finishbreakpoint.c: Update.
8041 * python/py-frame.c: Update.
8042 * python/py-framefilter.c: Update.
8043 * python/py-gdb-readline.c: Update.
8044 * python/py-inferior.c: Update.
8045 * python/py-infthread.c: Update.
8046 * python/py-lazy-string.c: Update.
8047 * python/py-linetable.c: Update.
8048 * python/py-objfile.c: Update.
8049 * python/py-param.c: Update.
8050 * python/py-prettyprint.c: Update.
8051 * python/py-progspace.c: Update.
8052 * python/py-record-btrace.c: Update.
8053 * python/py-record.c: Update.
8054 * python/py-symbol.c: Update.
8055 * python/py-type.c: Update.
8056 * python/py-unwind.c: Update.
8057 * python/py-utils.c: Update.
8058 * python/py-value.c: Update.
8059 * python/python.c: Update.
8060 * record-btrace.c: Update.
8061 * record-full.c: Update.
8062 * remote-fileio.c: Update.
8064 * riscv-tdep.c: Update.
8065 * rs6000-aix-tdep.c: Update.
8066 * rs6000-tdep.c: Update.
8067 * rust-exp.y: Update.
8068 * rust-lang.c: Update.
8069 * s390-tdep.c: Update.
8070 * selftest-arch.c: Update.
8071 * solib-dsbt.c: Update.
8072 * solib-frv.c: Update.
8073 * solib-spu.c: Update.
8074 * solib-svr4.c: Update.
8076 * sparc64-linux-tdep.c: Update.
8078 * symfile-mem.c: Update.
8079 * symmisc.c: Update.
8083 * tracefile-tfile.c: Update.
8084 * tui/tui.c: Update.
8085 * typeprint.c: Update.
8086 * unittests/cli-utils-selftests.c: Update.
8087 * unittests/parse-connection-spec-selftests.c: Update.
8089 * valprint.c: Update.
8092 * windows-nat.c: Update.
8093 * x86-linux-nat.c: Update.
8094 * xml-support.c: Update.
8096 2019-04-08 Tom Tromey <tom@tromey.com>
8098 * xml-support.c: Use C++ exception handling.
8099 * x86-linux-nat.c: Use C++ exception handling.
8100 * windows-nat.c: Use C++ exception handling.
8101 * varobj.c: Use C++ exception handling.
8102 * value.c: Use C++ exception handling.
8103 * valprint.c: Use C++ exception handling.
8104 * valops.c: Use C++ exception handling.
8105 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8107 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8108 * typeprint.c: Use C++ exception handling.
8109 * tui/tui.c: Use C++ exception handling.
8110 * tracefile-tfile.c: Use C++ exception handling.
8111 * top.c: Use C++ exception handling.
8112 * thread.c: Use C++ exception handling.
8113 * target.c: Use C++ exception handling.
8114 * symmisc.c: Use C++ exception handling.
8115 * symfile-mem.c: Use C++ exception handling.
8116 * stack.c: Use C++ exception handling.
8117 * sparc64-linux-tdep.c: Use C++ exception handling.
8118 * solib.c: Use C++ exception handling.
8119 * solib-svr4.c: Use C++ exception handling.
8120 * solib-spu.c: Use C++ exception handling.
8121 * solib-frv.c: Use C++ exception handling.
8122 * solib-dsbt.c: Use C++ exception handling.
8123 * selftest-arch.c: Use C++ exception handling.
8124 * s390-tdep.c: Use C++ exception handling.
8125 * rust-lang.c: Use C++ exception handling.
8126 * rust-exp.y: Use C++ exception handling.
8127 * rs6000-tdep.c: Use C++ exception handling.
8128 * rs6000-aix-tdep.c: Use C++ exception handling.
8129 * riscv-tdep.c: Use C++ exception handling.
8130 * remote.c: Use C++ exception handling.
8131 * remote-fileio.c: Use C++ exception handling.
8132 * record-full.c: Use C++ exception handling.
8133 * record-btrace.c: Use C++ exception handling.
8134 * python/python.c: Use C++ exception handling.
8135 * python/py-value.c: Use C++ exception handling.
8136 * python/py-utils.c: Use C++ exception handling.
8137 * python/py-unwind.c: Use C++ exception handling.
8138 * python/py-type.c: Use C++ exception handling.
8139 * python/py-symbol.c: Use C++ exception handling.
8140 * python/py-record.c: Use C++ exception handling.
8141 * python/py-record-btrace.c: Use C++ exception handling.
8142 * python/py-progspace.c: Use C++ exception handling.
8143 * python/py-prettyprint.c: Use C++ exception handling.
8144 * python/py-param.c: Use C++ exception handling.
8145 * python/py-objfile.c: Use C++ exception handling.
8146 * python/py-linetable.c: Use C++ exception handling.
8147 * python/py-lazy-string.c: Use C++ exception handling.
8148 * python/py-infthread.c: Use C++ exception handling.
8149 * python/py-inferior.c: Use C++ exception handling.
8150 * python/py-gdb-readline.c: Use C++ exception handling.
8151 * python/py-framefilter.c: Use C++ exception handling.
8152 * python/py-frame.c: Use C++ exception handling.
8153 * python/py-finishbreakpoint.c: Use C++ exception handling.
8154 * python/py-cmd.c: Use C++ exception handling.
8155 * python/py-breakpoint.c: Use C++ exception handling.
8156 * python/py-arch.c: Use C++ exception handling.
8157 * printcmd.c: Use C++ exception handling.
8158 * ppc-linux-tdep.c: Use C++ exception handling.
8159 * parse.c: Use C++ exception handling.
8160 * p-valprint.c: Use C++ exception handling.
8161 * objc-lang.c: Use C++ exception handling.
8162 * mi/mi-main.c: Use C++ exception handling.
8163 * mi/mi-interp.c: Use C++ exception handling.
8164 * mi/mi-cmd-stack.c: Use C++ exception handling.
8165 * mi/mi-cmd-break.c: Use C++ exception handling.
8166 * main.c: Use C++ exception handling.
8167 * linux-thread-db.c: Use C++ exception handling.
8168 * linux-tdep.c: Use C++ exception handling.
8169 * linux-nat.c: Use C++ exception handling.
8170 * linux-fork.c: Use C++ exception handling.
8171 * linespec.c: Use C++ exception handling.
8172 * language.c: Use C++ exception handling.
8173 * jit.c: Use C++ exception handling.
8174 * infrun.c: Use C++ exception handling.
8175 * infcmd.c: Use C++ exception handling.
8176 * infcall.c: Use C++ exception handling.
8177 * inf-loop.c: Use C++ exception handling.
8178 * i386-tdep.c: Use C++ exception handling.
8179 * i386-linux-tdep.c: Use C++ exception handling.
8180 * guile/scm-value.c: Use C++ exception handling.
8181 * guile/scm-type.c: Use C++ exception handling.
8182 * guile/scm-symtab.c: Use C++ exception handling.
8183 * guile/scm-symbol.c: Use C++ exception handling.
8184 * guile/scm-pretty-print.c: Use C++ exception handling.
8185 * guile/scm-ports.c: Use C++ exception handling.
8186 * guile/scm-param.c: Use C++ exception handling.
8187 * guile/scm-math.c: Use C++ exception handling.
8188 * guile/scm-lazy-string.c: Use C++ exception handling.
8189 * guile/scm-frame.c: Use C++ exception handling.
8190 * guile/scm-disasm.c: Use C++ exception handling.
8191 * guile/scm-cmd.c: Use C++ exception handling.
8192 * guile/scm-breakpoint.c: Use C++ exception handling.
8193 * guile/scm-block.c: Use C++ exception handling.
8194 * guile/guile-internal.h: Use C++ exception handling.
8195 * gnu-v3-abi.c: Use C++ exception handling.
8196 * gdbtypes.c: Use C++ exception handling.
8197 * frame.c: Use C++ exception handling.
8198 * frame-unwind.c: Use C++ exception handling.
8199 * fbsd-tdep.c: Use C++ exception handling.
8200 * f-valprint.c: Use C++ exception handling.
8201 * exec.c: Use C++ exception handling.
8202 * event-top.c: Use C++ exception handling.
8203 * event-loop.c: Use C++ exception handling.
8204 * eval.c: Use C++ exception handling.
8205 * dwarf2read.c: Use C++ exception handling.
8206 * dwarf2loc.c: Use C++ exception handling.
8207 * dwarf2-frame.c: Use C++ exception handling.
8208 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8209 * dwarf-index-write.c: Use C++ exception handling.
8210 * dwarf-index-cache.c: Use C++ exception handling.
8211 * dtrace-probe.c: Use C++ exception handling.
8212 * disasm-selftests.c: Use C++ exception handling.
8213 * darwin-nat.c: Use C++ exception handling.
8214 * cp-valprint.c: Use C++ exception handling.
8215 * cp-support.c: Use C++ exception handling.
8216 * cp-abi.c: Use C++ exception handling.
8217 * corelow.c: Use C++ exception handling.
8218 * completer.c: Use C++ exception handling.
8219 * compile/compile-object-run.c: Use C++ exception handling.
8220 * compile/compile-object-load.c: Use C++ exception handling.
8221 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8222 * compile/compile-c-symbols.c: Use C++ exception handling.
8223 * common/selftest.c: Use C++ exception handling.
8224 * common/new-op.c: Use C++ exception handling.
8225 * cli/cli-script.c: Use C++ exception handling.
8226 * cli/cli-interp.c: Use C++ exception handling.
8227 * cli/cli-cmds.c: Use C++ exception handling.
8228 * c-varobj.c: Use C++ exception handling.
8229 * btrace.c: Use C++ exception handling.
8230 * breakpoint.c: Use C++ exception handling.
8231 * break-catch-throw.c: Use C++ exception handling.
8232 * arch-utils.c: Use C++ exception handling.
8233 * amd64-tdep.c: Use C++ exception handling.
8234 * ada-valprint.c: Use C++ exception handling.
8235 * ada-typeprint.c: Use C++ exception handling.
8236 * ada-lang.c: Use C++ exception handling.
8237 * aarch64-tdep.c: Use C++ exception handling.
8239 2019-04-08 Tom Tromey <tom@tromey.com>
8241 * xml-support.c (gdb_xml_parser::parse): Update.
8242 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8243 * value.c (show_convenience): Update.
8244 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8245 (test_parse_flags_qcs): Update.
8246 * thread.c (thr_try_catch_cmd): Update.
8247 * target.c (target_translate_tls_address): Update.
8248 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8249 (info_frame_command_core, frame_apply_command_count): Update.
8250 * rust-exp.y (rust_lex_exception_test): Update.
8251 * riscv-tdep.c (riscv_print_one_register_info): Update.
8252 * remote.c (remote_target::enable_btrace): Update.
8253 * record-btrace.c (record_btrace_enable_warn): Update.
8254 * python/py-utils.c (gdbpy_convert_exception): Update.
8255 * printcmd.c (do_one_display, print_variable_and_value): Update.
8256 * mi/mi-main.c (mi_print_exception): Update.
8257 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
8258 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
8259 * linux-nat.c (linux_nat_target::attach): Update.
8260 * linux-fork.c (class scoped_switch_fork_info): Update.
8261 * infrun.c (displaced_step_prepare): Update.
8262 * infcall.c (call_function_by_hand_dummy): Update.
8263 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
8264 * gnu-v3-abi.c (print_one_vtable): Update.
8265 * frame.c (get_prev_frame_always): Update.
8266 * f-valprint.c (info_common_command_for_block): Update.
8267 * exec.c (try_open_exec_file): Update.
8268 * exceptions.c (print_exception, exception_print)
8269 (exception_fprintf, exception_print_same): Update.
8270 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
8271 * dwarf-index-cache.c (index_cache::store)
8272 (index_cache::lookup_gdb_index): Update.
8273 * darwin-nat.c (maybe_cache_shell): Update.
8274 * cp-valprint.c (cp_print_value_fields): Update.
8275 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
8276 (gcc_cplus_symbol_address): Update.
8277 * compile/compile-c-symbols.c (gcc_convert_symbol)
8278 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8279 * common/selftest.c: Update.
8280 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8282 (exception_try_scope_entry, exception_try_scope_exit): Don't
8284 (struct exception_try_scope): Remove.
8285 (TRY): Don't use exception_try_scope.
8286 (struct gdb_exception): Add constructor, operator=.
8288 (struct gdb_exception_RETURN_MASK_ALL)
8289 (struct gdb_exception_RETURN_MASK_ERROR)
8290 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8291 (struct gdb_quit_bad_alloc): Update.
8292 * common/common-exceptions.c (exception_none): Change
8294 (struct catcher) <state, exception>: Initialize inline.
8295 <prev>: Remove member.
8296 (current_catcher): Remove.
8297 (catchers): New global.
8298 (exceptions_state_mc_init): Simplify.
8299 (catcher_pop): Remove.
8300 (exceptions_state_mc, exceptions_state_mc_catch): Update.
8301 (try_scope_depth, exception_try_scope_entry)
8302 (exception_try_scope_exit): Remove.
8303 (throw_exception_sjlj): Update.
8304 (exception_messages, exception_messages_size): Remove.
8305 (throw_it): Simplify.
8306 (gdb_exception_sliced_copy): Remove.
8307 (throw_exception_cxx): Update.
8308 * cli/cli-script.c (script_from_file): Update.
8309 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
8311 * ada-valprint.c (ada_val_print): Update.
8312 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
8313 (create_excep_cond_exprs): Update.
8315 2019-04-08 Tom Tromey <tom@tromey.com>
8317 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8318 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
8319 (TRY, CATCH, END_CATCH): Remove some definitions.
8320 * common/common-exceptions.c: Don't use GDB_XCPT.
8321 (catcher_list_size): Remove.
8322 (throw_exception, throw_it): Simplify.
8324 2019-04-05 Tom Tromey <tom@tromey.com>
8326 Revert the header-sorting patch.
8327 * ft32-tdep.c: Revert.
8328 * frv-tdep.c: Revert.
8329 * frv-linux-tdep.c: Revert.
8331 * frame-unwind.c: Revert.
8332 * frame-base.c: Revert.
8333 * fork-child.c: Revert.
8334 * findvar.c: Revert.
8335 * findcmd.c: Revert.
8336 * filesystem.c: Revert.
8337 * filename-seen-cache.h: Revert.
8338 * filename-seen-cache.c: Revert.
8339 * fbsd-tdep.c: Revert.
8340 * fbsd-nat.h: Revert.
8341 * fbsd-nat.c: Revert.
8342 * f-valprint.c: Revert.
8343 * f-typeprint.c: Revert.
8345 * extension.h: Revert.
8346 * extension.c: Revert.
8347 * extension-priv.h: Revert.
8348 * expprint.c: Revert.
8351 * exceptions.c: Revert.
8352 * event-top.c: Revert.
8353 * event-loop.c: Revert.
8355 * elfread.c: Revert.
8356 * dwarf2read.h: Revert.
8357 * dwarf2read.c: Revert.
8358 * dwarf2loc.c: Revert.
8359 * dwarf2expr.h: Revert.
8360 * dwarf2expr.c: Revert.
8361 * dwarf2-frame.c: Revert.
8362 * dwarf2-frame-tailcall.c: Revert.
8363 * dwarf-index-write.h: Revert.
8364 * dwarf-index-write.c: Revert.
8365 * dwarf-index-common.c: Revert.
8366 * dwarf-index-cache.h: Revert.
8367 * dwarf-index-cache.c: Revert.
8368 * dummy-frame.c: Revert.
8369 * dtrace-probe.c: Revert.
8372 * disasm-selftests.c: Revert.
8373 * dictionary.c: Revert.
8374 * dicos-tdep.c: Revert.
8375 * demangle.c: Revert.
8378 * darwin-nat.h: Revert.
8379 * darwin-nat.c: Revert.
8380 * darwin-nat-info.c: Revert.
8381 * d-valprint.c: Revert.
8382 * d-namespace.c: Revert.
8385 * csky-tdep.c: Revert.
8386 * csky-linux-tdep.c: Revert.
8387 * cris-tdep.c: Revert.
8388 * cris-linux-tdep.c: Revert.
8389 * cp-valprint.c: Revert.
8390 * cp-support.c: Revert.
8391 * cp-namespace.c: Revert.
8393 * corelow.c: Revert.
8394 * corefile.c: Revert.
8395 * continuations.c: Revert.
8396 * completer.h: Revert.
8397 * completer.c: Revert.
8398 * complaints.c: Revert.
8399 * coffread.c: Revert.
8400 * coff-pe-read.c: Revert.
8401 * cli-out.h: Revert.
8402 * cli-out.c: Revert.
8403 * charset.c: Revert.
8404 * c-varobj.c: Revert.
8405 * c-valprint.c: Revert.
8406 * c-typeprint.c: Revert.
8408 * buildsym.c: Revert.
8409 * buildsym-legacy.c: Revert.
8410 * build-id.h: Revert.
8411 * build-id.c: Revert.
8413 * bsd-uthread.c: Revert.
8414 * breakpoint.h: Revert.
8415 * breakpoint.c: Revert.
8416 * break-catch-throw.c: Revert.
8417 * break-catch-syscall.c: Revert.
8418 * break-catch-sig.c: Revert.
8419 * blockframe.c: Revert.
8421 * bfin-tdep.c: Revert.
8422 * bfin-linux-tdep.c: Revert.
8423 * bfd-target.c: Revert.
8425 * ax-general.c: Revert.
8428 * avr-tdep.c: Revert.
8430 * auto-load.c: Revert.
8431 * arm-wince-tdep.c: Revert.
8432 * arm-tdep.c: Revert.
8433 * arm-symbian-tdep.c: Revert.
8434 * arm-pikeos-tdep.c: Revert.
8435 * arm-obsd-tdep.c: Revert.
8436 * arm-nbsd-tdep.c: Revert.
8437 * arm-nbsd-nat.c: Revert.
8438 * arm-linux-tdep.c: Revert.
8439 * arm-linux-nat.c: Revert.
8440 * arm-fbsd-tdep.c: Revert.
8441 * arm-fbsd-nat.c: Revert.
8442 * arm-bsd-tdep.c: Revert.
8443 * arch-utils.c: Revert.
8444 * arc-tdep.c: Revert.
8445 * arc-newlib-tdep.c: Revert.
8446 * annotate.h: Revert.
8447 * annotate.c: Revert.
8448 * amd64-windows-tdep.c: Revert.
8449 * amd64-windows-nat.c: Revert.
8450 * amd64-tdep.c: Revert.
8451 * amd64-sol2-tdep.c: Revert.
8452 * amd64-obsd-tdep.c: Revert.
8453 * amd64-obsd-nat.c: Revert.
8454 * amd64-nbsd-tdep.c: Revert.
8455 * amd64-nbsd-nat.c: Revert.
8456 * amd64-nat.c: Revert.
8457 * amd64-linux-tdep.c: Revert.
8458 * amd64-linux-nat.c: Revert.
8459 * amd64-fbsd-tdep.c: Revert.
8460 * amd64-fbsd-nat.c: Revert.
8461 * amd64-dicos-tdep.c: Revert.
8462 * amd64-darwin-tdep.c: Revert.
8463 * amd64-bsd-nat.c: Revert.
8464 * alpha-tdep.c: Revert.
8465 * alpha-obsd-tdep.c: Revert.
8466 * alpha-nbsd-tdep.c: Revert.
8467 * alpha-mdebug-tdep.c: Revert.
8468 * alpha-linux-tdep.c: Revert.
8469 * alpha-linux-nat.c: Revert.
8470 * alpha-bsd-tdep.c: Revert.
8471 * alpha-bsd-nat.c: Revert.
8472 * aix-thread.c: Revert.
8474 * addrmap.c: Revert.
8475 * ada-varobj.c: Revert.
8476 * ada-valprint.c: Revert.
8477 * ada-typeprint.c: Revert.
8478 * ada-tasks.c: Revert.
8479 * ada-lang.c: Revert.
8480 * aarch64-tdep.c: Revert.
8481 * aarch64-ravenscar-thread.c: Revert.
8482 * aarch64-newlib-tdep.c: Revert.
8483 * aarch64-linux-tdep.c: Revert.
8484 * aarch64-linux-nat.c: Revert.
8485 * aarch64-fbsd-tdep.c: Revert.
8486 * aarch64-fbsd-nat.c: Revert.
8487 * aarch32-linux-nat.c: Revert.
8489 2019-04-05 Tom Tromey <tom@tromey.com>
8491 * ft32-tdep.c: Sort headers.
8492 * frv-tdep.c: Sort headers.
8493 * frv-linux-tdep.c: Sort headers.
8494 * frame.c: Sort headers.
8495 * frame-unwind.c: Sort headers.
8496 * frame-base.c: Sort headers.
8497 * fork-child.c: Sort headers.
8498 * findvar.c: Sort headers.
8499 * findcmd.c: Sort headers.
8500 * filesystem.c: Sort headers.
8501 * filename-seen-cache.h: Sort headers.
8502 * filename-seen-cache.c: Sort headers.
8503 * fbsd-tdep.c: Sort headers.
8504 * fbsd-nat.h: Sort headers.
8505 * fbsd-nat.c: Sort headers.
8506 * f-valprint.c: Sort headers.
8507 * f-typeprint.c: Sort headers.
8508 * f-lang.c: Sort headers.
8509 * extension.h: Sort headers.
8510 * extension.c: Sort headers.
8511 * extension-priv.h: Sort headers.
8512 * expprint.c: Sort headers.
8513 * exec.h: Sort headers.
8514 * exec.c: Sort headers.
8515 * exceptions.c: Sort headers.
8516 * event-top.c: Sort headers.
8517 * event-loop.c: Sort headers.
8518 * eval.c: Sort headers.
8519 * elfread.c: Sort headers.
8520 * dwarf2read.h: Sort headers.
8521 * dwarf2read.c: Sort headers.
8522 * dwarf2loc.c: Sort headers.
8523 * dwarf2expr.h: Sort headers.
8524 * dwarf2expr.c: Sort headers.
8525 * dwarf2-frame.c: Sort headers.
8526 * dwarf2-frame-tailcall.c: Sort headers.
8527 * dwarf-index-write.h: Sort headers.
8528 * dwarf-index-write.c: Sort headers.
8529 * dwarf-index-common.c: Sort headers.
8530 * dwarf-index-cache.h: Sort headers.
8531 * dwarf-index-cache.c: Sort headers.
8532 * dummy-frame.c: Sort headers.
8533 * dtrace-probe.c: Sort headers.
8534 * disasm.h: Sort headers.
8535 * disasm.c: Sort headers.
8536 * disasm-selftests.c: Sort headers.
8537 * dictionary.c: Sort headers.
8538 * dicos-tdep.c: Sort headers.
8539 * demangle.c: Sort headers.
8540 * dcache.h: Sort headers.
8541 * dcache.c: Sort headers.
8542 * darwin-nat.h: Sort headers.
8543 * darwin-nat.c: Sort headers.
8544 * darwin-nat-info.c: Sort headers.
8545 * d-valprint.c: Sort headers.
8546 * d-namespace.c: Sort headers.
8547 * d-lang.c: Sort headers.
8548 * ctf.c: Sort headers.
8549 * csky-tdep.c: Sort headers.
8550 * csky-linux-tdep.c: Sort headers.
8551 * cris-tdep.c: Sort headers.
8552 * cris-linux-tdep.c: Sort headers.
8553 * cp-valprint.c: Sort headers.
8554 * cp-support.c: Sort headers.
8555 * cp-namespace.c: Sort headers.
8556 * cp-abi.c: Sort headers.
8557 * corelow.c: Sort headers.
8558 * corefile.c: Sort headers.
8559 * continuations.c: Sort headers.
8560 * completer.h: Sort headers.
8561 * completer.c: Sort headers.
8562 * complaints.c: Sort headers.
8563 * coffread.c: Sort headers.
8564 * coff-pe-read.c: Sort headers.
8565 * cli-out.h: Sort headers.
8566 * cli-out.c: Sort headers.
8567 * charset.c: Sort headers.
8568 * c-varobj.c: Sort headers.
8569 * c-valprint.c: Sort headers.
8570 * c-typeprint.c: Sort headers.
8571 * c-lang.c: Sort headers.
8572 * buildsym.c: Sort headers.
8573 * buildsym-legacy.c: Sort headers.
8574 * build-id.h: Sort headers.
8575 * build-id.c: Sort headers.
8576 * btrace.c: Sort headers.
8577 * bsd-uthread.c: Sort headers.
8578 * breakpoint.h: Sort headers.
8579 * breakpoint.c: Sort headers.
8580 * break-catch-throw.c: Sort headers.
8581 * break-catch-syscall.c: Sort headers.
8582 * break-catch-sig.c: Sort headers.
8583 * blockframe.c: Sort headers.
8584 * block.c: Sort headers.
8585 * bfin-tdep.c: Sort headers.
8586 * bfin-linux-tdep.c: Sort headers.
8587 * bfd-target.c: Sort headers.
8588 * bcache.c: Sort headers.
8589 * ax-general.c: Sort headers.
8590 * ax-gdb.h: Sort headers.
8591 * ax-gdb.c: Sort headers.
8592 * avr-tdep.c: Sort headers.
8593 * auxv.c: Sort headers.
8594 * auto-load.c: Sort headers.
8595 * arm-wince-tdep.c: Sort headers.
8596 * arm-tdep.c: Sort headers.
8597 * arm-symbian-tdep.c: Sort headers.
8598 * arm-pikeos-tdep.c: Sort headers.
8599 * arm-obsd-tdep.c: Sort headers.
8600 * arm-nbsd-tdep.c: Sort headers.
8601 * arm-nbsd-nat.c: Sort headers.
8602 * arm-linux-tdep.c: Sort headers.
8603 * arm-linux-nat.c: Sort headers.
8604 * arm-fbsd-tdep.c: Sort headers.
8605 * arm-fbsd-nat.c: Sort headers.
8606 * arm-bsd-tdep.c: Sort headers.
8607 * arch-utils.c: Sort headers.
8608 * arc-tdep.c: Sort headers.
8609 * arc-newlib-tdep.c: Sort headers.
8610 * annotate.h: Sort headers.
8611 * annotate.c: Sort headers.
8612 * amd64-windows-tdep.c: Sort headers.
8613 * amd64-windows-nat.c: Sort headers.
8614 * amd64-tdep.c: Sort headers.
8615 * amd64-sol2-tdep.c: Sort headers.
8616 * amd64-obsd-tdep.c: Sort headers.
8617 * amd64-obsd-nat.c: Sort headers.
8618 * amd64-nbsd-tdep.c: Sort headers.
8619 * amd64-nbsd-nat.c: Sort headers.
8620 * amd64-nat.c: Sort headers.
8621 * amd64-linux-tdep.c: Sort headers.
8622 * amd64-linux-nat.c: Sort headers.
8623 * amd64-fbsd-tdep.c: Sort headers.
8624 * amd64-fbsd-nat.c: Sort headers.
8625 * amd64-dicos-tdep.c: Sort headers.
8626 * amd64-darwin-tdep.c: Sort headers.
8627 * amd64-bsd-nat.c: Sort headers.
8628 * alpha-tdep.c: Sort headers.
8629 * alpha-obsd-tdep.c: Sort headers.
8630 * alpha-nbsd-tdep.c: Sort headers.
8631 * alpha-mdebug-tdep.c: Sort headers.
8632 * alpha-linux-tdep.c: Sort headers.
8633 * alpha-linux-nat.c: Sort headers.
8634 * alpha-bsd-tdep.c: Sort headers.
8635 * alpha-bsd-nat.c: Sort headers.
8636 * aix-thread.c: Sort headers.
8637 * agent.c: Sort headers.
8638 * addrmap.c: Sort headers.
8639 * ada-varobj.c: Sort headers.
8640 * ada-valprint.c: Sort headers.
8641 * ada-typeprint.c: Sort headers.
8642 * ada-tasks.c: Sort headers.
8643 * ada-lang.c: Sort headers.
8644 * aarch64-tdep.c: Sort headers.
8645 * aarch64-ravenscar-thread.c: Sort headers.
8646 * aarch64-newlib-tdep.c: Sort headers.
8647 * aarch64-linux-tdep.c: Sort headers.
8648 * aarch64-linux-nat.c: Sort headers.
8649 * aarch64-fbsd-tdep.c: Sort headers.
8650 * aarch64-fbsd-nat.c: Sort headers.
8651 * aarch32-linux-nat.c: Sort headers.
8653 2019-04-04 Tom Tromey <tom@tromey.com>
8655 * varobj.c (varobj_create): Update.
8656 * rust-exp.y (struct rust_parser) <update_innermost_block,
8657 lookup_symbol>: New methods.
8658 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
8660 (rust_parser::rust_lookup_type)
8661 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8662 * printcmd.c (display_command, do_one_display): Update.
8663 * parser-defs.h (struct parser_state) <parser_state>: Add
8664 "tracker" parameter.
8665 (block_tracker): New member.
8666 (class innermost_block_tracker) <innermost_block_tracker>: Add
8668 <reset>: Remove method.
8669 (innermost_block): Don't declare.
8670 (null_post_parser): Update.
8671 * parse.c (innermost_block): Remove global.
8672 (write_dollar_variable): Update.
8673 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
8674 Remove "tracker_types" parameter.
8675 (parse_expression): Add "tracker" parameter.
8676 (parse_expression_for_completion): Update.
8677 (null_post_parser): Add "tracker" parameter.
8678 * p-exp.y: Update rules.
8679 * m2-exp.y: Update rules.
8680 * language.h (struct language_defn) <la_post_parser>: Add
8681 "tracker" parameter.
8682 * go-exp.y: Update rules.
8683 * f-exp.y: Update rules.
8684 * expression.h (parse_expression, parse_exp_1): Add "tracker"
8686 * d-exp.y: Update rules.
8687 * c-exp.y: Update rules.
8688 * breakpoint.c (set_breakpoint_condition): Create an
8689 innermost_block_tracker.
8690 (watch_command_1): Likewise.
8691 * ada-lang.c (resolve): Add "tracker" parameter.
8692 (resolve_subexp): Likewise.
8693 * ada-exp.y (write_var_from_sym): Update.
8695 2019-04-04 Tom Tromey <tom@tromey.com>
8697 * type-stack.h: New file.
8698 * type-stack.c: New file.
8699 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
8701 (insert_into_type_stack, insert_type, push_type, push_type_int)
8702 (insert_type_address_space, pop_type, pop_type_int)
8703 (pop_typelist, pop_type_stack, append_type_stack)
8704 (push_type_stack, get_type_stack, push_typelist)
8705 (follow_type_instance_flags, follow_types): Don't declare.
8706 * parse.c (type_stack): Remove global.
8707 (parse_exp_in_context): Update.
8708 (insert_into_type_stack, insert_type, push_type, push_type_int)
8709 (insert_type_address_space, pop_type, pop_type_int)
8710 (pop_typelist, pop_type_stack, append_type_stack)
8711 (push_type_stack, get_type_stack, push_typelist)
8712 (follow_type_instance_flags, follow_types): Remove (moved to
8714 * f-exp.y (type_stack): New global.
8716 (push_kind_type, f_parse): Update.
8717 * d-exp.y (type_stack): New global.
8720 * c-exp.y (struct c_parse_state) <type_stack>: New member.
8722 * Makefile.in (COMMON_SFILES): Add type-stack.c.
8723 (HFILES_NO_SRCDIR): Add type-stack.h.
8725 2019-04-04 Tom Tromey <tom@tromey.com>
8727 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
8728 (rust_parser::convert_ast_to_expression, rust_parse)
8729 (rust_lex_test_completion, rust_lex_tests): Update.
8730 * parser-defs.h (struct expr_completion_state): New.
8731 (struct parser_state) <parser_state>: Add completion parameter.
8732 <mark_struct_expression, mark_completion_tag>: New methods.
8733 <parse_completion, m_completion_state>: New members.
8734 (prefixify_expression, null_post_parser): Update.
8735 (mark_struct_expression, mark_completion_tag): Don't declare.
8736 * parse.c (parse_completion, expout_last_struct)
8737 (expout_tag_completion_type, expout_completion_name): Remove
8739 (parser_state::mark_struct_expression)
8740 (parser_state::mark_completion_tag): Now methods.
8741 (prefixify_expression): Add last_struct parameter.
8742 (prefixify_subexp): Likewise.
8743 (parse_exp_1): Update.
8744 (parse_exp_in_context): Add cstate parameter. Update.
8745 (parse_expression_for_completion): Create an
8746 expr_completion_state.
8747 (null_post_parser): Add "completion" parameter.
8748 * p-exp.y: Update rules.
8750 * language.h (struct language_defn) <la_post_parser>: Add
8751 "completing" parameter.
8752 * go-exp.y: Update rules.
8753 (lex_one_token): Update.
8754 * expression.h (parse_completion): Don't declare.
8755 * d-exp.y: Update rules.
8756 (lex_one_token): Update rules.
8757 * c-exp.y: Update rules.
8758 (lex_one_token): Update.
8759 * ada-lang.c (resolve): Add "parse_completion" parameter.
8760 (resolve_subexp): Likewise.
8761 (ada_resolve_function): Likewise.
8763 2019-04-04 Tom Tromey <tom@tromey.com>
8765 * parser-defs.h (struct parser_state) <start_arglist,
8766 end_arglist>: New methods.
8767 <arglist_len, m_funcall_chain>: New members.
8768 (arglist_len, start_arglist, end_arglist): Don't declare.
8769 * parse.c (arglist_len, funcall_chain): Remove global.
8770 (start_arglist, end_arglist): Remove functions.
8771 (parse_exp_in_context): Update.
8772 * p-exp.y: Update rules.
8773 * m2-exp.y: Update rules.
8774 * go-exp.y: Update rules.
8775 * f-exp.y: Update rules.
8776 * d-exp.y: Update rules.
8777 * c-exp.y: Update rules.
8779 2019-04-04 Tom Tromey <tom@tromey.com>
8781 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
8782 lex_operator, push_back>: New methods.
8784 (rust_parser::lex_hex, lex_escape): Rename and update.
8785 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
8786 (rust_parser::lex_operator): Rename and update.
8787 (rust_parser::lex_number, rustyylex, rustyyerror)
8788 (rust_lex_test_init, rust_lex_test_sequence)
8789 (rust_lex_test_push_back, rust_lex_tests): Update.
8790 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
8792 <lexptr, prev_lexptr>: New members.
8793 (lexptr, prev_lexptr): Don't declare.
8794 * parse.c (lexptr, prev_lexptr): Remove globals.
8795 (parse_exp_in_context): Update.
8796 * p-exp.y (yylex, yyerror): Update.
8797 * m2-exp.y (parse_number, yylex, yyerror): Update.
8798 * go-exp.y (lex_one_token, yyerror): Update.
8799 * f-exp.y (match_string_literal, yylex, yyerror): Update.
8800 * d-exp.y (lex_one_token, yyerror): Update.
8801 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
8802 (lex_one_token, yyerror): Update.
8803 * ada-lex.l (YY_INPUT): Update.
8804 (rewind_to_char): Update.
8805 * ada-exp.y (yyerror): Update.
8807 2019-04-04 Tom Tromey <tom@tromey.com>
8809 * rust-exp.y (rustyylex, rust_lex_tests): Update.
8810 * parser-defs.h (struct parser_state) <parser_state>: Add new
8812 <comma_terminates>: New member.
8813 (comma_terminates): Don't declare global.
8814 * parse.c (comma_terminates): Remove global.
8815 (parse_exp_in_context): Update.
8816 * p-exp.y (yylex): Update.
8817 * m2-exp.y (yylex): Update.
8818 * go-exp.y (lex_one_token): Update.
8819 * f-exp.y (yylex): Update.
8820 * d-exp.y (lex_one_token): Update.
8821 * c-exp.y (lex_one_token): Update.
8822 * ada-lex.l: Update.
8824 2019-04-04 Tom Tromey <tom@tromey.com>
8826 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
8827 (rustyylex, rust_lex_test_init, rust_lex_test_one)
8828 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
8829 * parser-defs.h (paren_depth): Don't declare.
8830 * parse.c (paren_depth): Remove global.
8831 (parse_exp_in_context): Update.
8832 * p-exp.y (paren_depth): New global.
8833 (pascal_parse): Initialize it.
8834 * m2-exp.y (paren_depth): New global.
8835 (m2_parse): Initialize it.
8836 * go-exp.y (paren_depth): New global.
8837 (go_parse): Initialize it.
8838 * f-exp.y (paren_depth): New global.
8839 (f_parse): Initialize it.
8840 * d-exp.y (paren_depth): New global.
8841 (d_parse): Initialize it.
8842 * c-exp.y (paren_depth): New global.
8843 (c_parse): Initialize it.
8844 * ada-lex.l (paren_depth): New global.
8845 (lexer_init): Initialize it.
8847 2019-04-04 Tom Tromey <tom@tromey.com>
8849 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
8850 (rust_parser::convert_ast_to_type)
8851 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8852 * parser-defs.h (struct parser_state) <parser_state>: Add
8853 parameters. Initialize new members.
8854 <expression_context_block, expression_context_pc>: New members.
8855 * parse.c (expression_context_block, expression_context_pc):
8857 (parse_exp_in_context): Update.
8858 * p-exp.y: Update all rules.
8860 * m2-exp.y: Update all rules.
8862 * go-exp.y (yylex): Update.
8863 * f-exp.y (yylex): Update.
8864 * d-exp.y: Update all rules.
8866 * c-exp.y: Update all rules.
8867 (lex_one_token, classify_name, yylex, c_parse): Update.
8868 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
8870 2019-04-04 Tom Tromey <tom@tromey.com>
8872 * gdbarch.h, gdbarch.c: Rebuild.
8873 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8875 (struct stap_parse_info): Replace "parser_state" with
8877 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8878 (parser_state): New class.
8879 * parse.c (expr_builder): Rename.
8880 (expr_builder::release): Rename.
8881 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8882 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8883 (write_exp_elt_longcst, write_exp_elt_floatcst)
8884 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8885 (write_exp_string_vector, write_exp_bitstring)
8886 (write_exp_msymbol, mark_struct_expression)
8887 (write_dollar_variable)
8888 (insert_type_address_space, increase_expout_size): Replace
8889 "parser_state" with "expr_builder".
8890 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8891 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8892 "parser_state" with "expr_builder".
8894 2019-04-04 Tom Tromey <tom@tromey.com>
8896 * rust-exp.y: Replace "parse_language" with method call.
8898 (yylex): Replace "parse_language" with method call.
8900 (yylex): Replace "parse_language" with method call.
8901 * go-exp.y (classify_name): Replace "parse_language" with method
8903 * f-exp.y (yylex): Replace "parse_language" with method call.
8904 * d-exp.y (lex_one_token): Replace "parse_language" with method
8907 (lex_one_token, classify_name, yylex): Replace "parse_language"
8909 * ada-exp.y (find_primitive_type, type_char)
8910 (type_system_address): Replace "parse_language" with method call.
8912 2019-04-04 Tom Tromey <tom@tromey.com>
8914 * rust-exp.y: Replace "parse_gdbarch" with method call.
8915 * parse.c (write_dollar_variable, insert_type_address_space):
8916 Replace "parse_gdbarch" with method call.
8917 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8919 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8921 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8922 "parse_gdbarch" with method call.
8923 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8925 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8926 "parse_gdbarch" with method call.
8927 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8928 "parse_gdbarch" with method call.
8929 * c-exp.y (parse_type, parse_number, classify_name): Replace
8930 "parse_gdbarch" with method call.
8931 * ada-lex.l: Replace "parse_gdbarch" with method call.
8932 * ada-exp.y (parse_type, find_primitive_type, type_char)
8933 (type_system_address): Replace "parse_gdbarch" with method call.
8935 2019-04-04 Tom Tromey <tom@tromey.com>
8937 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8938 * stap-probe.c (stap_parse_argument): Update.
8939 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8940 initial_size parameter.
8941 * rust-exp.y (rust_lex_tests): Update.
8942 * parse.c (parser_state): Update.
8943 (parse_exp_in_context): Update.
8944 * parser-defs.h (struct parser_state) <parser_state>: Remove
8945 "initial_size" parameter.
8947 2019-04-04 Tom Tromey <tom@tromey.com>
8949 * parser-defs.h (increase_expout_size): Don't declare.
8950 * parse.c (increase_expout_size): Now static.
8952 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8954 * gnu-nat.c (gnu_nat_target::wait): Fix
8955 target_waitstatus_to_string call.
8957 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8959 * eval.c (evaluate_subexp_standard): Handle internal functions
8960 during Fortran function call handling.
8962 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8964 * NEWS: Mention new internal functions.
8965 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8966 (read_base_type): Use dwarf2_init_complex_target_type.
8967 * value.c (creal_internal_fn): New function.
8968 (cimag_internal_fn): New function.
8969 (_initialize_values): Register new internal functions.
8971 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8973 * infrun.c (stop_all_threads): If debug_infrun, always
8974 trace the wait status after wait_one, using
8975 target_waitstatus_to_string and target_pid_to_str.
8976 (handle_inferior_event): Replace various trace of
8977 wait status kind by a single trace.
8978 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8979 wait status kind image by target_waitstatus_to_string.
8980 * target/waitstatus.c (target_waitstatus_to_string): Fix
8983 2019-04-01 Tom Tromey <tromey@adacore.com>
8986 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8988 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8989 Pedro Alves <palves@redhat.com>
8991 * top.c (quit_force): Call 'finalize_values'.
8992 * value.c (finalize_values): New function.
8993 * value.h (finalize_values): Declare.
8995 2019-03-30 Eli Zaretskii <eliz@gnu.org>
8997 * NEWS: Announce $_gdb_major and $_gdb_minor.
8999 * top.c (init_gdb_version_vars): New function.
9000 (gdb_init): Call init_gdb_version_vars.
9002 2019-03-29 Tom Tromey <tromey@adacore.com>
9004 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
9005 help text. Remove dead code.
9007 2019-03-29 Keith Seitz <keiths@redhat.com>
9009 From Siddhesh Poyarekar:
9010 * f-lang.h (f77_get_upperbound): Return LONGEST.
9011 (f77_get_lowerbound): Likewise.
9012 * f-typeprint.c (f_type_print_varspec_suffix): Expand
9013 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
9015 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
9016 plongest to format print it.
9017 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
9018 (f77_get_upperbound): Likewise.
9019 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
9020 LOWER_BOUND to LONGEST.
9021 (f77_create_arrayprint_offset_tbl): Likewise.
9023 2019-03-29 Keith Seitz <keiths@redhat.com>
9025 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
9026 %s/pulongest for TYPE_LENGTH instead of %d in format
9028 * ada-typerint.c (ada_print_type): Likewise.
9029 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
9030 * compile/compile-c-support.c (generate_register_struct): Likewise.
9031 * gdbtypes.c (recursive_dump_type): Likewise.
9032 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
9033 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
9034 instead of %d in format strings.
9035 * riscv-tdep.c (riscv_type_alignment): Cast second argument
9036 to std::min to ULONGEST.
9037 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
9038 instead of %d in format strings.
9039 * tracepoint.c (info_scope_command): Likewise.
9040 * typeprint.c (print_offset_data::update)
9041 (print_offset_data::finish): Likewise.
9042 * xtensa-tdep.c (xtensa_store_return_value)
9043 (xtensa_push_dummy_call): Likewise.
9045 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
9047 * windows-nat.c (display_selector): Fixed format specifications
9050 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9052 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9054 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9056 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9057 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9058 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9059 (nios2_linux_init_abi): Install it.
9061 2019-03-28 Alan Hayward <alan.hayward@arm.com>
9063 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9065 2019-03-28 Alan Hayward <alan.hayward@arm.com>
9067 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9069 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9070 Tom Tromey <tromey@adacore.com>
9072 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9074 2019-03-26 Joel Brobecker <brobecker@adacore.com>
9076 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9077 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9078 method to compute the bounds of range types. Also print "[evaluated]"
9079 if the bounds' values come from a dynamic evaluation.
9081 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9083 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9084 whitespace when pretty printing is on.
9086 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9088 * ppc-linux-nat.c: Add include.
9090 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9092 * NEWS: Mention AArch64 Pointer Authentication.
9094 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9096 * arm-linux-nat.c: Add include.
9098 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9100 * source-cache.c (source_cache::get_source_lines): Re-read
9101 fullname after calling open_source_file.
9103 2019-03-25 John Baldwin <jhb@FreeBSD.org>
9105 * NEWS: Mention TLS support for FreeBSD.
9107 2019-03-25 Tom Tromey <tromey@adacore.com>
9109 * minsyms.c (BUNCH_SIZE): Update comment.
9110 (~minimal_symbol_reader): Remove old comment.
9111 (compact_minimal_symbols): Update comment.
9112 (minimal_symbol_reader::install): Remove old comment. Update
9115 2019-03-25 Alan Hayward <alan.hayward@arm.com>
9117 * s390-linux-nat.c: Add include.
9119 2019-03-25 Alan Hayward <alan.hayward@arm.com>
9121 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9122 Call linux_get_hwcap.
9123 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9125 (aarch64_linux_get_hwcap): Remove function.
9126 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9128 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9130 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9131 * linux-tdep.c (linux_get_hwcap): Add function.
9132 (linux_get_hwcap2): Likewise.
9133 * linux-tdep.h (linux_get_hwcap): Add declaration.
9134 (linux_get_hwcap2): Likewise.
9135 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9136 (ppc_linux_get_hwcap2): Likewise.
9137 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9139 (ppc_linux_nat_target::insert_watchpoint): Likewise.
9140 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9141 (ppc_linux_nat_target::read_description): Likewise.
9142 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9143 * s390-linux-nat.c: Likewise.
9144 * s390-linux-tdep.c (s390_core_read_description): Likewise.
9146 2019-03-24 Tom Tromey <tom@tromey.com>
9148 * ada-lang.c (standard_lookup): Simplify initialization.
9149 (ada_lookup_symbol_nonlocal): Simplify return.
9150 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9151 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9152 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9153 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9155 * solib.c (solib_global_lookup): Simplify.
9156 * symtab.c (null_block_symbol): Remove.
9157 (symbol_cache_lookup): Simplify returns.
9158 (lookup_language_this): Simplify returns.
9159 (lookup_symbol_aux): Simplify return.
9160 (lookup_local_symbol): Simplify returns.
9161 (lookup_global_symbol_from_objfile): Simplify return.
9162 (lookup_symbol_in_objfile_symtabs)
9163 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
9164 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
9165 (lookup_static_symbol, lookup_global_symbol): Simplify return.
9166 * cp-namespace.c (cp_lookup_bare_symbol)
9167 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
9168 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9169 (cp_lookup_nested_symbol): Don't use null_block_symbol.
9170 (cp_lookup_symbol_via_imports): Simplify initialization.
9171 (find_symbol_in_baseclass): Likewise.
9172 * symtab.h (null_block_symbol): Remove.
9173 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9174 (d_lookup_nested_symbol, d_lookup_symbol_imports)
9175 (d_lookup_symbol_module): Likewise.
9176 (find_symbol_in_baseclass): Simplify initialization.
9178 2019-03-24 Tom Tromey <tom@tromey.com>
9180 * expression.h: Don't include symtab.h.
9181 (struct block): Forward declare.
9183 2019-03-24 Tom Tromey <tom@tromey.com>
9185 * c-exp.y (typebase): Remove casts.
9186 * gdbtypes.c (lookup_unsigned_typename, )
9187 (lookup_signed_typename): Remove cast.
9188 * eval.c (parse_to_comma_and_eval): Remove cast.
9189 * parse.c (write_dollar_variable): Remove cast.
9190 * block.h (struct block) <superblock>: Now const.
9191 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9192 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9193 (map_block): Make "block" const.
9194 * symfile.h (struct quick_symbol_functions)
9195 <map_matching_symbols>: Constify block argument to "callback".
9196 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9198 (find_pc_sect_compunit_symtab): Make "b" const.
9199 (find_symbol_at_address): Likewise.
9200 (search_symbols): Likewise.
9201 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9202 (dw2_debug_names_lookup_symbol): Likewise.
9203 (dw2_map_matching_symbols): Update.
9204 * p-valprint.c (pascal_val_print): Remove "block".
9205 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9206 (aux_add_nonlocal_symbols): Make "block" const.
9207 (resolve_subexp): Remove cast.
9208 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9210 (iterate_over_file_blocks): Likewise.
9211 * f-exp.y (%union) <bval>: Remove.
9212 * coffread.c (patch_opaque_types): Make "b" const.
9213 * spu-tdep.c (spu_catch_start): Make "block" const.
9214 * c-valprint.c (print_unpacked_pointer): Remove "block".
9215 * symmisc.c (dump_symtab_1): Make "b" const.
9216 (block_depth): Make "block" const.
9217 * d-exp.y (%union) <bval>: Remove.
9218 * cp-support.h (cp_lookup_rtti_type): Update.
9219 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9220 * psymtab.c (psym_lookup_symbol): Make "block" const.
9221 (maintenance_check_psymtabs): Make "b" const.
9222 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9223 (enumerate_locals, enumerate_args): Update.
9224 * python/py-symtab.c (stpy_global_block): Make "block" const.
9225 (stpy_static_block): Likewise.
9226 * inline-frame.c (block_starting_point_at): Make "new_block"
9228 * block.c (find_block_in_blockvector): Make return type const.
9229 (blockvector_for_pc_sect): Make "b" const.
9230 (find_block_in_blockvector): Make "b" const.
9232 2019-03-23 Tom Tromey <tom@tromey.com>
9234 * varobj.c (varobj_create): Update.
9235 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9236 * printcmd.c (display_command, do_one_display): Don't reset
9238 * parser-defs.h (enum innermost_block_tracker_type): Move to
9240 (innermost_block): Update comment.
9241 * parse.c (parse_exp_1): Add tracker_types parameter.
9242 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9243 tracker_types parameter. Reset innermost_block.
9244 (parse_exp_in_context): Remove.
9245 (parse_expression_for_completion): Update.
9246 * objfiles.c (~objfile): Don't reset expression_context_block or
9248 * expression.h (enum innermost_block_tracker_type): Move from
9250 (parse_exp_1): Add tracker_types parameter.
9251 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9252 reset innermost_block.
9254 2019-03-23 Tom Tromey <tom@tromey.com>
9256 * objfiles.h: Include bcache.h.
9258 2019-03-23 Tom Tromey <tom@tromey.com>
9260 * linespec.c (get_current_search_block): Use
9261 scoped_restore_current_language.
9262 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
9264 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9265 Jiong Wang <jiong.wang@arm.com>
9267 * aarch64-linux-tdep.c
9268 (aarch64_linux_iterate_over_regset_sections): Check for pauth
9270 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
9272 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9273 Jiong Wang <jiong.wang@arm.com>
9275 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9277 (aarch64_analyze_prologue_test): Add PACIASP test.
9278 (aarch64_prologue_prev_register): Unmask PC value.
9280 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9281 Jiong Wang <jiong.wang@arm.com>
9283 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9284 (aarch64_dwarf2_prev_register): Unmask PC value.
9285 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9286 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9287 DW_CFA_AARCH64_negate_ra_state.
9288 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9290 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9291 Jiong Wang <jiong.wang@arm.com>
9293 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
9295 (aarch64_pseudo_register_name): Likewise.
9296 (aarch64_pseudo_register_type): Likewise.
9297 (aarch64_pseudo_register_reggroup_p): Likewise.
9298 (aarch64_gdbarch_init): Add pauth registers.
9299 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
9300 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
9301 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
9302 (struct gdbarch_tdep): Add regnum for ra_state.
9304 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9305 Jiong Wang <jiong.wang@arm.com>
9307 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
9309 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9310 Jiong Wang <jiong.wang@arm.com>
9312 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
9314 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
9315 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
9316 (aarch64_gdbarch_init): Add puth registers.
9317 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9318 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
9319 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
9321 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9322 Jiong Wang <jiong.wang@arm.com>
9324 * aarch64-linux-nat.c
9325 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
9326 * aarch64-linux-tdep.c
9327 (aarch64_linux_core_read_description): Likewise.
9328 (aarch64_linux_get_hwcap): New function.
9329 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
9330 (aarch64_linux_get_hwcap): New declaration.
9332 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9333 Jiong Wang <jiong.wang@arm.com>
9335 * aarch64-linux-nat.c
9336 (aarch64_linux_nat_target::read_description): Add pauth param.
9337 * aarch64-linux-tdep.c
9338 (aarch64_linux_core_read_description): Likewise.
9339 * aarch64-tdep.c (struct target_desc): Add in pauth.
9340 (aarch64_read_description): Add pauth param.
9341 (aarch64_gdbarch_init): Likewise.
9342 * aarch64-tdep.h (aarch64_read_description): Likewise.
9343 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9344 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9345 * features/Makefile: Add new files.
9346 * features/aarch64-pauth.c: New file.
9347 * features/aarch64-pauth.xml: New file.
9349 2019-03-20 Tom Tromey <tromey@adacore.com>
9351 * infrun.c (handle_inferior_event): Rename from
9352 handle_inferior_event_1. Create a scoped_value_mark.
9353 (handle_inferior_event): Remove.
9355 2019-03-19 Tom Tromey <tromey@adacore.com>
9357 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9358 * infrun.h (print_stop_event): Add "displays" parameter.
9359 * infrun.c (print_stop_event): Add "displays" parameter.
9361 2019-03-19 Pedro Alves <palves@redhat.com>
9363 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9364 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9365 to -1. Fix TABs vs spaces.
9366 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9367 * tui/tui-out.h (tui_ui_out) Add intro comments.
9368 <m_line, m_start_of_line>: In-class initialize, and add describing
9371 2019-03-18 Alan Hayward <alan.hayward@arm.com>
9373 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9375 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9377 2019-03-18 Pedro Alves <palves@redhat.com>
9378 Eli Zaretskii <eliz@gnu.org>
9380 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
9381 m_line and m_start_of_line.
9383 2019-03-18 Eli Zaretskii <eliz@gnu.org>
9385 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
9386 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
9387 it returns a newline. This fixes a regression in TU mode, whereby
9388 the next line is output on the same screen line as the user input.
9390 2019-03-18 Tom Tromey <tromey@adacore.com>
9392 * minsyms.c (minimal_symbol_reader::install): Remove call to
9395 2019-03-18 Pedro Alves <palves@redhat.com>
9397 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9399 (apply_style): New, factored out from ...
9400 (apply_ansi_escape): ... this. Handle reverse video mode.
9401 (tui_set_reverse_mode): New function.
9402 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9403 * tui/tui-winsource.c (tui_show_source_line): Use
9404 tui_set_reverse_mode instead of setting A_STANDOUT.
9405 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9408 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
9410 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9413 2019-03-18 Tom Tromey <tromey@adacore.com>
9415 * ada-lang.c (empty_array): Add "high" parameter.
9416 (ada_evaluate_subexp): Update.
9418 2019-03-17 Sergei Trofimovich <siarheit@google.com>
9420 * unittests/string_view-selftests.c: Define
9421 _initialize_string_view_selftests unconditionally.
9423 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9426 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9428 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9431 * windows-nat.c (display_selector): Fix format specifiers.
9433 2019-03-17 Eli Zaretskii <eliz@gnu.org>
9435 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9436 tui_refill_source_window instead of tui_refresh_win, to update the
9437 current execution line. This fixes redisplay of the current line
9438 when stepping through the code with "next" or "step".
9440 2019-03-16 Eli Zaretskii <eliz@gnu.org>
9442 * source-cache.c (source_cache::get_source_lines): Call
9443 find_source_lines to initialize s->nlines. This fixes vertical
9444 scrolling of TUI source window when the DOWN arrow is pressed.
9446 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9448 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9449 linux-thread-db.c (_initialize_thread_db): Likewise.
9451 2019-03-16 Eli Zaretskii <eliz@gnu.org>
9453 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9454 wclrtoeol in tui_show_source_line". This reverts changes made in
9455 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9457 2019-03-15 Tom Tromey <tom@tromey.com>
9459 * symtab.h (struct minimal_symbol): Derive from
9460 general_symbol_info.
9461 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9462 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9463 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9464 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9465 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9466 (MSYMBOL_SEARCH_NAME): Update.
9467 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9468 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9469 * minsyms.c (minimal_symbol_reader::record_full): Update.
9471 2019-03-15 Tom Tromey <tom@tromey.com>
9473 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9475 2019-03-15 Tom Tromey <tom@tromey.com>
9477 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9479 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9481 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9482 (build_minimal_symbol_hash_tables)
9483 (minimal_symbol_reader::install): Update.
9485 2019-03-15 Tom Tromey <tom@tromey.com>
9487 * symtab.c (create_demangled_names_hash): Update.
9488 (symbol_set_names): Update.
9489 * objfiles.h (struct objfile_per_bfd_storage)
9490 <demangled_names_hash>: Now an htab_up.
9491 * objfiles.c (objfile_per_bfd_storage): Simplify.
9493 2019-03-15 Tom Tromey <tom@tromey.com>
9495 * objfiles.h (struct objfile_per_bfd_storage): Declare
9497 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9499 (get_objfile_bfd_data): Use new. Don't initialize
9501 (free_objfile_per_bfd_storage): Remove.
9502 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9504 2019-03-15 Tom Tromey <tom@tromey.com>
9506 * symfile.c (reread_symbols): Update.
9507 * objfiles.c (objfile::objfile): Update.
9508 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9509 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9511 (minimal_symbol_reader::install): Update.
9512 (terminate_minimal_symbol_table): Remove.
9513 * jit.c (jit_object_close_impl): Update.
9515 2019-03-15 Tom Tromey <tom@tromey.com>
9517 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9520 2019-03-15 Tom Tromey <tom@tromey.com>
9522 * objfiles.h (struct objfile_per_bfd_storage)
9523 <demangled_hash_languages>: Now a bitset.
9524 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
9525 (lookup_minimal_symbol): Update.
9527 2019-03-15 Tom Tromey <tom@tromey.com>
9529 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
9530 Don't return the symbol.
9531 * coffread.c (record_minimal_symbol): Use record_full.
9533 2019-03-14 Eli Zaretskii <eliz@gnu.org>
9535 The MS-Windows port of ncurses fails to switch to a color pair if
9536 one or both of the colors are the implicit default colors. This
9537 change records the default colors when TUI is initialized, and
9538 then specifies them explicitly when a color pair uses the default
9539 colors. This allows color styling in TUI mode on MS-Windows.
9541 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
9543 (tui_initialize_io) [__MINGW32__]: Record the default terminal
9544 colors in ncurses_norm_attr.
9545 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
9546 "none", replace it with the default color recorded in
9549 2019-03-14 Tom Tromey <tromey@adacore.com>
9551 * source-cache.h (class source_cache) <get_source_lines>: Return
9553 * source-cache.c (source_cache::extract_lines): Handle case where
9554 first_pos==npos. Return std::string.
9555 (source_cache::get_source_lines): Update.
9557 2019-03-14 Tom Tromey <tromey@adacore.com>
9559 * NEWS: Add item for "style sources" commands.
9560 * source-cache.c (source_cache::get_source_lines): Check
9562 * cli/cli-style.c (source_styling): New global.
9563 (_initialize_cli_style): Add "style sources" commands.
9564 (show_style_sources): New function.
9565 * cli/cli-style.h (source_styling): Declare.
9567 2019-03-14 Pedro Alves <palves@redhat.com>
9568 Tom Tromey <tromey@adacore.com>
9570 * tui/tui-winsource.h (tui_refill_source_window): Declare.
9571 * tui/tui-winsource.c (tui_refill_source_window): New function,
9573 (tui_horizontal_source_scroll): ... here. Move some logic.
9574 * cli/cli-style.c (set_style_enabled): Notify new observable.
9575 * tui/tui-hooks.c (tui_redisplay_source): New function.
9576 (tui_attach_detach_observers): Attach or detach
9577 tui_redisplay_source.
9578 * observable.h (source_styling_changed): New observable.
9579 * observable.c: Define source_styling_changed observable.
9581 2019-03-13 Tom Tromey <tromey@adacore.com>
9583 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
9584 (i386_gnu_nat_target::store_registers): Update.
9585 * target-debug.h (target_debug_print_std_string): New macro.
9586 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9587 * windows-tdep.c (display_one_tib): Update.
9588 * tui/tui-stack.c (tui_make_status_line): Update.
9589 * top.c (print_inferior_quit_action): Update.
9590 * thread.c (thr_try_catch_cmd): Update.
9591 (add_thread_with_info): Update.
9592 (thread_target_id_str): Update.
9593 (thr_try_catch_cmd): Update.
9594 (thread_command): Update.
9595 (thread_find_command): Update.
9596 * record-btrace.c (record_btrace_target::info_record)
9597 (record_btrace_resume_thread, record_btrace_target::resume)
9598 (record_btrace_cancel_resume, record_btrace_step_thread)
9599 (record_btrace_target::wait, record_btrace_target::wait)
9600 (record_btrace_target::wait, record_btrace_target::stop): Update.
9601 * progspace.c (print_program_space): Update.
9602 * process-stratum-target.c
9603 (process_stratum_target::thread_address_space): Update.
9604 * linux-fork.c (linux_fork_mourn_inferior)
9605 (detach_checkpoint_command, info_checkpoints_command)
9606 (linux_fork_context): Update.
9607 (linux_fork_detach): Update.
9608 (class scoped_switch_fork_info): Update.
9609 (delete_checkpoint_command): Update.
9610 * infrun.c (follow_fork_inferior): Update.
9611 (follow_fork_inferior): Update.
9612 (proceed_after_vfork_done): Update.
9613 (handle_vfork_child_exec_or_exit): Update.
9614 (follow_exec): Update.
9615 (displaced_step_prepare_throw): Update.
9616 (displaced_step_restore): Update.
9617 (start_step_over): Update.
9619 (clear_proceed_status_thread): Update.
9621 (print_target_wait_results): Update.
9622 (do_target_wait): Update.
9623 (context_switch): Update.
9624 (stop_all_threads): Update.
9625 (restart_threads): Update.
9626 (finish_step_over): Update.
9627 (handle_signal_stop): Update.
9628 (switch_back_to_stepped_thread): Update.
9629 (keep_going_pass_signal): Update.
9630 (print_exited_reason): Update.
9631 (normal_stop): Update.
9632 * inferior.c (inferior_pid_to_str): Change return type.
9633 (print_selected_inferior): Update.
9634 (add_inferior): Update.
9635 (detach_inferior): Update.
9636 * dummy-frame.c (fprint_dummy_frames): Update.
9637 * dcache.c (dcache_info_1): Update.
9638 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
9639 (btrace_fetch, btrace_clear): Update.
9640 * linux-tdep.c (linux_core_pid_to_str): Change return type.
9641 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
9643 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
9644 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
9645 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
9646 * gdbarch.c, gdbarch.h: Rebuild.
9647 * gdbarch.sh (core_pid_to_str): Change return type.
9648 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
9650 (windows_nat_target::pid_to_str): Change return type.
9651 (windows_delete_thread): Update.
9652 (windows_nat_target::attach): Update.
9653 (windows_nat_target::files_info): Update.
9654 * target-delegates.c: Rebuild.
9655 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
9657 (sol_thread_target::pid_to_str): Change return type.
9658 * remote.c (class remote_target) <pid_to_str>: Change return
9660 (remote_target::pid_to_str): Change return type.
9661 (extended_remote_target::attach, remote_target::remote_stop_ns)
9662 (remote_target::remote_notif_remove_queued_reply)
9663 (remote_target::push_stop_reply, remote_target::disable_btrace):
9665 (extended_remote_target::attach): Update.
9666 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
9668 (gdbsim_target::pid_to_str): Change return type.
9669 * ravenscar-thread.c (struct ravenscar_thread_target)
9670 <pid_to_str>: Change return type.
9671 (ravenscar_thread_target::pid_to_str): Change return type.
9672 * procfs.c (class procfs_target) <pid_to_str>: Change return
9674 (procfs_target::pid_to_str): Change return type.
9675 (procfs_target::attach): Update.
9676 (procfs_target::detach): Update.
9677 (procfs_target::fetch_registers): Update.
9678 (procfs_target::store_registers): Update.
9679 (procfs_target::wait): Update.
9680 (procfs_target::files_info): Update.
9681 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
9682 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
9684 (nto_procfs_target::pid_to_str): Change return type.
9685 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
9686 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
9688 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
9690 (attach_proc_task_lwp_callback, get_detach_signal)
9691 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
9692 (linux_nat_target::resume, wait_lwp, stop_callback)
9693 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
9694 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
9695 (linux_nat_wait_1, resume_stopped_resumed_lwps)
9696 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
9697 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
9699 (inf_ptrace_target::attach): Update.
9700 (inf_ptrace_target::files_info): Update.
9701 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
9703 (go32_nat_target::pid_to_str): Change return type.
9704 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
9705 (gnu_nat_target::wait): Update.
9706 (gnu_nat_target::wait): Update.
9707 (gnu_nat_target::resume): Update.
9708 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
9709 (fbsd_nat_target::wait): Update.
9710 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
9712 (darwin_nat_target::attach): Update.
9713 * corelow.c (class core_target) <pid_to_str>: Change return type.
9714 (core_target::pid_to_str): Change return type.
9715 * target.c (normal_pid_to_str): Change return type.
9716 (default_pid_to_str): Likewise.
9717 (target_pid_to_str): Change return type.
9718 (target_translate_tls_address): Update.
9719 (target_announce_detach): Update.
9720 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
9722 (bsd_uthread_target::pid_to_str): Change return type.
9723 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
9725 (bsd_kvm_target::pid_to_str): Change return type.
9726 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
9728 (aix_thread_target::pid_to_str): Change return type.
9729 * target.h (struct target_ops) <pid_to_str>: Change return type.
9730 (target_pid_to_str, normal_pid_to_str): Likewise.
9731 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
9733 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
9735 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
9737 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
9739 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
9741 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
9744 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
9746 * NEWS: Mention that the new default MI version is 3. Mention
9747 changes to the output of commands and events that deal with
9748 multi-location breakpoints.
9749 * breakpoint.c: Include "mi/mi-out.h".
9750 (print_one_breakpoint): Change output syntax if using MI version
9752 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
9754 (mi_multi_location_breakpoint_output_fixed): New.
9755 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
9756 (mi_cmd_fix_multi_location_breakpoint_output): New.
9757 (mi_multi_location_breakpoint_output_fixed): New.
9758 * mi/mi-cmds.c (mi_cmds): Register command
9759 -fix-multi-location-breakpoint-output.
9760 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
9763 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9765 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
9766 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
9767 instantiate mi_ui_out based on interpreter name.
9768 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
9769 * mi/mi-main.c (mi_load_progress): Likewise.
9771 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9773 * NEWS: Combine separate "New targets" sections for 8.3.
9775 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9777 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
9778 (ppcfbsd_init_abi): Install gdbarch
9779 "fetch_tls_load_module_address" and "get_thread_local_address"
9782 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9784 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
9785 (riscv_fbsd_init_abi): Install gdbarch
9786 "fetch_tls_load_module_address" and "get_thread_local_address"
9789 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9791 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
9792 (i386fbsd_init_abi): Install gdbarch
9793 "fetch_tls_load_module_address" and "get_thread_local_address"
9796 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9798 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
9799 (amd64fbsd_init_abi): Install gdbarch
9800 "fetch_tls_load_module_address" and "get_thread_local_address"
9803 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9805 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
9806 (struct fbsd_pspace_data): New type.
9807 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
9808 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
9809 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
9810 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
9811 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
9813 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9815 * gdbtypes.c (lookup_struct_elt): New function.
9816 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
9817 * gdbtypes.h (struct struct_elt): New type.
9818 (lookup_struct_elt): New prototype.
9820 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9822 * gdbtypes.c (lookup_struct_elt_type): Update comment and
9823 remove disabled code block.
9825 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9827 * gdbarch.sh (get_thread_local_address): New method.
9828 * gdbarch.h, gdbarch.c: Regenerate.
9829 * target.c (target_translate_tls_address): Use
9830 gdbarch_get_thread_local_address if present instead of
9831 target::get_thread_local_address.
9833 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9835 * target.h (target::get_thread_local_address): Update comment.
9837 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9839 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
9840 objfile->separate_debug_objfile_backlink if not NULL.
9842 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9844 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9845 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
9846 (amd64bsd_store_inferior_registers): Likewise.
9847 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9848 Enable segment base registers.
9849 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
9850 PT_GETFSBASE and PT_GETGSBASE.
9851 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
9853 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
9854 segment base registers.
9855 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9857 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9859 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9860 Update calls to i386_target_description to add 'segments'
9862 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
9863 add segment base registers.
9864 * arch/i386.c (i386_create_target_description): Add 'segments'
9865 parameter to enable segment base registers.
9866 * arch/i386.h (i386_create_target_description): Likewise.
9867 * features/i386/32bit-segments.xml: New file.
9868 * features/i386/32bit-segments.c: Generate.
9869 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
9870 call to i386_target_description to add 'segments' parameter.
9871 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9872 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9873 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9874 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9875 if feature is present.
9876 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9877 Add 'segments' parameter to call to i386_target_description.
9878 (i386_target_description): Add 'segments' parameter to enable
9879 segment base registers.
9880 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9881 to call to i386_target_description.
9882 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9883 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9884 Define I386_NUM_REGS.
9885 (i386_target_description): Add 'segments' parameter to enable
9886 segment base registers.
9888 2019-03-12 Eli Zaretskii <eliz@gnu.org>
9891 * source-cache.c: #undef open and close, to avoid unresolved
9892 externals during linking.
9894 2019-03-12 Tom Tromey <tromey@adacore.com>
9896 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9897 const. Add initializers.
9898 (_initialize_remote): Don't initialize ptid globals.
9900 2019-03-12 Pedro Alves <palves@redhat.com>
9902 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9904 2019-03-12 Pedro Alves <palves@redhat.com>
9906 * cp-name-parser.y (main): Remove unused 'len' variable.
9908 2019-03-12 Tom Tromey <tromey@adacore.com>
9910 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9911 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9913 2019-03-12 Tom Tromey <tromey@adacore.com>
9915 * linux-nat.c (iterate_over_lwps): Update.
9916 (stop_callback): Remove parameter.
9917 (stop_wait_callback, detach_callback, resume_set_callback)
9918 (select_singlestep_lwp_callback, set_ignore_sigint)
9919 (status_callback, resumed_callback, resume_clear_callback)
9920 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9922 (linux_nat_target::detach, linux_nat_target::resume)
9923 (linux_stop_and_wait_all_lwps, select_event_lwp)
9924 (linux_nat_filter_event, linux_nat_wait_1)
9925 (linux_nat_target::kill, linux_nat_target::stop)
9926 (linux_nat_target::stop): Update.
9927 (linux_nat_resume_callback): Change type.
9928 (resume_stopped_resumed_lwps, count_events_callback)
9929 (select_event_lwp_callback): Likewise.
9930 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9931 * arm-linux-nat.c (struct update_registers_data): Remove.
9932 (update_registers_callback): Change type.
9933 (arm_linux_insert_hw_breakpoint1): Update.
9934 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9936 (x86_linux_dr_set_addr): Update.
9937 (x86_linux_dr_set_control): Update.
9938 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9939 (iterate_over_lwps): Use gdb::function_view.
9940 * nat/aarch64-linux-hw-point.c (struct
9941 aarch64_dr_update_callback_param): Remove.
9942 (debug_reg_change_callback): Change type.
9943 (aarch64_notify_debug_reg_change): Update.
9944 * s390-linux-nat.c (s390_refresh_per_info): Update.
9946 2019-03-11 Tom Tromey <tromey@adacore.com>
9948 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9949 redundant assignment to "this_cu".
9951 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9953 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9955 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9957 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9959 (rank_one_type): ... this.
9961 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9963 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9965 (rank_one_type): ... this.
9967 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9969 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9971 (rank_one_type): ... this.
9973 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9975 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9977 (rank_one_type): ... this.
9979 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9981 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9983 (rank_one_type): ... this.
9985 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9987 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9989 (rank_one_type): ... this.
9991 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9993 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9995 (rank_one_type): ... this.
9997 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9999 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
10001 (rank_one_type): ... this.
10003 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10005 * gdbtypes.c (rank_one_type_parm_int): New function extracted
10007 (rank_one_type): ... this.
10009 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10011 * gdbtypes.c (rank_one_type_parm_func): New function extracted
10013 (rank_one_type): ... this.
10015 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10017 * gdbtypes.c (rank_one_type_parm_array): New function extracted
10019 (rank_one_type): ... this.
10021 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10023 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
10025 (rank_one_type): ... this.
10027 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10029 * inferior.c (initialize_inferiors): Ensure 'help set/show print
10030 inferior-events' shows the example events.
10032 2019-03-08 Eli Zaretskii <eliz@gnu.org>
10034 Support styling on native MS-Windows console
10037 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
10038 on MS-Windows if $TERM is not defined.
10040 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10042 * posix-hdep.c (gdb_console_fputs):
10043 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10045 * ui-file.h (gdb_console_fputs): Add prototype.
10047 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10048 back to fputs only if the former returns zero.
10050 2019-03-07 Tom Tromey <tom@tromey.com>
10052 * symmisc.c (print_symbol_bcache_statistics): Update.
10053 (print_objfile_statistics): Update.
10054 * symfile.c (allocate_symtab): Update.
10055 * stabsread.c: Don't include bcache.h.
10056 * psymtab.h (struct psymbol_bcache): Don't declare.
10057 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10058 (psymbol_bcache_init, psymbol_bcache_free)
10059 (psymbol_bcache_get_bcache): Don't declare.
10060 * psymtab.c (struct psymbol_bcache): Remove.
10061 (psymtab_storage::psymtab_storage): Update.
10062 (psymtab_storage::~psymtab_storage): Update.
10063 (psymbol_bcache_init, psymbol_bcache_free)
10064 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10065 (add_psymbol_to_bcache): Update.
10066 (allocate_psymtab): Update.
10067 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10068 macro_cache>: No longer pointers.
10069 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10070 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10071 * macrotab.c (macro_bcache): Update.
10072 * macroexp.c: Don't include bcache.h.
10073 * gdbtypes.c (check_types_worklist): Update.
10074 (types_deeply_equal): Remove TRY/CATCH. Update.
10075 * elfread.c (elf_symtab_read): Update.
10076 * dwarf2read.c: Don't include bcache.h.
10077 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10078 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10079 (print_bcache_statistics, bcache_memory_used): Don't declare.
10080 (struct bcache): Move from bcache.c. Add constructor, destructor,
10081 methods. Rename all data members.
10082 * bcache.c (struct bcache): Move to bcache.h.
10083 (bcache::expand_hash_table): Rename from expand_hash_table.
10085 (bcache::insert): Rename from bcache_full.
10086 (bcache::compare): Rename from bcache_compare.
10087 (bcache_xmalloc): Remove.
10088 (bcache::~bcache): Rename from bcache_xfree.
10089 (bcache::print_statistics): Rename from print_bcache_statistics.
10090 (bcache::memory_used): Rename from bcache_memory_used.
10092 2019-03-07 Pedro Alves <palves@redhat.com>
10094 * infrun.c (normal_stop): Also check for
10095 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10097 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10099 * f-lang.c (value_from_host_double): Moved to...
10100 * value.c (value_from_host_double): ...here.
10101 * value.h (value_from_host_double): Declare.
10102 * guile/scm-math.c (vlscm_convert_typed_number): Use
10103 value_from_host_double.
10104 (vlscm_convert_number): Likewise.
10105 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10106 * python/py-value.c (convert_value_from_python): Likewise.
10108 2019-03-06 Tom Tromey <tom@tromey.com>
10110 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10112 2019-03-06 Tom Tromey <tom@tromey.com>
10114 * utils.h (free_current_contents): Don't declare.
10115 * utils.c (free_current_contents): Remove.
10117 2019-03-06 Tom Tromey <tom@tromey.com>
10119 * top.c (quit_force): Update.
10120 * main.c (captured_command_loop): Update.
10121 * common/new-op.c (operator new): Update.
10122 * common/common-exceptions.c (struct catcher)
10123 <save_cleanup_chain>: Remove member.
10124 (exceptions_state_mc_init): Update.
10125 (exception_try_scope_entry): Return nullptr.
10126 (exception_try_scope_exit, exception_rethrow)
10127 (throw_exception_sjlj, throw_exception_cxx): Update.
10128 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10129 (all_cleanups, do_cleanups, discard_cleanups)
10130 (discard_final_cleanups, save_cleanups, save_final_cleanups)
10131 (restore_cleanups, restore_final_cleanups): Don't declare.
10132 (do_final_cleanups): Remove parameter.
10133 * common/cleanups.c (cleanup_chain, make_cleanup)
10134 (make_cleanup_dtor, all_cleanups, do_cleanups)
10135 (discard_my_cleanups, discard_cleanups)
10136 (discard_final_cleanups, save_my_cleanups, save_cleanups)
10137 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10138 (null_cleanup): Remove.
10139 (do_final_cleanups): Remove parameter.
10141 2019-03-06 Tom Tromey <tom@tromey.com>
10143 * remote.c (remote_target::remote_parse_stop_reply): Use
10144 unique_xmalloc_ptr.
10146 2019-03-06 Tom Tromey <tom@tromey.com>
10148 * stabsread.c (struct stabs_field_info): Rename from field_info.
10149 <list, fnlist>: Add initializers.
10150 <obstack>: New member.
10151 (read_member_functions, read_struct_fields, read_baseclasses):
10152 Allocate on obstack. Don't use cleanups.
10153 (read_one_struct_field, read_member_functions, read_struct_fields)
10154 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
10155 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
10156 (read_struct_type): Update.
10158 2019-03-06 Tom Tromey <tom@tromey.com>
10160 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
10161 * common/filestuff.h (make_cleanup_close): Don't declare.
10162 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
10165 2019-03-06 Tom Tromey <tom@tromey.com>
10167 * solib-aix.c: Use make_scope_exit.
10169 2019-03-06 Tom Tromey <tom@tromey.com>
10171 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10172 Use make_scope_exit.
10174 2019-03-06 Tom Tromey <tom@tromey.com>
10176 * solib-svr4.c (disable_probes_interface): Remove parameter.
10177 (svr4_handle_solib_event): Use make_scope_exit.
10179 2019-03-06 Tom Tromey <tom@tromey.com>
10181 * remote.c (struct stop_reply_deleter): Remove.
10182 (stop_reply_up): Update.
10183 (struct stop_reply): Derive from notif_event. Don't typedef.
10184 <regcache>: Now a std::vector.
10185 (stop_reply_xfree): Remove.
10186 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10187 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10188 (remote_target::discard_pending_stop_replies): Use delete.
10189 (remote_target::remote_parse_stop_reply): Update.
10190 (remote_target::process_stop_reply): Update.
10191 * remote-notif.h (struct notif_event): Add virtual destructor.
10192 Remove "dtr" member.
10193 (struct notif_client) <alloc_event>: Return a unique_ptr.
10194 (notif_event_xfree): Don't declare.
10195 (notif_event_up): New typedef.
10196 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10197 (notif_event_xfree, do_notif_event_xfree): Remove.
10198 (remote_notif_state_xfree): Update.
10200 2019-03-06 Tom Tromey <tom@tromey.com>
10202 * infrun.c (displaced_step_clear_cleanup): Now a
10203 forward_scope_exit type.
10204 (displaced_step_prepare_throw): Update.
10205 (displaced_step_fixup): Update.
10207 2019-03-06 Tom Tromey <tom@tromey.com>
10209 * inferior.h (class inferior): Update comment.
10210 * gdbthread.h (class thread_info): Update comment.
10212 2019-03-06 Joel Brobecker <brobecker@adacore.com>
10213 Tom Tromey <tom@tromey.com>
10215 * stabsread.h (struct stab_section_list): Remove.
10216 (coffstab_build_psymtabs): Update.
10217 * dbxread.c (symbuf_sections): Now a std::vector.
10218 (sect_idx): New global.
10219 (fill_symbuf): Update.
10220 (coffstab_build_psymtabs): Change type of stabsects parameter.
10222 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10224 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10225 (coff_locate_sections): Update.
10226 (coff_symfile_read): Remove cleanups. Update.
10227 (init_stringtab): Add storage parameter.
10228 (free_stringtab, free_stringtab_cleanup): Remove.
10229 (init_lineno): Add storage parameter.
10230 (free_linetab, free_linetab_cleanup): Remove.
10232 2019-03-06 Pedro Alves <palves@redhat.com>
10234 * linux-fork.c (fork_info::clobber_regs): Delete.
10235 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10236 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10238 (scoped_switch_fork_info::scoped_switch_fork_info)
10239 (checkpoint_command, linux_fork_context): Adjust
10240 fork_save_infrun_state calls.
10242 2019-03-06 Pedro Alves <palves@redhat.com>
10244 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10245 (inf_has_multiple_threads): Return 'bool' and rewrite using
10246 inferior_info::threads().
10248 2019-03-06 Pedro Alves <palves@redhat.com>
10250 * linux-fork.c: Include <list>.
10251 (fork_list): Now a std::list instance.
10252 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10253 (forks_exist_p, find_last_fork): Adjust.
10254 (new_fork): Delete.
10256 (add_fork): Adjust.
10257 (free_fork): Delete, folded into fork_info::~fork_info().
10258 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
10260 (init_fork_list): Delete.
10261 (linux_fork_killall, linux_fork_mourn_inferior)
10262 (linux_fork_detach, info_checkpoints_command): Adjust.
10263 (_initialize_linux_fork): No longer call init_fork_list.
10265 2019-03-06 Pedro Alves <palves@redhat.com>
10267 * linux-fork.c (new_fork): New, split out of ...
10268 (add_fork): ... this. Return void. Move "first fork" special
10269 case from here, to ...
10270 (checkpoint_command): ... here.
10271 * linux-linux.h (add_fork): Return void.
10273 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10275 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10277 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10278 Chris January <chris.january@arm.com>
10279 David Lecomber <david.lecomber@arm.com>
10281 * f-exp.y: New token, UNOP_INTRINSIC.
10282 (exp): New pattern using UNOP_INTRINSIC token.
10283 (f77_keywords): Add 'abs' keyword.
10284 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10285 (value_from_host_double): New function.
10286 (evaluate_subexp_f): Support UNOP_ABS.
10288 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10290 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10293 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10295 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
10296 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
10297 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
10299 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10301 * f-exp.y (convert_to_kind_type): Handle more type kinds.
10303 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10304 Chris January <chris.january@arm.com>
10306 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
10307 * f-exp.y: Define 'KIND' token.
10308 (exp): New pattern for KIND expressions.
10309 (ptype): Handle types with a kind extension.
10310 (direct_abs_decl): Extend to spot kind extensions.
10311 (f77_keywords): Add 'kind' to the list.
10312 (push_kind_type): New function.
10313 (convert_to_kind_type): New function.
10314 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
10315 * parse.c (operator_length_standard): Likewise.
10316 * parser-defs.h (enum type_pieces): Add tp_kind.
10317 * std-operator.def: Add UNOP_KIND.
10319 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10321 * f-exp.y (f_parse): Set yydebug.
10323 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10325 * f-lang.c (evaluate_subexp_f): New function.
10326 (exp_descriptor_f): New global.
10327 (f_language_defn): Use exp_descriptor_f instead of
10328 exp_descriptor_standard.
10330 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10332 * f-exp.y (struct token): Add comments.
10333 (dot_ops): Remove uppercase versions and the end marker.
10334 (f77_keywords): Likewise.
10335 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10336 entries in the dot_ops array are case insensitive, and use
10337 strncasecmp to compare strings. Also some whitespace cleanup in
10338 this area. Similar for the f77_keywords array, except entries in
10339 this list might be case sensitive.
10341 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10343 * f-exp.y (struct f77_boolean_val): Add comments.
10344 (boolean_values): Remove uppercase versions, and end marker.
10345 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10346 and use strncasecmp to achieve case insensitivity. Additionally,
10347 perform whitespace cleanup around this code.
10349 2019-03-06 Tom Tromey <tromey@adacore.com>
10351 * remote-sim.c (gdbsim_target_open): Use result of
10354 2019-03-06 Richard Bunt <richard.bunt@arm.com>
10355 Dirk Schubert <dirk.schubert@arm.com>
10356 Chris January <chris.january@arm.com>
10358 * eval.c (evaluate_subexp_standard): Call Fortran argument
10360 * f-lang.c (struct value): A value which can be passed into a
10361 Fortran function call.
10362 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10364 (struct type): Value ready for a Fortran function call.
10365 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10367 * f-lang.h (fortran_argument_convert): Declaration.
10368 (fortran_preserve_arg_pointer): Declaration.
10369 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10371 2019-03-05 Tom Tromey <tromey@adacore.com>
10373 * python/py-prettyprint.c (print_string_repr): Remove #if.
10374 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10376 2019-03-05 Tom Tromey <tromey@adacore.com>
10378 * target.c (the_dummy_target): Move later. Change type to
10380 (initialize_targets): Don't initialize the_dummy_target.
10382 2019-03-05 Tom Tromey <tromey@adacore.com>
10384 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
10385 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
10387 2019-03-05 Tom Tromey <tromey@adacore.com>
10389 * windows-nat.c (windows_nat_target::attach)
10390 (windows_nat_target::detach): Don't call gdb_flush.
10391 * valprint.c (generic_val_print, val_print, val_print_string):
10392 Don't call gdb_flush.
10393 * utils.c (defaulted_query): Don't call gdb_flush.
10394 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10395 * target.c (target_announce_detach): Don't call gdb_flush.
10396 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10397 * remote.c (extended_remote_target::attach): Don't call
10399 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10400 * printcmd.c (do_examine): Don't call gdb_flush.
10401 (info_display_command): Don't call gdb_flush.
10402 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10403 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10404 * memattr.c (info_mem_command): Don't call gdb_flush.
10405 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10406 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10407 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10408 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10409 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10410 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10411 (gnu_nat_target::detach): Don't call gdb_flush.
10412 * f-valprint.c (f_val_print): Don't call gdb_flush.
10413 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10414 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10415 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10417 * c-valprint.c (c_val_print): Don't call gdb_flush.
10418 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10420 2019-03-05 Tom Tromey <tromey@adacore.com>
10422 * varobj.c (update_dynamic_varobj_children): Update.
10423 (install_default_visualizer): Use reset, not release.
10424 * value.c (set_internalvar): Update.
10425 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10426 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10427 ATTRIBUTE_UNUSED_RESULT.
10429 2019-03-05 Tom Tromey <tromey@adacore.com>
10431 * remote.c (class scoped_remote_fd) <release>: Add
10432 ATTRIBUTE_UNUSED_RESULT.
10434 2019-03-05 Tom Tromey <tromey@adacore.com>
10436 * macroexp.c (struct macro_buffer) <release>: Add
10437 ATTRIBUTE_UNUSED_RESULT.
10439 2019-03-05 Tom Tromey <tromey@adacore.com>
10441 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10442 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10443 ATTRIBUTE_UNUSED_RESULT.
10445 2019-03-05 Tom Tromey <tromey@adacore.com>
10447 * common/scoped_fd.h (class scoped_fd) <release>: Add
10448 ATTRIBUTE_UNUSED_RESULT.
10450 2019-03-05 Tom Tromey <tromey@adacore.com>
10452 * parser-defs.h (struct parser_state) <release>: Add
10453 ATTRIBUTE_UNUSED_RESULT.
10455 2019-03-05 Tom Tromey <tromey@adacore.com>
10457 * utils.h (class gdb_argv) <release>: Add
10458 ATTRIBUTE_UNUSED_RESULT.
10459 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10461 2019-03-02 Eli Zaretskii <eliz@gnu.org>
10463 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10464 for-loop range, to avoid compiler warnings.
10466 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10467 avoid compiler warnings about unused variables.
10469 * NEWS: Mention end of support for native debugging on MS-Windows
10473 * common/netstuff.c:
10474 * gdbserver/gdbreplay.c
10475 * gdbserver/remote-utils.c:
10477 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10478 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10479 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10480 'getaddrinfo' and 'freeaddrinfo' were not available before
10481 Windows XP, and mingw.org's MinGW headers by default define
10482 _WIN32_WINNT to 0x500.
10484 2019-03-01 Gary Benson <gbenson@redhat.com>
10486 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10488 2019-02-28 Brian Vandenberg <phantall@gmail.com>
10489 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10492 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10493 set_sigint_trap, clear_sigint_trap.
10495 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10497 * target.c (target_detach): Clear the regcache and the
10500 2019-02-27 Pedro Alves <palves@redhat.com>
10502 * utils.c (set_screen_size): When we cap the height/width sizes,
10503 tweak the corresponding command variable to show "unlimited":
10505 2019-02-27 Saagar Jha <saagar@saagarjha.com>
10506 Pedro Alves <palves@redhat.com>
10508 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10509 before calling rl_set_screen_size.
10511 2019-02-27 Tom Tromey <tromey@adacore.com>
10513 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10515 * python/py-value.c: Remove Python 2.4 workaround.
10516 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10518 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10519 Python 2.4 workaround.
10520 * python/python-internal.h: Remove Python 2.4 comment.
10521 (Py_ssize_t): Don't define.
10522 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10523 (gdb_Py_DECREF): Remove Python 2.4 workaround.
10524 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
10525 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
10526 * python/python.c (do_start_initialization): Remove Python 2.4
10528 * python/py-prettyprint.c (class dummy_python_frame): Remove.
10529 (print_children): Remove Python 2.4 workaround.
10530 * python/py-inferior.c (buffer_procs): Remove Python 2.4
10532 (CHARBUFFERPROC_NAME): Remove.
10533 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
10534 Python 2.4 workaround.
10536 2019-02-27 Kevin Buettner <kevinb@redhat.com>
10538 * NEWS: Note minimum Python version.
10540 2019-02-27 Kevin Buettner <kevinb@redhat.com>
10542 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
10543 code from these functions. Remove corresponding ifdefs. Use
10544 Py_buffer_up instead of explicit calls to PyBuffer_Release.
10545 Remove gotos and target of gotos.
10546 (infpy_search_memory): Likewise.
10548 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10550 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
10551 (hppa_gdbarch_init): Don't register deleted functions with
10554 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10556 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
10557 (h8300_unwind_sp): Delete.
10558 (h8300_dummy_id): Delete.
10559 (h8300_gdbarch_init): Don't register deleted functions with
10562 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10564 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
10565 (ft32_unwind_pc): Delete.
10566 (ft32_unwind_sp): Delete.
10567 (ft32_gdbarch_init): Don't register deleted functions with
10570 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10572 * gdb/frv-tdep.c (frv_dummy_id): Delete.
10573 (frv_unwind_pc): Delete.
10574 (frv_unwind_sp): Delete.
10575 (frv_gdbarch_init): Don't register deleted functions with
10578 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10580 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
10581 (riscv_unwind_pc): Delete.
10582 (riscv_unwind_sp): Delete.
10583 (riscv_gdbarch_init): Don't register deleted functions with
10586 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10588 * gdb/csky-tdep.c (csky_dummy_id): Delete.
10589 (csky_unwind_pc): Delete.
10590 (csky_unwind_sp): Delete.
10591 (csky_gdbarch_init): Don't register deleted functions with
10594 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10596 * gdb/cris-tdep.c (cris_dummy_id): Delete.
10597 (cris_unwind_pc): Delete.
10598 (cris_unwind_sp): Delete.
10599 (cris_gdbarch_init): Don't register deleted functions with
10602 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10604 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
10605 (bfin_unwind_pc): Delete.
10606 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
10608 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10610 * gdb/arm-tdep.c (arm_dummy_id): Delete.
10611 (arm_unwind_pc): Delete.
10612 (arm_unwind_sp): Delete.
10613 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
10615 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10617 * gdb/arc-tdep.c (arc_dummy_id): Delete.
10618 (arc_unwind_pc): Delete.
10619 (arc_unwind_sp): Delete.
10620 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
10622 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10624 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
10625 (alpha_unwind_pc): Delete.
10626 (alpha_gdbarch_init): Don't register deleted functions with
10629 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10631 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
10632 (aarch64_unwind_pc): Delete.
10633 (aarch64_unwind_sp): Delete.
10634 (aarch64_gdbarch_init): Don't register deleted functions with
10637 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10639 * gdbtypes.c (type_align): Don't consider static members when
10640 computing structure alignment.
10642 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10644 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
10645 return 0 for other types.
10646 * arch-utils.c (default_type_align): Always return 0.
10647 * gdbarch.h: Regenerate.
10648 * gdbarch.sh (type_align): Extend comment.
10649 * gdbtypes.c (type_align): Add additional comments, always call
10650 gdbarch_type_align before applying the default rules.
10651 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
10652 generic code will then apply a suitable default.
10653 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
10654 types, return 0 for other types.
10656 2019-02-27 Joel Brobecker <brobecker@adacore.com>
10658 * NEWS: Create a new section for the next release branch.
10659 Rename the section of the current branch, now that it has
10662 2019-02-27 Joel Brobecker <brobecker@adacore.com>
10664 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
10665 * version.in: Bump version to 8.3.50.DATE-git.
10667 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
10669 * aix-thread.c (ptid_cmp): Remove unused variable.
10670 (get_signaled_thread): Likewise.
10671 (store_regs_user_thread): Likewise.
10672 (store_regs_kernel_thread): Likewise.
10673 (fetch_regs_kernel_thread): Remove shadowed variable.
10675 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
10677 * features/riscv/32bit-cpu.xml: Add register numbers.
10678 * features/riscv/32bit-fpu.c: Regenerate.
10679 * features/riscv/32bit-fpu.xml: Add register numbers.
10680 * features/riscv/64bit-cpu.xml: Add register numbers.
10681 * features/riscv/64bit-fpu.c: Regenerate.
10682 * features/riscv/64bit-fpu.xml: Add register numbers.
10684 2019-02-26 Kevin Buettner <kevinb@redhat.com>
10686 * NEWS: Mention two argument form of gdb.Value constructor.
10687 * python/py-value.c (convert_buffer_and_type_to_value): New
10689 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
10690 Add support for handling an optional second argument. Call
10691 convert_buffer_and_type_to_value as appropriate.
10692 * python/python-internal.h (Py_buffer_deleter): New struct.
10693 (Py_buffer_up): New typedef.
10695 2019-02-25 John Baldwin <jhb@FreeBSD.org>
10697 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
10698 instead of releasing ownership.
10700 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
10702 * dwarf2read.c (open_and_init_dwp_file): Call
10703 elf_numsections instead of bfd_count_sections to initialize
10704 dwp_file->num_sections.
10706 2019-02-25 Tom Tromey <tromey@adacore.com>
10708 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
10710 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
10712 * gcore.in: Add '--readnever' option when invoking GDB.
10714 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10716 * MAINTAINERS: Update my email address.
10718 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10720 * build-id.c (build_id_to_debug_bfd_1): New function.
10721 (build_id_to_debug_bfd): Look for separate debug file in
10724 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
10726 * gdbarch.sh: Update the copyright year range that is placed into
10729 2019-02-22 Keith Seitz <keiths@redhat.com>
10732 * linespec.c (create_sals_line_offset): Search for the default
10733 symtab's filename instead of its fullname.
10735 2019-02-21 Alan Hayward <alan.hayward@arm.com>
10737 * NEWS: Update style defaults.
10739 2019-02-21 Alan Hayward <alan.hayward@arm.com>
10741 * main.c (captured_main_1): Disable styling in batch mode.
10743 2019-02-20 Tom Tromey <tom@tromey.com>
10745 * symtab.c (symtab_symbol_info): Fix typos.
10747 2019-02-20 Tom Tromey <tromey@adacore.com>
10749 * findcmd.c (_initialize_mem_search): Use upper case for
10750 metasyntactic variables.
10752 2019-02-20 Alan Hayward <alan.hayward@arm.com>
10754 * aarch64-tdep.c (aarch64_add_reggroups): New function.
10755 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
10757 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
10759 * top.h (source_file_name): Change to std::string.
10760 * top.c (source_file_name): Likewise.
10761 (command_line_input): Adjust.
10762 * cli/cli-script.c (script_from_file): Adjust.
10764 2019-02-19 Tom Tromey <tromey@adacore.com>
10766 * ravenscar-thread.c
10767 (ravenscar_thread_target::update_thread_list): Don't call
10768 ada_build_task_list.
10769 * ada-lang.h (ada_build_task_list): Don't declare.
10770 * ada-tasks.c (struct ada_tasks_inferior_data)
10771 <task_list_valid_p>: Now bool.
10772 (read_known_tasks, ada_task_list_changed)
10773 (ada_tasks_invalidate_inferior_data): Update.
10774 (read_known_tasks_array): Return bool.
10775 (read_known_tasks_list): Likewise.
10776 (read_known_tasks): Return void.
10777 (ada_build_task_list): Now static.
10779 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
10781 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
10782 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
10784 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10786 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
10787 variant for ada_tasks_pspace_data_handle and
10788 ada_tasks_inferior_data_handle.
10789 (ada_tasks_pspace_data_cleanup): New function.
10790 (ada_tasks_inferior_data_cleanup): New function.
10792 2019-02-17 Tom Tromey <tom@tromey.com>
10794 * macrotab.h (macro_source_fullname): Return a std::string.
10795 * macrotab.c (macro_include, check_for_redefinition)
10796 (macro_undef, macro_lookup_definition, foreach_macro)
10797 (foreach_macro_in_scope): Update.
10798 (macro_source_fullname): Return a std::string.
10799 * macrocmd.c (show_pp_source_pos): Update.
10801 2019-02-17 Tom Tromey <tom@tromey.com>
10803 * macrocmd.c (show_pp_source_pos): Style the file names.
10805 2019-02-17 Tom Tromey <tom@tromey.com>
10808 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
10810 2019-02-17 Tom Tromey <tom@tromey.com>
10812 * ada-lang.c (user_select_syms): Use filtered printing.
10813 * utils.c (wrap_style): New global.
10814 (desired_style): Remove.
10815 (emit_style_escape): Add stream parameter.
10816 (set_output_style, reset_terminal_style, prompt_for_continue):
10818 (flush_wrap_buffer): Only flush gdb_stdout.
10819 (wrap_here): Set wrap_style.
10820 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
10821 treat escape sequences as a character. Change when wrap buffer is
10823 (fputs_styled): Do not set the output style when the default is
10825 * ui-style.h (struct ui_file_style) <is_default>: New method.
10826 * source.c (print_source_lines_base): Emit escape sequences in one
10829 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10831 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
10832 integers and enumeration types.
10834 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10836 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
10837 instead of lookup_symbol_in_language
10838 (do_exact_match): New function.
10839 (ada_get_symbol_name_matcher): Return do_exact_match when
10840 doing a verbatim match.
10842 2019-02-15 Tom Tromey <tromey@adacore.com>
10844 * ravenscar-thread.c (ravenscar_thread_target::resume)
10845 (ravenscar_thread_target::wait): Special case wildcard requests.
10847 2019-02-15 Tom Tromey <tromey@adacore.com>
10849 * ravenscar-thread.c (base_ptid): Remove.
10850 (struct ravenscar_thread_target) <close>: New method.
10851 <m_base_ptid>: New member.
10852 <update_inferior_ptid, active_task, task_is_currently_active,
10853 runtime_initialized>: Declare methods.
10854 <ravenscar_thread_target>: Add constructor.
10855 (ravenscar_thread_target::task_is_currently_active)
10856 (ravenscar_thread_target::update_inferior_ptid)
10857 (ravenscar_runtime_initialized): Rename. Now methods.
10858 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
10859 (ravenscar_thread_target::update_thread_list): Update.
10860 (ravenscar_thread_target::active_task): Now method.
10861 (ravenscar_thread_target::store_registers)
10862 (ravenscar_thread_target::prepare_to_store)
10863 (ravenscar_thread_target::prepare_to_store)
10864 (ravenscar_thread_target::mourn_inferior): Update.
10865 (ravenscar_inferior_created): Use "new" to create target.
10866 (ravenscar_thread_target::get_ada_task_ptid): Update.
10867 (_initialize_ravenscar): Don't initialize base_ptid.
10868 (ravenscar_ops): Remove global.
10870 2019-02-15 Tom Tromey <tromey@adacore.com>
10872 * target.h (push_target): Declare new overload.
10873 * target.c (push_target): New overload, taking an rvalue reference.
10874 * remote.c (remote_target::open_1): Use push_target overload.
10875 * corelow.c (core_target_open): Use push_target overload.
10877 2019-02-15 Tom Tromey <tromey@adacore.com>
10879 * ravenscar-thread.c (is_ravenscar_task)
10880 (ravenscar_task_is_currently_active): Return bool.
10881 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10882 (_initialize_ravenscar): Remove "(void)".
10883 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10886 2019-02-15 Tom Tromey <tromey@adacore.com>
10888 * ravenscar-thread.c (ravenscar_runtime_initializer)
10889 (has_ravenscar_runtime, get_running_thread_id)
10890 (ravenscar_thread_target::resume): Fix indentation.
10892 2019-02-15 Tom Tromey <tromey@adacore.com>
10894 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10895 from ravenscar_arch_ops.
10896 (sparc_ravenscar_ops::fetch_registers)
10897 (sparc_ravenscar_ops::store_registers): Now methods.
10898 (sparc_ravenscar_prepare_to_store): Remove.
10899 (sparc_ravenscar_ops): Redefine.
10900 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10901 methods and destructor. Remove members.
10902 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10903 (ravenscar_thread_target::store_registers)
10904 (ravenscar_thread_target::prepare_to_store): Update.
10905 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10907 (struct ppc_ravenscar_powerpc_ops): Derive from
10908 ravenscar_arch_ops.
10909 (ppc_ravenscar_powerpc_ops::fetch_registers)
10910 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10911 (ppc_ravenscar_powerpc_ops): Redefine.
10912 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10913 (ppc_ravenscar_e500_ops::fetch_registers)
10914 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10915 (ppc_ravenscar_e500_ops): Redefine.
10916 * aarch64-ravenscar-thread.c
10917 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10918 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10919 (aarch64_ravenscar_fetch_registers)
10920 (aarch64_ravenscar_store_registers): Now methods.
10921 (aarch64_ravenscar_ops): Redefine.
10923 2019-02-15 Tom Tromey <tromey@adacore.com>
10925 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10926 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10927 (ravenscar_thread_target::stopped_by_watchpoint)
10928 (ravenscar_thread_target::stopped_data_address)
10929 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10931 2019-02-15 Tom Tromey <tromey@adacore.com>
10933 * ravenscar-thread.c: Fix some typos.
10935 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10936 Tom Tromey <tromey@adacore.com>
10938 * ada-lang.c (ada_exception_sal): Change addr_string to a
10940 (create_ada_exception_catchpoint): Update.
10942 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10943 Tom Tromey <tromey@adacore.com>
10945 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10946 (bp_location_ops): Remove.
10947 (base_breakpoint_allocate_location): Update.
10948 (free_bp_location): Update.
10949 * ada-lang.c (class ada_catchpoint_location)
10950 <ada_catchpoint_location>: Remove ops parameter.
10951 (ada_catchpoint_location_dtor): Remove.
10952 (ada_catchpoint_location_ops): Remove.
10953 (allocate_location_exception): Update.
10954 * breakpoint.h (struct bp_location_ops): Remove.
10955 (class bp_location) <bp_location>: Remove bp_location_ops
10957 <~bp_location>: Add destructor.
10960 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10961 Pedro Alves <palves@redhat.com>
10963 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10966 2019-02-14 David Michael <fedora.dm0@gmail.com>
10967 Samuel Thibault <samuel.thibault@gnu.org>
10968 Thomas Schwinge <thomas@codesourcery.com>
10970 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10971 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10973 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10975 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10976 (check_empty): Use "const char *".
10978 * gnu-nat.c (gnu_nat_target::detach): Instead of
10979 'detach_inferior (pid)' call
10980 'detach_inferior (find_inferior_pid (pid))'.
10982 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10983 'nat/fork-inferior.o'.
10984 * gnu-nat.c: #include "nat/fork-inferior.h".
10986 * gnu-nat.c (gnu_nat_target::detach): Instead of
10987 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10988 * gnu-nat.h: #include "inf-child.h".
10989 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10990 'i386_gnu_nat_target::fetch_registers'.
10991 (gnu_store_registers): Rename/move to
10992 'i386_gnu_nat_target::store_registers'.
10994 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10995 * gnu-nat.h (mach_thread_info): New function.
10996 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10998 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
11000 2019-02-14 Frederic Konrad <konrad@adacore.com>
11002 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
11004 2019-02-14 Joel Brobecker <brobecker@adacore.com>
11006 * windows-nat.c (windows_add_thread): Add new parameter
11007 "main_thread_p" with default value set to false. Update
11008 function documentation as well as all callers.
11009 (windows_delete_thread): Likewise.
11010 (fake_create_process): Update call to windows_add_thread.
11011 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
11012 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
11013 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
11014 call to windows_delete_thread.
11016 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
11018 * MAINTAINERS: Add Andrew Burgess as global maintainer.
11020 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11022 * symfile.c (find_separate_debug_file): Use canonical path of
11023 sysroot with child_path instead of gdb_sysroot if it is valid.
11025 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11027 * symfile.c (find_separate_debug_file): Use child_path to
11028 determine if an object file is under a sysroot.
11030 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11032 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11033 unittests/child-path-selftests.c.
11034 * common/pathstuff.c (child_path): New function.
11035 * common/pathstuff.h (child_path): New prototype.
11036 * unittests/child-path-selftests.c: New file.
11038 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11040 * symfile.c (find_separate_debug_file): Look for separate debug
11041 files in debug directories under the sysroot.
11043 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11045 * symtab.h (struct minimal_symbol data_p): New const method.
11046 (struct minimal_symbol text_p): Likewise.
11047 * symtab.c (output_source_filename): Use file name style
11048 to print file name.
11049 (print_symbol_info): Likewise.
11050 (print_msymbol_info): Use address style to print addresses.
11051 Use function name style to print executable text symbols.
11052 (expand_symtab_containing_pc): Use data_p.
11053 (find_pc_sect_compunit_symtab): Likewise.
11055 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11057 * breakpoint.c (describe_other_breakpoints): Use address style
11058 to print addresses.
11059 (say_where): Likewise.
11061 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11063 * ada-typeprint.c (print_func_type): Print function name
11064 style to print function name.
11065 * c-typeprint.c (c_print_type_1): Likewise.
11067 2019-02-11 Alan Hayward <alan.hayward@arm.com>
11069 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11072 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11074 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11077 2019-02-10 Joel Brobecker <brobecker@adacore.com>
11079 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11080 TYPE_CODE_REF types.
11082 2019-02-08 Jim Wilson <jimw@sifive.com>
11084 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11085 (riscv_linux_fregset): New.
11086 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11088 2019-02-07 Tom Tromey <tom@tromey.com>
11090 * thread.c (thread_cancel_execution_command): Update.
11091 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11093 (struct thread_fsm_ops): Remove.
11094 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11095 (thread_fsm_should_stop, thread_fsm_return_value)
11096 (thread_fsm_set_finished, thread_fsm_finished_p)
11097 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11099 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11100 * infrun.c (clear_proceed_status_thread)
11101 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11102 (print_stop_event): Update.
11103 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11105 (step_command_fsm_ops): Remove.
11106 (new_step_command_fsm): Remove.
11108 (step_command_fsm::should_stop): Rename from
11109 step_command_fsm_should_stop.
11110 (step_command_fsm::clean_up): Rename from
11111 step_command_fsm_clean_up.
11112 (step_command_fsm::do_async_reply_reason): Rename from
11113 step_command_fsm_async_reply_reason.
11114 (struct until_next_fsm): Inherit from thread_fsm. Add
11116 (until_next_fsm_ops): Remove.
11117 (new_until_next_fsm): Remove.
11118 (until_next_fsm::should_stop): Rename from
11119 until_next_fsm_should_stop.
11120 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11121 (until_next_fsm::do_async_reply_reason): Rename from
11122 until_next_fsm_async_reply_reason.
11123 (struct finish_command_fsm): Inherit from thread_fsm. Add
11124 constructor. Change type of breakpoint.
11125 (finish_command_fsm_ops): Remove.
11126 (new_finish_command_fsm): Remove.
11127 (finish_command_fsm::should_stop): Rename from
11128 finish_command_fsm_should_stop.
11129 (finish_command_fsm::clean_up): Rename from
11130 finish_command_fsm_clean_up.
11131 (finish_command_fsm::return_value): Rename from
11132 finish_command_fsm_return_value.
11133 (finish_command_fsm::do_async_reply_reason): Rename from
11134 finish_command_fsm_async_reply_reason.
11135 (finish_command): Update.
11136 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11138 (call_thread_fsm_ops): Remove.
11139 (call_thread_fsm::call_thread_fsm): Rename from
11140 new_call_thread_fsm.
11141 (call_thread_fsm::should_stop): Rename from
11142 call_thread_fsm_should_stop.
11143 (call_thread_fsm::should_notify_stop): Rename from
11144 call_thread_fsm_should_notify_stop.
11145 (run_inferior_call, call_function_by_hand_dummy): Update.
11146 * cli/cli-interp.c (should_print_stop_to_console): Update.
11147 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11148 Add constructor. Change type of location_breakpoint,
11150 (until_break_fsm_ops): Remove.
11151 (new_until_break_fsm): Remove.
11152 (until_break_fsm::should_stop): Rename from
11153 until_break_fsm_should_stop.
11154 (until_break_fsm::clean_up): Rename from
11155 until_break_fsm_clean_up.
11156 (until_break_fsm::do_async_reply_reason): Rename from
11157 until_break_fsm_async_reply_reason.
11158 (until_break_command): Update.
11159 * thread-fsm.c: Remove.
11160 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
11162 2019-02-07 Tom Tromey <tom@tromey.com>
11164 * yy-remap.h: Add include guard.
11165 * xtensa-tdep.h: Add include guard.
11166 * xcoffread.h: Rename include guard.
11167 * varobj-iter.h: Add include guard.
11168 * tui/tui.h: Rename include guard.
11169 * tui/tui-winsource.h: Rename include guard.
11170 * tui/tui-wingeneral.h: Rename include guard.
11171 * tui/tui-windata.h: Rename include guard.
11172 * tui/tui-win.h: Rename include guard.
11173 * tui/tui-stack.h: Rename include guard.
11174 * tui/tui-source.h: Rename include guard.
11175 * tui/tui-regs.h: Rename include guard.
11176 * tui/tui-out.h: Rename include guard.
11177 * tui/tui-layout.h: Rename include guard.
11178 * tui/tui-io.h: Rename include guard.
11179 * tui/tui-hooks.h: Rename include guard.
11180 * tui/tui-file.h: Rename include guard.
11181 * tui/tui-disasm.h: Rename include guard.
11182 * tui/tui-data.h: Rename include guard.
11183 * tui/tui-command.h: Rename include guard.
11184 * tic6x-tdep.h: Add include guard.
11185 * target/waitstatus.h: Rename include guard.
11186 * target/wait.h: Rename include guard.
11187 * target/target.h: Rename include guard.
11188 * target/resume.h: Rename include guard.
11189 * target-float.h: Rename include guard.
11190 * stabsread.h: Add include guard.
11191 * rs6000-tdep.h: Add include guard.
11192 * riscv-fbsd-tdep.h: Add include guard.
11193 * regformats/regdef.h: Rename include guard.
11194 * record.h: Rename include guard.
11195 * python/python.h: Rename include guard.
11196 * python/python-internal.h: Rename include guard.
11197 * python/py-stopevent.h: Rename include guard.
11198 * python/py-ref.h: Rename include guard.
11199 * python/py-record.h: Rename include guard.
11200 * python/py-record-full.h: Rename include guard.
11201 * python/py-record-btrace.h: Rename include guard.
11202 * python/py-instruction.h: Rename include guard.
11203 * python/py-events.h: Rename include guard.
11204 * python/py-event.h: Rename include guard.
11205 * procfs.h: Add include guard.
11206 * proc-utils.h: Add include guard.
11207 * p-lang.h: Add include guard.
11208 * or1k-tdep.h: Rename include guard.
11209 * observable.h: Rename include guard.
11210 * nto-tdep.h: Rename include guard.
11211 * nat/x86-linux.h: Rename include guard.
11212 * nat/x86-linux-dregs.h: Rename include guard.
11213 * nat/x86-gcc-cpuid.h: Add include guard.
11214 * nat/x86-dregs.h: Rename include guard.
11215 * nat/x86-cpuid.h: Rename include guard.
11216 * nat/ppc-linux.h: Rename include guard.
11217 * nat/mips-linux-watch.h: Rename include guard.
11218 * nat/linux-waitpid.h: Rename include guard.
11219 * nat/linux-ptrace.h: Rename include guard.
11220 * nat/linux-procfs.h: Rename include guard.
11221 * nat/linux-osdata.h: Rename include guard.
11222 * nat/linux-nat.h: Rename include guard.
11223 * nat/linux-namespaces.h: Rename include guard.
11224 * nat/linux-btrace.h: Rename include guard.
11225 * nat/glibc_thread_db.h: Rename include guard.
11226 * nat/gdb_thread_db.h: Rename include guard.
11227 * nat/gdb_ptrace.h: Rename include guard.
11228 * nat/fork-inferior.h: Rename include guard.
11229 * nat/amd64-linux-siginfo.h: Rename include guard.
11230 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11231 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11232 * nat/aarch64-linux.h: Rename include guard.
11233 * nat/aarch64-linux-hw-point.h: Rename include guard.
11234 * mn10300-tdep.h: Add include guard.
11235 * mips-linux-tdep.h: Add include guard.
11236 * mi/mi-parse.h: Rename include guard.
11237 * mi/mi-out.h: Rename include guard.
11238 * mi/mi-main.h: Rename include guard.
11239 * mi/mi-interp.h: Rename include guard.
11240 * mi/mi-getopt.h: Rename include guard.
11241 * mi/mi-console.h: Rename include guard.
11242 * mi/mi-common.h: Rename include guard.
11243 * mi/mi-cmds.h: Rename include guard.
11244 * mi/mi-cmd-break.h: Rename include guard.
11245 * m2-lang.h: Add include guard.
11246 * location.h: Rename include guard.
11247 * linux-record.h: Rename include guard.
11248 * linux-nat.h: Add include guard.
11249 * linux-fork.h: Add include guard.
11250 * i386-darwin-tdep.h: Rename include guard.
11251 * hppa-linux-offsets.h: Add include guard.
11252 * guile/guile.h: Rename include guard.
11253 * guile/guile-internal.h: Rename include guard.
11254 * gnu-nat.h: Rename include guard.
11255 * gdb-stabs.h: Rename include guard.
11256 * frv-tdep.h: Add include guard.
11257 * f-lang.h: Add include guard.
11258 * event-loop.h: Add include guard.
11259 * darwin-nat.h: Rename include guard.
11260 * cp-abi.h: Rename include guard.
11261 * config/sparc/nm-sol2.h: Rename include guard.
11262 * config/nm-nto.h: Rename include guard.
11263 * config/nm-linux.h: Add include guard.
11264 * config/i386/nm-i386gnu.h: Rename include guard.
11265 * config/djgpp/nl_types.h: Rename include guard.
11266 * config/djgpp/langinfo.h: Rename include guard.
11267 * compile/gcc-cp-plugin.h: Add include guard.
11268 * compile/gcc-c-plugin.h: Add include guard.
11269 * compile/compile.h: Rename include guard.
11270 * compile/compile-object-run.h: Rename include guard.
11271 * compile/compile-object-load.h: Rename include guard.
11272 * compile/compile-internal.h: Rename include guard.
11273 * compile/compile-cplus.h: Rename include guard.
11274 * compile/compile-c.h: Rename include guard.
11275 * common/xml-utils.h: Rename include guard.
11276 * common/x86-xstate.h: Rename include guard.
11277 * common/version.h: Rename include guard.
11278 * common/vec.h: Rename include guard.
11279 * common/tdesc.h: Rename include guard.
11280 * common/selftest.h: Rename include guard.
11281 * common/scoped_restore.h: Rename include guard.
11282 * common/scoped_mmap.h: Rename include guard.
11283 * common/scoped_fd.h: Rename include guard.
11284 * common/safe-iterator.h: Rename include guard.
11285 * common/run-time-clock.h: Rename include guard.
11286 * common/refcounted-object.h: Rename include guard.
11287 * common/queue.h: Rename include guard.
11288 * common/ptid.h: Rename include guard.
11289 * common/print-utils.h: Rename include guard.
11290 * common/preprocessor.h: Rename include guard.
11291 * common/pathstuff.h: Rename include guard.
11292 * common/observable.h: Rename include guard.
11293 * common/netstuff.h: Rename include guard.
11294 * common/job-control.h: Rename include guard.
11295 * common/host-defs.h: Rename include guard.
11296 * common/gdb_wait.h: Rename include guard.
11297 * common/gdb_vecs.h: Rename include guard.
11298 * common/gdb_unlinker.h: Rename include guard.
11299 * common/gdb_unique_ptr.h: Rename include guard.
11300 * common/gdb_tilde_expand.h: Rename include guard.
11301 * common/gdb_sys_time.h: Rename include guard.
11302 * common/gdb_string_view.h: Rename include guard.
11303 * common/gdb_splay_tree.h: Rename include guard.
11304 * common/gdb_setjmp.h: Rename include guard.
11305 * common/gdb_ref_ptr.h: Rename include guard.
11306 * common/gdb_optional.h: Rename include guard.
11307 * common/gdb_locale.h: Rename include guard.
11308 * common/gdb_assert.h: Rename include guard.
11309 * common/filtered-iterator.h: Rename include guard.
11310 * common/filestuff.h: Rename include guard.
11311 * common/fileio.h: Rename include guard.
11312 * common/environ.h: Rename include guard.
11313 * common/common-utils.h: Rename include guard.
11314 * common/common-types.h: Rename include guard.
11315 * common/common-regcache.h: Rename include guard.
11316 * common/common-inferior.h: Rename include guard.
11317 * common/common-gdbthread.h: Rename include guard.
11318 * common/common-exceptions.h: Rename include guard.
11319 * common/common-defs.h: Rename include guard.
11320 * common/common-debug.h: Rename include guard.
11321 * common/cleanups.h: Rename include guard.
11322 * common/buffer.h: Rename include guard.
11323 * common/btrace-common.h: Rename include guard.
11324 * common/break-common.h: Rename include guard.
11325 * cli/cli-utils.h: Rename include guard.
11326 * cli/cli-style.h: Rename include guard.
11327 * cli/cli-setshow.h: Rename include guard.
11328 * cli/cli-script.h: Rename include guard.
11329 * cli/cli-interp.h: Rename include guard.
11330 * cli/cli-decode.h: Rename include guard.
11331 * cli/cli-cmds.h: Rename include guard.
11332 * charset-list.h: Add include guard.
11333 * buildsym-legacy.h: Rename include guard.
11334 * bfin-tdep.h: Add include guard.
11335 * ax.h: Rename include guard.
11336 * arm-linux-tdep.h: Add include guard.
11337 * arm-fbsd-tdep.h: Add include guard.
11338 * arch/xtensa.h: Rename include guard.
11339 * arch/tic6x.h: Add include guard.
11340 * arch/i386.h: Add include guard.
11341 * arch/arm.h: Rename include guard.
11342 * arch/arm-linux.h: Rename include guard.
11343 * arch/arm-get-next-pcs.h: Rename include guard.
11344 * arch/amd64.h: Add include guard.
11345 * arch/aarch64-insn.h: Rename include guard.
11346 * arch-utils.h: Rename include guard.
11347 * annotate.h: Add include guard.
11348 * amd64-darwin-tdep.h: Rename include guard.
11349 * aarch64-linux-tdep.h: Add include guard.
11350 * aarch64-fbsd-tdep.h: Add include guard.
11351 * aarch32-linux-nat.h: Add include guard.
11353 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11355 * macrotab.c (macro_define_internal): New function that
11356 factorizes macro_define_object_internal and macro_define_function
11358 (macro_define_object_internal): Use macro_define_internal.
11359 (macro_define_function): Likewise.
11361 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11363 * macrocmd.c (extract_identifier): Return
11364 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11367 2019-02-06 John Baldwin <jhb@FreeBSD.org>
11369 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11371 2019-02-05 Tom Tromey <tom@tromey.com>
11373 * target.c (target_stack::unpush): Move assertion earlier.
11375 2019-01-30 Tom Tromey <tom@tromey.com>
11378 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
11379 (gdbpy_parse_and_eval): Likewise.
11380 * python/python-internal.h (gdbpy_allow_threads): New class.
11382 2019-01-28 John Baldwin <jhb@FreeBSD.org>
11384 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
11385 (aarch64_fbsd_fpregmap): Move earlier.
11386 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
11387 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11388 instead of individual calls to trad_frame_set_reg_addr.
11389 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11391 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11392 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11393 instead of individual calls to trad_frame_set_reg_addr.
11395 2019-01-28 Alan Hayward <alan.hayward@arm.com>
11397 * CONTRIBUTE: Replace contribution list with wiki link.
11399 2019-01-25 Tom Tromey <tom@tromey.com>
11401 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11403 2019-01-25 Tom Tromey <tom@tromey.com>
11405 * xtensa-linux-nat.c: Fix common/ includes.
11406 * xml-support.h: Fix common/ includes.
11407 * xml-support.c: Fix common/ includes.
11408 * x86-linux-nat.c: Fix common/ includes.
11409 * windows-nat.c: Fix common/ includes.
11410 * varobj.h: Fix common/ includes.
11411 * varobj.c: Fix common/ includes.
11412 * value.c: Fix common/ includes.
11413 * valops.c: Fix common/ includes.
11414 * utils.c: Fix common/ includes.
11415 * unittests/xml-utils-selftests.c: Fix common/ includes.
11416 * unittests/utils-selftests.c: Fix common/ includes.
11417 * unittests/unpack-selftests.c: Fix common/ includes.
11418 * unittests/tracepoint-selftests.c: Fix common/ includes.
11419 * unittests/style-selftests.c: Fix common/ includes.
11420 * unittests/string_view-selftests.c: Fix common/ includes.
11421 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11422 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11423 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11424 * unittests/rsp-low-selftests.c: Fix common/ includes.
11425 * unittests/parse-connection-spec-selftests.c: Fix common/
11427 * unittests/optional-selftests.c: Fix common/ includes.
11428 * unittests/offset-type-selftests.c: Fix common/ includes.
11429 * unittests/observable-selftests.c: Fix common/ includes.
11430 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11431 * unittests/memrange-selftests.c: Fix common/ includes.
11432 * unittests/memory-map-selftests.c: Fix common/ includes.
11433 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11434 * unittests/function-view-selftests.c: Fix common/ includes.
11435 * unittests/environ-selftests.c: Fix common/ includes.
11436 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11437 * unittests/common-utils-selftests.c: Fix common/ includes.
11438 * unittests/cli-utils-selftests.c: Fix common/ includes.
11439 * unittests/array-view-selftests.c: Fix common/ includes.
11440 * ui-file.c: Fix common/ includes.
11441 * tui/tui-io.c: Fix common/ includes.
11442 * tracepoint.h: Fix common/ includes.
11443 * tracepoint.c: Fix common/ includes.
11444 * tracefile-tfile.c: Fix common/ includes.
11445 * top.h: Fix common/ includes.
11446 * top.c: Fix common/ includes.
11447 * thread.c: Fix common/ includes.
11448 * target/waitstatus.h: Fix common/ includes.
11449 * target/waitstatus.c: Fix common/ includes.
11450 * target.h: Fix common/ includes.
11451 * target.c: Fix common/ includes.
11452 * target-memory.c: Fix common/ includes.
11453 * target-descriptions.c: Fix common/ includes.
11454 * symtab.h: Fix common/ includes.
11455 * symfile.c: Fix common/ includes.
11456 * stap-probe.c: Fix common/ includes.
11457 * spu-linux-nat.c: Fix common/ includes.
11458 * sparc-nat.c: Fix common/ includes.
11459 * source.c: Fix common/ includes.
11460 * solib.c: Fix common/ includes.
11461 * solib-target.c: Fix common/ includes.
11462 * ser-unix.c: Fix common/ includes.
11463 * ser-tcp.c: Fix common/ includes.
11464 * ser-pipe.c: Fix common/ includes.
11465 * ser-base.c: Fix common/ includes.
11466 * selftest-arch.c: Fix common/ includes.
11467 * s12z-tdep.c: Fix common/ includes.
11468 * rust-exp.y: Fix common/ includes.
11469 * rs6000-aix-tdep.c: Fix common/ includes.
11470 * riscv-tdep.c: Fix common/ includes.
11471 * remote.c: Fix common/ includes.
11472 * remote-notif.h: Fix common/ includes.
11473 * remote-fileio.h: Fix common/ includes.
11474 * remote-fileio.c: Fix common/ includes.
11475 * regcache.h: Fix common/ includes.
11476 * regcache.c: Fix common/ includes.
11477 * record-btrace.c: Fix common/ includes.
11478 * python/python.c: Fix common/ includes.
11479 * python/py-type.c: Fix common/ includes.
11480 * python/py-inferior.c: Fix common/ includes.
11481 * progspace.h: Fix common/ includes.
11482 * producer.c: Fix common/ includes.
11483 * procfs.c: Fix common/ includes.
11484 * proc-api.c: Fix common/ includes.
11485 * printcmd.c: Fix common/ includes.
11486 * ppc-linux-nat.c: Fix common/ includes.
11487 * parser-defs.h: Fix common/ includes.
11488 * osdata.c: Fix common/ includes.
11489 * obsd-nat.c: Fix common/ includes.
11490 * nat/x86-linux.c: Fix common/ includes.
11491 * nat/x86-linux-dregs.c: Fix common/ includes.
11492 * nat/x86-dregs.h: Fix common/ includes.
11493 * nat/x86-dregs.c: Fix common/ includes.
11494 * nat/ppc-linux.c: Fix common/ includes.
11495 * nat/mips-linux-watch.h: Fix common/ includes.
11496 * nat/mips-linux-watch.c: Fix common/ includes.
11497 * nat/linux-waitpid.c: Fix common/ includes.
11498 * nat/linux-ptrace.h: Fix common/ includes.
11499 * nat/linux-ptrace.c: Fix common/ includes.
11500 * nat/linux-procfs.c: Fix common/ includes.
11501 * nat/linux-personality.c: Fix common/ includes.
11502 * nat/linux-osdata.c: Fix common/ includes.
11503 * nat/linux-namespaces.c: Fix common/ includes.
11504 * nat/linux-btrace.h: Fix common/ includes.
11505 * nat/linux-btrace.c: Fix common/ includes.
11506 * nat/fork-inferior.c: Fix common/ includes.
11507 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11508 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11509 * nat/aarch64-linux.c: Fix common/ includes.
11510 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11511 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11512 * namespace.h: Fix common/ includes.
11513 * mips-linux-tdep.c: Fix common/ includes.
11514 * minsyms.c: Fix common/ includes.
11515 * mi/mi-parse.h: Fix common/ includes.
11516 * mi/mi-main.c: Fix common/ includes.
11517 * mi/mi-cmd-env.c: Fix common/ includes.
11518 * memrange.h: Fix common/ includes.
11519 * memattr.c: Fix common/ includes.
11520 * maint.h: Fix common/ includes.
11521 * maint.c: Fix common/ includes.
11522 * main.c: Fix common/ includes.
11523 * machoread.c: Fix common/ includes.
11524 * location.c: Fix common/ includes.
11525 * linux-thread-db.c: Fix common/ includes.
11526 * linux-nat.c: Fix common/ includes.
11527 * linux-fork.c: Fix common/ includes.
11528 * inline-frame.c: Fix common/ includes.
11529 * infrun.c: Fix common/ includes.
11530 * inflow.c: Fix common/ includes.
11531 * inferior.h: Fix common/ includes.
11532 * inferior.c: Fix common/ includes.
11533 * infcmd.c: Fix common/ includes.
11534 * inf-ptrace.c: Fix common/ includes.
11535 * inf-child.c: Fix common/ includes.
11536 * ia64-linux-nat.c: Fix common/ includes.
11537 * i387-tdep.c: Fix common/ includes.
11538 * i386-tdep.c: Fix common/ includes.
11539 * i386-linux-tdep.c: Fix common/ includes.
11540 * i386-linux-nat.c: Fix common/ includes.
11541 * i386-go32-tdep.c: Fix common/ includes.
11542 * i386-fbsd-tdep.c: Fix common/ includes.
11543 * i386-fbsd-nat.c: Fix common/ includes.
11544 * guile/scm-type.c: Fix common/ includes.
11545 * guile/guile.c: Fix common/ includes.
11546 * go32-nat.c: Fix common/ includes.
11547 * gnu-nat.c: Fix common/ includes.
11548 * gdbthread.h: Fix common/ includes.
11549 * gdbarch-selftests.c: Fix common/ includes.
11550 * gdb_usleep.c: Fix common/ includes.
11551 * gdb_select.h: Fix common/ includes.
11552 * gdb_bfd.c: Fix common/ includes.
11553 * gcore.c: Fix common/ includes.
11554 * fork-child.c: Fix common/ includes.
11555 * findvar.c: Fix common/ includes.
11556 * fbsd-nat.c: Fix common/ includes.
11557 * event-top.c: Fix common/ includes.
11558 * event-loop.c: Fix common/ includes.
11559 * dwarf2read.c: Fix common/ includes.
11560 * dwarf2loc.c: Fix common/ includes.
11561 * dwarf2-frame.c: Fix common/ includes.
11562 * dwarf-index-cache.c: Fix common/ includes.
11563 * dtrace-probe.c: Fix common/ includes.
11564 * disasm-selftests.c: Fix common/ includes.
11565 * defs.h: Fix common/ includes.
11566 * csky-tdep.c: Fix common/ includes.
11567 * cp-valprint.c: Fix common/ includes.
11568 * cp-support.h: Fix common/ includes.
11569 * cp-support.c: Fix common/ includes.
11570 * corelow.c: Fix common/ includes.
11571 * completer.h: Fix common/ includes.
11572 * completer.c: Fix common/ includes.
11573 * compile/compile.c: Fix common/ includes.
11574 * compile/compile-loc2c.c: Fix common/ includes.
11575 * compile/compile-cplus-types.c: Fix common/ includes.
11576 * compile/compile-cplus-symbols.c: Fix common/ includes.
11577 * command.h: Fix common/ includes.
11578 * cli/cli-dump.c: Fix common/ includes.
11579 * cli/cli-cmds.c: Fix common/ includes.
11580 * charset.c: Fix common/ includes.
11581 * build-id.c: Fix common/ includes.
11582 * btrace.h: Fix common/ includes.
11583 * btrace.c: Fix common/ includes.
11584 * breakpoint.h: Fix common/ includes.
11585 * breakpoint.c: Fix common/ includes.
11587 (enum agent_op): Fix common/ includes.
11588 * ax-general.c (struct aop_map): Fix common/ includes.
11589 * ax-gdb.c: Fix common/ includes.
11590 * auxv.c: Fix common/ includes.
11591 * auto-load.c: Fix common/ includes.
11592 * arm-tdep.c: Fix common/ includes.
11593 * arch/riscv.c: Fix common/ includes.
11594 * arch/ppc-linux-common.c: Fix common/ includes.
11595 * arch/i386.c: Fix common/ includes.
11596 * arch/arm.c: Fix common/ includes.
11597 * arch/arm-linux.c: Fix common/ includes.
11598 * arch/arm-get-next-pcs.c: Fix common/ includes.
11599 * arch/amd64.c: Fix common/ includes.
11600 * arch/aarch64.c: Fix common/ includes.
11601 * arch/aarch64-insn.c: Fix common/ includes.
11602 * arch-utils.c: Fix common/ includes.
11603 * amd64-windows-tdep.c: Fix common/ includes.
11604 * amd64-tdep.c: Fix common/ includes.
11605 * amd64-sol2-tdep.c: Fix common/ includes.
11606 * amd64-obsd-tdep.c: Fix common/ includes.
11607 * amd64-nbsd-tdep.c: Fix common/ includes.
11608 * amd64-linux-tdep.c: Fix common/ includes.
11609 * amd64-linux-nat.c: Fix common/ includes.
11610 * amd64-fbsd-tdep.c: Fix common/ includes.
11611 * amd64-fbsd-nat.c: Fix common/ includes.
11612 * amd64-dicos-tdep.c: Fix common/ includes.
11613 * amd64-darwin-tdep.c: Fix common/ includes.
11614 * agent.c: Fix common/ includes.
11615 * ada-lang.h: Fix common/ includes.
11616 * ada-lang.c: Fix common/ includes.
11617 * aarch64-tdep.c: Fix common/ includes.
11619 2019-01-25 Tom Tromey <tom@tromey.com>
11621 * common/create-version.sh: Use common/version.h.
11623 2019-01-24 Pedro Alves <palves@redhat.com>
11625 * infrun.c (signal_stop, signal_print, signal_program)
11626 (signal_catch, signal_pass): Now arrays instead of pointers.
11627 (update_signals_program_target, do_target_resume)
11628 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
11629 * linux-nat.c (linux_nat_target::pass_signals)
11630 (linux_nat_target::create_inferior, linux_nat_target::attach):
11632 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
11633 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
11634 * procfs.c (procfs_target::pass_signals): Adjust.
11635 * record-full.c (record_full_target::resume): Adjust.
11636 * remote.c (remote_target::pass_signals)
11637 (remote_target::program_signals): Adjust.
11638 * target-debug.h (target_debug_print_signals): Now takes a
11639 gdb::array_view as parameter. Adjust.
11640 * target.h (target_ops) <pass_signals, program_signals>: Replace
11641 pointer and length parameters with gdb::array_view.
11642 (target_pass_signals, target_program_signals): Likewise.
11643 * target-delegates.c: Regenerate.
11645 2019-01-24 Pedro Alves <palves@redhat.com>
11647 * common/forward-scope-exit.h
11648 (forward_scope_exit::forward_scope_exit): Pass arguments to
11649 m_bind_function directly, instead of creating a std::bind and
11652 2019-01-24 Alan Hayward <alan.hayward@arm.com>
11654 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11655 for static members.
11656 (pass_in_v_vfp_candidate): Likewise.
11658 2019-01-23 Tom Tromey <tom@tromey.com>
11659 Pedro Alves <palves@redhat.com>
11661 * regcache.c (class regcache_invalidator): Remove.
11662 (regcache::raw_write): Use make_scope_exit.
11664 2019-01-23 Tom Tromey <tom@tromey.com>
11666 * ui-out.h (class ui_out_emit_type): Update comment.
11668 2019-01-23 Tom Tromey <tom@tromey.com>
11670 * infrun.c (fetch_inferior_event): Update comment.
11672 2019-01-23 Tom Tromey <tom@tromey.com>
11673 Pedro Alves <palves@redhat.com>
11675 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
11677 (fetch_inferior_event): Use SCOPE_EXIT.
11680 2019-01-23 Tom Tromey <tom@tromey.com>
11681 Pedro Alves <palves@redhat.com>
11683 * infrun.c (disable_thread_events): Delete.
11684 (stop_all_threads): Use SCOPE_EXIT.
11686 2019-01-23 Tom Tromey <tom@tromey.com>
11687 Pedro Alves <palves@redhat.com>
11689 * symfile.c: Include forward-scope-exit.h.
11690 (clear_symtab_users_cleanup): Replace forward declaration with
11691 a FORWARD_SCOPE_EXIT.
11692 (syms_from_objfile_1): Use the forward_scope_exit and
11693 gdb::optional instead of cleanup_function.
11694 (reread_symbols): Use the forward_scope_exit instead of
11696 (clear_symtab_users_cleanup): Remove function.
11698 2019-01-23 Tom Tromey <tom@tromey.com>
11699 Pedro Alves <palves@redhat.com>
11701 * linux-nat.c: Include scope-exit.h.
11702 (cleanup_target_stop): Remove.
11703 (linux_nat_target::static_tracepoint_markers_by_strid): Use
11706 2019-01-23 Tom Tromey <tom@tromey.com>
11707 Pedro Alves <palves@redhat.com>
11709 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
11710 (call_function_by_hand_dummy): Use SCOPE_EXIT.
11712 2019-01-23 Tom Tromey <tom@tromey.com>
11713 Andrew Burgess <andrew.burgess@embecosm.com>
11714 Pedro Alves <palves@redhat.com>
11716 * infrun.c (fetch_inferior_event): Use scope_exit.
11717 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
11718 * top.c (execute_command): Use scope_exit.
11719 * breakpoint.c (bpstat_do_actions): Use scope_exit.
11720 * utils.c (do_bpstat_clear_actions_cleanup)
11721 (make_bpstat_clear_actions_cleanup): Remove.
11723 2019-01-23 Tom Tromey <tom@tromey.com>
11724 Pedro Alves <palves@redhat.com>
11726 * infrun.c: Include "common/scope-exit.h"
11727 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
11728 (wait_for_inferior): Use SCOPE_EXIT.
11729 (fetch_inferior_event): Use scope_exit.
11731 2019-01-23 Tom Tromey <tom@tromey.com>
11732 Pedro Alves <palves@redhat.com>
11734 * breakpoint.c (create_breakpoint): Remove cleanup.
11736 2019-01-23 Tom Tromey <tom@tromey.com>
11737 Andrew Burgess <andrew.burgess@embecosm.com>
11738 Pedro Alves <palves@redhat.com>
11740 2019-01-23 Pedro Alves <palves@redhat.com>
11742 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
11744 2019-01-23 Pedro Alves <palves@redhat.com>
11745 Andrew Burgess <andrew.burgess@embecosm.com>
11747 * gdbthread.h: Include "common/forward-scope-exit.h".
11748 (scoped_finish_thread_state): Redefine custom class in terms of
11749 forward_scope_exit.
11751 2019-01-23 Pedro Alves <palves@redhat.com>
11752 Andrew Burgess <andrew.burgess@embecosm.com>
11754 * common/forward-scope-exit.h: New file.
11756 2019-01-23 Pedro Alves <palves@redhat.com>
11757 Andrew Burgess <andrew.burgess@embecosm.com>
11758 Tom Tromey <tom@tromey.com>
11760 * common/scope-exit.h: New file.
11762 2019-01-23 Pedro Alves <palves@redhat.com>
11764 * common/preprocessor.h (ESC): Rename to ...
11765 (ESC_PARENS): ... this.
11766 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
11767 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
11769 2019-01-23 Tom Tromey <tom@tromey.com>
11771 * language.h (class scoped_switch_to_sym_language_if_auto):
11772 Initialize m_lang in both cases.
11774 2019-01-23 Alan Hayward <alan.hayward@arm.com>
11776 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
11779 2019-01-22 Tom Tromey <tom@tromey.com>
11781 * corelow.c: Do not include sys/file.h.
11783 2019-01-22 Tom Tromey <tom@tromey.com>
11785 * tui/tui-wingeneral.h: Include gdb_curses.h.
11787 2019-01-22 Tom Tromey <tom@tromey.com>
11789 * source-cache.h (class source_cache) <get_source_lines,
11790 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
11792 2019-01-22 Tom Tromey <tom@tromey.com>
11794 * remote-fileio.h (struct remote_target): Declare.
11796 2019-01-22 Tom Tromey <tom@tromey.com>
11798 * python/py-arch.c: Do not include py-ref.h.
11799 * python/py-bpevent.c: Do not include py-ref.h.
11800 * python/py-cmd.c: Do not include py-ref.h.
11801 * python/py-continueevent.c: Do not include py-ref.h.
11802 * python/py-event.h: Do not include py-ref.h.
11803 * python/py-evtregistry.c: Do not include py-ref.h.
11804 * python/py-finishbreakpoint.c: Do not include py-ref.h.
11805 * python/py-frame.c: Do not include py-ref.h.
11806 * python/py-framefilter.c: Do not include py-ref.h.
11807 * python/py-function.c: Do not include py-ref.h.
11808 * python/py-infevents.c: Do not include py-ref.h.
11809 * python/py-linetable.c: Do not include py-ref.h.
11810 * python/py-objfile.c: Do not include py-ref.h.
11811 * python/py-param.c: Do not include py-ref.h.
11812 * python/py-prettyprint.c: Do not include py-ref.h.
11813 * python/py-progspace.c: Do not include py-ref.h.
11814 * python/py-symbol.c: Do not include py-ref.h.
11815 * python/py-symtab.c: Do not include py-ref.h.
11816 * python/py-type.c: Do not include py-ref.h.
11817 * python/py-unwind.c: Do not include py-ref.h.
11818 * python/py-utils.c: Do not include py-ref.h.
11819 * python/py-value.c: Do not include py-ref.h.
11820 * python/py-varobj.c: Do not include py-ref.h.
11821 * python/py-xmethods.c: Do not include py-ref.h.
11822 * python/python.c: Do not include py-ref.h.
11823 * varobj.c: Do not include py-ref.h.
11825 2019-01-22 Tom Tromey <tom@tromey.com>
11827 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
11828 keyword for bcache.
11830 2019-01-22 Tom Tromey <tom@tromey.com>
11832 * compile/compile-cplus-types.c: Remove a comment by #include.
11834 2019-01-22 Tom Tromey <tom@tromey.com>
11836 * compile/gcc-c-plugin.h: Include compile-internal.h.
11838 2019-01-22 Tom Tromey <tom@tromey.com>
11840 * stabsread.c (EXTERN): Do not define.
11841 (symnum, next_symbol_text_func, processing_gcc_compilation)
11842 (within_function, global_sym_chain, global_stabs)
11843 (previous_stab_code, this_object_header_files)
11844 (n_this_object_header_files)
11845 (n_allocated_this_object_header_files): Define.
11846 * stabsread.h (EXTERN): Never define. Use "extern".
11848 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11850 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
11853 2019-01-21 Tom Tromey <tom@tromey.com>
11855 * ui-out.c: Fix includes.
11856 * tui/tui-source.c: Fix includes.
11857 * target.c: Fix includes.
11858 * remote.c: Fix includes.
11859 * regcache.c: Fix includes.
11860 * python/py-block.c: Fix includes.
11861 * printcmd.c: Fix includes.
11862 * or1k-tdep.c: Fix includes.
11863 * mi/mi-main.c: Fix includes.
11864 * m32r-tdep.c: Fix includes.
11865 * csky-tdep.c: Fix includes.
11866 * compile/compile-cplus-types.c: Fix includes.
11867 * cli/cli-interp.c: Fix includes.
11869 2019-01-21 Alan Hayward <alan.hayward@arm.com>
11871 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11874 2019-01-16 Tom Tromey <tom@tromey.com>
11876 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11878 (struct objfile) <msymbols_range>: Move from top level.
11879 <msymbols>: New method.
11880 (class objfile_msymbols): Remove.
11881 * symtab.c (default_collect_symbol_completion_matches_break_on):
11883 * symmisc.c (dump_msymbols): Update.
11884 * stabsread.c (scan_file_globals): Update.
11885 * objc-lang.c (info_selectors_command, info_classes_command)
11886 (find_methods): Update.
11887 * minsyms.c (find_solib_trampoline_target): Update.
11888 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11889 * coffread.c (coff_symfile_read): Update.
11890 * ada-lang.c (ada_lookup_simple_minsym)
11891 (ada_collect_symbol_completion_matches): Update.
11893 2019-01-16 Tom Tromey <tom@tromey.com>
11895 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11896 type. Remove no-argument constructor.
11897 <iterator::operator++>: Simplify.
11899 <end>: Use minimal_symbol_count.
11901 2019-01-16 Tom Tromey <tom@tromey.com>
11903 * objfiles.h (struct objfile) <psymtabs>: New method.
11904 (class objfile_psymtabs): Remove.
11905 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11907 <range>: New method.
11908 (require_partial_symbols): Change return type.
11909 * psymtab.c (require_partial_symbols)
11910 (psym_expand_symtabs_matching): Update.
11911 * mdebugread.c (parse_partial_symbols): Update.
11912 * dbxread.c (dbx_end_psymtab): Update.
11914 2019-01-15 Tom Tromey <tom@tromey.com>
11916 * symtab.c (lookup_objfile_from_block)
11917 (lookup_symbol_in_objfile_symtabs)
11918 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11919 (find_line_symtab, info_sources_command)
11920 (default_collect_symbol_completion_matches_break_on)
11921 (make_source_files_completion_list): Update.
11922 * symmisc.c (print_objfile_statistics, dump_objfile)
11923 (maintenance_print_symbols, maintenance_info_symtabs)
11924 (maintenance_check_symtabs, maintenance_info_line_tables):
11926 * source.c (select_source_symtab)
11927 (forget_cached_source_info_for_objfile): Update.
11928 * objfiles.h (class objfile_compunits): Remove.
11929 (struct objfile) <compunits_range>: New typedef.
11930 (compunits): New method.
11931 * objfiles.c (objfile_relocate1): Update.
11932 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11933 * maint.c (count_symtabs_and_blocks): Update.
11934 * linespec.c (iterate_over_all_matching_symtabs): Update.
11935 * cp-support.c (add_symbol_overload_list_qualified): Update.
11936 * coffread.c (coff_symtab_read): Update.
11937 * ada-lang.c (add_nonlocal_symbols)
11938 (ada_collect_symbol_completion_matches)
11939 (ada_add_global_exceptions): Update.
11941 2019-01-15 Tom Tromey <tom@tromey.com>
11943 * progspace.h (program_space) <objfiles_safe_range>: New
11945 <objfiles_safe>: New method.
11946 * objfiles.h (class all_objfiles_safe): Remove.
11947 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11948 * jit.c (jit_inferior_exit_hook): Update.
11950 2019-01-17 Tom Tromey <tom@tromey.com>
11952 * progspace.h (program_space) <objfiles_range>: New typedef.
11953 <objfiles>: New method.
11954 <objfiles_head>: Rename from objfiles.
11955 (object_files): Update.
11956 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11957 * guile/scm-pretty-print.c
11958 (ppscm_find_pretty_printer_from_objfiles): Update.
11959 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11960 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11962 * python/py-progspace.c (pspy_get_objfiles): Update.
11963 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11965 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11966 (objfpy_lookup_objfile_by_build_id): Update.
11967 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11968 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11970 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11971 (expand_symtab_containing_pc, lookup_objfile_from_block)
11972 (lookup_static_symbol, basic_lookup_transparent_type)
11973 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11974 (find_line_symtab, info_sources_command)
11975 (default_collect_symbol_completion_matches_break_on)
11976 (make_source_files_completion_list, find_main_name): Update.
11977 * symmisc.c (print_symbol_bcache_statistics)
11978 (print_objfile_statistics, maintenance_print_symbols)
11979 (maintenance_print_msymbols, maintenance_print_objfiles)
11980 (maintenance_info_symtabs, maintenance_check_symtabs)
11981 (maintenance_expand_symtabs, maintenance_info_line_tables):
11983 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11984 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11985 (map_overlay_command, unmap_overlay_command)
11986 (simple_overlay_update, expand_symtabs_matching)
11987 (map_symbol_filenames): Update.
11988 * symfile-debug.c (set_debug_symfile): Update.
11989 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11991 * source.c (select_source_symtab, forget_cached_source_info):
11993 * solib.c (solib_read_symbols): Update.
11994 * solib-spu.c (append_ocl_sos): Update.
11995 * psymtab.c (maintenance_print_psymbols)
11996 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11997 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11998 * printcmd.c (info_symbol_command): Update.
11999 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
12001 * objfiles.h (class all_objfiles): Remove.
12002 * objfiles.c (have_partial_symbols, have_full_symbols)
12003 (have_minimal_symbols, qsort_cmp, update_section_map)
12004 (shared_objfile_contains_address_p)
12005 (default_iterate_over_objfiles_in_search_order): Update.
12006 * objc-lang.c (info_selectors_command, info_classes_command)
12007 (find_methods): Update.
12008 * minsyms.c (find_solib_trampoline_target): Update.
12009 * maint.c (maintenance_info_sections)
12010 (maintenance_translate_address, count_symtabs_and_blocks):
12012 * main.c (captured_main_1): Update.
12013 * linux-thread-db.c (try_thread_db_load_from_pdir)
12014 (has_libpthread): Update.
12015 * linespec.c (iterate_over_all_matching_symtabs)
12016 (search_minsyms_for_name): Update.
12017 * jit.c (jit_find_objf_with_entry_addr): Update.
12018 * hppa-tdep.c (find_unwind_entry)
12019 (hppa_lookup_stub_minimal_symbol): Update.
12020 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
12022 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12023 (elf_gnu_ifunc_resolve_by_got): Update.
12024 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
12025 * dwarf-index-write.c (save_gdb_index_command): Update.
12026 * cp-support.c (add_symbol_overload_list_qualified): Update.
12027 * breakpoint.c (create_overlay_event_breakpoint)
12028 (create_longjmp_master_breakpoint)
12029 (create_std_terminate_master_breakpoint)
12030 (create_exception_master_breakpoint): Update.
12031 * blockframe.c (find_pc_partial_function): Update.
12032 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
12033 (ada_collect_symbol_completion_matches)
12034 (ada_add_global_exceptions): Update.
12036 2019-01-17 Tom Tromey <tom@tromey.com>
12038 * solib-target.c (lm_info_target_p): Remove typedef. Don't
12040 (solib_target_parse_libraries): Change return type.
12041 (library_list_start_segment, library_list_start_section)
12042 (library_list_end_library, library_list_start_library); Update.
12043 (solib_target_free_library_list): Remove.
12044 (solib_target_parse_libraries): Remove cleanup. Change return
12046 (solib_target_current_sos): Update.
12048 2019-01-17 Tom Tromey <tromey@bapiya>
12050 * valprint.c: Replace "the the" with "the".
12051 * symtab.c: Replace "the the" with "the".
12052 * solib.c: Replace "the the" with "the".
12053 * solib-dsbt.c: Replace "the the" with "the".
12054 * linespec.c: Replace "the the" with "the".
12055 * dwarf2loc.h: Replace "the the" with "the".
12056 * amd64-windows-tdep.c: Replace "the the" with "the".
12057 * aarch64-tdep.c: Replace "the the" with "the".
12059 2019-01-16 Keith Seitz <keiths@redhat.com>
12062 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12063 <builder>: Rename to ..
12064 <m_builder>: ... this and make private.
12065 (dwarf2_cu::get_builder): New method. Change all users of
12066 `builder' to use this method.
12067 (dwarf2_start_symtab): Move to ...
12068 (dwarf2_cu::start_symtab): ... here. Update all callers
12069 (setup_type_unit_groups): Move to ...
12070 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12072 (dwarf2_cu::reset_builder): New method.
12073 (process_full_compunit, process_full_type_unit): Use
12074 dwarf2_cu::reset_builder.
12075 (follow_die_offset): Record the ancestor CU if it is different
12076 from the followed DIE's CU.
12077 (follow_die_sig_1): Likewise.
12079 2019-01-15 Tom Tromey <tom@tromey.com>
12081 * remote.c (class remote_state) <buf>: Now a char_vector.
12082 <buf_size>: Remove.
12083 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12085 (remote_target::getpkt_or_notif_sane_1)
12086 (remote_target::getpkt_sane)
12087 (remote_target::getpkt_or_notif_sane): Likewise.
12088 (class remote_target) <putpkt>: New overload.
12089 (remote_target::read_frame): Change type of "buf_p". Remove
12090 sizeof_p parameter.
12091 (packet_ok): New overload.
12092 (packet_check_result): New overload.
12095 2019-01-14 Tom Tromey <tom@tromey.com>
12097 * remote-notif.c (handle_notification, remote_notif_ack)
12098 (remote_notif_parse): Make "buf" const.
12099 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12101 (remote_notif_parse, remote_notif_ack, handle_notification):
12103 * remote.c (remote_notif_stop_parse): Make "buf" const.
12104 (remote_target::remote_parse_stop_reply): Make "buf" const.
12105 (remote_notif_stop_ack): Make "buf" const.
12107 2019-01-14 Tom Tromey <tom@tromey.com>
12109 * remote.c (remote_console_output): Make parameter const.
12111 2019-01-14 Tom Tromey <tom@tromey.com>
12113 * target-debug.h (target_debug_print_signals): Constify.
12114 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12115 * procfs.c (procfs_target::pass_signals): Update.
12116 * linux-nat.c (linux_nat_target::pass_signals): Update.
12117 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12118 * target-delegates.c: Rebuild.
12119 * remote.c (remote_target::program_signals): Update.
12120 (remote_target::pass_signals): Update.
12121 * target.c (target_pass_signals): Constify argument.
12122 (target_program_signals): Likewise.
12123 * target.h (struct target_ops) <pass_signals, program_signals>:
12125 (target_pass_signals, target_program_signals): Constify argument.
12127 2019-01-14 Tom Tromey <tom@tromey.com>
12130 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12132 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12134 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12136 * rs6000-tdep.c: Include reggroups.h.
12137 (IS_V_ALIAS_PSEUDOREG): Define.
12138 (rs6000_register_name): Return names for the "vX" aliases.
12139 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12140 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
12141 aliases. Call default_register_reggroup_p for all other
12143 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12145 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12146 Handle "vX" aliases.
12147 (v_alias_pseudo_register_collect): New function.
12148 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12149 (rs6000_gdbarch_init): Initialize "vX" aliases as
12150 pseudo-registers. Restore registration of
12151 rs6000_pseudo_register_reggroup_p with
12152 set_tdesc_pseudo_register_reggroup_p.
12154 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
12156 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
12157 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
12158 set_gdbarch_num_pseudo_regs.
12160 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12162 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
12163 Remove arg prefixname, add do_set and do_show.
12164 Add member functions set_list and show_list.
12165 * cli/cli-style.c (class cli_style_option): Update accordingly.
12166 (style_set_list): Move to file scope.
12167 (style_show_list): Likewise.
12168 (set_style): Call help_list.
12169 (show_style): Call cmd_show_list.
12170 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12171 Update to use the new macro.
12173 2019-10-12 Joel Brobecker <brobecker@adacore.com>
12175 * ada-lang.c (_initialize_ada_language): Expand the help text
12176 for the "catch exception" command.
12178 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12180 * symtab.c (matching_obj_sections): Initialize obj,
12181 declare it closer to its usage.
12183 2019-01-10 Tom Tromey <tom@tromey.com>
12185 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12186 (basic_inf_threads_range): Remove.
12187 (inf_threads_range, inf_non_exited_threads_range)
12188 (safe_inf_threads_range): Use next_adapter.
12190 2019-01-10 Keith Seitz <keiths@redhat.com>
12194 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12195 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12197 2019-01-10 Keith Seitz <keiths@redhat.com>
12201 * dictionary.c (pending_to_vector): Remove.
12202 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12203 Remove _1 suffix, replacing functions of the same name. Update
12205 (dict_create_hashed, dict_create_hashed_expandable)
12206 (dict_create_linear, dict_create_linear_expandable, dict_free)
12207 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12208 Make functions static.
12210 2019-01-10 Keith Seitz <keiths@redhat.com>
12214 * dictionary.h (struct dictionary): Replace declaration with
12216 (dict_create_hashed, dict_create_hashed_expandable)
12217 (dict_create_linear, dict_create_linear_expandable)
12218 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12219 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12220 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12221 taking multidictionary argument.
12222 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12223 * block.h (struct block) <dict>: Change to multidictionary
12224 and rename `multidict'.
12225 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12226 symmisc.c: Update all dictionary references to multidictionary.
12228 2019-01-10 Keith Seitz <keiths@redhat.com>
12232 * dictionary.c: Include unordered_map.
12233 (pending_to_vector): New function.
12234 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12235 Rewrite the non-"_1" functions to take vector instead
12237 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12238 "new" _1 versions of the same name.
12239 (multidictionary): Define.
12240 (std::hash<enum language): New definition.
12241 (collate_pending_symbols_by_language, mdict_create_hashed)
12242 (mdict_create_hashed_expandable, mdict_create_linear)
12243 (mdict_create_linear_expandable, mdict_free)
12244 (find_language_dictionary, create_new_language_dictionary)
12245 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12246 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12247 (mdict_size, mdict_empty): New functions.
12248 * dictionary.h (mdict_iterator): Define.
12250 2019-01-10 Pedro Alves <palves@redhat.com>
12252 * breakpoint.c (read_uploaded_action)
12253 (create_tracepoint_from_upload): Adjust to use
12254 gdb::unique_xmalloc_ptr.
12255 * ctf.c (ctf_write_uploaded_tp):
12256 (SET_ARRAY_FIELD): Use emplace_back.
12257 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
12258 * tracefile-tfile.c (tfile_write_uploaded_tp):
12259 * tracepoint.c (parse_tracepoint_definition): Adjust to use
12260 gdb::unique_xmalloc_ptr.
12261 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
12262 at_string, cond_string, cmd_strings>: Replace char pointers
12263 with gdb::unique_xmalloc_ptr.
12265 2019-01-10 Pedro Alves <palves@redhat.com>
12267 * solib-target.c (library_list_start_library): Don't xstrdup name.
12269 2019-01-10 Pedro Alves <palves@redhat.com>
12271 * mdebugread.c (parse_partial_symbols): Use
12272 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
12274 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12276 * linux-fork.c (scoped_switch_fork_info)
12277 <~scoped_switch_fork_info>: Fix incorrect variable name.
12279 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12281 * linux-fork.c (scoped_switch_fork_info)
12282 <scoped_switch_fork_info>: Make explicit.
12283 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12285 2019-01-10 Tom Tromey <tom@tromey.com>
12287 * objfiles.h (objfile::reset_psymtabs): Update.
12288 * objfiles.c (objfile::objfile): Update.
12289 * psymtab.h (psymtab_storage::obstack): Update.
12290 (psymtab_storage::m_obstack): Use gdb::optional.
12291 (class psymtab_storage): Update comment. Remove objfile
12293 * psymtab.c (psymtab_storage::psymtab_storage): Update.
12295 2019-01-10 Tom Tromey <tom@tromey.com>
12297 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
12298 <free_psymtabs>: Now private.
12299 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
12300 (allocate_psymtab): Use new method.
12302 2019-01-10 Tom Tromey <tom@tromey.com>
12304 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
12305 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
12306 * mdebugread.c (parse_partial_symbols): Use
12307 allocate_dependencies.
12308 * dwarf2read.c (dwarf2_create_include_psymtab): Use
12309 allocate_dependencies.
12310 (process_psymtab_comp_unit_reader)
12311 (build_type_psymtab_dependencies): Likewise.
12312 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12314 2019-01-10 Tom Tromey <tom@tromey.com>
12316 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12317 PSYMBOL_SET_LANGUAGE.
12318 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
12320 2019-01-10 Tom Tromey <tom@tromey.com>
12322 * psymtab.h (psymtab_storage::obstack): New method.
12323 <m_obstack>: Rename from obstack; now private.
12324 * psymtab.c (psymtab_storage): Update.
12325 * dwarf2read.c (create_addrmap_from_index)
12326 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
12329 2019-01-10 Tom Tromey <tom@tromey.com>
12331 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
12332 * objfiles.h (objfile::reset_psymtabs): New method.
12334 2019-01-10 Tom Tromey <tom@tromey.com>
12336 * symmisc.c (print_symbol_bcache_statistics): Update.
12337 (print_objfile_statistics): Update.
12338 * symfile.c (reread_symbols): Update.
12339 * psymtab.h (class psymtab_storage): New.
12340 * psymtab.c (psymtab_storage): New constructor.
12341 (~psymtab_storage): New destructor.
12342 (require_partial_symbols): Update.
12343 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12344 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12345 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12346 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12347 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12348 (start_psymtab_common, end_psymtab_common)
12349 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12350 (allocate_psymtab): Update.
12351 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12353 (dump_psymtab_addrmap, maintenance_print_psymbols)
12354 (maintenance_check_psymtabs): Update.
12355 (class objfile_psymtabs): Move to objfiles.h.
12356 * psympriv.h (discard_psymtab): Now inline.
12357 (psymtab_discarder::psymtab_discarder): Update.
12358 (psymtab_discarder::~psymtab_discarder): Update.
12359 (ALL_OBJFILE_PSYMTABS): Rewrite.
12360 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12361 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12363 <partial_symtabs>: New field.
12364 (class objfile_psymtabs): Move from psymtab.h. Update.
12365 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12367 (objfile::~objfile): Don't destroy psymbol_cache.
12368 * mdebugread.c (parse_partial_symbols): Update.
12369 * dwarf2read.c (create_addrmap_from_index)
12370 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12371 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12372 (add_partial_subprogram, dwarf2_ranges_read): Update.
12373 * dwarf-index-write.c (write_address_map)
12374 (write_one_signatured_type, recursively_write_psymbols)
12375 (class debug_names, class debug_names, write_psymtabs_to_index):
12378 2019-01-10 Tom Tromey <tom@tromey.com>
12380 * symtab.h (SYMBOL_SET_NAMES): Update.
12381 (symbol_set_names): Update.
12382 (MSYMBOL_SET_NAMES): Update.
12383 * symtab.c (symbol_set_names): Change argument to be an
12384 objfile_per_bfd_storage.
12385 * psymtab.c (add_psymbol_to_bcache): Update.
12386 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
12388 2019-01-10 Tom Tromey <tom@tromey.com>
12390 * symtab.c (create_demangled_names_hash): Change argument to be an
12391 objfile_per_bfd_storage.
12392 (symbol_set_names): Update.
12394 2019-01-10 Tom Tromey <tom@tromey.com>
12396 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12398 * psymtab.c (init_psymbol_list): Do nothing if already called.
12399 * psympriv.h (init_psymbol_list): Add comment.
12400 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12402 * dbxread.c (dbx_symfile_read): Unconditionally call
12405 2019-01-10 Tom Tromey <tom@tromey.com>
12407 * xcoffread.c (scan_xcoff_symtab): Update.
12408 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12410 * mdebugread.c (parse_partial_symbols)
12411 (handle_psymbol_enumerators): Update.
12412 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12413 * dbxread.c (read_dbx_symtab): Update.
12414 * psympriv.h (psymbol_placement): New enum.
12415 (add_psymbol_to_list): Update.
12417 2019-01-10 Tom Tromey <tom@tromey.com>
12419 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12420 static_psymbols parameters.
12421 (scan_xcoff_symtab): Update.
12422 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12423 static_psymbols parameters.
12424 * psympriv.h (start_psymtab_common): Update.
12425 * mdebugread.c (parse_partial_symbols): Update.
12426 * dwarf2read.c (create_partial_symtab): Update.
12427 * dbxread.c (read_dbx_symtab): Update.
12428 (start_psymtab): Remove global_psymbols and static_psymbols
12431 2019-01-10 Tom Tromey <tom@tromey.com>
12433 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12434 * psymtab.c (allocate_psymtab): Add comment.
12435 * psympriv.h (allocate_psymtab): Add comment.
12436 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12438 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12440 2019-01-10 Tom Tromey <tom@tromey.com>
12442 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12444 * mipsread.c: Include mdebugread.h.
12445 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12447 * elfread.c: Include mdebugread.h.
12449 2019-01-09 Tom Tromey <tom@tromey.com>
12451 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12452 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12453 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12454 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12455 (psym_lookup_symbol, psym_find_last_source_symtab)
12456 (psym_forget_cached_source_info, psym_print_stats)
12457 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12458 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12459 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12460 (psym_find_compunit_symtab_by_address)
12461 (maintenance_print_psymbols, maintenance_info_psymtabs)
12462 (maintenance_check_psymtabs): Use ranged for.
12463 * psymtab.h (class objfile_psymtabs): New.
12464 (require_partial_symbols): Return objfile_psymtabs.
12465 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12467 2019-01-09 Tom Tromey <tom@tromey.com>
12469 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12470 (find_pc_mapped_section, list_overlays_command)
12471 (map_overlay_command, unmap_overlay_command)
12472 (simple_overlay_update): Use all_objfiles.
12473 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12474 * printcmd.c (info_symbol_command): Use all_objfiles.
12475 * objfiles.h (ALL_OBJSECTIONS): Remove.
12476 * maint.c (maintenance_translate_address): Use all_objfiles.
12477 * gcore.c (gcore_create_callback): Use all_objfiles.
12478 (objfile_find_memory_regions): Likewise.
12480 2019-01-09 Tom Tromey <tom@tromey.com>
12482 * symtab.c (find_line_symtab, info_sources_command)
12483 (make_source_files_completion_list): Use objfile_compunits.
12484 * source.c (select_source_symtab): Use objfile_compunits.
12485 * objfiles.h (struct objfile): Update comment.
12486 (ALL_OBJFILES): Remove.
12487 (ALL_FILETABS): Remove.
12488 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12491 2019-01-09 Tom Tromey <tom@tromey.com>
12493 * symmisc.c (print_objfile_statistics, dump_objfile)
12494 (maintenance_print_symbols): Use compunit_filetabs.
12495 * source.c (forget_cached_source_info_for_objfile): Use
12497 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12498 (ALL_FILETABS): Use compunit_filetabs.
12499 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12500 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12502 2019-01-09 Tom Tromey <tom@tromey.com>
12504 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12505 (compunit_filetabs): New.
12506 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12508 (info_sources_command, make_source_files_completion_list): Remove
12510 * symmisc.c (print_objfile_statistics, dump_objfile)
12511 (maintenance_print_symbols): Remove declaration.
12512 (maintenance_info_symtabs): Use compunit_filetabs.
12513 (maintenance_info_line_tables): Likewise.
12514 * source.c (select_source_symtab): Change local variable name.
12515 (forget_cached_source_info_for_objfile): Remove declaration.
12516 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12517 * objfiles.c (objfile_relocate1): Remove declaration.
12518 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12520 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12521 * coffread.c (coff_symtab_read): Remove declaration.
12522 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12525 2019-01-09 Tom Tromey <tom@tromey.com>
12527 * symtab.c (lookup_objfile_from_block)
12528 (find_pc_sect_compunit_symtab, search_symbols)
12529 (default_collect_symbol_completion_matches_break_on): Use
12531 * objfiles.h (ALL_COMPUNITS): Remove.
12532 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
12533 * cp-support.c (add_symbol_overload_list_qualified): Use
12535 * ada-lang.c (ada_collect_symbol_completion_matches)
12536 (ada_add_global_exceptions): Use objfile_compunits.
12538 2019-01-09 Tom Tromey <tom@tromey.com>
12540 * source.c (select_source_symtab)
12541 (forget_cached_source_info_for_objfile): Remove declaration.
12542 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12544 * maint.c (count_symtabs_and_blocks): Remove declaration.
12545 * cp-support.c (add_symbol_overload_list_qualified): Remove
12547 * coffread.c (coff_symtab_read): Remove declaration.
12548 * symtab.c (lookup_symbol_in_objfile_symtabs)
12549 (basic_lookup_transparent_type_1): Use objfile_compunits.
12550 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
12551 (info_sources_command, search_symbols)
12552 (default_collect_symbol_completion_matches_break_on)
12553 (make_source_files_completion_list): Remove declaration.
12554 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
12555 (ada_collect_symbol_completion_matches)
12556 (ada_add_global_exceptions): Remove declaration.
12557 * linespec.c (iterate_over_all_matching_symtabs): Use
12559 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
12560 (class objfile_compunits): New.
12561 (ALL_COMPUNITS): Use objfile_compunits.
12562 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
12563 (maintenance_check_symtabs, maintenance_info_line_tables): Use
12565 * objfiles.c (objfile_relocate1): Use objfile_compunits.
12567 2019-01-09 Tom Tromey <tom@tromey.com>
12569 * symtab.c (search_symbols)
12570 (default_collect_symbol_completion_matches_break_on): Use
12572 * ada-lang.c (ada_lookup_simple_minsym)
12573 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
12574 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
12575 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
12577 * coffread.c (coff_symfile_read): Use objfile_msymbols.
12578 * symmisc.c (dump_msymbols): Use objfile_msymbols.
12579 * objc-lang.c (find_methods): Use objfile_msymbols.
12580 (info_selectors_command, info_classes_command): Likewise.
12581 * stabsread.c (scan_file_globals): Use objfile_msymbols.
12582 * objfiles.h (class objfile_msymbols): New.
12583 (ALL_OBJFILE_MSYMBOLS): Remove.
12584 (ALL_MSYMBOLS): Remove.
12586 2019-01-09 Tom Tromey <tom@tromey.com>
12588 * common/next-iterator.h (next_adapter): Add Iterator template
12590 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
12591 (class all_objfiles_safe): New.
12592 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
12593 * objfiles.c (put_objfile_before): Update comment.
12594 (add_separate_debug_objfile): Likewise.
12595 (free_all_objfiles): Use all_objfiles_safe.
12596 (objfile_purge_solibs): Likewise.
12598 2019-01-09 Tom Tromey <tom@tromey.com>
12600 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12601 (expand_symtab_containing_pc, lookup_static_symbol)
12602 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
12603 (find_symbol_at_address, find_line_symtab, find_main_name): Use
12605 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
12606 * breakpoint.c (create_overlay_event_breakpoint)
12607 (create_longjmp_master_breakpoint)
12608 (create_std_terminate_master_breakpoint)
12609 (create_exception_master_breakpoint): Use all_objfiles.
12610 * linux-thread-db.c (try_thread_db_load_from_pdir)
12611 (has_libpthread): Use all_objfiles.
12612 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
12613 * linespec.c (iterate_over_all_matching_symtabs)
12614 (search_minsyms_for_name): Use all_objfiles.
12615 * maint.c (maintenance_info_sections): Use all_objfiles.
12616 * main.c (captured_main_1): Use all_objfiles.
12617 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
12618 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
12619 * guile/scm-pretty-print.c
12620 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
12621 * solib-spu.c (append_ocl_sos): Use all_objfiles.
12622 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
12623 (maintenance_print_msymbols): Use all_objfiles.
12624 * source.c (select_source_symtab): Use all_objfiles.
12625 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
12626 * symfile.c (remove_symbol_file_command)
12627 (expand_symtabs_matching, map_symbol_filenames): Use
12629 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
12631 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
12632 * objc-lang.c (find_methods): Use all_objfiles.
12633 * objfiles.c (have_partial_symbols, have_full_symbols)
12634 (have_minimal_symbols, qsort_cmp)
12635 (default_iterate_over_objfiles_in_search_order): Use
12637 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
12638 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
12639 (maintenance_check_psymtabs): Use all_objfiles.
12640 (ALL_PSYMTABS): Remove.
12641 * compile/compile-object-run.c (do_module_cleanup): Use
12643 * blockframe.c (find_pc_partial_function): Use all_objfiles.
12644 * cp-support.c (add_symbol_overload_list_qualified): Use
12646 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12648 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
12649 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
12651 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12652 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
12653 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12655 * solib.c (solib_read_symbols): Use all_objfiles
12657 2019-01-09 Tom Tromey <tom@tromey.com>
12659 * probe.c (parse_probes_in_pspace): Use all_objfiles.
12660 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
12662 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
12663 * symmisc.c (print_symbol_bcache_statistics)
12664 (print_objfile_statistics, maintenance_print_objfiles)
12665 (maintenance_info_symtabs, maintenance_check_symtabs)
12666 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
12668 * source.c (forget_cached_source_info): Use all_objfiles.
12669 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
12670 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12671 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
12672 * objfiles.c (update_section_map): Use all_objfiles.
12673 (shared_objfile_contains_address_p): Likewise.
12674 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
12675 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
12677 2019-01-09 Tom Tromey <tom@tromey.com>
12679 * common/next-iterator.h: New file.
12680 * objfiles.h (class all_objfiles): New.
12681 (struct objfile_iterator): New.
12683 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12685 * NEWS: Move the description of the changed "frame", "select-frame",
12686 and "info frame" commands to the Changed commands section.
12688 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
12690 * gdbtypes.c (check_stub_method_group): Remove handling of old
12692 * linespec.c (find_methods): Likewise.
12693 * stabsread.c (read_member_functions): Likewise.
12694 * valops.c (search_struct_method): Likewise.
12695 (value_struct_elt_for_reference): Likewise.
12696 * NEWS: Mention this change.
12698 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12700 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
12701 print_source_lines.
12702 * source.c (print_source_lines_base): Update line number check.
12703 (print_source_lines): New function.
12704 (source_lines_range::source_lines_range): New function.
12705 * source.h (class source_lines_range): New class.
12706 (print_source_lines): New declaration.
12708 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12710 * linespec.c (linespec_state_destructor): Free self->canonical_names.
12712 2019-01-08 Tom Tromey <tom@tromey.com>
12713 Simon Marchi <simon.marchi@ericsson.com>
12716 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
12717 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
12718 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12719 * f-exp.y (DOLLAR_VARIABLE): Likewise.
12720 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
12721 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12723 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12725 * source.c (select_source_symtab): Move header comment to
12726 declaration in source.h.
12727 (forget_cached_source_info_for_objfile): Likewise.
12728 (forget_cached_source_info): Likewise.
12729 (identify_source_line): Likewise.
12730 * source.h (identify_source_line): Move declaration from symtab.h
12731 and add comment from source.c
12732 (print_source_lines): Likewise.
12733 (forget_cached_source_info_for_objfile): Likewise.
12734 (forget_cached_source_info): Likewise.
12735 (select_source_symtab): Likewise.
12736 (enum print_source_lines_flag): Move definition from symtab.h.
12737 * symtab.h (identify_source_line): Move declaration to source.h.
12738 (print_source_lines): Likewise.
12739 (forget_cached_source_info_for_objfile): Likewise.
12740 (forget_cached_source_info): Likewise.
12741 (select_source_symtab): Likewise.
12742 (enum print_source_lines_flag): Move definition to source.h.
12743 * tui/tui-hooks.c: Add 'source.h' include.
12745 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12747 * source.c (print_source_lines_base): Handle requests to print
12748 reverse line number sequences, and guard against empty lines
12751 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12753 * source.c (print_source_lines_base): Fix skip of '\r' if next
12756 2019-01-06 Tom Tromey <tom@tromey.com>
12758 * c-exp.y (struct c_parse_state) <macro_original_text,
12759 expansion_obstack>: New member.
12760 (macro_original_text, expansion_obstack): Remove globals.
12761 (scan_macro_expansion, scanning_macro_expansion)
12762 (finished_macro_expansion): Update.
12763 (scan_macro_cleanup): Remove.
12764 (yylex, c_parse): Update.
12766 2019-01-06 Tom Tromey <tom@tromey.com>
12768 * c-exp.y (struct c_parse_state) <strings>: New member.
12769 (operator_stoken): Update.
12771 2019-01-06 Tom Tromey <tom@tromey.com>
12773 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
12774 (union type_stack_elt) <typelist_val>: Now a pointer to
12776 (type_stack_cleanup): Don't declare.
12777 (push_typelist): Update.
12778 * parse.c (pop_typelist): Return a std::vector.
12779 (push_typelist): Take a std::vector.
12780 (follow_types): Update. Do not free args.
12781 (type_stack_cleanup): Remove.
12782 * c-exp.y (struct c_parse_state): New.
12783 (cpstate): New global.
12784 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
12785 (nonempty_typelist): Update.
12786 (func_mod): Create a new vector.
12787 (c_parse): Create a c_parse_state.
12788 (check_parameter_typelist): Do not delete params.
12789 (function_method): Update. Do not delete type_list.
12791 2019-01-06 Tom Tromey <tom@tromey.com>
12794 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
12796 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
12797 (print_return_value): Likewise.
12799 2019-01-05 Tom Tromey <tom@tromey.com>
12801 * contrib/cleanup_check.py: Remove.
12802 * contrib/gcc-with-excheck: Remove.
12803 * contrib/exsummary.py: Remove.
12804 * contrib/excheck.py: Remove.
12806 2019-01-05 Joel Brobecker <brobecker@adacore.com>
12808 * thread.c (delete_thread_1): Add gdb_assert that THR is not
12809 NULL. Initialize tpprev to NULL instead of assigning it
12810 to NULL on the next statement.
12811 * windows-nat.c (windows_delete_thread): Remove check for
12812 main_thread_id before printing thread exit notifications.
12813 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
12814 Remove thread ID check against main_thread_id.
12815 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
12816 windows_delete_thread.
12817 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
12819 2019-01-04 Tom Tromey <tom@tromey.com>
12821 * compile/compile.c (_initialize_compile): Use upper case for
12822 metasyntactic variables.
12823 * symmisc.c (_initialize_symmisc): Use upper case for
12824 metasyntactic variables.
12825 * psymtab.c (_initialize_psymtab): Use upper case for
12826 metasyntactic variables.
12827 * demangle.c (demangle_command): Use upper case for metasyntactic
12829 (_initialize_demangler): Likewise.
12830 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
12833 2019-01-03 Tom Tromey <tom@tromey.com>
12835 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
12837 2019-01-03 Tom Tromey <tom@tromey.com>
12839 * python/py-symtab.c (salpy_str): Update.
12840 (struct salpy_sal_object) <symtab>: Now a PyObject.
12841 (salpy_dealloc): Update.
12842 (del_objfile_sal): Use gdbpy_ref.
12844 2019-01-03 Tom Tromey <tom@tromey.com>
12846 * python/py-type.c (convert_field): Use new_reference. Return
12848 (make_fielditem): Return gdbpy_ref.
12849 (typy_fields): Update.
12850 (typy_getitem): Update.
12851 (field_name): Return gdbpy_ref. Use new_reference.
12852 (typy_iterator_iternext): Update.
12854 2019-01-03 Tom Tromey <tom@tromey.com>
12856 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
12858 2019-01-03 Tom Tromey <tom@tromey.com>
12860 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
12861 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
12862 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
12863 (pspy_set_frame_filters, pspy_set_frame_unwinders)
12864 (pspy_set_type_printers): Likewise.
12865 * python/py-function.c (fnpy_init): Use gdbpy_ref.
12866 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
12867 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
12868 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
12869 (objfpy_set_type_printers): Likewise.
12871 2019-01-03 Tom Tromey <tom@tromey.com>
12873 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12874 (gdbpy_print_stack): Use gdbpy_err_fetch.
12875 * python/python-internal.h (class gdbpy_err_fetch): New class.
12876 (class gdbpy_enter) <m_error_type, m_error_value,
12877 m_error_traceback>: Remove.
12878 <m_error>: New member.
12879 (gdbpy_exception_to_string): Don't declare.
12880 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12881 * python/py-value.c (convert_value_from_python): Use
12883 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12884 gdbpy_exception_to_string.
12885 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12886 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12889 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12891 * linux-nat.c (delete_lwp_cleanup): Delete.
12892 (struct lwp_deleter): New struct.
12893 (lwp_info_up): New typedef.
12894 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12897 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12899 * linux-fork.c (class scoped_switch_fork_info): New class.
12900 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12902 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12904 * valops.c (find_overload_match): Remove use of null_cleanup, and
12905 calls to do_cleanups.
12907 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12909 * compile/compile-cplus-types.c
12910 (compile_cplus_instance::decl_name): Handle changes to
12912 * cp-support.c (cp_func_name): Update header comment, update
12914 * cp-support.h (cp_func_name): Update return type in declaration.
12915 * valops.c (find_overload_match): Move temp_func local to top
12916 level of function and change its type. Use temp_func to hold and
12917 delete temporary string obtained from cp_func_name.
12919 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12921 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12922 gdb::char_vector, remove cleanup, and update uses of `msg`.
12924 2019-01-03 Jim Wilson <jimw@sifive.com>
12926 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12928 2019-01-02 Tom Tromey <tom@tromey.com>
12930 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12931 (tdesc_parse_xml): Remove cleanups.
12932 * target-descriptions.h (make_cleanup_free_target_description):
12934 (target_desc_deleter): New struct.
12935 (target_desc_up): New typedef.
12936 * target-descriptions.c (target_desc_deleter::operator()): Rename
12937 from free_target_description.
12938 (make_cleanup_free_target_description): Remove.
12940 2019-01-02 Tom Tromey <tom@tromey.com>
12942 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12943 constructor, destructor.
12944 (linespec_parser): Remove typedef.
12945 (~linespec_parser): Rename from linespec_parser_delete.
12946 (linespec_lex_to_end, linespec_complete_label)
12947 (linespec_complete): Update.
12948 (decode_line_full): Remove cleanups.
12949 (decode_line_1): Update.
12951 2019-01-02 Tom Tromey <tom@tromey.com>
12953 * python/python-internal.h (inferior_to_inferior_object): Change
12955 * python/py-exitedevent.c (create_exited_event_object): Update.
12956 * python/py-inferior.c (inferior_to_inferior_object): Return
12958 (python_new_inferior, python_inferior_deleted)
12959 (thread_to_thread_object, delete_thread_object)
12960 (build_inferior_list, gdbpy_selected_inferior): Update.
12961 * python/py-infthread.c (create_thread_object): Update. Also fail
12962 if inferior_to_inferior_object fails.
12964 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12966 * inferior.h (class inferior) <displaced_step_state>: New field.
12967 * infrun.h (struct displaced_step_state): Move here from
12968 infrun.c. Initialize fields, add constructor.
12969 <inf>: Remove field.
12970 <reset>: New method.
12971 * infrun.c (struct displaced_step_inferior_state): Move to
12973 (displaced_step_inferior_states): Remove.
12974 (get_displaced_stepping_state): Adust.
12975 (displaced_step_in_progress_any_inferior): Adjust.
12976 (displaced_step_in_progress_thread): Adjust.
12977 (displaced_step_in_progress): Adjust.
12978 (add_displaced_stepping_state): Remove.
12979 (get_displaced_step_closure_by_addr): Adjust.
12980 (remove_displaced_stepping_state): Remove.
12981 (infrun_inferior_exit): Call displaced_step_state.reset.
12982 (use_displaced_stepping): Don't check for NULL.
12983 (displaced_step_prepare_throw): Call
12984 get_displaced_stepping_state.
12985 (displaced_step_fixup): Don't check for NULL.
12986 (prepare_for_detach): Don't check for NULL.
12988 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12990 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12991 in case of call that did not complete.
12993 2019-01-02 Andrey Utkin <autkin@undo.io>
12995 * symfile.c (find_separate_debug_file): Fix search of debug files for
12998 2019-01-02 Tom Tromey <tom@tromey.com>
13000 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
13002 * python/py-frame.c (frapy_older): Remove cast.
13003 (frapy_newer): Likewise.
13004 * python/py-breakpoint.c (local_setattro): Remove cast.
13005 * python/py-arch.c (archpy_name): Remove local variable.
13006 * python/py-type.c (gdbpy_lookup_type): Remove cast.
13008 2019-01-02 Joel Brobecker <brobecker@adacore.com>
13010 * unittests/basic_string_view/element_access/char/empty.cc:
13011 Fix year range in copyright header.
13013 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
13015 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
13017 <operator==>: Update with for removed field.
13019 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
13020 <isa_features>: ...this.
13021 <abi_features>: New field.
13022 (riscv_isa_flen): Update comment.
13023 (riscv_abi_xlen): New declaration.
13024 (riscv_abi_flen): New declaration.
13025 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
13027 (riscv_abi_xlen): New function.
13028 (riscv_isa_flen): Update to get answer from isa_features.
13029 (riscv_abi_flen): New function.
13030 (riscv_has_fp_abi): Update to get answer from abi_features.
13031 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
13033 (riscv_call_info) <xlen, flen>: Update comment.
13034 (riscv_call_arg_struct): Remove invalid assertions
13035 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
13037 (riscv_gdbarch_init): Gather isa features and abi features
13038 separately, ensure both match on the gdbarch when reusing an old
13039 gdbarch. Relax an error check to allow 32-bit abi float to run on
13040 a target with 64-bit float hardware.
13042 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13044 * source.c (search_command_helper): Stop reverse search
13045 when line 1 has been searched.
13047 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13049 * record-full.c (record_full_base_target::close): Rewrite
13050 record_full_core_buf_list free logic.
13052 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13054 * break-catch-syscall.c (print_one_catch_syscall): xfree
13057 2019-01-01 Joel Brobecker <brobecker@adacore.com>
13059 * top.c (print_gdb_version): Update Copyright year in version
13062 2019-01-01 Joel Brobecker <brobecker@adacore.com>
13064 Update copyright year range in all GDB files.
13066 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
13068 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
13070 For older changes see ChangeLog-2018.
13076 version-control: never