1 2019-09-20 Joel Brobecker <brobecker@adacore.com>
5 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
7 * NEWS: Mention that Cell/B.E. debugging support was removed.
8 * MAINTAINERS: Remove spu target.
10 * config/djgpp/fnchange.lst: Remove entries for removed files.
12 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
13 spu-multiarch.o, and spu-tdep.o.
14 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
15 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
16 spu-multiarch.c, and spu-tdep.c.
17 * spu-linux-nat.c: Remove file.
18 * spu-multiarch.c: Remove file.
19 * spu-tdep.c: Remove file.
20 * spu-tdep.h: Remove file.
21 * solib-spu.c: Remove file.
22 * solib-spu.h: Remove file.
24 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
25 * configure.nat (spu-linux): Remove.
26 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
27 solib-multiarch.o from gdb_target_obs.
30 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
32 (ppc_linux_no_features): Update.
33 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
35 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
36 (tdesc_powerpc_cell64l): Likewise.
37 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
38 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
40 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
41 Do not include "features/rs6000/powerpc-cell32l.c" or
42 "features/rs6000/powerpc-cell64l.c".
43 (ppc_linux_spu_section): Remove.
44 (ppc_linux_core_read_description): Remove Cell/B.E. support.
45 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
46 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
47 (ppc_linux_spe_context_lookup): Remove.
48 (ppc_linux_spe_context_inferior_created): Remove.
49 (ppc_linux_spe_context_solib_loaded): Remove.
50 (ppc_linux_spe_context_solib_unloaded): Remove.
51 (ppc_linux_spe_context): Remove.
52 (struct ppu2spu_cache): Remove.
53 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
54 (struct ppu2spu_data): Remove.
55 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
56 ppu2spu_unwind): Remove.
57 (ppc_linux_init_abi): Remove Cell/B.E. support.
58 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
60 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
61 (rs6000/powerpc-cell64l-expedite): Likewise
62 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
63 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
64 rs6000/powerpc-cell64l.xml.
65 * features/rs6000/powerpc-cell32l.xml: Remove.
66 * features/rs6000/powerpc-cell64l.xml: Likewise.
67 * features/rs6000/powerpc-cell32l.c: Remove generated file.
68 * features/rs6000/powerpc-cell64l.c: Likewise.
69 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
70 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
71 * regformats/reg-spu.dat: Remove.
73 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
74 * corelow.c (struct spuid_list): Remove.
75 (add_to_spuid_list): Remove.
76 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
77 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
78 (remote_protocol_features): Remove associated entries.
79 (_initialize_remote): No longer initialize them.
80 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
81 * linux-nat.c (SPUFS_MAGIC): Remove.
82 (linux_proc_xfer_spu): Remove.
83 (spu_enumerate_spu_ids): Remove.
84 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
85 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
86 (linux_make_corefile_notes): No longer call it.
88 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
89 (cooked_write_test): Likewise.
91 2019-09-20 Tom Tromey <tom@tromey.com>
93 * NEWS: Mention case-sensitivity of TUI commands.
94 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
95 (tui_set_win_height_command, parse_scrolling_args): Likewise.
96 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
98 2019-09-20 Tom Tromey <tom@tromey.com>
100 * tui/tui-source.c (tui_source_window::set_contents): Use
102 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
105 2019-09-20 Tom Tromey <tom@tromey.com>
107 * tui/tui-data.c: Remove separator comments.
108 * tui/tui-layout.c: Remove separator comments.
109 * tui/tui-win.c: Remove separator comments.
110 * tui/tui-wingeneral.c: Remove separator comments.
112 2019-09-20 Tom Tromey <tom@tromey.com>
114 * tui/tui.h (strcat_to_buf): Don't declare.
115 * tui/tui.c (strcat_to_buf): Remove.
117 2019-09-20 Tom Tromey <tom@tromey.com>
119 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
121 * tui/tui-source.c (tui_source_window::set_contents)
122 (tui_source_window::location_matches_p)
123 (tui_source_window::maybe_update): Update.
125 2019-09-20 Tom Tromey <tom@tromey.com>
127 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
129 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
131 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
132 (tui_data_window::line_from_reg_element_no)
133 (tui_data_window::first_reg_element_no_inline)
134 (tui_data_window::show_registers)
135 (tui_data_window::show_register_group)
136 (tui_data_window::display_registers_from)
137 (tui_data_window::display_registers_from_line)
138 (tui_data_window::first_data_item_displayed)
139 (tui_data_window::delete_data_content_windows)
140 (tui_data_window::erase_data_content)
141 (tui_data_window::do_scroll_vertical)
142 (tui_data_window::refresh_window)
143 (tui_data_window::check_register_values): Update.
145 2019-09-20 Tom Tromey <tom@tromey.com>
147 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
148 (struct tui_locator_window) <full_name, proc_name>: Now
150 * tui/tui-stack.c (tui_locator_window::make_status_line)
151 (tui_locator_window::set_locator_fullname)
152 (tui_locator_window::set_locator_info): Update.
153 * tui/tui-source.c (tui_source_window::set_contents)
154 (tui_source_window::showing_source_p): Update.
156 2019-09-20 Tom Tromey <tom@tromey.com>
158 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
159 Don't call tui_locator_win_info_ptr.
161 2019-09-20 Tom Tromey <tom@tromey.com>
163 * tui/tui-win.c (tui_resize_all): Don't call refresh.
165 2019-09-20 Tom Tromey <tom@tromey.com>
167 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
169 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
170 * tui/tui-layout.c (show_source_disasm_command, show_data)
171 (show_source_or_disasm_and_command): Use 1 as height for locator.
173 2019-09-20 Tom Tromey <tom@tromey.com>
175 * tui/tui.c (tui_enable): Update.
176 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
178 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
180 * tui/tui-data.c (win_resized): Now bool.
181 (tui_win_resized): Return bool.
182 (tui_set_win_resized_to): Accept a bool.
184 2019-09-20 Tom Tromey <tom@tromey.com>
186 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
187 Change type of "refresh_values_only".
188 * tui/tui-regs.c (tui_data_window::show_register_group): Change
189 type of "refresh_values_only".
191 2019-09-20 Tom Tromey <tom@tromey.com>
193 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
195 (tui_disassemble): Add "pos" parameter.
196 (tui_disasm_window::set_contents): Simplify.
198 2019-09-20 Tom Tromey <tom@tromey.com>
200 * tui/tui-winsource.h (struct tui_source_window_base)
201 <show_source_content>: Now private.
202 * tui/tui-winsource.c
203 (tui_source_window_base::show_source_content): Don't handle empty
206 2019-09-20 Tom Tromey <tom@tromey.com>
208 * tui/tui-layout.c (show_source_disasm_command)
209 (show_source_or_disasm_and_command): Don't call
212 2019-09-20 Tom Tromey <tom@tromey.com>
214 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
216 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
217 from tui_make_status_line.
218 (tui_locator_window::rerender): Update.
220 2019-09-20 Tom Tromey <tom@tromey.com>
222 * tui/tui-stack.c (tui_make_status_line): Return std::string.
223 (tui_locator_window::rerender): Update.
225 2019-09-20 Tom Tromey <tom@tromey.com>
227 * tui/tui-winsource.h (struct tui_source_window_base)
228 <~tui_source_window_base>: Don't declare.
230 * tui/tui-winsource.c (~tui_source_window_base): Remove.
231 * tui/tui-source.h (struct tui_source_window) <fullname>: New
233 * tui/tui-source.c (tui_source_window::set_contents): Update.
234 (tui_source_window::location_matches_p)
235 (tui_source_window::maybe_update): Update.
237 2019-09-20 Tom Tromey <tom@tromey.com>
239 * tui/tui-winsource.h (~tui_source_element): Remove.
240 (tui_source_element): Update.
241 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
242 * tui/tui-winsource.c (tui_show_source_line): Update.
243 * tui/tui-source.c (tui_source_window::set_contents): Update.
244 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
246 2019-09-20 Tom Tromey <tom@tromey.com>
248 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
250 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
251 tui_clear_source_windows_detail.
252 * tui/tui-winsource.h (struct tui_source_window_base)
253 <clear_detail>: Don't declare.
254 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
256 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
258 2019-09-20 Tom Tromey <tromey@adacore.com>
261 * block.c (contained_in): Fix final return value.
263 2019-09-20 Alan Modra <amodra@gmail.com>
265 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
266 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
267 (read_indirect_string_from_dwz): Use bfd accessor.
268 * dwarf2read.h (struct dwz_file <filename>): Likewise.
269 * machoread.c (macho_symfile_read_all_oso): Likewise.
270 * solib.c (solib_bfd_open): Likewise.
272 2019-09-19 Christian Biesinger <cbiesinger@google.com>
274 * eval.c: Move declaration of overload_resolution to...
277 2019-09-19 Christian Biesinger <cbiesinger@google.com>
279 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
280 * arm-linux-tdep.c: Likewise.
281 * arm-nbsd-nat.c: Likewise.
282 * arm-tdep.h: Declare arm_apcs_32.
283 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
285 2019-09-19 Christian Biesinger <cbiesinger@google.com>
287 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
288 * dwarf2read.h: Declare dwarf_always_disassemble.
290 2019-09-19 Tom de Vries <tdevries@suse.de>
293 * source-cache.c (source_cache::ensure): Catch exception thrown during
294 construction of the highlighter.
296 2019-09-18 Alan Modra <amodra@gmail.com>
298 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
299 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
300 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
301 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
302 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
303 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
304 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
305 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
306 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
307 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
308 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
309 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
310 * solib-spu.c, * solib-svr4.c, * solib-target.c,
311 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
312 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
313 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
314 * mi/mi-interp.c: Update throughout for bfd section macro and
316 * gcore (gcore_create_callback): Use bfd_set_section_lma.
317 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
319 2019-09-18 Tom Tromey <tom@tromey.com>
322 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
324 (tui_enable): Do not call rl_initialize.
326 2019-09-18 Christian Groessler <chris@groessler.org>
328 * alpha-linux-nat.c: Include gdbarch.h.
330 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
332 * ui-file.c: Include cli/cli-style.h.
333 (term_cli_styling): Remove cli_styling declaration.
335 2019-09-18 Alan Modra <amodra@gmail.com>
337 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
338 to bfd_asymbol_section.
340 2019-09-18 Alan Modra <amodra@gmail.com>
342 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
343 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
344 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
346 2019-09-18 Alan Modra <amodra@gmail.com>
348 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
349 * spu-linux-nat.c (spu_bfd_open): Likewise.
351 2019-09-18 Christian Biesinger <cbiesinger@google.com>
353 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
354 to bool to match definition in dwarf2read.c.
356 2019-09-17 Christian Biesinger <cbiesinger@google.com>
358 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
359 (print_signatures): Likewise.
360 (trust_pad_over_xvs): Likewise.
361 * arch/aarch64-insn.c (aarch64_debug): Likewise.
362 * arch/aarch64-insn.h (aarch64_debug): Likewise.
363 * arm-linux-nat.c (arm_apcs_32): Likewise.
364 * arm-linux-tdep.c (arm_apcs_32): Likewise.
365 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
366 * arm-tdep.c (arm_debug): Likewise.
367 (arm_apcs_32): Likewise.
368 * auto-load.c (debug_auto_load): Likewise.
369 (auto_load_gdb_scripts): Likewise.
370 (global_auto_load): Likewise.
371 (auto_load_local_gdbinit): Likewise.
372 (auto_load_local_gdbinit_loaded): Likewise.
373 * auto-load.h (global_auto_load): Likewise.
374 (auto_load_local_gdbinit): Likewise.
375 (auto_load_local_gdbinit_loaded): Likewise.
376 * breakpoint.c (disconnected_dprintf): Likewise.
377 (breakpoint_proceeded): Likewise.
378 (automatic_hardware_breakpoints): Likewise.
379 (always_inserted_mode): Likewise.
380 (target_exact_watchpoints): Likewise.
381 (_initialize_breakpoint): Update.
382 * breakpoint.h (target_exact_watchpoints): Change to bool.
383 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
384 * cli/cli-cmds.c (trace_commands): Likewise.
385 * cli/cli-cmds.h (trace_commands): Likewise.
386 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
388 * cli/cli-logging.c (logging_overwrite): Change to bool.
389 (logging_redirect): Likewise.
390 (debug_redirect): Likewise.
391 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
392 (struct boolean_option_def) <get_var_address_cb_>: Change return type
394 <boolean_option_def>: Update.
395 (struct flag_option_def): Change default type of Context to bool
397 <flag_option_def>: Change return type of var_address_cb_ to bool*.
398 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
399 (get_setshow_command_value_string): Likewise.
400 * cli/cli-style.c (cli_styling): Change to bool.
401 (source_styling): Likewise.
402 * cli/cli-style.h (source_styling): Likewise.
403 (cli_styling): Likewise.
404 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
406 * command.h (var_types): Update comment.
407 (add_setshow_boolean_cmd): Change int* var argument to bool*.
408 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
410 (debug_compile_cplus_scopes): Likewise.
411 * compile/compile-internal.h (compile_debug): Likewise.
412 * compile/compile.c (compile_debug): Likewise.
413 (struct compile_options) <raw>: Likewise.
414 * cp-support.c (catch_demangler_crashes): Likewise.
415 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
416 (usr_cmd_cris_dwarf2_cfi): Likewise.
417 * csky-tdep.c (csky_debug): Likewise.
418 * darwin-nat.c (enable_mach_exceptions): Likewise.
419 * dcache.c (dcache_enabled_p): Likewise.
420 * defs.h (info_verbose): Likewise.
421 * demangle.c (demangle): Likewise.
422 (asm_demangle): Likewise.
423 * dwarf-index-cache.c (debug_index_cache): Likewise.
424 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
425 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
426 * dwarf2read.c (check_physname): Likewise.
427 (use_deprecated_index_sections): Likewise.
428 (dwarf_always_disassemble): Likewise.
429 * eval.c (overload_resolution): Likewise.
430 * event-top.c (set_editing_cmd_var): Likewise.
431 (exec_done_display_p): Likewise.
432 * event-top.h (set_editing_cmd_var): Likewise.
433 (exec_done_display_p): Likewise.
434 * exec.c (write_files): Likewise.
435 * fbsd-nat.c (debug_fbsd_lwp): Likewise
436 (debug_fbsd_nat): Likewise.
437 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
439 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
440 <backtrace_past_entry> Likewise.
441 * gdb-demangle.h (demangle): Likewise.
442 (asm_demangle): Likewise.
443 * gdb_bfd.c (bfd_sharing): Likewise.
444 * gdbcore.h (write_files): Likewise.
445 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
446 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
447 * gdbthread.h (print_thread_events): Likewise.
448 * gdbtypes.c (opaque_type_resolution): Likewise.
449 (strict_type_checking): Likewise.
450 * gnu-nat.c (gnu_debug_flag): Likewise.
451 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
452 * guile/scm-param.c (pascm_variable): Add boolval.
453 (add_setshow_generic): Update.
454 (pascm_param_value): Update.
455 (pascm_set_param_value_x): Update.
456 * hppa-tdep.c (hppa_debug): Change to bool..
457 * infcall.c (may_call_functions_p): Likewise.
458 (coerce_float_to_double_p): Likewise.
459 (unwind_on_signal_p): Likewise.
460 (unwind_on_terminating_exception_p): Likewise.
461 * infcmd.c (startup_with_shell): Likewise.
462 * inferior.c (print_inferior_events): Likewise.
463 * inferior.h (startup_with_shell): Likewise.
464 (print_inferior_events): Likewise.
465 * infrun.c (step_stop_if_no_debug): Likewise.
466 (detach_fork): Likewise.
467 (debug_displaced): Likewise.
468 (disable_randomization): Likewise.
469 (non_stop): Likewise.
470 (non_stop_1): Likewise.
471 (observer_mode): Likewise.
472 (observer_mode_1): Likewise.
473 (set_observer_mode): Update.
474 (sched_multi): Change to bool.
475 * infrun.h (debug_displaced): Likewise.
476 (sched_multi): Likewise.
477 (step_stop_if_no_debug): Likewise.
478 (non_stop): Likewise.
479 (disable_randomization): Likewise.
480 * linux-tdep.c (use_coredump_filter): Likewise.
481 (dump_excluded_mappings): Likewise.
482 * linux-thread-db.c (auto_load_thread_db): Likewise.
483 (check_thread_db_on_load): Likewise.
484 * main.c (captured_main_1): Update.
485 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
486 xx2_opt, boolean_opt>: Change to bool.
487 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
488 * maint.c (maintenance_profile_p): Likewise.
489 (per_command_time): Likewise.
490 (per_command_space): Likewise.
491 (per_command_symtab): Likewise.
492 * memattr.c (inaccessible_by_default): Likewise.
493 * mi/mi-main.c (mi_async): Likewise.
494 (mi_async_1): Likewise.
495 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
496 * nat/fork-inferior.h (startup_with_shell): Likewise.
497 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
498 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
499 * nios2-tdep.c (nios2_debug): Likewise.
500 * or1k-tdep.c (or1k_debug): Likewise.
501 * parse.c (parser_debug): Likewise.
502 * parser-defs.h (parser_debug): Likewise.
503 * printcmd.c (print_symbol_filename): Likewise.
504 * proc-api.c (procfs_trace): Likewise.
505 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
506 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
507 (set_parameter_value): Update.
508 (add_setshow_generic): Update.
509 * python/py-value.c (copy_py_bool_obj): Change argument from int*
511 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
513 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
514 * record-btrace.c (record_btrace_target::store_registers): Update.
515 * record-full.c (record_full_memory_query): Change to bool.
516 (record_full_stop_at_limit): Likewise.
517 * record-full.h (record_full_memory_query): Likewise.
518 * remote-notif.c (notif_debug): Likewise.
519 * remote-notif.h (notif_debug): Likewise.
520 * remote.c (use_range_stepping): Likewise.
521 (interrupt_on_connect): Likewise.
522 (remote_break): Likewise.
523 * ser-tcp.c (tcp_auto_retry): Likewise.
524 * ser-unix.c (serial_hwflow): Likewise.
525 * skip.c (debug_skip): Likewise.
526 * solib-aix.c (solib_aix_debug): Likewise.
527 * spu-tdep.c (spu_stop_on_load_p): Likewise.
528 (spu_auto_flush_cache_p): Likewise.
529 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
531 (struct info_print_options) <quiet>: Likewise.
532 * symfile-debug.c (debug_symfile): Likewise.
533 * symfile.c (auto_solib_add): Likewise.
534 (separate_debug_file_debug): Likewise.
535 * symfile.h (auto_solib_add): Likewise.
536 (separate_debug_file_debug): Likewise.
537 * symtab.c (basenames_may_differ): Likewise.
538 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
539 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
540 (struct info_types_options) <quiet>: Likewise.
541 * symtab.h (demangle): Likewise.
542 (basenames_may_differ): Likewise.
543 * target-dcache.c (stack_cache_enabled_1): Likewise.
544 (code_cache_enabled_1): Likewise.
545 * target.c (trust_readonly): Likewise.
546 (may_write_registers): Likewise.
547 (may_write_memory): Likewise.
548 (may_insert_breakpoints): Likewise.
549 (may_insert_tracepoints): Likewise.
550 (may_insert_fast_tracepoints): Likewise.
551 (may_stop): Likewise.
552 (auto_connect_native_target): Likewise.
553 (target_stop_and_wait): Update.
554 (target_async_permitted): Change to bool.
555 (target_async_permitted_1): Likewise.
556 (may_write_registers_1): Likewise.
557 (may_write_memory_1): Likewise.
558 (may_insert_breakpoints_1): Likewise.
559 (may_insert_tracepoints_1): Likewise.
560 (may_insert_fast_tracepoints_1): Likewise.
561 (may_stop_1): Likewise.
562 * target.h (target_async_permitted): Likewise.
563 (may_write_registers): Likewise.
564 (may_write_memory): Likewise.
565 (may_insert_breakpoints): Likewise.
566 (may_insert_tracepoints): Likewise.
567 (may_insert_fast_tracepoints): Likewise.
568 (may_stop): Likewise.
569 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
570 (make_thread_apply_all_options_def_group): Change argument from int*
572 (thread_apply_all_command): Update.
573 (print_thread_events): Change to bool.
574 * top.c (confirm): Likewise.
575 (command_editing_p): Likewise.
576 (history_expansion_p): Likewise.
577 (write_history_p): Likewise.
578 (info_verbose): Likewise.
579 * top.h (confirm): Likewise.
580 (history_expansion_p): Likewise.
581 * tracepoint.c (disconnected_tracing): Likewise.
582 (circular_trace_buffer): Likewise.
583 * typeprint.c (print_methods): Likewise.
584 (print_typedefs): Likewise.
585 * utils.c (debug_timestamp): Likewise.
586 (sevenbit_strings): Likewise.
587 (pagination_enabled): Likewise.
588 * utils.h (sevenbit_strings): Likewise.
589 (pagination_enabled): Likewise.
590 * valops.c (overload_resolution): Likewise.
591 * valprint.h (struct value_print_options) <prettyformat_arrays,
592 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
593 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
594 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
596 * windows-nat.c (new_console): Likewise.
597 (cygwin_exceptions): Likewise.
598 (new_group): Likewise.
599 (debug_exec): Likewise.
600 (debug_events): Likewise.
601 (debug_memory): Likewise.
602 (debug_exceptions): Likewise.
603 (useshell): Likewise.
604 * windows-tdep.c (maint_display_all_tib): Likewise.
605 * xml-support.c (debug_xml): Likewise.
607 2019-09-17 Mike Gulick <mgulick@mathworks.com>
609 * source.c (prepare_path_for_appending): New function.
610 (openp): Make use of new function.
611 (find_and_open_source): Search for the compilation directory and
612 source file as a relative path beneath the directory search path.
614 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
616 * source-cache.c (source_cache::get_line_charpos): Catch
617 exceptions and return false, this matches the behaviour documented
620 2019-09-17 Joel Brobecker <brobecker@adacore.com>
622 * ada-tasks.c (info_task): Remove quoting of the task's name.
624 2019-09-16 Christian Biesinger <cbiesinger@google.com>
626 * symfile.c (auto_solib_add): Replace comment with a reference
629 2019-09-14 Christian Biesinger <cbiesinger@google.com>
631 * NEWS: Mention that gdb can now be compiled with Python 3
634 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
636 * maint.c (maint_print_section_data::maint_print_section_data):
637 Force use of 'float log10 (float)' by casting the argument to
640 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
642 * maint.c: Add 'cmath' include.
643 (struct maint_print_section_data): New structure.
644 (print_section_index): New function.
645 (print_bfd_section_info): Add header comment, small whitespace
646 cleanup, and update to call new print_section_index function.
647 (print_objfile_section_info): Likewise.
648 (maint_obj_section_from_bfd_section): New function.
649 (print_bfd_section_info_maybe_relocated): New function.
650 (maintenance_info_sections): Add header comment, always use
651 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
653 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
655 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
656 inner scope, add check that the objfile has psymtabs before
657 checking psymtabs_addrmap.
658 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
660 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
662 * NEWS: Announce that Ada task names are now shown at more places,
663 and between quotes (except in info task output).
664 * gdb/ada-tasks.c (task_to_str): New function.
665 (display_current_task_id): Call task_to_str.
666 (task_command_1): Likewise.
667 (print_ada_task_info): In non-mi mode, Properly align headers and data
668 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
670 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
672 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
673 prstatus.pr_lwp.pr_info instead of making it up.
675 2019-09-11 Christian Biesinger <cbiesinger@google.com>
677 * auto-load.c (auto_load_expand_dir_vars): Update.
678 * defs.h (gdb_datadir): Change to std::string.
679 (python_libdir): Likewise.
680 (relocate_gdb_directory): Change return type to std::string.
681 * guile/guile.c (gdbscm_data_directory): Update.
682 (initialize_scheme_side): Update.
683 * jit.c (jit_reader_dir): Change to std::string.
684 (jit_reader_load_command): Update.
685 * main.c (gdb_datadir): Change to std::string.
686 (python_libdir): Likewise.
687 (set_gdb_data_directory): Update.
688 (relocate_path): Change to return std::string.
689 (relocate_gdb_directory): Change to return std::string.
690 (relocate_gdbinit_path_maybe_in_datadir): Update.
691 (captured_main_1): Update.
692 * python/python.c (do_start_initialization): Update.
693 * top.c (show_gdb_datadir): Update.
694 * xml-syscall.c (xml_init_syscalls_info): Update.
695 (init_syscalls_info): Update.
697 2019-09-11 Christian Biesinger <cbiesinger@google.com>
699 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
700 out of get_init_files.
701 (get_init_files): Update.
703 2019-09-11 Christian Biesinger <cbiesinger@google.com>
705 * main.c (get_init_files): Change to use std::string.
706 (captured_main_1): Update.
707 (print_gdb_help): Update.
709 2019-09-11 Ali Tamur <tamur@google.com>
711 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
714 2019-09-11 Christian Biesinger <cbiesinger@google.com>
716 * dbxread.c (read_dbx_symtab): Update.
717 * dwarf2read.c (load_partial_dies): Update.
718 * mdebugread.c (parse_partial_symbols): Update.
719 (handle_psymbol_enumerators): Update.
720 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
721 * psymtab.c (add_psymbol_to_bcache): Likewise.
722 (add_psymbol_to_list): Likewise.
723 * symtab.c (symbol_set_names): Likewise.
724 * symtab.h (symbol_set_names): Likewise.
725 * xcoffread.c (scan_xcoff_symtab): Update.
727 2019-09-11 Tom Tromey <tom@tromey.com>
729 * symfile-mem.c (symbol_file_add_from_memory): Use
731 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
732 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
734 2019-09-10 Tom Tromey <tromey@adacore.com>
736 * dwarf-index-write.c (write_psymbols): Extend error message.
737 (debug_names::insert): Add Ada code.
738 (debug_names::write_psymbols): Remove Ada check.
739 (debug_names) <m_string_obstack>: New member.
740 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
741 (gdb_index_symbol_name_matcher::matches): Remove.
742 (mapped_index_base::find_name_components_bounds): Add "lang"
744 (mapped_index_base::build_name_components): Also split names
745 according to Ada syntax.
746 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
747 type of "match_callback".
748 (check_match, check_find_bounds_finds)
749 (dw2_expand_symtabs_matching): Update.
750 (dw2_debug_names_iterator): Add new constructor.
751 (dw2_debug_names_map_matching_symbols): New function.
752 (dw2_debug_names_expand_symtabs_matching): Update.
753 (dwarf2_debug_names_functions): Use
754 dw2_debug_names_map_matching_symbols.
756 2019-09-10 Tom Tromey <tromey@adacore.com>
758 * dwarf2read.c (dw2_get_file_names_reader): Add the
759 CU's file name to the results.
761 2019-09-10 Tom Tromey <tromey@adacore.com>
763 * ada-lang.c (add_nonlocal_symbols): Combine calls to
764 map_matching_symbols. Update.
765 * dwarf2read.c (dw2_map_matching_symbols): Update.
766 * psymtab.c (match_partial_symbol): Change type; update.
767 (psym_map_matching_symbols): Likewise.
768 * symfile-debug.c (debug_qf_map_matching_symbols): Change
770 * symfile.h (struct quick_symbol_functions)
771 <map_matching_symbols>: Change "name" to be a lookup_name_info.
774 2019-09-10 Tom Tromey <tromey@adacore.com>
776 * psymtab.c (map_block): Remove.
777 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
778 * symtab.c (iterate_over_symbols_terminated): New function.
779 * symtab.c (iterate_over_symbols_terminated): Declare.
781 2019-09-10 Tom Tromey <tromey@adacore.com>
783 * ada-lang.c (ada_iterate_over_symbols): Return bool.
784 * language.h (struct language_defn) <la_iterate_over_symbols>:
786 * symtab.c (iterate_over_symbols): Return bool.
787 * symtab.h (iterate_over_symbols): Return bool.
789 2019-09-10 Tom Tromey <tromey@adacore.com>
791 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
792 (add_nonlocal_symbols): Update.
793 * dwarf2read.c (dw2_map_matching_symbols): Change type.
794 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
795 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
796 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
797 Change type of "callback". Remove "data".
800 2019-09-09 Ali Tamur <tamur@google.com>
802 * dwarf2read.c (comp_unit_head): Update comment.
803 (dwarf2_dwo_name): New function declaration.
804 (dwarf_unit_type_name): New function declaration.
805 (read_comp_unit_head): Add support for new compilation units,
806 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
807 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
808 (currently named as "signature") in their header. Also clarify error
810 (lookup_dwo_id): New function. Returns the dwo id of the given
812 (lookup_dwo_unit): Use the new lookup_dwo_id function.
813 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
815 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
816 (dwarf2_dwo_name): Get the dwo name if present.
817 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
820 2019-09-09 Tom Tromey <tom@tromey.com>
822 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
824 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
826 * python/python.c (do_start_initialization): Make progname_copy static,
827 to avoid a leak report.
829 2019-09-08 Tom Tromey <tom@tromey.com>
831 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
833 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
835 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
836 Change type to gdb::optional<block_enum>.
837 (dw2_symtab_iter_init): Change block_index parameter type
838 to gdb::optional<block_enum>.
839 (dw2_lookup_symbol): Change block_index parameter
841 (dw2_debug_names_lookup_symbol): Likewise.
842 * psymtab.c (psym_lookup_symbol): Likewise.
843 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
844 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
847 2019-09-06 Christian Biesinger <cbiesinger@google.com>
849 * defs.h (relocate_gdb_directory): Change int to bool in
850 signature and rename flag to relocatable.
851 * main.c (relocate_path): Likewise.
852 (relocate_gdb_directory): Likewise.
854 2019-09-06 Alan Modra <amodra@gmail.com>
856 * coffread.c (coff_symfile_read): Constify filename variable.
857 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
858 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
859 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
860 * solib.c (reload_shared_libraries_1): Likewise.
861 * symfile.c (reread_symbols): Likewise.
862 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
863 * solib-darwin.c (darwin_bfd_open): Likewise.
864 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
866 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
868 * psymtab.c (print_partial_symbols): Handle missing domain_enum
869 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
871 2019-09-03 Tom Tromey <tromey@adacore.com>
873 * ada-valprint.c (ada_val_print_num): Don't recurse for range
875 (has_negatives): Unbias a range type bound.
876 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
877 * gdbtypes.c (operator==): Handle new field.
878 (create_range_type): Add "bias" parameter.
879 (create_static_range_type, resolve_dynamic_range): Update.
880 * gdbtypes.h (struct range_bounds) <bias>: New member.
881 (create_range_type): Add bias parameter.
882 * printcmd.c (print_scalar_formatted): Unbias range types.
883 * value.c (unpack_long): Unbias range types.
884 (pack_long): Bias range types.
886 2019-09-02 Alan Hayward <alan.hayward@arm.com>
888 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
891 2019-09-02 Alan Hayward <alan.hayward@arm.com>
893 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
894 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
895 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
896 (compile_probe_arg): Likewise.
897 * probe.h (get_argument_count): Likewise.
898 * solib-svr4.c (solib_event_probe_action): Likewise.
899 * stap-probe.c (stap_probe::get_argument_count): Likewise.
901 2019-09-02 Alan Hayward <alan.hayward@arm.com>
903 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
905 (svr4_create_solib_event_breakpoints): ...from here.
907 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
909 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
910 suffix from warning message.
912 2019-08-30 Tom Tromey <tom@tromey.com>
914 * tui/tui-winsource.h (struct tui_source_window_base)
915 <refresh_all>: Don't declare.
916 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
918 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
919 tui_show_locator_content.
920 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
922 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
923 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
926 2019-08-30 Tom Tromey <tom@tromey.com>
928 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
930 2019-08-30 Tom Tromey <tom@tromey.com>
932 * tui/tui-stack.c (_initialize_tui_stack): Move later.
933 Remove unnecessary forward declarations.
935 2019-08-30 Tom Tromey <tom@tromey.com>
937 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
939 (tui_update_locator_fullname, tui_show_frame_info): Don't call
940 tui_show_locator_content.
942 2019-08-30 Tom Tromey <tom@tromey.com>
944 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
945 (tui_locator_window::rerender): Rewrite using body of previous
946 tui_show_locator_content.
948 2019-08-30 Tom Tromey <tom@tromey.com>
950 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
951 set_locator_fullname>: New methods.
952 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
953 Rename from tui_set_locator_fullname.
954 (tui_locator_window::set_locator_info): Rename from
955 tui_set_locator_info. Return bool.
956 (tui_update_locator_fullname, tui_show_frame_info): Update.
958 2019-08-30 Tom Tromey <tom@tromey.com>
960 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
962 2019-08-30 Tom Tromey <tom@tromey.com>
964 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
967 2019-08-30 Tom Tromey <tom@tromey.com>
969 * tui/tui-wingeneral.c (box_win): Assume win_info and
970 win_info->handle cannot be NULL.
972 2019-08-30 Tom Tromey <tom@tromey.com>
974 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
975 refresh_window>: Declare.
976 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
978 (tui_data_item_window::rerender): Rename from
979 tui_display_register.
980 (tui_data_item_window::refresh_window): New method.
981 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
984 2019-08-30 Tom Tromey <tom@tromey.com>
986 * tui/tui-regs.h (struct tui_data_window) <regs_content,
987 regs_column_count, current_group>: Move later. Now private.
988 <get_current_group>: New method.
989 * tui/tui-regs.c (tui_reg_command): Update.
990 * tui/tui-layout.c (tui_set_layout): Update.
992 2019-08-30 Tom Tromey <tom@tromey.com>
994 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
995 (tui_data_window::rerender): Don't call
996 check_and_display_highlight_if_needed.
997 (tui_data_window::refresh_all): Remove call to
1000 2019-08-30 Tom Tromey <tom@tromey.com>
1002 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1003 (tui_data_window::display_registers_from)
1004 (tui_data_window::display_reg_element_at_line)
1005 (tui_data_window::display_registers_from_line): Remove checks of
1008 2019-08-30 Tom Tromey <tom@tromey.com>
1010 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1012 * tui/tui-regs.c (tui_data_window::show_registers): Call
1014 (tui_data_window::rerender): Rename from display_all_data.
1015 (tui_data_window::rerender): Remove old implementation.
1017 2019-08-30 Tom Tromey <tom@tromey.com>
1019 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1021 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1023 2019-08-29 Bernhard Wodok <barto@gmx.net>
1024 Sergio Durigan Junior <sergiodj@redhat.com>
1027 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1029 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1031 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1032 when searching for types.
1034 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1036 * f-lang.c (f_language_defn): Use f_print_typedef.
1037 * f-lang.h (f_print_typedef): Declare.
1038 * f-typeprint.c (f_print_typedef): Define.
1040 2019-08-27 Christian Biesinger <cbiesinger@google.com>
1042 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1044 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
1046 * cli/cli-utils.c (info_print_options_defs): Delete.
1047 (make_info_print_options_def_group): Delete.
1048 (extract_info_print_options): Delete.
1049 (info_print_command_completer): Delete.
1050 (info_print_args_help): Add extra parameter, and optionally
1051 include text about -n flag.
1052 * cli/cli-utils.h (struct info_print_options): Delete.
1053 (extract_info_print_options): Delete declaration.
1054 (info_print_command_completer): Delete declaration.
1055 (info_print_args_help): Add extra parameter, extend header
1057 * python/python.c (gdbpy_rbreak): Pass additional parameter to
1059 * stack.c (struct info_print_options): New type.
1060 (info_print_options_defs): New file scoped variable.
1061 (make_info_print_options_def_group): New static function.
1062 (info_print_command_completer): New static function.
1063 (info_locals_command): Update to use new local functions.
1064 (info_args_command): Likewise.
1065 (_initialize_stack): Add extra parameter to calls to
1066 info_print_args_help.
1067 * symtab.c (search_symbols): Add extra parameter, use this to
1068 possibly excluse non-debug symbols.
1069 (symtab_symbol_info): Add extra parameter, which is passed on to
1071 (struct info_print_options): New type.
1072 (info_print_options_defs): New file scoped variable.
1073 (make_info_print_options_def_group): New static function.
1074 (info_print_command_completer): New static function.
1075 (info_variables_command): Update to use local functions, and pass
1076 extra parameter through to symtab_symbol_info.
1077 (info_functions_command): Likewise.
1078 (info_types_command): Pass additional argument through to
1080 (rbreak_command): Pass extra argument to search_symbols.
1081 (_initialize_symtab): Add extra arguments for calls to
1082 info_print_args_help, and update help text for 'info variables',
1083 'whereis', and 'info functions' commands.
1084 * symtab.h (search_symbols): Add extra argument to declaration.
1085 * NEWS: Mention new flags.
1087 2019-08-26 Christian Biesinger <cbiesinger@google.com>
1089 * symtab.c (lookup_static_symbol): Call the new function (and move
1090 it down to be next to lookup_global_symbol).
1091 (struct global_sym_lookup_data): Add block_enum member and rename to...
1092 (struct global_or_static_sym_lookup_data): ...this.
1093 (lookup_symbol_global_iterator_cb): Pass block_index instead of
1094 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
1095 (lookup_symbol_global_or_static_iterator_cb): ...this.
1096 (lookup_global_or_static_symbol): New function.
1097 (lookup_global_symbol): Call new function.
1099 2019-08-26 Tom de Vries <tdevries@suse.de>
1102 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
1103 when pc_probe.prob == NULL.
1105 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
1107 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
1108 variable symbol_linkage to symbol_linkage_.
1110 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
1112 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1113 represent whether the symbol is static, dynamic, or we don't
1116 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1118 * gdb/rx-tdep.c (rx_register_names): New.
1119 (rx_register_name): Delete.
1120 (rx_psw_type): Delete.
1121 (rx_fpsw_type): Delete.
1122 (rx_register_type): Delete.
1123 (rx_gdbarch_init): Convert target-descriptions.
1124 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1125 * gdb/features/Makefile: Add rx.xml.
1126 * gdb/features/rx.xml: New.
1127 * gdb/features/rx.c: Generated.
1128 * gdb/NEWS: Mention target description support.
1130 2019-08-22 Christian Biesinger <cbiesinger@google.com>
1132 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1135 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1137 * configure.ac: Don't check for 'dlfcn.h' (moved to
1138 gdbsupport/common.m4).
1139 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1141 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1142 * compile/compile-c-support.c: Include
1143 'gdbsupport/gdb-dlfcn.h'.
1144 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1145 * gdb-dlfcn.c: Move to...
1146 * gdbsupport/gdb-dlfcn.c: ... here.
1147 * gdb-dlfcn.h: Move to...
1148 * gdbsupport/gdb-dlfcn.h: ... here.
1150 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1152 * nios2-tdep.c (struct reg_value): Improve comments. Make
1153 the offset field signed.
1155 2019-08-22 Christian Biesinger <cbiesinger@google.com>
1157 * python/lib/gdb/__init__.py (_execute_file): New function.
1158 * python/python.c (python_run_simple_file): Call gdb._execute_file
1161 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1163 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1164 all uses as this was never set to anything but a zero value.
1166 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1168 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1170 2019-08-21 Christian Biesinger <cbiesinger@google.com>
1172 * tui/tui-data.h (tui_gen_win_info): Add an =default
1173 move constructor, required by some GCC versions.
1175 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
1177 * go32-nat.c (go32_sysinfo): Add hygon_p.
1179 2019-08-20 Tom Tromey <tom@tromey.com>
1181 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
1182 line_from_reg_element_no, first_reg_element_no_inline,
1183 display_all_data, delete_data_content_windows,
1184 erase_data_content>: Now private.
1186 2019-08-20 Tom Tromey <tom@tromey.com>
1188 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
1189 (tui_unhighlight_win, tui_highlight_win)
1190 (tui_win_info::make_window): Update.
1191 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
1193 2019-08-20 Tom Tromey <tom@tromey.com>
1195 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1196 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1197 (MAX_PID_WIDTH): Move to tui-stack.c.
1198 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1199 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1200 (MAX_PID_WIDTH): Move from tui-data.h.
1202 2019-08-20 Tom Tromey <tom@tromey.com>
1204 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1205 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1207 (tui_gen_win_info::make_window): Rename from tui_make_window.
1208 (tui_win_info::make_window): New method.
1209 (tui_gen_win_info::make_visible): Update.
1210 * tui/tui-source.c (tui_source_window::set_contents): Update.
1211 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1212 (tui_data_window::display_registers_from): Update.
1213 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1214 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1218 (struct tui_win_info) <make_window>: Declare.
1219 <can_box>: Now virtual.
1220 <title>: New member.
1221 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1222 * tui/tui-command.c (tui_cmd_window::resize): Update.
1224 2019-08-20 Tom Tromey <tom@tromey.com>
1226 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
1227 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1228 (tui_data_window::check_register_values): Update.
1230 2019-08-20 Tom Tromey <tom@tromey.com>
1232 * tui/tui-regs.h (struct tui_data_window): Use
1233 DISABLE_COPY_AND_ASSIGN.
1234 <regs_content>: Change type, removing unique_ptr.
1235 <tui_data_window>: Add move constructor.
1236 * tui/tui-regs.c (tui_data_window::show_registers)
1237 (tui_data_window::show_register_group)
1238 (tui_data_window::display_registers_from)
1239 (tui_data_window::display_registers_from)
1240 (tui_data_window::first_data_item_displayed)
1241 (tui_data_window::delete_data_content_windows)
1242 (tui_data_window::rerender, tui_data_window::refresh_window)
1243 (tui_data_window::check_register_values): Update.
1245 2019-08-20 Tom Tromey <tom@tromey.com>
1247 * tui/tui-regs.h (struct tui_data_window) <show_registers,
1248 show_register_group>: Declare.
1249 (tui_show_register_group): Don't declare.
1250 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
1252 (tui_data_window::show_register_group): Rename from
1253 tui_show_register_group.
1254 (tui_data_window::check_register_values, tui_reg_command):
1256 * tui/tui-layout.c (tui_set_layout): Update.
1258 2019-08-20 Tom Tromey <tom@tromey.com>
1260 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
1262 (tui_check_register_values): Don't declare.
1263 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1264 from tui_check_register_values.
1265 * tui/tui-hooks.c (tui_register_changed): Update.
1267 2019-08-20 Tom Tromey <tom@tromey.com>
1269 * tui/tui-regs.c (tui_reg_layout): Move later.
1270 (tui_show_registers): Don't enable TUI mode or change layout.
1272 2019-08-20 Tom Tromey <tom@tromey.com>
1274 * tui/tui-regs.h (struct tui_data_item_window)
1275 <~tui_data_item_window>: Remove.
1276 <content>: Now a unique_xmalloc_ptr.
1277 * tui/tui-regs.c (tui_register_format): Return a
1279 (tui_get_register): Update.
1280 (~tui_data_item_window): Remove.
1281 (tui_data_window::display_registers_from, tui_display_register):
1283 * tui/tui-io.h (tui_expand_tabs): Update.
1284 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1285 Remove "col" parameter.
1287 2019-08-20 Tom Tromey <tom@tromey.com>
1289 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1291 * tui/tui-regs.c (~tui_data_item_window): Update.
1293 2019-08-20 Tom Tromey <tom@tromey.com>
1295 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1298 2019-08-20 Tom Tromey <tom@tromey.com>
1300 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1302 2019-08-20 Tom Tromey <tom@tromey.com>
1304 * tui/tui-source.h (struct tui_source_window): Update.
1305 * tui/tui-regs.c (tui_show_registers): Update.
1306 * tui/tui-disasm.h (struct tui_disasm_window): Update.
1307 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
1308 (NO_REGS_STRING): Remove defines.
1310 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
1312 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
1313 unnecessary thread walk if remote doesn't support the packet.
1315 2019-08-19 Tom Tromey <tromey@adacore.com>
1317 * python/py-value.c (value_has_field): Fix indentation.
1319 2019-08-19 Tom Tromey <tromey@adacore.com>
1321 * printcmd.c (do_one_display, info_display_command): Update.
1322 * block.h (contained_in): Return bool. Add allow_nested
1324 * block.c (contained_in): Return bool. Add allow_nested
1327 2019-08-19 Tom Tromey <tom@tromey.com>
1329 * configure: Rebuild.
1330 * configure.ac: Disallow the combination of -static-libstdc++ and
1332 * source-cache.c (get_language_name): Handle rust.
1333 (source_cache::get_source_lines): Ignore highlighting exceptions.
1335 2019-08-16 Tom Tromey <tom@tromey.com>
1337 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1338 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1339 (struct tui_source_window_base) <make_visible, refresh_window,
1340 resize>: Remove methods.
1341 <execution_info>: Remove field.
1342 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1343 (tui_show_source_line, tui_source_window_base)
1344 (~tui_source_window_base): Update.
1345 (tui_source_window_base::resize)
1346 (tui_source_window_base::make_visible)
1347 (tui_source_window_base::refresh_window): Remove.
1348 (tui_source_window_base::update_exec_info): Update.
1349 * tui/tui-source.c (tui_source_window::set_contents): Update.
1350 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1352 2019-08-16 Tom Tromey <tom@tromey.com>
1354 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1355 deprecated_query_hook.
1357 2019-08-16 Tom Tromey <tom@tromey.com>
1359 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1360 (tui_update_source_windows_with_line): Update.
1361 * tui/tui-source.h (struct tui_source_window)
1362 <show_symtab_source>: Declare.
1363 (tui_show_symtab_source): Don't declare.
1364 * tui/tui-source.c (tui_show_symtab_source): Rename from
1365 tui_show_symtab_source.
1367 2019-08-16 Tom Tromey <tom@tromey.com>
1369 * tui/tui-winsource.h (struct tui_source_window_base)
1370 <set_contents>: Declare.
1371 * tui/tui-winsource.c
1372 (tui_source_window_base::update_source_window_as_is): Update.
1373 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1375 (tui_set_source_content): Don't declare.
1376 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1377 tui_set_source_content.
1378 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1380 (tui_set_disassem_content): Don't declare.
1381 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1382 tui_set_disassem_content.
1384 2019-08-16 Tom Tromey <tom@tromey.com>
1386 * tui/tui-winsource.h (struct tui_source_window_base)
1387 <update_breakpoint_info>: Declare.
1388 (tui_update_breakpoint_info): Don't declare.
1389 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1390 (tui_update_all_breakpoint_info): Update.
1391 (tui_source_window_base::update_breakpoint_info): Rename from
1392 tui_update_breakpoint_info.
1393 (tui_source_window_base::update_exec_info): Update.
1395 2019-08-16 Tom Tromey <tom@tromey.com>
1397 * tui/tui-winsource.h (struct tui_source_window_base)
1398 <update_source_window>: Declare.
1399 (tui_update_source_window): Don't declare.
1400 * tui/tui-winsource.c
1401 (tui_source_window_base::update_source_window): Rename from
1402 tui_update_source_window.
1403 (tui_source_window_base::rerender): Update.
1404 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1405 * tui/tui-disasm.c (tui_show_disassem)
1406 (tui_show_disassem_and_update_source)
1407 (tui_disasm_window::maybe_update): Update.
1409 2019-08-16 Tom Tromey <tom@tromey.com>
1411 * tui/tui-winsource.h (struct tui_source_window_base)
1412 <update_source_window_as_is>: Declare.
1413 (tui_update_source_window_as_is): Don't declare.
1414 * tui/tui-winsource.c (tui_update_source_window): Update
1415 (tui_source_window_base::update_source_window_as_is): Rename from
1416 tui_update_source_window_as_is.
1417 (tui_source_window_base::refill): Update.
1418 * tui/tui-source.c (tui_show_symtab_source): Update.
1419 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1422 2019-08-16 Tom Tromey <tom@tromey.com>
1424 * tui/tui-winsource.h (tui_update_source_window)
1425 (tui_update_source_window_as_is): Remove "noerror" parameter.
1426 * tui/tui-winsource.c (tui_update_source_window)
1427 (tui_update_source_window_as_is): Remove "noerror" parameter.
1428 (tui_update_source_windows_with_addr)
1429 (tui_update_source_windows_with_line)
1430 (tui_source_window_base::rerender)
1431 (tui_source_window_base::refill): Update.
1432 * tui/tui-source.h (tui_set_source_content)
1433 (tui_show_symtab_source): Remove "noerror" parameter.
1434 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1436 (tui_show_symtab_source): Likewise.
1437 (tui_source_window::maybe_update): Update.
1438 * tui/tui-disasm.c (tui_show_disassem)
1439 (tui_show_disassem_and_update_source)
1440 (tui_disasm_window::do_scroll_vertical)
1441 (tui_disasm_window::maybe_update): Update.
1443 2019-08-16 Tom Tromey <tom@tromey.com>
1445 * tui/tui.c (tui_is_window_visible): Update.
1446 * tui/tui-wingeneral.c (tui_make_window)
1447 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1448 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1449 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1450 (tui_set_win_height_command, parse_scrolling_args): Update.
1451 * tui/tui-source.c (tui_source_window::style_changed): Update.
1452 * tui/tui-regs.c (tui_show_registers)
1453 (tui_data_window::first_data_item_displayed)
1454 (tui_data_window::delete_data_content_windows)
1455 (tui_check_register_values, tui_reg_command): Update.
1456 * tui/tui-disasm.c (tui_show_disassem): Update.
1457 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
1459 <is_visible>: Remove field.
1460 * tui/tui-data.c (tui_next_win, tui_prev_win)
1461 (tui_delete_invisible_windows): Update.
1463 2019-08-16 Tom Tromey <tom@tromey.com>
1465 * tui/tui-winsource.h (struct tui_source_window_base)
1466 <m_has_locator>: Remove.
1467 * tui/tui-layout.c (show_source_disasm_command, show_data)
1468 (show_source_or_disasm_and_command): Update.
1470 2019-08-16 Alan Hayward <alan.hayward@arm.com>
1472 * NEWS (Other MI changes): New subsection.
1473 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
1474 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
1475 * arch-utils.c (default_get_pc_address_flags): New function.
1476 * arch-utils.h (default_get_pc_address_flags): New declaration.
1477 * gdbarch.sh: Add get_pc_address_flags.
1478 * gdbarch.c: Regenerate.
1479 * gdbarch.h: Likewise.
1480 * stack.c (print_pc): New function.
1481 (print_frame_info) (print_frame): Call print_pc.
1483 2019-08-16 Tom de Vries <tdevries@suse.de>
1485 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
1486 print_objfile_section_info.
1488 2019-08-15 Tom Tromey <tom@tromey.com>
1490 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
1491 calling update_cmdwin_start_line.
1492 * tui/tui-winsource.h (struct tui_source_window_base)
1493 <do_make_visible_with_new_height, set_new_height>: Don't declare.
1494 <rerender>: Declare.
1495 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
1497 (tui_source_window_base::set_new_height): Remove.
1498 (tui_source_window_base::rerender): Rename from
1499 do_make_visible_with_new_height.
1500 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
1502 (tui_win_info::make_invisible_and_set_new_height)
1503 (tui_win_info::make_visible_with_new_height): Remove.
1504 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
1506 * tui/tui-stack.c (tui_locator_window::rerender): New method.
1507 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
1508 do_make_visible_with_new_height>: Don't declare.
1509 <rerender>: Declare.
1510 * tui/tui-regs.c (tui_data_window::rerender): Rename from
1512 (tui_data_window::do_make_visible_with_new_height): Remove.
1513 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
1514 call tui_show_locator_content.
1515 (tui_gen_win_info::resize): Call rerender.
1516 (show_source_or_disasm_and_command): Don't call
1517 tui_show_locator_content.
1518 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
1520 (struct tui_win_info) <rerender>: Declare.
1521 <set_new_height, make_invisible_and_set_new_height,
1522 make_visible_with_new_height>: Don't declare.
1523 * tui/tui-data.c (tui_win_list::rerender): New method.
1524 * tui/tui-command.h (struct tui_cmd_window)
1525 <do_make_visible_with_new_height>: Don't declare.
1527 (tui_cmd_window::do_make_visible_with_new_height): Remove.
1529 2019-08-15 Tom Tromey <tromey@adacore.com>
1531 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
1532 * ada-lang.c (ada_enum_name): Likewise.
1534 2019-08-15 Christian Biesinger <cbiesinger@google.com>
1536 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
1538 (GdbOutputErrorFile): Likewise.
1539 (global scope): Adjust constructor calls to GdbOutput{,Error}File
1541 (execute_unwinders): Rename to have a leading underscore.
1542 (auto_load_packages): Likewise.
1543 (global scope): Adjust call to auto_load_packages accordingly.
1544 (GdbSetPythonDirectory): Likewise.
1545 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
1546 instead of execute_unwinders.
1548 2019-08-15 Tom Tromey <tom@tromey.com>
1550 * tui/tui-layout.c (show_layout, show_source_disasm_command)
1551 (show_data): Don't change window visibility.
1552 (tui_gen_win_info::resize): Remove special case for command
1553 window. Use wresize, when available.
1554 (show_source_or_disasm_and_command): Don't change window
1556 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
1557 <make_visible>: New method.
1558 * tui/tui-command.c (tui_cmd_window::resize): New method.
1560 2019-08-15 Tom Tromey <tom@tromey.com>
1562 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
1563 (struct tui_source_windows): New.
1564 * tui/tui-winsource.c (tui_display_main): Update.
1565 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1566 (new_height_ok, parse_scrolling_args): Update.
1567 * tui/tui-layout.c (show_layout, show_data): Update.
1568 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
1569 (tui_add_to_source_windows): Don't declare.
1570 * tui/tui-data.c (source_windows, tui_source_windows)
1571 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
1573 2019-08-15 Tom Tromey <tom@tromey.com>
1575 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
1577 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
1578 * tui/tui-layout.c (show_source_disasm_command, show_data):
1580 (tui_gen_win_info::resize): Rename.
1581 (show_source_or_disasm_and_command): Update.
1582 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
1585 2019-08-15 Tom Tromey <tom@tromey.com>
1587 * tui/tui-stack.c (tui_initialize_static_data): Remove.
1588 * tui/tui-interp.c (tui_interp::init): Don't call
1589 tui_initialize_static_data.
1590 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
1592 2019-08-15 Tom Tromey <tom@tromey.com>
1594 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
1595 examine tui_win_list.
1597 2019-08-15 Tom Tromey <tom@tromey.com>
1599 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
1600 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
1601 tui_clear_source_content.
1602 (tui_clear_source_content): Remove.
1603 (tui_source_window_base::do_erase_source_content): Hoist call to
1605 * tui/tui-stack.c (tui_show_frame_info): Don't call
1606 tui_clear_source_content.
1608 2019-08-15 Tom Tromey <tom@tromey.com>
1610 * tui/tui-winsource.h (struct tui_source_window_base)
1611 <do_erase_source_content>: New method.
1612 <erase_source_content>: New method.
1613 (tui_erase_source_content): Don't declare.
1614 * tui/tui-winsource.c (tui_clear_source_content): Update.
1615 (tui_source_window_base::do_erase_source_content): Rename from
1616 tui_erase_source_content.
1617 (tui_source_window_base::show_source_content): Update.
1618 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1619 * tui/tui-source.h (struct tui_source_window)
1620 <erase_source_content>: New method.
1621 * tui/tui-disasm.h (struct tui_disasm_window)
1622 <erase_source_content>: New method.
1624 2019-08-15 Tom Tromey <tom@tromey.com>
1626 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
1627 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
1629 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
1630 * tui/tui-source.c (tui_set_source_content): Update.
1631 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1633 2019-08-15 Tom Tromey <tom@tromey.com>
1635 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
1636 * tui/tui-winsource.c (tui_line_is_displayed): Move to
1638 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
1640 * tui/tui-source.c (tui_source_window::line_is_displayed): New
1642 (tui_source_window::maybe_update): Update.
1644 2019-08-15 Tom Tromey <tom@tromey.com>
1646 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
1647 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
1649 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
1651 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
1653 (tui_disasm_window::maybe_update): Update.
1655 2019-08-15 Tom Tromey <tom@tromey.com>
1657 * tui/tui-winsource.h (struct tui_source_window_base)
1658 <maybe_update>: Declare.
1659 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
1661 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
1663 * tui/tui-source.c (tui_source_window::maybe_update): New method.
1664 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
1666 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
1668 2019-08-15 Tom Tromey <tom@tromey.com>
1670 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
1672 2019-08-15 Tom Tromey <tom@tromey.com>
1674 * tui/tui-wingeneral.c: Include tui-stack.h.
1675 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
1676 (struct tui_locator_window): Move from tui-data.h.
1677 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
1678 (tui_initialize_static_data): Move from tui-data.c.
1679 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
1680 (struct tui_locator_window): Move to tui-stack.c.
1681 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
1682 (tui_initialize_static_data): Move to tui-stack.c.
1684 2019-08-15 Tom Tromey <tom@tromey.com>
1686 * tui/tui-layout.c (show_source_disasm_command)
1687 (show_source_or_disasm_and_command): Use make_visible method, not
1689 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
1692 2019-08-15 Tom Tromey <tom@tromey.com>
1694 * tui/tui-wingeneral.h (tui_make_window): Update.
1695 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
1697 (tui_gen_win_info::make_visible): Update.
1698 * tui/tui-regs.c (tui_data_window::display_registers_from):
1700 * tui/tui-layout.c (show_source_disasm_command)
1701 (show_source_or_disasm_and_command): Update.
1702 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
1703 (enum tui_box): Remove.
1704 (struct tui_win_info) <can_box>: New method.
1705 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
1708 2019-08-15 Tom de Vries <tdevries@suse.de>
1710 * linux-nat-trad.c: Include gdbarch.h.
1712 2019-08-14 Alan Hayward <alan.hayward@arm.com>
1714 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
1717 2019-08-14 Tom Tromey <tromey@adacore.com>
1719 * darwin-nat.c: Include gdbarch.h.
1720 * darwin-nat-info.c: Include gdbarch.h.
1722 2019-08-13 Tom Tromey <tom@tromey.com>
1724 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
1726 * tui/tui-data.c (tui_initialize_static_data): Update.
1728 2019-08-13 Tom Tromey <tom@tromey.com>
1730 * tui/tui-winsource.h (struct tui_exec_info_window)
1731 <~tui_exec_info_window, maybe_allocate_content, get_content,
1733 (struct tui_source_window_base) <set_exec_info_content,
1734 show_exec_info_content>: Don't declare.
1735 * tui/tui-winsource.c
1736 (tui_exec_info_window::maybe_allocate_content): Remove.
1737 (tui_source_window_base::update_exec_info): Rename from
1738 set_exec_info_content.
1739 (tui_source_window_base::show_exec_info_content)
1740 (tui_source_window_base::update_exec_info): Remove.
1742 2019-08-13 Tom Tromey <tom@tromey.com>
1744 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
1746 * tui/tui-winsource.c (tui_update_source_window_as_is)
1747 (tui_update_source_windows_with_addr, tui_erase_source_content):
1749 (tui_clear_exec_info_content): Remove.
1751 2019-08-13 Tom Tromey <tom@tromey.com>
1753 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
1755 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
1756 call tui_erase_exec_info_content.
1757 (tui_clear_exec_info_content): Rename from
1758 tui_erase_exec_info_content.
1759 (tui_clear_exec_info_content): Delete.
1761 2019-08-13 Tom Tromey <tom@tromey.com>
1763 * tui/tui-winsource.h (struct tui_source_window_base)
1764 <show_exec_info_content>: Declare.
1765 (tui_show_exec_info_content): Don't declare.
1766 * tui/tui-winsource.c
1767 (tui_source_window_base::show_exec_info_content): Rename from
1768 tui_show_exec_info_content.
1769 (tui_source_window_base::update_exec_info): Update.
1771 2019-08-13 Tom Tromey <tom@tromey.com>
1773 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
1774 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
1775 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
1776 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
1777 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
1778 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
1781 2019-08-13 Tom Tromey <tom@tromey.com>
1783 * tui/tui-winsource.h (struct tui_source_window_base)
1784 <update_exec_info>: Declare.
1785 (tui_update_exec_info): Don't declare.
1786 * tui/tui-winsource.c (tui_update_source_window_as_is)
1787 (tui_source_window_base::refresh_all)
1788 (tui_update_all_breakpoint_info): Update.
1789 (tui_source_window_base::update_exec_info): Rename from
1790 tui_update_exec_info.
1791 * tui/tui-stack.c (tui_show_frame_info): Update.
1793 2019-08-13 Tom Tromey <tom@tromey.com>
1795 * tui/tui-winsource.h (struct tui_source_window_base)
1796 <set_exec_info_content>: Declare.
1797 (tui_set_exec_info_content): Don't declare.
1798 * tui/tui-winsource.c
1799 (tui_source_window_base::set_exec_info_content): Rename from
1800 tui_set_exec_info_content.
1801 (tui_update_exec_info): Update.
1803 2019-08-13 Tom Tromey <tom@tromey.com>
1805 * tui/tui-winsource.h (struct tui_source_window_base)
1806 <show_source_content>: Declare.
1807 (tui_show_source_content): Don't declare.
1808 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1809 (tui_source_window_base::show_source_content): Rename from
1810 tui_show_source_content.
1811 (tui_source_window_base::refresh_all): Update.
1812 * tui/tui-layout.c (show_source_disasm_command)
1813 (show_source_or_disasm_and_command): Update.
1815 2019-08-13 Tom Tromey <tom@tromey.com>
1817 * tui/tui-winsource.c (tui_erase_source_content)
1818 (tui_show_source_content, tui_source_window_base::refresh_all):
1820 * tui/tui-wingeneral.h
1821 (tui_check_and_display_highlight_if_needed): Don't declare.
1822 * tui/tui-wingeneral.c
1823 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1824 check_and_display_highlight_if_needed.
1825 * tui/tui-win.c (tui_rehighlight_all)
1826 (tui_win_info::make_visible_with_new_height): Update.
1827 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1828 (tui_data_window::erase_data_content)
1829 (tui_data_window::display_all_data): Update.
1830 * tui/tui-data.h (struct tui_win_info)
1831 <check_and_display_highlight_if_needed>: Declare.
1833 2019-08-13 Tom Tromey <tom@tromey.com>
1835 * tui/tui-win.c (tui_resize_all): Call
1836 tui_delete_invisible_windows.
1837 * tui/tui-layout.c (show_layout): Call
1838 tui_delete_invisible_windows.
1839 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1840 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1842 2019-08-13 Tom Tromey <tom@tromey.com>
1844 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1845 tui_add_win_to_layout.
1847 2019-08-13 Tom Tromey <tom@tromey.com>
1849 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1850 * tui/tui-layout.c (tui_default_win_height): Now static.
1852 2019-08-13 Tom Tromey <tom@tromey.com>
1854 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1856 (show_source_disasm_command, show_source_or_disasm_and_command):
1857 Don't check current layout.
1859 2019-08-13 Tom Tromey <tom@tromey.com>
1861 * tui/tui-wingeneral.c (make_all_visible): Remove.
1862 (tui_make_all_invisible): Simplify.
1863 * tui/tui-layout.c (tui_make_all_invisible): Move from
1864 tui-wingeneral.c; simplify.
1865 (show_layout): Hoist call to tui_make_all_invisible.
1866 (show_data): Don't call tui_make_all_invisible.
1868 2019-08-13 Tom Tromey <tom@tromey.com>
1870 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1871 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1873 2019-08-13 Tom Tromey <tom@tromey.com>
1875 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1877 (show_source_disasm_command, show_data)
1878 (show_source_or_disasm_and_command): Don't use
1879 tui_set_current_layout_to.
1880 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1881 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1883 (tui_set_current_layout_to): Remove.
1885 2019-08-13 Tom Tromey <tom@tromey.com>
1887 * tui/tui-layout.c (tui_set_layout): Update.
1888 * tui/tui-data.h (struct tui_layout_def): Remove.
1889 (tui_layout_def): Don't declare.
1890 * tui/tui-data.c (layout_def): Remove.
1891 (tui_layout_def): Remove.
1893 2019-08-13 Tom Tromey <tom@tromey.com>
1895 * tui/tui-winsource.h (struct tui_source_window_base)
1896 <clear_detail>: No longer "override".
1897 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1898 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1899 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1900 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1902 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1904 2019-08-13 Tom Tromey <tromey@adacore.com>
1906 * tracepoint.c: Don't include readline.h or history.h.
1908 2019-08-12 Tom Tromey <tom@tromey.com>
1910 * configure: Rebuild.
1911 * configure.ac: Check for readline 7.
1912 * NEWS: Mention readline 7 requirement.
1915 2019-08-12 Tom Tromey <tom@tromey.com>
1917 * mingw-hdep.c (gdb_select): Remove readline hack.
1919 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1921 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1922 when the function fails.
1924 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1926 * s390-tdep.c (s390_type_align): New function.
1927 (s390_gdbarch_init): Set it as type_align gdbarch method.
1929 2019-08-09 Tom de Vries <tdevries@suse.de>
1932 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
1933 pc_low with relocation offset.
1935 2019-08-07 Tom Tromey <tromey@adacore.com>
1937 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1938 (print_frame_args): Update.
1939 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
1941 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1942 * frame.h (struct frame_arg): Add initializers.
1943 <error>: Now a unique_xmalloc_ptr.
1945 2019-08-07 Alan Hayward <alan.hayward@arm.com>
1947 * NEWS: Expand the Pointer Authentication entry.
1948 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
1949 (aarch64_frame_unmask_lr): ... to this.
1950 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
1951 Call aarch64_frame_unmask_lr.
1952 * frame.c (struct frame_info): Add "masked" variable.
1953 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
1954 (fprint_frame): Check for masked pc.
1955 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
1957 * python/py-framefilter.c (py_print_frame): Check for masked pc.
1958 * stack.c (print_frame): Check for masked pc.
1960 2019-08-06 Tom Tromey <tom@tromey.com>
1962 * stabsread.c (patch_block_stabs, read_one_struct_field)
1963 (read_enum_type): Use obstack_strndup.
1964 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
1965 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
1966 * dwarf2read.c (guess_full_die_structure_name)
1967 (anonymous_struct_prefix): Use obstack_strndup.
1968 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
1969 * c-exp.y (yylex): Use obstack_strndup.
1970 * ada-exp.y (write_object_renaming, write_ambiguous_var)
1971 (write_var_or_type): Use obstack_strndup.
1973 2019-08-06 Tom Tromey <tom@tromey.com>
1975 * symfile.c (reread_symbols): Use obstack_strdup.
1976 * stabsread.c (read_type): Use obstack_strdup.
1977 * gdb_obstack.h (obstack_strdup): New overload.
1978 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
1979 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
1980 (dwarf2_canonicalize_name): Use obstack_strdup.
1981 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
1982 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
1985 2019-08-06 Tom Tromey <tom@tromey.com>
1987 * gdb_obstack.h (obstack_strdup): Define.
1988 * gdb_obstack.c (obstack_strdup): Don't define.
1990 2019-08-06 Tom Tromey <tom@tromey.com>
1992 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
1994 * typeprint.c (typedef_hash_table::find_global_typedef): Use
1996 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
1997 * stabsread.c (common_block_start): Use obstack_strdup.
1998 * objfiles.c (set_objfile_main_name, objfile): Use
2000 * namespace.c (add_using_directive): Use obstack_strdup.
2001 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2002 * jit.c (finalize_symtab): Use obstack_strdup.
2003 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2004 (guess_partial_die_structure_name, partial_die_info::fixup)
2005 (dwarf2_name): Use obstack_strdup.
2006 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2008 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2009 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2011 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2013 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2015 * unittests/help-doc-selftests.c: New file.
2016 * Makefile.in: Add the new file.
2018 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2020 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2021 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2022 the full first line, except when FOR_VALUE_PREFIX. In this case,
2023 the trailing '.' is not output, and the first character is uppercased.
2024 (print_help_for_command): Update call to print_doc_line.
2025 (print_doc_of_command): Likewise.
2026 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2027 * cli/cli-option.c (append_indented_doc): Do not append newline.
2028 (build_help_option): Append newline after first appended_indented_doc
2029 only if a second call is done.
2030 (build_help): Append 2 new lines before each option, except the first
2032 * compile/compile.c (_initialize_compile): Add new lines after
2033 %OPTIONS%, when not at the end of the help.
2034 Change help doc or code
2035 producing the help doc to respect the invariants.
2036 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2037 Also removed the new line after 'Options:', as all other commands
2038 do not put an empty line between 'Options:' and the first option.
2039 * printcmd.c (_initialize_printcmd): Likewise.
2040 * stack.c (_initialize_stack): Likewise.
2041 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2042 incorrectly telling COMMAND is optional.
2043 * ada-lang.c (_initialize_ada_language): Change help doc or code
2044 producing the help doc to respect the invariants.
2045 * ada-tasks.c (_initialize_ada_tasks): Likewise.
2046 * breakpoint.c (_initialize_breakpoint): Likewise.
2047 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2048 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2049 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2050 * cli/cli-style.c (cli_style_option::add_setshow_commands,
2051 _initialize_cli_style): Likewise.
2052 * corelow.c (core_target_info): Likewise.
2053 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2054 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
2055 * filesystem.c (_initialize_filesystem): Likewise.
2056 * frame.c (_initialize_frame): Likewise.
2057 * gnu-nat.c (add_task_commands): Likewise.
2058 * infcall.c (_initialize_infcall): Likewise.
2059 * infcmd.c (_initialize_infcmd): Likewise.
2060 * interps.c (_initialize_interpreter): Likewise.
2061 * language.c (_initialize_language): Likewise.
2062 * linux-fork.c (_initialize_linux_fork): Likewise.
2063 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
2064 * maint.c (_initialize_maint_cmds): Likewise.
2065 * memattr.c (_initialize_mem): Likewise.
2066 * printcmd.c (_initialize_printcmd): Likewise.
2067 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
2069 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
2070 * record-btrace.c (_initialize_record_btrace): Likewise.
2071 * record-full.c (_initialize_record_full): Likewise.
2072 * record.c (_initialize_record): Likewise.
2073 * regcache-dump.c (_initialize_regcache_dump): Likewise.
2074 * regcache.c (_initialize_regcache): Likewise.
2075 * remote.c (add_packet_config_cmd, init_remote_threadtests,
2076 _initialize_remote): Likewise.
2077 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2078 * serial.c (_initialize_serial): Likewise.
2079 * skip.c (_initialize_step_skip): Likewise.
2080 * source.c (_initialize_source): Likewise.
2081 * stack.c (_initialize_stack): Likewise.
2082 * symfile.c (_initialize_symfile): Likewise.
2083 * symtab.c (_initialize_symtab): Likewise.
2084 * target-descriptions.c (_initialize_target_descriptions): Likewise.
2085 * top.c (init_main): Likewise.
2086 * tracefile-tfile.c (tfile_target_info): Likewise.
2087 * tracepoint.c (_initialize_tracepoint): Likewise.
2088 * tui/tui-win.c (_initialize_tui_win): Likewise.
2089 * utils.c (add_internal_problem_command): Likewise.
2090 * valprint.c (value_print_option_defs): Likewise.
2092 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
2095 * configure.ac: Drop enable-libmcheck support.
2096 * configure, config.in: Rebuild.
2097 * libmcheck.m4: Remove.
2098 * acinclude.m4: Don't include it.
2099 * Makefile.in: Don't distribute it.
2100 * top.c (print_gdb_configuration): Don't mention it.
2102 2019-08-06 Tom Tromey <tom@tromey.com>
2104 * utils.c (set_output_style): Sometimes pass stream to
2106 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
2107 * record-btrace.c (btrace_insn_history): Update.
2108 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
2110 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2111 Update initializers.
2112 <m_uiout>: New field.
2114 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2115 Remove "uiout" parameter.
2116 (dump_insns): Update.
2117 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2118 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2120 2019-08-06 Christian Biesinger <cbiesinger@google.com>
2122 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2123 (error_in_psymtab_expansion): Likewise.
2124 (lookup_symbol_via_quick_fns): Likewise.
2125 (basic_lookup_transparent_type_quick): Likewise.
2126 (basic_lookup_transparent_type_1): Likewise.
2128 2019-08-06 Tom Tromey <tromey@adacore.com>
2130 * source.c (last_source_error): Now bool.
2131 (print_source_lines_base): Make "noprint" bool. Only open
2132 source file when last_source_visited changes.
2134 2019-08-06 Tom Tromey <tromey@adacore.com>
2136 * annotate.c (annotate_source_line): Use g_source_cache.
2137 * source-cache.c (source_cache::get_plain_source_lines): Change
2138 parameters. Populate m_offset_cache.
2139 (source_cache::ensure): New method.
2140 (source_cache::get_line_charpos): New method.
2141 (extract_lines): Move lower. Change parameters.
2142 (source_cache::get_source_lines): Move lower.
2143 * source-cache.h (class source_cache): Update comment.
2144 <get_line_charpos>: New method.
2145 <get_source_lines>: Update comment.
2146 <clear>: Clear m_offset_cache.
2147 <get_plain_source_lines>: Change parameters.
2148 <ensure>: New method
2149 <m_offset_cache>: New member.
2150 * source.c (forget_cached_source_info_for_objfile): Update.
2151 (info_source_command): Use g_source_cache.
2152 (find_source_lines, open_source_file_with_line_charpos): Remove.
2153 (print_source_lines_base, search_command_helper): Use g_source_cache.
2154 * source.h (open_source_file_with_line_charpos): Don't declare.
2155 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2156 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2159 2019-08-06 Tom Tromey <tromey@adacore.com>
2161 * source-cache.c (source_cache::get_plain_source_lines):
2162 Remove "first_line" and "last_line" parameters.
2163 (source_cache::get_source_lines): Cache plain text.
2164 * source-cache.h (class source_cache)
2165 <get_plain_source_lines>: Update.
2167 2019-08-06 Tom Tromey <tromey@adacore.com>
2169 * source-cache.c (extract_lines): No longer a method.
2170 Changed type of parameter. Include final newline.
2171 (selftests::extract_lines_test): New function.
2172 (_initialize_source_cache): Likewise.
2173 * source-cache.h (class source_cache)
2174 <extract_lines>: Don't declare.
2176 2019-08-06 Tom Tromey <tromey@adacore.com>
2178 * breakpoint.c (init_breakpoint_sal): Update.
2179 (breakpoint): Update.
2180 * breakpoint.h (struct breakpoint) <filter>: Now a
2183 2019-08-05 Christian Biesinger <cbiesinger@google.com>
2185 * NEWS: Mention dictionary access on blocks.
2186 * python/py-block.c (blpy_getitem): New function.
2187 (block_object_as_mapping): New struct.
2188 (block_object_type): Use new struct for tp_as_mapping field.
2190 2019-08-05 Christian Biesinger <cbiesinger@google.com>
2192 * objfiles.h (objfile): Add a comment describing partial symbols.
2194 2019-08-05 Tom Tromey <tromey@adacore.com>
2196 * compile/compile.c (_initialize_compile): Use _(), not N_().
2197 * thread.c (_initialize_thread): Use _(), not N_().
2198 * stack.c (_initialize_stack): Use _(), not N_().
2199 * printcmd.c (_initialize_printcmd): Use _(), not N_().
2201 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2203 * dwarf2read.c (struct dw2_symtab_iterator):
2204 <want_specific_block>: Remove.
2205 <block_index>: Change type to gdb::optional.
2206 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2207 change type of BLOCK_INDEX parameter to gdb::optional.
2208 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2209 (dw2_lookup_symbol): Don't pass argument for
2210 WANT_SPECIFIC_BLOCK.
2211 (dw2_expand_symtabs_for_function): Don't pass argument for
2212 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2213 (class dw2_debug_names_iterator)
2214 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2215 parameter, change BLOCK_INDEX type to gdb::optional.
2216 <m_want_specific_block>: Remove.
2217 <m_block_index>: Change type to gdb::optional.
2218 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2219 gdb::optional. Re-write in function of gdb::optional.
2220 (dw2_debug_names_lookup_symbol): Don't pass argument for
2221 WANT_SPECIFIC_BLOCK.
2222 (dw2_debug_names_expand_symtabs_for_function): Don't pass
2223 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
2226 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2228 * NEWS: Mention changes to "info sources" command.
2230 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2232 * symtab.c (filename_partial_match_opts): New struct type.
2233 (struct output_source_filename_data): New members
2234 regexp, c_regexp, partial_match.
2235 (output_source_filename): Use new members to decide to print file.
2236 (info_sources_option_defs): New variable.
2237 (make_info_sources_options_def_group, print_info_sources_header,
2238 info_sources_command_completer):
2240 (info_sources_command): Read new optional arguments.
2241 (_initialize_symtab): Update info sources help.
2243 2019-08-02 Alexandre Oliva <oliva@adacore.com>
2245 * ada-lang.c (exception_support_info_v0): Renamed from...
2246 (default_exception_support_info): ... this. Create new
2248 (ada_has_this_exception_support): Look up catch_handlers_sym.
2249 (ada_exception_support_info_sniffer): Try v0 after default.
2251 2019-08-01 Tom Tromey <tromey@adacore.com>
2253 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
2256 2019-08-01 Christian Biesinger <cbiesinger@google.com>
2258 * s12z-tdep.c: Fix include path for s12z-opc.h.
2260 2019-08-01 Alan Hayward <alan.hayward@arm.com>
2262 * NEWS: Require GNU make 3.82.
2264 2019-07-16 Tom Tromey <tom@tromey.com>
2266 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2269 2019-07-30 Tom Tromey <tromey@adacore.com>
2271 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2273 2019-07-30 Kevin Buettner <kevinb@redhat.com>
2275 * printcmd.c (print_address_symbolic): Print negative offsets.
2276 (build_address_symbolic): Force signed arithmetic when computing
2279 2019-07-30 Christian Biesinger <cbiesinger@google.com>
2281 PR/24474: Add a function to lookup static variables.
2282 * NEWS: Mention this new function.
2283 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2284 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2285 * python/python.c (python_GdbMethods): Add new function.
2287 2019-07-29 Christian Biesinger <cbiesinger@google.com>
2289 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2290 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2291 (objfpy_lookup_static_symbol): New function.
2292 (objfile_object_methods): Add new functions.
2294 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2296 * NEWS: Mention 'set|show print frame-info'. Mention new
2297 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2298 backtrace argument. Mention that python frame filtering code
2299 is now consistent with what 'backtrace' command prints.
2301 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2303 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2305 (print_frame_info_auto, print_frame_info_source_line,
2306 print_frame_info_location, print_frame_info_source_and_location,
2307 print_frame_info_location_and_address, print_frame_info_short_location):
2309 (struct frame_print_options): New member print_frame_info.
2310 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
2311 * stack.h (get_user_print_what_frame_info): New declaration.
2312 (frame_show_address): New declaration.
2313 * stack.c (print_frame_arguments_choices): New value 'presence'.
2314 (print_frame_info_auto, print_frame_info_source_line,
2315 print_frame_info_location, print_frame_info_source_and_location,
2316 print_frame_info_location_and_address, print_frame_info_short_location,
2317 print_frame_info_choices, print_frame_info_print_what): New definitions.
2318 (print_frame_args): Only print dots for args if print frame-arguments
2320 (frame_print_option_defs): New element for "frame-info".
2321 (get_user_print_what_frame_info): New function.
2322 (frame_show_address): Make non static. Move comment to stack.h.
2323 (print_frame_info_to_print_what): New function.
2324 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2325 to decide what to print.
2326 (backtrace_command_1): Handle the new print_frame_arguments_presence
2328 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2329 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2330 (py_print_frame): In non-mi mode, use LOCATION as default for
2331 print_what, similarly to frame information printed directly by
2332 backtrace command. Handle frame-info user option in non MI mode.
2334 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2336 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2337 Add case for debugging 32-bit target on 64-bit host. Revise
2340 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2342 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2343 instead of find_function_entry_range_from_pc.
2345 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2347 * stack.c (find_frame_funname): Remove code which preferred
2348 minsym over symtab sym in "certain pathological cases".
2350 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2351 parameter. Change type of "do_demangle" to bool.
2352 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2353 Pass suitable "prefer_sym_over_minsym" flag to
2354 build_address_symbolic(). Don't output "+" for negative offsets.
2355 * printcmd.c (print_address_symbolic): Update invocation of
2356 build_address_symbolic to include a "prefer_sym_over_minsym"
2358 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2359 Restrict cases in which use of minimal symbol is preferred to that
2360 of a found symbol. Update comments.
2362 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2363 for entry pc when entry pc is out of range for that FDE.
2365 2019-07-26 Brian Callahan <bcallah@openbsd.org>
2368 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2371 2019-07-25 Christian Biesinger <cbiesinger@google.com>
2373 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2374 this function's Python signature.
2377 2019-07-24 Christian Biesinger <cbiesinger@google.com>
2379 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2380 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2381 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2382 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2383 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2386 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2388 * h8300-tdep.c (h8300_register_name_common): New.
2389 h8300_register_name): Use h8300_register_name_common.
2390 (h8300s_register_name): Likewise.
2391 (h8300sx_register_name): Likewise.
2392 (h8300h_register_nam): New.
2393 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2396 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2398 * arm-tdep.c (arm_skip_cmse_entry): New function.
2399 (arm_is_sgstubs_section): New function.
2400 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2402 2019-07-22 Tom Tromey <tom@tromey.com>
2404 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2407 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2409 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2412 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2414 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2415 so that GDB doesn't match any msymbols when searching in the
2417 (print_symbol_info): Print using typedef_print or type_print based
2418 on the type of the symbol. Add updated FIXME comment moved from...
2419 (_initialize_symtab): ... move and update FIXME comment to above.
2421 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2423 * NEWS: Mention adding -q option to "info types".
2424 * symtab.c (struct info_types_options): New struct.
2425 (info_types_options_defs): New variable.
2426 (make_info_types_options_def_group): New function.
2427 (info_types_command): Use gdb::option framework to parse options.
2428 (info_types_command_completer): New function.
2429 (_initialize_symtab): Extend the help text on "info types" and
2430 register command completer.
2432 2019-07-21 Christian Biesinger <cbiesinger@google.com>
2434 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2435 (lookup_symbol_in_objfile): Change int to block_enum and add a
2436 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2438 2019-07-20 Christian Biesinger <cbiesinger@google.com>
2440 * MAINTAINERS (Write After Approval): Add self.
2442 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2444 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2445 instruction to the dummy code region.
2447 2019-07-19 Tom Tromey <tromey@adacore.com>
2449 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2450 (ARGSUSED, PARAMS, __func__): Remove rules.
2452 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2454 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
2455 * features/arm/arm-with-iwmmxt.c: Remove.
2456 * features/arm/arm-with-iwmmxt.xml: Remove.
2457 * features/arm/arm-with-m-fpa-layout.c: Remove.
2458 * features/arm/arm-with-m-fpa-layout.xml: Remove.
2459 * features/arm/arm-with-m-vfp-d16.c: Remove.
2460 * features/arm/arm-with-m-vfp-d16.xml: Remove.
2461 * features/arm/arm-with-m.c: Remove.
2462 * features/arm/arm-with-m.xml: Remove.
2463 * features/arm/arm-with-neon.c: Remove.
2464 * features/arm/arm-with-neon.xml: Remove.
2465 * features/arm/arm-with-vfpv2.c: Remove.
2466 * features/arm/arm-with-vfpv2.xml: Remove.
2467 * features/arm/arm-with-vfpv3.c: Remove.
2468 * features/arm/arm-with-vfpv3.xml: Remove.
2470 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2472 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
2474 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2476 * arch/aarch32.c (aarch32_create_target_description): Create
2477 target descriptions using features.
2478 * arch/arm.c (arm_create_target_description)
2479 (arm_create_mprofile_target_description): Likewise.
2480 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
2482 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2484 * Makefile.in: Add new files.
2485 * aarch32-tdep.c: New file.
2486 * aarch32-tdep.h: New file.
2487 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2488 Call aarch32_read_description.
2489 * arch/aarch32.c: New file.
2490 * arch/aarch32.h: New file.
2491 * arch/arm.c (arm_create_target_description)
2492 (arm_create_mprofile_target_description): New function.
2493 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
2494 (arm_create_target_description)
2495 (arm_create_mprofile_target_description): New declaration.
2496 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
2497 read_description functions.
2498 * arm-linux-nat.c (arm_linux_nat_target::read_description):
2500 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2501 * arm-tdep.c (tdesc_arm_list): New variable.
2502 (arm_register_g_packet_guesses): Call create description functions.
2503 (arm_read_description) (arm_read_mprofile_description): New
2505 * arm-tdep.h (arm_read_description)
2506 (arm_read_mprofile_description): Add declaration.
2507 * configure.tgt: Add new files.
2509 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
2511 * top.c (new_ui_command): Open specified terminal just once.
2513 2019-07-18 Tom Tromey <tromey@adacore.com>
2515 * symtab.c (main_name): Constify return type.
2516 * symfile.c (set_initial_language): Update.
2517 * symtab.h (main_name): Constify return type.
2519 2019-07-17 Tom Tromey <tom@tromey.com>
2521 * tui/tui-winsource.c (tui_update_source_window)
2522 (tui_update_source_window_as_is)
2523 (tui_update_source_windows_with_line): Remove return.
2524 * tui/tui-disasm.c (tui_show_disassem)
2525 (tui_show_disassem_and_update_source): Remove return.
2526 * tui/tui.c (tui_reset): Remove return.
2527 * tui/tui-wingeneral.c
2528 (tui_check_and_display_highlight_if_needed): Remove return.
2530 2019-07-17 Tom Tromey <tom@tromey.com>
2532 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2534 2019-07-17 Tom Tromey <tom@tromey.com>
2536 * tui/tui-winsource.h (struct tui_exec_info_window)
2537 (struct tui_source_window_base): Move from tui-data.h.
2538 * tui/tui-winsource.c: Move many method definitions from
2539 elsewhere. Remove "structuring" comments.
2540 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
2541 (tui_source_window_base::refresh_window): Move to
2543 * tui/tui-win.c (tui_source_window_base::refresh_all)
2544 (tui_source_window_base::update_tab_width)
2545 (tui_source_window_base::set_new_height)
2546 (tui_source_window_base::do_make_visible_with_new_height): Move to
2548 * tui/tui-source.h: Update.
2549 * tui/tui-source.c (tui_source_window_base::reset): Move to
2551 * tui/tui-disasm.h: Update.
2552 * tui/tui-data.h (struct tui_exec_info_window): Move to
2554 (struct tui_source_window_base): Likewise.
2555 * tui/tui-data.c (tui_source_window_base::clear_detail)
2556 (tui_source_window_base, ~tui_source_window_base): Move to
2559 2019-07-17 Tom Tromey <tom@tromey.com>
2561 * tui/tui-win.c (tui_resize_all)
2562 (tui_source_window_base::update_tab_width)
2563 (tui_adjust_win_heights): Update.
2564 (tui_win_info::make_invisible_and_set_new_height): Rename from
2565 make_invisible_and_set_new_height.
2566 * tui/tui-data.h (struct tui_win_info)
2567 <make_invisible_and_set_new_height>: New method.
2569 2019-07-17 Tom Tromey <tom@tromey.com>
2571 * tui/tui.c: Update.
2572 * tui/tui-source.h (struct tui_source_window): Move from
2574 * tui/tui-layout.c: Update.
2575 * tui/tui-disasm.c: Update.
2576 * tui/tui-data.h (struct tui_source_window): Move to
2579 2019-07-17 Tom Tromey <tom@tromey.com>
2581 * tui/tui-disasm.h (struct tui_disasm_window): Move from
2583 * tui/tui-data.h (struct tui_disasm_window): Move to
2586 2019-07-17 Tom Tromey <tom@tromey.com>
2588 * tui/tui-regs.h (struct tui_data_item_window): Move from
2590 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
2591 * tui/tui-data.h (struct tui_data_item_window): Move to
2593 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
2595 2019-07-17 Tom Tromey <tom@tromey.com>
2597 * tui/tui.c: Update.
2598 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
2599 (tui_cmd_window::max_height): Move to tui-command.c.
2600 * tui/tui-layout.c: Update.
2601 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
2602 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
2604 * tui/tui-command.h (struct tui_cmd_window): Move from
2606 * tui/tui-command.c: Remove "structuring" comments.
2607 (tui_cmd_window::clear_detail)
2608 (tui_cmd_window::do_make_visible_with_new_height)
2609 (tui_cmd_window::max_height): Move from elsewhere.
2611 2019-07-17 Tom Tromey <tom@tromey.com>
2613 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
2615 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
2616 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
2618 2019-07-17 Tom Tromey <tom@tromey.com>
2620 * tui/tui.c: Update.
2621 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
2623 * tui/tui-windata.h: Remove file.
2624 * tui/tui-windata.c: Remove file.
2625 * tui/tui-win.c (tui_data_window::set_new_height)
2626 (tui_data_window::do_make_visible_with_new_height): Move to
2628 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
2629 * tui/tui-regs.c: Remove "structuring" comments.
2630 (tui_data_window::first_data_item_displayed)
2631 (tui_data_window::delete_data_content_windows)
2632 (tui_data_window::erase_data_content)
2633 (tui_data_window::display_all_data)
2634 (tui_data_window::refresh_all)
2635 (tui_data_window::do_scroll_vertical)
2636 (tui_data_window::clear_detail, tui_data_window::set_new_height)
2637 (tui_data_window::do_make_visible_with_new_height)
2638 (tui_data_window::refresh_window): Move from elsewhere.
2639 (_initialize_tui_regs): Move to end of file.
2640 * tui/tui-layout.c: Update.
2641 * tui/tui-hooks.c: Update.
2642 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
2643 * tui/tui-data.c (tui_data_window::clear_detail): Move to
2645 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
2647 2019-07-17 Tom Tromey <tom@tromey.com>
2649 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
2652 2019-07-17 Tom Tromey <tom@tromey.com>
2654 * tui/tui-win.c (tui_source_window_base::set_new_height)
2655 (tui_source_window_base::do_make_visible_with_new_height): Use
2656 m_has_locator field directly.
2657 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
2659 (struct tui_source_window_base) <has_locator>: Likewise.
2661 2019-07-17 Tom Tromey <tom@tromey.com>
2663 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
2665 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
2667 * tui/tui-win.c (tui_source_window_base::set_new_height)
2668 (tui_source_window_base::set_new_height)
2669 (make_invisible_and_set_new_height)
2670 (tui_source_window_base::do_make_visible_with_new_height)
2671 (tui_source_window_base::do_make_visible_with_new_height):
2673 * tui/tui-layout.c (show_source_disasm_command, show_data)
2674 (show_source_or_disasm_and_command): Update.
2675 * tui/tui-layout.c (show_layout): Update.
2677 2019-07-17 Tom Tromey <tom@tromey.com>
2679 * tui/tui-layout.c (make_data_window): Remove.
2680 (show_data): Unify creation and re-initialization cases.
2682 2019-07-17 Tom Tromey <tom@tromey.com>
2684 * tui/tui-layout.c (make_source_window, make_disasm_window):
2686 (show_data): Unify creation and re-initialization cases.
2688 2019-07-17 Tom Tromey <tom@tromey.com>
2690 * tui/tui-layout.c (make_command_window): Remove.
2691 (show_source_disasm_command, show_source_or_disasm_and_command):
2692 Unify creation and re-initialization cases.
2694 2019-07-17 Tom Tromey <tom@tromey.com>
2696 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
2697 creation and re-initialization cases.
2699 2019-07-17 Tom Tromey <tom@tromey.com>
2701 * tui/tui-regs.c (tui_get_register): Return void.
2703 2019-07-17 Tom Tromey <tom@tromey.com>
2705 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
2708 2019-07-17 Tom Tromey <tom@tromey.com>
2710 * tui/tui-layout.c (show_source_disasm_command): Simplify window
2713 2019-07-17 Tom Tromey <tom@tromey.com>
2715 * tui/tui.h (tui_set_layout_by_name): Don't declare.
2716 * tui/tui-regs.c (tui_reg_layout): New function.
2717 (tui_show_registers, tui_reg_command): Use it.
2718 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
2719 (tui_layout_command): Rename from tui_set_layout_by_name. Change
2721 (tui_layout_command): Remove.
2723 2019-07-17 Tom Tromey <tom@tromey.com>
2725 * tui/tui-layout.h (tui/tui-layout): Return void.
2726 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
2728 2019-07-17 Tom Tromey <tom@tromey.com>
2730 * tui/tui-layout.c (show_source_disasm_command, show_data):
2732 (reset_locator): Remove.
2733 (show_source_or_disasm_and_command): Update.
2735 2019-07-17 Tom Tromey <tom@tromey.com>
2737 * tui/tui-source.c (tui_source_window_base::reset): Remove
2739 * tui/tui-layout.c (make_command_window, make_source_window)
2740 (make_disasm_window, make_data_window)
2741 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
2742 (reset_locator, show_source_or_disasm_and_command): Update.
2743 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
2745 (struct tui_source_window_base) <reset>: Likewise.
2747 2019-07-17 Tom Tromey <tom@tromey.com>
2749 * tui/tui-layout.c (show_source_disasm_command): Use
2751 (reset_locator): New function.
2752 (init_and_make_win): Remove.
2753 (show_source_or_disasm_and_command): Use reset_locator.
2755 2019-07-17 Tom Tromey <tom@tromey.com>
2757 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
2759 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
2761 * tui/tui-source.c (tui_source_window_base::reset): New method.
2762 * tui/tui-layout.c (make_command_window): Don't call
2764 (make_source_window, make_disasm_window): Don't call
2765 make_source_or_disasm_window.
2766 (make_data_window): Don't call init_and_make_win. Change calling
2768 (show_source_disasm_command, show_data): Simplify.
2769 (make_source_or_disasm_window): Remove.
2770 (show_source_or_disasm_and_command): Simplify.
2771 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
2772 (struct tui_source_window_base) <reset>: Likewise.
2773 <execution_info>: Remove initializer.
2774 * tui/tui-data.c (tui_source_window_base): Initialize
2777 2019-07-17 Tom Tromey <tom@tromey.com>
2779 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
2782 2019-07-17 Tom Tromey <tom@tromey.com>
2784 * tui/tui.c (tui_rl_other_window): Update.
2785 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
2786 superclass method first. Always iterate over regs_content.
2787 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
2789 * tui/tui-win.c (tui_set_focus_command): Update.
2791 2019-07-17 Tom Tromey <tom@tromey.com>
2793 * tui/tui-win.c (tui_set_focus_command): Rename from
2794 tui_set_focus. Call tui_enable.
2795 (tui_set_focus_command): Remove.
2797 2019-07-17 Tom Tromey <tom@tromey.com>
2799 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2801 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2803 (tui_data_window::refresh_window): Call refresh_window on data
2804 items. Always call superclass refresh_window.
2805 (tui_win_info::refresh): Remove.
2806 (tui_source_window_base::refresh_window): Update.
2807 (tui_refresh_all): Update.
2808 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2810 (show_source_or_disasm_and_command): Likewise.
2811 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2812 (struct tui_source_window_base) <refresh>: Likewise.
2814 2019-07-17 Tom Tromey <tom@tromey.com>
2816 * tui/tui-winsource.c (tui_clear_source_content)
2817 (tui_show_source_content): Update.
2818 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2819 whether content is empty.
2820 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2823 2019-07-17 Tom Tromey <tom@tromey.com>
2825 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2827 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2828 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2830 2019-07-17 Tom Tromey <tom@tromey.com>
2832 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2833 (struct tui_data_item_window): Update.
2835 2019-07-17 Tom Tromey <tom@tromey.com>
2837 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2838 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2841 2019-07-17 Tom Tromey <tom@tromey.com>
2843 * tui/tui-winsource.h (tui_erase_source_content)
2844 (tui_clear_source_content): Remove "display_prompt" parameter.
2845 * tui/tui-winsource.c (tui_update_source_window_as_is)
2846 (tui_update_source_windows_with_addr): Update.
2847 (tui_clear_source_content): Remove "display_prompt" parameter.
2848 (tui_erase_source_content): Likewise. Simplify.
2849 (tui_show_source_content): Update.
2850 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2851 * tui/tui-stack.c (tui_show_frame_info): Update.
2852 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2855 2019-07-17 Tom Tromey <tom@tromey.com>
2857 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2858 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2860 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2863 2019-07-17 Tom Tromey <tom@tromey.com>
2865 * tui/tui-winsource.c (tui_clear_source_content)
2866 (tui_show_source_content, tui_show_exec_info_content)
2867 (tui_clear_exec_info_content): Update.
2868 * tui/tui-stack.c (tui_show_locator_content): Update.
2869 (tui_show_frame_info): Update.
2870 * tui/tui-source.h (tui_source_window): Don't declare.
2871 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2872 from tui_source_is_displayed.
2873 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2875 (struct tui_source_window_base) <content_in_use>: New field. Now
2877 (struct tui_source_window) <showing_source_p>: New method.
2878 (TUI_SRC_WIN): Change cast.
2879 * tui/tui-data.c (tui_initialize_static_data): Update.
2881 2019-07-17 Tom Tromey <tom@tromey.com>
2883 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2885 * tui/tui-source.c (tui_source_window::location_matches_p): New
2887 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2889 * tui/tui-data.h (struct tui_source_window_base)
2890 <location_matches_p>: New method.
2891 (struct tui_source_window, struct tui_disasm_window)
2892 <location_matches_p>: Likewise.
2894 2019-07-17 Tom Tromey <tom@tromey.com>
2896 * tui/tui-win.c (tui_set_win_height_command): Rename from
2898 (tui_set_win_height_command): Remove.
2900 2019-07-17 Tom Tromey <tom@tromey.com>
2902 * tui/tui-source.c (tui_source_window): New constructor. Add
2904 (~tui_source_window): New destructor.
2905 (tui_source_window::style_changed): New method.
2906 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2907 (tui_attach_detach_observers): Update.
2908 * tui/tui-data.h (struct tui_source_window): Make constructor not
2909 inline. Add destructor.
2910 (struct tui_source_window) <style_changed>: New method.
2911 <m_observable>: New member.
2913 2019-07-17 Tom Tromey <tom@tromey.com>
2915 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2916 * tui/tui-win.c (tui_resize_all): Fix typo.
2918 2019-07-17 Tom Tromey <tom@tromey.com>
2920 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2921 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2922 (tui_refresh_all): Remove "list" parameter. Use foreach.
2923 * tui/tui-win.c (window_name_completer): Use foreach.
2924 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2925 (update_tab_width): Likewise.
2926 * tui/tui-layout.c (show_layout): Update.
2927 * tui/tui-data.h (class tui_window_iterator): New.
2928 (struct all_tui_windows): New.
2929 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
2931 2019-07-17 Tom Tromey <tom@tromey.com>
2933 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
2934 parameter. Don't reference globals.
2935 (tui_reg_command): Update.
2937 2019-07-17 Tom Tromey <tom@tromey.com>
2939 * tui/tui-regs.c (tui_show_registers): Simplify.
2941 2019-07-17 Tom Tromey <tom@tromey.com>
2943 * tui/tui-regs.c (tui_show_registers): Update.
2944 (tui_show_register_group): Add win_info parameter.
2946 2019-07-17 Tom Tromey <tom@tromey.com>
2948 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
2949 Rename from tui_display_reg_element_at_line.
2950 (tui_data_window::display_registers_from_line): Update.
2951 * tui/tui-data.h (struct tui_data_window)
2952 <display_reg_element_at_line>: New method.
2954 2019-07-17 Tom Tromey <tom@tromey.com>
2956 * tui/tui-regs.h (tui_display_registers_from)
2957 (tui_display_registers_from_line): Don't declare.
2958 * tui/tui-windata.c (tui_data_window::display_all_data)
2959 (tui_data_window::refresh_all)
2960 (tui_data_window::do_scroll_vertical): Update.
2961 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
2962 from tui_display_registers_from.
2963 (tui_display_reg_element_at_line): Update.
2964 (tui_data_window::display_registers_from_line): Rename from
2965 tui_display_registers_from_line.
2966 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
2967 display_registers_from_line>: New methods.
2969 2019-07-17 Tom Tromey <tom@tromey.com>
2971 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
2972 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
2973 from tui_erase_data_content.
2974 (tui_data_window::display_all_data)
2975 (tui_data_window::refresh_all)
2976 (tui_data_window::do_scroll_vertical): Update.
2977 * tui/tui-regs.c (tui_show_registers): Update.
2978 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
2981 2019-07-17 Tom Tromey <tom@tromey.com>
2983 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
2986 (tui_data_window::delete_data_content_windows): Rename from
2987 tui_delete_data_content_windows.
2988 (tui_data_window::display_all_data)
2989 (tui_data_window::do_scroll_vertical): Update.
2990 * tui/tui-data.h (struct tui_data_window)
2991 <delete_data_content_windows>: New method.
2993 2019-07-17 Tom Tromey <tom@tromey.com>
2995 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
2996 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
2998 2019-07-17 Tom Tromey <tom@tromey.com>
3000 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3001 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3002 from tui_display_all_data.
3004 (tui_data_window::do_make_visible_with_new_height): Update.
3005 * tui/tui-regs.c (tui_show_registers): Update.
3006 * tui/tui-layout.c (tui_set_layout): Update.
3007 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3010 2019-07-17 Tom Tromey <tom@tromey.com>
3012 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3013 * tui/tui-windata.c (tui_display_data_from): Remove.
3014 (tui_data_window::refresh_all): Update.
3016 2019-07-17 Tom Tromey <tom@tromey.com>
3018 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3019 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3020 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3021 tui_display_registers_from_line.
3022 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3023 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3024 "force_display" parameter.
3026 2019-07-17 Tom Tromey <tom@tromey.com>
3028 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3030 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3031 Rename from tui_first_reg_element_no_inline.
3032 (tui_display_reg_element_at_line)
3033 (tui_display_registers_from_line): Update.
3034 * tui/tui-data.h (struct tui_data_window)
3035 <first_reg_element_no_inline>: New method.
3037 2019-07-17 Tom Tromey <tom@tromey.com>
3039 * tui/tui-windata.c (tui_display_data_from)
3040 (tui_data_window::do_scroll_vertical): Update.
3041 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3042 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3043 Rename from tui_line_from_reg_element_no.
3044 (tui_display_registers_from_line): Update.
3045 * tui/tui-data.h (struct tui_data_window)
3046 <line_from_reg_element_no>: New method.
3048 2019-07-17 Tom Tromey <tom@tromey.com>
3050 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3051 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3052 tui_last_regs_line_no.
3053 (tui_display_reg_element_at_line)
3054 (tui_display_registers_from_line): Update.
3055 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
3058 2019-07-17 Tom Tromey <tom@tromey.com>
3061 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
3062 (tui_update_breakpoint_info): Add "being_deleted" parameter.
3063 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3064 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
3065 (tui_update_breakpoint_info): Likewise.
3066 * tui/tui-hooks.c (tui_event_create_breakpoint)
3067 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
3070 2019-07-17 Tom Tromey <tom@tromey.com>
3072 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
3074 2019-07-17 Tom Tromey <tom@tromey.com>
3076 * tui/tui-winsource.c (tui_update_source_window_as_is)
3077 (tui_update_source_windows_with_addr): Update.
3078 * tui/tui-source.h (tui_set_source_content)
3079 (tui_show_symtab_source): Add "win_info" parameter.
3080 * tui/tui-source.c (tui_set_source_content): Add "win_info"
3082 (tui_show_symtab_source): Likewise.
3084 2019-07-17 Tom Tromey <tom@tromey.com>
3086 * tui/tui-wingeneral.c
3087 (tui_check_and_display_highlight_if_needed): Check can_highlight.
3089 2019-07-17 Tom Tromey <tom@tromey.com>
3091 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
3092 (struct tui_cmd_window) <can_scroll>: New method.
3093 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
3096 2019-07-17 Tom Tromey <tromey@adacore.com>
3098 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
3099 do_field_signed>: Rename. Change type of "value".
3100 * ui-out.c (ui_out::field_signed): Rename from field_int.
3101 Change type of "value".
3102 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
3104 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
3105 do_field_int. Change type of "value".
3106 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
3107 do_field_int. Change type of "value".
3108 * tracepoint.c (trace_status_mi, tfind_1)
3109 (print_one_static_tracepoint_marker): Update.
3110 * thread.c (print_thread_info_1, print_selected_thread_frame):
3112 * stack.c (print_frame, print_frame_info): Update.
3113 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3115 * source.c (print_source_lines_base): Update.
3116 * skip.c (info_skip_command): Update.
3117 * record-btrace.c (btrace_ui_out_decode_error)
3118 (btrace_call_history_src_line): Update.
3119 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3121 * progspace.c (print_program_space): Update.
3122 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3123 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3124 do_field_int. Change type of "value".
3125 * mi/mi-out.c (mi_ui_out::do_table_begin)
3126 (mi_ui_out::do_table_header): Update.
3127 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3129 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3130 (mi_cmd_data_list_changed_registers, output_register)
3131 (mi_cmd_data_read_memory, mi_load_progress)
3132 (mi_cmd_trace_frame_collected): Update.
3133 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3135 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3136 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3137 (mi_cmd_var_list_children, varobj_update_one): Update.
3138 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3139 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3140 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3141 * inferior.c (print_inferior): Update.
3142 * gdb_bfd.c (print_one_bfd): Update.
3143 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3145 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3146 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3147 do_field_int. Change type of "value".
3148 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3149 do_field_int. Change type of "value".
3150 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3151 (print_one_breakpoint_location, print_it_catch_fork)
3152 (print_one_catch_fork, print_it_catch_vfork)
3153 (print_one_catch_vfork, print_it_catch_solib)
3154 (print_it_catch_exec, print_it_ranged_breakpoint)
3155 (print_mention_watchpoint, print_mention_masked_watchpoint)
3156 (bkpt_print_it, update_static_tracepoint): Update.
3157 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3158 * break-catch-syscall.c (print_it_catch_syscall): Update.
3159 * ada-tasks.c (print_ada_task_info): Update.
3160 * ada-lang.c (print_it_exception, print_mention_exception):
3163 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3165 PR breakpoints/24541
3166 * gdbarch.c: Regenerate.
3167 * gdbarch.h: Regenerate.
3168 * gdbarch.sh: Adjust return type and parameter types for
3169 'stap_adjust_register'.
3170 (i386_stap_adjust_register): Adjust signature and return new
3172 * stap-probe.c (stap_parse_register_operand): Adjust use of
3173 'gdbarch_stap_adjust_register'.
3175 2019-07-17 Tom Tromey <tromey@adacore.com>
3177 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
3179 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
3181 (struct s390_process_info): Add initializers.
3182 (s390_add_process): Use new.
3183 (s390_linux_nat_target::low_forget_process): Use delete.
3184 (s390_linux_nat_target::low_new_fork)
3185 (s390_linux_nat_target::stopped_by_watchpoint)
3186 (s390_linux_nat_target::low_prepare_to_resume)
3187 (s390_linux_nat_target::insert_watchpoint)
3188 (s390_linux_nat_target::insert_hw_breakpoint)
3189 (s390_linux_nat_target::remove_watchpoint)
3190 (s390_linux_nat_target::remove_hw_breakpoint): Update.
3192 2019-07-16 John Baldwin <jhb@FreeBSD.org>
3194 * aarch64-fbsd-nat.c: Include regcache.h.
3195 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
3197 (aarch64_fbsd_nat_target::fetch_registers)
3198 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
3200 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
3202 2019-07-16 John Baldwin <jhb@FreeBSD.org>
3204 * fbsd-nat.c: Include gdbarch.h.
3206 2019-07-15 Tom Tromey <tromey@adacore.com>
3208 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3210 2019-07-15 Tom Tromey <tromey@adacore.com>
3212 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3213 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3214 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3215 * cli-out.c (cli_ui_out::do_field_int): New method.
3216 * ui-out.c (ui_out::field_unsigned): New method.
3217 * symfile.c (generic_load): Use field_unsigned.
3218 (print_transfer_performance): Likewise.
3219 * record-btrace.c (ui_out_field_uint): Remove.
3220 (btrace_call_history_insn_range, btrace_call_history): Use
3222 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3224 * ui-out.h (class ui_out) <field_unsigned>: New method.
3225 <do_field_unsigned>: Likewise.
3227 2019-07-15 Tom Tromey <tromey@adacore.com>
3229 * mi/mi-main.c (list_available_thread_groups): Use field_string.
3230 * mi/mi-interp.c (mi_memory_changed): Use field_string.
3231 * target.c (flash_erase_command): Use field_string.
3232 * infrun.c (print_signal_received_reason): Use field_string.
3233 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
3234 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
3236 * ada-tasks.c (print_ada_task_info): Use field_string.
3238 2019-07-15 Tom Tromey <tromey@adacore.com>
3240 * target.c (flash_erase_command): Use field_core_addr.
3241 * symfile.c (generic_load): Use field_core_addr.
3242 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3243 Use field_core_addr.
3244 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3247 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3249 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
3250 value if its desired type is smaller than a CORE_ADDR and signed.
3252 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3254 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
3255 of changes to field names, and use new is_reference field to
3256 decide if a property is a reference or not.
3257 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
3259 (struct dwarf2_property_baton): Update header comment, rename
3260 'referenced_type' to 'property_type' and update comments.
3261 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3262 default property type, store in property baton, update to take
3263 accound of renamed field.
3264 (read_func_scope): Update call to attr_to_dynamic_prop.
3265 (read_array_type): Likewise.
3266 (dwarf2_per_cu_addr_sized_int_type): New function.
3267 (read_subrange_index_type): Move type finding code to
3268 dwarf2_per_cu_addr_sized_int_type.
3269 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3270 (dwarf2_per_cu_addr_type): New function.
3271 (set_die_type): Update calls to attr_to_dynamic_prop.
3273 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3275 * dwarf2read.c (read_subrange_index_type): New function.
3276 (read_subrange_type): Move code into new function and call it.
3277 * gdbtypes.c (create_range_type): Add some asserts.
3279 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3281 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3282 update return statements.
3283 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3284 declaration, and update comment to match.
3285 * gdbtypes.c (resolve_dynamic_array): Update call to
3286 dwarf2_evaluate_property to match new return type.
3288 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3290 * valarith.c (value_subscripted_rvalue): Change lowerbound
3291 parameter type from int to LONGEST.
3292 * value.h (value_subscripted_rvalue): Likewise in declaration.
3294 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3296 * cli/cli-utils.c (info_print_command_completer): New function.
3297 * cli/cli-utils.h: Add 'completer.h' include, and forward
3298 declaration for 'struct cmd_list_element'.
3299 (info_print_command_completer): Declare.
3300 * stack.c (_initialize_stack): Add completer for 'info locals' and
3302 * symtab.c (_initialize_symtab): Add completer for 'info
3303 variables' and 'info functions'.
3304 * NEWS: Mention completion for additional info commands.
3306 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3308 * cli/cli-utils.c (extract_info_print_args): Delete.
3309 (extract_arg_maybe_quoted): Delete.
3310 (info_print_options_defs): New variable.
3311 (make_info_print_options_def_group): New function.
3312 (extract_info_print_options): Define new function.
3313 * cli/cli-utils.h (extract_info_print_args): Delete.
3314 (struct info_print_options): New structure.
3315 (extract_info_print_options): Declare new function.
3316 * stack.c (info_locals_command): Update to use new
3317 extract_info_print_options, also add a header comment.
3318 (info_args_command): Likewise.
3319 * symtab.c (info_variables_command): Likewise.
3320 (info_functions_command): Likewise.
3322 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3324 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3325 to extract string arguments.
3326 * common/common-utils.c (extract_string_maybe_quoted): New function.
3327 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3329 2019-07-11 Tom Tromey <tromey@adacore.com>
3331 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3332 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3333 * top.h (gdbinit): Don't declare.
3334 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3336 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3337 * top.c (gdb_init): Don't call init_cli_cmds.
3339 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3341 2019-07-11 Tom Tromey <tromey@adacore.com>
3343 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3344 after it has been moved.
3346 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3348 * valops.c (value_must_coerce_to_target): Change return type to
3350 * value.h (value_must_coerce_to_target): Likewise.
3352 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
3354 * breakpoint.c (is_hardware_watchpoint): Remove
3355 forward-declaration.
3356 (is_masked_watchpoint): Change return type to bool.
3357 (is_tracepoint): Likewise.
3358 (is_breakpoint): Likewise.
3359 (is_hardware_watchpoint): Likewise.
3360 (is_watchpoint): Likewise.
3361 (is_no_memory_software_watchpoint): Likewise.
3362 (is_catchpoint): Likewise.
3363 (breakpoint_1): Make FILTER parameter's return type bool.
3364 is_masked_watchpoint): Change return type to bool.
3365 (save_breakpoints): Make FILTER parameter's return type bool.
3366 * breakpoint.h (is_breakpoint): Change return type to bool.
3367 (is_watchpoint): Likewise.
3368 (is_catchpoint): Likewise.
3369 (is_tracepoint): Likewise.
3371 2019-07-10 Tom Tromey <tom@tromey.com>
3373 * defs.h: Don't include gdbarch.h.
3374 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3375 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3376 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3377 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3378 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3379 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3380 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3381 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3382 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3383 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3384 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3385 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3386 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3387 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3388 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3389 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3390 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3391 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3392 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3393 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3394 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3395 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3396 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3397 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3398 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3399 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3400 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3402 2019-07-10 Tom Tromey <tromey@adacore.com>
3404 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3405 * breakpoint.c (init_ada_exception_breakpoint): Register as
3407 (print_one_breakpoint_location, print_one_breakpoint): Use
3408 is_ada_exception_catchpoint.
3409 * ada-lang.c (class ada_catchpoint_location): Pass
3410 bp_loc_software_breakpoint to bp_location constructor.
3411 (is_ada_exception_catchpoint): New function.
3413 2019-07-10 Tom Tromey <tromey@adacore.com>
3415 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3417 (struct arm_exidx_entry): New method operator<.
3418 (struct arm_exidx_data) <section_maps>: Change type.
3419 (arm_exidx_data_free): Remove.
3420 (arm_exidx_data_key): Change type. Move lower.
3421 (arm_exidx_new_objfile): Update.
3422 (arm_compare_exidx_entries): Remove.
3423 (arm_find_exidx_entry, _initialize_arm_tdep)
3425 2019-07-10 Tom Tromey <tromey@adacore.com>
3427 * solib-spu.c (ocl_program_data_key): Change type.
3428 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3431 2019-07-10 Tom Tromey <tromey@adacore.com>
3433 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3434 (struct solib_aix_inferior_data) <library_list>: Change type.
3435 (solib_aix_inferior_data_handle): Change type.
3436 (get_solib_aix_inferior_data): Update.
3437 (solib_aix_free_library_list): Remove.
3438 (library_list_start_library): Update.
3439 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3441 (solib_aix_get_library_list)
3442 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3443 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3445 2019-07-10 Tom Tromey <tromey@adacore.com>
3447 * solib-dsbt.c (struct dsbt_info): Add initializers.
3448 (solib_dsbt_pspace_data): Change type.
3449 (dsbt_pspace_data_cleanup): Remove.
3450 (get_dsbt_info, _initialize_dsbt_solib): Update.
3452 2019-07-10 Tom Tromey <tromey@adacore.com>
3454 * spu-tdep.c (spu_overlay_data): Change type.
3455 (spu_get_overlay_table, spu_overlay_new_objfile)
3456 (_initialize_spu_tdep): Update.
3458 2019-07-10 Tom Tromey <tromey@adacore.com>
3460 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
3462 (dbx_objfile_data_key): Change type and declare later.
3463 (DBX_SYMFILE_INFO): Rewrite.
3464 * dbxread.c (dbx_objfile_data_key): Change type.
3465 (dbx_symfile_init): Update.
3466 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
3467 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3468 (stabsect_build_psymtabs, _initialize_dbxread): Update.
3470 2019-07-10 Tom Tromey <tromey@adacore.com>
3472 * jit.c (jit_program_space_key): Change type. Move lower.
3473 (get_jit_program_space_data): Update.
3474 (jit_program_space_data_cleanup): Remove.
3475 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
3477 (struct jit_program_space_data): Add initializers.
3479 2019-07-10 Tom Tromey <tromey@adacore.com>
3481 * solib-darwin.c (struct darwin_info): Add initializers.
3482 (solib_darwin_pspace_data): Change type.
3483 (darwin_pspace_data_cleanup): Remove.
3484 (get_darwin_info, _initialize_darwin_solib): Update.
3486 2019-07-10 Tom Tromey <tromey@adacore.com>
3488 * remote-sim.c (struct sim_inferior_data): Add initializers,
3489 constructor, and destructor.
3490 (sim_inferior_data_key): Change type. Move lower.
3491 (check_for_duplicate_sim_descriptor): Update.
3492 (get_sim_inferior_data): Use new. Update.
3493 (~sim_inferior_data_cleanup): Rename from
3494 sim_inferior_data_cleanup. Simplify.
3495 (gdbsim_close_inferior, simulator_command)
3496 (sim_command_completer, _initialize_remote_sim): Update.
3497 (next_pid, INITIAL_PID): Move earlier.
3499 2019-07-10 Tom Tromey <tromey@adacore.com>
3501 * python/python-internal.h (create_thread_object): Return
3503 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
3504 * python/py-inferior.c (struct threadlist_entry): Add
3506 <thread_obj>: Now a gdbpy_ref.
3507 (thread_to_thread_object): Update.
3508 (add_thread_object): Use new.
3509 (delete_thread_object): Use delete.
3510 (infpy_threads): Update.
3511 (py_free_inferior): Update. Construct "inf_obj" after acquiring
3514 2019-07-10 Tom Tromey <tromey@adacore.com>
3516 * valops.c (value_cast): Specialize error message for Ada.
3518 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3520 * breakpoint.c (breakpoint_1): Update doc and parameter names.
3522 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3524 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
3525 bpstat_should_step): Return bool, adjust comments.
3526 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
3527 bpstat_should_step): Likewise.
3529 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3531 * features/Makefile: Use feature target descriptions for Arm.
3532 * features/arm/arm-core.c: Generate new file.
3533 * features/arm/arm-fpa.c: Likewise.
3534 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
3535 * features/arm/arm-m-profile.c: Likewise.
3536 * features/arm/arm-vfpv2.c: Likewise.
3537 * features/arm/arm-vfpv3.c: Likewise.
3538 * features/arm/xscale-iwmmxt.c: Likewise.
3539 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
3541 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3543 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
3546 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3548 * features/aarch64-pauth.c: Regenerate.
3550 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
3552 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
3554 (bpstat_what): Use false instead of 0.
3556 2019-07-09 Pedro Alves <palves@redhat.com>
3558 * break-catch-throw.c (is_exception_catchpoint): New.
3559 * breakpoint.c (print_one_breakpoint_location): New parameter
3560 'raw_loc'. Handle it. Use
3561 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
3562 looking at the breakpoint's type.
3563 (print_one_breakpoint): If handling "maint info breakpoints", also
3564 print locations of exception catchpoints.
3565 * breakpoint.h (is_exception_catchpoint): Declare.
3567 2019-07-09 Pedro Alves <palves@redhat.com>
3569 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
3571 (allocate_location_exception_catchpoint): New.
3572 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
3573 (initialize_throw_catchpoint_ops): Install
3574 allocate_location_exception_catchpoint as allocate_location
3576 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
3577 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
3579 (breakpoint_address_is_meaningful): Delete.
3580 (bl_address_is_meaningful): New.
3581 (breakpoint_locations_match): Adjust comment.
3582 (bp_location_from_bp_type): New, factored out of...
3583 (bp_location::bp_location(breakpoint *)): ... this.
3584 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
3586 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
3587 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
3588 breakpoint_address_is_meaningful.
3589 (bp_locations_compare): Adjust comment.
3590 (update_global_location_list): Use bl_address_is_meaningful
3591 instead of breakpoint_address_is_meaningful.
3592 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
3594 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
3595 * python/py-breakpoint.c (bppy_get_location): No longer check
3596 whether location is null.
3598 2019-07-09 Pedro Alves <palves@redhat.com>
3601 * breakpoint.c (print_one_breakpoint_location): Remove
3602 single-location assert.
3604 2019-07-09 Tom Tromey <tom@tromey.com>
3606 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
3607 * configure: Rebuild.
3608 * configure.ac: Change common to gdbsupport.
3609 * gdbsupport: Rename from common.
3610 * acinclude.m4: Change common to gdbsupport.
3611 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
3612 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
3614 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
3615 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
3616 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
3617 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
3618 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
3619 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
3620 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
3621 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
3622 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
3623 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
3624 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
3625 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
3626 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
3627 coff-pe-read.c, command.h, compile/compile-c-support.c,
3628 compile/compile-c.h, compile/compile-cplus-symbols.c,
3629 compile/compile-cplus-types.c, compile/compile-cplus.h,
3630 compile/compile-loc2c.c, compile/compile.c, completer.c,
3631 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
3632 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
3633 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
3634 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
3635 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
3636 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
3637 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
3638 features/aarch64-core.c, features/aarch64-fpu.c,
3639 features/aarch64-pauth.c, features/aarch64-sve.c,
3640 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
3641 features/i386/32bit-core.c, features/i386/32bit-linux.c,
3642 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
3643 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
3644 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
3645 features/i386/64bit-core.c, features/i386/64bit-linux.c,
3646 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
3647 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
3648 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
3649 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
3650 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
3651 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
3652 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
3653 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
3654 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
3655 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
3656 go32-nat.c, guile/guile.c, guile/scm-ports.c,
3657 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
3658 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
3659 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
3660 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
3661 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
3662 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
3663 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
3664 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
3665 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
3666 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
3667 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
3668 minsyms.c, mips-linux-tdep.c, namespace.h,
3669 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
3670 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
3671 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
3672 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
3673 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
3674 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
3675 nat/linux-waitpid.c, nat/mips-linux-watch.c,
3676 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
3677 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
3678 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
3679 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
3680 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
3681 procfs.c, producer.c, progspace.h, psymtab.h,
3682 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
3683 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
3684 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
3685 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
3686 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
3687 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
3688 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
3689 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
3690 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
3691 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
3692 target-memory.c, target.c, target.h, target/waitstatus.c,
3693 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
3694 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
3695 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
3696 unittests/array-view-selftests.c,
3697 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
3698 unittests/common-utils-selftests.c,
3699 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
3700 unittests/format_pieces-selftests.c,
3701 unittests/function-view-selftests.c,
3702 unittests/lookup_name_info-selftests.c,
3703 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
3704 unittests/mkdir-recursive-selftests.c,
3705 unittests/observable-selftests.c,
3706 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
3707 unittests/parse-connection-spec-selftests.c,
3708 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
3709 unittests/scoped_fd-selftests.c,
3710 unittests/scoped_mmap-selftests.c,
3711 unittests/scoped_restore-selftests.c,
3712 unittests/string_view-selftests.c, unittests/style-selftests.c,
3713 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
3714 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
3715 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
3716 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
3717 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
3718 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
3720 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3722 * linespec.c (decode_digits_list_mode): Set explicit_line to a
3724 (decode_digits_ordinary): Set explicit_line field in sal.
3725 * symtab.c (skip_prologue_sal): Don't skip prologue for a
3726 symtab_and_line that was set on an explicit line number in
3727 assembler code. Do always update the recorded symtab and line if
3728 we do skip the prologue.
3730 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3732 * breakpoint.c (set_breakpoint_location_function): Remove
3733 explicit_loc parameter.
3734 (momentary_breakpoint_from_master): Update call to
3735 set_breakpoint_location_function.
3736 (add_location_to_breakpoint): Likewise.
3738 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3740 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
3741 required features based on default bfd type when no specific bfd
3744 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3746 * NEWS: Mention that GDB printf and eval commands can now print
3747 C-style and Ada-style convenience var strings without
3748 calling the inferior.
3749 * printcmd.c (printf_c_string): Locally print GDB internal var
3750 instead of transiting via the inferior.
3751 (printf_wide_c_string): Likewise.
3753 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3755 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
3757 2019-07-04 Tom Tromey <tom@tromey.com>
3760 * tui/tui-winsource.c (tui_clear_source_content): Update.
3761 (tui_source_window_base::set_is_exec_point_at): Fix comment.
3762 (tui_update_breakpoint_info): Update.
3763 (tui_set_exec_info_content): Update.
3764 * tui/tui-source.c (tui_set_source_content_nil): Update.
3765 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
3767 * tui/tui-data.h (enum tui_bp_flag): New.
3768 (tui_bp_flags): New enum flags type.
3769 (struct tui_source_element) <break_mode>: Change type. Rename
3771 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
3772 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
3774 * tui/tui-winsource.h: Fix comment.
3776 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3778 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
3779 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
3780 (store_fpregs_to_thread)
3781 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3782 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
3783 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
3784 (IWMMXT_REGS_SIZE): Add define.
3785 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
3786 (fetch_vfp_regs, store_vfp_regs)
3787 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3788 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
3790 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3792 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
3794 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
3795 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
3796 (ARM_INT_REGISTER_SIZE): ...to this.
3797 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3798 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3799 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3800 (arm_linux_collect_gregset, supply_nwfpe_register)
3801 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3803 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3804 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3805 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3806 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3807 (arm_return_in_memory, arm_store_return_value)
3808 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3809 (arm_record_ld_st_multiple): Likewise.
3810 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3811 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3813 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3815 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3816 AARCH64_DISPLACED_MODIFIED_INSNS.
3817 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3818 (aarch64_displaced_step_copy_insn): Likewise.
3819 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3820 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3821 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3822 ARM_DISPLACED_MODIFIED_INSNS.
3823 * arm-tdep.c (arm_gdbarch_init): Likewise.
3824 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3825 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3826 (struct arm_displaced_step_closure): Use
3827 ARM_DISPLACED_MODIFIED_INSNS.
3829 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3831 * features/Makefile: Remove unused xml files.
3832 * features/aarch64.xml: Remove.
3833 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3834 * features/i386/amd64-avx-avx512.xml: Remove.
3835 * features/i386/amd64-avx-linux.xml: Remove.
3836 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3837 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3838 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3839 * features/i386/amd64-avx-mpx.xml: Remove.
3840 * features/i386/amd64-avx.xml: Remove.
3841 * features/i386/amd64-linux.xml: Remove.
3842 * features/i386/amd64-mpx-linux.xml: Remove.
3843 * features/i386/amd64-mpx.xml: Remove.
3844 * features/i386/amd64.xml: Remove.
3845 * features/i386/i386-avx-avx512-linux.xml: Remove.
3846 * features/i386/i386-avx-avx512.xml: Remove.
3847 * features/i386/i386-avx-linux.xml: Remove.
3848 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3849 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3850 * features/i386/i386-avx-mpx-linux.xml: Remove.
3851 * features/i386/i386-avx-mpx.xml: Remove.
3852 * features/i386/i386-avx.xml: Remove.
3853 * features/i386/i386-linux.xml: Remove.
3854 * features/i386/i386-mmx-linux.xml: Remove.
3855 * features/i386/i386-mmx.xml: Remove.
3856 * features/i386/i386-mpx-linux.xml: Remove.
3857 * features/i386/i386-mpx.xml: Remove.
3858 * features/i386/i386.xml: Remove.
3859 * features/i386/x32-avx-avx512-linux.xml: Remove.
3860 * features/i386/x32-avx-linux.xml: Remove.
3861 * features/i386/x32-linux.xml: Remove.
3863 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3865 * regformats/aarch64.dat: Remove.
3866 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3867 * regformats/i386/amd64-avx-linux.dat: Remove.
3868 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3869 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3870 * regformats/i386/amd64-linux.dat: Remove.
3871 * regformats/i386/amd64-mpx-linux.dat: Remove.
3872 * regformats/i386/amd64.dat: Remove.
3873 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3874 * regformats/i386/i386-avx-linux.dat: Remove.
3875 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3876 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3877 * regformats/i386/i386-linux.dat: Remove.
3878 * regformats/i386/i386-mmx-linux.dat: Remove.
3879 * regformats/i386/i386-mpx-linux.dat: Remove.
3880 * regformats/i386/i386.dat: Remove.
3881 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3882 * regformats/i386/x32-avx-linux.dat: Remove.
3883 * regformats/i386/x32-linux.dat: Remove.
3885 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3887 * aarch64-tdep.c: Remove xml self tests.
3888 * amd64-linux-tdep.c: Likewise.
3889 * amd64-tdep.c: Likewise.
3890 * i386-linux-tdep.c: Likewise.
3891 * i386-tdep.c: Likewise.
3893 2019-07-03 Pedro Alves <palves@redhat.com>
3896 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3897 (pipe_cmd_option_defs): New.
3898 (make_pipe_cmd_options_def_group): New.
3899 (pipe_command): Use gdb::option::process_options.
3900 (pipe_command_completer): New function.
3901 (_initialize_cli_cmds): Install completer for "pipe" command.
3903 2019-07-03 Pedro Alves <palves@redhat.com>
3905 * cli/cli-option.c (union option_value) <string>: New field.
3906 (struct option_def_and_value): Add ctor, move ctor, dtor and
3907 use DISABLE_COPY_AND_ASSIGN.
3908 (option_def_and_value::clear_value): New.
3909 (parse_option, save_option_value_in_ctx, get_val_type_str)
3910 (add_setshow_cmds_for_options): Handle var_string.
3911 * cli-option.h (union option_def::var_address) <string>: New
3913 (struct string_option_def): New.
3914 * maint-test-options.c (struct test_options_opts): Add default
3915 ctor and use DISABLE_COPY_AND_ASSIGN.
3916 <string_opt>: New field.
3917 (test_options_opts::~test_options_opts): New.
3918 (test_options_opts::dump): Also dump "-string".
3919 (test_options_option_defs): Install "string.
3921 2019-07-03 Pedro Alves <palves@redhat.com>
3923 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3924 option_value with a null enumeration.
3925 (complete_options): Save the option values in the context.
3926 (save_option_value_in_ctx): New, factored out from ...
3927 (process_options): ... here.
3928 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
3930 * maint-test-options.c (test_options_opts::dump): New, factored
3932 (maintenance_test_options_command_mode): ... here.
3933 (maintenance_test_options_command_completion_result): Delete.
3934 (maintenance_test_options_command_completion_text): Update
3936 (maintenance_show_test_options_completion_result): Change
3937 prototype. Just print
3938 maintenance_test_options_command_completion_text.
3939 (save_completion_result): New.
3940 (maintenance_test_options_completer_mode): Pass options context to
3941 complete_options, and then save a dump.
3942 (_initialize_maint_test_options): Use add_cmd to install "maint
3943 show test-options-completion-result".
3945 2019-07-03 Pedro Alves <palves@redhat.com>
3947 * NEWS (New commands): Mention "with" and "maint with".
3948 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
3949 (with_command, with_command_completer): New.
3950 (pipe_command): Adjust to new repeat_previous
3952 (_initialize_cli_cmds): Install the "with" command and its "w"
3954 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
3956 * cli/cli-setshow.c (parse_cli_var_uinteger)
3957 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
3958 argument strings for all var_types.
3959 (get_setshow_command_value_string): New, factored out from ...
3960 (do_show_command): ... this.
3961 * cli/cli-setshow.h: Include <string>.
3962 (get_setshow_command_value_string): Declare.
3963 * command.h (repeat_previous): Now returns const char *. Adjust
3965 * maint.c: Include "cli/cli-cmds.h".
3966 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
3967 (_initialize_maint_cmds): Register the "maintenance with" command.
3968 * top.c (repeat_previous): Move bits from pipe_command here:
3969 Return the saved command line, if any; error out if there's no
3970 command to relaunch.
3972 2019-07-03 Pedro Alves <palves@redhat.com>
3974 * NEWS (New commands): Mention "maint set/show test-settings"
3975 instead of "maint test-settings".
3976 * maint-test-settings.c (maintenance_test_settings_list): Delete.
3977 (maintenance_test_settings_set_list): Rename to ...
3978 (maintenance_set_test_settings_list): ... this.
3979 (maintenance_test_settings_show_list): Rename to ...
3980 (maintenance_show_test_settings_list): ... this.
3981 (maintenance_test_settings_cmd): Delete.
3982 (maintenance_test_settings_set_cmd): ...
3983 (maintenance_set_test_settings_cmd): ... this.
3984 (maintenance_test_settings_show_cmd): ...
3985 (maintenance_show_test_settings_cmd): ... this.
3986 (maintenance_test_settings_show_value_cmd):
3987 (maintenance_show_test_settings_value_cmd): ... this.
3988 (_initialize_maint_test_settings): No longer install the "maint
3989 test-settings" prefix command. Rename "maint test-settings set"
3990 to "maint set test-settings", and "maint test-settings show" to
3991 "maint show test-settings". Adjust all subcommands.
3993 2019-07-03 Pedro Alves <palves@redhat.com>
3995 * maint-test-settings.c: Fix file's intro comment. Replace all
3996 references to "test-options" with references to "test-settings",
3999 2019-07-03 Pedro Alves <palves@redhat.com>
4001 * maint-test-settings.c (maintenance_test_settings_xxx)
4002 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4004 (maintenance_test_settings_enums): Use them.
4005 (maintenance_test_settings_enum): Default to
4006 maintenance_test_settings_xxx.
4007 (_initialize_maint_test_settings): Initialize
4008 MAINTENANCE_TEST_SETTINGS_FILENAME.
4010 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4012 * breakpoint.h (remove_breakpoints_inf): Change return type to
4013 void, move function documentation here.
4014 * breakpoint.c (remove_breakpoints_inf): Change return type to
4015 void, move function documentation to header.
4017 2019-07-02 Pedro Alves <palves@redhat.com>
4019 * NEWS (Completion improvements): Mention "info threads".
4020 * thread.c (struct info_threads_opts, info_threads_option_defs)
4021 (make_info_threads_options_def_group): New.
4022 (info_threads_command): Use gdb::option::process_options.
4023 (info_threads_command_completer): New.
4024 (_initialize_thread): Use gdb::option::build_help to build the
4025 help text for "info threads".
4027 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4029 * defs.h (generic_load): Move from here...
4030 * symfile.h (generic_load): ... to here. Rename name parameter
4032 * symfile.c (generic_load): Add comment.
4034 2019-07-01 Tom Tromey <tromey@adacore.com>
4037 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4038 declaration of without_params. Fix formatting.
4040 2019-07-01 Tom Tromey <tromey@adacore.com>
4042 * ada-exp.y (find_primitive_type): Update.
4043 * ada-lang.h (ada_lookup_symbol): Update.
4044 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4046 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4048 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4050 PR breakpoints/24541
4051 * gdbarch.c: Regenerate.
4052 * gdbarch.h: Regenerate.
4053 * gdbarch.sh: Add 'stap_adjust_register'.
4054 * i386-tdep.c: Include '<unordered_set>'.
4055 (i386_stap_adjust_register): New function.
4056 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4057 * stap-probe.c (stap_parse_register_operand): Call
4058 'gdbarch_stap_adjust_register'.
4060 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4063 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4064 * python/python.c (do_start_initialization): Use 'xmalloc'
4065 instead of 'PyMem_Malloc'.
4067 2019-06-28 Tom Tromey <tromey@adacore.com>
4069 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4072 2019-06-27 Tom Tromey <tromey@adacore.com>
4074 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
4076 (arm_find_mapping_symbol, arm_record_special_symbol)
4077 (_initialize_arm_tdep): Update.
4078 (arm_objfile_data_free): Remove.
4080 2019-06-27 Tom Tromey <tromey@adacore.com>
4082 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4083 to cp_print_static_field.
4085 2019-06-26 Tom Tromey <tromey@adacore.com>
4087 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
4088 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
4091 2019-06-26 Alan Hayward <alan.hayward@arm.com>
4093 * features/aarch64-core.c (create_feature_aarch64_core):
4095 * features/aarch64-core.xml: Add cpsr flags.
4097 2019-06-26 Alan Hayward <alan.hayward@arm.com>
4099 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4100 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4102 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4104 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4106 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4108 (arm_record_special_symbol): Don't insert new symbol in sorted
4109 position, push it at the end.
4111 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4113 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4114 (arm_mapping_symbol_s): Remove.
4115 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4116 (arm_mapping_symbol_vec): New typedef.
4117 (struct arm_per_objfile): Add constructor.
4118 <section_maps>: Change type to
4119 std::unique_ptr<arm_mapping_symbol_vec[]>.
4120 (arm_compare_mapping_symbols): Remove.
4121 (arm_find_mapping_symbol): Adjust to section_maps type change.
4122 (arm_objfile_data_free): Call delete on arm_per_objfile.
4123 (arm_record_special_symbol): Adjust to section_maps type change.
4124 Allocate arm_per_objfile with new.
4126 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4128 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4129 with the command prefix.
4131 2019-06-25 Tom Tromey <tom@tromey.com>
4133 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4134 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4136 2019-06-25 Tom Tromey <tom@tromey.com>
4138 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4140 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4143 2019-06-25 Tom Tromey <tom@tromey.com>
4145 * tui/tui-winsource.c
4146 (tui_source_window_base::set_is_exec_point_at): Add check against
4149 2019-06-25 Tom Tromey <tom@tromey.com>
4151 * tui/tui-source.c (tui_set_source_content): Don't check before
4153 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4155 2019-06-25 Tom Tromey <tom@tromey.com>
4157 * tui/tui-winsource.h (tui_update_source_window_as_is)
4158 (tui_alloc_source_buffer, tui_line_is_displayed)
4159 (tui_addr_is_displayed): Change type of win_info.
4160 * tui/tui-winsource.c (tui_update_source_window_as_is)
4161 (tui_clear_source_content, tui_show_source_line)
4162 (tui_show_source_content, tui_source_window_base::refill)
4163 (tui_source_window_base::set_is_exec_point_at)
4164 (tui_source_window_base::set_is_exec_point_at)
4165 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4166 (tui_alloc_source_buffer, tui_line_is_displayed)
4167 (tui_addr_is_displayed): Change type of win_info. Update.
4168 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4169 (tui_source_window_base::do_make_visible_with_new_height):
4171 * tui/tui-source.c (tui_set_source_content)
4172 (tui_set_source_content_nil)
4173 (tui_source_window::do_scroll_vertical): Update.
4174 * tui/tui-layout.c (show_layout): Update.
4175 * tui/tui-disasm.c (tui_set_disassem_content)
4176 (tui_disasm_window::do_scroll_vertical): Update.
4177 * tui/tui-data.h (tui_win_content): Remove.
4178 (struct tui_gen_win_info) <content, content_size>: Remove.
4179 (struct tui_source_element): Add initializers and destructor.
4180 (union tui_which_element, struct tui_win_element): Remove.
4181 (struct tui_source_window_base) <content>: New field.
4182 (struct tui_data_window): Remove destructor.
4183 (tui_alloc_content, tui_free_win_content)
4184 (tui_free_all_source_wins_content): Don't declare.
4185 * tui/tui-data.c (tui_initialize_static_data): Update.
4186 (init_content_element, tui_alloc_content): Remove.
4187 (~tui_gen_win_info): Update.
4188 (~tui_data_window, tui_free_all_source_wins_content)
4189 (tui_free_win_content, free_content, free_content_elements):
4192 2019-06-25 Tom Tromey <tom@tromey.com>
4194 * tui/tui-winsource.h (tui_clear_source_content)
4195 (tui_erase_source_content, tui_show_source_content): Change type
4197 * tui/tui-winsource.c (tui_clear_source_content)
4198 (tui_erase_source_content, tui_show_source_content): Change type
4200 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4201 * tui/tui-source.h (tui_set_source_content_nil): Change type of
4203 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4205 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4207 2019-06-25 Tom Tromey <tom@tromey.com>
4209 * tui/tui-winsource.c (tui_clear_source_content)
4210 (tui_source_window_base::set_is_exec_point_at): Update.
4211 * tui/tui-source.c (tui_set_source_content_nil): Update.
4212 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4214 * tui/tui-data.c (init_content_element): Update.
4216 2019-06-25 Tom Tromey <tom@tromey.com>
4218 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4219 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4220 * tui/tui-layout.c (init_and_make_win): Update.
4221 * tui/tui.h (enum tui_win_type): Update.
4222 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
4223 tui_win_is_auxillary.
4224 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
4225 tui_win_is_auxillary.
4227 2019-06-25 Tom Tromey <tom@tromey.com>
4229 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
4230 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
4231 (tui_delete_data_content_windows, tui_display_all_data)
4232 (tui_data_window::do_scroll_vertical, tui_display_data_from):
4234 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
4235 * tui/tui-regs.c (tui_last_regs_line_no)
4236 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4237 (tui_show_registers): Update.
4238 (tui_show_register_group): Return void. Update.
4239 (tui_display_registers_from, tui_display_reg_element_at_line)
4240 (tui_display_registers_from_line, tui_check_register_values):
4242 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
4244 (struct tui_data_window) <regs_content>: Now a std::vector.
4245 <regs_content_count>: Remove.
4246 (tui_add_content_elements, tui_free_data_content): Don't declare.
4247 * tui/tui-data.c (tui_data_window::clear_detail): Update.
4248 (init_content_element): Remove DATA_WIN case. Add assert.
4249 (tui_add_content_elements): Remove.
4250 (tui_data_window): Update.
4251 (tui_free_data_content): Remove.
4252 (free_content_elements): Remove DATA_WIN case.
4254 2019-06-25 Tom Tromey <tom@tromey.com>
4256 * tui/tui-data.c (tui_data_item_window): Update.
4257 * tui/tui-windata.h (tui_check_data_values): Don't declare.
4258 * tui/tui-windata.c (tui_display_all_data)
4259 (tui_display_data_from_line): Update.
4260 (tui_check_data_values): Remove.
4261 * tui/tui-regs.c (tui_show_register_group)
4262 (tui_display_reg_element_at_line): Update.
4263 * tui/tui-hooks.c (tui_register_changed)
4264 (tui_refresh_frame_and_register_information): Call
4265 tui_check_register_values.
4266 * tui/tui-data.h (struct tui_data_window) <data_content,
4267 data_content_count, data_type>: Remove.
4268 (enum tui_data_type): Remove.
4270 * tui/tui-data.c (tui_data_window::clear_detail)
4271 (~tui_data_window): Update.
4273 2019-06-25 Tom Tromey <tom@tromey.com>
4275 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4277 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4278 Rename from tui_first_data_item_displayed. Update.
4279 (tui_data_window::refresh_all)
4280 (tui_data_window::do_scroll_vertical): Update.
4281 * tui/tui-data.h (struct tui_data_window)
4282 <first_data_item_displayed>: Declare new method.
4284 2019-06-25 Tom Tromey <tom@tromey.com>
4286 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4287 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4289 (tui_initialize_static_data): ...here.
4291 2019-06-25 Tom Tromey <tom@tromey.com>
4293 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4294 (tui_display_registers_from, tui_check_register_values): Update.
4295 (tui_display_register): Remove win_info parameter; update.
4296 (tui_get_register): Change type of parameters.
4297 * tui/tui-data.h (struct tui_data_element): Remove.
4298 (union tui_which_element) <data>: Remove.
4299 <data_window>: Change type.
4300 (struct tui_data_item_window): New.
4301 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4303 (~tui_data_item_window): New destructor.
4304 (free_content_elements): Remove DATA_ITEM_WIN case.
4306 2019-06-25 Tom Tromey <tom@tromey.com>
4308 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
4311 2019-06-25 Tom Tromey <tom@tromey.com>
4313 * tui/tui-data.h (struct tui_command_element): Remove.
4314 (union tui_which_element) <command>: Remove.
4315 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
4317 (free_content_elements): Remove CMD_WIN case.
4319 2019-06-25 Tom Tromey <tom@tromey.com>
4321 * tui/tui-layout.c (tui_set_layout): Update.
4322 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4323 * tui/tui-data.c (layout_def): Update.
4325 2019-06-25 Tom Tromey <tom@tromey.com>
4327 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4328 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4329 (tui_source_window_base::set_new_height): Update.
4330 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4332 (tui_set_locator_fullname, tui_set_locator_info)
4333 (tui_show_frame_info): Update.
4334 * tui/tui-source.c (tui_set_source_content)
4335 (tui_source_is_displayed): Update.
4336 * tui/tui-layout.c (show_source_disasm_command, show_data)
4337 (show_source_or_disasm_and_command): Update.
4338 * tui/tui-disasm.c (tui_set_disassem_content)
4339 (tui_get_begin_asm_address): Update.
4340 * tui/tui-data.h (struct tui_locator_element): Remove.
4341 (union tui_which_element) <locator>: Remove.
4342 (struct tui_locator_window): New.
4343 (tui_locator_win_info_ptr): Change return type.
4344 * tui/tui-data.c (_locator): Change type.
4345 (tui_locator_win_info_ptr): Change return type.
4346 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4347 (tui_alloc_content): Add assert.
4349 2019-06-25 Tom Tromey <tom@tromey.com>
4351 * tui/tui-winsource.c
4352 (tui_exec_info_window::maybe_allocate_content): New method.
4353 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4354 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4355 (make_source_or_disasm_window): Add cast.
4356 * tui/tui-data.h (union tui_which_element) <simple_string>:
4358 (struct tui_source_info): New.
4359 (struct tui_source_window_base) <execution_info>: Change type.
4360 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4361 case, and add assert.
4362 (tui_alloc_content): Add assert.
4364 2019-06-25 Tom Tromey <tom@tromey.com>
4366 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4367 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4368 * tui/tui-data.c (tui_alloc_win_info): Remove.
4370 2019-06-25 Tom Tromey <tom@tromey.com>
4372 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4373 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4376 2019-06-25 Tom Tromey <tom@tromey.com>
4378 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4379 make_visible_with_new_height method.
4380 (tui_win_info::make_visible_with_new_height): New method.
4381 (tui_source_window_base::do_make_visible_with_new_height)
4382 (tui_data_window::do_make_visible_with_new_height)
4383 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4384 (make_visible_with_new_height): Remove.
4385 (tui_resize_all, tui_adjust_win_heights): Use
4386 make_visible_with_new_height method.
4387 * tui/tui-data.h (struct tui_win_info)
4388 <do_make_visible_with_new_height, make_visible_with_new_height>:
4390 (struct tui_source_window_base, struct tui_data_window)
4391 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4394 2019-06-25 Tom Tromey <tom@tromey.com>
4396 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4398 (update_tab_width): Call update_tab_width method.
4399 * tui/tui-data.h (struct tui_win_info)
4400 (struct tui_source_window_base) <update_tab_width>: New methods.
4402 2019-06-25 Tom Tromey <tom@tromey.com>
4404 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4406 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4408 (tui_gen_win_info::make_visible): Update.
4409 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4411 * tui/tui-data.h (enum tui_box): New enum.
4412 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4414 2019-06-25 Tom Tromey <tom@tromey.com>
4416 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4417 init_and_make_win for EXEC_INFO_WIN.
4418 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4420 (struct tui_win_info) <~tui_win_info>: Inline.
4421 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4423 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4424 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4426 (tui_initialize_static_data): Update.
4427 (~tui_gen_win_info): Handle more cleanup here.
4428 (~tui_source_window_base): Delete "execution_info".
4429 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4431 2019-06-25 Tom Tromey <tom@tromey.com>
4433 * tui/tui-layout.c (make_command_window): Don't set
4435 (show_source_disasm_command): Call the reset method.
4436 (show_data): Don't set can_highlight. Call the reset method.
4437 (tui_gen_win_info::reset): Rename from init_gen_win_info
4438 (init_and_make_win): Simplify. Return tui_gen_win_info.
4439 (show_source_or_disasm_and_command): Call the reset method.
4440 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4441 (struct tui_cmd_window): Set can_highlight.
4443 2019-06-25 Tom Tromey <tom@tromey.com>
4445 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4447 (tui_make_visible, tui_make_invisible): Rewrite.
4448 (tui_win_info::make_visible): Remove.
4449 (tui_source_window_base::make_visible): Update.
4450 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4451 method. Moved from...
4452 (struct tui_win_info) <make_visible>: ...here.
4454 2019-06-25 Tom Tromey <tom@tromey.com>
4456 * tui/tui-winsource.c
4457 (tui_source_window_base::do_scroll_horizontal): Remove direction
4459 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
4460 direction parameter.
4461 * tui/tui-win.c (tui_win_info::forward_scroll)
4462 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4463 (tui_win_info::right_scroll): Update.
4464 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4465 direction parameter.
4466 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
4467 direction parameter.
4468 * tui/tui-data.h (enum tui_scroll_direction): Remove.
4469 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
4470 Remove direction parameter.
4471 (struct tui_source_window_base, struct tui_source_window)
4472 (struct tui_disasm_window, struct tui_data_window)
4473 (struct tui_cmd_window): Update.
4475 2019-06-25 Tom Tromey <tom@tromey.com>
4477 * tui/tui-winsource.h (tui_set_exec_info_content)
4478 (tui_show_exec_info_content, tui_erase_exec_info_content)
4479 (tui_clear_exec_info_content, tui_update_exec_info): Change
4480 argument to tui_source_window_base.
4481 * tui/tui-winsource.c (tui_set_exec_info_content)
4482 (tui_show_exec_info_content, tui_erase_exec_info_content)
4483 (tui_clear_exec_info_content, tui_update_exec_info): Change
4484 argument to tui_source_window_base.
4486 2019-06-25 Tom Tromey <tom@tromey.com>
4488 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
4489 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
4491 2019-06-25 Tom Tromey <tom@tromey.com>
4493 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
4496 2019-06-25 Tom Tromey <tom@tromey.com>
4498 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
4500 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
4502 * tui/tui-source.c (tui_set_source_content): Update.
4503 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4505 2019-06-25 Tom Tromey <tom@tromey.com>
4507 * tui/tui-win.c (window_name_completer, tui_set_focus)
4508 (tui_all_windows_info): Use name method.
4509 * tui/tui-data.h (struct tui_gen_win_info)
4510 (struct tui_source_window, struct tui_disasm_window)
4511 (struct tui_data_window, struct tui_cmd_window) <name>: New
4513 (tui_win_name): Don't declare.
4514 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
4515 (tui_win_name): Remove.
4517 2019-06-25 Tom Tromey <tom@tromey.com>
4519 * tui/tui-winsource.h (tui_update_source_window)
4520 (tui_update_source_window_as_is): Change parameter type.
4521 * tui/tui-winsource.c (tui_update_source_window): Change win_info
4522 to be a tui_source_window_base.
4523 (tui_update_source_window_as_is): Likewise.
4524 * tui/tui-win.c (make_visible_with_new_height): Update.
4526 2019-06-25 Tom Tromey <tom@tromey.com>
4528 * tui/tui-winsource.c (tui_erase_source_content)
4529 (tui_show_source_content, tui_show_exec_info_content)
4530 (tui_erase_exec_info_content): Use refresh_window method.
4531 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
4532 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
4533 from tui_refresh_win.
4534 (tui_data_window::refresh_window): New method.
4535 (tui_win_info::refresh, tui_source_window_base::refresh)
4536 (tui_refresh_all): Use refresh_window method.
4537 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
4539 * tui/tui-regs.c (tui_display_register): Call refresh_window
4541 * tui/tui-layout.c (show_source_disasm_command)
4542 (show_source_or_disasm_and_command): Call refresh_window method.
4543 * tui/tui-data.h (struct tui_gen_win_info)
4544 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
4547 2019-06-25 Tom Tromey <tom@tromey.com>
4549 * tui/tui.c (tui_rl_other_window, tui_enable)
4550 (tui_is_window_visible, tui_get_command_dimension): Update.
4551 * tui/tui-winsource.c (tui_update_source_window_as_is)
4552 (tui_clear_source_content, tui_erase_source_content)
4553 (tui_show_source_line, tui_source_window_base::refill)
4554 (tui_source_window_base::do_scroll_horizontal)
4555 (tui_source_window_base::set_is_exec_point_at)
4556 (tui_update_breakpoint_info, tui_set_exec_info_content)
4557 (tui_alloc_source_buffer, tui_line_is_displayed)
4558 (tui_addr_is_displayed): Update.
4559 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4560 (tui_check_and_display_highlight_if_needed)
4561 (tui_win_info::make_visible, tui_win_info::refresh)
4562 (tui_refresh_all): Update.
4563 * tui/tui-windata.c (tui_first_data_item_displayed)
4564 (tui_delete_data_content_windows, tui_erase_data_content)
4565 (tui_display_all_data, tui_data_window::refresh_all)
4566 (tui_check_data_values): Update.
4567 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
4568 (tui_set_win_focus_to, tui_win_info::forward_scroll)
4569 (tui_win_info::backward_scroll, tui_refresh_all_win)
4570 (tui_resize_all, tui_set_focus, tui_all_windows_info)
4571 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
4572 (tui_source_window_base::set_new_height)
4573 (tui_data_window::set_new_height)
4574 (make_invisible_and_set_new_height)
4575 (make_visible_with_new_height, new_height_ok)
4576 (parse_scrolling_args): Update.
4577 * tui/tui-stack.c (tui_show_frame_info): Update.
4578 * tui/tui-source.c (tui_set_source_content)
4579 (tui_set_source_content_nil, tui_source_is_displayed)
4580 (tui_source_window::do_scroll_vertical): Update.
4581 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4582 (tui_display_registers_from, tui_display_reg_element_at_line)
4583 (tui_check_register_values, tui_reg_command): Update.
4584 * tui/tui-layout.c (tui_default_win_height)
4585 (show_source_disasm_command, show_data, init_and_make_win)
4586 (show_source_or_disasm_and_command): Update.
4587 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
4588 (tui_redisplay_readline, tui_mld_flush)
4589 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
4591 * tui/tui-disasm.c (tui_set_disassem_content)
4592 (tui_disasm_window::do_scroll_vertical): Update.
4593 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
4595 (struct tui_win_info): Derive from tui_gen_win_info.
4596 <~tui_win_info>: Mark as override.
4597 <generic>: Remove member.
4598 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
4599 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
4600 (~tui_data_window, ~tui_win_info)
4601 (tui_free_all_source_wins_content): Update.
4602 * tui/tui-command.c (tui_refresh_cmd_win): Update.
4604 2019-06-25 Tom Tromey <tom@tromey.com>
4606 * tui/tui-layout.c (init_and_make_win): Use new.
4607 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
4608 destructor, initializers.
4609 (tui_alloc_generic_win_info): Don't declare.
4610 * tui/tui-data.c (_locator): Add argument to constructor.
4611 (source_win, disasm_win): New globals.
4612 (exec_info): Remove.
4613 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4615 (tui_alloc_generic_win_info): Remove.
4616 (init_content_element): Use new.
4617 (tui_win_info::tui_win_info): Update.
4618 (free_content_elements) <case DATA_WIN>: Use delete.
4620 2019-06-25 Tom Tromey <tom@tromey.com>
4622 * tui/tui-wingeneral.c (tui_refresh_win): Update.
4623 * tui/tui-windata.c (tui_first_data_item_displayed)
4624 (tui_delete_data_content_windows): Update.
4625 * tui/tui-win.c (tui_data_window::set_new_height): Update.
4626 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4627 (tui_display_registers_from, tui_check_register_values): Update.
4628 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
4630 * tui/tui-data.c (init_content_element): Update. Allocate the new
4632 (tui_free_data_content): Update.
4633 (free_content_elements) <case DATA_WIN>: Free the window.
4635 2019-06-25 Tom Tromey <tom@tromey.com>
4637 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
4639 * tui/tui-layout.c (make_command_window)
4640 (show_source_disasm_command, show_data, init_and_make_win)
4641 (show_source_or_disasm_and_command): Update.
4642 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
4644 <can_highight, is_highlighted>: Now bool.
4645 (tui_set_win_highlight): Don't declare.
4646 * tui/tui-data.c (tui_set_win_highlight): Remove.
4648 2019-06-25 Tom Tromey <tom@tromey.com>
4650 * tui/tui-wingeneral.c (make_visible): Remove check of window
4653 2019-06-25 Tom Tromey <tom@tromey.com>
4655 * tui/tui-win.c (tui_win_info::max_height)
4656 (tui_cmd_window::max_height): New methods.
4657 (new_height_ok): Call max_height.
4658 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
4659 <max_height>: New method.
4661 2019-06-25 Tom Tromey <tom@tromey.com>
4663 * tui/tui-win.c (tui_source_window_base::set_new_height)
4664 (tui_data_window::set_new_height): New methods.
4665 (make_invisible_and_set_new_height): Call set_new_height method.
4666 * tui/tui-data.h (struct tui_win_info)
4667 (struct tui_source_window_base, struct tui_data_window)
4668 <set_new_height>: New method.
4670 2019-06-25 Tom Tromey <tom@tromey.com>
4672 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
4673 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
4674 tui_refresh_data_win.
4675 * tui/tui-win.c (tui_source_window_base::refresh_all): New
4677 (tui_refresh_all_win): Call the refresh_all method.
4678 (tui_set_focus): Likewise.
4679 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
4680 (struct tui_source_window_base, struct tui_data_window) <refresh>:
4683 2019-06-25 Tom Tromey <tom@tromey.com>
4685 * tui/tui-winsource.h (tui_refill_source_window)
4686 (tui_set_is_exec_point_at): Don't declare.
4687 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4688 (tui_source_window_base::refill): Rename from
4689 tui_refill_source_window.
4690 (tui_source_window_base::do_scroll_horizontal): Update.
4691 (tui_source_window_base::set_is_exec_point_at): Rename from
4692 tui_set_is_exec_point_at.
4693 (tui_update_all_breakpoint_info): Update.
4694 * tui/tui-stack.c (tui_show_frame_info): Update.
4695 * tui/tui-layout.c (show_data): Add cast.
4696 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
4697 * tui/tui-data.h (struct tui_source_window_base) <refill,
4698 set_is_exec_point_at>: New methods.
4699 (tui_source_windows, tui_add_to_source_windows): Update types.
4700 (tui_add_to_source_windows): Remove redundant declaration.
4701 * tui/tui-data.c (source_windows): Store tui_source_window_base.
4702 (tui_source_windows): Change return type.
4703 (tui_clear_source_windows_detail): Update.
4704 (tui_add_to_source_windows): Change type of parameter.
4705 (tui_free_all_source_wins_content): Update.
4707 2019-06-25 Tom Tromey <tom@tromey.com>
4709 * tui/tui-wingeneral.c (tui_win_info::refresh)
4710 (tui_source_window_base::refresh): New methods.
4711 (tui_refresh_all): Call the refresh method.
4712 * tui/tui-data.h (struct tui_win_info)
4713 (struct tui_source_window_base) <refresh>: New method.
4715 2019-06-25 Tom Tromey <tom@tromey.com>
4717 * tui/tui.h (tui_is_window_visible): Return bool.
4718 * tui/tui.c (tui_is_window_visible): Return bool.
4719 * tui/tui-wingeneral.c (tui_make_window, make_visible)
4720 (tui_make_visible, tui_make_invisible)
4721 (tui_win_info::make_visible)
4722 (tui_source_window_base::make_visible, make_all_visible)
4723 (tui_make_all_visible, tui_make_all_invisible): Update.
4724 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
4725 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
4727 (struct tui_win_info, struct tui_source_window_base)
4728 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
4729 * tui/tui-data.c (tui_init_generic_part): Update.
4731 2019-06-25 Tom Tromey <tom@tromey.com>
4733 * tui/tui-wingeneral.c (tui_win_info::make_visible)
4734 (tui_source_window_base::make_visible): New methods.
4735 (make_all_visible): Make method call.
4736 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
4737 (struct tui_source_window_base, struct tui_cmd_window): Override
4739 (tui_win_is_source_type): Don't declare.
4740 * tui/tui-data.c (tui_win_is_source_type): Remove.
4742 2019-06-25 Tom Tromey <tom@tromey.com>
4744 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
4747 2019-06-25 Tom Tromey <tom@tromey.com>
4749 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
4750 Inline constructor. Add initializers for members.
4751 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
4752 constructors; now inline in class.
4754 2019-06-25 Tom Tromey <tom@tromey.com>
4756 * tui/tui-regs.c (tui_show_registers): Update.
4757 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
4759 * tui/tui-data.c (tui_data_window::clear_detail)
4760 (tui_data_window): Update.
4762 2019-06-25 Tom Tromey <tom@tromey.com>
4764 * tui/tui-windata.c (tui_display_all_data)
4765 (tui_display_data_from_line, tui_display_data_from)
4766 (tui_check_data_values, tui_data_window::do_scroll_vertical):
4768 * tui/tui-regs.c (tui_last_regs_line_no)
4769 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4770 (tui_show_registers, tui_show_register_group)
4771 (tui_display_registers_from, tui_display_reg_element_at_line)
4772 (tui_display_registers_from_line, tui_check_register_values)
4773 (tui_reg_next, tui_reg_prev): Update.
4774 * tui/tui-layout.c (tui_set_layout, show_data): Update.
4775 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
4777 (struct tui_win_info) <detail>: Remove. Add new fields from
4779 (TUI_DATA_WIN): Add cast.
4780 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
4781 (~tui_data_window): Simplify.
4783 2019-06-25 Tom Tromey <tom@tromey.com>
4785 * tui/tui-layout.c (show_source_disasm_command)
4786 (show_source_or_disasm_and_command): Update.
4787 * tui/tui-io.c (update_cmdwin_start_line)
4788 (tui_redisplay_readline): Update.
4789 * tui/tui-data.h (struct tui_command_info): Remove.
4790 (struct tui_win_info) <detail>: Remove command_info member.
4791 (struct tui_data_window) <start_line>: New member, from
4793 (TUI_CMD_WIN): Add casts.
4795 2019-06-25 Tom Tromey <tom@tromey.com>
4797 * tui/tui-winsource.c (tui_update_source_window)
4798 (tui_refill_source_window)
4799 (tui_source_window_base::do_scroll_horizontal)
4800 (tui_update_breakpoint_info, tui_set_exec_info_content)
4801 (tui_show_exec_info_content, tui_erase_exec_info_content)
4802 (tui_clear_exec_info_content): Update.
4803 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4805 * tui/tui-win.c (make_invisible_and_set_new_height)
4806 (make_visible_with_new_height): Update.
4807 * tui/tui-source.c (tui_set_source_content)
4808 (tui_show_symtab_source): Update.
4809 * tui/tui-layout.c (extract_display_start_addr)
4810 (show_source_disasm_command, show_data)
4811 (make_source_or_disasm_window)
4812 (show_source_or_disasm_and_command): Update.
4813 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4814 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4816 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4817 to tui_source_window_base.
4818 (struct tui_win_info) <detail>: Remove source_info member.
4819 (struct tui_source_window_base) <has_locator>: Inline.
4820 Move contents from tui_source_info; rename has_locator member to
4822 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4823 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4825 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4827 (tui_free_all_source_wins_content): Cast to
4828 tui_source_window_base.
4830 2019-06-25 Tom Tromey <tom@tromey.com>
4832 * tui/tui-win.c (make_invisible_and_set_new_height)
4833 (make_visible_with_new_height): Call has_locator method.
4834 * tui/tui-layout.c (show_source_disasm_command, show_data)
4835 (show_source_or_disasm_and_command): Update for bool change.
4836 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4837 (tui_win_info) <has_locator>: New method.
4838 (struct tui_source_window_base) <has_locator>: New method.
4839 (tui_win_has_locator): Don't declare.
4840 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4841 from tui_win_has_locator.
4842 (tui_source_window_base): Use false, not FALSE.
4844 2019-06-25 Tom Tromey <tom@tromey.com>
4846 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4847 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4848 clear_detail method directly.
4849 (tui_clear_win_detail): Remove.
4851 2019-06-25 Tom Tromey <tom@tromey.com>
4853 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4854 "this", not TUI_DISASM_WIN.
4856 2019-06-25 Tom Tromey <tom@tromey.com>
4858 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4860 * tui/tui-winsource.c
4861 (tui_source_window_base::do_scroll_horizontal): Rename from
4862 tui_horizontal_source_scroll.
4863 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4864 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4865 from tui_vertical_data_scroll.
4866 * tui/tui-win.h (tui_scroll): Don't declare.
4867 * tui/tui-win.c (tui_win_info::forward_scroll)
4868 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4869 (tui_win_info::right_scroll): Rename and update.
4870 (tui_scroll_forward_command, tui_scroll_backward_command)
4871 (tui_scroll_left_command, tui_scroll_right_command): Update.
4872 (tui_scroll): Remove.
4873 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4874 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4875 from tui_vertical_source_scroll.
4876 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4877 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4878 from tui_vertical_disassem_scroll.
4879 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4880 do_scroll_horizontal>: New methods.
4881 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4883 (struct tui_source_window_base): Add do_scroll_horizontal.
4884 (struct tui_source_window, struct tui_disasm_window): Add
4886 (struct tui_data_window, struct tui_cmd_window): Add
4887 do_scroll_horizontal and do_scroll_vertical.
4888 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4890 2019-06-25 Tom Tromey <tom@tromey.com>
4892 * tui/tui-data.h (struct tui_source_window_base): New struct.
4893 (struct tui_source_window): Derive from tui_source_window_base.
4894 (struct tui_disasm_window): New struct.
4895 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4896 from tui_source_window::clear_detail.
4897 (tui_source_window_base): Rename from tui_source_window.
4898 (~tui_source_window_base): Rename from ~tui_source_window.
4899 (tui_alloc_win_info): Create a tui_disasm_window.
4901 2019-06-25 Tom Tromey <tom@tromey.com>
4903 * tui/tui-data.h (struct tui_source_window)
4904 (struct tui_data_window): Declare destructors.
4905 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4907 (tui_win_info): Simplify.
4909 2019-06-25 Tom Tromey <tom@tromey.com>
4911 * tui/tui-winsource.c (tui_display_main)
4912 (tui_update_source_windows_with_addr)
4913 (tui_update_all_breakpoint_info): Update.
4914 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4915 (new_height_ok, parse_scrolling_args): Update.
4916 * tui/tui-stack.c (tui_show_frame_info): Update.
4917 * tui/tui-data.h (struct tui_list): Remove.
4918 (tui_source_windows): Return a reference to a std::vector.
4919 * tui/tui-data.c (source_windows): Now a std::vector.
4920 (tui_source_windows): Change return type.
4921 (tui_clear_source_windows): Rewrite.
4922 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4923 (tui_free_all_source_wins_content): Rewrite.
4925 2019-06-25 Tom Tromey <tom@tromey.com>
4927 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
4928 (struct tui_data_window, struct tui_cmd_window): Declare
4929 clear_detail method.
4930 * tui/tui-data.c (tui_source_window::clear_detail)
4931 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
4933 (tui_clear_win_detail): Simplify.
4935 2019-06-25 Tom Tromey <tom@tromey.com>
4937 * tui/tui-layout.c (make_source_window, make_disasm_window)
4938 (make_source_or_disasm_window): Remove win_info_ptr parameter.
4939 Return the new window.
4940 (show_source_disasm_command, show_data)
4941 (show_source_or_disasm_and_command): Update.
4943 2019-06-25 Tom Tromey <tom@tromey.com>
4945 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
4946 parameter. Return the new window.
4947 (show_source_disasm_command): Update and remove NULL check.
4948 (show_source_or_disasm_and_command): Update.
4950 2019-06-25 Tom Tromey <tom@tromey.com>
4952 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
4954 2019-06-25 Tom Tromey <tom@tromey.com>
4956 * tui/tui-data.h (struct tui_win_info): Make constructor
4957 protected. Make destructor virtual. Add initializers.
4958 (tui_source_window, tui_data_window, tui_cmd_window): New
4960 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
4961 constructor. Add "type" parameter.
4962 (tui_source_window, tui_data_window, tui_cmd_window): New
4964 (tui_alloc_win_info): Instantiate the appropriate subclass.
4966 2019-06-25 Tom Tromey <tom@tromey.com>
4968 * tui/tui-win.c (tui_resize_all): Use delete.
4969 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
4971 (tui_free_window): Don't declare.
4972 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
4975 2019-06-25 Tom Tromey <tom@tromey.com>
4977 * tui/tui-data.h (struct tui_win_info): Add constructor.
4978 * tui/tui-data.c (tui_alloc_win_info): Use new.
4979 (tui_free_window): Use delete.
4981 2019-06-22 Tom Tromey <tom@tromey.com>
4983 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
4985 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
4987 2019-06-22 Tom Tromey <tom@tromey.com>
4989 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
4991 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
4993 2019-06-22 Tom de Vries <tdevries@suse.de>
4995 * dwarf2read.c (create_addrmap_from_aranges)
4996 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
4999 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
5001 * dwarf2read.h (dwarf2_section_info_def): Remove.
5002 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5003 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5004 std::vector<dwarf2_section_info>.
5005 (struct dwo_file) <~dwo_file>: Remove.
5006 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5008 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5009 (dwarf2_read_debug_names): Likewise.
5010 (create_debug_types_hash_table): Change parameter type to
5011 array_view, adjust code accordingly.
5012 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5013 (partial_die_info::fixup): Likewise.
5014 (determine_prefix): Likewise.
5015 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5017 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5019 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5021 <~dwo_file>: Remove call to gdb_bfd_unref.
5022 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5023 gdb_bfd_ref_ptr::get.
5025 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5027 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5029 * dwarf2read.c (struct dwo_file): Initialize fields.
5031 (free_dwo_file): Remove, move content to ~dwo_file.
5032 (struct dwo_file_deleter): Remove.
5033 (dwo_file_up>: Remove custom deleter.
5034 (free_dwo_files): Remove.
5035 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5037 (process_skeletonless_type_units): Call unique_ptr::get.
5038 (allocate_dwo_file_hash_table): Add deleter to created hash
5039 table. Change return type to htab_up.
5040 (lookup_dwo_file_slot): Don't memset dwo_file, call
5042 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5043 (create_dwo_unit_in_dwp_v2): Likewise.
5044 (open_and_init_dwo_file): Likewise.
5045 (free_dwo_file_from_slot): Remove.
5047 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5049 * dwarf2read.h (struct dwarf2_section_info) <readin,
5050 is_virtual>: Change type to bool.
5051 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5054 2019-06-19 Tom Tromey <tom@tromey.com>
5056 * tui/tui-data.h (tui_init_content_element): Don't declare.
5058 2019-06-19 Tom Tromey <tom@tromey.com>
5060 * tui/tui-data.h (tui_init_win_info): Don't declare.
5062 2019-06-19 Tom de Vries <tdevries@suse.de>
5064 * dwarf2read.h (abstract_to_concrete): Change type to
5065 std::unordered_map<sect_offset, std::vector<sect_offset>,
5066 gdb::hash_enum<sect_offset>>.
5068 2019-06-19 Tom Tromey <tromey@adacore.com>
5070 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5071 EVAL_AVOID_SIDE_EFFECTS specially.
5073 2019-06-19 Tom Tromey <tromey@adacore.com>
5075 * source-cache.c (highlighter): New global.
5076 (source_cache::get_source_lines): Create a highlighter on demand.
5078 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
5080 * defs.h (deprecated_interactive_hook): Delete declaration.
5081 * interps.c (clear_interpreter_hooks): Remove use of
5082 deprecated_interactive_hook.
5083 * top.c (deprecated_interactive_hook): Delete definition.
5084 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
5086 2019-06-18 Tom de Vries <tdevries@suse.de>
5089 * dwarf2read.h (abstract_to_concrete): Change type from
5090 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
5091 std::unordered_map<sect_offset, std::vector<sect_offset>>.
5092 * dwarf2read.c (read_variable): Update.
5093 (dwarf2_fetch_die_loc_sect_off): Update.
5095 2019-06-17 Tom de Vries <tdevries@suse.de>
5098 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5099 accessing parent[parent_len - 1].
5101 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5104 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5105 call dtrace_process_dof with NULL dof.
5107 2019-06-16 Tom de Vries <tdevries@suse.de>
5110 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5112 2019-06-16 Tom Tromey <tom@tromey.com>
5114 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5115 (make_all_visible): Use address of member.
5117 2019-06-16 Tom Tromey <tom@tromey.com>
5119 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5120 (tui_free_window, free_content, free_content_elements): Remove
5122 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5124 * tui/tui-regs.c (tui_show_register_group)
5125 (tui_display_registers_from, tui_display_reg_element_at_line):
5126 Remove unnecessary cast.
5128 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5130 * linux-nat.c (normal_mask): Delete.
5131 (_initialize_linux_nat): Don't initialise normal_mask.
5133 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5136 * dwarf-index-write.h (write_psymtabs_to_index): Add
5137 dwz_basename parameter.
5138 * dwarf-index-write.c (write_gdbindex): Move file writing to
5139 write_gdbindex_1. Change return type void.
5140 (assert_file_size): Move up, remove filename parameter.
5141 (write_gdbindex_1): New function.
5142 (write_debug_names): Change return type to void, call
5144 (struct index_wip_file): New struct.
5145 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5146 file logic to index_wip_file. Write index for dwz file if
5148 (save_gdb_index_command): Pass basename of dwz file, if present.
5149 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5150 build-id of dwz file, if present.
5151 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5152 (dwarf2_get_dwz_file): Likewise.
5153 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5154 (dwarf2_get_dwz_file): Likewise.
5156 2019-06-16 Tom Tromey <tom@tromey.com>
5158 * coffread.c (process_coff_symbol): Use xstrdup.
5159 * value.c (create_internalvar): Use xstrdup.
5161 2019-06-16 Tom Tromey <tom@tromey.com>
5163 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5164 * breakpoint.c (stopin_command, stopat_command)
5165 (until_break_command, decode_location_default): Remove unnecessary
5167 * utils.c (subset_compare): Remove unnecessary cast.
5168 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5170 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5172 * infcmd.c (path_command): Remove unnecessary cast.
5173 * coffread.c (decode_type): Remove unnecessary cast.
5174 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5175 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5176 * tui/tui-stack.c (tui_show_locator_content)
5177 (tui_show_frame_info): Remove unnecessary cast.
5178 * tui/tui-win.c (tui_scroll_forward_command)
5179 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5180 (parse_scrolling_args): Remove unnecessary cast.
5181 * tui/tui-data.c (init_win_info, tui_del_window)
5182 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5183 (free_content_elements): Remove unnecessary cast.
5184 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
5186 * tui/tui-source.c (tui_set_source_content)
5187 (tui_vertical_source_scroll): Remove unnecessary cast.
5188 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
5190 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
5191 * tui/tui-regs.c (tui_display_registers_from)
5192 (tui_display_register): Remove unnecessary cast.
5193 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
5194 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
5195 (make_visible): Remove unnecessary cast.
5196 * tui/tui-winsource.c (tui_erase_source_content)
5197 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
5199 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
5200 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
5201 * stabsread.c (read_type, read_array_type, read_range_type):
5202 Remove unnecessary cast.
5203 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
5204 (parse_symbol, parse_type, upgrade_type, parse_external)
5205 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5207 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5209 2019-06-16 Tom Tromey <tom@tromey.com>
5211 * tui/tui-data.c (tui_alloc_generic_win_info)
5212 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5215 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5216 Andrew Burgess <andrew.burgess@embecosm.com>
5218 * f-typeprint.c (f_print_type): Don't return early for not
5219 associated or not allocated types.
5220 (f_type_print_varspec_suffix): Add print_rank parameter and print
5221 ranks of array types in case they dangling.
5222 (f_type_print_base): Add print_rank parameter.
5224 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5226 * NEWS: Mention new MI commands.
5227 * break-catch-throw.c (enum exception_event_kind): Move to
5229 (print_mention_exception_catchpoint): Output text as a single
5231 (catch_exception_command_1): Rename to...
5232 (catch_exception_event): ...this, make non-static, update header
5233 command, and change some parameter types.
5234 (catch_catch_command): Update for changes to
5235 catch_exception_command_1.
5236 (catch_throw_command): Likewise.
5237 (catch_rethrow_command): Likewise.
5238 * breakpoint.c (enum exception_event_kind): Delete.
5239 * breakpoint.h (enum exception_event_kind): Moved here from
5240 break-catch-throw.c.
5241 (catch_exception_event): Declare.
5242 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
5243 (mi_cmd_catch_throw): New function.
5244 (mi_cmd_catch_rethrow): New function.
5245 (mi_cmd_catch_catch): New function.
5246 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
5247 'catch-catch' entries.
5248 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
5249 (mi_cmd_catch_rethrow): Declare.
5250 (mi_cmd_catch_catch): Declare.
5252 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5254 * annotate.c (annotate_source_line): Change return type to void,
5255 update implementation to match.
5256 * annotate.h (annotate_source_line): Change return type to void,
5257 update header comment.
5258 * stack.c (print_frame_info): Don't change what frame information
5259 is printed based on whether annotations are on or not.
5261 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5263 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5264 (annotate_source): Make static.
5265 (annotate_source_line): Moved from source.c and renamed from
5266 identify_source_line. Update the return type.
5267 * annotate.h (annotate_source): Delete declaration.
5268 (annotate_source_line): Declaration moved from source.h, and
5269 renamed from identify_source_line. Return type updated.
5270 * source.c (identify_source_line): Moved to annotate.c and renamed
5271 to annotate_source_line.
5272 (info_line_command): Remove check of annotation_level.
5273 * source.h (identify_source_line): Move declaration to annotate.h
5274 and rename to annotate_source_line.
5275 * stack.c: Add 'annotate.h' include.
5276 (print_frame_info): Remove check of annotation_level before
5277 calling annotate_source_line.
5279 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5281 * source-cache.c (source_cache::get_plain_source_lines): Use
5282 open_source_file_with_line_charpos instead of just
5283 open_source_file, remove call to find_source_lines.
5284 (source_cache::get_source_lines): Likewise.
5285 * source.c (find_source_lines): Make static.
5286 (get_filename_and_charpos): Renamed into...
5287 (open_source_file_with_line_charpos): ..this along with changes to
5288 return a scoped_fd, and some other minor clean ups.
5289 (identify_source_line): Use open_source_file_with_line_charpos.
5290 (search_command_helper): Use open_source_file_with_line_charpos
5291 instead of just open_source_file, remove call to
5293 * source.h (open_source_file_with_line_charpos): Declare new
5295 (find_source_lines): Delete declaration.
5297 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5299 * source.c (get_filename_and_charpos): Remove fullname
5301 (identify_source_line): Update call to get_filename_and_charpos.
5303 2019-06-14 Tom Tromey <tromey@adacore.com>
5306 * ui-style.h (skip_ansi_escape): Update comment.
5307 * ui-file.h (class no_terminal_escape_file): New class.
5308 * ui-file.c (no_terminal_escape_file::write)
5309 (no_terminal_escape_file::puts): New methods.
5310 * cli/cli-logging.c (handle_redirections): Use
5311 no_terminal_escape_file.
5313 2019-06-14 Tom Tromey <tromey@adacore.com>
5315 * NEWS: Move convenience variable news above Python news.
5317 2019-06-14 Tom Tromey <tom@tromey.com>
5319 * gnulib: Move directory to top-level.
5320 * configure.ac: Don't configure gnulib.
5321 * configure: Rebuild.
5322 * common/common-defs.h: Use new path to gnulib.
5323 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5325 (INCGNU): Look in new gnulib location.
5326 (HFILES_NO_SRCDIR): Remove gnulib files.
5327 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5328 (generated_files): Remove GNULIB_H.
5329 ($(LIBGNU), all-lib): Remove targets.
5330 (distclean): Don't mention GNULIB_BUILDDIR.
5331 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5333 2019-06-14 Tom Tromey <tromey@adacore.com>
5335 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5336 Warn if symbol file does not provide any symbols.
5338 2019-06-14 Tom Tromey <tromey@adacore.com>
5340 * source.c (find_and_open_source): Respect basenames_may_differ.
5342 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5344 * annotate.c (annotate_breakpoints_invalid): Make use of
5345 scoped_restore_terminal_state.
5346 (annotate_frames_invalid): Likewise.
5348 2019-06-14 Tom Tromey <tromey@adacore.com>
5350 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5351 allow assignment to an internalvar.
5353 2019-06-14 Tom Tromey <tromey@adacore.com>
5355 * ada-lex.l: Allow "_" in attribute names.
5357 2019-06-14 Tom Tromey <tromey@adacore.com>
5360 * regcache.c (registers_changed): Don't call alloca.
5361 * top.c (execute_command): Don't call alloca.
5363 2019-06-13 Pedro Alves <palves@redhat.com>
5365 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5366 'expression'. When parsing an expression, error out if there's
5367 junk after "unlimited".
5368 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5369 (do_set_command): Adjust calls to is_unlimited_literal.
5371 2019-06-13 Pedro Alves <palves@redhat.com>
5373 * compile/compile.c (make_compile_options_def_group): Add braces
5374 around array_view initializer.
5375 * thread.c (make_thread_apply_all_options_def_group)
5376 (make_thread_apply_all_options_def_group): Likewise.
5378 2019-06-13 Pedro Alves <palves@redhat.com>
5380 * NEWS (New commands): Mention "maint test-options
5381 require-delimiter", "maint test-options unknown-is-error", "maint
5382 test-options unknown-is-operand" and "maint show
5383 test-options-completion-result".
5384 (New command options, command completion): New section.
5385 (Completion improvements): New section.
5386 Mention that you can abbreviate "unlimited".
5388 2019-06-13 Pedro Alves <palves@redhat.com>
5390 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5391 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5392 * unittests/cli-utils-selftests.c (test_parse_flags)
5393 (test_parse_flags_qcs): Delete.
5394 (test_cli_utils): Don't call deleted functions.
5396 2019-06-13 Pedro Alves <palves@redhat.com>
5398 * thread.c: Include "cli/cli-option.h".
5399 (tp_array_compar_ascending): Global.
5400 (tp_array_compar): Delete function.
5401 (tp_array_compar_ascending, tp_array_compar_descending): New
5403 (ascending_option_def, qcs_flag_option_def)
5404 (thr_qcs_flags_option_defs)
5405 (make_thread_apply_all_options_def_group)
5406 (make_thread_apply_options_def_group): New.
5407 (thread_apply_all_command): Use gdb::option::process_options.
5408 (thread_apply_command_completer)
5409 (thread_apply_all_command_completer): New.
5410 (thread_apply_command): Use gdb::option::process_options.
5411 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5412 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5413 to generate help text of "thread apply". Adjust "taas"'s help.
5414 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5415 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5417 2019-06-13 Pedro Alves <palves@redhat.com>
5419 * thread.c (thread_apply_command): Check for invalid TID with
5420 isdigit instead of !isalpha.
5422 2019-06-13 Pedro Alves <palves@redhat.com>
5424 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5425 (validate_flags_qcs): New.
5426 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5427 (validate_flags_qcs): Declare.
5428 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5429 (make_frame_apply_options_def_group): New.
5430 (frame_apply_command_count): Process options with
5431 gdb::option::process_options.
5432 (frame_apply_completer): New.
5433 (frame_apply_level_completer, frame_apply_all_completer)
5434 (frame_apply_completer): New.
5435 (_initialize_stack): Update help of "frame apply", "frame apply
5436 level", "frame apply all" and "faas" to mention supported options
5437 and install command completers.
5438 * stack.h (frame_apply_all_completer): Declare.
5439 * thread.c: Include "stack.h".
5440 (tfaas_command): Add "--".
5441 (_initialize_thread): Update help "tfaas" to mention supported
5442 options and install command completer.
5444 2019-06-13 Pedro Alves <palves@redhat.com>
5446 * completer.c (complete_nested_command_line): New.
5447 (gdb_completion_word_break_characters_throw): Add assertion.
5448 * completer.h (complete_nested_command_line): Declare.
5450 2019-06-13 Pedro Alves <palves@redhat.com>
5452 * stack.c (parse_backtrace_qualifiers): New.
5453 (backtrace_command): Use it.
5454 (backtrace_command_completer): Complete on qualifiers.
5456 2019-06-13 Pedro Alves <palves@redhat.com>
5458 * frame.c: Include "cli/cli-option.h.
5459 (user_set_backtrace_options): New.
5460 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
5462 (get_prev_frame): Adjust.
5463 (boolean_option_def, uinteger_option_def)
5464 (set_backtrace_option_defs): New.
5465 (_initialize_frame): Adjust and use
5466 gdb::option::add_setshow_cmds_for_options to install "set
5467 backtrace past-main" and "set backtrace past-entry".
5468 * frame.h: Include "cli/cli-option.h".
5469 (struct frame_print_options): Forward declare.
5470 (print_frame_arguments_all, print_frame_arguments_scalars)
5471 (print_frame_arguments_none): Declare.
5472 (print_entry_values): Delete declaration.
5473 (struct frame_print_options, user_frame_print_options): New.
5474 (struct set_backtrace_options): New.
5475 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
5476 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
5477 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5478 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
5479 (list_args_or_locals): Add frame_print_options parameter.
5480 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5481 * python/py-framefilter.c (enumerate_args): Pass down
5482 USER_FRAME_PRINT_OPTIONS.
5483 * stack.c: Include "cli/cli-option.h".
5484 (print_frame_arguments_all, print_frame_arguments_scalars)
5485 (print_frame_arguments_none): Declare.
5486 (print_raw_frame_arguments, print_entry_values): Delete.
5487 (user_frame_print_options): New.
5488 (boolean_option_def, enum_option_def, frame_print_option_defs):
5490 (struct backtrace_cmd_options): New.
5491 (bt_flag_option_def): New.
5492 (backtrace_command_option_defs): New.
5493 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5494 (print_frame_arg, read_frame_arg, print_frame_args)
5495 (print_frame_info, print_frame): Add frame_print_options parameter
5497 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
5498 (backtrace_command_1): Add frame_print_options and
5499 backtrace_cmd_options parameters and use them.
5500 (make_backtrace_options_def_group): New.
5501 (backtrace_command): Process command options with
5502 gdb::option::process_options.
5503 (backtrace_command_completer): New.
5504 (_initialize_stack): Extend "backtrace"'s help to mention
5505 supported options. Install completer for "backtrace".
5506 Install some settings commands with add_setshow_cmds_for_options.
5508 2019-06-13 Pedro Alves <palves@redhat.com>
5510 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
5511 and that "set/show print raw frame-arguments" are now deprecated.
5513 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
5515 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
5516 * stack.c (_initialize_stack): Install "set/show print
5517 raw-frame-arguments", and deprecate "set/show print raw
5519 * valprint.c (_initialize_valprint): Deprecate "set/show print
5522 2019-06-13 Pedro Alves <palves@redhat.com>
5524 * compile/compile.c (struct compile_options): New.
5525 (compile_flag_option_def, compile_command_option_defs)
5526 (make_compile_options_def_group): New.
5527 (compile_file_command): Handle options with
5528 gdb::option::process_options.
5529 (compile_file_command_completer): New function.
5530 (compile_code_command): Handle options with
5531 gdb::option::process_options.
5532 (compile_code_command_completer): New function.
5533 (_initialize_compiler): Install completers for "compile code" and
5534 "compile file". Mention available options in "compile code" and
5535 "compile code"'s help.
5536 * completer.c (advance_to_completion_word): New, factored out from
5538 (advance_to_expression_complete_word_point): ... this.
5539 (advance_to_filename_complete_word_point): New.
5540 * completer.h (advance_to_filename_complete_word_point): New
5543 2019-06-13 Pedro Alves <palves@redhat.com>
5545 * compile/compile.c: Include "cli/cli-option.h".
5546 (compile_print_value): Scope data pointer is now a
5547 value_print_options pointer; adjust.
5548 (compile_print_command): Process options. Scope data pointer is
5549 now a value_print_options pointer; adjust.
5550 (_initialize_compile): Update "compile print"'s help to include
5551 supported options. Install a completer for "compile print".
5552 * cp-valprint.c (show_vtblprint, show_objectprint)
5553 (show_static_field_print): Delete.
5554 (_initialize_cp_valprint): Don't install "set print
5555 static-members", "set print vtbl", "set print object" here.
5556 * printcmd.c: Include "cli/cli-option.h" and
5557 "common/gdb_optional.h".
5558 (print_command_parse_format): Rework to fill in a
5559 value_print_options instead of a format_data.
5560 (print_value): Change parameter type from format_data pointer to
5561 value_print_options reference. Adjust.
5562 (print_command_1): Process options. Adjust to pass down a
5563 value_print_options.
5564 (print_command_completer): New.
5565 (_initialize_printcmd): Install print_command_completer as
5566 handle_brkchars completer for the "print" command. Update
5567 "print"'s help to include supported options.
5568 * valprint.c: Include "cli/cli-option.h".
5569 (show_vtblprint, show_objectprint, show_static_field_print): Moved
5570 here from cp-valprint.c.
5571 (boolean_option_def, uinteger_option_def)
5572 (value_print_option_defs, make_value_print_options_def_group):
5573 New. Use gdb::option::add_setshow_cmds_for_options to install
5574 "set print elements", "set print null-stop", "set print repeats",
5575 "set print pretty", "set print union", "set print array", "set
5576 print address", "set print symbol", "set print array-indexes".
5577 * valprint.h: Include <string> and "cli/cli-option.h".
5578 (make_value_print_options_def_group): Declare.
5579 (print_value): Change parameter type from format_data pointer to
5580 value_print_options reference.
5581 (print_command_completer): Declare.
5583 2019-06-13 Pedro Alves <palves@redhat.com>
5585 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
5586 (COMMON_SFILES): Add maint-test-settings.c.
5587 * cli/cli-decode.c (boolean_enums): New global, factored out from
5589 (add_setshow_boolean_cmd): ... here.
5590 * cli/cli-decode.h (boolean_enums): Declare.
5591 * cli/cli-option.c: New file.
5592 * cli/cli-option.h: New file.
5593 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
5594 factored out from ...
5595 (parse_cli_boolean_value(const char *)): ... this.
5596 (is_unlimited_literal): Change parameter type to pointer to
5597 pointer. Adjust and advance ARG pointer.
5598 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5599 (parse_cli_var_enum): New, factored out from ...
5600 (do_set_command): ... this. Adjust.
5601 * cli/cli-setshow.h (parse_cli_boolean_value)
5602 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5603 (parse_cli_var_enum): Declare.
5604 * cli/cli-utils.c: Include "cli/cli-option.h".
5605 (get_ulongest): New.
5606 * cli/cli-utils.h (get_ulongest): Declare.
5607 (check_for_argument): New overloads.
5608 * maint-test-options.c: New file.
5610 2019-06-13 Pedro Alves <palves@redhat.com>
5612 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
5613 parse a range if "-" is at the end of the string.
5615 2019-06-13 Pedro Alves <palves@redhat.com>
5617 * cli/cli-setshow.c (parse_auto_binary_operation)
5618 (parse_cli_boolean_value): Don't allow "o".
5620 2019-06-13 Pedro Alves <palves@redhat.com>
5622 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
5623 * NEWS: Mention maint test-settings KIND.
5624 * maint-test-settings.c: New file.
5626 2019-06-13 Pedro Alves <palves@redhat.com>
5628 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
5630 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
5633 2019-06-13 Pedro Alves <palves@redhat.com>
5635 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
5638 2019-06-13 Pedro Alves <palves@redhat.com>
5640 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
5642 2019-06-13 Pedro Alves <palves@redhat.com>
5644 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
5645 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
5647 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
5648 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
5650 (check_for_argument): Skip spaces after argument.
5652 2019-06-13 Pedro Alves <palves@redhat.com>
5654 * thread.c (thread_apply_command): Adjust TID parsing.
5655 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
5656 detected before end of string.
5657 (tid_is_in_list): Error out if LIST is invalid.
5659 2019-06-13 Pedro Alves <palves@redhat.com>
5661 * completer.c (complete_line_internal_1): Rewind completion word
5663 (completion_tracker::advance_custom_word_point_by): Change
5664 parameter type to int.
5665 * completer.h (completion_tracker::advance_custom_word_point_by):
5668 2019-06-13 Pedro Alves <palves@redhat.com>
5670 * completer.c (advance_to_completion_word): Handle delimiters.
5672 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
5674 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
5676 2019-06-11 Tom Tromey <tom@tromey.com>
5678 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
5679 (xmalloc_failed): Move to alloc.c.
5680 * alloc.c: New file.
5681 * Makefile.in (COMMON_SFILES): Add alloc.c.
5683 2019-06-11 Tom Tromey <tom@tromey.com>
5685 * nat/linux-waitpid.c: Don't include server.h.
5686 (linux_debug): Remove.
5687 (my_waitpid): Update.
5689 2019-06-11 Tom Tromey <tromey@adacore.com>
5691 * infcall.c (_initialize_infcall): Remove trailing newline from
5693 * user-regs.c (_initialize_user_regs): Remove trailing newline
5695 * typeprint.c (_initialize_typeprint): Remove trailing newline
5697 * reverse.c (_initialize_reverse): Remove trailing newlines from
5699 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
5701 * language.c (add_set_language_command): Remove trailing newline
5703 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
5705 * disasm.c (_initialize_disasm): Remove trailing newline from
5707 * top.c (init_main): Remove trailing newline from help.
5708 * interps.c (_initialize_interpreter): Remove trailing newline
5710 * btrace.c (_initialize_btrace): Remove trailing newlines from
5712 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
5714 * python/python.c (_initialize_python): Remove trailing newline
5716 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
5718 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
5719 from help. Reformat some text.
5720 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
5722 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
5725 2019-06-11 Tom Tromey <tromey@adacore.com>
5727 * darwin-nat.c (darwin_decode_exception_message)
5728 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
5730 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
5732 * valops.c (value_slice): Check for not allocated or not
5735 2019-06-10 Tom de Vries <tdevries@suse.de>
5738 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
5739 sure an empty slot (defined by a 32-bit zero pair) is recognized as
5742 2019-06-10 Tom de Vries <tdevries@suse.de>
5745 * linespec.c (linespec_lexer_lex_string): Remove incorrect
5746 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
5748 2019-06-10 Tom de Vries <tdevries@suse.de>
5751 * symtab.c (struct demangled_name_entry): Add language field.
5752 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
5753 static minimal symbol". Set and use language field.
5755 2019-06-10 Tom Tromey <tromey@adacore.com>
5757 * ada-lang.c (_initialize_ada_language): Update help text.
5759 2019-06-10 Tom Tromey <tromey@adacore.com>
5761 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
5763 * guile/guile.c (handle_boot_error): Don't end warning with a
5765 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
5766 warning with a newline.
5767 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
5769 (s12z_frame_cache): Likewise.
5770 * dwarf-index-cache.c (index_cache::store): Don't end warning with
5772 * solib-svr4.c (disable_probes_interface): Don't end warning with
5774 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
5776 * python/python.c (do_finish_initialization): Don't end warning
5779 2019-06-10 Tom Tromey <tom@tromey.com>
5781 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5782 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5785 2019-06-10 Tom Tromey <tromey@adacore.com>
5787 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
5789 (elf_new_init): Don't call stabsread_new_init.
5790 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
5791 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
5792 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
5794 2019-06-10 Tom de Vries <tdevries@suse.de>
5798 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5800 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5802 * source.c (find_and_open_source): Also rewrite relative file
5805 2019-04-26 Amos Bird <amosbird@gmail.com>
5807 * annotate.c (annotate_thread_exited): Add "thread-exited"
5810 2019-06-06 Tom Tromey <tromey@adacore.com>
5812 * maint.h (class scoped_command_stats): Use
5813 DISABLE_COPY_AND_ASSIGN.
5814 <print_time>: New method.
5815 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5817 (scoped_command_stats::print_time): New method.
5819 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5821 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5822 instructions of lengths 6 or 8 bytes.
5824 2019-06-04 Pedro Alves <palves@redhat.com>
5826 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5828 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5829 * breakpoint.c (condition_completer): Likewise.
5830 * cli/cli-dump.c (scan_expression): Likewise.
5831 * common/filestuff.c (mkdir_recursive): Likewise.
5832 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5833 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5834 (gdb_abspath): Likewise.
5835 * compile/compile-cplus-types.c
5836 (compile_cplus_instance::decl_name): Likewise.
5837 * completer.c (complete_explicit_location):
5838 (signal_completer, reg_or_group_completer_1): Likewise.
5839 * cp-support.c (cp_remove_params_if_any): Likewise.
5840 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5841 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5842 * infcmd.c (strip_bg_char): Likewise.
5843 * linespec.c (copy_token_string): Likewise.
5844 * mi/mi-main.c (output_cores): Likewise.
5845 * psymtab.c (psymtab_search_name):
5846 * symfile.c (test_set_ext_lang_command): Likewise.
5847 * target.c (target_fileio_read_stralloc): Likewise.
5848 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5849 * value.c (complete_internalvar): Likewise.
5851 2019-06-04 Christian Biesinger <cbiesinger@google.com>
5853 Add objfile property to gdb.Type.
5854 * NEWS: Mention Python API addition.
5855 * python/py-type.c (typy_get_objfile): New method.
5857 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5859 * NEWS: Mention the new set|show style [title|highlight].
5860 Mention changes to "show style", "help" and "apropos".
5862 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5864 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5865 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5866 instead of print_help_for_command.
5867 (print_doc_of_command): New function.
5868 (help_list): Add 'apropos -v word' suggestion.
5869 (print_help_for_command): Style the command name using title style.
5870 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5871 (_initialize_cli_cmds): Describe -v in apropos_command help.
5873 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5875 * cli/cli-style.h (cli_style_option): Add name in constructor,
5876 add m_name class member, add constructor with intensity,
5877 add name class function.
5878 (cli_style_option::add_setshow_commands): Remove name argument.
5879 (highlight_style, title_style): New styles.
5880 * cli/cli-style.c (do_show): New function that shows a style
5881 characteristic styling the style name with itself.
5882 (set_style_name): New function.
5883 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5884 Update all callers according to the changes in cli/cli-style.h.
5885 * utils.h (fputs_highlighted): New function.
5886 * utils.c (fputs_highlighted): Likewise.
5888 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5890 * NEWS: Mention new pipe command and new convenience variables.
5892 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5894 * cli/cli-cmds.c (pipe_command): New function.
5895 (_initialize_cli_cmds): Call add_com for pipe_command.
5896 Define | as an alias for pipe.
5897 (exit_status_set_internal_vars): New function.
5898 (shell_escape): Call exit_status_set_internal_vars.
5899 cli/cli-decode.c (find_command_name_length): Recognize | as
5900 a single character command.
5902 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5904 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5905 top.c (execute_command_to_ui_file): New function, mostly a copy
5906 of execute_command_to_string.
5907 (execute_command_to_string): Implement by calling
5908 execute_command_to_ui_file.
5910 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5912 * top.h (saved_command_line): Remove declaration.
5913 * top.c (previous_saved_command_line, previous_repeat_arguments):
5915 (saved_command_line): Make static, define together with other
5917 (dont_repeat): Clear repeat_arguments.
5918 (repeat_previous, get_saved_command_line, save_command_line):
5920 (gdb_init): Initialize saved_command_line
5921 and previous_saved_command_line.
5922 * main.c (captured_main_1): Remove saved_command_line initialization.
5923 * event-top.c (handle_line_of_input): Update to use
5924 the new 'repeat' related functions instead of direct access to
5926 * command.h (repeat_previous, get_saved_command_line,
5927 save_command_line): New declarations.
5928 (dont_repeat): Add comment.
5930 2019-05-30 Tom Tromey <tromey@adacore.com>
5932 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
5934 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
5936 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
5939 * completer.c (complete): Initialize variable word.
5941 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
5943 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5944 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
5945 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
5946 'body' is NULL to the outter 'if', protecting the '!is_define'
5949 2019-05-29 Tom Tromey <tromey@adacore.com>
5951 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
5952 (dwarf_unknown): New function.
5953 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
5954 (dwarf_type_encoding_name): Use dwarf_unknown.
5956 2019-05-29 Tom Tromey <tromey@adacore.com>
5959 * cp-valprint.c (cp_print_value_fields): Call
5960 cp_print_static_field inside "try".
5962 2019-05-29 Tom Tromey <tromey@adacore.com>
5964 * inflow.c (struct terminal_info): Add default operator=.
5965 * configure: Rebuild.
5966 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
5967 -Wdeprecated-copy-dtor, -Wredundant-move.
5969 2019-05-29 Tom Tromey <tromey@adacore.com>
5972 * infcmd.c (print_return_value_1): Handle finish_print
5974 (show_print_finish): New function.
5975 (_initialize_infcmd): Add "set/show print finish" commands.
5976 * valprint.c (user_print_options): Initialize new member.
5977 * valprint.h (struct value_print_options) <finish_print>: New
5980 2019-05-28 Tom Tromey <tromey@adacore.com>
5982 * ada-lang.c (ada_remove_Xbn_suffix)
5983 (find_old_style_renaming_symbol)
5984 (parse_old_style_renaming): Remove.
5985 (ada_find_renaming_symbol): Don't call
5986 find_old_style_renaming_symbol.
5987 (ada_is_renaming_symbol): Rename from
5988 ada_find_renaming_symbol. Remove "block" parameter. Return
5990 (ada_read_var_value): Update and simplify.
5991 * ada-exp.y (write_var_or_type): Remove old code.
5993 2019-05-28 Alan Hayward <alan.hayward@arm.com>
5995 * event-top.c: Remove include comment.
5996 * inflow.c (class scoped_ignore_sigttou): Move from here...
5997 * inflow.h (class scoped_ignore_sigttou): ...to here.
5998 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
5999 * top.c: Remove include comment.
6001 2019-05-27 Tom Tromey <tom@tromey.com>
6005 2019-05-22 Tom Tromey <tromey@adacore.com>
6007 * target.c (target_follow_exec): Constify parameter.
6008 * target-delegates.c: Rebuild.
6009 * remote.c (remote_target::follow_exec): Constify parameter.
6010 * infrun.c (follow_exec): Constify parameter.
6011 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6012 (target_follow_exec): Likewise.
6014 2019-05-22 Alan Hayward <alan.hayward@arm.com>
6016 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6017 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6019 2019-05-22 Alan Hayward <alan.hayward@arm.com>
6021 * NEWS: Add debugredirect and testsuite sections.
6023 2019-05-22 Simon Cook <simon.cook@embecosm.com>
6025 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6026 target descriptions using exclusively floating point register name
6029 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6032 * f-lang.c (build_fortran_types): Handle the case where
6033 gdbarch_floatformat_for_type returns a nullptr.
6035 2019-05-21 Tom de Vries <tdevries@suse.de>
6038 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6040 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6043 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6045 * i386-tdep.c (i386_floatformat_for_type): Use
6046 floatformats_ia64_quad for the 16-byte floating point component
6047 within a fortran 32-byte complex number.
6049 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6051 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6052 delete default constructor.
6053 (find_partial_die): Update to return const struct.
6054 (partial_die_parent_scope): Move variable declaration into scope
6055 of its use and change its type to auto.
6056 (guess_partial_die_structure_name): Likewise.
6057 (partial_die_info::fixup): Likewise.
6059 2019-05-17 Tom Tromey <tromey@adacore.com>
6061 * source.c (find_and_open_source): Remove cast.
6063 2019-05-17 Tom Tromey <tromey@adacore.com>
6065 * annotate.c (annotate_source): Make "filename" const.
6066 * annotate.h (annotate_source): Use const.
6068 2019-05-17 Alan Hayward <alan.hayward@arm.com>
6070 * disasm.c (set_disassembler_options): Send errors to stderr.
6072 2019-05-17 Alan Hayward <alan.hayward@arm.com>
6074 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6075 (cli_interp_base::set_logging): Check debug_redirect.
6076 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6077 * cli/cli-logging.c (debug_redirect): Add static variable.
6078 (pop_output_files): Add default param.
6079 (handle_redirections): Print debug setting.
6080 (show_logging_command): Likewise.
6081 (_initialize_cli_logging): Add debugredirect command.
6082 * interps.c (current_interp_set_logging): Add debug_redirect
6084 * interps.h (set_logging): Add debug_redirect parameter.
6085 (current_interp_set_logging): Likewise.
6086 * mi/mi-common.h: Likewise.
6087 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
6089 2019-05-17 Alan Hayward <alan.hayward@arm.com>
6090 Tom Tromey <tromey@adacore.com>
6092 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
6094 * cli/cli-interp.h (make_logging_output): Remove declaration.
6095 * cli/cli-logging.c (make_logging_output): Remove function.
6096 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6098 * ui-file.c (tee_file::tee_file): Remove bools.
6099 (tee_file::~tee_file): Remove deletes.
6100 * ui-file.h (tee_file): Remove bools.
6102 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
6104 * mi/mi-cmds.h (mi_cmd_complete): New function.
6105 * mi/mi-main.c (mi_cmd_complete): Likewise.
6106 * mi/mi-cmds.c: Define new MI command -complete.
6107 * NEWS: Mention new -complete command.
6109 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6111 * completer.h (complete): New function.
6112 * completer.c (complete): Likewise.
6113 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6114 function defined in completer.h.
6116 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6118 * MAINTAINERS (Write After Approval): Add myself.
6120 2019-05-17 Tom de Vries <tdevries@suse.de>
6123 * dwarf2read.c (struct cu_partial_die_info): New struct.
6124 (find_partial_die): Return cu_partial_die_info.
6125 (partial_die_parent_scope, guess_partial_die_structure_name)
6126 (partial_die_info::fixup): Handle new return type of find_partial_die.
6128 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6130 PR breakpoints/24541
6131 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6132 "std::string", simplifying the algorithm.
6134 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6136 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6137 (stap_static_probe_ops::get_probes): Likewise.
6139 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6141 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6142 '-')" and "else if".
6143 (stap_parse_single_operand): Join checks for
6144 "gdbarch_stap_parse_special_token_p" and
6145 "gdbarch_stap_parse_special_token" in the same "if" statement.
6146 Invert check when verifying for operation on register
6149 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6151 * stap-probe.c (stap_get_opcode): Update comment.
6152 (stap_get_expected_argument_type): Likewise.
6153 (handle_stap_probe): Likewise.
6155 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6157 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6158 return type to 'bool'. Adjust comment. Use 'bool' when
6160 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6161 * stap-probe.c (stap_parse_argument_1): Likewise.
6162 (stap_is_operator): Likewise.
6163 (stap_is_generic_prefix): Likewise.
6164 (stap_is_register_prefix): Likewise.
6165 (stap_is_register_indirection_prefix): Likewise.
6166 (stap_is_integer_prefix): Likewise.
6167 (stap_generic_check_suffix): Likewise.
6168 (stap_check_integer_suffix): Likewise.
6169 (stap_check_register_suffix): Likewise.
6170 (stap_check_register_indirection_suffix): Likewise.
6171 (stap_parse_register_operand): Likewise.
6172 (stap_parse_single_operand): Likewise.
6173 (stap_parse_argument_1): Likewise.
6174 (stap_probe::get_argument_count): Likewise.
6175 (stap_is_operator): Likewise.
6177 2019-05-16 Tom Tromey <tromey@adacore.com>
6179 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6182 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
6184 * linux-thread-db.c (try_thread_db_load_1): Change return type
6186 (try_thread_db_load): Likewise.
6187 (try_thread_db_load_from_pdir_1): Likewise.
6188 (try_thread_db_load_from_pdir): Likewise.
6189 (try_thread_db_load_from_sdir): Likewise.
6190 (try_thread_db_load_from_dir): Likewise.
6191 (thread_db_load_search): Likewise.
6192 (has_libpthread): Likewise.
6193 (thread_db_load): Likewise.
6195 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
6197 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6198 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
6199 NULL, and complain/return if that's the case.
6201 2019-05-15 John Darrington <john@darrington.wattle.id.au>
6203 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
6204 (advance, posn, abstract_read_memory): New functions.
6205 [struct mem_read_abstraction]: New struct.
6206 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6208 2019-05-14 Tom Tromey <tromey@adacore.com>
6210 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6211 value is not lval_memory.
6213 2019-05-14 Tom Tromey <tromey@adacore.com>
6215 * solib.c (info_sharedlibrary_command): Style the file name.
6217 2019-05-14 Alan Hayward <alan.hayward@arm.com>
6219 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6220 (aarch64_vnv_type): Likewise.
6221 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
6222 * common/tdesc.c: Likewise.
6223 * common/tdesc.h (enum tdesc_type_kind): Likewise.
6224 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
6225 * features/aarch64-fpu.xml: Add ieee half view.
6226 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
6227 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
6228 * gdbtypes.h (struct builtin_type): Likewise.
6229 (struct objfile_type): Likewise.
6231 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
6233 * language.c (language_sniff_from_mangled_name): Fix "langauge"
6235 * location.h (string_to_event_location): Likewise.
6237 2019-05-11 Joel Brobecker <brobecker@adacore.com>
6241 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
6243 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
6244 New variable declaration.
6245 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6247 (print_one_breakpoint): Use ui_out::test_flags and new global
6248 variable to compute use_fixed_output.
6249 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
6251 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
6252 (mi_multi_location_breakpoint_output_fixed): Remove.
6253 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
6255 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
6256 fix_multi_location_breakpoint_output flag if version >= 3.
6257 * ui-out.h (enum ui_out_flag)
6258 <fix_multi_location_breakpoint_output>: New enumerator.
6260 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
6262 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6264 2019-05-10 Tom Tromey <tromey@adacore.com>
6266 * ada-lang.c (catch_ada_completer): New function.
6267 (_initialize_ada_language): Use it.
6269 2019-05-10 Tom Tromey <tromey@adacore.com>
6271 * thread.c (print_thread_info): Make "requested_threads" const.
6272 * gdbthread.h (print_thread_info): Make "requested_threads"
6274 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6275 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6277 2019-05-08 Tom Tromey <tom@tromey.com>
6279 * gdbtypes.c (objfile_type_data): Change type.
6280 (objfile_type, _initialize_gdbtypes): Update.
6282 2019-05-08 Tom Tromey <tom@tromey.com>
6284 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6285 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6286 (_initialize_dwarf2_frame): Update.
6288 2019-05-08 Tom Tromey <tom@tromey.com>
6290 * objc-lang.c (objc_objfile_data): Change type.
6291 (find_methods): Update.
6292 (_initialize_objc_lang): Remove.
6294 2019-05-08 Tom Tromey <tom@tromey.com>
6296 * stabsread.c (rs6000_builtin_type_data): Change type.
6297 (rs6000_builtin_type, _initialize_stabsread): Update.
6299 2019-05-08 Tom Tromey <tom@tromey.com>
6301 * mips-tdep.c (mips_pdr_data): Remove.
6302 (_initialize_mips_tdep): Update.
6304 2019-05-08 Tom Tromey <tom@tromey.com>
6306 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
6307 (hppa_init_objfile_priv_data, read_unwind_info)
6308 (find_unwind_entry, _initialize_hppa_tdep): Update.
6310 2019-05-08 Tom Tromey <tom@tromey.com>
6312 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
6313 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
6315 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
6317 2019-05-08 Tom Tromey <tom@tromey.com>
6319 * mdebugread.c (basic_type_data): Change type.
6320 (basic_type, _initialize_mdebugread): Update.
6322 2019-05-08 Tom Tromey <tom@tromey.com>
6324 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6326 2019-05-08 Tom Tromey <tom@tromey.com>
6328 * nto-tdep.c (nto_inferior_data_reg): Change type.
6329 (nto_inferior_data): Update.
6330 (nto_inferior_data_cleanup, nto_new_inferior_data)
6331 (_initialize_nto_tdep): Remove.
6332 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6334 2019-05-08 Tom Tromey <tom@tromey.com>
6336 * ada-lang.c (struct ada_inferior_data): Add initializers.
6337 (ada_inferior_data): Change type.
6338 (ada_inferior_data_cleanup): Remove.
6339 (get_ada_inferior_data, ada_inferior_exit)
6340 (struct ada_pspace_data): Add initializers, destructor.
6341 (ada_pspace_data_handle): Change type.
6342 (get_ada_pspace_data): Update.
6343 (ada_pspace_data_cleanup): Remove.
6345 2019-05-08 Tom Tromey <tom@tromey.com>
6347 * coffread.c (struct coff_symfile_info): Add initializers.
6348 (coff_objfile_data_key): Move lower. Change type.
6349 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6351 (coff_free_info): Remove.
6353 2019-05-08 Tom Tromey <tom@tromey.com>
6355 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6356 (fbsd_pspace_data_handle): Move lower. Change type.
6357 (get_fbsd_pspace_data): Update.
6358 (fbsd_pspace_data_cleanup): Remove.
6359 (_initialize_fbsd_tdep): Update.
6361 2019-05-08 Tom Tromey <tom@tromey.com>
6363 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6364 (get_ada_tasks_pspace_data): Update.
6365 (ada_tasks_pspace_data_cleanup): Remove.
6366 (_initialize_tasks): Update.
6367 (ada_tasks_inferior_data_handle): Change type.
6368 (get_ada_tasks_inferior_data): Update.
6369 (ada_tasks_inferior_data_cleanup): Remove.
6370 (struct ada_tasks_pspace_data): Add initializers.
6372 2019-05-08 Tom Tromey <tom@tromey.com>
6374 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6375 * symfile-debug.c (debug_sym_get_probes): Change type.
6376 * stap-probe.c (handle_stap_probe):
6377 (stap_static_probe_ops::get_probes): Change type.
6378 * probe.h (class static_probe_ops) <get_probes>: Change type.
6379 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6380 (parse_probes_in_pspace): Update.
6381 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6383 (any_static_probe_ops::get_probes): Change type.
6384 * elfread.c (elfread_data): New typedef.
6385 (probe_key): Change type.
6386 (elf_get_probes): Likewise. Update.
6387 (probe_key_free): Remove.
6388 (_initialize_elfread): Update.
6389 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6391 (dtrace_process_dof_probe, dtrace_process_dof)
6392 (dtrace_static_probe_ops::get_probe): Change type.
6394 2019-05-08 Tom Tromey <tom@tromey.com>
6396 * xcoffread.c (struct xcoff_symfile_info): Rename from
6397 coff_symfile_info. Add initializers.
6398 (xcoff_objfile_data_key): Move lower. Change type.
6399 (XCOFF_DATA): Rewrite.
6400 (xcoff_free_info): Remove.
6401 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6402 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6403 (xcoff_initial_scan): Update.
6405 2019-05-08 Tom Tromey <tom@tromey.com>
6407 * solib-svr4.c (struct svr4_info): Add initializers and
6409 <probes_table>: Now an htab_up.
6410 (solib_svr4_pspace_data): Change type.
6411 (free_probes_table): Simplify.
6412 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6413 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6414 (probes_table_remove_objfile_probes, register_solib_event_probe)
6415 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6416 (_initialize_svr4_solib): Update.
6418 2019-05-08 Tom Tromey <tom@tromey.com>
6420 * remote.c (remote_pspace_data): Change type.
6421 (remote_pspace_data_cleanup): Remove.
6422 (get_remote_exec_file, set_pspace_remote_exec_file)
6423 (_initialize_remote): Update.
6425 2019-05-08 Tom Tromey <tom@tromey.com>
6427 * breakpoint.c (breakpoint_objfile_key): Change type.
6428 (get_breakpoint_objfile_data): Update.
6429 (free_breakpoint_objfile_data): Remove.
6430 (_initialize_breakpoint): Update.
6432 2019-05-08 Tom Tromey <tom@tromey.com>
6434 * linux-tdep.c (struct linux_info): Add initializers.
6435 (linux_inferior_data): Move. Change type.
6436 (invalidate_linux_cache_inf): Update.
6437 (linux_inferior_data_cleanup): Remove.
6438 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6440 2019-05-08 Tom Tromey <tom@tromey.com>
6442 * auxv.c (auxv_inferior_data): Move. Change type.
6443 (auxv_inferior_data_cleanup): Remove.
6444 (invalidate_auxv_cache_inf): Rewrite.
6445 (get_auxv_inferior_data, _initialize_auxv): Update.
6447 2019-05-08 Tom Tromey <tom@tromey.com>
6449 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6450 (symfile_debug_objfile_data_key): Change type.
6451 (symfile_debug_installed, debug_qf_has_symbols)
6452 (debug_qf_find_last_source_symtab)
6453 (debug_qf_forget_cached_source_info)
6454 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
6455 (debug_qf_print_stats, debug_qf_dump)
6456 (debug_qf_expand_symtabs_for_function)
6457 (debug_qf_expand_all_symtabs)
6458 (debug_qf_expand_symtabs_with_fullname)
6459 (debug_qf_map_matching_symbols)
6460 (debug_qf_expand_symtabs_matching)
6461 (debug_qf_find_pc_sect_compunit_symtab)
6462 (debug_qf_map_symbol_filenames)
6463 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
6464 (debug_sym_new_init, debug_sym_init, debug_sym_read)
6465 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
6466 (debug_sym_read_linetable, debug_sym_relocate): Update.
6467 (symfile_debug_free_objfile): Remove.
6468 (install_symfile_debug_logging, _initialize_symfile_debug):
6471 2019-05-08 Tom Tromey <tom@tromey.com>
6473 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
6474 allocate_on_obstack.
6475 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
6476 (get_dwarf2_per_objfile): Update.
6477 (set_dwarf2_per_objfile): Remove.
6478 (dwarf2_has_info, dwarf2_get_section_info): Update.
6479 (dwarf2_free_objfile): Remove.
6480 (_initialize_dwarf2_read): Update.
6482 2019-05-08 Tom Tromey <tom@tromey.com>
6484 * auto-load.c (struct auto_load_pspace_info): Add destructor and
6486 <unsupported_script_warning_printed,
6487 script_not_found_warning_printed>: Now bool.
6488 (auto_load_pspace_data): Change type.
6489 (~auto_load_pspace_info): Rename from
6490 auto_load_pspace_data_cleanup.
6491 (get_auto_load_pspace_data, init_loaded_scripts_info)
6492 (clear_section_scripts, maybe_print_unsupported_script_warning)
6493 (maybe_print_script_not_found_warning, _initialize_auto_load):
6496 2019-05-08 Tom Tromey <tom@tromey.com>
6498 * objfiles.c (objfile_pspace_info): Add destructor and
6500 (objfiles_pspace_data): Change type.
6501 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
6502 (get_objfile_pspace_data): Update.
6503 (objfiles_bfd_data): Change type.
6504 (get_objfile_bfd_data): Update.
6505 (objfile_bfd_data_free, _initialize_objfiles): Remove.
6507 2019-05-08 Tom Tromey <tom@tromey.com>
6509 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
6511 (get_catch_syscall_inferior_data): Update.
6512 (catch_syscall_inferior_data_cleanup): Remove.
6513 (_initialize_break_catch_syscall): Update.
6515 2019-05-08 Tom Tromey <tom@tromey.com>
6517 * inflow.c (struct terminal_info): Add destructor and
6519 (inflow_inferior_data): Change type.
6520 (~terminal_info): Rename from inflow_inferior_data_cleanup.
6521 (get_inflow_inferior_data, inflow_inferior_exit)
6522 (swap_terminal_info, _initialize_inflow): Update.
6524 2019-05-08 Tom Tromey <tom@tromey.com>
6526 * target-dcache.c (target_dcache_cleanup): Remove.
6527 (target_dcache_aspace_key): Change type.
6528 (target_dcache_init_p, target_dcache_invalidate)
6529 (target_dcache_get, target_dcache_get_or_init)
6530 (_initialize_target_dcache): Update.
6531 * dcache.h (struct dcache_deleter): New.
6533 2019-05-08 Tom Tromey <tom@tromey.com>
6535 * symtab.c (struct symbol_cache): Add destructor and
6537 (symbol_cache_key): Move. Change type.
6538 (make_symbol_cache, free_symbol_cache): Remove.
6539 (get_symbol_cache): Update.
6540 (symbol_cache_cleanup): Remove.
6541 (ALL_PSPACES, symbol_cache_flush)
6542 (maintenance_print_symbol_cache)
6543 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
6546 2019-05-08 Tom Tromey <tom@tromey.com>
6548 * symtab.c (struct main_info): Add destructor and initializers.
6549 (main_progspace_key): Move. Change type.
6550 (get_main_info): Update.
6551 (main_info_cleanup): Remove.
6552 (_initialize_symtab): Update.
6554 2019-05-08 Tom Tromey <tom@tromey.com>
6556 * registry.h (DECLARE_REGISTRY): Define the _key class.
6558 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6560 * NEWS: Merge two 'New commands' sections.
6562 2019-05-08 Joel Brobecker <brobecker@adacore.com>
6564 * ada-valprint.c (ada_val_print_gnat_array): Remove language
6565 parameter and use Ada language definition instead.
6566 (ada_val_print_ptr): Remove unused language parameter.
6567 (ada_val_print_num): Remove language parameter and use Ada language
6569 (ada_val_print_enum, ada_val_print_flt): Remove unused language
6571 (ada_val_print_struct_union, ada_val_print_ref): Remove language
6572 parameter and use Ada language definition instead.
6573 (ada_val_print_1): Update all ada_val_print_xxx calls.
6574 Remove language parameter.
6575 (ada_val_print): Update ada_val_print_1 call.
6577 2019-05-08 Tom Tromey <tromey@adacore.com>
6579 * remote.c (remote_hw_watchpoint_limit)
6580 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
6583 2019-05-08 Tom Tromey <tromey@adacore.com>
6585 * maint.c (_initialize_maint_cmds): Move initialization code to
6587 (watchdog, show_watchdog): Move to remote.c.
6588 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
6590 (_initialize_remote): Move initialization code from maint.c.
6591 * defs.h (watchdog): Don't declare.
6593 2019-05-08 Tom Tromey <tromey@adacore.com>
6595 * tui/tui-interp.c: Include main.h.
6596 * interps.c: Include main.h.
6597 * main.h (interpreter_p): Declare.
6598 * defs.h (interpreter_p): Don't declare.
6600 2019-05-08 Tom Tromey <tromey@adacore.com>
6602 * dwarf2loc.c: Include dwarf2read.h.
6603 * defs.h (read_unsigned_leb128): Don't declare.
6604 * dwarf2read.h (read_unsigned_leb128): Declare.
6606 2019-05-08 Tom Tromey <tromey@adacore.com>
6608 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
6611 2019-05-08 Tom Tromey <tromey@adacore.com>
6613 * utils.c (fputs_maybe_filtered): Reset style after paging, even
6614 when no wrap column is set.
6616 2019-05-08 Tom Tromey <tromey@adacore.com>
6618 * c-lang.c (c_get_string): Handle non-C-style arrays.
6620 2019-05-08 Tom Tromey <tromey@adacore.com>
6622 * typeprint.c (print_offset_data::update): Print the bit offset,
6623 not the number of bits remaining.
6625 2019-05-08 Tom Tromey <tromey@adacore.com>
6627 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
6628 padding at end of comment.
6630 2019-05-08 Tom Tromey <tromey@adacore.com>
6632 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
6635 2019-05-06 Tom Tromey <tom@tromey.com>
6637 * common/scoped_mmap.c: Include common-defs.h.
6638 * common/scoped_mmap.h: Don't include config.h.
6640 2019-05-04 Tom Tromey <tom@tromey.com>
6642 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
6643 (struct aarch64_call_info): Add initializers.
6644 <si>: Now a std::vector.
6645 (pass_on_stack, aarch64_push_dummy_call): Update.
6647 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
6648 Tom Tromey <tom@tromey.com>
6650 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
6651 (ppc_threads): Now a std::vector. Now static.
6652 (hwdebug_find_thread_points_by_tid)
6653 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
6656 2019-05-04 Tom Tromey <tom@tromey.com>
6658 * arc-tdep.c (arc_tdesc_init): Return bool.
6660 2019-05-04 Tom Tromey <tom@tromey.com>
6662 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
6663 Use gdb_assert_not_reached.
6665 2019-05-04 Tom Tromey <tom@tromey.com>
6667 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
6670 2019-05-04 Tom Tromey <tom@tromey.com>
6672 * arc-tdep.c (arc_tdesc_init): Use bool.
6674 2019-05-04 Tom Tromey <tom@tromey.com>
6676 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
6678 2019-05-04 Tom Tromey <tom@tromey.com>
6680 * cli/cli-cmds.c (valid_command_p): Return bool.
6682 2019-05-04 Tom Tromey <tom@tromey.com>
6684 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
6685 * command.h (valid_user_defined_cmd_name_p): Channge return type.
6687 2019-05-04 Raul Tambre <raul@tambre.ee>
6689 * python/lib/gdb/prompt.py (_ExtendedPrompt)
6690 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
6691 operator for comparison.
6693 2019-05-04 Tom Tromey <tom@tromey.com>
6695 * psymtab.c (psymbol_name_matches, match_partial_symbol)
6696 (lookup_partial_symbol, print_partial_symbols)
6697 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
6698 (psymbol_compare): Update.
6699 (add_psymbol_to_bcache): Clear the entire psymbol.
6700 (maintenance_check_psymtabs): Update.
6701 * psympriv.h (struct partial_symbol): Don't derive from
6702 general_symbol_info.
6703 <obj_section, unrelocated_address, address,
6704 set_unrelocated_address>: Update.
6705 <ginfo>: New member.
6706 * dwarf-index-write.c (write_psymbols, debug_names::insert)
6707 (debug_names::write_psymbols): Update.
6709 2019-05-04 Tom de Vries <tdevries@suse.de>
6711 * contrib/cc-with-tweaks.sh: Support -n arg.
6713 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6715 * corelow.c (core_target::detach): Ensure frame cache and
6716 register caches are cleared.
6717 inferior.c (exit_inferior_1): Likewise.
6719 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
6720 Tom Tromey <tom@tromey.com>
6722 * dictionary.c (collate_pending_symbols_by_language): Remove
6723 "struct" from foreach.
6724 * symtab.c (lookup_global_symbol_from_objfile)
6725 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
6727 * ser-tcp.c (net_open): Remove "struct" from foreach.
6728 * objfiles.c (objfile_relocate, objfile_rebase)
6729 (objfile_has_symbols): Remove "struct" from foreach.
6730 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
6732 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
6734 * darwin-nat.c (thread_info_from_private_thread_info): Remove
6735 "struct" from foreach.
6736 * ada-lang.c (create_excep_cond_exprs)
6737 (ada_exception_catchpoint_cond_string): Remove "struct" from
6740 2019-05-03 Tom Tromey <tromey@adacore.com>
6742 * ada-exp.y (convert_char_literal): Check suffix of each
6745 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
6748 * ada-exp.y (yywrap): Don't define.
6749 * ada-lex.l (%option): Add noyywrap
6752 2019-05-03 Eli Zaretskii <eliz@gnu.org>
6754 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
6755 _WIN32_WINNT to the XP level, unless already defined to a higher
6758 * unittests/parse-connection-spec-selftests.c:
6760 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
6763 * symfile.c (find_separate_debug_file): Remove colon from the
6764 drive spec of DOS/Windows file names of the target, so that the
6765 file name produced from DEBUGDIR and the target's directory will
6766 be valid on DOS/Windows systems.
6768 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
6770 * rust-lang.c (val_print_struct): Handle printing structures
6773 2019-05-02 Tom Tromey <tromey@adacore.com>
6775 * valarith.c (_initialize_valarith): Remove.
6777 2019-05-01 Tom Tromey <tromey@adacore.com>
6779 * ada-lang.c (ada_value_primitive_field): Treat more fields as
6782 2019-05-01 Tom Tromey <tromey@adacore.com>
6784 * ada-lang.c (ada_value_assign): Correctly compute starting offset
6785 for big-endian copies.
6787 2019-04-30 Ali Tamur <tamur@google.com>
6788 * gdb/dwarf2read.c (read_3_bytes): New declaration.
6789 (read_attribute_value): Added DW_FORM_strx1-4 cases.
6790 (read_3_bytes): New function.
6792 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6794 * windows-nat.c (main_thread_id): Delete.
6795 (handle_output_debug_string): Replace main_thread_id by
6796 current_event.dwThreadId.
6797 (fake_create_process): Likewise.
6798 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6799 Do not set main_thread_id.
6800 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6801 current_event.dwThreadId.
6802 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6804 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6806 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6807 Use current_event.dwThreadId instead of main_thread_id.
6809 2019-04-30 Tom Tromey <tromey@adacore.com>
6811 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6812 (create_excep_cond_exprs): Iterate over program spaces.
6813 (ada_exception_catchpoint_cond_string): Examine all minimal
6814 symbols for exception types.
6816 2019-04-30 Tom Tromey <tromey@adacore.com>
6819 * dwarf2read.c (process_structure_scope): Handle case where type
6820 has template parameters but no symbol was created.
6822 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6823 Chris January <chris.january@arm.com>
6825 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6827 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6829 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6831 * f-typeprint.c (f_print_type): Update rules for printing
6833 (f_type_print_varspec_suffix): Likewise.
6835 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6836 Chris January <chris.january@arm.com>
6838 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6841 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6843 * f-lang.c (build_fortran_types): Change name of void type to
6845 * f-typeprint.c (f_type_print_base): Print the name of the void
6846 type, rather than a fixed string.
6847 * f-valprint.c (f_decorations): Use lower case void string.
6849 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6850 Chris January <chris.january@arm.com>
6852 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6855 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6856 Chris January <chris.january@arm.com>
6857 David Lecomber <david.lecomber@arm.com>
6859 * f-exp.y (BINOP_INTRINSIC): New token.
6860 (exp): New parser rule handling BINOP_INTRINSIC.
6861 (f77_keywords): Add new builtin procedures.
6862 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6863 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6864 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6865 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6866 (print_unop_subexp_f): New function.
6867 (print_binop_subexp_f): New function.
6868 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6869 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6870 (dump_subexp_body_f): Likewise.
6871 (operator_check_f): Likewise.
6872 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6873 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6875 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6877 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6879 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6880 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6881 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6882 (operator_length_f): New fuction.
6883 (print_subexp_f): New function.
6884 (op_name_f): New function.
6885 (dump_subexp_body_f): New function.
6886 (operator_check_f): New function.
6887 (exp_descriptor_f): Replace standard expression handling functions
6889 * gdb/fortran-operator.def: New file.
6890 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6891 * gdb/std-operator.def: Remove UNOP_KIND.
6893 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6895 * std-operator.def: Remove unbalanced, stray double quote
6898 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6899 Chris January <chris.january@arm.com>
6900 Daniel Everett <daniel.everett@arm.com>
6901 Nick Forrington <nick.forrington@arm.com>
6902 Richard Bunt <richard.bunt@arm.com>
6904 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6905 of depth when printing anonymous structs or unions.
6906 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6907 Don't print either the top-level value, or the children if the
6908 max-depth is exceeded.
6909 (ppscm_print_children): When printing the key of a map, allow one
6910 extra level of depth.
6911 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6912 print either the top-level value, or the children if the max-depth
6914 (print_children): When printing the key of a map, allow one extra
6916 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6917 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6918 (user_print_options): Initialise max_depth field.
6919 (val_print_scalar_or_string_type_p): New function.
6920 (val_print): Check to see if the max depth has been reached.
6921 (val_print_check_max_depth): Define new function.
6922 (show_print_max_depth): New function.
6923 (_initialize_valprint): Add 'print max-depth' option.
6924 * valprint.h (struct value_print_options) <max_depth>: New field.
6925 (val_print_check_max_depth): Declare new function.
6926 * NEWS: Document new feature.
6928 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6930 * ada-lang.c (ada_language_defn): Initialise new field.
6931 * c-lang.c (c_is_string_type_p): New function.
6932 (c_language_defn): Initialise new field.
6933 (cplus_language_defn): Initialise new field.
6934 (asm_language_defn): Initialise new field.
6935 (minimal_language_defn): Initialise new field.
6936 * c-lang.h (c_is_string_type_p): Declare new function.
6937 * d-lang.c (d_language_defn): Initialise new field.
6938 * f-lang.c (f_is_string_type_p): New function.
6939 (f_language_defn): Initialise new field.
6940 * go-lang.c (go_is_string_type_p): New function.
6941 (go_language_defn): Initialise new field.
6942 * language.c (default_is_string_type_p): New function.
6943 (unknown_language_defn): Initialise new field.
6944 (auto_language_defn): Initialise new field.
6945 * language.h (struct language_defn) <la_is_string_type_p>: New
6947 (default_is_string_type_p): Declare new function.
6948 * m2-lang.c (m2_language_defn): Initialise new field.
6949 * objc-lang.c (objc_language_defn): Initialise new field.
6950 * opencl-lang.c (opencl_language_defn): Initialise new field.
6951 * p-lang.c (pascal_is_string_type_p): New function.
6952 (pascal_language_defn): Initialise new field.
6953 * rust-lang.c (rust_is_string_type_p): New function.
6954 (rust_language_defn): Initialise new field.
6956 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6958 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
6960 * ada-lang.c (ada_language_defn): Initialise new field.
6961 * c-lang.c (c_language_defn): Likewise.
6962 (cplus_language_defn): Likewise.
6963 (asm_language_defn): Likewise.
6964 (minimal_language_defn): Likewise.
6965 * d-lang.c (d_language_defn): Likewise.
6966 * f-lang.c (f_language_defn): Likewise.
6967 * go-lang.c (go_language_defn): Likewise.
6968 * language.c (unknown_language_defn): Likewise.
6969 (auto_language_defn): Likewise.
6970 * m2-lang.c (m2_language_defn): Likewise.
6971 * objc-lang.c (objc_language_defn): Likewise.
6972 * opencl-lang.c (opencl_language_defn): Likewise.
6973 * p-lang.c (pascal_language_defn): Likewise.
6974 * rust-lang.c (rust_language_defn): Likewise.
6976 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6978 * ada-lang.c (ada_is_character_type): Change return type to bool.
6979 (ada_is_string_type): Likewise.
6980 * ada-lang.h (ada_is_character_type): Update declaration
6981 (ada_is_string_type): Likewise.
6983 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6985 Support style in 'frame|thread apply'
6987 * gdbcmd.h (execute_command_to_string): New term_out parameter.
6988 * record.c (record_start, record_stop): Update callers of
6989 execute_command_to_string with false.
6990 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
6991 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
6993 (class string_file): New constructor with term_out parameter.
6994 Override methods term_out and can_emit_style_escape. New member
6996 (class stdio_file): Override can_emit_style_escape.
6997 (class tee_file): Override term_out and can_emit_style_escape.
6998 * utils.h (can_emit_style_escape): Remove.
6999 * utils.c (can_emit_style_escape): Likewise.
7000 Update all callers of can_emit_style_escape (SOMESTREAM) to
7001 SOMESTREAM->can_emit_style_escape.
7002 * source-cache.c (source_cache::get_source_lines): Likewise.
7003 * stack.c (frame_apply_command_count): Call execute_command_to_string
7004 passing the term_out characteristic of the current gdb_stdout.
7005 * thread.c (thr_try_catch_cmd): Likewise.
7006 * top.c (execute_command_to_string): pass term_out parameter
7007 to construct the string_file for the command output.
7008 * ui-file.c (term_cli_styling): New function (most code moved
7009 from utils.c can_emit_style_escape).
7010 (string_file::string_file, string_file::can_emit_style_escape,
7011 stdio_file::can_emit_style_escape, tee_file::term_out,
7012 tee_file::can_emit_style_escape): New functions.
7014 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7016 * NEWS: Mention the new set|show may-call-functions.
7017 * infcall.c (may_call_functions_p): New variable.
7018 (show_may_call_functions_p): New function.
7019 (call_function_by_hand_dummy): Throws an error if not
7021 (_initialize_infcall): Call add_setshow_boolean_cmd for
7024 2019-04-25 Keith Seitz <keiths@redhat.com>
7027 * cp-support.c (inspect_type): Don't attempt substitutions
7028 of symbol with the same name.
7030 2019-04-25 Tom Tromey <tromey@adacore.com>
7033 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7036 2019-04-25 Tom Tromey <tromey@adacore.com>
7038 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7040 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7041 (gdb_xml_parser::parse): Use std::move.
7042 * python/python-internal.h (gdbpy_convert_exception): Take a const
7044 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7046 * python/py-utils.c (gdbpy_convert_exception): Take a const
7048 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7050 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7052 * mi/mi-main.c (mi_print_exception): Take a const reference.
7053 * main.c (handle_command_errors): Take a const reference.
7054 * linespec.c (parse_linespec): Use std::move.
7055 * infcall.c (run_inferior_call): Use std::move.
7056 (call_function_by_hand_dummy): Use std::move.
7057 * exec.c (try_open_exec_file): Use std::move.
7058 * exceptions.h (exception_print, exception_fprintf)
7059 (exception_print_same): Update.
7060 * exceptions.c (print_exception, exception_print)
7061 (exception_fprintf, exception_print_same): Change parameters to
7063 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7064 * common/new-op.c: Use std::move.
7065 * common/common-exceptions.h (struct gdb_exception): Add move
7067 (struct gdb_exception_error, struct gdb_exception_quit, struct
7068 gdb_quit_bad_alloc): Change constructor to move constructor.
7069 (throw_exception): Change parameter to rvalue reference.
7070 * common/common-exceptions.c (throw_exception): Take rvalue
7072 * cli/cli-interp.c (safe_execute_command): Use std::move.
7073 * breakpoint.c (insert_bp_location, location_to_sals): Use
7076 2019-04-25 Tom Tromey <tromey@adacore.com>
7078 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7079 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7080 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7081 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7082 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
7083 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
7084 guile/scm-value.c: Use unpack.
7085 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
7086 gdbscm_gdb_exception.
7087 (gdbscm_throw_gdb_exception): Likewise.
7088 (struct gdbscm_gdb_exception): New.
7089 (unpack): New function.
7090 (gdbscm_wrap): Use unpack.
7092 2019-04-25 Tom Tromey <tromey@adacore.com>
7094 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7095 (gdb_rl_callback_handler): Use std::move.
7096 * common/common-exceptions.h (struct gdb_exception): Add move
7097 assignment operator.
7098 (throw_exception_sjlj): Change "exception" to const reference.
7099 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7100 (throw_exception_sjlj): Change "exception" to const reference.
7102 2019-04-25 Tom Tromey <tromey@adacore.com>
7104 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7105 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7106 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7108 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7110 * mi/mi-interp.c (mi_interp::exec): Update.
7111 * linespec.c (parse_linespec): Update.
7112 * infcall.c (run_inferior_call): Update.
7113 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7114 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7115 (gdbscm_lookup_global_symbol): Update.
7116 * guile/scm-param.c (gdbscm_parameter_value): Update.
7117 * guile/scm-frame.c (gdbscm_frame_read_register)
7118 (gdbscm_frame_read_var): Update.
7119 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7120 * exec.c (try_open_exec_file): Update.
7121 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7122 (gdb_rl_callback_handler): Update.
7123 * common/common-exceptions.h (exception_none): Don't declare.
7124 * common/common-exceptions.c (exception_none): Don't define.
7125 (struct catcher) <exception>: Update.
7126 * cli/cli-interp.c (safe_execute_command): Update.
7127 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7129 2019-04-25 Ali Tamur <tamur@google.com>
7131 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7132 (read_attribute_value): Likewise.
7133 (dwarf2_read_addr_index): Update comment.
7134 (read_str_index): Add DW_FORM_strx.
7135 (dwarf2_string_attr): Likewise.
7136 (dwarf2_const_value_attr): Likewise.
7137 (dump_die_shallow): Likewise.
7138 (dwarf2_fetch_constant_bytes): Likewise.
7139 (skip_form_bytes): Likewise.
7140 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7142 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7146 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7147 OFFSET. Verify if current mapping contains an ELF header.
7148 (linux_find_memory_regions_full): Adjust call to
7151 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7152 Kang Li <kanglictf@gmail.com>
7156 * dwarf2-frame.c (read_initial_length): Be consistent about using
7157 unsigned representation of length.
7158 (decode_frame_entry_1): Likewise. Check for wraparound of
7159 end pointer as well as buffer overflow.
7161 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7163 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7166 2019-04-24 Tom Tromey <tromey@adacore.com>
7168 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7170 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7172 * s12z-tdep.c (s12z_unwind_pc): Delete.
7173 (s12z_unwind_sp): Delete.
7174 (s12z_gdbarch_init): Don't register deleted functions with
7177 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7179 * rl78-tdep.c (rl78_unwind_sp): Delete.
7180 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7182 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7184 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
7185 (xstormy16_unwind_pc): Delete.
7186 (xstormy16_dummy_id): Delete.
7187 (xstormy16_gdbarch_init): Don't register deleted functions with
7190 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7192 * vax-tdep.c (vax_unwind_pc): Delete.
7193 (vax_gdbarch_init): Don't register deleted function with gdbarch.
7195 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7197 * v850-tdep.c (v850_unwind_sp): Delete.
7198 (v850_unwind_pc): Delete.
7199 (v850_dummy_id): Delete.
7200 (v850_gdbarch_init): Don't register deleted functions with
7203 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7205 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7206 (tilegx_unwind_pc): Delete.
7207 (tilegx_unwind_dummy_id): Delete.
7208 (tilegx_gdbarch_init): Don't register deleted functions with
7211 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7213 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7214 (tic6x_dummy_id): Delete.
7215 (tic6x_gdbarch_init): Don't register deleted functions with
7218 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7220 * sparc-tdep.c (sparc_unwind_pc): Delete.
7221 (sparc32_gdbarch_init): Don't register deleted function with
7224 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7226 * sh-tdep.c (sh_unwind_sp): Delete.
7227 (sh_unwind_pc): Delete.
7228 (sh_dummy_id): Delete.
7229 (sh_gdbarch_init): Don't register deleted functions with
7232 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7234 * score-tdep.c (score_unwind_sp): Delete.
7235 (score_unwind_pc): Delete.
7236 (score_dummy_id): Delete.
7237 (score_gdbarch_init): Don't register deleted functions with
7240 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7242 * rx-tdep.c (rx_unwind_pc): Delete.
7243 (rx_unwind_sp): Delete.
7244 (rx_dummy_id): Delete.
7245 (rx_gdbarch_init): Don't register deleted functions with
7246 gdbarch. Update comment.
7248 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7250 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
7251 (rs6000_dummy_id): Delete.
7252 (rs6000_gdbarch_init): Don't register deleted functions with
7255 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7257 * or1k-tdep.c (or1k_dummy_id): Delete.
7258 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
7260 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7262 * nios2-tdep.c (nios2_dummy_id): Delete.
7263 (nios2_unwind_sp): Delete.
7264 (nios2_gdbarch_init): Don't register deleted functions with
7267 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7269 * nds32-tdep.c (nds32_dummy_id): Delete.
7270 (nds32_unwind_pc): Delete.
7271 (nds32_unwind_sp): Delete.
7272 (nds32_gdbarch_init): Don't register deleted functions with
7275 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7277 * msp430-tdep.c (msp430_unwind_pc): Delete.
7278 (msp430_unwind_sp): Delete.
7279 (msp430_dummy_id): Delete.
7280 (msp430_gdbarch_init): Don't register deleted functions with
7283 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7285 * moxie-tdep.c (moxie_unwind_sp): Delete.
7286 (moxie_unwind_pc): Delete.
7287 (moxie_dummy_id): Delete.
7288 (moxie_gdbarch_init): Don't register deleted functions with
7291 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7293 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7294 (mn10300_unwind_pc): Delete.
7295 (mn10300_unwind_sp): Delete.
7296 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7298 (mn10300_frame_unwind_init): Don't register deleted functions with
7301 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7303 * mep-tdep.c (mep_unwind_pc): Delete.
7304 (mep_unwind_sp): Delete.
7305 (mep_dummy_id): Delete.
7306 (mep_gdbarch_init): Don't register deleted functions with
7309 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7311 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
7312 (m68hc11_unwind_sp): Delete.
7313 (m68hc11_gdbarch_init): Don't register deleted functions with
7316 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7318 * m32r-tdep.c (m32r_unwind_sp): Delete.
7319 (m32r_unwind_pc): Delete.
7320 (m32r_dummy_id): Delete.
7321 (m32r_gdbarch_init): Don't register deleted functions with
7324 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7326 * m32c-tdep.c (m32c_unwind_pc): Delete.
7327 (m32c_unwind_sp): Delete.
7328 (m32c_dummy_id): Delete.
7329 (m32c_gdbarch_init): Don't register deleted functions with
7332 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7334 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7335 (lm32_unwind_pc): Delete.
7336 (lm32_dummy_id): Delete.
7337 (lm32_gdbarch_init): Don't register deleted functions with
7340 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7342 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7343 (iq2000_unwind_pc): Delete.
7344 (iq2000_dummy_id): Delete.
7345 (iq2000_gdbarch_init): Don't register deleted functions with
7348 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7350 * nds32-tdep.c (nds32_type_align): Delete.
7351 (nds32_push_dummy_call): Use type_align instead.
7353 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7355 * arm-tdep.c (arm_type_align): Only handle vector override case.
7356 (arm_push_dummy_call): Use type_align.
7357 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7359 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7361 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7363 (pass_on_stack): Use type_align.
7364 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7367 2019-04-23 Tom Tromey <tromey@adacore.com>
7369 * dwarf2read.c (line_header::file_name_at): Remove unused
7372 2019-04-23 Tom de Vries <tdevries@suse.de>
7375 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7379 2019-03-27 Ali Tamur <tamur@google.com>
7381 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7382 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7383 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7384 (dwarf_expr_context::get_addr_index): Likewise
7385 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7386 (symbol_needs_eval_context::get_addr_index): Likewise
7387 (disassemble_dwarf_expression): Add DW_OP_addrx
7388 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7389 (read_cutu_die_from_dwo): Update comment
7390 (skip_one_die): Add DW_FORM_addrx
7391 (read_attribute_value): Likewise
7392 (var_decode_location): Add DW_OP_addrx
7393 (dwarf2_const_value_attr): Add DW_FORM_addrx
7394 (dump_die_shallow): Likewise
7395 (dwarf2_fetch_constant_bytes): Likewise
7396 (decode_locdesc): Add DW_OP_addrx
7397 (skip_form_bytes): Add DW_FORM_addrx
7399 2019-04-22 Ali Tamur <tamur@google.com>
7401 * MAINTAINERS (Write After Approval): Add self.
7403 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
7405 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7406 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7407 (open_symbol_file_object): Likewise.
7408 (svr4_default_sos): Add info parameter.
7409 (svr4_read_so_list): Likewise.
7410 (svr4_current_sos_direct): Adjust functions calls to pass down
7412 (svr4_current_sos_1): Add info parameter.
7413 (svr4_current_sos): Call get_svr4_info, pass info down to
7415 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7417 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7419 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7421 (probes_table_remove_objfile_probes): Likewise.
7422 (register_solib_event_probe): Add info parameter.
7423 (solist_update_incremental): Pass info parameter down to
7425 (disable_probes_interface): Add info parameter.
7426 (svr4_handle_solib_event): Pass current_program_space to
7427 get_svr4_info. Adjust disable_probes_interface cleanup.
7428 (svr4_create_probe_breakpoints): Add info parameter, pass it
7429 down to register_solib_event_probe.
7430 (svr4_create_solib_event_breakpoints): Add info parameter,
7431 pass it down to svr4_create_probe_breakpoints.
7432 (enable_break): Pass info down to
7433 svr4_create_solib_event_breakpoints.
7434 (svr4_solib_create_inferior_hook): Pass current_program_space to
7436 (svr4_clear_solib): Likewise.
7438 2019-04-22 Pedro Alves <palves@redhat.com>
7440 * solib-svr4.c (svr4_free_objfile_observer): New.
7441 (probe_and_action::objfile): New field.
7442 (probes_table_htab_remove_objfile_probes)
7443 (probes_table_remove_objfile_probes): New functions.
7444 (register_solib_event_probe): Add 'objfile' parameter. Store it
7445 in the new probe_and_action. Don't store the probe in 'lookup'.
7446 (svr4_create_probe_breakpoints): Pass objfile to
7447 register_solib_event_probe.
7448 (_initialize_svr4_solib): Register a free_objfile observer.
7450 2019-04-19 Tom Tromey <tom@tromey.com>
7452 * common/queue.h: Remove.
7454 2019-04-19 Tom Tromey <tom@tromey.com>
7456 * event-loop.c: Don't include "common/queue.h".
7458 2019-04-19 Tom Tromey <tom@tromey.com>
7460 * remote.c (remote_target): Use delete.
7461 * remote-notif.h: Include <list>, not "common/queue.h".
7462 (notif_client_p): Remove typedef.
7463 (remote_notif_state): Add constructor, destructor, initializer.
7464 <notif_queue>: Now a std::list.
7465 (remote_notif_state_xfree): Don't declare.
7466 * remote-notif.c (remote_notif_process, handle_notification)
7467 (remote_notif_state_allocate): Update.
7468 (~remote_notif_state): Rename from remote_notif_state_xfree.
7470 2019-04-19 Tom Tromey <tom@tromey.com>
7472 * symfile.c (reread_symbols): Update.
7473 * objfiles.c (objfile_register_static_link)
7474 (objfile_lookup_static_link): Update
7475 (~objfile) Don't delete static_links.
7476 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
7478 2019-04-19 Tom Tromey <tom@tromey.com>
7480 * type-stack.h (struct type_stack) <insert>: Constify string.
7481 * type-stack.c (type_stack::insert): Constify string.
7482 * gdbtypes.h (lookup_template_type): Update.
7483 (address_space_name_to_int): Update.
7484 * gdbtypes.c (address_space_name_to_int): Make space_identifier
7486 (lookup_template_type): Make name const.
7487 * c-exp.y: Update rules.
7488 (lex_one_token, classify_name, classify_inner_name)
7489 (c_print_token): Update.
7490 * p-exp.y: Update rules.
7492 * f-exp.y: Update rules.
7494 * d-exp.y: Update rules.
7495 (lex_one_token, classify_name, classify_inner_name): Update.
7496 * parse.c (write_dollar_variable, copy_name): Return std::string.
7497 * parser-defs.h (copy_name): Change return type.
7498 * m2-exp.y: Update rules.
7500 * go-exp.y (lex_one_token): Update.
7502 (classify_unsafe_function, classify_packaged_name)
7503 (classify_name, yylex): Update.
7505 2019-04-19 Sergei Trofimovich <siarheit@google.com>
7507 * configure.ac: add --enable-source-highlight switch.
7508 * configure: Regenerate.
7509 * top.c (print_gdb_version): plumb --enable-source-highlight
7510 status to "show configuration".
7512 2019-04-19 Tom Tromey <tromey@adacore.com>
7514 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
7516 (empty_record, ada_template_to_fixed_record_type_1)
7517 (template_to_static_fixed_type)
7518 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
7519 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
7520 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
7523 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7526 * source.c (print_source_lines_base): Advance "iter" when a
7527 control character is seen.
7529 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7531 * inferior.h (struct infcall_suspend_state_deleter):
7532 Catch exception in destructor to avoid crash.
7534 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7536 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
7537 close to the add_com "shell".
7539 2019-04-18 Tom Tromey <tromey@adacore.com>
7541 * process-stratum-target.h (class process_stratum_target)
7542 <stratum>: Add "final".
7544 2019-04-17 Tom Tromey <tromey@adacore.com>
7546 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
7547 against nullptr before use.
7549 2019-04-17 Alan Hayward <alan.hayward@arm.com>
7551 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
7553 2019-04-17 Jim Wilson <jimw@sifive.com>
7554 Andrew Burgess <andrew.burgess@embecosm.com>
7556 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
7557 code read might fail, assume 4-byte breakpoint in that case.
7559 2019-04-15 Leszek Swirski <leszeks@google.com>
7561 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
7562 rather than a hand-rolled POD check when checking for forced MEMORY
7565 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7567 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
7568 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
7570 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
7571 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
7572 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
7575 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7577 * aarch64-linux-nat.c
7578 (aarch64_linux_nat_target::thread_architecture): Add override.
7579 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
7582 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7584 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
7586 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
7588 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
7589 target types of size 96-bits, add some additional comments, and
7590 check that the builtin type we found was the correct size.
7592 2019-04-12 Eli Zaretskii <eliz@gnu.org>
7594 * utils.c (prompt_for_continue): Don't restore the styling at the
7595 end, as applied_style has the wrong value. This fixes styling in
7596 long lists of file names that are interrupted by the "Continue?"
7599 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
7601 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
7602 * c-lang.c (c_language_defn): Likewise.
7603 (cplus_language_defn): Likewise.
7604 (asm_language_defn): Likewise.
7605 (minimal_language_defn): Likewise.
7606 * d-lang.c (d_language_defn): Likewise.
7607 * f-lang.c (f_language_defn): Likewise.
7608 * go-lang.c (go_language_defn): Likewise.
7609 * language.c (unknown_language_defn): Likewise.
7610 (auto_language_defn): Likewise.
7611 * language.h (struct language_defn): Remove la_magic field.
7612 (LANG_MAGIC): Delete.
7613 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
7614 * objc-lang.c (objc_language_defn): Likewise.
7615 * opencl-lang.c (opencl_language_defn): Likewise.
7616 * p-lang.c (pascal_language_defn): Likewise.
7617 * rust-lang.c (rust_language_defn): Likewise.
7619 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7621 * riscv-tdep.c (riscv_type_align): New function.
7622 (riscv_type_alignment): Delete.
7623 (riscv_arg_location): Use 'type_align'.
7624 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
7626 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7628 * gdbtypes.c (type_align): A struct with no non-static fields also
7631 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7633 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
7635 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
7637 (riscv_struct_info::analyse): New implementation using new
7638 analyse_inner member function.
7639 (riscv_struct_info::field_offset): New member function.
7640 (riscv_struct_info::m_offsets): New member variable.
7641 (riscv_struct_info::analyse_inner): New private member function,
7642 takes the old implementation of riscv_struct_info::analyse but
7643 extended to track field offsets.
7644 (riscv_call_arg_struct): Update the struct folding special cases
7645 to handle cases where empty C++ structs, which are non-zero
7647 (riscv_arg_location): Initialise the length of each location, a
7648 non-zero length now indicates the location is in use.
7649 (riscv_push_dummy_call): Allow for the first location having a
7650 non-zero offset when setting up arguments.
7651 (riscv_return_value): Likewise, but for return values.
7653 2019-04-11 Tom Tromey <tromey@adacore.com>
7655 * utils.c (internal_vproblem): Make "msg" const.
7657 2019-04-11 Alan Hayward <alan.hayward@arm.com>
7659 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
7660 * trad-frame.c (trad_frame_reset_saved_regs): New function.
7661 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
7662 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
7664 2019-04-10 Kevin Buettner <kevinb@redhat.com>
7666 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
7668 (fill_gregset): Call amd64_linux_collect_native_gregset instead
7669 of amd64_collect_native_gregset.
7670 (amd64_linux_nat_target::store_registers): Likewise.
7672 2019-04-10 Tom Tromey <tom@tromey.com>
7674 * symtab.c (lookup_global_symbol_from_objfile)
7675 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
7676 * objfiles.h (class separate_debug_iterator): New.
7677 (class separate_debug_range): New.
7678 (struct objfile) <separate_debug_objfiles>: New method.
7679 (objfile_separate_debug_iterate): Don't declare.
7680 * objfiles.c (separate_debug_iterator::operator++): Rename from
7681 objfile_separate_debug_iterate.
7682 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
7684 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
7687 2019-04-10 Tom Tromey <tom@tromey.com>
7689 * symfile.c (reread_symbols): Remove old comment.
7690 * objfiles.c (free_all_objfiles): Fix a typo.
7692 2019-04-10 Tom Tromey <tom@tromey.com>
7694 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
7695 * minsyms.c (lookup_minimal_symbol): Use foreach.
7696 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7697 (lookup_minimal_symbol_solib_trampoline): Likewise.
7698 * symfile.c (reread_symbols): Use foreach.
7700 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
7701 Tom Tromey <tromey@adacore.com>
7704 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
7705 (rust_lex_int_test): Change "value" to be LONGEST.
7706 (rust_lex_tests): Add test for long integer literal.
7708 2019-04-09 Tom Tromey <tromey@adacore.com>
7710 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
7712 (extended_remote_target::attach): Update.
7713 (remote_target::remote_notice_new_inferior): Update.
7714 (remote_target::add_current_inferior_and_thread): Update.
7715 * inferior.c (exit_inferior_1): Use "false".
7716 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
7718 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
7720 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
7721 the "start" command.
7723 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7725 * python/py-inferior.c (infpy_thread_from_thread_handle):
7726 Adjust comments to reflect renaming of thread_from_thread_handle
7727 to thread_from_handle. Adjust keywords. Fix type error message.
7728 (inferior_object_methods): Add thread_from_handle. Retain
7729 thread_from_thread_handle, but mark it as deprecated.
7731 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7733 * gdbthread.h (find_thread_by_handle): Revise declaration.
7734 * thread.c (find_thread_by_handle): Likewise. Adjust
7736 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
7737 support for buffer objects as handles.
7739 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7741 * python/py-infthread.c (thpy_thread_handle): New function.
7742 (thread_object_methods): Register thpy_thread_handle.
7744 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7746 * gdbthread.h (thread_to_thread_handle): Declare.
7747 * thread.c (gdbtypes.h): Include.
7748 (thread_to_thread_handle): New function.
7750 * target.h (struct target_ops): Add thread_info_to_thread_handle.
7751 (target_thread_info_to_thread_handle): Declare.
7752 * target.c (target_thread_info_to_thread_handle): New function.
7753 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
7754 * target-delegates.c: Regenerate.
7756 * linux-thread-db.c (class thread_db_target): Add method
7757 thread_info_to_thread_handle.
7758 (thread_db_target::thread_info_to_thread_handle): Define.
7759 * remote.c (class remote_target): Add new method
7760 thread_info_to_thread_handle.
7761 (remote_target::thread_info_to_thread_handle): Define.
7763 2019-04-08 Pedro Alves <palves@redhat.com>
7765 * common/common-exceptions.c (throw_exception): Don't create
7766 named object to throw; throw directly.
7767 (throw_it): Likewise. Don't initialize gdb_exception::message
7768 here, with new; pass FMT and AP to the ctor instead.
7769 * common/common-exceptions.h: Include <string>.
7770 (gdb_exception::gdb_exception(enum return_reason, enum errors,
7771 const char *, va_list)): New ctor. Use std::make_shared.
7772 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
7774 (gdb_exception_error::gdb_exception_error(enum errors, const char
7776 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
7778 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
7780 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
7781 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
7784 2019-04-08 Tom Tromey <tom@tromey.com>
7786 * valops.c (value_rtti_indirect_type): Replace throw_exception
7788 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
7790 * thread.c (thr_try_catch_cmd): Replace throw_exception with
7792 * target.c (target_translate_tls_address): Replace throw_exception
7794 * stack.c (frame_apply_command_count): Replace throw_exception
7796 * solib-spu.c (append_ocl_sos): Replace throw_exception with
7798 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7800 * rs6000-tdep.c (rs6000_frame_cache)
7801 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7802 * remote.c: Replace throw_exception with throw.
7803 * record-full.c (record_full_message, record_full_wait_1)
7804 (record_full_restore): Replace throw_exception with throw.
7806 (get_thread_current_frame_id, record_btrace_start_replaying)
7807 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7808 (cmd_record_btrace_start): Replace throw_exception with throw.
7809 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7811 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7812 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7814 (find_linespec_symbols): Replace throw_exception with throw.
7815 * infrun.c (displaced_step_prepare, resume): Replace
7816 throw_exception with throw.
7817 * infcmd.c (post_create_inferior): Replace throw_exception with
7819 * inf-loop.c (inferior_event_handler): Replace throw_exception
7821 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7822 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7823 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7824 (get_prev_frame_always, get_frame_pc_if_available)
7825 (get_frame_address_in_block_if_available, get_frame_language):
7826 Replace throw_exception with throw.
7827 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7828 throw_exception with throw.
7829 * eval.c (fetch_subexp_value, evaluate_var_value)
7830 (evaluate_funcall, evaluate_subexp_standard): Replace
7831 throw_exception with throw.
7832 * dwarf2loc.c (call_site_find_chain)
7833 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7834 Replace throw_exception with throw.
7835 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7837 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7839 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7840 * completer.c (complete_line_internal): Replace throw_exception
7842 * compile/compile-object-run.c (compile_object_run): Replace
7843 throw_exception with throw.
7844 * cli/cli-script.c (process_next_line): Replace throw_exception
7846 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7847 (btrace_enable, btrace_maint_update_pt_packets): Replace
7848 throw_exception with throw.
7849 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7850 throw_exception with throw.
7851 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7852 throw_exception with throw.
7853 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7854 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7855 * aarch64-tdep.c (aarch64_make_prologue_cache)
7856 (aarch64_make_stub_cache): Replace throw_exception with throw.
7858 2019-04-08 Tom Tromey <tom@tromey.com>
7860 * common/common-exceptions.c (throw_exception): Rename from
7861 throw_exception_cxx. Remove old copy. Make argument const.
7862 (throw_it): Create and throw exception objects directly.
7863 * common/common-exceptions.h (throw_exception): Make argument
7865 (struct gdb_exception_error): Add constructor.
7866 (struct gdb_exception_quit): Add constructor.
7868 2019-04-08 Tom Tromey <tom@tromey.com>
7870 * common/common-exceptions.h (exception_rethrow): Don't declare.
7871 (TRY_SJLJ): Update comment.
7872 (TRY, CATCH, END_CATCH): Remove.
7873 * common/common-exceptions.c (exception_rethrow): Remove.
7875 2019-04-08 Tom Tromey <tom@tromey.com>
7877 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7879 (gdb_exception_error): Rename from
7880 gdb_exception_RETURN_MASK_ERROR.
7881 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7882 (gdb_quit_bad_alloc): Update.
7883 * aarch64-tdep.c: Update.
7884 * ada-lang.c: Update.
7885 * ada-typeprint.c: Update.
7886 * ada-valprint.c: Update.
7887 * amd64-tdep.c: Update.
7888 * arch-utils.c: Update.
7889 * break-catch-throw.c: Update.
7890 * breakpoint.c: Update.
7892 * c-varobj.c: Update.
7893 * cli/cli-cmds.c: Update.
7894 * cli/cli-interp.c: Update.
7895 * cli/cli-script.c: Update.
7896 * common/common-exceptions.c: Update.
7897 * common/new-op.c: Update.
7898 * common/selftest.c: Update.
7899 * compile/compile-c-symbols.c: Update.
7900 * compile/compile-cplus-symbols.c: Update.
7901 * compile/compile-object-load.c: Update.
7902 * compile/compile-object-run.c: Update.
7903 * completer.c: Update.
7904 * corelow.c: Update.
7906 * cp-support.c: Update.
7907 * cp-valprint.c: Update.
7908 * darwin-nat.c: Update.
7909 * disasm-selftests.c: Update.
7910 * dtrace-probe.c: Update.
7911 * dwarf-index-cache.c: Update.
7912 * dwarf-index-write.c: Update.
7913 * dwarf2-frame-tailcall.c: Update.
7914 * dwarf2-frame.c: Update.
7915 * dwarf2loc.c: Update.
7916 * dwarf2read.c: Update.
7918 * event-loop.c: Update.
7919 * event-top.c: Update.
7921 * f-valprint.c: Update.
7922 * fbsd-tdep.c: Update.
7923 * frame-unwind.c: Update.
7925 * gdbtypes.c: Update.
7926 * gnu-v3-abi.c: Update.
7927 * guile/guile-internal.h: Update.
7928 * guile/scm-block.c: Update.
7929 * guile/scm-breakpoint.c: Update.
7930 * guile/scm-cmd.c: Update.
7931 * guile/scm-disasm.c: Update.
7932 * guile/scm-frame.c: Update.
7933 * guile/scm-lazy-string.c: Update.
7934 * guile/scm-math.c: Update.
7935 * guile/scm-param.c: Update.
7936 * guile/scm-ports.c: Update.
7937 * guile/scm-pretty-print.c: Update.
7938 * guile/scm-symbol.c: Update.
7939 * guile/scm-symtab.c: Update.
7940 * guile/scm-type.c: Update.
7941 * guile/scm-value.c: Update.
7942 * i386-linux-tdep.c: Update.
7943 * i386-tdep.c: Update.
7944 * inf-loop.c: Update.
7945 * infcall.c: Update.
7949 * language.c: Update.
7950 * linespec.c: Update.
7951 * linux-fork.c: Update.
7952 * linux-nat.c: Update.
7953 * linux-tdep.c: Update.
7954 * linux-thread-db.c: Update.
7956 * mi/mi-cmd-break.c: Update.
7957 * mi/mi-cmd-stack.c: Update.
7958 * mi/mi-interp.c: Update.
7959 * mi/mi-main.c: Update.
7960 * objc-lang.c: Update.
7961 * p-valprint.c: Update.
7963 * ppc-linux-tdep.c: Update.
7964 * printcmd.c: Update.
7965 * python/py-arch.c: Update.
7966 * python/py-breakpoint.c: Update.
7967 * python/py-cmd.c: Update.
7968 * python/py-finishbreakpoint.c: Update.
7969 * python/py-frame.c: Update.
7970 * python/py-framefilter.c: Update.
7971 * python/py-gdb-readline.c: Update.
7972 * python/py-inferior.c: Update.
7973 * python/py-infthread.c: Update.
7974 * python/py-lazy-string.c: Update.
7975 * python/py-linetable.c: Update.
7976 * python/py-objfile.c: Update.
7977 * python/py-param.c: Update.
7978 * python/py-prettyprint.c: Update.
7979 * python/py-progspace.c: Update.
7980 * python/py-record-btrace.c: Update.
7981 * python/py-record.c: Update.
7982 * python/py-symbol.c: Update.
7983 * python/py-type.c: Update.
7984 * python/py-unwind.c: Update.
7985 * python/py-utils.c: Update.
7986 * python/py-value.c: Update.
7987 * python/python.c: Update.
7988 * record-btrace.c: Update.
7989 * record-full.c: Update.
7990 * remote-fileio.c: Update.
7992 * riscv-tdep.c: Update.
7993 * rs6000-aix-tdep.c: Update.
7994 * rs6000-tdep.c: Update.
7995 * rust-exp.y: Update.
7996 * rust-lang.c: Update.
7997 * s390-tdep.c: Update.
7998 * selftest-arch.c: Update.
7999 * solib-dsbt.c: Update.
8000 * solib-frv.c: Update.
8001 * solib-spu.c: Update.
8002 * solib-svr4.c: Update.
8004 * sparc64-linux-tdep.c: Update.
8006 * symfile-mem.c: Update.
8007 * symmisc.c: Update.
8011 * tracefile-tfile.c: Update.
8012 * tui/tui.c: Update.
8013 * typeprint.c: Update.
8014 * unittests/cli-utils-selftests.c: Update.
8015 * unittests/parse-connection-spec-selftests.c: Update.
8017 * valprint.c: Update.
8020 * windows-nat.c: Update.
8021 * x86-linux-nat.c: Update.
8022 * xml-support.c: Update.
8024 2019-04-08 Tom Tromey <tom@tromey.com>
8026 * xml-support.c: Use C++ exception handling.
8027 * x86-linux-nat.c: Use C++ exception handling.
8028 * windows-nat.c: Use C++ exception handling.
8029 * varobj.c: Use C++ exception handling.
8030 * value.c: Use C++ exception handling.
8031 * valprint.c: Use C++ exception handling.
8032 * valops.c: Use C++ exception handling.
8033 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8035 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8036 * typeprint.c: Use C++ exception handling.
8037 * tui/tui.c: Use C++ exception handling.
8038 * tracefile-tfile.c: Use C++ exception handling.
8039 * top.c: Use C++ exception handling.
8040 * thread.c: Use C++ exception handling.
8041 * target.c: Use C++ exception handling.
8042 * symmisc.c: Use C++ exception handling.
8043 * symfile-mem.c: Use C++ exception handling.
8044 * stack.c: Use C++ exception handling.
8045 * sparc64-linux-tdep.c: Use C++ exception handling.
8046 * solib.c: Use C++ exception handling.
8047 * solib-svr4.c: Use C++ exception handling.
8048 * solib-spu.c: Use C++ exception handling.
8049 * solib-frv.c: Use C++ exception handling.
8050 * solib-dsbt.c: Use C++ exception handling.
8051 * selftest-arch.c: Use C++ exception handling.
8052 * s390-tdep.c: Use C++ exception handling.
8053 * rust-lang.c: Use C++ exception handling.
8054 * rust-exp.y: Use C++ exception handling.
8055 * rs6000-tdep.c: Use C++ exception handling.
8056 * rs6000-aix-tdep.c: Use C++ exception handling.
8057 * riscv-tdep.c: Use C++ exception handling.
8058 * remote.c: Use C++ exception handling.
8059 * remote-fileio.c: Use C++ exception handling.
8060 * record-full.c: Use C++ exception handling.
8061 * record-btrace.c: Use C++ exception handling.
8062 * python/python.c: Use C++ exception handling.
8063 * python/py-value.c: Use C++ exception handling.
8064 * python/py-utils.c: Use C++ exception handling.
8065 * python/py-unwind.c: Use C++ exception handling.
8066 * python/py-type.c: Use C++ exception handling.
8067 * python/py-symbol.c: Use C++ exception handling.
8068 * python/py-record.c: Use C++ exception handling.
8069 * python/py-record-btrace.c: Use C++ exception handling.
8070 * python/py-progspace.c: Use C++ exception handling.
8071 * python/py-prettyprint.c: Use C++ exception handling.
8072 * python/py-param.c: Use C++ exception handling.
8073 * python/py-objfile.c: Use C++ exception handling.
8074 * python/py-linetable.c: Use C++ exception handling.
8075 * python/py-lazy-string.c: Use C++ exception handling.
8076 * python/py-infthread.c: Use C++ exception handling.
8077 * python/py-inferior.c: Use C++ exception handling.
8078 * python/py-gdb-readline.c: Use C++ exception handling.
8079 * python/py-framefilter.c: Use C++ exception handling.
8080 * python/py-frame.c: Use C++ exception handling.
8081 * python/py-finishbreakpoint.c: Use C++ exception handling.
8082 * python/py-cmd.c: Use C++ exception handling.
8083 * python/py-breakpoint.c: Use C++ exception handling.
8084 * python/py-arch.c: Use C++ exception handling.
8085 * printcmd.c: Use C++ exception handling.
8086 * ppc-linux-tdep.c: Use C++ exception handling.
8087 * parse.c: Use C++ exception handling.
8088 * p-valprint.c: Use C++ exception handling.
8089 * objc-lang.c: Use C++ exception handling.
8090 * mi/mi-main.c: Use C++ exception handling.
8091 * mi/mi-interp.c: Use C++ exception handling.
8092 * mi/mi-cmd-stack.c: Use C++ exception handling.
8093 * mi/mi-cmd-break.c: Use C++ exception handling.
8094 * main.c: Use C++ exception handling.
8095 * linux-thread-db.c: Use C++ exception handling.
8096 * linux-tdep.c: Use C++ exception handling.
8097 * linux-nat.c: Use C++ exception handling.
8098 * linux-fork.c: Use C++ exception handling.
8099 * linespec.c: Use C++ exception handling.
8100 * language.c: Use C++ exception handling.
8101 * jit.c: Use C++ exception handling.
8102 * infrun.c: Use C++ exception handling.
8103 * infcmd.c: Use C++ exception handling.
8104 * infcall.c: Use C++ exception handling.
8105 * inf-loop.c: Use C++ exception handling.
8106 * i386-tdep.c: Use C++ exception handling.
8107 * i386-linux-tdep.c: Use C++ exception handling.
8108 * guile/scm-value.c: Use C++ exception handling.
8109 * guile/scm-type.c: Use C++ exception handling.
8110 * guile/scm-symtab.c: Use C++ exception handling.
8111 * guile/scm-symbol.c: Use C++ exception handling.
8112 * guile/scm-pretty-print.c: Use C++ exception handling.
8113 * guile/scm-ports.c: Use C++ exception handling.
8114 * guile/scm-param.c: Use C++ exception handling.
8115 * guile/scm-math.c: Use C++ exception handling.
8116 * guile/scm-lazy-string.c: Use C++ exception handling.
8117 * guile/scm-frame.c: Use C++ exception handling.
8118 * guile/scm-disasm.c: Use C++ exception handling.
8119 * guile/scm-cmd.c: Use C++ exception handling.
8120 * guile/scm-breakpoint.c: Use C++ exception handling.
8121 * guile/scm-block.c: Use C++ exception handling.
8122 * guile/guile-internal.h: Use C++ exception handling.
8123 * gnu-v3-abi.c: Use C++ exception handling.
8124 * gdbtypes.c: Use C++ exception handling.
8125 * frame.c: Use C++ exception handling.
8126 * frame-unwind.c: Use C++ exception handling.
8127 * fbsd-tdep.c: Use C++ exception handling.
8128 * f-valprint.c: Use C++ exception handling.
8129 * exec.c: Use C++ exception handling.
8130 * event-top.c: Use C++ exception handling.
8131 * event-loop.c: Use C++ exception handling.
8132 * eval.c: Use C++ exception handling.
8133 * dwarf2read.c: Use C++ exception handling.
8134 * dwarf2loc.c: Use C++ exception handling.
8135 * dwarf2-frame.c: Use C++ exception handling.
8136 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8137 * dwarf-index-write.c: Use C++ exception handling.
8138 * dwarf-index-cache.c: Use C++ exception handling.
8139 * dtrace-probe.c: Use C++ exception handling.
8140 * disasm-selftests.c: Use C++ exception handling.
8141 * darwin-nat.c: Use C++ exception handling.
8142 * cp-valprint.c: Use C++ exception handling.
8143 * cp-support.c: Use C++ exception handling.
8144 * cp-abi.c: Use C++ exception handling.
8145 * corelow.c: Use C++ exception handling.
8146 * completer.c: Use C++ exception handling.
8147 * compile/compile-object-run.c: Use C++ exception handling.
8148 * compile/compile-object-load.c: Use C++ exception handling.
8149 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8150 * compile/compile-c-symbols.c: Use C++ exception handling.
8151 * common/selftest.c: Use C++ exception handling.
8152 * common/new-op.c: Use C++ exception handling.
8153 * cli/cli-script.c: Use C++ exception handling.
8154 * cli/cli-interp.c: Use C++ exception handling.
8155 * cli/cli-cmds.c: Use C++ exception handling.
8156 * c-varobj.c: Use C++ exception handling.
8157 * btrace.c: Use C++ exception handling.
8158 * breakpoint.c: Use C++ exception handling.
8159 * break-catch-throw.c: Use C++ exception handling.
8160 * arch-utils.c: Use C++ exception handling.
8161 * amd64-tdep.c: Use C++ exception handling.
8162 * ada-valprint.c: Use C++ exception handling.
8163 * ada-typeprint.c: Use C++ exception handling.
8164 * ada-lang.c: Use C++ exception handling.
8165 * aarch64-tdep.c: Use C++ exception handling.
8167 2019-04-08 Tom Tromey <tom@tromey.com>
8169 * xml-support.c (gdb_xml_parser::parse): Update.
8170 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8171 * value.c (show_convenience): Update.
8172 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8173 (test_parse_flags_qcs): Update.
8174 * thread.c (thr_try_catch_cmd): Update.
8175 * target.c (target_translate_tls_address): Update.
8176 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8177 (info_frame_command_core, frame_apply_command_count): Update.
8178 * rust-exp.y (rust_lex_exception_test): Update.
8179 * riscv-tdep.c (riscv_print_one_register_info): Update.
8180 * remote.c (remote_target::enable_btrace): Update.
8181 * record-btrace.c (record_btrace_enable_warn): Update.
8182 * python/py-utils.c (gdbpy_convert_exception): Update.
8183 * printcmd.c (do_one_display, print_variable_and_value): Update.
8184 * mi/mi-main.c (mi_print_exception): Update.
8185 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
8186 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
8187 * linux-nat.c (linux_nat_target::attach): Update.
8188 * linux-fork.c (class scoped_switch_fork_info): Update.
8189 * infrun.c (displaced_step_prepare): Update.
8190 * infcall.c (call_function_by_hand_dummy): Update.
8191 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
8192 * gnu-v3-abi.c (print_one_vtable): Update.
8193 * frame.c (get_prev_frame_always): Update.
8194 * f-valprint.c (info_common_command_for_block): Update.
8195 * exec.c (try_open_exec_file): Update.
8196 * exceptions.c (print_exception, exception_print)
8197 (exception_fprintf, exception_print_same): Update.
8198 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
8199 * dwarf-index-cache.c (index_cache::store)
8200 (index_cache::lookup_gdb_index): Update.
8201 * darwin-nat.c (maybe_cache_shell): Update.
8202 * cp-valprint.c (cp_print_value_fields): Update.
8203 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
8204 (gcc_cplus_symbol_address): Update.
8205 * compile/compile-c-symbols.c (gcc_convert_symbol)
8206 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8207 * common/selftest.c: Update.
8208 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8210 (exception_try_scope_entry, exception_try_scope_exit): Don't
8212 (struct exception_try_scope): Remove.
8213 (TRY): Don't use exception_try_scope.
8214 (struct gdb_exception): Add constructor, operator=.
8216 (struct gdb_exception_RETURN_MASK_ALL)
8217 (struct gdb_exception_RETURN_MASK_ERROR)
8218 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8219 (struct gdb_quit_bad_alloc): Update.
8220 * common/common-exceptions.c (exception_none): Change
8222 (struct catcher) <state, exception>: Initialize inline.
8223 <prev>: Remove member.
8224 (current_catcher): Remove.
8225 (catchers): New global.
8226 (exceptions_state_mc_init): Simplify.
8227 (catcher_pop): Remove.
8228 (exceptions_state_mc, exceptions_state_mc_catch): Update.
8229 (try_scope_depth, exception_try_scope_entry)
8230 (exception_try_scope_exit): Remove.
8231 (throw_exception_sjlj): Update.
8232 (exception_messages, exception_messages_size): Remove.
8233 (throw_it): Simplify.
8234 (gdb_exception_sliced_copy): Remove.
8235 (throw_exception_cxx): Update.
8236 * cli/cli-script.c (script_from_file): Update.
8237 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
8239 * ada-valprint.c (ada_val_print): Update.
8240 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
8241 (create_excep_cond_exprs): Update.
8243 2019-04-08 Tom Tromey <tom@tromey.com>
8245 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8246 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
8247 (TRY, CATCH, END_CATCH): Remove some definitions.
8248 * common/common-exceptions.c: Don't use GDB_XCPT.
8249 (catcher_list_size): Remove.
8250 (throw_exception, throw_it): Simplify.
8252 2019-04-05 Tom Tromey <tom@tromey.com>
8254 Revert the header-sorting patch.
8255 * ft32-tdep.c: Revert.
8256 * frv-tdep.c: Revert.
8257 * frv-linux-tdep.c: Revert.
8259 * frame-unwind.c: Revert.
8260 * frame-base.c: Revert.
8261 * fork-child.c: Revert.
8262 * findvar.c: Revert.
8263 * findcmd.c: Revert.
8264 * filesystem.c: Revert.
8265 * filename-seen-cache.h: Revert.
8266 * filename-seen-cache.c: Revert.
8267 * fbsd-tdep.c: Revert.
8268 * fbsd-nat.h: Revert.
8269 * fbsd-nat.c: Revert.
8270 * f-valprint.c: Revert.
8271 * f-typeprint.c: Revert.
8273 * extension.h: Revert.
8274 * extension.c: Revert.
8275 * extension-priv.h: Revert.
8276 * expprint.c: Revert.
8279 * exceptions.c: Revert.
8280 * event-top.c: Revert.
8281 * event-loop.c: Revert.
8283 * elfread.c: Revert.
8284 * dwarf2read.h: Revert.
8285 * dwarf2read.c: Revert.
8286 * dwarf2loc.c: Revert.
8287 * dwarf2expr.h: Revert.
8288 * dwarf2expr.c: Revert.
8289 * dwarf2-frame.c: Revert.
8290 * dwarf2-frame-tailcall.c: Revert.
8291 * dwarf-index-write.h: Revert.
8292 * dwarf-index-write.c: Revert.
8293 * dwarf-index-common.c: Revert.
8294 * dwarf-index-cache.h: Revert.
8295 * dwarf-index-cache.c: Revert.
8296 * dummy-frame.c: Revert.
8297 * dtrace-probe.c: Revert.
8300 * disasm-selftests.c: Revert.
8301 * dictionary.c: Revert.
8302 * dicos-tdep.c: Revert.
8303 * demangle.c: Revert.
8306 * darwin-nat.h: Revert.
8307 * darwin-nat.c: Revert.
8308 * darwin-nat-info.c: Revert.
8309 * d-valprint.c: Revert.
8310 * d-namespace.c: Revert.
8313 * csky-tdep.c: Revert.
8314 * csky-linux-tdep.c: Revert.
8315 * cris-tdep.c: Revert.
8316 * cris-linux-tdep.c: Revert.
8317 * cp-valprint.c: Revert.
8318 * cp-support.c: Revert.
8319 * cp-namespace.c: Revert.
8321 * corelow.c: Revert.
8322 * corefile.c: Revert.
8323 * continuations.c: Revert.
8324 * completer.h: Revert.
8325 * completer.c: Revert.
8326 * complaints.c: Revert.
8327 * coffread.c: Revert.
8328 * coff-pe-read.c: Revert.
8329 * cli-out.h: Revert.
8330 * cli-out.c: Revert.
8331 * charset.c: Revert.
8332 * c-varobj.c: Revert.
8333 * c-valprint.c: Revert.
8334 * c-typeprint.c: Revert.
8336 * buildsym.c: Revert.
8337 * buildsym-legacy.c: Revert.
8338 * build-id.h: Revert.
8339 * build-id.c: Revert.
8341 * bsd-uthread.c: Revert.
8342 * breakpoint.h: Revert.
8343 * breakpoint.c: Revert.
8344 * break-catch-throw.c: Revert.
8345 * break-catch-syscall.c: Revert.
8346 * break-catch-sig.c: Revert.
8347 * blockframe.c: Revert.
8349 * bfin-tdep.c: Revert.
8350 * bfin-linux-tdep.c: Revert.
8351 * bfd-target.c: Revert.
8353 * ax-general.c: Revert.
8356 * avr-tdep.c: Revert.
8358 * auto-load.c: Revert.
8359 * arm-wince-tdep.c: Revert.
8360 * arm-tdep.c: Revert.
8361 * arm-symbian-tdep.c: Revert.
8362 * arm-pikeos-tdep.c: Revert.
8363 * arm-obsd-tdep.c: Revert.
8364 * arm-nbsd-tdep.c: Revert.
8365 * arm-nbsd-nat.c: Revert.
8366 * arm-linux-tdep.c: Revert.
8367 * arm-linux-nat.c: Revert.
8368 * arm-fbsd-tdep.c: Revert.
8369 * arm-fbsd-nat.c: Revert.
8370 * arm-bsd-tdep.c: Revert.
8371 * arch-utils.c: Revert.
8372 * arc-tdep.c: Revert.
8373 * arc-newlib-tdep.c: Revert.
8374 * annotate.h: Revert.
8375 * annotate.c: Revert.
8376 * amd64-windows-tdep.c: Revert.
8377 * amd64-windows-nat.c: Revert.
8378 * amd64-tdep.c: Revert.
8379 * amd64-sol2-tdep.c: Revert.
8380 * amd64-obsd-tdep.c: Revert.
8381 * amd64-obsd-nat.c: Revert.
8382 * amd64-nbsd-tdep.c: Revert.
8383 * amd64-nbsd-nat.c: Revert.
8384 * amd64-nat.c: Revert.
8385 * amd64-linux-tdep.c: Revert.
8386 * amd64-linux-nat.c: Revert.
8387 * amd64-fbsd-tdep.c: Revert.
8388 * amd64-fbsd-nat.c: Revert.
8389 * amd64-dicos-tdep.c: Revert.
8390 * amd64-darwin-tdep.c: Revert.
8391 * amd64-bsd-nat.c: Revert.
8392 * alpha-tdep.c: Revert.
8393 * alpha-obsd-tdep.c: Revert.
8394 * alpha-nbsd-tdep.c: Revert.
8395 * alpha-mdebug-tdep.c: Revert.
8396 * alpha-linux-tdep.c: Revert.
8397 * alpha-linux-nat.c: Revert.
8398 * alpha-bsd-tdep.c: Revert.
8399 * alpha-bsd-nat.c: Revert.
8400 * aix-thread.c: Revert.
8402 * addrmap.c: Revert.
8403 * ada-varobj.c: Revert.
8404 * ada-valprint.c: Revert.
8405 * ada-typeprint.c: Revert.
8406 * ada-tasks.c: Revert.
8407 * ada-lang.c: Revert.
8408 * aarch64-tdep.c: Revert.
8409 * aarch64-ravenscar-thread.c: Revert.
8410 * aarch64-newlib-tdep.c: Revert.
8411 * aarch64-linux-tdep.c: Revert.
8412 * aarch64-linux-nat.c: Revert.
8413 * aarch64-fbsd-tdep.c: Revert.
8414 * aarch64-fbsd-nat.c: Revert.
8415 * aarch32-linux-nat.c: Revert.
8417 2019-04-05 Tom Tromey <tom@tromey.com>
8419 * ft32-tdep.c: Sort headers.
8420 * frv-tdep.c: Sort headers.
8421 * frv-linux-tdep.c: Sort headers.
8422 * frame.c: Sort headers.
8423 * frame-unwind.c: Sort headers.
8424 * frame-base.c: Sort headers.
8425 * fork-child.c: Sort headers.
8426 * findvar.c: Sort headers.
8427 * findcmd.c: Sort headers.
8428 * filesystem.c: Sort headers.
8429 * filename-seen-cache.h: Sort headers.
8430 * filename-seen-cache.c: Sort headers.
8431 * fbsd-tdep.c: Sort headers.
8432 * fbsd-nat.h: Sort headers.
8433 * fbsd-nat.c: Sort headers.
8434 * f-valprint.c: Sort headers.
8435 * f-typeprint.c: Sort headers.
8436 * f-lang.c: Sort headers.
8437 * extension.h: Sort headers.
8438 * extension.c: Sort headers.
8439 * extension-priv.h: Sort headers.
8440 * expprint.c: Sort headers.
8441 * exec.h: Sort headers.
8442 * exec.c: Sort headers.
8443 * exceptions.c: Sort headers.
8444 * event-top.c: Sort headers.
8445 * event-loop.c: Sort headers.
8446 * eval.c: Sort headers.
8447 * elfread.c: Sort headers.
8448 * dwarf2read.h: Sort headers.
8449 * dwarf2read.c: Sort headers.
8450 * dwarf2loc.c: Sort headers.
8451 * dwarf2expr.h: Sort headers.
8452 * dwarf2expr.c: Sort headers.
8453 * dwarf2-frame.c: Sort headers.
8454 * dwarf2-frame-tailcall.c: Sort headers.
8455 * dwarf-index-write.h: Sort headers.
8456 * dwarf-index-write.c: Sort headers.
8457 * dwarf-index-common.c: Sort headers.
8458 * dwarf-index-cache.h: Sort headers.
8459 * dwarf-index-cache.c: Sort headers.
8460 * dummy-frame.c: Sort headers.
8461 * dtrace-probe.c: Sort headers.
8462 * disasm.h: Sort headers.
8463 * disasm.c: Sort headers.
8464 * disasm-selftests.c: Sort headers.
8465 * dictionary.c: Sort headers.
8466 * dicos-tdep.c: Sort headers.
8467 * demangle.c: Sort headers.
8468 * dcache.h: Sort headers.
8469 * dcache.c: Sort headers.
8470 * darwin-nat.h: Sort headers.
8471 * darwin-nat.c: Sort headers.
8472 * darwin-nat-info.c: Sort headers.
8473 * d-valprint.c: Sort headers.
8474 * d-namespace.c: Sort headers.
8475 * d-lang.c: Sort headers.
8476 * ctf.c: Sort headers.
8477 * csky-tdep.c: Sort headers.
8478 * csky-linux-tdep.c: Sort headers.
8479 * cris-tdep.c: Sort headers.
8480 * cris-linux-tdep.c: Sort headers.
8481 * cp-valprint.c: Sort headers.
8482 * cp-support.c: Sort headers.
8483 * cp-namespace.c: Sort headers.
8484 * cp-abi.c: Sort headers.
8485 * corelow.c: Sort headers.
8486 * corefile.c: Sort headers.
8487 * continuations.c: Sort headers.
8488 * completer.h: Sort headers.
8489 * completer.c: Sort headers.
8490 * complaints.c: Sort headers.
8491 * coffread.c: Sort headers.
8492 * coff-pe-read.c: Sort headers.
8493 * cli-out.h: Sort headers.
8494 * cli-out.c: Sort headers.
8495 * charset.c: Sort headers.
8496 * c-varobj.c: Sort headers.
8497 * c-valprint.c: Sort headers.
8498 * c-typeprint.c: Sort headers.
8499 * c-lang.c: Sort headers.
8500 * buildsym.c: Sort headers.
8501 * buildsym-legacy.c: Sort headers.
8502 * build-id.h: Sort headers.
8503 * build-id.c: Sort headers.
8504 * btrace.c: Sort headers.
8505 * bsd-uthread.c: Sort headers.
8506 * breakpoint.h: Sort headers.
8507 * breakpoint.c: Sort headers.
8508 * break-catch-throw.c: Sort headers.
8509 * break-catch-syscall.c: Sort headers.
8510 * break-catch-sig.c: Sort headers.
8511 * blockframe.c: Sort headers.
8512 * block.c: Sort headers.
8513 * bfin-tdep.c: Sort headers.
8514 * bfin-linux-tdep.c: Sort headers.
8515 * bfd-target.c: Sort headers.
8516 * bcache.c: Sort headers.
8517 * ax-general.c: Sort headers.
8518 * ax-gdb.h: Sort headers.
8519 * ax-gdb.c: Sort headers.
8520 * avr-tdep.c: Sort headers.
8521 * auxv.c: Sort headers.
8522 * auto-load.c: Sort headers.
8523 * arm-wince-tdep.c: Sort headers.
8524 * arm-tdep.c: Sort headers.
8525 * arm-symbian-tdep.c: Sort headers.
8526 * arm-pikeos-tdep.c: Sort headers.
8527 * arm-obsd-tdep.c: Sort headers.
8528 * arm-nbsd-tdep.c: Sort headers.
8529 * arm-nbsd-nat.c: Sort headers.
8530 * arm-linux-tdep.c: Sort headers.
8531 * arm-linux-nat.c: Sort headers.
8532 * arm-fbsd-tdep.c: Sort headers.
8533 * arm-fbsd-nat.c: Sort headers.
8534 * arm-bsd-tdep.c: Sort headers.
8535 * arch-utils.c: Sort headers.
8536 * arc-tdep.c: Sort headers.
8537 * arc-newlib-tdep.c: Sort headers.
8538 * annotate.h: Sort headers.
8539 * annotate.c: Sort headers.
8540 * amd64-windows-tdep.c: Sort headers.
8541 * amd64-windows-nat.c: Sort headers.
8542 * amd64-tdep.c: Sort headers.
8543 * amd64-sol2-tdep.c: Sort headers.
8544 * amd64-obsd-tdep.c: Sort headers.
8545 * amd64-obsd-nat.c: Sort headers.
8546 * amd64-nbsd-tdep.c: Sort headers.
8547 * amd64-nbsd-nat.c: Sort headers.
8548 * amd64-nat.c: Sort headers.
8549 * amd64-linux-tdep.c: Sort headers.
8550 * amd64-linux-nat.c: Sort headers.
8551 * amd64-fbsd-tdep.c: Sort headers.
8552 * amd64-fbsd-nat.c: Sort headers.
8553 * amd64-dicos-tdep.c: Sort headers.
8554 * amd64-darwin-tdep.c: Sort headers.
8555 * amd64-bsd-nat.c: Sort headers.
8556 * alpha-tdep.c: Sort headers.
8557 * alpha-obsd-tdep.c: Sort headers.
8558 * alpha-nbsd-tdep.c: Sort headers.
8559 * alpha-mdebug-tdep.c: Sort headers.
8560 * alpha-linux-tdep.c: Sort headers.
8561 * alpha-linux-nat.c: Sort headers.
8562 * alpha-bsd-tdep.c: Sort headers.
8563 * alpha-bsd-nat.c: Sort headers.
8564 * aix-thread.c: Sort headers.
8565 * agent.c: Sort headers.
8566 * addrmap.c: Sort headers.
8567 * ada-varobj.c: Sort headers.
8568 * ada-valprint.c: Sort headers.
8569 * ada-typeprint.c: Sort headers.
8570 * ada-tasks.c: Sort headers.
8571 * ada-lang.c: Sort headers.
8572 * aarch64-tdep.c: Sort headers.
8573 * aarch64-ravenscar-thread.c: Sort headers.
8574 * aarch64-newlib-tdep.c: Sort headers.
8575 * aarch64-linux-tdep.c: Sort headers.
8576 * aarch64-linux-nat.c: Sort headers.
8577 * aarch64-fbsd-tdep.c: Sort headers.
8578 * aarch64-fbsd-nat.c: Sort headers.
8579 * aarch32-linux-nat.c: Sort headers.
8581 2019-04-04 Tom Tromey <tom@tromey.com>
8583 * varobj.c (varobj_create): Update.
8584 * rust-exp.y (struct rust_parser) <update_innermost_block,
8585 lookup_symbol>: New methods.
8586 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
8588 (rust_parser::rust_lookup_type)
8589 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8590 * printcmd.c (display_command, do_one_display): Update.
8591 * parser-defs.h (struct parser_state) <parser_state>: Add
8592 "tracker" parameter.
8593 (block_tracker): New member.
8594 (class innermost_block_tracker) <innermost_block_tracker>: Add
8596 <reset>: Remove method.
8597 (innermost_block): Don't declare.
8598 (null_post_parser): Update.
8599 * parse.c (innermost_block): Remove global.
8600 (write_dollar_variable): Update.
8601 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
8602 Remove "tracker_types" parameter.
8603 (parse_expression): Add "tracker" parameter.
8604 (parse_expression_for_completion): Update.
8605 (null_post_parser): Add "tracker" parameter.
8606 * p-exp.y: Update rules.
8607 * m2-exp.y: Update rules.
8608 * language.h (struct language_defn) <la_post_parser>: Add
8609 "tracker" parameter.
8610 * go-exp.y: Update rules.
8611 * f-exp.y: Update rules.
8612 * expression.h (parse_expression, parse_exp_1): Add "tracker"
8614 * d-exp.y: Update rules.
8615 * c-exp.y: Update rules.
8616 * breakpoint.c (set_breakpoint_condition): Create an
8617 innermost_block_tracker.
8618 (watch_command_1): Likewise.
8619 * ada-lang.c (resolve): Add "tracker" parameter.
8620 (resolve_subexp): Likewise.
8621 * ada-exp.y (write_var_from_sym): Update.
8623 2019-04-04 Tom Tromey <tom@tromey.com>
8625 * type-stack.h: New file.
8626 * type-stack.c: New file.
8627 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
8629 (insert_into_type_stack, insert_type, push_type, push_type_int)
8630 (insert_type_address_space, pop_type, pop_type_int)
8631 (pop_typelist, pop_type_stack, append_type_stack)
8632 (push_type_stack, get_type_stack, push_typelist)
8633 (follow_type_instance_flags, follow_types): Don't declare.
8634 * parse.c (type_stack): Remove global.
8635 (parse_exp_in_context): Update.
8636 (insert_into_type_stack, insert_type, push_type, push_type_int)
8637 (insert_type_address_space, pop_type, pop_type_int)
8638 (pop_typelist, pop_type_stack, append_type_stack)
8639 (push_type_stack, get_type_stack, push_typelist)
8640 (follow_type_instance_flags, follow_types): Remove (moved to
8642 * f-exp.y (type_stack): New global.
8644 (push_kind_type, f_parse): Update.
8645 * d-exp.y (type_stack): New global.
8648 * c-exp.y (struct c_parse_state) <type_stack>: New member.
8650 * Makefile.in (COMMON_SFILES): Add type-stack.c.
8651 (HFILES_NO_SRCDIR): Add type-stack.h.
8653 2019-04-04 Tom Tromey <tom@tromey.com>
8655 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
8656 (rust_parser::convert_ast_to_expression, rust_parse)
8657 (rust_lex_test_completion, rust_lex_tests): Update.
8658 * parser-defs.h (struct expr_completion_state): New.
8659 (struct parser_state) <parser_state>: Add completion parameter.
8660 <mark_struct_expression, mark_completion_tag>: New methods.
8661 <parse_completion, m_completion_state>: New members.
8662 (prefixify_expression, null_post_parser): Update.
8663 (mark_struct_expression, mark_completion_tag): Don't declare.
8664 * parse.c (parse_completion, expout_last_struct)
8665 (expout_tag_completion_type, expout_completion_name): Remove
8667 (parser_state::mark_struct_expression)
8668 (parser_state::mark_completion_tag): Now methods.
8669 (prefixify_expression): Add last_struct parameter.
8670 (prefixify_subexp): Likewise.
8671 (parse_exp_1): Update.
8672 (parse_exp_in_context): Add cstate parameter. Update.
8673 (parse_expression_for_completion): Create an
8674 expr_completion_state.
8675 (null_post_parser): Add "completion" parameter.
8676 * p-exp.y: Update rules.
8678 * language.h (struct language_defn) <la_post_parser>: Add
8679 "completing" parameter.
8680 * go-exp.y: Update rules.
8681 (lex_one_token): Update.
8682 * expression.h (parse_completion): Don't declare.
8683 * d-exp.y: Update rules.
8684 (lex_one_token): Update rules.
8685 * c-exp.y: Update rules.
8686 (lex_one_token): Update.
8687 * ada-lang.c (resolve): Add "parse_completion" parameter.
8688 (resolve_subexp): Likewise.
8689 (ada_resolve_function): Likewise.
8691 2019-04-04 Tom Tromey <tom@tromey.com>
8693 * parser-defs.h (struct parser_state) <start_arglist,
8694 end_arglist>: New methods.
8695 <arglist_len, m_funcall_chain>: New members.
8696 (arglist_len, start_arglist, end_arglist): Don't declare.
8697 * parse.c (arglist_len, funcall_chain): Remove global.
8698 (start_arglist, end_arglist): Remove functions.
8699 (parse_exp_in_context): Update.
8700 * p-exp.y: Update rules.
8701 * m2-exp.y: Update rules.
8702 * go-exp.y: Update rules.
8703 * f-exp.y: Update rules.
8704 * d-exp.y: Update rules.
8705 * c-exp.y: Update rules.
8707 2019-04-04 Tom Tromey <tom@tromey.com>
8709 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
8710 lex_operator, push_back>: New methods.
8712 (rust_parser::lex_hex, lex_escape): Rename and update.
8713 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
8714 (rust_parser::lex_operator): Rename and update.
8715 (rust_parser::lex_number, rustyylex, rustyyerror)
8716 (rust_lex_test_init, rust_lex_test_sequence)
8717 (rust_lex_test_push_back, rust_lex_tests): Update.
8718 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
8720 <lexptr, prev_lexptr>: New members.
8721 (lexptr, prev_lexptr): Don't declare.
8722 * parse.c (lexptr, prev_lexptr): Remove globals.
8723 (parse_exp_in_context): Update.
8724 * p-exp.y (yylex, yyerror): Update.
8725 * m2-exp.y (parse_number, yylex, yyerror): Update.
8726 * go-exp.y (lex_one_token, yyerror): Update.
8727 * f-exp.y (match_string_literal, yylex, yyerror): Update.
8728 * d-exp.y (lex_one_token, yyerror): Update.
8729 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
8730 (lex_one_token, yyerror): Update.
8731 * ada-lex.l (YY_INPUT): Update.
8732 (rewind_to_char): Update.
8733 * ada-exp.y (yyerror): Update.
8735 2019-04-04 Tom Tromey <tom@tromey.com>
8737 * rust-exp.y (rustyylex, rust_lex_tests): Update.
8738 * parser-defs.h (struct parser_state) <parser_state>: Add new
8740 <comma_terminates>: New member.
8741 (comma_terminates): Don't declare global.
8742 * parse.c (comma_terminates): Remove global.
8743 (parse_exp_in_context): Update.
8744 * p-exp.y (yylex): Update.
8745 * m2-exp.y (yylex): Update.
8746 * go-exp.y (lex_one_token): Update.
8747 * f-exp.y (yylex): Update.
8748 * d-exp.y (lex_one_token): Update.
8749 * c-exp.y (lex_one_token): Update.
8750 * ada-lex.l: Update.
8752 2019-04-04 Tom Tromey <tom@tromey.com>
8754 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
8755 (rustyylex, rust_lex_test_init, rust_lex_test_one)
8756 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
8757 * parser-defs.h (paren_depth): Don't declare.
8758 * parse.c (paren_depth): Remove global.
8759 (parse_exp_in_context): Update.
8760 * p-exp.y (paren_depth): New global.
8761 (pascal_parse): Initialize it.
8762 * m2-exp.y (paren_depth): New global.
8763 (m2_parse): Initialize it.
8764 * go-exp.y (paren_depth): New global.
8765 (go_parse): Initialize it.
8766 * f-exp.y (paren_depth): New global.
8767 (f_parse): Initialize it.
8768 * d-exp.y (paren_depth): New global.
8769 (d_parse): Initialize it.
8770 * c-exp.y (paren_depth): New global.
8771 (c_parse): Initialize it.
8772 * ada-lex.l (paren_depth): New global.
8773 (lexer_init): Initialize it.
8775 2019-04-04 Tom Tromey <tom@tromey.com>
8777 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
8778 (rust_parser::convert_ast_to_type)
8779 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8780 * parser-defs.h (struct parser_state) <parser_state>: Add
8781 parameters. Initialize new members.
8782 <expression_context_block, expression_context_pc>: New members.
8783 * parse.c (expression_context_block, expression_context_pc):
8785 (parse_exp_in_context): Update.
8786 * p-exp.y: Update all rules.
8788 * m2-exp.y: Update all rules.
8790 * go-exp.y (yylex): Update.
8791 * f-exp.y (yylex): Update.
8792 * d-exp.y: Update all rules.
8794 * c-exp.y: Update all rules.
8795 (lex_one_token, classify_name, yylex, c_parse): Update.
8796 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
8798 2019-04-04 Tom Tromey <tom@tromey.com>
8800 * gdbarch.h, gdbarch.c: Rebuild.
8801 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8803 (struct stap_parse_info): Replace "parser_state" with
8805 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8806 (parser_state): New class.
8807 * parse.c (expr_builder): Rename.
8808 (expr_builder::release): Rename.
8809 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8810 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8811 (write_exp_elt_longcst, write_exp_elt_floatcst)
8812 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8813 (write_exp_string_vector, write_exp_bitstring)
8814 (write_exp_msymbol, mark_struct_expression)
8815 (write_dollar_variable)
8816 (insert_type_address_space, increase_expout_size): Replace
8817 "parser_state" with "expr_builder".
8818 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8819 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8820 "parser_state" with "expr_builder".
8822 2019-04-04 Tom Tromey <tom@tromey.com>
8824 * rust-exp.y: Replace "parse_language" with method call.
8826 (yylex): Replace "parse_language" with method call.
8828 (yylex): Replace "parse_language" with method call.
8829 * go-exp.y (classify_name): Replace "parse_language" with method
8831 * f-exp.y (yylex): Replace "parse_language" with method call.
8832 * d-exp.y (lex_one_token): Replace "parse_language" with method
8835 (lex_one_token, classify_name, yylex): Replace "parse_language"
8837 * ada-exp.y (find_primitive_type, type_char)
8838 (type_system_address): Replace "parse_language" with method call.
8840 2019-04-04 Tom Tromey <tom@tromey.com>
8842 * rust-exp.y: Replace "parse_gdbarch" with method call.
8843 * parse.c (write_dollar_variable, insert_type_address_space):
8844 Replace "parse_gdbarch" with method call.
8845 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8847 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8849 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8850 "parse_gdbarch" with method call.
8851 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8853 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8854 "parse_gdbarch" with method call.
8855 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8856 "parse_gdbarch" with method call.
8857 * c-exp.y (parse_type, parse_number, classify_name): Replace
8858 "parse_gdbarch" with method call.
8859 * ada-lex.l: Replace "parse_gdbarch" with method call.
8860 * ada-exp.y (parse_type, find_primitive_type, type_char)
8861 (type_system_address): Replace "parse_gdbarch" with method call.
8863 2019-04-04 Tom Tromey <tom@tromey.com>
8865 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8866 * stap-probe.c (stap_parse_argument): Update.
8867 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8868 initial_size parameter.
8869 * rust-exp.y (rust_lex_tests): Update.
8870 * parse.c (parser_state): Update.
8871 (parse_exp_in_context): Update.
8872 * parser-defs.h (struct parser_state) <parser_state>: Remove
8873 "initial_size" parameter.
8875 2019-04-04 Tom Tromey <tom@tromey.com>
8877 * parser-defs.h (increase_expout_size): Don't declare.
8878 * parse.c (increase_expout_size): Now static.
8880 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8882 * gnu-nat.c (gnu_nat_target::wait): Fix
8883 target_waitstatus_to_string call.
8885 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8887 * eval.c (evaluate_subexp_standard): Handle internal functions
8888 during Fortran function call handling.
8890 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8892 * NEWS: Mention new internal functions.
8893 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8894 (read_base_type): Use dwarf2_init_complex_target_type.
8895 * value.c (creal_internal_fn): New function.
8896 (cimag_internal_fn): New function.
8897 (_initialize_values): Register new internal functions.
8899 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8901 * infrun.c (stop_all_threads): If debug_infrun, always
8902 trace the wait status after wait_one, using
8903 target_waitstatus_to_string and target_pid_to_str.
8904 (handle_inferior_event): Replace various trace of
8905 wait status kind by a single trace.
8906 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8907 wait status kind image by target_waitstatus_to_string.
8908 * target/waitstatus.c (target_waitstatus_to_string): Fix
8911 2019-04-01 Tom Tromey <tromey@adacore.com>
8914 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8916 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8917 Pedro Alves <palves@redhat.com>
8919 * top.c (quit_force): Call 'finalize_values'.
8920 * value.c (finalize_values): New function.
8921 * value.h (finalize_values): Declare.
8923 2019-03-30 Eli Zaretskii <eliz@gnu.org>
8925 * NEWS: Announce $_gdb_major and $_gdb_minor.
8927 * top.c (init_gdb_version_vars): New function.
8928 (gdb_init): Call init_gdb_version_vars.
8930 2019-03-29 Tom Tromey <tromey@adacore.com>
8932 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
8933 help text. Remove dead code.
8935 2019-03-29 Keith Seitz <keiths@redhat.com>
8937 From Siddhesh Poyarekar:
8938 * f-lang.h (f77_get_upperbound): Return LONGEST.
8939 (f77_get_lowerbound): Likewise.
8940 * f-typeprint.c (f_type_print_varspec_suffix): Expand
8941 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
8943 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
8944 plongest to format print it.
8945 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
8946 (f77_get_upperbound): Likewise.
8947 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
8948 LOWER_BOUND to LONGEST.
8949 (f77_create_arrayprint_offset_tbl): Likewise.
8951 2019-03-29 Keith Seitz <keiths@redhat.com>
8953 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
8954 %s/pulongest for TYPE_LENGTH instead of %d in format
8956 * ada-typerint.c (ada_print_type): Likewise.
8957 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
8958 * compile/compile-c-support.c (generate_register_struct): Likewise.
8959 * gdbtypes.c (recursive_dump_type): Likewise.
8960 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
8961 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
8962 instead of %d in format strings.
8963 * riscv-tdep.c (riscv_type_alignment): Cast second argument
8964 to std::min to ULONGEST.
8965 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
8966 instead of %d in format strings.
8967 * tracepoint.c (info_scope_command): Likewise.
8968 * typeprint.c (print_offset_data::update)
8969 (print_offset_data::finish): Likewise.
8970 * xtensa-tdep.c (xtensa_store_return_value)
8971 (xtensa_push_dummy_call): Likewise.
8973 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
8975 * windows-nat.c (display_selector): Fixed format specifications
8978 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8980 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
8982 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
8984 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
8985 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
8986 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
8987 (nios2_linux_init_abi): Install it.
8989 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8991 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
8993 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8995 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
8997 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8998 Tom Tromey <tromey@adacore.com>
9000 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9002 2019-03-26 Joel Brobecker <brobecker@adacore.com>
9004 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9005 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9006 method to compute the bounds of range types. Also print "[evaluated]"
9007 if the bounds' values come from a dynamic evaluation.
9009 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9011 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9012 whitespace when pretty printing is on.
9014 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9016 * ppc-linux-nat.c: Add include.
9018 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9020 * NEWS: Mention AArch64 Pointer Authentication.
9022 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9024 * arm-linux-nat.c: Add include.
9026 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9028 * source-cache.c (source_cache::get_source_lines): Re-read
9029 fullname after calling open_source_file.
9031 2019-03-25 John Baldwin <jhb@FreeBSD.org>
9033 * NEWS: Mention TLS support for FreeBSD.
9035 2019-03-25 Tom Tromey <tromey@adacore.com>
9037 * minsyms.c (BUNCH_SIZE): Update comment.
9038 (~minimal_symbol_reader): Remove old comment.
9039 (compact_minimal_symbols): Update comment.
9040 (minimal_symbol_reader::install): Remove old comment. Update
9043 2019-03-25 Alan Hayward <alan.hayward@arm.com>
9045 * s390-linux-nat.c: Add include.
9047 2019-03-25 Alan Hayward <alan.hayward@arm.com>
9049 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9050 Call linux_get_hwcap.
9051 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9053 (aarch64_linux_get_hwcap): Remove function.
9054 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9056 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9058 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9059 * linux-tdep.c (linux_get_hwcap): Add function.
9060 (linux_get_hwcap2): Likewise.
9061 * linux-tdep.h (linux_get_hwcap): Add declaration.
9062 (linux_get_hwcap2): Likewise.
9063 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9064 (ppc_linux_get_hwcap2): Likewise.
9065 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9067 (ppc_linux_nat_target::insert_watchpoint): Likewise.
9068 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9069 (ppc_linux_nat_target::read_description): Likewise.
9070 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9071 * s390-linux-nat.c: Likewise.
9072 * s390-linux-tdep.c (s390_core_read_description): Likewise.
9074 2019-03-24 Tom Tromey <tom@tromey.com>
9076 * ada-lang.c (standard_lookup): Simplify initialization.
9077 (ada_lookup_symbol_nonlocal): Simplify return.
9078 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9079 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9080 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9081 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9083 * solib.c (solib_global_lookup): Simplify.
9084 * symtab.c (null_block_symbol): Remove.
9085 (symbol_cache_lookup): Simplify returns.
9086 (lookup_language_this): Simplify returns.
9087 (lookup_symbol_aux): Simplify return.
9088 (lookup_local_symbol): Simplify returns.
9089 (lookup_global_symbol_from_objfile): Simplify return.
9090 (lookup_symbol_in_objfile_symtabs)
9091 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
9092 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
9093 (lookup_static_symbol, lookup_global_symbol): Simplify return.
9094 * cp-namespace.c (cp_lookup_bare_symbol)
9095 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
9096 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9097 (cp_lookup_nested_symbol): Don't use null_block_symbol.
9098 (cp_lookup_symbol_via_imports): Simplify initialization.
9099 (find_symbol_in_baseclass): Likewise.
9100 * symtab.h (null_block_symbol): Remove.
9101 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9102 (d_lookup_nested_symbol, d_lookup_symbol_imports)
9103 (d_lookup_symbol_module): Likewise.
9104 (find_symbol_in_baseclass): Simplify initialization.
9106 2019-03-24 Tom Tromey <tom@tromey.com>
9108 * expression.h: Don't include symtab.h.
9109 (struct block): Forward declare.
9111 2019-03-24 Tom Tromey <tom@tromey.com>
9113 * c-exp.y (typebase): Remove casts.
9114 * gdbtypes.c (lookup_unsigned_typename, )
9115 (lookup_signed_typename): Remove cast.
9116 * eval.c (parse_to_comma_and_eval): Remove cast.
9117 * parse.c (write_dollar_variable): Remove cast.
9118 * block.h (struct block) <superblock>: Now const.
9119 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9120 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9121 (map_block): Make "block" const.
9122 * symfile.h (struct quick_symbol_functions)
9123 <map_matching_symbols>: Constify block argument to "callback".
9124 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9126 (find_pc_sect_compunit_symtab): Make "b" const.
9127 (find_symbol_at_address): Likewise.
9128 (search_symbols): Likewise.
9129 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9130 (dw2_debug_names_lookup_symbol): Likewise.
9131 (dw2_map_matching_symbols): Update.
9132 * p-valprint.c (pascal_val_print): Remove "block".
9133 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9134 (aux_add_nonlocal_symbols): Make "block" const.
9135 (resolve_subexp): Remove cast.
9136 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9138 (iterate_over_file_blocks): Likewise.
9139 * f-exp.y (%union) <bval>: Remove.
9140 * coffread.c (patch_opaque_types): Make "b" const.
9141 * spu-tdep.c (spu_catch_start): Make "block" const.
9142 * c-valprint.c (print_unpacked_pointer): Remove "block".
9143 * symmisc.c (dump_symtab_1): Make "b" const.
9144 (block_depth): Make "block" const.
9145 * d-exp.y (%union) <bval>: Remove.
9146 * cp-support.h (cp_lookup_rtti_type): Update.
9147 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9148 * psymtab.c (psym_lookup_symbol): Make "block" const.
9149 (maintenance_check_psymtabs): Make "b" const.
9150 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9151 (enumerate_locals, enumerate_args): Update.
9152 * python/py-symtab.c (stpy_global_block): Make "block" const.
9153 (stpy_static_block): Likewise.
9154 * inline-frame.c (block_starting_point_at): Make "new_block"
9156 * block.c (find_block_in_blockvector): Make return type const.
9157 (blockvector_for_pc_sect): Make "b" const.
9158 (find_block_in_blockvector): Make "b" const.
9160 2019-03-23 Tom Tromey <tom@tromey.com>
9162 * varobj.c (varobj_create): Update.
9163 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9164 * printcmd.c (display_command, do_one_display): Don't reset
9166 * parser-defs.h (enum innermost_block_tracker_type): Move to
9168 (innermost_block): Update comment.
9169 * parse.c (parse_exp_1): Add tracker_types parameter.
9170 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9171 tracker_types parameter. Reset innermost_block.
9172 (parse_exp_in_context): Remove.
9173 (parse_expression_for_completion): Update.
9174 * objfiles.c (~objfile): Don't reset expression_context_block or
9176 * expression.h (enum innermost_block_tracker_type): Move from
9178 (parse_exp_1): Add tracker_types parameter.
9179 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9180 reset innermost_block.
9182 2019-03-23 Tom Tromey <tom@tromey.com>
9184 * objfiles.h: Include bcache.h.
9186 2019-03-23 Tom Tromey <tom@tromey.com>
9188 * linespec.c (get_current_search_block): Use
9189 scoped_restore_current_language.
9190 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
9192 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9193 Jiong Wang <jiong.wang@arm.com>
9195 * aarch64-linux-tdep.c
9196 (aarch64_linux_iterate_over_regset_sections): Check for pauth
9198 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
9200 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9201 Jiong Wang <jiong.wang@arm.com>
9203 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9205 (aarch64_analyze_prologue_test): Add PACIASP test.
9206 (aarch64_prologue_prev_register): Unmask PC value.
9208 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9209 Jiong Wang <jiong.wang@arm.com>
9211 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9212 (aarch64_dwarf2_prev_register): Unmask PC value.
9213 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9214 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9215 DW_CFA_AARCH64_negate_ra_state.
9216 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9218 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9219 Jiong Wang <jiong.wang@arm.com>
9221 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
9223 (aarch64_pseudo_register_name): Likewise.
9224 (aarch64_pseudo_register_type): Likewise.
9225 (aarch64_pseudo_register_reggroup_p): Likewise.
9226 (aarch64_gdbarch_init): Add pauth registers.
9227 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
9228 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
9229 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
9230 (struct gdbarch_tdep): Add regnum for ra_state.
9232 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9233 Jiong Wang <jiong.wang@arm.com>
9235 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
9237 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9238 Jiong Wang <jiong.wang@arm.com>
9240 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
9242 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
9243 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
9244 (aarch64_gdbarch_init): Add puth registers.
9245 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9246 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
9247 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
9249 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9250 Jiong Wang <jiong.wang@arm.com>
9252 * aarch64-linux-nat.c
9253 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
9254 * aarch64-linux-tdep.c
9255 (aarch64_linux_core_read_description): Likewise.
9256 (aarch64_linux_get_hwcap): New function.
9257 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
9258 (aarch64_linux_get_hwcap): New declaration.
9260 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9261 Jiong Wang <jiong.wang@arm.com>
9263 * aarch64-linux-nat.c
9264 (aarch64_linux_nat_target::read_description): Add pauth param.
9265 * aarch64-linux-tdep.c
9266 (aarch64_linux_core_read_description): Likewise.
9267 * aarch64-tdep.c (struct target_desc): Add in pauth.
9268 (aarch64_read_description): Add pauth param.
9269 (aarch64_gdbarch_init): Likewise.
9270 * aarch64-tdep.h (aarch64_read_description): Likewise.
9271 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9272 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9273 * features/Makefile: Add new files.
9274 * features/aarch64-pauth.c: New file.
9275 * features/aarch64-pauth.xml: New file.
9277 2019-03-20 Tom Tromey <tromey@adacore.com>
9279 * infrun.c (handle_inferior_event): Rename from
9280 handle_inferior_event_1. Create a scoped_value_mark.
9281 (handle_inferior_event): Remove.
9283 2019-03-19 Tom Tromey <tromey@adacore.com>
9285 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9286 * infrun.h (print_stop_event): Add "displays" parameter.
9287 * infrun.c (print_stop_event): Add "displays" parameter.
9289 2019-03-19 Pedro Alves <palves@redhat.com>
9291 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9292 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9293 to -1. Fix TABs vs spaces.
9294 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9295 * tui/tui-out.h (tui_ui_out) Add intro comments.
9296 <m_line, m_start_of_line>: In-class initialize, and add describing
9299 2019-03-18 Alan Hayward <alan.hayward@arm.com>
9301 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9303 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9305 2019-03-18 Pedro Alves <palves@redhat.com>
9306 Eli Zaretskii <eliz@gnu.org>
9308 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
9309 m_line and m_start_of_line.
9311 2019-03-18 Eli Zaretskii <eliz@gnu.org>
9313 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
9314 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
9315 it returns a newline. This fixes a regression in TU mode, whereby
9316 the next line is output on the same screen line as the user input.
9318 2019-03-18 Tom Tromey <tromey@adacore.com>
9320 * minsyms.c (minimal_symbol_reader::install): Remove call to
9323 2019-03-18 Pedro Alves <palves@redhat.com>
9325 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9327 (apply_style): New, factored out from ...
9328 (apply_ansi_escape): ... this. Handle reverse video mode.
9329 (tui_set_reverse_mode): New function.
9330 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9331 * tui/tui-winsource.c (tui_show_source_line): Use
9332 tui_set_reverse_mode instead of setting A_STANDOUT.
9333 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9336 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
9338 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9341 2019-03-18 Tom Tromey <tromey@adacore.com>
9343 * ada-lang.c (empty_array): Add "high" parameter.
9344 (ada_evaluate_subexp): Update.
9346 2019-03-17 Sergei Trofimovich <siarheit@google.com>
9348 * unittests/string_view-selftests.c: Define
9349 _initialize_string_view_selftests unconditionally.
9351 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9354 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9356 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9359 * windows-nat.c (display_selector): Fix format specifiers.
9361 2019-03-17 Eli Zaretskii <eliz@gnu.org>
9363 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9364 tui_refill_source_window instead of tui_refresh_win, to update the
9365 current execution line. This fixes redisplay of the current line
9366 when stepping through the code with "next" or "step".
9368 2019-03-16 Eli Zaretskii <eliz@gnu.org>
9370 * source-cache.c (source_cache::get_source_lines): Call
9371 find_source_lines to initialize s->nlines. This fixes vertical
9372 scrolling of TUI source window when the DOWN arrow is pressed.
9374 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9376 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9377 linux-thread-db.c (_initialize_thread_db): Likewise.
9379 2019-03-16 Eli Zaretskii <eliz@gnu.org>
9381 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9382 wclrtoeol in tui_show_source_line". This reverts changes made in
9383 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9385 2019-03-15 Tom Tromey <tom@tromey.com>
9387 * symtab.h (struct minimal_symbol): Derive from
9388 general_symbol_info.
9389 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9390 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9391 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9392 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9393 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9394 (MSYMBOL_SEARCH_NAME): Update.
9395 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9396 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9397 * minsyms.c (minimal_symbol_reader::record_full): Update.
9399 2019-03-15 Tom Tromey <tom@tromey.com>
9401 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9403 2019-03-15 Tom Tromey <tom@tromey.com>
9405 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9407 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9409 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9410 (build_minimal_symbol_hash_tables)
9411 (minimal_symbol_reader::install): Update.
9413 2019-03-15 Tom Tromey <tom@tromey.com>
9415 * symtab.c (create_demangled_names_hash): Update.
9416 (symbol_set_names): Update.
9417 * objfiles.h (struct objfile_per_bfd_storage)
9418 <demangled_names_hash>: Now an htab_up.
9419 * objfiles.c (objfile_per_bfd_storage): Simplify.
9421 2019-03-15 Tom Tromey <tom@tromey.com>
9423 * objfiles.h (struct objfile_per_bfd_storage): Declare
9425 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9427 (get_objfile_bfd_data): Use new. Don't initialize
9429 (free_objfile_per_bfd_storage): Remove.
9430 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9432 2019-03-15 Tom Tromey <tom@tromey.com>
9434 * symfile.c (reread_symbols): Update.
9435 * objfiles.c (objfile::objfile): Update.
9436 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9437 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9439 (minimal_symbol_reader::install): Update.
9440 (terminate_minimal_symbol_table): Remove.
9441 * jit.c (jit_object_close_impl): Update.
9443 2019-03-15 Tom Tromey <tom@tromey.com>
9445 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9448 2019-03-15 Tom Tromey <tom@tromey.com>
9450 * objfiles.h (struct objfile_per_bfd_storage)
9451 <demangled_hash_languages>: Now a bitset.
9452 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
9453 (lookup_minimal_symbol): Update.
9455 2019-03-15 Tom Tromey <tom@tromey.com>
9457 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
9458 Don't return the symbol.
9459 * coffread.c (record_minimal_symbol): Use record_full.
9461 2019-03-14 Eli Zaretskii <eliz@gnu.org>
9463 The MS-Windows port of ncurses fails to switch to a color pair if
9464 one or both of the colors are the implicit default colors. This
9465 change records the default colors when TUI is initialized, and
9466 then specifies them explicitly when a color pair uses the default
9467 colors. This allows color styling in TUI mode on MS-Windows.
9469 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
9471 (tui_initialize_io) [__MINGW32__]: Record the default terminal
9472 colors in ncurses_norm_attr.
9473 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
9474 "none", replace it with the default color recorded in
9477 2019-03-14 Tom Tromey <tromey@adacore.com>
9479 * source-cache.h (class source_cache) <get_source_lines>: Return
9481 * source-cache.c (source_cache::extract_lines): Handle case where
9482 first_pos==npos. Return std::string.
9483 (source_cache::get_source_lines): Update.
9485 2019-03-14 Tom Tromey <tromey@adacore.com>
9487 * NEWS: Add item for "style sources" commands.
9488 * source-cache.c (source_cache::get_source_lines): Check
9490 * cli/cli-style.c (source_styling): New global.
9491 (_initialize_cli_style): Add "style sources" commands.
9492 (show_style_sources): New function.
9493 * cli/cli-style.h (source_styling): Declare.
9495 2019-03-14 Pedro Alves <palves@redhat.com>
9496 Tom Tromey <tromey@adacore.com>
9498 * tui/tui-winsource.h (tui_refill_source_window): Declare.
9499 * tui/tui-winsource.c (tui_refill_source_window): New function,
9501 (tui_horizontal_source_scroll): ... here. Move some logic.
9502 * cli/cli-style.c (set_style_enabled): Notify new observable.
9503 * tui/tui-hooks.c (tui_redisplay_source): New function.
9504 (tui_attach_detach_observers): Attach or detach
9505 tui_redisplay_source.
9506 * observable.h (source_styling_changed): New observable.
9507 * observable.c: Define source_styling_changed observable.
9509 2019-03-13 Tom Tromey <tromey@adacore.com>
9511 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
9512 (i386_gnu_nat_target::store_registers): Update.
9513 * target-debug.h (target_debug_print_std_string): New macro.
9514 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9515 * windows-tdep.c (display_one_tib): Update.
9516 * tui/tui-stack.c (tui_make_status_line): Update.
9517 * top.c (print_inferior_quit_action): Update.
9518 * thread.c (thr_try_catch_cmd): Update.
9519 (add_thread_with_info): Update.
9520 (thread_target_id_str): Update.
9521 (thr_try_catch_cmd): Update.
9522 (thread_command): Update.
9523 (thread_find_command): Update.
9524 * record-btrace.c (record_btrace_target::info_record)
9525 (record_btrace_resume_thread, record_btrace_target::resume)
9526 (record_btrace_cancel_resume, record_btrace_step_thread)
9527 (record_btrace_target::wait, record_btrace_target::wait)
9528 (record_btrace_target::wait, record_btrace_target::stop): Update.
9529 * progspace.c (print_program_space): Update.
9530 * process-stratum-target.c
9531 (process_stratum_target::thread_address_space): Update.
9532 * linux-fork.c (linux_fork_mourn_inferior)
9533 (detach_checkpoint_command, info_checkpoints_command)
9534 (linux_fork_context): Update.
9535 (linux_fork_detach): Update.
9536 (class scoped_switch_fork_info): Update.
9537 (delete_checkpoint_command): Update.
9538 * infrun.c (follow_fork_inferior): Update.
9539 (follow_fork_inferior): Update.
9540 (proceed_after_vfork_done): Update.
9541 (handle_vfork_child_exec_or_exit): Update.
9542 (follow_exec): Update.
9543 (displaced_step_prepare_throw): Update.
9544 (displaced_step_restore): Update.
9545 (start_step_over): Update.
9547 (clear_proceed_status_thread): Update.
9549 (print_target_wait_results): Update.
9550 (do_target_wait): Update.
9551 (context_switch): Update.
9552 (stop_all_threads): Update.
9553 (restart_threads): Update.
9554 (finish_step_over): Update.
9555 (handle_signal_stop): Update.
9556 (switch_back_to_stepped_thread): Update.
9557 (keep_going_pass_signal): Update.
9558 (print_exited_reason): Update.
9559 (normal_stop): Update.
9560 * inferior.c (inferior_pid_to_str): Change return type.
9561 (print_selected_inferior): Update.
9562 (add_inferior): Update.
9563 (detach_inferior): Update.
9564 * dummy-frame.c (fprint_dummy_frames): Update.
9565 * dcache.c (dcache_info_1): Update.
9566 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
9567 (btrace_fetch, btrace_clear): Update.
9568 * linux-tdep.c (linux_core_pid_to_str): Change return type.
9569 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
9571 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
9572 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
9573 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
9574 * gdbarch.c, gdbarch.h: Rebuild.
9575 * gdbarch.sh (core_pid_to_str): Change return type.
9576 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
9578 (windows_nat_target::pid_to_str): Change return type.
9579 (windows_delete_thread): Update.
9580 (windows_nat_target::attach): Update.
9581 (windows_nat_target::files_info): Update.
9582 * target-delegates.c: Rebuild.
9583 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
9585 (sol_thread_target::pid_to_str): Change return type.
9586 * remote.c (class remote_target) <pid_to_str>: Change return
9588 (remote_target::pid_to_str): Change return type.
9589 (extended_remote_target::attach, remote_target::remote_stop_ns)
9590 (remote_target::remote_notif_remove_queued_reply)
9591 (remote_target::push_stop_reply, remote_target::disable_btrace):
9593 (extended_remote_target::attach): Update.
9594 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
9596 (gdbsim_target::pid_to_str): Change return type.
9597 * ravenscar-thread.c (struct ravenscar_thread_target)
9598 <pid_to_str>: Change return type.
9599 (ravenscar_thread_target::pid_to_str): Change return type.
9600 * procfs.c (class procfs_target) <pid_to_str>: Change return
9602 (procfs_target::pid_to_str): Change return type.
9603 (procfs_target::attach): Update.
9604 (procfs_target::detach): Update.
9605 (procfs_target::fetch_registers): Update.
9606 (procfs_target::store_registers): Update.
9607 (procfs_target::wait): Update.
9608 (procfs_target::files_info): Update.
9609 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
9610 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
9612 (nto_procfs_target::pid_to_str): Change return type.
9613 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
9614 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
9616 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
9618 (attach_proc_task_lwp_callback, get_detach_signal)
9619 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
9620 (linux_nat_target::resume, wait_lwp, stop_callback)
9621 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
9622 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
9623 (linux_nat_wait_1, resume_stopped_resumed_lwps)
9624 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
9625 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
9627 (inf_ptrace_target::attach): Update.
9628 (inf_ptrace_target::files_info): Update.
9629 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
9631 (go32_nat_target::pid_to_str): Change return type.
9632 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
9633 (gnu_nat_target::wait): Update.
9634 (gnu_nat_target::wait): Update.
9635 (gnu_nat_target::resume): Update.
9636 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
9637 (fbsd_nat_target::wait): Update.
9638 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
9640 (darwin_nat_target::attach): Update.
9641 * corelow.c (class core_target) <pid_to_str>: Change return type.
9642 (core_target::pid_to_str): Change return type.
9643 * target.c (normal_pid_to_str): Change return type.
9644 (default_pid_to_str): Likewise.
9645 (target_pid_to_str): Change return type.
9646 (target_translate_tls_address): Update.
9647 (target_announce_detach): Update.
9648 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
9650 (bsd_uthread_target::pid_to_str): Change return type.
9651 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
9653 (bsd_kvm_target::pid_to_str): Change return type.
9654 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
9656 (aix_thread_target::pid_to_str): Change return type.
9657 * target.h (struct target_ops) <pid_to_str>: Change return type.
9658 (target_pid_to_str, normal_pid_to_str): Likewise.
9659 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
9661 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
9663 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
9665 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
9667 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
9669 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
9672 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
9674 * NEWS: Mention that the new default MI version is 3. Mention
9675 changes to the output of commands and events that deal with
9676 multi-location breakpoints.
9677 * breakpoint.c: Include "mi/mi-out.h".
9678 (print_one_breakpoint): Change output syntax if using MI version
9680 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
9682 (mi_multi_location_breakpoint_output_fixed): New.
9683 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
9684 (mi_cmd_fix_multi_location_breakpoint_output): New.
9685 (mi_multi_location_breakpoint_output_fixed): New.
9686 * mi/mi-cmds.c (mi_cmds): Register command
9687 -fix-multi-location-breakpoint-output.
9688 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
9691 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9693 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
9694 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
9695 instantiate mi_ui_out based on interpreter name.
9696 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
9697 * mi/mi-main.c (mi_load_progress): Likewise.
9699 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9701 * NEWS: Combine separate "New targets" sections for 8.3.
9703 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9705 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
9706 (ppcfbsd_init_abi): Install gdbarch
9707 "fetch_tls_load_module_address" and "get_thread_local_address"
9710 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9712 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
9713 (riscv_fbsd_init_abi): Install gdbarch
9714 "fetch_tls_load_module_address" and "get_thread_local_address"
9717 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9719 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
9720 (i386fbsd_init_abi): Install gdbarch
9721 "fetch_tls_load_module_address" and "get_thread_local_address"
9724 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9726 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
9727 (amd64fbsd_init_abi): Install gdbarch
9728 "fetch_tls_load_module_address" and "get_thread_local_address"
9731 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9733 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
9734 (struct fbsd_pspace_data): New type.
9735 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
9736 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
9737 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
9738 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
9739 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
9741 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9743 * gdbtypes.c (lookup_struct_elt): New function.
9744 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
9745 * gdbtypes.h (struct struct_elt): New type.
9746 (lookup_struct_elt): New prototype.
9748 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9750 * gdbtypes.c (lookup_struct_elt_type): Update comment and
9751 remove disabled code block.
9753 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9755 * gdbarch.sh (get_thread_local_address): New method.
9756 * gdbarch.h, gdbarch.c: Regenerate.
9757 * target.c (target_translate_tls_address): Use
9758 gdbarch_get_thread_local_address if present instead of
9759 target::get_thread_local_address.
9761 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9763 * target.h (target::get_thread_local_address): Update comment.
9765 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9767 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
9768 objfile->separate_debug_objfile_backlink if not NULL.
9770 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9772 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9773 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
9774 (amd64bsd_store_inferior_registers): Likewise.
9775 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9776 Enable segment base registers.
9777 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
9778 PT_GETFSBASE and PT_GETGSBASE.
9779 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
9781 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
9782 segment base registers.
9783 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9785 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9787 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9788 Update calls to i386_target_description to add 'segments'
9790 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
9791 add segment base registers.
9792 * arch/i386.c (i386_create_target_description): Add 'segments'
9793 parameter to enable segment base registers.
9794 * arch/i386.h (i386_create_target_description): Likewise.
9795 * features/i386/32bit-segments.xml: New file.
9796 * features/i386/32bit-segments.c: Generate.
9797 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
9798 call to i386_target_description to add 'segments' parameter.
9799 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9800 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9801 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9802 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9803 if feature is present.
9804 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9805 Add 'segments' parameter to call to i386_target_description.
9806 (i386_target_description): Add 'segments' parameter to enable
9807 segment base registers.
9808 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9809 to call to i386_target_description.
9810 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9811 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9812 Define I386_NUM_REGS.
9813 (i386_target_description): Add 'segments' parameter to enable
9814 segment base registers.
9816 2019-03-12 Eli Zaretskii <eliz@gnu.org>
9819 * source-cache.c: #undef open and close, to avoid unresolved
9820 externals during linking.
9822 2019-03-12 Tom Tromey <tromey@adacore.com>
9824 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9825 const. Add initializers.
9826 (_initialize_remote): Don't initialize ptid globals.
9828 2019-03-12 Pedro Alves <palves@redhat.com>
9830 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9832 2019-03-12 Pedro Alves <palves@redhat.com>
9834 * cp-name-parser.y (main): Remove unused 'len' variable.
9836 2019-03-12 Tom Tromey <tromey@adacore.com>
9838 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9839 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9841 2019-03-12 Tom Tromey <tromey@adacore.com>
9843 * linux-nat.c (iterate_over_lwps): Update.
9844 (stop_callback): Remove parameter.
9845 (stop_wait_callback, detach_callback, resume_set_callback)
9846 (select_singlestep_lwp_callback, set_ignore_sigint)
9847 (status_callback, resumed_callback, resume_clear_callback)
9848 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9850 (linux_nat_target::detach, linux_nat_target::resume)
9851 (linux_stop_and_wait_all_lwps, select_event_lwp)
9852 (linux_nat_filter_event, linux_nat_wait_1)
9853 (linux_nat_target::kill, linux_nat_target::stop)
9854 (linux_nat_target::stop): Update.
9855 (linux_nat_resume_callback): Change type.
9856 (resume_stopped_resumed_lwps, count_events_callback)
9857 (select_event_lwp_callback): Likewise.
9858 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9859 * arm-linux-nat.c (struct update_registers_data): Remove.
9860 (update_registers_callback): Change type.
9861 (arm_linux_insert_hw_breakpoint1): Update.
9862 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9864 (x86_linux_dr_set_addr): Update.
9865 (x86_linux_dr_set_control): Update.
9866 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9867 (iterate_over_lwps): Use gdb::function_view.
9868 * nat/aarch64-linux-hw-point.c (struct
9869 aarch64_dr_update_callback_param): Remove.
9870 (debug_reg_change_callback): Change type.
9871 (aarch64_notify_debug_reg_change): Update.
9872 * s390-linux-nat.c (s390_refresh_per_info): Update.
9874 2019-03-11 Tom Tromey <tromey@adacore.com>
9876 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9877 redundant assignment to "this_cu".
9879 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9881 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9883 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9885 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9887 (rank_one_type): ... this.
9889 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9891 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9893 (rank_one_type): ... this.
9895 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9897 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9899 (rank_one_type): ... this.
9901 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9903 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9905 (rank_one_type): ... this.
9907 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9909 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9911 (rank_one_type): ... this.
9913 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9915 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9917 (rank_one_type): ... this.
9919 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9921 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9923 (rank_one_type): ... this.
9925 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9927 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
9929 (rank_one_type): ... this.
9931 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9933 * gdbtypes.c (rank_one_type_parm_int): New function extracted
9935 (rank_one_type): ... this.
9937 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9939 * gdbtypes.c (rank_one_type_parm_func): New function extracted
9941 (rank_one_type): ... this.
9943 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9945 * gdbtypes.c (rank_one_type_parm_array): New function extracted
9947 (rank_one_type): ... this.
9949 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9951 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
9953 (rank_one_type): ... this.
9955 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9957 * inferior.c (initialize_inferiors): Ensure 'help set/show print
9958 inferior-events' shows the example events.
9960 2019-03-08 Eli Zaretskii <eliz@gnu.org>
9962 Support styling on native MS-Windows console
9965 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
9966 on MS-Windows if $TERM is not defined.
9968 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
9970 * posix-hdep.c (gdb_console_fputs):
9971 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
9973 * ui-file.h (gdb_console_fputs): Add prototype.
9975 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
9976 back to fputs only if the former returns zero.
9978 2019-03-07 Tom Tromey <tom@tromey.com>
9980 * symmisc.c (print_symbol_bcache_statistics): Update.
9981 (print_objfile_statistics): Update.
9982 * symfile.c (allocate_symtab): Update.
9983 * stabsread.c: Don't include bcache.h.
9984 * psymtab.h (struct psymbol_bcache): Don't declare.
9985 (class psymtab_storage) <psymbol_cache>: Now a bcache.
9986 (psymbol_bcache_init, psymbol_bcache_free)
9987 (psymbol_bcache_get_bcache): Don't declare.
9988 * psymtab.c (struct psymbol_bcache): Remove.
9989 (psymtab_storage::psymtab_storage): Update.
9990 (psymtab_storage::~psymtab_storage): Update.
9991 (psymbol_bcache_init, psymbol_bcache_free)
9992 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
9993 (add_psymbol_to_bcache): Update.
9994 (allocate_psymtab): Update.
9995 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9996 macro_cache>: No longer pointers.
9997 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
9998 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
9999 * macrotab.c (macro_bcache): Update.
10000 * macroexp.c: Don't include bcache.h.
10001 * gdbtypes.c (check_types_worklist): Update.
10002 (types_deeply_equal): Remove TRY/CATCH. Update.
10003 * elfread.c (elf_symtab_read): Update.
10004 * dwarf2read.c: Don't include bcache.h.
10005 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10006 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10007 (print_bcache_statistics, bcache_memory_used): Don't declare.
10008 (struct bcache): Move from bcache.c. Add constructor, destructor,
10009 methods. Rename all data members.
10010 * bcache.c (struct bcache): Move to bcache.h.
10011 (bcache::expand_hash_table): Rename from expand_hash_table.
10013 (bcache::insert): Rename from bcache_full.
10014 (bcache::compare): Rename from bcache_compare.
10015 (bcache_xmalloc): Remove.
10016 (bcache::~bcache): Rename from bcache_xfree.
10017 (bcache::print_statistics): Rename from print_bcache_statistics.
10018 (bcache::memory_used): Rename from bcache_memory_used.
10020 2019-03-07 Pedro Alves <palves@redhat.com>
10022 * infrun.c (normal_stop): Also check for
10023 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10025 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10027 * f-lang.c (value_from_host_double): Moved to...
10028 * value.c (value_from_host_double): ...here.
10029 * value.h (value_from_host_double): Declare.
10030 * guile/scm-math.c (vlscm_convert_typed_number): Use
10031 value_from_host_double.
10032 (vlscm_convert_number): Likewise.
10033 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10034 * python/py-value.c (convert_value_from_python): Likewise.
10036 2019-03-06 Tom Tromey <tom@tromey.com>
10038 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10040 2019-03-06 Tom Tromey <tom@tromey.com>
10042 * utils.h (free_current_contents): Don't declare.
10043 * utils.c (free_current_contents): Remove.
10045 2019-03-06 Tom Tromey <tom@tromey.com>
10047 * top.c (quit_force): Update.
10048 * main.c (captured_command_loop): Update.
10049 * common/new-op.c (operator new): Update.
10050 * common/common-exceptions.c (struct catcher)
10051 <save_cleanup_chain>: Remove member.
10052 (exceptions_state_mc_init): Update.
10053 (exception_try_scope_entry): Return nullptr.
10054 (exception_try_scope_exit, exception_rethrow)
10055 (throw_exception_sjlj, throw_exception_cxx): Update.
10056 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10057 (all_cleanups, do_cleanups, discard_cleanups)
10058 (discard_final_cleanups, save_cleanups, save_final_cleanups)
10059 (restore_cleanups, restore_final_cleanups): Don't declare.
10060 (do_final_cleanups): Remove parameter.
10061 * common/cleanups.c (cleanup_chain, make_cleanup)
10062 (make_cleanup_dtor, all_cleanups, do_cleanups)
10063 (discard_my_cleanups, discard_cleanups)
10064 (discard_final_cleanups, save_my_cleanups, save_cleanups)
10065 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10066 (null_cleanup): Remove.
10067 (do_final_cleanups): Remove parameter.
10069 2019-03-06 Tom Tromey <tom@tromey.com>
10071 * remote.c (remote_target::remote_parse_stop_reply): Use
10072 unique_xmalloc_ptr.
10074 2019-03-06 Tom Tromey <tom@tromey.com>
10076 * stabsread.c (struct stabs_field_info): Rename from field_info.
10077 <list, fnlist>: Add initializers.
10078 <obstack>: New member.
10079 (read_member_functions, read_struct_fields, read_baseclasses):
10080 Allocate on obstack. Don't use cleanups.
10081 (read_one_struct_field, read_member_functions, read_struct_fields)
10082 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
10083 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
10084 (read_struct_type): Update.
10086 2019-03-06 Tom Tromey <tom@tromey.com>
10088 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
10089 * common/filestuff.h (make_cleanup_close): Don't declare.
10090 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
10093 2019-03-06 Tom Tromey <tom@tromey.com>
10095 * solib-aix.c: Use make_scope_exit.
10097 2019-03-06 Tom Tromey <tom@tromey.com>
10099 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10100 Use make_scope_exit.
10102 2019-03-06 Tom Tromey <tom@tromey.com>
10104 * solib-svr4.c (disable_probes_interface): Remove parameter.
10105 (svr4_handle_solib_event): Use make_scope_exit.
10107 2019-03-06 Tom Tromey <tom@tromey.com>
10109 * remote.c (struct stop_reply_deleter): Remove.
10110 (stop_reply_up): Update.
10111 (struct stop_reply): Derive from notif_event. Don't typedef.
10112 <regcache>: Now a std::vector.
10113 (stop_reply_xfree): Remove.
10114 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10115 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10116 (remote_target::discard_pending_stop_replies): Use delete.
10117 (remote_target::remote_parse_stop_reply): Update.
10118 (remote_target::process_stop_reply): Update.
10119 * remote-notif.h (struct notif_event): Add virtual destructor.
10120 Remove "dtr" member.
10121 (struct notif_client) <alloc_event>: Return a unique_ptr.
10122 (notif_event_xfree): Don't declare.
10123 (notif_event_up): New typedef.
10124 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10125 (notif_event_xfree, do_notif_event_xfree): Remove.
10126 (remote_notif_state_xfree): Update.
10128 2019-03-06 Tom Tromey <tom@tromey.com>
10130 * infrun.c (displaced_step_clear_cleanup): Now a
10131 forward_scope_exit type.
10132 (displaced_step_prepare_throw): Update.
10133 (displaced_step_fixup): Update.
10135 2019-03-06 Tom Tromey <tom@tromey.com>
10137 * inferior.h (class inferior): Update comment.
10138 * gdbthread.h (class thread_info): Update comment.
10140 2019-03-06 Joel Brobecker <brobecker@adacore.com>
10141 Tom Tromey <tom@tromey.com>
10143 * stabsread.h (struct stab_section_list): Remove.
10144 (coffstab_build_psymtabs): Update.
10145 * dbxread.c (symbuf_sections): Now a std::vector.
10146 (sect_idx): New global.
10147 (fill_symbuf): Update.
10148 (coffstab_build_psymtabs): Change type of stabsects parameter.
10150 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10152 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10153 (coff_locate_sections): Update.
10154 (coff_symfile_read): Remove cleanups. Update.
10155 (init_stringtab): Add storage parameter.
10156 (free_stringtab, free_stringtab_cleanup): Remove.
10157 (init_lineno): Add storage parameter.
10158 (free_linetab, free_linetab_cleanup): Remove.
10160 2019-03-06 Pedro Alves <palves@redhat.com>
10162 * linux-fork.c (fork_info::clobber_regs): Delete.
10163 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10164 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10166 (scoped_switch_fork_info::scoped_switch_fork_info)
10167 (checkpoint_command, linux_fork_context): Adjust
10168 fork_save_infrun_state calls.
10170 2019-03-06 Pedro Alves <palves@redhat.com>
10172 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10173 (inf_has_multiple_threads): Return 'bool' and rewrite using
10174 inferior_info::threads().
10176 2019-03-06 Pedro Alves <palves@redhat.com>
10178 * linux-fork.c: Include <list>.
10179 (fork_list): Now a std::list instance.
10180 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10181 (forks_exist_p, find_last_fork): Adjust.
10182 (new_fork): Delete.
10184 (add_fork): Adjust.
10185 (free_fork): Delete, folded into fork_info::~fork_info().
10186 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
10188 (init_fork_list): Delete.
10189 (linux_fork_killall, linux_fork_mourn_inferior)
10190 (linux_fork_detach, info_checkpoints_command): Adjust.
10191 (_initialize_linux_fork): No longer call init_fork_list.
10193 2019-03-06 Pedro Alves <palves@redhat.com>
10195 * linux-fork.c (new_fork): New, split out of ...
10196 (add_fork): ... this. Return void. Move "first fork" special
10197 case from here, to ...
10198 (checkpoint_command): ... here.
10199 * linux-linux.h (add_fork): Return void.
10201 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10203 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10205 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10206 Chris January <chris.january@arm.com>
10207 David Lecomber <david.lecomber@arm.com>
10209 * f-exp.y: New token, UNOP_INTRINSIC.
10210 (exp): New pattern using UNOP_INTRINSIC token.
10211 (f77_keywords): Add 'abs' keyword.
10212 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10213 (value_from_host_double): New function.
10214 (evaluate_subexp_f): Support UNOP_ABS.
10216 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10218 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10221 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10223 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
10224 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
10225 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
10227 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10229 * f-exp.y (convert_to_kind_type): Handle more type kinds.
10231 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10232 Chris January <chris.january@arm.com>
10234 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
10235 * f-exp.y: Define 'KIND' token.
10236 (exp): New pattern for KIND expressions.
10237 (ptype): Handle types with a kind extension.
10238 (direct_abs_decl): Extend to spot kind extensions.
10239 (f77_keywords): Add 'kind' to the list.
10240 (push_kind_type): New function.
10241 (convert_to_kind_type): New function.
10242 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
10243 * parse.c (operator_length_standard): Likewise.
10244 * parser-defs.h (enum type_pieces): Add tp_kind.
10245 * std-operator.def: Add UNOP_KIND.
10247 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10249 * f-exp.y (f_parse): Set yydebug.
10251 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10253 * f-lang.c (evaluate_subexp_f): New function.
10254 (exp_descriptor_f): New global.
10255 (f_language_defn): Use exp_descriptor_f instead of
10256 exp_descriptor_standard.
10258 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10260 * f-exp.y (struct token): Add comments.
10261 (dot_ops): Remove uppercase versions and the end marker.
10262 (f77_keywords): Likewise.
10263 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10264 entries in the dot_ops array are case insensitive, and use
10265 strncasecmp to compare strings. Also some whitespace cleanup in
10266 this area. Similar for the f77_keywords array, except entries in
10267 this list might be case sensitive.
10269 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10271 * f-exp.y (struct f77_boolean_val): Add comments.
10272 (boolean_values): Remove uppercase versions, and end marker.
10273 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10274 and use strncasecmp to achieve case insensitivity. Additionally,
10275 perform whitespace cleanup around this code.
10277 2019-03-06 Tom Tromey <tromey@adacore.com>
10279 * remote-sim.c (gdbsim_target_open): Use result of
10282 2019-03-06 Richard Bunt <richard.bunt@arm.com>
10283 Dirk Schubert <dirk.schubert@arm.com>
10284 Chris January <chris.january@arm.com>
10286 * eval.c (evaluate_subexp_standard): Call Fortran argument
10288 * f-lang.c (struct value): A value which can be passed into a
10289 Fortran function call.
10290 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10292 (struct type): Value ready for a Fortran function call.
10293 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10295 * f-lang.h (fortran_argument_convert): Declaration.
10296 (fortran_preserve_arg_pointer): Declaration.
10297 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10299 2019-03-05 Tom Tromey <tromey@adacore.com>
10301 * python/py-prettyprint.c (print_string_repr): Remove #if.
10302 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10304 2019-03-05 Tom Tromey <tromey@adacore.com>
10306 * target.c (the_dummy_target): Move later. Change type to
10308 (initialize_targets): Don't initialize the_dummy_target.
10310 2019-03-05 Tom Tromey <tromey@adacore.com>
10312 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
10313 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
10315 2019-03-05 Tom Tromey <tromey@adacore.com>
10317 * windows-nat.c (windows_nat_target::attach)
10318 (windows_nat_target::detach): Don't call gdb_flush.
10319 * valprint.c (generic_val_print, val_print, val_print_string):
10320 Don't call gdb_flush.
10321 * utils.c (defaulted_query): Don't call gdb_flush.
10322 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10323 * target.c (target_announce_detach): Don't call gdb_flush.
10324 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10325 * remote.c (extended_remote_target::attach): Don't call
10327 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10328 * printcmd.c (do_examine): Don't call gdb_flush.
10329 (info_display_command): Don't call gdb_flush.
10330 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10331 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10332 * memattr.c (info_mem_command): Don't call gdb_flush.
10333 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10334 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10335 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10336 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10337 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10338 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10339 (gnu_nat_target::detach): Don't call gdb_flush.
10340 * f-valprint.c (f_val_print): Don't call gdb_flush.
10341 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10342 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10343 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10345 * c-valprint.c (c_val_print): Don't call gdb_flush.
10346 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10348 2019-03-05 Tom Tromey <tromey@adacore.com>
10350 * varobj.c (update_dynamic_varobj_children): Update.
10351 (install_default_visualizer): Use reset, not release.
10352 * value.c (set_internalvar): Update.
10353 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10354 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10355 ATTRIBUTE_UNUSED_RESULT.
10357 2019-03-05 Tom Tromey <tromey@adacore.com>
10359 * remote.c (class scoped_remote_fd) <release>: Add
10360 ATTRIBUTE_UNUSED_RESULT.
10362 2019-03-05 Tom Tromey <tromey@adacore.com>
10364 * macroexp.c (struct macro_buffer) <release>: Add
10365 ATTRIBUTE_UNUSED_RESULT.
10367 2019-03-05 Tom Tromey <tromey@adacore.com>
10369 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10370 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10371 ATTRIBUTE_UNUSED_RESULT.
10373 2019-03-05 Tom Tromey <tromey@adacore.com>
10375 * common/scoped_fd.h (class scoped_fd) <release>: Add
10376 ATTRIBUTE_UNUSED_RESULT.
10378 2019-03-05 Tom Tromey <tromey@adacore.com>
10380 * parser-defs.h (struct parser_state) <release>: Add
10381 ATTRIBUTE_UNUSED_RESULT.
10383 2019-03-05 Tom Tromey <tromey@adacore.com>
10385 * utils.h (class gdb_argv) <release>: Add
10386 ATTRIBUTE_UNUSED_RESULT.
10387 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10389 2019-03-02 Eli Zaretskii <eliz@gnu.org>
10391 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10392 for-loop range, to avoid compiler warnings.
10394 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10395 avoid compiler warnings about unused variables.
10397 * NEWS: Mention end of support for native debugging on MS-Windows
10401 * common/netstuff.c:
10402 * gdbserver/gdbreplay.c
10403 * gdbserver/remote-utils.c:
10405 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10406 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10407 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10408 'getaddrinfo' and 'freeaddrinfo' were not available before
10409 Windows XP, and mingw.org's MinGW headers by default define
10410 _WIN32_WINNT to 0x500.
10412 2019-03-01 Gary Benson <gbenson@redhat.com>
10414 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10416 2019-02-28 Brian Vandenberg <phantall@gmail.com>
10417 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10420 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10421 set_sigint_trap, clear_sigint_trap.
10423 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10425 * target.c (target_detach): Clear the regcache and the
10428 2019-02-27 Pedro Alves <palves@redhat.com>
10430 * utils.c (set_screen_size): When we cap the height/width sizes,
10431 tweak the corresponding command variable to show "unlimited":
10433 2019-02-27 Saagar Jha <saagar@saagarjha.com>
10434 Pedro Alves <palves@redhat.com>
10436 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10437 before calling rl_set_screen_size.
10439 2019-02-27 Tom Tromey <tromey@adacore.com>
10441 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10443 * python/py-value.c: Remove Python 2.4 workaround.
10444 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10446 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10447 Python 2.4 workaround.
10448 * python/python-internal.h: Remove Python 2.4 comment.
10449 (Py_ssize_t): Don't define.
10450 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10451 (gdb_Py_DECREF): Remove Python 2.4 workaround.
10452 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
10453 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
10454 * python/python.c (do_start_initialization): Remove Python 2.4
10456 * python/py-prettyprint.c (class dummy_python_frame): Remove.
10457 (print_children): Remove Python 2.4 workaround.
10458 * python/py-inferior.c (buffer_procs): Remove Python 2.4
10460 (CHARBUFFERPROC_NAME): Remove.
10461 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
10462 Python 2.4 workaround.
10464 2019-02-27 Kevin Buettner <kevinb@redhat.com>
10466 * NEWS: Note minimum Python version.
10468 2019-02-27 Kevin Buettner <kevinb@redhat.com>
10470 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
10471 code from these functions. Remove corresponding ifdefs. Use
10472 Py_buffer_up instead of explicit calls to PyBuffer_Release.
10473 Remove gotos and target of gotos.
10474 (infpy_search_memory): Likewise.
10476 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10478 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
10479 (hppa_gdbarch_init): Don't register deleted functions with
10482 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10484 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
10485 (h8300_unwind_sp): Delete.
10486 (h8300_dummy_id): Delete.
10487 (h8300_gdbarch_init): Don't register deleted functions with
10490 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10492 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
10493 (ft32_unwind_pc): Delete.
10494 (ft32_unwind_sp): Delete.
10495 (ft32_gdbarch_init): Don't register deleted functions with
10498 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10500 * gdb/frv-tdep.c (frv_dummy_id): Delete.
10501 (frv_unwind_pc): Delete.
10502 (frv_unwind_sp): Delete.
10503 (frv_gdbarch_init): Don't register deleted functions with
10506 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10508 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
10509 (riscv_unwind_pc): Delete.
10510 (riscv_unwind_sp): Delete.
10511 (riscv_gdbarch_init): Don't register deleted functions with
10514 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10516 * gdb/csky-tdep.c (csky_dummy_id): Delete.
10517 (csky_unwind_pc): Delete.
10518 (csky_unwind_sp): Delete.
10519 (csky_gdbarch_init): Don't register deleted functions with
10522 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10524 * gdb/cris-tdep.c (cris_dummy_id): Delete.
10525 (cris_unwind_pc): Delete.
10526 (cris_unwind_sp): Delete.
10527 (cris_gdbarch_init): Don't register deleted functions with
10530 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10532 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
10533 (bfin_unwind_pc): Delete.
10534 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
10536 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10538 * gdb/arm-tdep.c (arm_dummy_id): Delete.
10539 (arm_unwind_pc): Delete.
10540 (arm_unwind_sp): Delete.
10541 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
10543 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10545 * gdb/arc-tdep.c (arc_dummy_id): Delete.
10546 (arc_unwind_pc): Delete.
10547 (arc_unwind_sp): Delete.
10548 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
10550 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10552 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
10553 (alpha_unwind_pc): Delete.
10554 (alpha_gdbarch_init): Don't register deleted functions with
10557 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10559 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
10560 (aarch64_unwind_pc): Delete.
10561 (aarch64_unwind_sp): Delete.
10562 (aarch64_gdbarch_init): Don't register deleted functions with
10565 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10567 * gdbtypes.c (type_align): Don't consider static members when
10568 computing structure alignment.
10570 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10572 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
10573 return 0 for other types.
10574 * arch-utils.c (default_type_align): Always return 0.
10575 * gdbarch.h: Regenerate.
10576 * gdbarch.sh (type_align): Extend comment.
10577 * gdbtypes.c (type_align): Add additional comments, always call
10578 gdbarch_type_align before applying the default rules.
10579 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
10580 generic code will then apply a suitable default.
10581 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
10582 types, return 0 for other types.
10584 2019-02-27 Joel Brobecker <brobecker@adacore.com>
10586 * NEWS: Create a new section for the next release branch.
10587 Rename the section of the current branch, now that it has
10590 2019-02-27 Joel Brobecker <brobecker@adacore.com>
10592 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
10593 * version.in: Bump version to 8.3.50.DATE-git.
10595 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
10597 * aix-thread.c (ptid_cmp): Remove unused variable.
10598 (get_signaled_thread): Likewise.
10599 (store_regs_user_thread): Likewise.
10600 (store_regs_kernel_thread): Likewise.
10601 (fetch_regs_kernel_thread): Remove shadowed variable.
10603 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
10605 * features/riscv/32bit-cpu.xml: Add register numbers.
10606 * features/riscv/32bit-fpu.c: Regenerate.
10607 * features/riscv/32bit-fpu.xml: Add register numbers.
10608 * features/riscv/64bit-cpu.xml: Add register numbers.
10609 * features/riscv/64bit-fpu.c: Regenerate.
10610 * features/riscv/64bit-fpu.xml: Add register numbers.
10612 2019-02-26 Kevin Buettner <kevinb@redhat.com>
10614 * NEWS: Mention two argument form of gdb.Value constructor.
10615 * python/py-value.c (convert_buffer_and_type_to_value): New
10617 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
10618 Add support for handling an optional second argument. Call
10619 convert_buffer_and_type_to_value as appropriate.
10620 * python/python-internal.h (Py_buffer_deleter): New struct.
10621 (Py_buffer_up): New typedef.
10623 2019-02-25 John Baldwin <jhb@FreeBSD.org>
10625 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
10626 instead of releasing ownership.
10628 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
10630 * dwarf2read.c (open_and_init_dwp_file): Call
10631 elf_numsections instead of bfd_count_sections to initialize
10632 dwp_file->num_sections.
10634 2019-02-25 Tom Tromey <tromey@adacore.com>
10636 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
10638 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
10640 * gcore.in: Add '--readnever' option when invoking GDB.
10642 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10644 * MAINTAINERS: Update my email address.
10646 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10648 * build-id.c (build_id_to_debug_bfd_1): New function.
10649 (build_id_to_debug_bfd): Look for separate debug file in
10652 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
10654 * gdbarch.sh: Update the copyright year range that is placed into
10657 2019-02-22 Keith Seitz <keiths@redhat.com>
10660 * linespec.c (create_sals_line_offset): Search for the default
10661 symtab's filename instead of its fullname.
10663 2019-02-21 Alan Hayward <alan.hayward@arm.com>
10665 * NEWS: Update style defaults.
10667 2019-02-21 Alan Hayward <alan.hayward@arm.com>
10669 * main.c (captured_main_1): Disable styling in batch mode.
10671 2019-02-20 Tom Tromey <tom@tromey.com>
10673 * symtab.c (symtab_symbol_info): Fix typos.
10675 2019-02-20 Tom Tromey <tromey@adacore.com>
10677 * findcmd.c (_initialize_mem_search): Use upper case for
10678 metasyntactic variables.
10680 2019-02-20 Alan Hayward <alan.hayward@arm.com>
10682 * aarch64-tdep.c (aarch64_add_reggroups): New function.
10683 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
10685 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
10687 * top.h (source_file_name): Change to std::string.
10688 * top.c (source_file_name): Likewise.
10689 (command_line_input): Adjust.
10690 * cli/cli-script.c (script_from_file): Adjust.
10692 2019-02-19 Tom Tromey <tromey@adacore.com>
10694 * ravenscar-thread.c
10695 (ravenscar_thread_target::update_thread_list): Don't call
10696 ada_build_task_list.
10697 * ada-lang.h (ada_build_task_list): Don't declare.
10698 * ada-tasks.c (struct ada_tasks_inferior_data)
10699 <task_list_valid_p>: Now bool.
10700 (read_known_tasks, ada_task_list_changed)
10701 (ada_tasks_invalidate_inferior_data): Update.
10702 (read_known_tasks_array): Return bool.
10703 (read_known_tasks_list): Likewise.
10704 (read_known_tasks): Return void.
10705 (ada_build_task_list): Now static.
10707 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
10709 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
10710 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
10712 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10714 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
10715 variant for ada_tasks_pspace_data_handle and
10716 ada_tasks_inferior_data_handle.
10717 (ada_tasks_pspace_data_cleanup): New function.
10718 (ada_tasks_inferior_data_cleanup): New function.
10720 2019-02-17 Tom Tromey <tom@tromey.com>
10722 * macrotab.h (macro_source_fullname): Return a std::string.
10723 * macrotab.c (macro_include, check_for_redefinition)
10724 (macro_undef, macro_lookup_definition, foreach_macro)
10725 (foreach_macro_in_scope): Update.
10726 (macro_source_fullname): Return a std::string.
10727 * macrocmd.c (show_pp_source_pos): Update.
10729 2019-02-17 Tom Tromey <tom@tromey.com>
10731 * macrocmd.c (show_pp_source_pos): Style the file names.
10733 2019-02-17 Tom Tromey <tom@tromey.com>
10736 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
10738 2019-02-17 Tom Tromey <tom@tromey.com>
10740 * ada-lang.c (user_select_syms): Use filtered printing.
10741 * utils.c (wrap_style): New global.
10742 (desired_style): Remove.
10743 (emit_style_escape): Add stream parameter.
10744 (set_output_style, reset_terminal_style, prompt_for_continue):
10746 (flush_wrap_buffer): Only flush gdb_stdout.
10747 (wrap_here): Set wrap_style.
10748 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
10749 treat escape sequences as a character. Change when wrap buffer is
10751 (fputs_styled): Do not set the output style when the default is
10753 * ui-style.h (struct ui_file_style) <is_default>: New method.
10754 * source.c (print_source_lines_base): Emit escape sequences in one
10757 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10759 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
10760 integers and enumeration types.
10762 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10764 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
10765 instead of lookup_symbol_in_language
10766 (do_exact_match): New function.
10767 (ada_get_symbol_name_matcher): Return do_exact_match when
10768 doing a verbatim match.
10770 2019-02-15 Tom Tromey <tromey@adacore.com>
10772 * ravenscar-thread.c (ravenscar_thread_target::resume)
10773 (ravenscar_thread_target::wait): Special case wildcard requests.
10775 2019-02-15 Tom Tromey <tromey@adacore.com>
10777 * ravenscar-thread.c (base_ptid): Remove.
10778 (struct ravenscar_thread_target) <close>: New method.
10779 <m_base_ptid>: New member.
10780 <update_inferior_ptid, active_task, task_is_currently_active,
10781 runtime_initialized>: Declare methods.
10782 <ravenscar_thread_target>: Add constructor.
10783 (ravenscar_thread_target::task_is_currently_active)
10784 (ravenscar_thread_target::update_inferior_ptid)
10785 (ravenscar_runtime_initialized): Rename. Now methods.
10786 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
10787 (ravenscar_thread_target::update_thread_list): Update.
10788 (ravenscar_thread_target::active_task): Now method.
10789 (ravenscar_thread_target::store_registers)
10790 (ravenscar_thread_target::prepare_to_store)
10791 (ravenscar_thread_target::prepare_to_store)
10792 (ravenscar_thread_target::mourn_inferior): Update.
10793 (ravenscar_inferior_created): Use "new" to create target.
10794 (ravenscar_thread_target::get_ada_task_ptid): Update.
10795 (_initialize_ravenscar): Don't initialize base_ptid.
10796 (ravenscar_ops): Remove global.
10798 2019-02-15 Tom Tromey <tromey@adacore.com>
10800 * target.h (push_target): Declare new overload.
10801 * target.c (push_target): New overload, taking an rvalue reference.
10802 * remote.c (remote_target::open_1): Use push_target overload.
10803 * corelow.c (core_target_open): Use push_target overload.
10805 2019-02-15 Tom Tromey <tromey@adacore.com>
10807 * ravenscar-thread.c (is_ravenscar_task)
10808 (ravenscar_task_is_currently_active): Return bool.
10809 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10810 (_initialize_ravenscar): Remove "(void)".
10811 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10814 2019-02-15 Tom Tromey <tromey@adacore.com>
10816 * ravenscar-thread.c (ravenscar_runtime_initializer)
10817 (has_ravenscar_runtime, get_running_thread_id)
10818 (ravenscar_thread_target::resume): Fix indentation.
10820 2019-02-15 Tom Tromey <tromey@adacore.com>
10822 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10823 from ravenscar_arch_ops.
10824 (sparc_ravenscar_ops::fetch_registers)
10825 (sparc_ravenscar_ops::store_registers): Now methods.
10826 (sparc_ravenscar_prepare_to_store): Remove.
10827 (sparc_ravenscar_ops): Redefine.
10828 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10829 methods and destructor. Remove members.
10830 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10831 (ravenscar_thread_target::store_registers)
10832 (ravenscar_thread_target::prepare_to_store): Update.
10833 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10835 (struct ppc_ravenscar_powerpc_ops): Derive from
10836 ravenscar_arch_ops.
10837 (ppc_ravenscar_powerpc_ops::fetch_registers)
10838 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10839 (ppc_ravenscar_powerpc_ops): Redefine.
10840 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10841 (ppc_ravenscar_e500_ops::fetch_registers)
10842 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10843 (ppc_ravenscar_e500_ops): Redefine.
10844 * aarch64-ravenscar-thread.c
10845 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10846 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10847 (aarch64_ravenscar_fetch_registers)
10848 (aarch64_ravenscar_store_registers): Now methods.
10849 (aarch64_ravenscar_ops): Redefine.
10851 2019-02-15 Tom Tromey <tromey@adacore.com>
10853 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10854 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10855 (ravenscar_thread_target::stopped_by_watchpoint)
10856 (ravenscar_thread_target::stopped_data_address)
10857 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10859 2019-02-15 Tom Tromey <tromey@adacore.com>
10861 * ravenscar-thread.c: Fix some typos.
10863 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10864 Tom Tromey <tromey@adacore.com>
10866 * ada-lang.c (ada_exception_sal): Change addr_string to a
10868 (create_ada_exception_catchpoint): Update.
10870 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10871 Tom Tromey <tromey@adacore.com>
10873 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10874 (bp_location_ops): Remove.
10875 (base_breakpoint_allocate_location): Update.
10876 (free_bp_location): Update.
10877 * ada-lang.c (class ada_catchpoint_location)
10878 <ada_catchpoint_location>: Remove ops parameter.
10879 (ada_catchpoint_location_dtor): Remove.
10880 (ada_catchpoint_location_ops): Remove.
10881 (allocate_location_exception): Update.
10882 * breakpoint.h (struct bp_location_ops): Remove.
10883 (class bp_location) <bp_location>: Remove bp_location_ops
10885 <~bp_location>: Add destructor.
10888 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10889 Pedro Alves <palves@redhat.com>
10891 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10894 2019-02-14 David Michael <fedora.dm0@gmail.com>
10895 Samuel Thibault <samuel.thibault@gnu.org>
10896 Thomas Schwinge <thomas@codesourcery.com>
10898 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10899 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10901 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10903 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10904 (check_empty): Use "const char *".
10906 * gnu-nat.c (gnu_nat_target::detach): Instead of
10907 'detach_inferior (pid)' call
10908 'detach_inferior (find_inferior_pid (pid))'.
10910 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10911 'nat/fork-inferior.o'.
10912 * gnu-nat.c: #include "nat/fork-inferior.h".
10914 * gnu-nat.c (gnu_nat_target::detach): Instead of
10915 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10916 * gnu-nat.h: #include "inf-child.h".
10917 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10918 'i386_gnu_nat_target::fetch_registers'.
10919 (gnu_store_registers): Rename/move to
10920 'i386_gnu_nat_target::store_registers'.
10922 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10923 * gnu-nat.h (mach_thread_info): New function.
10924 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10926 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10928 2019-02-14 Frederic Konrad <konrad@adacore.com>
10930 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
10932 2019-02-14 Joel Brobecker <brobecker@adacore.com>
10934 * windows-nat.c (windows_add_thread): Add new parameter
10935 "main_thread_p" with default value set to false. Update
10936 function documentation as well as all callers.
10937 (windows_delete_thread): Likewise.
10938 (fake_create_process): Update call to windows_add_thread.
10939 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
10940 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
10941 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
10942 call to windows_delete_thread.
10944 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
10946 * MAINTAINERS: Add Andrew Burgess as global maintainer.
10948 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10950 * symfile.c (find_separate_debug_file): Use canonical path of
10951 sysroot with child_path instead of gdb_sysroot if it is valid.
10953 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10955 * symfile.c (find_separate_debug_file): Use child_path to
10956 determine if an object file is under a sysroot.
10958 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10960 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10961 unittests/child-path-selftests.c.
10962 * common/pathstuff.c (child_path): New function.
10963 * common/pathstuff.h (child_path): New prototype.
10964 * unittests/child-path-selftests.c: New file.
10966 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10968 * symfile.c (find_separate_debug_file): Look for separate debug
10969 files in debug directories under the sysroot.
10971 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10973 * symtab.h (struct minimal_symbol data_p): New const method.
10974 (struct minimal_symbol text_p): Likewise.
10975 * symtab.c (output_source_filename): Use file name style
10976 to print file name.
10977 (print_symbol_info): Likewise.
10978 (print_msymbol_info): Use address style to print addresses.
10979 Use function name style to print executable text symbols.
10980 (expand_symtab_containing_pc): Use data_p.
10981 (find_pc_sect_compunit_symtab): Likewise.
10983 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10985 * breakpoint.c (describe_other_breakpoints): Use address style
10986 to print addresses.
10987 (say_where): Likewise.
10989 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10991 * ada-typeprint.c (print_func_type): Print function name
10992 style to print function name.
10993 * c-typeprint.c (c_print_type_1): Likewise.
10995 2019-02-11 Alan Hayward <alan.hayward@arm.com>
10997 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11000 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11002 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11005 2019-02-10 Joel Brobecker <brobecker@adacore.com>
11007 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11008 TYPE_CODE_REF types.
11010 2019-02-08 Jim Wilson <jimw@sifive.com>
11012 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11013 (riscv_linux_fregset): New.
11014 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11016 2019-02-07 Tom Tromey <tom@tromey.com>
11018 * thread.c (thread_cancel_execution_command): Update.
11019 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11021 (struct thread_fsm_ops): Remove.
11022 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11023 (thread_fsm_should_stop, thread_fsm_return_value)
11024 (thread_fsm_set_finished, thread_fsm_finished_p)
11025 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11027 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11028 * infrun.c (clear_proceed_status_thread)
11029 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11030 (print_stop_event): Update.
11031 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11033 (step_command_fsm_ops): Remove.
11034 (new_step_command_fsm): Remove.
11036 (step_command_fsm::should_stop): Rename from
11037 step_command_fsm_should_stop.
11038 (step_command_fsm::clean_up): Rename from
11039 step_command_fsm_clean_up.
11040 (step_command_fsm::do_async_reply_reason): Rename from
11041 step_command_fsm_async_reply_reason.
11042 (struct until_next_fsm): Inherit from thread_fsm. Add
11044 (until_next_fsm_ops): Remove.
11045 (new_until_next_fsm): Remove.
11046 (until_next_fsm::should_stop): Rename from
11047 until_next_fsm_should_stop.
11048 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11049 (until_next_fsm::do_async_reply_reason): Rename from
11050 until_next_fsm_async_reply_reason.
11051 (struct finish_command_fsm): Inherit from thread_fsm. Add
11052 constructor. Change type of breakpoint.
11053 (finish_command_fsm_ops): Remove.
11054 (new_finish_command_fsm): Remove.
11055 (finish_command_fsm::should_stop): Rename from
11056 finish_command_fsm_should_stop.
11057 (finish_command_fsm::clean_up): Rename from
11058 finish_command_fsm_clean_up.
11059 (finish_command_fsm::return_value): Rename from
11060 finish_command_fsm_return_value.
11061 (finish_command_fsm::do_async_reply_reason): Rename from
11062 finish_command_fsm_async_reply_reason.
11063 (finish_command): Update.
11064 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11066 (call_thread_fsm_ops): Remove.
11067 (call_thread_fsm::call_thread_fsm): Rename from
11068 new_call_thread_fsm.
11069 (call_thread_fsm::should_stop): Rename from
11070 call_thread_fsm_should_stop.
11071 (call_thread_fsm::should_notify_stop): Rename from
11072 call_thread_fsm_should_notify_stop.
11073 (run_inferior_call, call_function_by_hand_dummy): Update.
11074 * cli/cli-interp.c (should_print_stop_to_console): Update.
11075 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11076 Add constructor. Change type of location_breakpoint,
11078 (until_break_fsm_ops): Remove.
11079 (new_until_break_fsm): Remove.
11080 (until_break_fsm::should_stop): Rename from
11081 until_break_fsm_should_stop.
11082 (until_break_fsm::clean_up): Rename from
11083 until_break_fsm_clean_up.
11084 (until_break_fsm::do_async_reply_reason): Rename from
11085 until_break_fsm_async_reply_reason.
11086 (until_break_command): Update.
11087 * thread-fsm.c: Remove.
11088 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
11090 2019-02-07 Tom Tromey <tom@tromey.com>
11092 * yy-remap.h: Add include guard.
11093 * xtensa-tdep.h: Add include guard.
11094 * xcoffread.h: Rename include guard.
11095 * varobj-iter.h: Add include guard.
11096 * tui/tui.h: Rename include guard.
11097 * tui/tui-winsource.h: Rename include guard.
11098 * tui/tui-wingeneral.h: Rename include guard.
11099 * tui/tui-windata.h: Rename include guard.
11100 * tui/tui-win.h: Rename include guard.
11101 * tui/tui-stack.h: Rename include guard.
11102 * tui/tui-source.h: Rename include guard.
11103 * tui/tui-regs.h: Rename include guard.
11104 * tui/tui-out.h: Rename include guard.
11105 * tui/tui-layout.h: Rename include guard.
11106 * tui/tui-io.h: Rename include guard.
11107 * tui/tui-hooks.h: Rename include guard.
11108 * tui/tui-file.h: Rename include guard.
11109 * tui/tui-disasm.h: Rename include guard.
11110 * tui/tui-data.h: Rename include guard.
11111 * tui/tui-command.h: Rename include guard.
11112 * tic6x-tdep.h: Add include guard.
11113 * target/waitstatus.h: Rename include guard.
11114 * target/wait.h: Rename include guard.
11115 * target/target.h: Rename include guard.
11116 * target/resume.h: Rename include guard.
11117 * target-float.h: Rename include guard.
11118 * stabsread.h: Add include guard.
11119 * rs6000-tdep.h: Add include guard.
11120 * riscv-fbsd-tdep.h: Add include guard.
11121 * regformats/regdef.h: Rename include guard.
11122 * record.h: Rename include guard.
11123 * python/python.h: Rename include guard.
11124 * python/python-internal.h: Rename include guard.
11125 * python/py-stopevent.h: Rename include guard.
11126 * python/py-ref.h: Rename include guard.
11127 * python/py-record.h: Rename include guard.
11128 * python/py-record-full.h: Rename include guard.
11129 * python/py-record-btrace.h: Rename include guard.
11130 * python/py-instruction.h: Rename include guard.
11131 * python/py-events.h: Rename include guard.
11132 * python/py-event.h: Rename include guard.
11133 * procfs.h: Add include guard.
11134 * proc-utils.h: Add include guard.
11135 * p-lang.h: Add include guard.
11136 * or1k-tdep.h: Rename include guard.
11137 * observable.h: Rename include guard.
11138 * nto-tdep.h: Rename include guard.
11139 * nat/x86-linux.h: Rename include guard.
11140 * nat/x86-linux-dregs.h: Rename include guard.
11141 * nat/x86-gcc-cpuid.h: Add include guard.
11142 * nat/x86-dregs.h: Rename include guard.
11143 * nat/x86-cpuid.h: Rename include guard.
11144 * nat/ppc-linux.h: Rename include guard.
11145 * nat/mips-linux-watch.h: Rename include guard.
11146 * nat/linux-waitpid.h: Rename include guard.
11147 * nat/linux-ptrace.h: Rename include guard.
11148 * nat/linux-procfs.h: Rename include guard.
11149 * nat/linux-osdata.h: Rename include guard.
11150 * nat/linux-nat.h: Rename include guard.
11151 * nat/linux-namespaces.h: Rename include guard.
11152 * nat/linux-btrace.h: Rename include guard.
11153 * nat/glibc_thread_db.h: Rename include guard.
11154 * nat/gdb_thread_db.h: Rename include guard.
11155 * nat/gdb_ptrace.h: Rename include guard.
11156 * nat/fork-inferior.h: Rename include guard.
11157 * nat/amd64-linux-siginfo.h: Rename include guard.
11158 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11159 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11160 * nat/aarch64-linux.h: Rename include guard.
11161 * nat/aarch64-linux-hw-point.h: Rename include guard.
11162 * mn10300-tdep.h: Add include guard.
11163 * mips-linux-tdep.h: Add include guard.
11164 * mi/mi-parse.h: Rename include guard.
11165 * mi/mi-out.h: Rename include guard.
11166 * mi/mi-main.h: Rename include guard.
11167 * mi/mi-interp.h: Rename include guard.
11168 * mi/mi-getopt.h: Rename include guard.
11169 * mi/mi-console.h: Rename include guard.
11170 * mi/mi-common.h: Rename include guard.
11171 * mi/mi-cmds.h: Rename include guard.
11172 * mi/mi-cmd-break.h: Rename include guard.
11173 * m2-lang.h: Add include guard.
11174 * location.h: Rename include guard.
11175 * linux-record.h: Rename include guard.
11176 * linux-nat.h: Add include guard.
11177 * linux-fork.h: Add include guard.
11178 * i386-darwin-tdep.h: Rename include guard.
11179 * hppa-linux-offsets.h: Add include guard.
11180 * guile/guile.h: Rename include guard.
11181 * guile/guile-internal.h: Rename include guard.
11182 * gnu-nat.h: Rename include guard.
11183 * gdb-stabs.h: Rename include guard.
11184 * frv-tdep.h: Add include guard.
11185 * f-lang.h: Add include guard.
11186 * event-loop.h: Add include guard.
11187 * darwin-nat.h: Rename include guard.
11188 * cp-abi.h: Rename include guard.
11189 * config/sparc/nm-sol2.h: Rename include guard.
11190 * config/nm-nto.h: Rename include guard.
11191 * config/nm-linux.h: Add include guard.
11192 * config/i386/nm-i386gnu.h: Rename include guard.
11193 * config/djgpp/nl_types.h: Rename include guard.
11194 * config/djgpp/langinfo.h: Rename include guard.
11195 * compile/gcc-cp-plugin.h: Add include guard.
11196 * compile/gcc-c-plugin.h: Add include guard.
11197 * compile/compile.h: Rename include guard.
11198 * compile/compile-object-run.h: Rename include guard.
11199 * compile/compile-object-load.h: Rename include guard.
11200 * compile/compile-internal.h: Rename include guard.
11201 * compile/compile-cplus.h: Rename include guard.
11202 * compile/compile-c.h: Rename include guard.
11203 * common/xml-utils.h: Rename include guard.
11204 * common/x86-xstate.h: Rename include guard.
11205 * common/version.h: Rename include guard.
11206 * common/vec.h: Rename include guard.
11207 * common/tdesc.h: Rename include guard.
11208 * common/selftest.h: Rename include guard.
11209 * common/scoped_restore.h: Rename include guard.
11210 * common/scoped_mmap.h: Rename include guard.
11211 * common/scoped_fd.h: Rename include guard.
11212 * common/safe-iterator.h: Rename include guard.
11213 * common/run-time-clock.h: Rename include guard.
11214 * common/refcounted-object.h: Rename include guard.
11215 * common/queue.h: Rename include guard.
11216 * common/ptid.h: Rename include guard.
11217 * common/print-utils.h: Rename include guard.
11218 * common/preprocessor.h: Rename include guard.
11219 * common/pathstuff.h: Rename include guard.
11220 * common/observable.h: Rename include guard.
11221 * common/netstuff.h: Rename include guard.
11222 * common/job-control.h: Rename include guard.
11223 * common/host-defs.h: Rename include guard.
11224 * common/gdb_wait.h: Rename include guard.
11225 * common/gdb_vecs.h: Rename include guard.
11226 * common/gdb_unlinker.h: Rename include guard.
11227 * common/gdb_unique_ptr.h: Rename include guard.
11228 * common/gdb_tilde_expand.h: Rename include guard.
11229 * common/gdb_sys_time.h: Rename include guard.
11230 * common/gdb_string_view.h: Rename include guard.
11231 * common/gdb_splay_tree.h: Rename include guard.
11232 * common/gdb_setjmp.h: Rename include guard.
11233 * common/gdb_ref_ptr.h: Rename include guard.
11234 * common/gdb_optional.h: Rename include guard.
11235 * common/gdb_locale.h: Rename include guard.
11236 * common/gdb_assert.h: Rename include guard.
11237 * common/filtered-iterator.h: Rename include guard.
11238 * common/filestuff.h: Rename include guard.
11239 * common/fileio.h: Rename include guard.
11240 * common/environ.h: Rename include guard.
11241 * common/common-utils.h: Rename include guard.
11242 * common/common-types.h: Rename include guard.
11243 * common/common-regcache.h: Rename include guard.
11244 * common/common-inferior.h: Rename include guard.
11245 * common/common-gdbthread.h: Rename include guard.
11246 * common/common-exceptions.h: Rename include guard.
11247 * common/common-defs.h: Rename include guard.
11248 * common/common-debug.h: Rename include guard.
11249 * common/cleanups.h: Rename include guard.
11250 * common/buffer.h: Rename include guard.
11251 * common/btrace-common.h: Rename include guard.
11252 * common/break-common.h: Rename include guard.
11253 * cli/cli-utils.h: Rename include guard.
11254 * cli/cli-style.h: Rename include guard.
11255 * cli/cli-setshow.h: Rename include guard.
11256 * cli/cli-script.h: Rename include guard.
11257 * cli/cli-interp.h: Rename include guard.
11258 * cli/cli-decode.h: Rename include guard.
11259 * cli/cli-cmds.h: Rename include guard.
11260 * charset-list.h: Add include guard.
11261 * buildsym-legacy.h: Rename include guard.
11262 * bfin-tdep.h: Add include guard.
11263 * ax.h: Rename include guard.
11264 * arm-linux-tdep.h: Add include guard.
11265 * arm-fbsd-tdep.h: Add include guard.
11266 * arch/xtensa.h: Rename include guard.
11267 * arch/tic6x.h: Add include guard.
11268 * arch/i386.h: Add include guard.
11269 * arch/arm.h: Rename include guard.
11270 * arch/arm-linux.h: Rename include guard.
11271 * arch/arm-get-next-pcs.h: Rename include guard.
11272 * arch/amd64.h: Add include guard.
11273 * arch/aarch64-insn.h: Rename include guard.
11274 * arch-utils.h: Rename include guard.
11275 * annotate.h: Add include guard.
11276 * amd64-darwin-tdep.h: Rename include guard.
11277 * aarch64-linux-tdep.h: Add include guard.
11278 * aarch64-fbsd-tdep.h: Add include guard.
11279 * aarch32-linux-nat.h: Add include guard.
11281 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11283 * macrotab.c (macro_define_internal): New function that
11284 factorizes macro_define_object_internal and macro_define_function
11286 (macro_define_object_internal): Use macro_define_internal.
11287 (macro_define_function): Likewise.
11289 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11291 * macrocmd.c (extract_identifier): Return
11292 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11295 2019-02-06 John Baldwin <jhb@FreeBSD.org>
11297 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11299 2019-02-05 Tom Tromey <tom@tromey.com>
11301 * target.c (target_stack::unpush): Move assertion earlier.
11303 2019-01-30 Tom Tromey <tom@tromey.com>
11306 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
11307 (gdbpy_parse_and_eval): Likewise.
11308 * python/python-internal.h (gdbpy_allow_threads): New class.
11310 2019-01-28 John Baldwin <jhb@FreeBSD.org>
11312 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
11313 (aarch64_fbsd_fpregmap): Move earlier.
11314 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
11315 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11316 instead of individual calls to trad_frame_set_reg_addr.
11317 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11319 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11320 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11321 instead of individual calls to trad_frame_set_reg_addr.
11323 2019-01-28 Alan Hayward <alan.hayward@arm.com>
11325 * CONTRIBUTE: Replace contribution list with wiki link.
11327 2019-01-25 Tom Tromey <tom@tromey.com>
11329 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11331 2019-01-25 Tom Tromey <tom@tromey.com>
11333 * xtensa-linux-nat.c: Fix common/ includes.
11334 * xml-support.h: Fix common/ includes.
11335 * xml-support.c: Fix common/ includes.
11336 * x86-linux-nat.c: Fix common/ includes.
11337 * windows-nat.c: Fix common/ includes.
11338 * varobj.h: Fix common/ includes.
11339 * varobj.c: Fix common/ includes.
11340 * value.c: Fix common/ includes.
11341 * valops.c: Fix common/ includes.
11342 * utils.c: Fix common/ includes.
11343 * unittests/xml-utils-selftests.c: Fix common/ includes.
11344 * unittests/utils-selftests.c: Fix common/ includes.
11345 * unittests/unpack-selftests.c: Fix common/ includes.
11346 * unittests/tracepoint-selftests.c: Fix common/ includes.
11347 * unittests/style-selftests.c: Fix common/ includes.
11348 * unittests/string_view-selftests.c: Fix common/ includes.
11349 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11350 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11351 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11352 * unittests/rsp-low-selftests.c: Fix common/ includes.
11353 * unittests/parse-connection-spec-selftests.c: Fix common/
11355 * unittests/optional-selftests.c: Fix common/ includes.
11356 * unittests/offset-type-selftests.c: Fix common/ includes.
11357 * unittests/observable-selftests.c: Fix common/ includes.
11358 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11359 * unittests/memrange-selftests.c: Fix common/ includes.
11360 * unittests/memory-map-selftests.c: Fix common/ includes.
11361 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11362 * unittests/function-view-selftests.c: Fix common/ includes.
11363 * unittests/environ-selftests.c: Fix common/ includes.
11364 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11365 * unittests/common-utils-selftests.c: Fix common/ includes.
11366 * unittests/cli-utils-selftests.c: Fix common/ includes.
11367 * unittests/array-view-selftests.c: Fix common/ includes.
11368 * ui-file.c: Fix common/ includes.
11369 * tui/tui-io.c: Fix common/ includes.
11370 * tracepoint.h: Fix common/ includes.
11371 * tracepoint.c: Fix common/ includes.
11372 * tracefile-tfile.c: Fix common/ includes.
11373 * top.h: Fix common/ includes.
11374 * top.c: Fix common/ includes.
11375 * thread.c: Fix common/ includes.
11376 * target/waitstatus.h: Fix common/ includes.
11377 * target/waitstatus.c: Fix common/ includes.
11378 * target.h: Fix common/ includes.
11379 * target.c: Fix common/ includes.
11380 * target-memory.c: Fix common/ includes.
11381 * target-descriptions.c: Fix common/ includes.
11382 * symtab.h: Fix common/ includes.
11383 * symfile.c: Fix common/ includes.
11384 * stap-probe.c: Fix common/ includes.
11385 * spu-linux-nat.c: Fix common/ includes.
11386 * sparc-nat.c: Fix common/ includes.
11387 * source.c: Fix common/ includes.
11388 * solib.c: Fix common/ includes.
11389 * solib-target.c: Fix common/ includes.
11390 * ser-unix.c: Fix common/ includes.
11391 * ser-tcp.c: Fix common/ includes.
11392 * ser-pipe.c: Fix common/ includes.
11393 * ser-base.c: Fix common/ includes.
11394 * selftest-arch.c: Fix common/ includes.
11395 * s12z-tdep.c: Fix common/ includes.
11396 * rust-exp.y: Fix common/ includes.
11397 * rs6000-aix-tdep.c: Fix common/ includes.
11398 * riscv-tdep.c: Fix common/ includes.
11399 * remote.c: Fix common/ includes.
11400 * remote-notif.h: Fix common/ includes.
11401 * remote-fileio.h: Fix common/ includes.
11402 * remote-fileio.c: Fix common/ includes.
11403 * regcache.h: Fix common/ includes.
11404 * regcache.c: Fix common/ includes.
11405 * record-btrace.c: Fix common/ includes.
11406 * python/python.c: Fix common/ includes.
11407 * python/py-type.c: Fix common/ includes.
11408 * python/py-inferior.c: Fix common/ includes.
11409 * progspace.h: Fix common/ includes.
11410 * producer.c: Fix common/ includes.
11411 * procfs.c: Fix common/ includes.
11412 * proc-api.c: Fix common/ includes.
11413 * printcmd.c: Fix common/ includes.
11414 * ppc-linux-nat.c: Fix common/ includes.
11415 * parser-defs.h: Fix common/ includes.
11416 * osdata.c: Fix common/ includes.
11417 * obsd-nat.c: Fix common/ includes.
11418 * nat/x86-linux.c: Fix common/ includes.
11419 * nat/x86-linux-dregs.c: Fix common/ includes.
11420 * nat/x86-dregs.h: Fix common/ includes.
11421 * nat/x86-dregs.c: Fix common/ includes.
11422 * nat/ppc-linux.c: Fix common/ includes.
11423 * nat/mips-linux-watch.h: Fix common/ includes.
11424 * nat/mips-linux-watch.c: Fix common/ includes.
11425 * nat/linux-waitpid.c: Fix common/ includes.
11426 * nat/linux-ptrace.h: Fix common/ includes.
11427 * nat/linux-ptrace.c: Fix common/ includes.
11428 * nat/linux-procfs.c: Fix common/ includes.
11429 * nat/linux-personality.c: Fix common/ includes.
11430 * nat/linux-osdata.c: Fix common/ includes.
11431 * nat/linux-namespaces.c: Fix common/ includes.
11432 * nat/linux-btrace.h: Fix common/ includes.
11433 * nat/linux-btrace.c: Fix common/ includes.
11434 * nat/fork-inferior.c: Fix common/ includes.
11435 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11436 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11437 * nat/aarch64-linux.c: Fix common/ includes.
11438 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11439 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11440 * namespace.h: Fix common/ includes.
11441 * mips-linux-tdep.c: Fix common/ includes.
11442 * minsyms.c: Fix common/ includes.
11443 * mi/mi-parse.h: Fix common/ includes.
11444 * mi/mi-main.c: Fix common/ includes.
11445 * mi/mi-cmd-env.c: Fix common/ includes.
11446 * memrange.h: Fix common/ includes.
11447 * memattr.c: Fix common/ includes.
11448 * maint.h: Fix common/ includes.
11449 * maint.c: Fix common/ includes.
11450 * main.c: Fix common/ includes.
11451 * machoread.c: Fix common/ includes.
11452 * location.c: Fix common/ includes.
11453 * linux-thread-db.c: Fix common/ includes.
11454 * linux-nat.c: Fix common/ includes.
11455 * linux-fork.c: Fix common/ includes.
11456 * inline-frame.c: Fix common/ includes.
11457 * infrun.c: Fix common/ includes.
11458 * inflow.c: Fix common/ includes.
11459 * inferior.h: Fix common/ includes.
11460 * inferior.c: Fix common/ includes.
11461 * infcmd.c: Fix common/ includes.
11462 * inf-ptrace.c: Fix common/ includes.
11463 * inf-child.c: Fix common/ includes.
11464 * ia64-linux-nat.c: Fix common/ includes.
11465 * i387-tdep.c: Fix common/ includes.
11466 * i386-tdep.c: Fix common/ includes.
11467 * i386-linux-tdep.c: Fix common/ includes.
11468 * i386-linux-nat.c: Fix common/ includes.
11469 * i386-go32-tdep.c: Fix common/ includes.
11470 * i386-fbsd-tdep.c: Fix common/ includes.
11471 * i386-fbsd-nat.c: Fix common/ includes.
11472 * guile/scm-type.c: Fix common/ includes.
11473 * guile/guile.c: Fix common/ includes.
11474 * go32-nat.c: Fix common/ includes.
11475 * gnu-nat.c: Fix common/ includes.
11476 * gdbthread.h: Fix common/ includes.
11477 * gdbarch-selftests.c: Fix common/ includes.
11478 * gdb_usleep.c: Fix common/ includes.
11479 * gdb_select.h: Fix common/ includes.
11480 * gdb_bfd.c: Fix common/ includes.
11481 * gcore.c: Fix common/ includes.
11482 * fork-child.c: Fix common/ includes.
11483 * findvar.c: Fix common/ includes.
11484 * fbsd-nat.c: Fix common/ includes.
11485 * event-top.c: Fix common/ includes.
11486 * event-loop.c: Fix common/ includes.
11487 * dwarf2read.c: Fix common/ includes.
11488 * dwarf2loc.c: Fix common/ includes.
11489 * dwarf2-frame.c: Fix common/ includes.
11490 * dwarf-index-cache.c: Fix common/ includes.
11491 * dtrace-probe.c: Fix common/ includes.
11492 * disasm-selftests.c: Fix common/ includes.
11493 * defs.h: Fix common/ includes.
11494 * csky-tdep.c: Fix common/ includes.
11495 * cp-valprint.c: Fix common/ includes.
11496 * cp-support.h: Fix common/ includes.
11497 * cp-support.c: Fix common/ includes.
11498 * corelow.c: Fix common/ includes.
11499 * completer.h: Fix common/ includes.
11500 * completer.c: Fix common/ includes.
11501 * compile/compile.c: Fix common/ includes.
11502 * compile/compile-loc2c.c: Fix common/ includes.
11503 * compile/compile-cplus-types.c: Fix common/ includes.
11504 * compile/compile-cplus-symbols.c: Fix common/ includes.
11505 * command.h: Fix common/ includes.
11506 * cli/cli-dump.c: Fix common/ includes.
11507 * cli/cli-cmds.c: Fix common/ includes.
11508 * charset.c: Fix common/ includes.
11509 * build-id.c: Fix common/ includes.
11510 * btrace.h: Fix common/ includes.
11511 * btrace.c: Fix common/ includes.
11512 * breakpoint.h: Fix common/ includes.
11513 * breakpoint.c: Fix common/ includes.
11515 (enum agent_op): Fix common/ includes.
11516 * ax-general.c (struct aop_map): Fix common/ includes.
11517 * ax-gdb.c: Fix common/ includes.
11518 * auxv.c: Fix common/ includes.
11519 * auto-load.c: Fix common/ includes.
11520 * arm-tdep.c: Fix common/ includes.
11521 * arch/riscv.c: Fix common/ includes.
11522 * arch/ppc-linux-common.c: Fix common/ includes.
11523 * arch/i386.c: Fix common/ includes.
11524 * arch/arm.c: Fix common/ includes.
11525 * arch/arm-linux.c: Fix common/ includes.
11526 * arch/arm-get-next-pcs.c: Fix common/ includes.
11527 * arch/amd64.c: Fix common/ includes.
11528 * arch/aarch64.c: Fix common/ includes.
11529 * arch/aarch64-insn.c: Fix common/ includes.
11530 * arch-utils.c: Fix common/ includes.
11531 * amd64-windows-tdep.c: Fix common/ includes.
11532 * amd64-tdep.c: Fix common/ includes.
11533 * amd64-sol2-tdep.c: Fix common/ includes.
11534 * amd64-obsd-tdep.c: Fix common/ includes.
11535 * amd64-nbsd-tdep.c: Fix common/ includes.
11536 * amd64-linux-tdep.c: Fix common/ includes.
11537 * amd64-linux-nat.c: Fix common/ includes.
11538 * amd64-fbsd-tdep.c: Fix common/ includes.
11539 * amd64-fbsd-nat.c: Fix common/ includes.
11540 * amd64-dicos-tdep.c: Fix common/ includes.
11541 * amd64-darwin-tdep.c: Fix common/ includes.
11542 * agent.c: Fix common/ includes.
11543 * ada-lang.h: Fix common/ includes.
11544 * ada-lang.c: Fix common/ includes.
11545 * aarch64-tdep.c: Fix common/ includes.
11547 2019-01-25 Tom Tromey <tom@tromey.com>
11549 * common/create-version.sh: Use common/version.h.
11551 2019-01-24 Pedro Alves <palves@redhat.com>
11553 * infrun.c (signal_stop, signal_print, signal_program)
11554 (signal_catch, signal_pass): Now arrays instead of pointers.
11555 (update_signals_program_target, do_target_resume)
11556 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
11557 * linux-nat.c (linux_nat_target::pass_signals)
11558 (linux_nat_target::create_inferior, linux_nat_target::attach):
11560 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
11561 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
11562 * procfs.c (procfs_target::pass_signals): Adjust.
11563 * record-full.c (record_full_target::resume): Adjust.
11564 * remote.c (remote_target::pass_signals)
11565 (remote_target::program_signals): Adjust.
11566 * target-debug.h (target_debug_print_signals): Now takes a
11567 gdb::array_view as parameter. Adjust.
11568 * target.h (target_ops) <pass_signals, program_signals>: Replace
11569 pointer and length parameters with gdb::array_view.
11570 (target_pass_signals, target_program_signals): Likewise.
11571 * target-delegates.c: Regenerate.
11573 2019-01-24 Pedro Alves <palves@redhat.com>
11575 * common/forward-scope-exit.h
11576 (forward_scope_exit::forward_scope_exit): Pass arguments to
11577 m_bind_function directly, instead of creating a std::bind and
11580 2019-01-24 Alan Hayward <alan.hayward@arm.com>
11582 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11583 for static members.
11584 (pass_in_v_vfp_candidate): Likewise.
11586 2019-01-23 Tom Tromey <tom@tromey.com>
11587 Pedro Alves <palves@redhat.com>
11589 * regcache.c (class regcache_invalidator): Remove.
11590 (regcache::raw_write): Use make_scope_exit.
11592 2019-01-23 Tom Tromey <tom@tromey.com>
11594 * ui-out.h (class ui_out_emit_type): Update comment.
11596 2019-01-23 Tom Tromey <tom@tromey.com>
11598 * infrun.c (fetch_inferior_event): Update comment.
11600 2019-01-23 Tom Tromey <tom@tromey.com>
11601 Pedro Alves <palves@redhat.com>
11603 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
11605 (fetch_inferior_event): Use SCOPE_EXIT.
11608 2019-01-23 Tom Tromey <tom@tromey.com>
11609 Pedro Alves <palves@redhat.com>
11611 * infrun.c (disable_thread_events): Delete.
11612 (stop_all_threads): Use SCOPE_EXIT.
11614 2019-01-23 Tom Tromey <tom@tromey.com>
11615 Pedro Alves <palves@redhat.com>
11617 * symfile.c: Include forward-scope-exit.h.
11618 (clear_symtab_users_cleanup): Replace forward declaration with
11619 a FORWARD_SCOPE_EXIT.
11620 (syms_from_objfile_1): Use the forward_scope_exit and
11621 gdb::optional instead of cleanup_function.
11622 (reread_symbols): Use the forward_scope_exit instead of
11624 (clear_symtab_users_cleanup): Remove function.
11626 2019-01-23 Tom Tromey <tom@tromey.com>
11627 Pedro Alves <palves@redhat.com>
11629 * linux-nat.c: Include scope-exit.h.
11630 (cleanup_target_stop): Remove.
11631 (linux_nat_target::static_tracepoint_markers_by_strid): Use
11634 2019-01-23 Tom Tromey <tom@tromey.com>
11635 Pedro Alves <palves@redhat.com>
11637 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
11638 (call_function_by_hand_dummy): Use SCOPE_EXIT.
11640 2019-01-23 Tom Tromey <tom@tromey.com>
11641 Andrew Burgess <andrew.burgess@embecosm.com>
11642 Pedro Alves <palves@redhat.com>
11644 * infrun.c (fetch_inferior_event): Use scope_exit.
11645 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
11646 * top.c (execute_command): Use scope_exit.
11647 * breakpoint.c (bpstat_do_actions): Use scope_exit.
11648 * utils.c (do_bpstat_clear_actions_cleanup)
11649 (make_bpstat_clear_actions_cleanup): Remove.
11651 2019-01-23 Tom Tromey <tom@tromey.com>
11652 Pedro Alves <palves@redhat.com>
11654 * infrun.c: Include "common/scope-exit.h"
11655 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
11656 (wait_for_inferior): Use SCOPE_EXIT.
11657 (fetch_inferior_event): Use scope_exit.
11659 2019-01-23 Tom Tromey <tom@tromey.com>
11660 Pedro Alves <palves@redhat.com>
11662 * breakpoint.c (create_breakpoint): Remove cleanup.
11664 2019-01-23 Tom Tromey <tom@tromey.com>
11665 Andrew Burgess <andrew.burgess@embecosm.com>
11666 Pedro Alves <palves@redhat.com>
11668 2019-01-23 Pedro Alves <palves@redhat.com>
11670 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
11672 2019-01-23 Pedro Alves <palves@redhat.com>
11673 Andrew Burgess <andrew.burgess@embecosm.com>
11675 * gdbthread.h: Include "common/forward-scope-exit.h".
11676 (scoped_finish_thread_state): Redefine custom class in terms of
11677 forward_scope_exit.
11679 2019-01-23 Pedro Alves <palves@redhat.com>
11680 Andrew Burgess <andrew.burgess@embecosm.com>
11682 * common/forward-scope-exit.h: New file.
11684 2019-01-23 Pedro Alves <palves@redhat.com>
11685 Andrew Burgess <andrew.burgess@embecosm.com>
11686 Tom Tromey <tom@tromey.com>
11688 * common/scope-exit.h: New file.
11690 2019-01-23 Pedro Alves <palves@redhat.com>
11692 * common/preprocessor.h (ESC): Rename to ...
11693 (ESC_PARENS): ... this.
11694 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
11695 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
11697 2019-01-23 Tom Tromey <tom@tromey.com>
11699 * language.h (class scoped_switch_to_sym_language_if_auto):
11700 Initialize m_lang in both cases.
11702 2019-01-23 Alan Hayward <alan.hayward@arm.com>
11704 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
11707 2019-01-22 Tom Tromey <tom@tromey.com>
11709 * corelow.c: Do not include sys/file.h.
11711 2019-01-22 Tom Tromey <tom@tromey.com>
11713 * tui/tui-wingeneral.h: Include gdb_curses.h.
11715 2019-01-22 Tom Tromey <tom@tromey.com>
11717 * source-cache.h (class source_cache) <get_source_lines,
11718 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
11720 2019-01-22 Tom Tromey <tom@tromey.com>
11722 * remote-fileio.h (struct remote_target): Declare.
11724 2019-01-22 Tom Tromey <tom@tromey.com>
11726 * python/py-arch.c: Do not include py-ref.h.
11727 * python/py-bpevent.c: Do not include py-ref.h.
11728 * python/py-cmd.c: Do not include py-ref.h.
11729 * python/py-continueevent.c: Do not include py-ref.h.
11730 * python/py-event.h: Do not include py-ref.h.
11731 * python/py-evtregistry.c: Do not include py-ref.h.
11732 * python/py-finishbreakpoint.c: Do not include py-ref.h.
11733 * python/py-frame.c: Do not include py-ref.h.
11734 * python/py-framefilter.c: Do not include py-ref.h.
11735 * python/py-function.c: Do not include py-ref.h.
11736 * python/py-infevents.c: Do not include py-ref.h.
11737 * python/py-linetable.c: Do not include py-ref.h.
11738 * python/py-objfile.c: Do not include py-ref.h.
11739 * python/py-param.c: Do not include py-ref.h.
11740 * python/py-prettyprint.c: Do not include py-ref.h.
11741 * python/py-progspace.c: Do not include py-ref.h.
11742 * python/py-symbol.c: Do not include py-ref.h.
11743 * python/py-symtab.c: Do not include py-ref.h.
11744 * python/py-type.c: Do not include py-ref.h.
11745 * python/py-unwind.c: Do not include py-ref.h.
11746 * python/py-utils.c: Do not include py-ref.h.
11747 * python/py-value.c: Do not include py-ref.h.
11748 * python/py-varobj.c: Do not include py-ref.h.
11749 * python/py-xmethods.c: Do not include py-ref.h.
11750 * python/python.c: Do not include py-ref.h.
11751 * varobj.c: Do not include py-ref.h.
11753 2019-01-22 Tom Tromey <tom@tromey.com>
11755 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
11756 keyword for bcache.
11758 2019-01-22 Tom Tromey <tom@tromey.com>
11760 * compile/compile-cplus-types.c: Remove a comment by #include.
11762 2019-01-22 Tom Tromey <tom@tromey.com>
11764 * compile/gcc-c-plugin.h: Include compile-internal.h.
11766 2019-01-22 Tom Tromey <tom@tromey.com>
11768 * stabsread.c (EXTERN): Do not define.
11769 (symnum, next_symbol_text_func, processing_gcc_compilation)
11770 (within_function, global_sym_chain, global_stabs)
11771 (previous_stab_code, this_object_header_files)
11772 (n_this_object_header_files)
11773 (n_allocated_this_object_header_files): Define.
11774 * stabsread.h (EXTERN): Never define. Use "extern".
11776 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11778 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
11781 2019-01-21 Tom Tromey <tom@tromey.com>
11783 * ui-out.c: Fix includes.
11784 * tui/tui-source.c: Fix includes.
11785 * target.c: Fix includes.
11786 * remote.c: Fix includes.
11787 * regcache.c: Fix includes.
11788 * python/py-block.c: Fix includes.
11789 * printcmd.c: Fix includes.
11790 * or1k-tdep.c: Fix includes.
11791 * mi/mi-main.c: Fix includes.
11792 * m32r-tdep.c: Fix includes.
11793 * csky-tdep.c: Fix includes.
11794 * compile/compile-cplus-types.c: Fix includes.
11795 * cli/cli-interp.c: Fix includes.
11797 2019-01-21 Alan Hayward <alan.hayward@arm.com>
11799 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11802 2019-01-16 Tom Tromey <tom@tromey.com>
11804 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11806 (struct objfile) <msymbols_range>: Move from top level.
11807 <msymbols>: New method.
11808 (class objfile_msymbols): Remove.
11809 * symtab.c (default_collect_symbol_completion_matches_break_on):
11811 * symmisc.c (dump_msymbols): Update.
11812 * stabsread.c (scan_file_globals): Update.
11813 * objc-lang.c (info_selectors_command, info_classes_command)
11814 (find_methods): Update.
11815 * minsyms.c (find_solib_trampoline_target): Update.
11816 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11817 * coffread.c (coff_symfile_read): Update.
11818 * ada-lang.c (ada_lookup_simple_minsym)
11819 (ada_collect_symbol_completion_matches): Update.
11821 2019-01-16 Tom Tromey <tom@tromey.com>
11823 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11824 type. Remove no-argument constructor.
11825 <iterator::operator++>: Simplify.
11827 <end>: Use minimal_symbol_count.
11829 2019-01-16 Tom Tromey <tom@tromey.com>
11831 * objfiles.h (struct objfile) <psymtabs>: New method.
11832 (class objfile_psymtabs): Remove.
11833 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11835 <range>: New method.
11836 (require_partial_symbols): Change return type.
11837 * psymtab.c (require_partial_symbols)
11838 (psym_expand_symtabs_matching): Update.
11839 * mdebugread.c (parse_partial_symbols): Update.
11840 * dbxread.c (dbx_end_psymtab): Update.
11842 2019-01-15 Tom Tromey <tom@tromey.com>
11844 * symtab.c (lookup_objfile_from_block)
11845 (lookup_symbol_in_objfile_symtabs)
11846 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11847 (find_line_symtab, info_sources_command)
11848 (default_collect_symbol_completion_matches_break_on)
11849 (make_source_files_completion_list): Update.
11850 * symmisc.c (print_objfile_statistics, dump_objfile)
11851 (maintenance_print_symbols, maintenance_info_symtabs)
11852 (maintenance_check_symtabs, maintenance_info_line_tables):
11854 * source.c (select_source_symtab)
11855 (forget_cached_source_info_for_objfile): Update.
11856 * objfiles.h (class objfile_compunits): Remove.
11857 (struct objfile) <compunits_range>: New typedef.
11858 (compunits): New method.
11859 * objfiles.c (objfile_relocate1): Update.
11860 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11861 * maint.c (count_symtabs_and_blocks): Update.
11862 * linespec.c (iterate_over_all_matching_symtabs): Update.
11863 * cp-support.c (add_symbol_overload_list_qualified): Update.
11864 * coffread.c (coff_symtab_read): Update.
11865 * ada-lang.c (add_nonlocal_symbols)
11866 (ada_collect_symbol_completion_matches)
11867 (ada_add_global_exceptions): Update.
11869 2019-01-15 Tom Tromey <tom@tromey.com>
11871 * progspace.h (program_space) <objfiles_safe_range>: New
11873 <objfiles_safe>: New method.
11874 * objfiles.h (class all_objfiles_safe): Remove.
11875 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11876 * jit.c (jit_inferior_exit_hook): Update.
11878 2019-01-17 Tom Tromey <tom@tromey.com>
11880 * progspace.h (program_space) <objfiles_range>: New typedef.
11881 <objfiles>: New method.
11882 <objfiles_head>: Rename from objfiles.
11883 (object_files): Update.
11884 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11885 * guile/scm-pretty-print.c
11886 (ppscm_find_pretty_printer_from_objfiles): Update.
11887 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11888 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11890 * python/py-progspace.c (pspy_get_objfiles): Update.
11891 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11893 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11894 (objfpy_lookup_objfile_by_build_id): Update.
11895 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11896 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11898 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11899 (expand_symtab_containing_pc, lookup_objfile_from_block)
11900 (lookup_static_symbol, basic_lookup_transparent_type)
11901 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11902 (find_line_symtab, info_sources_command)
11903 (default_collect_symbol_completion_matches_break_on)
11904 (make_source_files_completion_list, find_main_name): Update.
11905 * symmisc.c (print_symbol_bcache_statistics)
11906 (print_objfile_statistics, maintenance_print_symbols)
11907 (maintenance_print_msymbols, maintenance_print_objfiles)
11908 (maintenance_info_symtabs, maintenance_check_symtabs)
11909 (maintenance_expand_symtabs, maintenance_info_line_tables):
11911 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11912 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11913 (map_overlay_command, unmap_overlay_command)
11914 (simple_overlay_update, expand_symtabs_matching)
11915 (map_symbol_filenames): Update.
11916 * symfile-debug.c (set_debug_symfile): Update.
11917 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11919 * source.c (select_source_symtab, forget_cached_source_info):
11921 * solib.c (solib_read_symbols): Update.
11922 * solib-spu.c (append_ocl_sos): Update.
11923 * psymtab.c (maintenance_print_psymbols)
11924 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11925 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11926 * printcmd.c (info_symbol_command): Update.
11927 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
11929 * objfiles.h (class all_objfiles): Remove.
11930 * objfiles.c (have_partial_symbols, have_full_symbols)
11931 (have_minimal_symbols, qsort_cmp, update_section_map)
11932 (shared_objfile_contains_address_p)
11933 (default_iterate_over_objfiles_in_search_order): Update.
11934 * objc-lang.c (info_selectors_command, info_classes_command)
11935 (find_methods): Update.
11936 * minsyms.c (find_solib_trampoline_target): Update.
11937 * maint.c (maintenance_info_sections)
11938 (maintenance_translate_address, count_symtabs_and_blocks):
11940 * main.c (captured_main_1): Update.
11941 * linux-thread-db.c (try_thread_db_load_from_pdir)
11942 (has_libpthread): Update.
11943 * linespec.c (iterate_over_all_matching_symtabs)
11944 (search_minsyms_for_name): Update.
11945 * jit.c (jit_find_objf_with_entry_addr): Update.
11946 * hppa-tdep.c (find_unwind_entry)
11947 (hppa_lookup_stub_minimal_symbol): Update.
11948 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
11950 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11951 (elf_gnu_ifunc_resolve_by_got): Update.
11952 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
11953 * dwarf-index-write.c (save_gdb_index_command): Update.
11954 * cp-support.c (add_symbol_overload_list_qualified): Update.
11955 * breakpoint.c (create_overlay_event_breakpoint)
11956 (create_longjmp_master_breakpoint)
11957 (create_std_terminate_master_breakpoint)
11958 (create_exception_master_breakpoint): Update.
11959 * blockframe.c (find_pc_partial_function): Update.
11960 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
11961 (ada_collect_symbol_completion_matches)
11962 (ada_add_global_exceptions): Update.
11964 2019-01-17 Tom Tromey <tom@tromey.com>
11966 * solib-target.c (lm_info_target_p): Remove typedef. Don't
11968 (solib_target_parse_libraries): Change return type.
11969 (library_list_start_segment, library_list_start_section)
11970 (library_list_end_library, library_list_start_library); Update.
11971 (solib_target_free_library_list): Remove.
11972 (solib_target_parse_libraries): Remove cleanup. Change return
11974 (solib_target_current_sos): Update.
11976 2019-01-17 Tom Tromey <tromey@bapiya>
11978 * valprint.c: Replace "the the" with "the".
11979 * symtab.c: Replace "the the" with "the".
11980 * solib.c: Replace "the the" with "the".
11981 * solib-dsbt.c: Replace "the the" with "the".
11982 * linespec.c: Replace "the the" with "the".
11983 * dwarf2loc.h: Replace "the the" with "the".
11984 * amd64-windows-tdep.c: Replace "the the" with "the".
11985 * aarch64-tdep.c: Replace "the the" with "the".
11987 2019-01-16 Keith Seitz <keiths@redhat.com>
11990 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
11991 <builder>: Rename to ..
11992 <m_builder>: ... this and make private.
11993 (dwarf2_cu::get_builder): New method. Change all users of
11994 `builder' to use this method.
11995 (dwarf2_start_symtab): Move to ...
11996 (dwarf2_cu::start_symtab): ... here. Update all callers
11997 (setup_type_unit_groups): Move to ...
11998 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12000 (dwarf2_cu::reset_builder): New method.
12001 (process_full_compunit, process_full_type_unit): Use
12002 dwarf2_cu::reset_builder.
12003 (follow_die_offset): Record the ancestor CU if it is different
12004 from the followed DIE's CU.
12005 (follow_die_sig_1): Likewise.
12007 2019-01-15 Tom Tromey <tom@tromey.com>
12009 * remote.c (class remote_state) <buf>: Now a char_vector.
12010 <buf_size>: Remove.
12011 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12013 (remote_target::getpkt_or_notif_sane_1)
12014 (remote_target::getpkt_sane)
12015 (remote_target::getpkt_or_notif_sane): Likewise.
12016 (class remote_target) <putpkt>: New overload.
12017 (remote_target::read_frame): Change type of "buf_p". Remove
12018 sizeof_p parameter.
12019 (packet_ok): New overload.
12020 (packet_check_result): New overload.
12023 2019-01-14 Tom Tromey <tom@tromey.com>
12025 * remote-notif.c (handle_notification, remote_notif_ack)
12026 (remote_notif_parse): Make "buf" const.
12027 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12029 (remote_notif_parse, remote_notif_ack, handle_notification):
12031 * remote.c (remote_notif_stop_parse): Make "buf" const.
12032 (remote_target::remote_parse_stop_reply): Make "buf" const.
12033 (remote_notif_stop_ack): Make "buf" const.
12035 2019-01-14 Tom Tromey <tom@tromey.com>
12037 * remote.c (remote_console_output): Make parameter const.
12039 2019-01-14 Tom Tromey <tom@tromey.com>
12041 * target-debug.h (target_debug_print_signals): Constify.
12042 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12043 * procfs.c (procfs_target::pass_signals): Update.
12044 * linux-nat.c (linux_nat_target::pass_signals): Update.
12045 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12046 * target-delegates.c: Rebuild.
12047 * remote.c (remote_target::program_signals): Update.
12048 (remote_target::pass_signals): Update.
12049 * target.c (target_pass_signals): Constify argument.
12050 (target_program_signals): Likewise.
12051 * target.h (struct target_ops) <pass_signals, program_signals>:
12053 (target_pass_signals, target_program_signals): Constify argument.
12055 2019-01-14 Tom Tromey <tom@tromey.com>
12058 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12060 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12062 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12064 * rs6000-tdep.c: Include reggroups.h.
12065 (IS_V_ALIAS_PSEUDOREG): Define.
12066 (rs6000_register_name): Return names for the "vX" aliases.
12067 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12068 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
12069 aliases. Call default_register_reggroup_p for all other
12071 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12073 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12074 Handle "vX" aliases.
12075 (v_alias_pseudo_register_collect): New function.
12076 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12077 (rs6000_gdbarch_init): Initialize "vX" aliases as
12078 pseudo-registers. Restore registration of
12079 rs6000_pseudo_register_reggroup_p with
12080 set_tdesc_pseudo_register_reggroup_p.
12082 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
12084 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
12085 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
12086 set_gdbarch_num_pseudo_regs.
12088 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12090 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
12091 Remove arg prefixname, add do_set and do_show.
12092 Add member functions set_list and show_list.
12093 * cli/cli-style.c (class cli_style_option): Update accordingly.
12094 (style_set_list): Move to file scope.
12095 (style_show_list): Likewise.
12096 (set_style): Call help_list.
12097 (show_style): Call cmd_show_list.
12098 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12099 Update to use the new macro.
12101 2019-10-12 Joel Brobecker <brobecker@adacore.com>
12103 * ada-lang.c (_initialize_ada_language): Expand the help text
12104 for the "catch exception" command.
12106 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12108 * symtab.c (matching_obj_sections): Initialize obj,
12109 declare it closer to its usage.
12111 2019-01-10 Tom Tromey <tom@tromey.com>
12113 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12114 (basic_inf_threads_range): Remove.
12115 (inf_threads_range, inf_non_exited_threads_range)
12116 (safe_inf_threads_range): Use next_adapter.
12118 2019-01-10 Keith Seitz <keiths@redhat.com>
12122 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12123 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12125 2019-01-10 Keith Seitz <keiths@redhat.com>
12129 * dictionary.c (pending_to_vector): Remove.
12130 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12131 Remove _1 suffix, replacing functions of the same name. Update
12133 (dict_create_hashed, dict_create_hashed_expandable)
12134 (dict_create_linear, dict_create_linear_expandable, dict_free)
12135 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12136 Make functions static.
12138 2019-01-10 Keith Seitz <keiths@redhat.com>
12142 * dictionary.h (struct dictionary): Replace declaration with
12144 (dict_create_hashed, dict_create_hashed_expandable)
12145 (dict_create_linear, dict_create_linear_expandable)
12146 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12147 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12148 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12149 taking multidictionary argument.
12150 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12151 * block.h (struct block) <dict>: Change to multidictionary
12152 and rename `multidict'.
12153 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12154 symmisc.c: Update all dictionary references to multidictionary.
12156 2019-01-10 Keith Seitz <keiths@redhat.com>
12160 * dictionary.c: Include unordered_map.
12161 (pending_to_vector): New function.
12162 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12163 Rewrite the non-"_1" functions to take vector instead
12165 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12166 "new" _1 versions of the same name.
12167 (multidictionary): Define.
12168 (std::hash<enum language): New definition.
12169 (collate_pending_symbols_by_language, mdict_create_hashed)
12170 (mdict_create_hashed_expandable, mdict_create_linear)
12171 (mdict_create_linear_expandable, mdict_free)
12172 (find_language_dictionary, create_new_language_dictionary)
12173 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12174 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12175 (mdict_size, mdict_empty): New functions.
12176 * dictionary.h (mdict_iterator): Define.
12178 2019-01-10 Pedro Alves <palves@redhat.com>
12180 * breakpoint.c (read_uploaded_action)
12181 (create_tracepoint_from_upload): Adjust to use
12182 gdb::unique_xmalloc_ptr.
12183 * ctf.c (ctf_write_uploaded_tp):
12184 (SET_ARRAY_FIELD): Use emplace_back.
12185 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
12186 * tracefile-tfile.c (tfile_write_uploaded_tp):
12187 * tracepoint.c (parse_tracepoint_definition): Adjust to use
12188 gdb::unique_xmalloc_ptr.
12189 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
12190 at_string, cond_string, cmd_strings>: Replace char pointers
12191 with gdb::unique_xmalloc_ptr.
12193 2019-01-10 Pedro Alves <palves@redhat.com>
12195 * solib-target.c (library_list_start_library): Don't xstrdup name.
12197 2019-01-10 Pedro Alves <palves@redhat.com>
12199 * mdebugread.c (parse_partial_symbols): Use
12200 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
12202 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12204 * linux-fork.c (scoped_switch_fork_info)
12205 <~scoped_switch_fork_info>: Fix incorrect variable name.
12207 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12209 * linux-fork.c (scoped_switch_fork_info)
12210 <scoped_switch_fork_info>: Make explicit.
12211 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12213 2019-01-10 Tom Tromey <tom@tromey.com>
12215 * objfiles.h (objfile::reset_psymtabs): Update.
12216 * objfiles.c (objfile::objfile): Update.
12217 * psymtab.h (psymtab_storage::obstack): Update.
12218 (psymtab_storage::m_obstack): Use gdb::optional.
12219 (class psymtab_storage): Update comment. Remove objfile
12221 * psymtab.c (psymtab_storage::psymtab_storage): Update.
12223 2019-01-10 Tom Tromey <tom@tromey.com>
12225 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
12226 <free_psymtabs>: Now private.
12227 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
12228 (allocate_psymtab): Use new method.
12230 2019-01-10 Tom Tromey <tom@tromey.com>
12232 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
12233 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
12234 * mdebugread.c (parse_partial_symbols): Use
12235 allocate_dependencies.
12236 * dwarf2read.c (dwarf2_create_include_psymtab): Use
12237 allocate_dependencies.
12238 (process_psymtab_comp_unit_reader)
12239 (build_type_psymtab_dependencies): Likewise.
12240 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12242 2019-01-10 Tom Tromey <tom@tromey.com>
12244 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12245 PSYMBOL_SET_LANGUAGE.
12246 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
12248 2019-01-10 Tom Tromey <tom@tromey.com>
12250 * psymtab.h (psymtab_storage::obstack): New method.
12251 <m_obstack>: Rename from obstack; now private.
12252 * psymtab.c (psymtab_storage): Update.
12253 * dwarf2read.c (create_addrmap_from_index)
12254 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
12257 2019-01-10 Tom Tromey <tom@tromey.com>
12259 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
12260 * objfiles.h (objfile::reset_psymtabs): New method.
12262 2019-01-10 Tom Tromey <tom@tromey.com>
12264 * symmisc.c (print_symbol_bcache_statistics): Update.
12265 (print_objfile_statistics): Update.
12266 * symfile.c (reread_symbols): Update.
12267 * psymtab.h (class psymtab_storage): New.
12268 * psymtab.c (psymtab_storage): New constructor.
12269 (~psymtab_storage): New destructor.
12270 (require_partial_symbols): Update.
12271 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12272 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12273 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12274 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12275 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12276 (start_psymtab_common, end_psymtab_common)
12277 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12278 (allocate_psymtab): Update.
12279 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12281 (dump_psymtab_addrmap, maintenance_print_psymbols)
12282 (maintenance_check_psymtabs): Update.
12283 (class objfile_psymtabs): Move to objfiles.h.
12284 * psympriv.h (discard_psymtab): Now inline.
12285 (psymtab_discarder::psymtab_discarder): Update.
12286 (psymtab_discarder::~psymtab_discarder): Update.
12287 (ALL_OBJFILE_PSYMTABS): Rewrite.
12288 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12289 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12291 <partial_symtabs>: New field.
12292 (class objfile_psymtabs): Move from psymtab.h. Update.
12293 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12295 (objfile::~objfile): Don't destroy psymbol_cache.
12296 * mdebugread.c (parse_partial_symbols): Update.
12297 * dwarf2read.c (create_addrmap_from_index)
12298 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12299 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12300 (add_partial_subprogram, dwarf2_ranges_read): Update.
12301 * dwarf-index-write.c (write_address_map)
12302 (write_one_signatured_type, recursively_write_psymbols)
12303 (class debug_names, class debug_names, write_psymtabs_to_index):
12306 2019-01-10 Tom Tromey <tom@tromey.com>
12308 * symtab.h (SYMBOL_SET_NAMES): Update.
12309 (symbol_set_names): Update.
12310 (MSYMBOL_SET_NAMES): Update.
12311 * symtab.c (symbol_set_names): Change argument to be an
12312 objfile_per_bfd_storage.
12313 * psymtab.c (add_psymbol_to_bcache): Update.
12314 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
12316 2019-01-10 Tom Tromey <tom@tromey.com>
12318 * symtab.c (create_demangled_names_hash): Change argument to be an
12319 objfile_per_bfd_storage.
12320 (symbol_set_names): Update.
12322 2019-01-10 Tom Tromey <tom@tromey.com>
12324 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12326 * psymtab.c (init_psymbol_list): Do nothing if already called.
12327 * psympriv.h (init_psymbol_list): Add comment.
12328 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12330 * dbxread.c (dbx_symfile_read): Unconditionally call
12333 2019-01-10 Tom Tromey <tom@tromey.com>
12335 * xcoffread.c (scan_xcoff_symtab): Update.
12336 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12338 * mdebugread.c (parse_partial_symbols)
12339 (handle_psymbol_enumerators): Update.
12340 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12341 * dbxread.c (read_dbx_symtab): Update.
12342 * psympriv.h (psymbol_placement): New enum.
12343 (add_psymbol_to_list): Update.
12345 2019-01-10 Tom Tromey <tom@tromey.com>
12347 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12348 static_psymbols parameters.
12349 (scan_xcoff_symtab): Update.
12350 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12351 static_psymbols parameters.
12352 * psympriv.h (start_psymtab_common): Update.
12353 * mdebugread.c (parse_partial_symbols): Update.
12354 * dwarf2read.c (create_partial_symtab): Update.
12355 * dbxread.c (read_dbx_symtab): Update.
12356 (start_psymtab): Remove global_psymbols and static_psymbols
12359 2019-01-10 Tom Tromey <tom@tromey.com>
12361 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12362 * psymtab.c (allocate_psymtab): Add comment.
12363 * psympriv.h (allocate_psymtab): Add comment.
12364 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12366 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12368 2019-01-10 Tom Tromey <tom@tromey.com>
12370 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12372 * mipsread.c: Include mdebugread.h.
12373 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12375 * elfread.c: Include mdebugread.h.
12377 2019-01-09 Tom Tromey <tom@tromey.com>
12379 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12380 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12381 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12382 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12383 (psym_lookup_symbol, psym_find_last_source_symtab)
12384 (psym_forget_cached_source_info, psym_print_stats)
12385 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12386 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12387 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12388 (psym_find_compunit_symtab_by_address)
12389 (maintenance_print_psymbols, maintenance_info_psymtabs)
12390 (maintenance_check_psymtabs): Use ranged for.
12391 * psymtab.h (class objfile_psymtabs): New.
12392 (require_partial_symbols): Return objfile_psymtabs.
12393 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12395 2019-01-09 Tom Tromey <tom@tromey.com>
12397 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12398 (find_pc_mapped_section, list_overlays_command)
12399 (map_overlay_command, unmap_overlay_command)
12400 (simple_overlay_update): Use all_objfiles.
12401 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12402 * printcmd.c (info_symbol_command): Use all_objfiles.
12403 * objfiles.h (ALL_OBJSECTIONS): Remove.
12404 * maint.c (maintenance_translate_address): Use all_objfiles.
12405 * gcore.c (gcore_create_callback): Use all_objfiles.
12406 (objfile_find_memory_regions): Likewise.
12408 2019-01-09 Tom Tromey <tom@tromey.com>
12410 * symtab.c (find_line_symtab, info_sources_command)
12411 (make_source_files_completion_list): Use objfile_compunits.
12412 * source.c (select_source_symtab): Use objfile_compunits.
12413 * objfiles.h (struct objfile): Update comment.
12414 (ALL_OBJFILES): Remove.
12415 (ALL_FILETABS): Remove.
12416 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12419 2019-01-09 Tom Tromey <tom@tromey.com>
12421 * symmisc.c (print_objfile_statistics, dump_objfile)
12422 (maintenance_print_symbols): Use compunit_filetabs.
12423 * source.c (forget_cached_source_info_for_objfile): Use
12425 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12426 (ALL_FILETABS): Use compunit_filetabs.
12427 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12428 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12430 2019-01-09 Tom Tromey <tom@tromey.com>
12432 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12433 (compunit_filetabs): New.
12434 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12436 (info_sources_command, make_source_files_completion_list): Remove
12438 * symmisc.c (print_objfile_statistics, dump_objfile)
12439 (maintenance_print_symbols): Remove declaration.
12440 (maintenance_info_symtabs): Use compunit_filetabs.
12441 (maintenance_info_line_tables): Likewise.
12442 * source.c (select_source_symtab): Change local variable name.
12443 (forget_cached_source_info_for_objfile): Remove declaration.
12444 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12445 * objfiles.c (objfile_relocate1): Remove declaration.
12446 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12448 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12449 * coffread.c (coff_symtab_read): Remove declaration.
12450 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12453 2019-01-09 Tom Tromey <tom@tromey.com>
12455 * symtab.c (lookup_objfile_from_block)
12456 (find_pc_sect_compunit_symtab, search_symbols)
12457 (default_collect_symbol_completion_matches_break_on): Use
12459 * objfiles.h (ALL_COMPUNITS): Remove.
12460 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
12461 * cp-support.c (add_symbol_overload_list_qualified): Use
12463 * ada-lang.c (ada_collect_symbol_completion_matches)
12464 (ada_add_global_exceptions): Use objfile_compunits.
12466 2019-01-09 Tom Tromey <tom@tromey.com>
12468 * source.c (select_source_symtab)
12469 (forget_cached_source_info_for_objfile): Remove declaration.
12470 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12472 * maint.c (count_symtabs_and_blocks): Remove declaration.
12473 * cp-support.c (add_symbol_overload_list_qualified): Remove
12475 * coffread.c (coff_symtab_read): Remove declaration.
12476 * symtab.c (lookup_symbol_in_objfile_symtabs)
12477 (basic_lookup_transparent_type_1): Use objfile_compunits.
12478 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
12479 (info_sources_command, search_symbols)
12480 (default_collect_symbol_completion_matches_break_on)
12481 (make_source_files_completion_list): Remove declaration.
12482 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
12483 (ada_collect_symbol_completion_matches)
12484 (ada_add_global_exceptions): Remove declaration.
12485 * linespec.c (iterate_over_all_matching_symtabs): Use
12487 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
12488 (class objfile_compunits): New.
12489 (ALL_COMPUNITS): Use objfile_compunits.
12490 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
12491 (maintenance_check_symtabs, maintenance_info_line_tables): Use
12493 * objfiles.c (objfile_relocate1): Use objfile_compunits.
12495 2019-01-09 Tom Tromey <tom@tromey.com>
12497 * symtab.c (search_symbols)
12498 (default_collect_symbol_completion_matches_break_on): Use
12500 * ada-lang.c (ada_lookup_simple_minsym)
12501 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
12502 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
12503 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
12505 * coffread.c (coff_symfile_read): Use objfile_msymbols.
12506 * symmisc.c (dump_msymbols): Use objfile_msymbols.
12507 * objc-lang.c (find_methods): Use objfile_msymbols.
12508 (info_selectors_command, info_classes_command): Likewise.
12509 * stabsread.c (scan_file_globals): Use objfile_msymbols.
12510 * objfiles.h (class objfile_msymbols): New.
12511 (ALL_OBJFILE_MSYMBOLS): Remove.
12512 (ALL_MSYMBOLS): Remove.
12514 2019-01-09 Tom Tromey <tom@tromey.com>
12516 * common/next-iterator.h (next_adapter): Add Iterator template
12518 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
12519 (class all_objfiles_safe): New.
12520 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
12521 * objfiles.c (put_objfile_before): Update comment.
12522 (add_separate_debug_objfile): Likewise.
12523 (free_all_objfiles): Use all_objfiles_safe.
12524 (objfile_purge_solibs): Likewise.
12526 2019-01-09 Tom Tromey <tom@tromey.com>
12528 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12529 (expand_symtab_containing_pc, lookup_static_symbol)
12530 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
12531 (find_symbol_at_address, find_line_symtab, find_main_name): Use
12533 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
12534 * breakpoint.c (create_overlay_event_breakpoint)
12535 (create_longjmp_master_breakpoint)
12536 (create_std_terminate_master_breakpoint)
12537 (create_exception_master_breakpoint): Use all_objfiles.
12538 * linux-thread-db.c (try_thread_db_load_from_pdir)
12539 (has_libpthread): Use all_objfiles.
12540 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
12541 * linespec.c (iterate_over_all_matching_symtabs)
12542 (search_minsyms_for_name): Use all_objfiles.
12543 * maint.c (maintenance_info_sections): Use all_objfiles.
12544 * main.c (captured_main_1): Use all_objfiles.
12545 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
12546 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
12547 * guile/scm-pretty-print.c
12548 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
12549 * solib-spu.c (append_ocl_sos): Use all_objfiles.
12550 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
12551 (maintenance_print_msymbols): Use all_objfiles.
12552 * source.c (select_source_symtab): Use all_objfiles.
12553 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
12554 * symfile.c (remove_symbol_file_command)
12555 (expand_symtabs_matching, map_symbol_filenames): Use
12557 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
12559 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
12560 * objc-lang.c (find_methods): Use all_objfiles.
12561 * objfiles.c (have_partial_symbols, have_full_symbols)
12562 (have_minimal_symbols, qsort_cmp)
12563 (default_iterate_over_objfiles_in_search_order): Use
12565 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
12566 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
12567 (maintenance_check_psymtabs): Use all_objfiles.
12568 (ALL_PSYMTABS): Remove.
12569 * compile/compile-object-run.c (do_module_cleanup): Use
12571 * blockframe.c (find_pc_partial_function): Use all_objfiles.
12572 * cp-support.c (add_symbol_overload_list_qualified): Use
12574 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12576 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
12577 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
12579 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12580 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
12581 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12583 * solib.c (solib_read_symbols): Use all_objfiles
12585 2019-01-09 Tom Tromey <tom@tromey.com>
12587 * probe.c (parse_probes_in_pspace): Use all_objfiles.
12588 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
12590 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
12591 * symmisc.c (print_symbol_bcache_statistics)
12592 (print_objfile_statistics, maintenance_print_objfiles)
12593 (maintenance_info_symtabs, maintenance_check_symtabs)
12594 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
12596 * source.c (forget_cached_source_info): Use all_objfiles.
12597 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
12598 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12599 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
12600 * objfiles.c (update_section_map): Use all_objfiles.
12601 (shared_objfile_contains_address_p): Likewise.
12602 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
12603 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
12605 2019-01-09 Tom Tromey <tom@tromey.com>
12607 * common/next-iterator.h: New file.
12608 * objfiles.h (class all_objfiles): New.
12609 (struct objfile_iterator): New.
12611 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12613 * NEWS: Move the description of the changed "frame", "select-frame",
12614 and "info frame" commands to the Changed commands section.
12616 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
12618 * gdbtypes.c (check_stub_method_group): Remove handling of old
12620 * linespec.c (find_methods): Likewise.
12621 * stabsread.c (read_member_functions): Likewise.
12622 * valops.c (search_struct_method): Likewise.
12623 (value_struct_elt_for_reference): Likewise.
12624 * NEWS: Mention this change.
12626 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12628 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
12629 print_source_lines.
12630 * source.c (print_source_lines_base): Update line number check.
12631 (print_source_lines): New function.
12632 (source_lines_range::source_lines_range): New function.
12633 * source.h (class source_lines_range): New class.
12634 (print_source_lines): New declaration.
12636 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12638 * linespec.c (linespec_state_destructor): Free self->canonical_names.
12640 2019-01-08 Tom Tromey <tom@tromey.com>
12641 Simon Marchi <simon.marchi@ericsson.com>
12644 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
12645 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
12646 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12647 * f-exp.y (DOLLAR_VARIABLE): Likewise.
12648 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
12649 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12651 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12653 * source.c (select_source_symtab): Move header comment to
12654 declaration in source.h.
12655 (forget_cached_source_info_for_objfile): Likewise.
12656 (forget_cached_source_info): Likewise.
12657 (identify_source_line): Likewise.
12658 * source.h (identify_source_line): Move declaration from symtab.h
12659 and add comment from source.c
12660 (print_source_lines): Likewise.
12661 (forget_cached_source_info_for_objfile): Likewise.
12662 (forget_cached_source_info): Likewise.
12663 (select_source_symtab): Likewise.
12664 (enum print_source_lines_flag): Move definition from symtab.h.
12665 * symtab.h (identify_source_line): Move declaration to source.h.
12666 (print_source_lines): Likewise.
12667 (forget_cached_source_info_for_objfile): Likewise.
12668 (forget_cached_source_info): Likewise.
12669 (select_source_symtab): Likewise.
12670 (enum print_source_lines_flag): Move definition to source.h.
12671 * tui/tui-hooks.c: Add 'source.h' include.
12673 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12675 * source.c (print_source_lines_base): Handle requests to print
12676 reverse line number sequences, and guard against empty lines
12679 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12681 * source.c (print_source_lines_base): Fix skip of '\r' if next
12684 2019-01-06 Tom Tromey <tom@tromey.com>
12686 * c-exp.y (struct c_parse_state) <macro_original_text,
12687 expansion_obstack>: New member.
12688 (macro_original_text, expansion_obstack): Remove globals.
12689 (scan_macro_expansion, scanning_macro_expansion)
12690 (finished_macro_expansion): Update.
12691 (scan_macro_cleanup): Remove.
12692 (yylex, c_parse): Update.
12694 2019-01-06 Tom Tromey <tom@tromey.com>
12696 * c-exp.y (struct c_parse_state) <strings>: New member.
12697 (operator_stoken): Update.
12699 2019-01-06 Tom Tromey <tom@tromey.com>
12701 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
12702 (union type_stack_elt) <typelist_val>: Now a pointer to
12704 (type_stack_cleanup): Don't declare.
12705 (push_typelist): Update.
12706 * parse.c (pop_typelist): Return a std::vector.
12707 (push_typelist): Take a std::vector.
12708 (follow_types): Update. Do not free args.
12709 (type_stack_cleanup): Remove.
12710 * c-exp.y (struct c_parse_state): New.
12711 (cpstate): New global.
12712 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
12713 (nonempty_typelist): Update.
12714 (func_mod): Create a new vector.
12715 (c_parse): Create a c_parse_state.
12716 (check_parameter_typelist): Do not delete params.
12717 (function_method): Update. Do not delete type_list.
12719 2019-01-06 Tom Tromey <tom@tromey.com>
12722 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
12724 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
12725 (print_return_value): Likewise.
12727 2019-01-05 Tom Tromey <tom@tromey.com>
12729 * contrib/cleanup_check.py: Remove.
12730 * contrib/gcc-with-excheck: Remove.
12731 * contrib/exsummary.py: Remove.
12732 * contrib/excheck.py: Remove.
12734 2019-01-05 Joel Brobecker <brobecker@adacore.com>
12736 * thread.c (delete_thread_1): Add gdb_assert that THR is not
12737 NULL. Initialize tpprev to NULL instead of assigning it
12738 to NULL on the next statement.
12739 * windows-nat.c (windows_delete_thread): Remove check for
12740 main_thread_id before printing thread exit notifications.
12741 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
12742 Remove thread ID check against main_thread_id.
12743 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
12744 windows_delete_thread.
12745 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
12747 2019-01-04 Tom Tromey <tom@tromey.com>
12749 * compile/compile.c (_initialize_compile): Use upper case for
12750 metasyntactic variables.
12751 * symmisc.c (_initialize_symmisc): Use upper case for
12752 metasyntactic variables.
12753 * psymtab.c (_initialize_psymtab): Use upper case for
12754 metasyntactic variables.
12755 * demangle.c (demangle_command): Use upper case for metasyntactic
12757 (_initialize_demangler): Likewise.
12758 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
12761 2019-01-03 Tom Tromey <tom@tromey.com>
12763 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
12765 2019-01-03 Tom Tromey <tom@tromey.com>
12767 * python/py-symtab.c (salpy_str): Update.
12768 (struct salpy_sal_object) <symtab>: Now a PyObject.
12769 (salpy_dealloc): Update.
12770 (del_objfile_sal): Use gdbpy_ref.
12772 2019-01-03 Tom Tromey <tom@tromey.com>
12774 * python/py-type.c (convert_field): Use new_reference. Return
12776 (make_fielditem): Return gdbpy_ref.
12777 (typy_fields): Update.
12778 (typy_getitem): Update.
12779 (field_name): Return gdbpy_ref. Use new_reference.
12780 (typy_iterator_iternext): Update.
12782 2019-01-03 Tom Tromey <tom@tromey.com>
12784 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
12786 2019-01-03 Tom Tromey <tom@tromey.com>
12788 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
12789 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
12790 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
12791 (pspy_set_frame_filters, pspy_set_frame_unwinders)
12792 (pspy_set_type_printers): Likewise.
12793 * python/py-function.c (fnpy_init): Use gdbpy_ref.
12794 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
12795 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
12796 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
12797 (objfpy_set_type_printers): Likewise.
12799 2019-01-03 Tom Tromey <tom@tromey.com>
12801 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12802 (gdbpy_print_stack): Use gdbpy_err_fetch.
12803 * python/python-internal.h (class gdbpy_err_fetch): New class.
12804 (class gdbpy_enter) <m_error_type, m_error_value,
12805 m_error_traceback>: Remove.
12806 <m_error>: New member.
12807 (gdbpy_exception_to_string): Don't declare.
12808 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12809 * python/py-value.c (convert_value_from_python): Use
12811 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12812 gdbpy_exception_to_string.
12813 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12814 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12817 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12819 * linux-nat.c (delete_lwp_cleanup): Delete.
12820 (struct lwp_deleter): New struct.
12821 (lwp_info_up): New typedef.
12822 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12825 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12827 * linux-fork.c (class scoped_switch_fork_info): New class.
12828 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12830 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12832 * valops.c (find_overload_match): Remove use of null_cleanup, and
12833 calls to do_cleanups.
12835 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12837 * compile/compile-cplus-types.c
12838 (compile_cplus_instance::decl_name): Handle changes to
12840 * cp-support.c (cp_func_name): Update header comment, update
12842 * cp-support.h (cp_func_name): Update return type in declaration.
12843 * valops.c (find_overload_match): Move temp_func local to top
12844 level of function and change its type. Use temp_func to hold and
12845 delete temporary string obtained from cp_func_name.
12847 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12849 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12850 gdb::char_vector, remove cleanup, and update uses of `msg`.
12852 2019-01-03 Jim Wilson <jimw@sifive.com>
12854 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12856 2019-01-02 Tom Tromey <tom@tromey.com>
12858 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12859 (tdesc_parse_xml): Remove cleanups.
12860 * target-descriptions.h (make_cleanup_free_target_description):
12862 (target_desc_deleter): New struct.
12863 (target_desc_up): New typedef.
12864 * target-descriptions.c (target_desc_deleter::operator()): Rename
12865 from free_target_description.
12866 (make_cleanup_free_target_description): Remove.
12868 2019-01-02 Tom Tromey <tom@tromey.com>
12870 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12871 constructor, destructor.
12872 (linespec_parser): Remove typedef.
12873 (~linespec_parser): Rename from linespec_parser_delete.
12874 (linespec_lex_to_end, linespec_complete_label)
12875 (linespec_complete): Update.
12876 (decode_line_full): Remove cleanups.
12877 (decode_line_1): Update.
12879 2019-01-02 Tom Tromey <tom@tromey.com>
12881 * python/python-internal.h (inferior_to_inferior_object): Change
12883 * python/py-exitedevent.c (create_exited_event_object): Update.
12884 * python/py-inferior.c (inferior_to_inferior_object): Return
12886 (python_new_inferior, python_inferior_deleted)
12887 (thread_to_thread_object, delete_thread_object)
12888 (build_inferior_list, gdbpy_selected_inferior): Update.
12889 * python/py-infthread.c (create_thread_object): Update. Also fail
12890 if inferior_to_inferior_object fails.
12892 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12894 * inferior.h (class inferior) <displaced_step_state>: New field.
12895 * infrun.h (struct displaced_step_state): Move here from
12896 infrun.c. Initialize fields, add constructor.
12897 <inf>: Remove field.
12898 <reset>: New method.
12899 * infrun.c (struct displaced_step_inferior_state): Move to
12901 (displaced_step_inferior_states): Remove.
12902 (get_displaced_stepping_state): Adust.
12903 (displaced_step_in_progress_any_inferior): Adjust.
12904 (displaced_step_in_progress_thread): Adjust.
12905 (displaced_step_in_progress): Adjust.
12906 (add_displaced_stepping_state): Remove.
12907 (get_displaced_step_closure_by_addr): Adjust.
12908 (remove_displaced_stepping_state): Remove.
12909 (infrun_inferior_exit): Call displaced_step_state.reset.
12910 (use_displaced_stepping): Don't check for NULL.
12911 (displaced_step_prepare_throw): Call
12912 get_displaced_stepping_state.
12913 (displaced_step_fixup): Don't check for NULL.
12914 (prepare_for_detach): Don't check for NULL.
12916 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12918 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12919 in case of call that did not complete.
12921 2019-01-02 Andrey Utkin <autkin@undo.io>
12923 * symfile.c (find_separate_debug_file): Fix search of debug files for
12926 2019-01-02 Tom Tromey <tom@tromey.com>
12928 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
12930 * python/py-frame.c (frapy_older): Remove cast.
12931 (frapy_newer): Likewise.
12932 * python/py-breakpoint.c (local_setattro): Remove cast.
12933 * python/py-arch.c (archpy_name): Remove local variable.
12934 * python/py-type.c (gdbpy_lookup_type): Remove cast.
12936 2019-01-02 Joel Brobecker <brobecker@adacore.com>
12938 * unittests/basic_string_view/element_access/char/empty.cc:
12939 Fix year range in copyright header.
12941 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
12943 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
12945 <operator==>: Update with for removed field.
12947 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
12948 <isa_features>: ...this.
12949 <abi_features>: New field.
12950 (riscv_isa_flen): Update comment.
12951 (riscv_abi_xlen): New declaration.
12952 (riscv_abi_flen): New declaration.
12953 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
12955 (riscv_abi_xlen): New function.
12956 (riscv_isa_flen): Update to get answer from isa_features.
12957 (riscv_abi_flen): New function.
12958 (riscv_has_fp_abi): Update to get answer from abi_features.
12959 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
12961 (riscv_call_info) <xlen, flen>: Update comment.
12962 (riscv_call_arg_struct): Remove invalid assertions
12963 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
12965 (riscv_gdbarch_init): Gather isa features and abi features
12966 separately, ensure both match on the gdbarch when reusing an old
12967 gdbarch. Relax an error check to allow 32-bit abi float to run on
12968 a target with 64-bit float hardware.
12970 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12972 * source.c (search_command_helper): Stop reverse search
12973 when line 1 has been searched.
12975 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12977 * record-full.c (record_full_base_target::close): Rewrite
12978 record_full_core_buf_list free logic.
12980 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12982 * break-catch-syscall.c (print_one_catch_syscall): xfree
12985 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12987 * top.c (print_gdb_version): Update Copyright year in version
12990 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12992 Update copyright year range in all GDB files.
12994 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
12996 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
12998 For older changes see ChangeLog-2018.
13004 version-control: never