1 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3 * source-cache.c (source_cache::get_line_charpos): Catch
4 exceptions and return false, this matches the behaviour documented
7 2019-09-17 Joel Brobecker <brobecker@adacore.com>
9 * ada-tasks.c (info_task): Remove quoting of the task's name.
11 2019-09-16 Christian Biesinger <cbiesinger@google.com>
13 * symfile.c (auto_solib_add): Replace comment with a reference
16 2019-09-14 Christian Biesinger <cbiesinger@google.com>
18 * NEWS: Mention that gdb can now be compiled with Python 3
21 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
23 * maint.c (maint_print_section_data::maint_print_section_data):
24 Force use of 'float log10 (float)' by casting the argument to
27 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
29 * maint.c: Add 'cmath' include.
30 (struct maint_print_section_data): New structure.
31 (print_section_index): New function.
32 (print_bfd_section_info): Add header comment, small whitespace
33 cleanup, and update to call new print_section_index function.
34 (print_objfile_section_info): Likewise.
35 (maint_obj_section_from_bfd_section): New function.
36 (print_bfd_section_info_maybe_relocated): New function.
37 (maintenance_info_sections): Add header comment, always use
38 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
40 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
42 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
43 inner scope, add check that the objfile has psymtabs before
44 checking psymtabs_addrmap.
45 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
47 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
49 * NEWS: Announce that Ada task names are now shown at more places,
50 and between quotes (except in info task output).
51 * gdb/ada-tasks.c (task_to_str): New function.
52 (display_current_task_id): Call task_to_str.
53 (task_command_1): Likewise.
54 (print_ada_task_info): In non-mi mode, Properly align headers and data
55 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
57 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
59 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
60 prstatus.pr_lwp.pr_info instead of making it up.
62 2019-09-11 Christian Biesinger <cbiesinger@google.com>
64 * auto-load.c (auto_load_expand_dir_vars): Update.
65 * defs.h (gdb_datadir): Change to std::string.
66 (python_libdir): Likewise.
67 (relocate_gdb_directory): Change return type to std::string.
68 * guile/guile.c (gdbscm_data_directory): Update.
69 (initialize_scheme_side): Update.
70 * jit.c (jit_reader_dir): Change to std::string.
71 (jit_reader_load_command): Update.
72 * main.c (gdb_datadir): Change to std::string.
73 (python_libdir): Likewise.
74 (set_gdb_data_directory): Update.
75 (relocate_path): Change to return std::string.
76 (relocate_gdb_directory): Change to return std::string.
77 (relocate_gdbinit_path_maybe_in_datadir): Update.
78 (captured_main_1): Update.
79 * python/python.c (do_start_initialization): Update.
80 * top.c (show_gdb_datadir): Update.
81 * xml-syscall.c (xml_init_syscalls_info): Update.
82 (init_syscalls_info): Update.
84 2019-09-11 Christian Biesinger <cbiesinger@google.com>
86 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
87 out of get_init_files.
88 (get_init_files): Update.
90 2019-09-11 Christian Biesinger <cbiesinger@google.com>
92 * main.c (get_init_files): Change to use std::string.
93 (captured_main_1): Update.
94 (print_gdb_help): Update.
96 2019-09-11 Ali Tamur <tamur@google.com>
98 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
101 2019-09-11 Christian Biesinger <cbiesinger@google.com>
103 * dbxread.c (read_dbx_symtab): Update.
104 * dwarf2read.c (load_partial_dies): Update.
105 * mdebugread.c (parse_partial_symbols): Update.
106 (handle_psymbol_enumerators): Update.
107 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
108 * psymtab.c (add_psymbol_to_bcache): Likewise.
109 (add_psymbol_to_list): Likewise.
110 * symtab.c (symbol_set_names): Likewise.
111 * symtab.h (symbol_set_names): Likewise.
112 * xcoffread.c (scan_xcoff_symtab): Update.
114 2019-09-11 Tom Tromey <tom@tromey.com>
116 * symfile-mem.c (symbol_file_add_from_memory): Use
118 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
119 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
121 2019-09-10 Tom Tromey <tromey@adacore.com>
123 * dwarf-index-write.c (write_psymbols): Extend error message.
124 (debug_names::insert): Add Ada code.
125 (debug_names::write_psymbols): Remove Ada check.
126 (debug_names) <m_string_obstack>: New member.
127 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
128 (gdb_index_symbol_name_matcher::matches): Remove.
129 (mapped_index_base::find_name_components_bounds): Add "lang"
131 (mapped_index_base::build_name_components): Also split names
132 according to Ada syntax.
133 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
134 type of "match_callback".
135 (check_match, check_find_bounds_finds)
136 (dw2_expand_symtabs_matching): Update.
137 (dw2_debug_names_iterator): Add new constructor.
138 (dw2_debug_names_map_matching_symbols): New function.
139 (dw2_debug_names_expand_symtabs_matching): Update.
140 (dwarf2_debug_names_functions): Use
141 dw2_debug_names_map_matching_symbols.
143 2019-09-10 Tom Tromey <tromey@adacore.com>
145 * dwarf2read.c (dw2_get_file_names_reader): Add the
146 CU's file name to the results.
148 2019-09-10 Tom Tromey <tromey@adacore.com>
150 * ada-lang.c (add_nonlocal_symbols): Combine calls to
151 map_matching_symbols. Update.
152 * dwarf2read.c (dw2_map_matching_symbols): Update.
153 * psymtab.c (match_partial_symbol): Change type; update.
154 (psym_map_matching_symbols): Likewise.
155 * symfile-debug.c (debug_qf_map_matching_symbols): Change
157 * symfile.h (struct quick_symbol_functions)
158 <map_matching_symbols>: Change "name" to be a lookup_name_info.
161 2019-09-10 Tom Tromey <tromey@adacore.com>
163 * psymtab.c (map_block): Remove.
164 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
165 * symtab.c (iterate_over_symbols_terminated): New function.
166 * symtab.c (iterate_over_symbols_terminated): Declare.
168 2019-09-10 Tom Tromey <tromey@adacore.com>
170 * ada-lang.c (ada_iterate_over_symbols): Return bool.
171 * language.h (struct language_defn) <la_iterate_over_symbols>:
173 * symtab.c (iterate_over_symbols): Return bool.
174 * symtab.h (iterate_over_symbols): Return bool.
176 2019-09-10 Tom Tromey <tromey@adacore.com>
178 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
179 (add_nonlocal_symbols): Update.
180 * dwarf2read.c (dw2_map_matching_symbols): Change type.
181 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
182 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
183 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
184 Change type of "callback". Remove "data".
187 2019-09-09 Ali Tamur <tamur@google.com>
189 * dwarf2read.c (comp_unit_head): Update comment.
190 (dwarf2_dwo_name): New function declaration.
191 (dwarf_unit_type_name): New function declaration.
192 (read_comp_unit_head): Add support for new compilation units,
193 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
194 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
195 (currently named as "signature") in their header. Also clarify error
197 (lookup_dwo_id): New function. Returns the dwo id of the given
199 (lookup_dwo_unit): Use the new lookup_dwo_id function.
200 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
202 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
203 (dwarf2_dwo_name): Get the dwo name if present.
204 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
207 2019-09-09 Tom Tromey <tom@tromey.com>
209 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
211 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
213 * python/python.c (do_start_initialization): Make progname_copy static,
214 to avoid a leak report.
216 2019-09-08 Tom Tromey <tom@tromey.com>
218 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
220 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
222 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
223 Change type to gdb::optional<block_enum>.
224 (dw2_symtab_iter_init): Change block_index parameter type
225 to gdb::optional<block_enum>.
226 (dw2_lookup_symbol): Change block_index parameter
228 (dw2_debug_names_lookup_symbol): Likewise.
229 * psymtab.c (psym_lookup_symbol): Likewise.
230 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
231 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
234 2019-09-06 Christian Biesinger <cbiesinger@google.com>
236 * defs.h (relocate_gdb_directory): Change int to bool in
237 signature and rename flag to relocatable.
238 * main.c (relocate_path): Likewise.
239 (relocate_gdb_directory): Likewise.
241 2019-09-06 Alan Modra <amodra@gmail.com>
243 * coffread.c (coff_symfile_read): Constify filename variable.
244 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
245 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
246 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
247 * solib.c (reload_shared_libraries_1): Likewise.
248 * symfile.c (reread_symbols): Likewise.
249 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
250 * solib-darwin.c (darwin_bfd_open): Likewise.
251 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
253 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
255 * psymtab.c (print_partial_symbols): Handle missing domain_enum
256 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
258 2019-09-03 Tom Tromey <tromey@adacore.com>
260 * ada-valprint.c (ada_val_print_num): Don't recurse for range
262 (has_negatives): Unbias a range type bound.
263 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
264 * gdbtypes.c (operator==): Handle new field.
265 (create_range_type): Add "bias" parameter.
266 (create_static_range_type, resolve_dynamic_range): Update.
267 * gdbtypes.h (struct range_bounds) <bias>: New member.
268 (create_range_type): Add bias parameter.
269 * printcmd.c (print_scalar_formatted): Unbias range types.
270 * value.c (unpack_long): Unbias range types.
271 (pack_long): Bias range types.
273 2019-09-02 Alan Hayward <alan.hayward@arm.com>
275 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
278 2019-09-02 Alan Hayward <alan.hayward@arm.com>
280 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
281 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
282 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
283 (compile_probe_arg): Likewise.
284 * probe.h (get_argument_count): Likewise.
285 * solib-svr4.c (solib_event_probe_action): Likewise.
286 * stap-probe.c (stap_probe::get_argument_count): Likewise.
288 2019-09-02 Alan Hayward <alan.hayward@arm.com>
290 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
292 (svr4_create_solib_event_breakpoints): ...from here.
294 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
296 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
297 suffix from warning message.
299 2019-08-30 Tom Tromey <tom@tromey.com>
301 * tui/tui-winsource.h (struct tui_source_window_base)
302 <refresh_all>: Don't declare.
303 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
305 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
306 tui_show_locator_content.
307 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
309 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
310 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
313 2019-08-30 Tom Tromey <tom@tromey.com>
315 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
317 2019-08-30 Tom Tromey <tom@tromey.com>
319 * tui/tui-stack.c (_initialize_tui_stack): Move later.
320 Remove unnecessary forward declarations.
322 2019-08-30 Tom Tromey <tom@tromey.com>
324 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
326 (tui_update_locator_fullname, tui_show_frame_info): Don't call
327 tui_show_locator_content.
329 2019-08-30 Tom Tromey <tom@tromey.com>
331 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
332 (tui_locator_window::rerender): Rewrite using body of previous
333 tui_show_locator_content.
335 2019-08-30 Tom Tromey <tom@tromey.com>
337 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
338 set_locator_fullname>: New methods.
339 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
340 Rename from tui_set_locator_fullname.
341 (tui_locator_window::set_locator_info): Rename from
342 tui_set_locator_info. Return bool.
343 (tui_update_locator_fullname, tui_show_frame_info): Update.
345 2019-08-30 Tom Tromey <tom@tromey.com>
347 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
349 2019-08-30 Tom Tromey <tom@tromey.com>
351 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
354 2019-08-30 Tom Tromey <tom@tromey.com>
356 * tui/tui-wingeneral.c (box_win): Assume win_info and
357 win_info->handle cannot be NULL.
359 2019-08-30 Tom Tromey <tom@tromey.com>
361 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
362 refresh_window>: Declare.
363 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
365 (tui_data_item_window::rerender): Rename from
366 tui_display_register.
367 (tui_data_item_window::refresh_window): New method.
368 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
371 2019-08-30 Tom Tromey <tom@tromey.com>
373 * tui/tui-regs.h (struct tui_data_window) <regs_content,
374 regs_column_count, current_group>: Move later. Now private.
375 <get_current_group>: New method.
376 * tui/tui-regs.c (tui_reg_command): Update.
377 * tui/tui-layout.c (tui_set_layout): Update.
379 2019-08-30 Tom Tromey <tom@tromey.com>
381 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
382 (tui_data_window::rerender): Don't call
383 check_and_display_highlight_if_needed.
384 (tui_data_window::refresh_all): Remove call to
387 2019-08-30 Tom Tromey <tom@tromey.com>
389 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
390 (tui_data_window::display_registers_from)
391 (tui_data_window::display_reg_element_at_line)
392 (tui_data_window::display_registers_from_line): Remove checks of
395 2019-08-30 Tom Tromey <tom@tromey.com>
397 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
399 * tui/tui-regs.c (tui_data_window::show_registers): Call
401 (tui_data_window::rerender): Rename from display_all_data.
402 (tui_data_window::rerender): Remove old implementation.
404 2019-08-30 Tom Tromey <tom@tromey.com>
406 * tui/tui-regs.c (tui_data_window::display_all_data): Change
408 * tui/tui-data.h (NO_DATA_STRING): Remove define.
410 2019-08-29 Bernhard Wodok <barto@gmx.net>
411 Sergio Durigan Junior <sergiodj@redhat.com>
414 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
416 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
418 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
419 when searching for types.
421 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
423 * f-lang.c (f_language_defn): Use f_print_typedef.
424 * f-lang.h (f_print_typedef): Declare.
425 * f-typeprint.c (f_print_typedef): Define.
427 2019-08-27 Christian Biesinger <cbiesinger@google.com>
429 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
431 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
433 * cli/cli-utils.c (info_print_options_defs): Delete.
434 (make_info_print_options_def_group): Delete.
435 (extract_info_print_options): Delete.
436 (info_print_command_completer): Delete.
437 (info_print_args_help): Add extra parameter, and optionally
438 include text about -n flag.
439 * cli/cli-utils.h (struct info_print_options): Delete.
440 (extract_info_print_options): Delete declaration.
441 (info_print_command_completer): Delete declaration.
442 (info_print_args_help): Add extra parameter, extend header
444 * python/python.c (gdbpy_rbreak): Pass additional parameter to
446 * stack.c (struct info_print_options): New type.
447 (info_print_options_defs): New file scoped variable.
448 (make_info_print_options_def_group): New static function.
449 (info_print_command_completer): New static function.
450 (info_locals_command): Update to use new local functions.
451 (info_args_command): Likewise.
452 (_initialize_stack): Add extra parameter to calls to
453 info_print_args_help.
454 * symtab.c (search_symbols): Add extra parameter, use this to
455 possibly excluse non-debug symbols.
456 (symtab_symbol_info): Add extra parameter, which is passed on to
458 (struct info_print_options): New type.
459 (info_print_options_defs): New file scoped variable.
460 (make_info_print_options_def_group): New static function.
461 (info_print_command_completer): New static function.
462 (info_variables_command): Update to use local functions, and pass
463 extra parameter through to symtab_symbol_info.
464 (info_functions_command): Likewise.
465 (info_types_command): Pass additional argument through to
467 (rbreak_command): Pass extra argument to search_symbols.
468 (_initialize_symtab): Add extra arguments for calls to
469 info_print_args_help, and update help text for 'info variables',
470 'whereis', and 'info functions' commands.
471 * symtab.h (search_symbols): Add extra argument to declaration.
472 * NEWS: Mention new flags.
474 2019-08-26 Christian Biesinger <cbiesinger@google.com>
476 * symtab.c (lookup_static_symbol): Call the new function (and move
477 it down to be next to lookup_global_symbol).
478 (struct global_sym_lookup_data): Add block_enum member and rename to...
479 (struct global_or_static_sym_lookup_data): ...this.
480 (lookup_symbol_global_iterator_cb): Pass block_index instead of
481 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
482 (lookup_symbol_global_or_static_iterator_cb): ...this.
483 (lookup_global_or_static_symbol): New function.
484 (lookup_global_symbol): Call new function.
486 2019-08-26 Tom de Vries <tdevries@suse.de>
489 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
490 when pc_probe.prob == NULL.
492 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
494 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
495 variable symbol_linkage to symbol_linkage_.
497 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
499 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
500 represent whether the symbol is static, dynamic, or we don't
503 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
505 * gdb/rx-tdep.c (rx_register_names): New.
506 (rx_register_name): Delete.
507 (rx_psw_type): Delete.
508 (rx_fpsw_type): Delete.
509 (rx_register_type): Delete.
510 (rx_gdbarch_init): Convert target-descriptions.
511 (_initialize_rx_tdep): Add initialize_tdesc_rx.
512 * gdb/features/Makefile: Add rx.xml.
513 * gdb/features/rx.xml: New.
514 * gdb/features/rx.c: Generated.
515 * gdb/NEWS: Mention target description support.
517 2019-08-22 Christian Biesinger <cbiesinger@google.com>
519 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
522 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
524 * configure.ac: Don't check for 'dlfcn.h' (moved to
525 gdbsupport/common.m4).
526 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
528 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
529 * compile/compile-c-support.c: Include
530 'gdbsupport/gdb-dlfcn.h'.
531 * gdbsupport/common.m4: Check for 'dlfcn.h'.
532 * gdb-dlfcn.c: Move to...
533 * gdbsupport/gdb-dlfcn.c: ... here.
534 * gdb-dlfcn.h: Move to...
535 * gdbsupport/gdb-dlfcn.h: ... here.
537 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
539 * nios2-tdep.c (struct reg_value): Improve comments. Make
540 the offset field signed.
542 2019-08-22 Christian Biesinger <cbiesinger@google.com>
544 * python/lib/gdb/__init__.py (_execute_file): New function.
545 * python/python.c (python_run_simple_file): Call gdb._execute_file
548 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
550 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
551 all uses as this was never set to anything but a zero value.
553 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
555 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
557 2019-08-21 Christian Biesinger <cbiesinger@google.com>
559 * tui/tui-data.h (tui_gen_win_info): Add an =default
560 move constructor, required by some GCC versions.
562 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
564 * go32-nat.c (go32_sysinfo): Add hygon_p.
566 2019-08-20 Tom Tromey <tom@tromey.com>
568 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
569 line_from_reg_element_no, first_reg_element_no_inline,
570 display_all_data, delete_data_content_windows,
571 erase_data_content>: Now private.
573 2019-08-20 Tom Tromey <tom@tromey.com>
575 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
576 (tui_unhighlight_win, tui_highlight_win)
577 (tui_win_info::make_window): Update.
578 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
580 2019-08-20 Tom Tromey <tom@tromey.com>
582 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
583 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
584 (MAX_PID_WIDTH): Move to tui-stack.c.
585 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
586 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
587 (MAX_PID_WIDTH): Move from tui-data.h.
589 2019-08-20 Tom Tromey <tom@tromey.com>
591 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
592 * tui/tui-wingeneral.c (box_win): Change type of win_info.
594 (tui_gen_win_info::make_window): Rename from tui_make_window.
595 (tui_win_info::make_window): New method.
596 (tui_gen_win_info::make_visible): Update.
597 * tui/tui-source.c (tui_source_window::set_contents): Update.
598 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
599 (tui_data_window::display_registers_from): Update.
600 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
601 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
605 (struct tui_win_info) <make_window>: Declare.
606 <can_box>: Now virtual.
608 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
609 * tui/tui-command.c (tui_cmd_window::resize): Update.
611 2019-08-20 Tom Tromey <tom@tromey.com>
613 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
614 * tui/tui-regs.c (tui_data_window::show_registers): Update.
615 (tui_data_window::check_register_values): Update.
617 2019-08-20 Tom Tromey <tom@tromey.com>
619 * tui/tui-regs.h (struct tui_data_window): Use
620 DISABLE_COPY_AND_ASSIGN.
621 <regs_content>: Change type, removing unique_ptr.
622 <tui_data_window>: Add move constructor.
623 * tui/tui-regs.c (tui_data_window::show_registers)
624 (tui_data_window::show_register_group)
625 (tui_data_window::display_registers_from)
626 (tui_data_window::display_registers_from)
627 (tui_data_window::first_data_item_displayed)
628 (tui_data_window::delete_data_content_windows)
629 (tui_data_window::rerender, tui_data_window::refresh_window)
630 (tui_data_window::check_register_values): Update.
632 2019-08-20 Tom Tromey <tom@tromey.com>
634 * tui/tui-regs.h (struct tui_data_window) <show_registers,
635 show_register_group>: Declare.
636 (tui_show_register_group): Don't declare.
637 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
639 (tui_data_window::show_register_group): Rename from
640 tui_show_register_group.
641 (tui_data_window::check_register_values, tui_reg_command):
643 * tui/tui-layout.c (tui_set_layout): Update.
645 2019-08-20 Tom Tromey <tom@tromey.com>
647 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
649 (tui_check_register_values): Don't declare.
650 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
651 from tui_check_register_values.
652 * tui/tui-hooks.c (tui_register_changed): Update.
654 2019-08-20 Tom Tromey <tom@tromey.com>
656 * tui/tui-regs.c (tui_reg_layout): Move later.
657 (tui_show_registers): Don't enable TUI mode or change layout.
659 2019-08-20 Tom Tromey <tom@tromey.com>
661 * tui/tui-regs.h (struct tui_data_item_window)
662 <~tui_data_item_window>: Remove.
663 <content>: Now a unique_xmalloc_ptr.
664 * tui/tui-regs.c (tui_register_format): Return a
666 (tui_get_register): Update.
667 (~tui_data_item_window): Remove.
668 (tui_data_window::display_registers_from, tui_display_register):
670 * tui/tui-io.h (tui_expand_tabs): Update.
671 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
672 Remove "col" parameter.
674 2019-08-20 Tom Tromey <tom@tromey.com>
676 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
678 * tui/tui-regs.c (~tui_data_item_window): Update.
680 2019-08-20 Tom Tromey <tom@tromey.com>
682 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
685 2019-08-20 Tom Tromey <tom@tromey.com>
687 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
689 2019-08-20 Tom Tromey <tom@tromey.com>
691 * tui/tui-source.h (struct tui_source_window): Update.
692 * tui/tui-regs.c (tui_show_registers): Update.
693 * tui/tui-disasm.h (struct tui_disasm_window): Update.
694 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
695 (NO_REGS_STRING): Remove defines.
697 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
699 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
700 unnecessary thread walk if remote doesn't support the packet.
702 2019-08-19 Tom Tromey <tromey@adacore.com>
704 * python/py-value.c (value_has_field): Fix indentation.
706 2019-08-19 Tom Tromey <tromey@adacore.com>
708 * printcmd.c (do_one_display, info_display_command): Update.
709 * block.h (contained_in): Return bool. Add allow_nested
711 * block.c (contained_in): Return bool. Add allow_nested
714 2019-08-19 Tom Tromey <tom@tromey.com>
716 * configure: Rebuild.
717 * configure.ac: Disallow the combination of -static-libstdc++ and
719 * source-cache.c (get_language_name): Handle rust.
720 (source_cache::get_source_lines): Ignore highlighting exceptions.
722 2019-08-16 Tom Tromey <tom@tromey.com>
724 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
725 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
726 (struct tui_source_window_base) <make_visible, refresh_window,
727 resize>: Remove methods.
728 <execution_info>: Remove field.
729 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
730 (tui_show_source_line, tui_source_window_base)
731 (~tui_source_window_base): Update.
732 (tui_source_window_base::resize)
733 (tui_source_window_base::make_visible)
734 (tui_source_window_base::refresh_window): Remove.
735 (tui_source_window_base::update_exec_info): Update.
736 * tui/tui-source.c (tui_source_window::set_contents): Update.
737 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
739 2019-08-16 Tom Tromey <tom@tromey.com>
741 * tui/tui-hooks.c (tui_remove_hooks): Don't set
742 deprecated_query_hook.
744 2019-08-16 Tom Tromey <tom@tromey.com>
746 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
747 (tui_update_source_windows_with_line): Update.
748 * tui/tui-source.h (struct tui_source_window)
749 <show_symtab_source>: Declare.
750 (tui_show_symtab_source): Don't declare.
751 * tui/tui-source.c (tui_show_symtab_source): Rename from
752 tui_show_symtab_source.
754 2019-08-16 Tom Tromey <tom@tromey.com>
756 * tui/tui-winsource.h (struct tui_source_window_base)
757 <set_contents>: Declare.
758 * tui/tui-winsource.c
759 (tui_source_window_base::update_source_window_as_is): Update.
760 * tui/tui-source.h (struct tui_source_window) <set_contents>:
762 (tui_set_source_content): Don't declare.
763 * tui/tui-source.c (tui_source_window::set_contents): Rename from
764 tui_set_source_content.
765 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
767 (tui_set_disassem_content): Don't declare.
768 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
769 tui_set_disassem_content.
771 2019-08-16 Tom Tromey <tom@tromey.com>
773 * tui/tui-winsource.h (struct tui_source_window_base)
774 <update_breakpoint_info>: Declare.
775 (tui_update_breakpoint_info): Don't declare.
776 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
777 (tui_update_all_breakpoint_info): Update.
778 (tui_source_window_base::update_breakpoint_info): Rename from
779 tui_update_breakpoint_info.
780 (tui_source_window_base::update_exec_info): Update.
782 2019-08-16 Tom Tromey <tom@tromey.com>
784 * tui/tui-winsource.h (struct tui_source_window_base)
785 <update_source_window>: Declare.
786 (tui_update_source_window): Don't declare.
787 * tui/tui-winsource.c
788 (tui_source_window_base::update_source_window): Rename from
789 tui_update_source_window.
790 (tui_source_window_base::rerender): Update.
791 * tui/tui-source.c (tui_source_window::maybe_update): Update.
792 * tui/tui-disasm.c (tui_show_disassem)
793 (tui_show_disassem_and_update_source)
794 (tui_disasm_window::maybe_update): Update.
796 2019-08-16 Tom Tromey <tom@tromey.com>
798 * tui/tui-winsource.h (struct tui_source_window_base)
799 <update_source_window_as_is>: Declare.
800 (tui_update_source_window_as_is): Don't declare.
801 * tui/tui-winsource.c (tui_update_source_window): Update
802 (tui_source_window_base::update_source_window_as_is): Rename from
803 tui_update_source_window_as_is.
804 (tui_source_window_base::refill): Update.
805 * tui/tui-source.c (tui_show_symtab_source): Update.
806 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
809 2019-08-16 Tom Tromey <tom@tromey.com>
811 * tui/tui-winsource.h (tui_update_source_window)
812 (tui_update_source_window_as_is): Remove "noerror" parameter.
813 * tui/tui-winsource.c (tui_update_source_window)
814 (tui_update_source_window_as_is): Remove "noerror" parameter.
815 (tui_update_source_windows_with_addr)
816 (tui_update_source_windows_with_line)
817 (tui_source_window_base::rerender)
818 (tui_source_window_base::refill): Update.
819 * tui/tui-source.h (tui_set_source_content)
820 (tui_show_symtab_source): Remove "noerror" parameter.
821 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
823 (tui_show_symtab_source): Likewise.
824 (tui_source_window::maybe_update): Update.
825 * tui/tui-disasm.c (tui_show_disassem)
826 (tui_show_disassem_and_update_source)
827 (tui_disasm_window::do_scroll_vertical)
828 (tui_disasm_window::maybe_update): Update.
830 2019-08-16 Tom Tromey <tom@tromey.com>
832 * tui/tui.c (tui_is_window_visible): Update.
833 * tui/tui-wingeneral.c (tui_make_window)
834 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
835 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
836 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
837 (tui_set_win_height_command, parse_scrolling_args): Update.
838 * tui/tui-source.c (tui_source_window::style_changed): Update.
839 * tui/tui-regs.c (tui_show_registers)
840 (tui_data_window::first_data_item_displayed)
841 (tui_data_window::delete_data_content_windows)
842 (tui_check_register_values, tui_reg_command): Update.
843 * tui/tui-disasm.c (tui_show_disassem): Update.
844 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
846 <is_visible>: Remove field.
847 * tui/tui-data.c (tui_next_win, tui_prev_win)
848 (tui_delete_invisible_windows): Update.
850 2019-08-16 Tom Tromey <tom@tromey.com>
852 * tui/tui-winsource.h (struct tui_source_window_base)
853 <m_has_locator>: Remove.
854 * tui/tui-layout.c (show_source_disasm_command, show_data)
855 (show_source_or_disasm_and_command): Update.
857 2019-08-16 Alan Hayward <alan.hayward@arm.com>
859 * NEWS (Other MI changes): New subsection.
860 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
861 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
862 * arch-utils.c (default_get_pc_address_flags): New function.
863 * arch-utils.h (default_get_pc_address_flags): New declaration.
864 * gdbarch.sh: Add get_pc_address_flags.
865 * gdbarch.c: Regenerate.
866 * gdbarch.h: Likewise.
867 * stack.c (print_pc): New function.
868 (print_frame_info) (print_frame): Call print_pc.
870 2019-08-16 Tom de Vries <tdevries@suse.de>
872 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
873 print_objfile_section_info.
875 2019-08-15 Tom Tromey <tom@tromey.com>
877 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
878 calling update_cmdwin_start_line.
879 * tui/tui-winsource.h (struct tui_source_window_base)
880 <do_make_visible_with_new_height, set_new_height>: Don't declare.
882 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
884 (tui_source_window_base::set_new_height): Remove.
885 (tui_source_window_base::rerender): Rename from
886 do_make_visible_with_new_height.
887 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
889 (tui_win_info::make_invisible_and_set_new_height)
890 (tui_win_info::make_visible_with_new_height): Remove.
891 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
893 * tui/tui-stack.c (tui_locator_window::rerender): New method.
894 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
895 do_make_visible_with_new_height>: Don't declare.
897 * tui/tui-regs.c (tui_data_window::rerender): Rename from
899 (tui_data_window::do_make_visible_with_new_height): Remove.
900 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
901 call tui_show_locator_content.
902 (tui_gen_win_info::resize): Call rerender.
903 (show_source_or_disasm_and_command): Don't call
904 tui_show_locator_content.
905 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
907 (struct tui_win_info) <rerender>: Declare.
908 <set_new_height, make_invisible_and_set_new_height,
909 make_visible_with_new_height>: Don't declare.
910 * tui/tui-data.c (tui_win_list::rerender): New method.
911 * tui/tui-command.h (struct tui_cmd_window)
912 <do_make_visible_with_new_height>: Don't declare.
914 (tui_cmd_window::do_make_visible_with_new_height): Remove.
916 2019-08-15 Tom Tromey <tromey@adacore.com>
918 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
919 * ada-lang.c (ada_enum_name): Likewise.
921 2019-08-15 Christian Biesinger <cbiesinger@google.com>
923 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
925 (GdbOutputErrorFile): Likewise.
926 (global scope): Adjust constructor calls to GdbOutput{,Error}File
928 (execute_unwinders): Rename to have a leading underscore.
929 (auto_load_packages): Likewise.
930 (global scope): Adjust call to auto_load_packages accordingly.
931 (GdbSetPythonDirectory): Likewise.
932 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
933 instead of execute_unwinders.
935 2019-08-15 Tom Tromey <tom@tromey.com>
937 * tui/tui-layout.c (show_layout, show_source_disasm_command)
938 (show_data): Don't change window visibility.
939 (tui_gen_win_info::resize): Remove special case for command
940 window. Use wresize, when available.
941 (show_source_or_disasm_and_command): Don't change window
943 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
944 <make_visible>: New method.
945 * tui/tui-command.c (tui_cmd_window::resize): New method.
947 2019-08-15 Tom Tromey <tom@tromey.com>
949 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
950 (struct tui_source_windows): New.
951 * tui/tui-winsource.c (tui_display_main): Update.
952 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
953 (new_height_ok, parse_scrolling_args): Update.
954 * tui/tui-layout.c (show_layout, show_data): Update.
955 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
956 (tui_add_to_source_windows): Don't declare.
957 * tui/tui-data.c (source_windows, tui_source_windows)
958 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
960 2019-08-15 Tom Tromey <tom@tromey.com>
962 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
964 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
965 * tui/tui-layout.c (show_source_disasm_command, show_data):
967 (tui_gen_win_info::resize): Rename.
968 (show_source_or_disasm_and_command): Update.
969 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
972 2019-08-15 Tom Tromey <tom@tromey.com>
974 * tui/tui-stack.c (tui_initialize_static_data): Remove.
975 * tui/tui-interp.c (tui_interp::init): Don't call
976 tui_initialize_static_data.
977 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
979 2019-08-15 Tom Tromey <tom@tromey.com>
981 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
982 examine tui_win_list.
984 2019-08-15 Tom Tromey <tom@tromey.com>
986 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
987 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
988 tui_clear_source_content.
989 (tui_clear_source_content): Remove.
990 (tui_source_window_base::do_erase_source_content): Hoist call to
992 * tui/tui-stack.c (tui_show_frame_info): Don't call
993 tui_clear_source_content.
995 2019-08-15 Tom Tromey <tom@tromey.com>
997 * tui/tui-winsource.h (struct tui_source_window_base)
998 <do_erase_source_content>: New method.
999 <erase_source_content>: New method.
1000 (tui_erase_source_content): Don't declare.
1001 * tui/tui-winsource.c (tui_clear_source_content): Update.
1002 (tui_source_window_base::do_erase_source_content): Rename from
1003 tui_erase_source_content.
1004 (tui_source_window_base::show_source_content): Update.
1005 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1006 * tui/tui-source.h (struct tui_source_window)
1007 <erase_source_content>: New method.
1008 * tui/tui-disasm.h (struct tui_disasm_window)
1009 <erase_source_content>: New method.
1011 2019-08-15 Tom Tromey <tom@tromey.com>
1013 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
1014 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
1016 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
1017 * tui/tui-source.c (tui_set_source_content): Update.
1018 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1020 2019-08-15 Tom Tromey <tom@tromey.com>
1022 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
1023 * tui/tui-winsource.c (tui_line_is_displayed): Move to
1025 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
1027 * tui/tui-source.c (tui_source_window::line_is_displayed): New
1029 (tui_source_window::maybe_update): Update.
1031 2019-08-15 Tom Tromey <tom@tromey.com>
1033 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
1034 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
1036 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
1038 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
1040 (tui_disasm_window::maybe_update): Update.
1042 2019-08-15 Tom Tromey <tom@tromey.com>
1044 * tui/tui-winsource.h (struct tui_source_window_base)
1045 <maybe_update>: Declare.
1046 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
1048 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
1050 * tui/tui-source.c (tui_source_window::maybe_update): New method.
1051 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
1053 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
1055 2019-08-15 Tom Tromey <tom@tromey.com>
1057 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
1059 2019-08-15 Tom Tromey <tom@tromey.com>
1061 * tui/tui-wingeneral.c: Include tui-stack.h.
1062 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
1063 (struct tui_locator_window): Move from tui-data.h.
1064 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
1065 (tui_initialize_static_data): Move from tui-data.c.
1066 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
1067 (struct tui_locator_window): Move to tui-stack.c.
1068 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
1069 (tui_initialize_static_data): Move to tui-stack.c.
1071 2019-08-15 Tom Tromey <tom@tromey.com>
1073 * tui/tui-layout.c (show_source_disasm_command)
1074 (show_source_or_disasm_and_command): Use make_visible method, not
1076 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
1079 2019-08-15 Tom Tromey <tom@tromey.com>
1081 * tui/tui-wingeneral.h (tui_make_window): Update.
1082 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
1084 (tui_gen_win_info::make_visible): Update.
1085 * tui/tui-regs.c (tui_data_window::display_registers_from):
1087 * tui/tui-layout.c (show_source_disasm_command)
1088 (show_source_or_disasm_and_command): Update.
1089 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
1090 (enum tui_box): Remove.
1091 (struct tui_win_info) <can_box>: New method.
1092 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
1095 2019-08-15 Tom de Vries <tdevries@suse.de>
1097 * linux-nat-trad.c: Include gdbarch.h.
1099 2019-08-14 Alan Hayward <alan.hayward@arm.com>
1101 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
1104 2019-08-14 Tom Tromey <tromey@adacore.com>
1106 * darwin-nat.c: Include gdbarch.h.
1107 * darwin-nat-info.c: Include gdbarch.h.
1109 2019-08-13 Tom Tromey <tom@tromey.com>
1111 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
1113 * tui/tui-data.c (tui_initialize_static_data): Update.
1115 2019-08-13 Tom Tromey <tom@tromey.com>
1117 * tui/tui-winsource.h (struct tui_exec_info_window)
1118 <~tui_exec_info_window, maybe_allocate_content, get_content,
1120 (struct tui_source_window_base) <set_exec_info_content,
1121 show_exec_info_content>: Don't declare.
1122 * tui/tui-winsource.c
1123 (tui_exec_info_window::maybe_allocate_content): Remove.
1124 (tui_source_window_base::update_exec_info): Rename from
1125 set_exec_info_content.
1126 (tui_source_window_base::show_exec_info_content)
1127 (tui_source_window_base::update_exec_info): Remove.
1129 2019-08-13 Tom Tromey <tom@tromey.com>
1131 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
1133 * tui/tui-winsource.c (tui_update_source_window_as_is)
1134 (tui_update_source_windows_with_addr, tui_erase_source_content):
1136 (tui_clear_exec_info_content): Remove.
1138 2019-08-13 Tom Tromey <tom@tromey.com>
1140 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
1142 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
1143 call tui_erase_exec_info_content.
1144 (tui_clear_exec_info_content): Rename from
1145 tui_erase_exec_info_content.
1146 (tui_clear_exec_info_content): Delete.
1148 2019-08-13 Tom Tromey <tom@tromey.com>
1150 * tui/tui-winsource.h (struct tui_source_window_base)
1151 <show_exec_info_content>: Declare.
1152 (tui_show_exec_info_content): Don't declare.
1153 * tui/tui-winsource.c
1154 (tui_source_window_base::show_exec_info_content): Rename from
1155 tui_show_exec_info_content.
1156 (tui_source_window_base::update_exec_info): Update.
1158 2019-08-13 Tom Tromey <tom@tromey.com>
1160 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
1161 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
1162 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
1163 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
1164 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
1165 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
1168 2019-08-13 Tom Tromey <tom@tromey.com>
1170 * tui/tui-winsource.h (struct tui_source_window_base)
1171 <update_exec_info>: Declare.
1172 (tui_update_exec_info): Don't declare.
1173 * tui/tui-winsource.c (tui_update_source_window_as_is)
1174 (tui_source_window_base::refresh_all)
1175 (tui_update_all_breakpoint_info): Update.
1176 (tui_source_window_base::update_exec_info): Rename from
1177 tui_update_exec_info.
1178 * tui/tui-stack.c (tui_show_frame_info): Update.
1180 2019-08-13 Tom Tromey <tom@tromey.com>
1182 * tui/tui-winsource.h (struct tui_source_window_base)
1183 <set_exec_info_content>: Declare.
1184 (tui_set_exec_info_content): Don't declare.
1185 * tui/tui-winsource.c
1186 (tui_source_window_base::set_exec_info_content): Rename from
1187 tui_set_exec_info_content.
1188 (tui_update_exec_info): Update.
1190 2019-08-13 Tom Tromey <tom@tromey.com>
1192 * tui/tui-winsource.h (struct tui_source_window_base)
1193 <show_source_content>: Declare.
1194 (tui_show_source_content): Don't declare.
1195 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1196 (tui_source_window_base::show_source_content): Rename from
1197 tui_show_source_content.
1198 (tui_source_window_base::refresh_all): Update.
1199 * tui/tui-layout.c (show_source_disasm_command)
1200 (show_source_or_disasm_and_command): Update.
1202 2019-08-13 Tom Tromey <tom@tromey.com>
1204 * tui/tui-winsource.c (tui_erase_source_content)
1205 (tui_show_source_content, tui_source_window_base::refresh_all):
1207 * tui/tui-wingeneral.h
1208 (tui_check_and_display_highlight_if_needed): Don't declare.
1209 * tui/tui-wingeneral.c
1210 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1211 check_and_display_highlight_if_needed.
1212 * tui/tui-win.c (tui_rehighlight_all)
1213 (tui_win_info::make_visible_with_new_height): Update.
1214 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1215 (tui_data_window::erase_data_content)
1216 (tui_data_window::display_all_data): Update.
1217 * tui/tui-data.h (struct tui_win_info)
1218 <check_and_display_highlight_if_needed>: Declare.
1220 2019-08-13 Tom Tromey <tom@tromey.com>
1222 * tui/tui-win.c (tui_resize_all): Call
1223 tui_delete_invisible_windows.
1224 * tui/tui-layout.c (show_layout): Call
1225 tui_delete_invisible_windows.
1226 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1227 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1229 2019-08-13 Tom Tromey <tom@tromey.com>
1231 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1232 tui_add_win_to_layout.
1234 2019-08-13 Tom Tromey <tom@tromey.com>
1236 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1237 * tui/tui-layout.c (tui_default_win_height): Now static.
1239 2019-08-13 Tom Tromey <tom@tromey.com>
1241 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1243 (show_source_disasm_command, show_source_or_disasm_and_command):
1244 Don't check current layout.
1246 2019-08-13 Tom Tromey <tom@tromey.com>
1248 * tui/tui-wingeneral.c (make_all_visible): Remove.
1249 (tui_make_all_invisible): Simplify.
1250 * tui/tui-layout.c (tui_make_all_invisible): Move from
1251 tui-wingeneral.c; simplify.
1252 (show_layout): Hoist call to tui_make_all_invisible.
1253 (show_data): Don't call tui_make_all_invisible.
1255 2019-08-13 Tom Tromey <tom@tromey.com>
1257 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1258 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1260 2019-08-13 Tom Tromey <tom@tromey.com>
1262 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1264 (show_source_disasm_command, show_data)
1265 (show_source_or_disasm_and_command): Don't use
1266 tui_set_current_layout_to.
1267 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1268 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1270 (tui_set_current_layout_to): Remove.
1272 2019-08-13 Tom Tromey <tom@tromey.com>
1274 * tui/tui-layout.c (tui_set_layout): Update.
1275 * tui/tui-data.h (struct tui_layout_def): Remove.
1276 (tui_layout_def): Don't declare.
1277 * tui/tui-data.c (layout_def): Remove.
1278 (tui_layout_def): Remove.
1280 2019-08-13 Tom Tromey <tom@tromey.com>
1282 * tui/tui-winsource.h (struct tui_source_window_base)
1283 <clear_detail>: No longer "override".
1284 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1285 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1286 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1287 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1289 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1291 2019-08-13 Tom Tromey <tromey@adacore.com>
1293 * tracepoint.c: Don't include readline.h or history.h.
1295 2019-08-12 Tom Tromey <tom@tromey.com>
1297 * configure: Rebuild.
1298 * configure.ac: Check for readline 7.
1299 * NEWS: Mention readline 7 requirement.
1302 2019-08-12 Tom Tromey <tom@tromey.com>
1304 * mingw-hdep.c (gdb_select): Remove readline hack.
1306 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1308 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1309 when the function fails.
1311 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1313 * s390-tdep.c (s390_type_align): New function.
1314 (s390_gdbarch_init): Set it as type_align gdbarch method.
1316 2019-08-09 Tom de Vries <tdevries@suse.de>
1319 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
1320 pc_low with relocation offset.
1322 2019-08-07 Tom Tromey <tromey@adacore.com>
1324 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1325 (print_frame_args): Update.
1326 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
1328 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1329 * frame.h (struct frame_arg): Add initializers.
1330 <error>: Now a unique_xmalloc_ptr.
1332 2019-08-07 Alan Hayward <alan.hayward@arm.com>
1334 * NEWS: Expand the Pointer Authentication entry.
1335 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
1336 (aarch64_frame_unmask_lr): ... to this.
1337 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
1338 Call aarch64_frame_unmask_lr.
1339 * frame.c (struct frame_info): Add "masked" variable.
1340 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
1341 (fprint_frame): Check for masked pc.
1342 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
1344 * python/py-framefilter.c (py_print_frame): Check for masked pc.
1345 * stack.c (print_frame): Check for masked pc.
1347 2019-08-06 Tom Tromey <tom@tromey.com>
1349 * stabsread.c (patch_block_stabs, read_one_struct_field)
1350 (read_enum_type): Use obstack_strndup.
1351 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
1352 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
1353 * dwarf2read.c (guess_full_die_structure_name)
1354 (anonymous_struct_prefix): Use obstack_strndup.
1355 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
1356 * c-exp.y (yylex): Use obstack_strndup.
1357 * ada-exp.y (write_object_renaming, write_ambiguous_var)
1358 (write_var_or_type): Use obstack_strndup.
1360 2019-08-06 Tom Tromey <tom@tromey.com>
1362 * symfile.c (reread_symbols): Use obstack_strdup.
1363 * stabsread.c (read_type): Use obstack_strdup.
1364 * gdb_obstack.h (obstack_strdup): New overload.
1365 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
1366 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
1367 (dwarf2_canonicalize_name): Use obstack_strdup.
1368 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
1369 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
1372 2019-08-06 Tom Tromey <tom@tromey.com>
1374 * gdb_obstack.h (obstack_strdup): Define.
1375 * gdb_obstack.c (obstack_strdup): Don't define.
1377 2019-08-06 Tom Tromey <tom@tromey.com>
1379 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
1381 * typeprint.c (typedef_hash_table::find_global_typedef): Use
1383 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
1384 * stabsread.c (common_block_start): Use obstack_strdup.
1385 * objfiles.c (set_objfile_main_name, objfile): Use
1387 * namespace.c (add_using_directive): Use obstack_strdup.
1388 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
1389 * jit.c (finalize_symtab): Use obstack_strdup.
1390 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
1391 (guess_partial_die_structure_name, partial_die_info::fixup)
1392 (dwarf2_name): Use obstack_strdup.
1393 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
1395 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
1396 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
1398 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
1400 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1402 * unittests/help-doc-selftests.c: New file.
1403 * Makefile.in: Add the new file.
1405 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1407 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
1408 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
1409 the full first line, except when FOR_VALUE_PREFIX. In this case,
1410 the trailing '.' is not output, and the first character is uppercased.
1411 (print_help_for_command): Update call to print_doc_line.
1412 (print_doc_of_command): Likewise.
1413 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
1414 * cli/cli-option.c (append_indented_doc): Do not append newline.
1415 (build_help_option): Append newline after first appended_indented_doc
1416 only if a second call is done.
1417 (build_help): Append 2 new lines before each option, except the first
1419 * compile/compile.c (_initialize_compile): Add new lines after
1420 %OPTIONS%, when not at the end of the help.
1421 Change help doc or code
1422 producing the help doc to respect the invariants.
1423 * maint-test-options.c (_initialize_maint_test_options): Likewise.
1424 Also removed the new line after 'Options:', as all other commands
1425 do not put an empty line between 'Options:' and the first option.
1426 * printcmd.c (_initialize_printcmd): Likewise.
1427 * stack.c (_initialize_stack): Likewise.
1428 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
1429 incorrectly telling COMMAND is optional.
1430 * ada-lang.c (_initialize_ada_language): Change help doc or code
1431 producing the help doc to respect the invariants.
1432 * ada-tasks.c (_initialize_ada_tasks): Likewise.
1433 * breakpoint.c (_initialize_breakpoint): Likewise.
1434 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
1435 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
1436 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
1437 * cli/cli-style.c (cli_style_option::add_setshow_commands,
1438 _initialize_cli_style): Likewise.
1439 * corelow.c (core_target_info): Likewise.
1440 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
1441 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
1442 * filesystem.c (_initialize_filesystem): Likewise.
1443 * frame.c (_initialize_frame): Likewise.
1444 * gnu-nat.c (add_task_commands): Likewise.
1445 * infcall.c (_initialize_infcall): Likewise.
1446 * infcmd.c (_initialize_infcmd): Likewise.
1447 * interps.c (_initialize_interpreter): Likewise.
1448 * language.c (_initialize_language): Likewise.
1449 * linux-fork.c (_initialize_linux_fork): Likewise.
1450 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
1451 * maint.c (_initialize_maint_cmds): Likewise.
1452 * memattr.c (_initialize_mem): Likewise.
1453 * printcmd.c (_initialize_printcmd): Likewise.
1454 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
1456 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
1457 * record-btrace.c (_initialize_record_btrace): Likewise.
1458 * record-full.c (_initialize_record_full): Likewise.
1459 * record.c (_initialize_record): Likewise.
1460 * regcache-dump.c (_initialize_regcache_dump): Likewise.
1461 * regcache.c (_initialize_regcache): Likewise.
1462 * remote.c (add_packet_config_cmd, init_remote_threadtests,
1463 _initialize_remote): Likewise.
1464 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1465 * serial.c (_initialize_serial): Likewise.
1466 * skip.c (_initialize_step_skip): Likewise.
1467 * source.c (_initialize_source): Likewise.
1468 * stack.c (_initialize_stack): Likewise.
1469 * symfile.c (_initialize_symfile): Likewise.
1470 * symtab.c (_initialize_symtab): Likewise.
1471 * target-descriptions.c (_initialize_target_descriptions): Likewise.
1472 * top.c (init_main): Likewise.
1473 * tracefile-tfile.c (tfile_target_info): Likewise.
1474 * tracepoint.c (_initialize_tracepoint): Likewise.
1475 * tui/tui-win.c (_initialize_tui_win): Likewise.
1476 * utils.c (add_internal_problem_command): Likewise.
1477 * valprint.c (value_print_option_defs): Likewise.
1479 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
1482 * configure.ac: Drop enable-libmcheck support.
1483 * configure, config.in: Rebuild.
1484 * libmcheck.m4: Remove.
1485 * acinclude.m4: Don't include it.
1486 * Makefile.in: Don't distribute it.
1487 * top.c (print_gdb_configuration): Don't mention it.
1489 2019-08-06 Tom Tromey <tom@tromey.com>
1491 * utils.c (set_output_style): Sometimes pass stream to
1493 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
1494 * record-btrace.c (btrace_insn_history): Update.
1495 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
1497 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
1498 Update initializers.
1499 <m_uiout>: New field.
1501 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1502 Remove "uiout" parameter.
1503 (dump_insns): Update.
1504 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
1505 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
1507 2019-08-06 Christian Biesinger <cbiesinger@google.com>
1509 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
1510 (error_in_psymtab_expansion): Likewise.
1511 (lookup_symbol_via_quick_fns): Likewise.
1512 (basic_lookup_transparent_type_quick): Likewise.
1513 (basic_lookup_transparent_type_1): Likewise.
1515 2019-08-06 Tom Tromey <tromey@adacore.com>
1517 * source.c (last_source_error): Now bool.
1518 (print_source_lines_base): Make "noprint" bool. Only open
1519 source file when last_source_visited changes.
1521 2019-08-06 Tom Tromey <tromey@adacore.com>
1523 * annotate.c (annotate_source_line): Use g_source_cache.
1524 * source-cache.c (source_cache::get_plain_source_lines): Change
1525 parameters. Populate m_offset_cache.
1526 (source_cache::ensure): New method.
1527 (source_cache::get_line_charpos): New method.
1528 (extract_lines): Move lower. Change parameters.
1529 (source_cache::get_source_lines): Move lower.
1530 * source-cache.h (class source_cache): Update comment.
1531 <get_line_charpos>: New method.
1532 <get_source_lines>: Update comment.
1533 <clear>: Clear m_offset_cache.
1534 <get_plain_source_lines>: Change parameters.
1535 <ensure>: New method
1536 <m_offset_cache>: New member.
1537 * source.c (forget_cached_source_info_for_objfile): Update.
1538 (info_source_command): Use g_source_cache.
1539 (find_source_lines, open_source_file_with_line_charpos): Remove.
1540 (print_source_lines_base, search_command_helper): Use g_source_cache.
1541 * source.h (open_source_file_with_line_charpos): Don't declare.
1542 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
1543 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
1546 2019-08-06 Tom Tromey <tromey@adacore.com>
1548 * source-cache.c (source_cache::get_plain_source_lines):
1549 Remove "first_line" and "last_line" parameters.
1550 (source_cache::get_source_lines): Cache plain text.
1551 * source-cache.h (class source_cache)
1552 <get_plain_source_lines>: Update.
1554 2019-08-06 Tom Tromey <tromey@adacore.com>
1556 * source-cache.c (extract_lines): No longer a method.
1557 Changed type of parameter. Include final newline.
1558 (selftests::extract_lines_test): New function.
1559 (_initialize_source_cache): Likewise.
1560 * source-cache.h (class source_cache)
1561 <extract_lines>: Don't declare.
1563 2019-08-06 Tom Tromey <tromey@adacore.com>
1565 * breakpoint.c (init_breakpoint_sal): Update.
1566 (breakpoint): Update.
1567 * breakpoint.h (struct breakpoint) <filter>: Now a
1570 2019-08-05 Christian Biesinger <cbiesinger@google.com>
1572 * NEWS: Mention dictionary access on blocks.
1573 * python/py-block.c (blpy_getitem): New function.
1574 (block_object_as_mapping): New struct.
1575 (block_object_type): Use new struct for tp_as_mapping field.
1577 2019-08-05 Christian Biesinger <cbiesinger@google.com>
1579 * objfiles.h (objfile): Add a comment describing partial symbols.
1581 2019-08-05 Tom Tromey <tromey@adacore.com>
1583 * compile/compile.c (_initialize_compile): Use _(), not N_().
1584 * thread.c (_initialize_thread): Use _(), not N_().
1585 * stack.c (_initialize_stack): Use _(), not N_().
1586 * printcmd.c (_initialize_printcmd): Use _(), not N_().
1588 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1590 * dwarf2read.c (struct dw2_symtab_iterator):
1591 <want_specific_block>: Remove.
1592 <block_index>: Change type to gdb::optional.
1593 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
1594 change type of BLOCK_INDEX parameter to gdb::optional.
1595 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
1596 (dw2_lookup_symbol): Don't pass argument for
1597 WANT_SPECIFIC_BLOCK.
1598 (dw2_expand_symtabs_for_function): Don't pass argument for
1599 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
1600 (class dw2_debug_names_iterator)
1601 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
1602 parameter, change BLOCK_INDEX type to gdb::optional.
1603 <m_want_specific_block>: Remove.
1604 <m_block_index>: Change type to gdb::optional.
1605 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
1606 gdb::optional. Re-write in function of gdb::optional.
1607 (dw2_debug_names_lookup_symbol): Don't pass argument for
1608 WANT_SPECIFIC_BLOCK.
1609 (dw2_debug_names_expand_symtabs_for_function): Don't pass
1610 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
1613 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1615 * NEWS: Mention changes to "info sources" command.
1617 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1619 * symtab.c (filename_partial_match_opts): New struct type.
1620 (struct output_source_filename_data): New members
1621 regexp, c_regexp, partial_match.
1622 (output_source_filename): Use new members to decide to print file.
1623 (info_sources_option_defs): New variable.
1624 (make_info_sources_options_def_group, print_info_sources_header,
1625 info_sources_command_completer):
1627 (info_sources_command): Read new optional arguments.
1628 (_initialize_symtab): Update info sources help.
1630 2019-08-02 Alexandre Oliva <oliva@adacore.com>
1632 * ada-lang.c (exception_support_info_v0): Renamed from...
1633 (default_exception_support_info): ... this. Create new
1635 (ada_has_this_exception_support): Look up catch_handlers_sym.
1636 (ada_exception_support_info_sniffer): Try v0 after default.
1638 2019-08-01 Tom Tromey <tromey@adacore.com>
1640 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
1643 2019-08-01 Christian Biesinger <cbiesinger@google.com>
1645 * s12z-tdep.c: Fix include path for s12z-opc.h.
1647 2019-08-01 Alan Hayward <alan.hayward@arm.com>
1649 * NEWS: Require GNU make 3.82.
1651 2019-07-16 Tom Tromey <tom@tromey.com>
1653 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
1656 2019-07-30 Tom Tromey <tromey@adacore.com>
1658 * block.c (contained_in): Remove BLOCK_FUNCTION check.
1660 2019-07-30 Kevin Buettner <kevinb@redhat.com>
1662 * printcmd.c (print_address_symbolic): Print negative offsets.
1663 (build_address_symbolic): Force signed arithmetic when computing
1666 2019-07-30 Christian Biesinger <cbiesinger@google.com>
1668 PR/24474: Add a function to lookup static variables.
1669 * NEWS: Mention this new function.
1670 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
1671 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
1672 * python/python.c (python_GdbMethods): Add new function.
1674 2019-07-29 Christian Biesinger <cbiesinger@google.com>
1676 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
1677 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
1678 (objfpy_lookup_static_symbol): New function.
1679 (objfile_object_methods): Add new functions.
1681 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1683 * NEWS: Mention 'set|show print frame-info'. Mention new
1684 'presence' value for 'frame-arguments'. Mention new '-frame-info'
1685 backtrace argument. Mention that python frame filtering code
1686 is now consistent with what 'backtrace' command prints.
1688 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1690 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
1692 (print_frame_info_auto, print_frame_info_source_line,
1693 print_frame_info_location, print_frame_info_source_and_location,
1694 print_frame_info_location_and_address, print_frame_info_short_location):
1696 (struct frame_print_options): New member print_frame_info.
1697 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
1698 * stack.h (get_user_print_what_frame_info): New declaration.
1699 (frame_show_address): New declaration.
1700 * stack.c (print_frame_arguments_choices): New value 'presence'.
1701 (print_frame_info_auto, print_frame_info_source_line,
1702 print_frame_info_location, print_frame_info_source_and_location,
1703 print_frame_info_location_and_address, print_frame_info_short_location,
1704 print_frame_info_choices, print_frame_info_print_what): New definitions.
1705 (print_frame_args): Only print dots for args if print frame-arguments
1707 (frame_print_option_defs): New element for "frame-info".
1708 (get_user_print_what_frame_info): New function.
1709 (frame_show_address): Make non static. Move comment to stack.h.
1710 (print_frame_info_to_print_what): New function.
1711 (print_frame_info): Update comment. Use fp_opts.print_frame_info
1712 to decide what to print.
1713 (backtrace_command_1): Handle the new print_frame_arguments_presence
1715 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
1716 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
1717 (py_print_frame): In non-mi mode, use LOCATION as default for
1718 print_what, similarly to frame information printed directly by
1719 backtrace command. Handle frame-info user option in non MI mode.
1721 2019-07-27 Kevin Buettner <kevinb@redhat.com>
1723 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
1724 Add case for debugging 32-bit target on 64-bit host. Revise
1727 2019-07-27 Kevin Buettner <kevinb@redhat.com>
1729 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
1730 instead of find_function_entry_range_from_pc.
1732 2019-07-27 Kevin Buettner <kevinb@redhat.com>
1734 * stack.c (find_frame_funname): Remove code which preferred
1735 minsym over symtab sym in "certain pathological cases".
1737 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
1738 parameter. Change type of "do_demangle" to bool.
1739 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1740 Pass suitable "prefer_sym_over_minsym" flag to
1741 build_address_symbolic(). Don't output "+" for negative offsets.
1742 * printcmd.c (print_address_symbolic): Update invocation of
1743 build_address_symbolic to include a "prefer_sym_over_minsym"
1745 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
1746 Restrict cases in which use of minimal symbol is preferred to that
1747 of a found symbol. Update comments.
1749 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
1750 for entry pc when entry pc is out of range for that FDE.
1752 2019-07-26 Brian Callahan <bcallah@openbsd.org>
1755 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
1758 2019-07-25 Christian Biesinger <cbiesinger@google.com>
1760 * python/py-objfile.c (add_separate_debug_file): Fix comment about
1761 this function's Python signature.
1764 2019-07-24 Christian Biesinger <cbiesinger@google.com>
1766 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
1767 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1768 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1769 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
1770 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
1773 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
1775 * h8300-tdep.c (h8300_register_name_common): New.
1776 h8300_register_name): Use h8300_register_name_common.
1777 (h8300s_register_name): Likewise.
1778 (h8300sx_register_name): Likewise.
1779 (h8300h_register_nam): New.
1780 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
1783 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1785 * arm-tdep.c (arm_skip_cmse_entry): New function.
1786 (arm_is_sgstubs_section): New function.
1787 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
1789 2019-07-22 Tom Tromey <tom@tromey.com>
1791 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
1794 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1796 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
1799 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1801 * symtab.c (search_symbols): Adjust msymbol matching type arrays
1802 so that GDB doesn't match any msymbols when searching in the
1804 (print_symbol_info): Print using typedef_print or type_print based
1805 on the type of the symbol. Add updated FIXME comment moved from...
1806 (_initialize_symtab): ... move and update FIXME comment to above.
1808 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1810 * NEWS: Mention adding -q option to "info types".
1811 * symtab.c (struct info_types_options): New struct.
1812 (info_types_options_defs): New variable.
1813 (make_info_types_options_def_group): New function.
1814 (info_types_command): Use gdb::option framework to parse options.
1815 (info_types_command_completer): New function.
1816 (_initialize_symtab): Extend the help text on "info types" and
1817 register command completer.
1819 2019-07-21 Christian Biesinger <cbiesinger@google.com>
1821 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
1822 (lookup_symbol_in_objfile): Change int to block_enum and add a
1823 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
1825 2019-07-20 Christian Biesinger <cbiesinger@google.com>
1827 * MAINTAINERS (Write After Approval): Add self.
1829 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
1831 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
1832 instruction to the dummy code region.
1834 2019-07-19 Tom Tromey <tromey@adacore.com>
1836 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
1837 (ARGSUSED, PARAMS, __func__): Remove rules.
1839 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1841 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
1842 * features/arm/arm-with-iwmmxt.c: Remove.
1843 * features/arm/arm-with-iwmmxt.xml: Remove.
1844 * features/arm/arm-with-m-fpa-layout.c: Remove.
1845 * features/arm/arm-with-m-fpa-layout.xml: Remove.
1846 * features/arm/arm-with-m-vfp-d16.c: Remove.
1847 * features/arm/arm-with-m-vfp-d16.xml: Remove.
1848 * features/arm/arm-with-m.c: Remove.
1849 * features/arm/arm-with-m.xml: Remove.
1850 * features/arm/arm-with-neon.c: Remove.
1851 * features/arm/arm-with-neon.xml: Remove.
1852 * features/arm/arm-with-vfpv2.c: Remove.
1853 * features/arm/arm-with-vfpv2.xml: Remove.
1854 * features/arm/arm-with-vfpv3.c: Remove.
1855 * features/arm/arm-with-vfpv3.xml: Remove.
1857 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1859 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
1861 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1863 * arch/aarch32.c (aarch32_create_target_description): Create
1864 target descriptions using features.
1865 * arch/arm.c (arm_create_target_description)
1866 (arm_create_mprofile_target_description): Likewise.
1867 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
1869 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1871 * Makefile.in: Add new files.
1872 * aarch32-tdep.c: New file.
1873 * aarch32-tdep.h: New file.
1874 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1875 Call aarch32_read_description.
1876 * arch/aarch32.c: New file.
1877 * arch/aarch32.h: New file.
1878 * arch/arm.c (arm_create_target_description)
1879 (arm_create_mprofile_target_description): New function.
1880 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
1881 (arm_create_target_description)
1882 (arm_create_mprofile_target_description): New declaration.
1883 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
1884 read_description functions.
1885 * arm-linux-nat.c (arm_linux_nat_target::read_description):
1887 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
1888 * arm-tdep.c (tdesc_arm_list): New variable.
1889 (arm_register_g_packet_guesses): Call create description functions.
1890 (arm_read_description) (arm_read_mprofile_description): New
1892 * arm-tdep.h (arm_read_description)
1893 (arm_read_mprofile_description): Add declaration.
1894 * configure.tgt: Add new files.
1896 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
1898 * top.c (new_ui_command): Open specified terminal just once.
1900 2019-07-18 Tom Tromey <tromey@adacore.com>
1902 * symtab.c (main_name): Constify return type.
1903 * symfile.c (set_initial_language): Update.
1904 * symtab.h (main_name): Constify return type.
1906 2019-07-17 Tom Tromey <tom@tromey.com>
1908 * tui/tui-winsource.c (tui_update_source_window)
1909 (tui_update_source_window_as_is)
1910 (tui_update_source_windows_with_line): Remove return.
1911 * tui/tui-disasm.c (tui_show_disassem)
1912 (tui_show_disassem_and_update_source): Remove return.
1913 * tui/tui.c (tui_reset): Remove return.
1914 * tui/tui-wingeneral.c
1915 (tui_check_and_display_highlight_if_needed): Remove return.
1917 2019-07-17 Tom Tromey <tom@tromey.com>
1919 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
1921 2019-07-17 Tom Tromey <tom@tromey.com>
1923 * tui/tui-winsource.h (struct tui_exec_info_window)
1924 (struct tui_source_window_base): Move from tui-data.h.
1925 * tui/tui-winsource.c: Move many method definitions from
1926 elsewhere. Remove "structuring" comments.
1927 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
1928 (tui_source_window_base::refresh_window): Move to
1930 * tui/tui-win.c (tui_source_window_base::refresh_all)
1931 (tui_source_window_base::update_tab_width)
1932 (tui_source_window_base::set_new_height)
1933 (tui_source_window_base::do_make_visible_with_new_height): Move to
1935 * tui/tui-source.h: Update.
1936 * tui/tui-source.c (tui_source_window_base::reset): Move to
1938 * tui/tui-disasm.h: Update.
1939 * tui/tui-data.h (struct tui_exec_info_window): Move to
1941 (struct tui_source_window_base): Likewise.
1942 * tui/tui-data.c (tui_source_window_base::clear_detail)
1943 (tui_source_window_base, ~tui_source_window_base): Move to
1946 2019-07-17 Tom Tromey <tom@tromey.com>
1948 * tui/tui-win.c (tui_resize_all)
1949 (tui_source_window_base::update_tab_width)
1950 (tui_adjust_win_heights): Update.
1951 (tui_win_info::make_invisible_and_set_new_height): Rename from
1952 make_invisible_and_set_new_height.
1953 * tui/tui-data.h (struct tui_win_info)
1954 <make_invisible_and_set_new_height>: New method.
1956 2019-07-17 Tom Tromey <tom@tromey.com>
1958 * tui/tui.c: Update.
1959 * tui/tui-source.h (struct tui_source_window): Move from
1961 * tui/tui-layout.c: Update.
1962 * tui/tui-disasm.c: Update.
1963 * tui/tui-data.h (struct tui_source_window): Move to
1966 2019-07-17 Tom Tromey <tom@tromey.com>
1968 * tui/tui-disasm.h (struct tui_disasm_window): Move from
1970 * tui/tui-data.h (struct tui_disasm_window): Move to
1973 2019-07-17 Tom Tromey <tom@tromey.com>
1975 * tui/tui-regs.h (struct tui_data_item_window): Move from
1977 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
1978 * tui/tui-data.h (struct tui_data_item_window): Move to
1980 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
1982 2019-07-17 Tom Tromey <tom@tromey.com>
1984 * tui/tui.c: Update.
1985 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
1986 (tui_cmd_window::max_height): Move to tui-command.c.
1987 * tui/tui-layout.c: Update.
1988 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
1989 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
1991 * tui/tui-command.h (struct tui_cmd_window): Move from
1993 * tui/tui-command.c: Remove "structuring" comments.
1994 (tui_cmd_window::clear_detail)
1995 (tui_cmd_window::do_make_visible_with_new_height)
1996 (tui_cmd_window::max_height): Move from elsewhere.
1998 2019-07-17 Tom Tromey <tom@tromey.com>
2000 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
2002 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
2003 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
2005 2019-07-17 Tom Tromey <tom@tromey.com>
2007 * tui/tui.c: Update.
2008 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
2010 * tui/tui-windata.h: Remove file.
2011 * tui/tui-windata.c: Remove file.
2012 * tui/tui-win.c (tui_data_window::set_new_height)
2013 (tui_data_window::do_make_visible_with_new_height): Move to
2015 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
2016 * tui/tui-regs.c: Remove "structuring" comments.
2017 (tui_data_window::first_data_item_displayed)
2018 (tui_data_window::delete_data_content_windows)
2019 (tui_data_window::erase_data_content)
2020 (tui_data_window::display_all_data)
2021 (tui_data_window::refresh_all)
2022 (tui_data_window::do_scroll_vertical)
2023 (tui_data_window::clear_detail, tui_data_window::set_new_height)
2024 (tui_data_window::do_make_visible_with_new_height)
2025 (tui_data_window::refresh_window): Move from elsewhere.
2026 (_initialize_tui_regs): Move to end of file.
2027 * tui/tui-layout.c: Update.
2028 * tui/tui-hooks.c: Update.
2029 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
2030 * tui/tui-data.c (tui_data_window::clear_detail): Move to
2032 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
2034 2019-07-17 Tom Tromey <tom@tromey.com>
2036 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
2039 2019-07-17 Tom Tromey <tom@tromey.com>
2041 * tui/tui-win.c (tui_source_window_base::set_new_height)
2042 (tui_source_window_base::do_make_visible_with_new_height): Use
2043 m_has_locator field directly.
2044 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
2046 (struct tui_source_window_base) <has_locator>: Likewise.
2048 2019-07-17 Tom Tromey <tom@tromey.com>
2050 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
2052 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
2054 * tui/tui-win.c (tui_source_window_base::set_new_height)
2055 (tui_source_window_base::set_new_height)
2056 (make_invisible_and_set_new_height)
2057 (tui_source_window_base::do_make_visible_with_new_height)
2058 (tui_source_window_base::do_make_visible_with_new_height):
2060 * tui/tui-layout.c (show_source_disasm_command, show_data)
2061 (show_source_or_disasm_and_command): Update.
2062 * tui/tui-layout.c (show_layout): Update.
2064 2019-07-17 Tom Tromey <tom@tromey.com>
2066 * tui/tui-layout.c (make_data_window): Remove.
2067 (show_data): Unify creation and re-initialization cases.
2069 2019-07-17 Tom Tromey <tom@tromey.com>
2071 * tui/tui-layout.c (make_source_window, make_disasm_window):
2073 (show_data): Unify creation and re-initialization cases.
2075 2019-07-17 Tom Tromey <tom@tromey.com>
2077 * tui/tui-layout.c (make_command_window): Remove.
2078 (show_source_disasm_command, show_source_or_disasm_and_command):
2079 Unify creation and re-initialization cases.
2081 2019-07-17 Tom Tromey <tom@tromey.com>
2083 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
2084 creation and re-initialization cases.
2086 2019-07-17 Tom Tromey <tom@tromey.com>
2088 * tui/tui-regs.c (tui_get_register): Return void.
2090 2019-07-17 Tom Tromey <tom@tromey.com>
2092 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
2095 2019-07-17 Tom Tromey <tom@tromey.com>
2097 * tui/tui-layout.c (show_source_disasm_command): Simplify window
2100 2019-07-17 Tom Tromey <tom@tromey.com>
2102 * tui/tui.h (tui_set_layout_by_name): Don't declare.
2103 * tui/tui-regs.c (tui_reg_layout): New function.
2104 (tui_show_registers, tui_reg_command): Use it.
2105 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
2106 (tui_layout_command): Rename from tui_set_layout_by_name. Change
2108 (tui_layout_command): Remove.
2110 2019-07-17 Tom Tromey <tom@tromey.com>
2112 * tui/tui-layout.h (tui/tui-layout): Return void.
2113 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
2115 2019-07-17 Tom Tromey <tom@tromey.com>
2117 * tui/tui-layout.c (show_source_disasm_command, show_data):
2119 (reset_locator): Remove.
2120 (show_source_or_disasm_and_command): Update.
2122 2019-07-17 Tom Tromey <tom@tromey.com>
2124 * tui/tui-source.c (tui_source_window_base::reset): Remove
2126 * tui/tui-layout.c (make_command_window, make_source_window)
2127 (make_disasm_window, make_data_window)
2128 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
2129 (reset_locator, show_source_or_disasm_and_command): Update.
2130 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
2132 (struct tui_source_window_base) <reset>: Likewise.
2134 2019-07-17 Tom Tromey <tom@tromey.com>
2136 * tui/tui-layout.c (show_source_disasm_command): Use
2138 (reset_locator): New function.
2139 (init_and_make_win): Remove.
2140 (show_source_or_disasm_and_command): Use reset_locator.
2142 2019-07-17 Tom Tromey <tom@tromey.com>
2144 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
2146 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
2148 * tui/tui-source.c (tui_source_window_base::reset): New method.
2149 * tui/tui-layout.c (make_command_window): Don't call
2151 (make_source_window, make_disasm_window): Don't call
2152 make_source_or_disasm_window.
2153 (make_data_window): Don't call init_and_make_win. Change calling
2155 (show_source_disasm_command, show_data): Simplify.
2156 (make_source_or_disasm_window): Remove.
2157 (show_source_or_disasm_and_command): Simplify.
2158 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
2159 (struct tui_source_window_base) <reset>: Likewise.
2160 <execution_info>: Remove initializer.
2161 * tui/tui-data.c (tui_source_window_base): Initialize
2164 2019-07-17 Tom Tromey <tom@tromey.com>
2166 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
2169 2019-07-17 Tom Tromey <tom@tromey.com>
2171 * tui/tui.c (tui_rl_other_window): Update.
2172 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
2173 superclass method first. Always iterate over regs_content.
2174 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
2176 * tui/tui-win.c (tui_set_focus_command): Update.
2178 2019-07-17 Tom Tromey <tom@tromey.com>
2180 * tui/tui-win.c (tui_set_focus_command): Rename from
2181 tui_set_focus. Call tui_enable.
2182 (tui_set_focus_command): Remove.
2184 2019-07-17 Tom Tromey <tom@tromey.com>
2186 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2188 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2190 (tui_data_window::refresh_window): Call refresh_window on data
2191 items. Always call superclass refresh_window.
2192 (tui_win_info::refresh): Remove.
2193 (tui_source_window_base::refresh_window): Update.
2194 (tui_refresh_all): Update.
2195 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2197 (show_source_or_disasm_and_command): Likewise.
2198 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2199 (struct tui_source_window_base) <refresh>: Likewise.
2201 2019-07-17 Tom Tromey <tom@tromey.com>
2203 * tui/tui-winsource.c (tui_clear_source_content)
2204 (tui_show_source_content): Update.
2205 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2206 whether content is empty.
2207 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2210 2019-07-17 Tom Tromey <tom@tromey.com>
2212 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2214 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2215 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2217 2019-07-17 Tom Tromey <tom@tromey.com>
2219 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2220 (struct tui_data_item_window): Update.
2222 2019-07-17 Tom Tromey <tom@tromey.com>
2224 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2225 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2228 2019-07-17 Tom Tromey <tom@tromey.com>
2230 * tui/tui-winsource.h (tui_erase_source_content)
2231 (tui_clear_source_content): Remove "display_prompt" parameter.
2232 * tui/tui-winsource.c (tui_update_source_window_as_is)
2233 (tui_update_source_windows_with_addr): Update.
2234 (tui_clear_source_content): Remove "display_prompt" parameter.
2235 (tui_erase_source_content): Likewise. Simplify.
2236 (tui_show_source_content): Update.
2237 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2238 * tui/tui-stack.c (tui_show_frame_info): Update.
2239 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2242 2019-07-17 Tom Tromey <tom@tromey.com>
2244 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2245 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2247 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2250 2019-07-17 Tom Tromey <tom@tromey.com>
2252 * tui/tui-winsource.c (tui_clear_source_content)
2253 (tui_show_source_content, tui_show_exec_info_content)
2254 (tui_clear_exec_info_content): Update.
2255 * tui/tui-stack.c (tui_show_locator_content): Update.
2256 (tui_show_frame_info): Update.
2257 * tui/tui-source.h (tui_source_window): Don't declare.
2258 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2259 from tui_source_is_displayed.
2260 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2262 (struct tui_source_window_base) <content_in_use>: New field. Now
2264 (struct tui_source_window) <showing_source_p>: New method.
2265 (TUI_SRC_WIN): Change cast.
2266 * tui/tui-data.c (tui_initialize_static_data): Update.
2268 2019-07-17 Tom Tromey <tom@tromey.com>
2270 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2272 * tui/tui-source.c (tui_source_window::location_matches_p): New
2274 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2276 * tui/tui-data.h (struct tui_source_window_base)
2277 <location_matches_p>: New method.
2278 (struct tui_source_window, struct tui_disasm_window)
2279 <location_matches_p>: Likewise.
2281 2019-07-17 Tom Tromey <tom@tromey.com>
2283 * tui/tui-win.c (tui_set_win_height_command): Rename from
2285 (tui_set_win_height_command): Remove.
2287 2019-07-17 Tom Tromey <tom@tromey.com>
2289 * tui/tui-source.c (tui_source_window): New constructor. Add
2291 (~tui_source_window): New destructor.
2292 (tui_source_window::style_changed): New method.
2293 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2294 (tui_attach_detach_observers): Update.
2295 * tui/tui-data.h (struct tui_source_window): Make constructor not
2296 inline. Add destructor.
2297 (struct tui_source_window) <style_changed>: New method.
2298 <m_observable>: New member.
2300 2019-07-17 Tom Tromey <tom@tromey.com>
2302 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2303 * tui/tui-win.c (tui_resize_all): Fix typo.
2305 2019-07-17 Tom Tromey <tom@tromey.com>
2307 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2308 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2309 (tui_refresh_all): Remove "list" parameter. Use foreach.
2310 * tui/tui-win.c (window_name_completer): Use foreach.
2311 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2312 (update_tab_width): Likewise.
2313 * tui/tui-layout.c (show_layout): Update.
2314 * tui/tui-data.h (class tui_window_iterator): New.
2315 (struct all_tui_windows): New.
2316 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
2318 2019-07-17 Tom Tromey <tom@tromey.com>
2320 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
2321 parameter. Don't reference globals.
2322 (tui_reg_command): Update.
2324 2019-07-17 Tom Tromey <tom@tromey.com>
2326 * tui/tui-regs.c (tui_show_registers): Simplify.
2328 2019-07-17 Tom Tromey <tom@tromey.com>
2330 * tui/tui-regs.c (tui_show_registers): Update.
2331 (tui_show_register_group): Add win_info parameter.
2333 2019-07-17 Tom Tromey <tom@tromey.com>
2335 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
2336 Rename from tui_display_reg_element_at_line.
2337 (tui_data_window::display_registers_from_line): Update.
2338 * tui/tui-data.h (struct tui_data_window)
2339 <display_reg_element_at_line>: New method.
2341 2019-07-17 Tom Tromey <tom@tromey.com>
2343 * tui/tui-regs.h (tui_display_registers_from)
2344 (tui_display_registers_from_line): Don't declare.
2345 * tui/tui-windata.c (tui_data_window::display_all_data)
2346 (tui_data_window::refresh_all)
2347 (tui_data_window::do_scroll_vertical): Update.
2348 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
2349 from tui_display_registers_from.
2350 (tui_display_reg_element_at_line): Update.
2351 (tui_data_window::display_registers_from_line): Rename from
2352 tui_display_registers_from_line.
2353 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
2354 display_registers_from_line>: New methods.
2356 2019-07-17 Tom Tromey <tom@tromey.com>
2358 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
2359 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
2360 from tui_erase_data_content.
2361 (tui_data_window::display_all_data)
2362 (tui_data_window::refresh_all)
2363 (tui_data_window::do_scroll_vertical): Update.
2364 * tui/tui-regs.c (tui_show_registers): Update.
2365 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
2368 2019-07-17 Tom Tromey <tom@tromey.com>
2370 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
2373 (tui_data_window::delete_data_content_windows): Rename from
2374 tui_delete_data_content_windows.
2375 (tui_data_window::display_all_data)
2376 (tui_data_window::do_scroll_vertical): Update.
2377 * tui/tui-data.h (struct tui_data_window)
2378 <delete_data_content_windows>: New method.
2380 2019-07-17 Tom Tromey <tom@tromey.com>
2382 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
2383 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
2385 2019-07-17 Tom Tromey <tom@tromey.com>
2387 * tui/tui-windata.h (tui_display_all_data): Don't declare.
2388 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
2389 from tui_display_all_data.
2391 (tui_data_window::do_make_visible_with_new_height): Update.
2392 * tui/tui-regs.c (tui_show_registers): Update.
2393 * tui/tui-layout.c (tui_set_layout): Update.
2394 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
2397 2019-07-17 Tom Tromey <tom@tromey.com>
2399 * tui/tui-windata.h (tui_display_data_from): Don't declare.
2400 * tui/tui-windata.c (tui_display_data_from): Remove.
2401 (tui_data_window::refresh_all): Update.
2403 2019-07-17 Tom Tromey <tom@tromey.com>
2405 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
2406 * tui/tui-windata.c (tui_display_data_from_line): Remove.
2407 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
2408 tui_display_registers_from_line.
2409 * tui/tui-regs.h (tui_display_registers_from_line): Update.
2410 * tui/tui-regs.c (tui_display_registers_from_line): Remove
2411 "force_display" parameter.
2413 2019-07-17 Tom Tromey <tom@tromey.com>
2415 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
2417 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
2418 Rename from tui_first_reg_element_no_inline.
2419 (tui_display_reg_element_at_line)
2420 (tui_display_registers_from_line): Update.
2421 * tui/tui-data.h (struct tui_data_window)
2422 <first_reg_element_no_inline>: New method.
2424 2019-07-17 Tom Tromey <tom@tromey.com>
2426 * tui/tui-windata.c (tui_display_data_from)
2427 (tui_data_window::do_scroll_vertical): Update.
2428 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
2429 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
2430 Rename from tui_line_from_reg_element_no.
2431 (tui_display_registers_from_line): Update.
2432 * tui/tui-data.h (struct tui_data_window)
2433 <line_from_reg_element_no>: New method.
2435 2019-07-17 Tom Tromey <tom@tromey.com>
2437 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
2438 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
2439 tui_last_regs_line_no.
2440 (tui_display_reg_element_at_line)
2441 (tui_display_registers_from_line): Update.
2442 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
2445 2019-07-17 Tom Tromey <tom@tromey.com>
2448 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
2449 (tui_update_breakpoint_info): Add "being_deleted" parameter.
2450 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2451 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
2452 (tui_update_breakpoint_info): Likewise.
2453 * tui/tui-hooks.c (tui_event_create_breakpoint)
2454 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
2457 2019-07-17 Tom Tromey <tom@tromey.com>
2459 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
2461 2019-07-17 Tom Tromey <tom@tromey.com>
2463 * tui/tui-winsource.c (tui_update_source_window_as_is)
2464 (tui_update_source_windows_with_addr): Update.
2465 * tui/tui-source.h (tui_set_source_content)
2466 (tui_show_symtab_source): Add "win_info" parameter.
2467 * tui/tui-source.c (tui_set_source_content): Add "win_info"
2469 (tui_show_symtab_source): Likewise.
2471 2019-07-17 Tom Tromey <tom@tromey.com>
2473 * tui/tui-wingeneral.c
2474 (tui_check_and_display_highlight_if_needed): Check can_highlight.
2476 2019-07-17 Tom Tromey <tom@tromey.com>
2478 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
2479 (struct tui_cmd_window) <can_scroll>: New method.
2480 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
2483 2019-07-17 Tom Tromey <tromey@adacore.com>
2485 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
2486 do_field_signed>: Rename. Change type of "value".
2487 * ui-out.c (ui_out::field_signed): Rename from field_int.
2488 Change type of "value".
2489 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
2491 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
2492 do_field_int. Change type of "value".
2493 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
2494 do_field_int. Change type of "value".
2495 * tracepoint.c (trace_status_mi, tfind_1)
2496 (print_one_static_tracepoint_marker): Update.
2497 * thread.c (print_thread_info_1, print_selected_thread_frame):
2499 * stack.c (print_frame, print_frame_info): Update.
2500 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
2502 * source.c (print_source_lines_base): Update.
2503 * skip.c (info_skip_command): Update.
2504 * record-btrace.c (btrace_ui_out_decode_error)
2505 (btrace_call_history_src_line): Update.
2506 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
2508 * progspace.c (print_program_space): Update.
2509 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
2510 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
2511 do_field_int. Change type of "value".
2512 * mi/mi-out.c (mi_ui_out::do_table_begin)
2513 (mi_ui_out::do_table_header): Update.
2514 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
2516 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
2517 (mi_cmd_data_list_changed_registers, output_register)
2518 (mi_cmd_data_read_memory, mi_load_progress)
2519 (mi_cmd_trace_frame_collected): Update.
2520 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
2522 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2523 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
2524 (mi_cmd_var_list_children, varobj_update_one): Update.
2525 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
2526 (mi_cmd_stack_list_args, list_arg_or_local): Update.
2527 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
2528 * inferior.c (print_inferior): Update.
2529 * gdb_bfd.c (print_one_bfd): Update.
2530 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2532 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
2533 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
2534 do_field_int. Change type of "value".
2535 * cli-out.c (cli_ui_out::do_field_signed): Rename from
2536 do_field_int. Change type of "value".
2537 * breakpoint.c (watchpoint_check, print_breakpoint_location)
2538 (print_one_breakpoint_location, print_it_catch_fork)
2539 (print_one_catch_fork, print_it_catch_vfork)
2540 (print_one_catch_vfork, print_it_catch_solib)
2541 (print_it_catch_exec, print_it_ranged_breakpoint)
2542 (print_mention_watchpoint, print_mention_masked_watchpoint)
2543 (bkpt_print_it, update_static_tracepoint): Update.
2544 * break-catch-throw.c (print_it_exception_catchpoint): Update.
2545 * break-catch-syscall.c (print_it_catch_syscall): Update.
2546 * ada-tasks.c (print_ada_task_info): Update.
2547 * ada-lang.c (print_it_exception, print_mention_exception):
2550 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2552 PR breakpoints/24541
2553 * gdbarch.c: Regenerate.
2554 * gdbarch.h: Regenerate.
2555 * gdbarch.sh: Adjust return type and parameter types for
2556 'stap_adjust_register'.
2557 (i386_stap_adjust_register): Adjust signature and return new
2559 * stap-probe.c (stap_parse_register_operand): Adjust use of
2560 'gdbarch_stap_adjust_register'.
2562 2019-07-17 Tom Tromey <tromey@adacore.com>
2564 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
2566 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
2568 (struct s390_process_info): Add initializers.
2569 (s390_add_process): Use new.
2570 (s390_linux_nat_target::low_forget_process): Use delete.
2571 (s390_linux_nat_target::low_new_fork)
2572 (s390_linux_nat_target::stopped_by_watchpoint)
2573 (s390_linux_nat_target::low_prepare_to_resume)
2574 (s390_linux_nat_target::insert_watchpoint)
2575 (s390_linux_nat_target::insert_hw_breakpoint)
2576 (s390_linux_nat_target::remove_watchpoint)
2577 (s390_linux_nat_target::remove_hw_breakpoint): Update.
2579 2019-07-16 John Baldwin <jhb@FreeBSD.org>
2581 * aarch64-fbsd-nat.c: Include regcache.h.
2582 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
2584 (aarch64_fbsd_nat_target::fetch_registers)
2585 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
2587 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
2589 2019-07-16 John Baldwin <jhb@FreeBSD.org>
2591 * fbsd-nat.c: Include gdbarch.h.
2593 2019-07-15 Tom Tromey <tromey@adacore.com>
2595 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
2597 2019-07-15 Tom Tromey <tromey@adacore.com>
2599 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
2600 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
2601 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
2602 * cli-out.c (cli_ui_out::do_field_int): New method.
2603 * ui-out.c (ui_out::field_unsigned): New method.
2604 * symfile.c (generic_load): Use field_unsigned.
2605 (print_transfer_performance): Likewise.
2606 * record-btrace.c (ui_out_field_uint): Remove.
2607 (btrace_call_history_insn_range, btrace_call_history): Use
2609 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2611 * ui-out.h (class ui_out) <field_unsigned>: New method.
2612 <do_field_unsigned>: Likewise.
2614 2019-07-15 Tom Tromey <tromey@adacore.com>
2616 * mi/mi-main.c (list_available_thread_groups): Use field_string.
2617 * mi/mi-interp.c (mi_memory_changed): Use field_string.
2618 * target.c (flash_erase_command): Use field_string.
2619 * infrun.c (print_signal_received_reason): Use field_string.
2620 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
2621 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
2623 * ada-tasks.c (print_ada_task_info): Use field_string.
2625 2019-07-15 Tom Tromey <tromey@adacore.com>
2627 * target.c (flash_erase_command): Use field_core_addr.
2628 * symfile.c (generic_load): Use field_core_addr.
2629 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2630 Use field_core_addr.
2631 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
2634 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2636 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
2637 value if its desired type is smaller than a CORE_ADDR and signed.
2639 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2641 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
2642 of changes to field names, and use new is_reference field to
2643 decide if a property is a reference or not.
2644 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
2646 (struct dwarf2_property_baton): Update header comment, rename
2647 'referenced_type' to 'property_type' and update comments.
2648 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
2649 default property type, store in property baton, update to take
2650 accound of renamed field.
2651 (read_func_scope): Update call to attr_to_dynamic_prop.
2652 (read_array_type): Likewise.
2653 (dwarf2_per_cu_addr_sized_int_type): New function.
2654 (read_subrange_index_type): Move type finding code to
2655 dwarf2_per_cu_addr_sized_int_type.
2656 (read_subrange_type): Update calls to attr_to_dynamic_prop.
2657 (dwarf2_per_cu_addr_type): New function.
2658 (set_die_type): Update calls to attr_to_dynamic_prop.
2660 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2662 * dwarf2read.c (read_subrange_index_type): New function.
2663 (read_subrange_type): Move code into new function and call it.
2664 * gdbtypes.c (create_range_type): Add some asserts.
2666 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2668 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
2669 update return statements.
2670 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
2671 declaration, and update comment to match.
2672 * gdbtypes.c (resolve_dynamic_array): Update call to
2673 dwarf2_evaluate_property to match new return type.
2675 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2677 * valarith.c (value_subscripted_rvalue): Change lowerbound
2678 parameter type from int to LONGEST.
2679 * value.h (value_subscripted_rvalue): Likewise in declaration.
2681 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2683 * cli/cli-utils.c (info_print_command_completer): New function.
2684 * cli/cli-utils.h: Add 'completer.h' include, and forward
2685 declaration for 'struct cmd_list_element'.
2686 (info_print_command_completer): Declare.
2687 * stack.c (_initialize_stack): Add completer for 'info locals' and
2689 * symtab.c (_initialize_symtab): Add completer for 'info
2690 variables' and 'info functions'.
2691 * NEWS: Mention completion for additional info commands.
2693 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2695 * cli/cli-utils.c (extract_info_print_args): Delete.
2696 (extract_arg_maybe_quoted): Delete.
2697 (info_print_options_defs): New variable.
2698 (make_info_print_options_def_group): New function.
2699 (extract_info_print_options): Define new function.
2700 * cli/cli-utils.h (extract_info_print_args): Delete.
2701 (struct info_print_options): New structure.
2702 (extract_info_print_options): Declare new function.
2703 * stack.c (info_locals_command): Update to use new
2704 extract_info_print_options, also add a header comment.
2705 (info_args_command): Likewise.
2706 * symtab.c (info_variables_command): Likewise.
2707 (info_functions_command): Likewise.
2709 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2711 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
2712 to extract string arguments.
2713 * common/common-utils.c (extract_string_maybe_quoted): New function.
2714 * common/common-utils.h (extract_string_maybe_quoted): Declare.
2716 2019-07-11 Tom Tromey <tromey@adacore.com>
2718 * main.c (get_init_files): Use GDBINIT, not gdbinit.
2719 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
2720 * top.h (gdbinit): Don't declare.
2721 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
2723 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
2724 * top.c (gdb_init): Don't call init_cli_cmds.
2726 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
2728 2019-07-11 Tom Tromey <tromey@adacore.com>
2730 * python/py-inferior.c (add_thread_object): Don't use thread_obj
2731 after it has been moved.
2733 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2735 * valops.c (value_must_coerce_to_target): Change return type to
2737 * value.h (value_must_coerce_to_target): Likewise.
2739 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
2741 * breakpoint.c (is_hardware_watchpoint): Remove
2742 forward-declaration.
2743 (is_masked_watchpoint): Change return type to bool.
2744 (is_tracepoint): Likewise.
2745 (is_breakpoint): Likewise.
2746 (is_hardware_watchpoint): Likewise.
2747 (is_watchpoint): Likewise.
2748 (is_no_memory_software_watchpoint): Likewise.
2749 (is_catchpoint): Likewise.
2750 (breakpoint_1): Make FILTER parameter's return type bool.
2751 is_masked_watchpoint): Change return type to bool.
2752 (save_breakpoints): Make FILTER parameter's return type bool.
2753 * breakpoint.h (is_breakpoint): Change return type to bool.
2754 (is_watchpoint): Likewise.
2755 (is_catchpoint): Likewise.
2756 (is_tracepoint): Likewise.
2758 2019-07-10 Tom Tromey <tom@tromey.com>
2760 * defs.h: Don't include gdbarch.h.
2761 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
2762 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
2763 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
2764 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
2765 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
2766 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
2767 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
2768 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
2769 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
2770 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
2771 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
2772 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
2773 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
2774 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
2775 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
2776 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
2777 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
2778 record-btrace.c, record.h, regcache-dump.c, regcache.h,
2779 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
2780 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
2781 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
2782 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
2783 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
2784 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
2785 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
2786 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
2787 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
2789 2019-07-10 Tom Tromey <tromey@adacore.com>
2791 * ada-lang.h (is_ada_exception_catchpoint): Declare.
2792 * breakpoint.c (init_ada_exception_breakpoint): Register as
2794 (print_one_breakpoint_location, print_one_breakpoint): Use
2795 is_ada_exception_catchpoint.
2796 * ada-lang.c (class ada_catchpoint_location): Pass
2797 bp_loc_software_breakpoint to bp_location constructor.
2798 (is_ada_exception_catchpoint): New function.
2800 2019-07-10 Tom Tromey <tromey@adacore.com>
2802 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
2804 (struct arm_exidx_entry): New method operator<.
2805 (struct arm_exidx_data) <section_maps>: Change type.
2806 (arm_exidx_data_free): Remove.
2807 (arm_exidx_data_key): Change type. Move lower.
2808 (arm_exidx_new_objfile): Update.
2809 (arm_compare_exidx_entries): Remove.
2810 (arm_find_exidx_entry, _initialize_arm_tdep)
2812 2019-07-10 Tom Tromey <tromey@adacore.com>
2814 * solib-spu.c (ocl_program_data_key): Change type.
2815 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
2818 2019-07-10 Tom Tromey <tromey@adacore.com>
2820 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
2821 (struct solib_aix_inferior_data) <library_list>: Change type.
2822 (solib_aix_inferior_data_handle): Change type.
2823 (get_solib_aix_inferior_data): Update.
2824 (solib_aix_free_library_list): Remove.
2825 (library_list_start_library): Update.
2826 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
2828 (solib_aix_get_library_list)
2829 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
2830 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
2832 2019-07-10 Tom Tromey <tromey@adacore.com>
2834 * solib-dsbt.c (struct dsbt_info): Add initializers.
2835 (solib_dsbt_pspace_data): Change type.
2836 (dsbt_pspace_data_cleanup): Remove.
2837 (get_dsbt_info, _initialize_dsbt_solib): Update.
2839 2019-07-10 Tom Tromey <tromey@adacore.com>
2841 * spu-tdep.c (spu_overlay_data): Change type.
2842 (spu_get_overlay_table, spu_overlay_new_objfile)
2843 (_initialize_spu_tdep): Update.
2845 2019-07-10 Tom Tromey <tromey@adacore.com>
2847 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
2849 (dbx_objfile_data_key): Change type and declare later.
2850 (DBX_SYMFILE_INFO): Rewrite.
2851 * dbxread.c (dbx_objfile_data_key): Change type.
2852 (dbx_symfile_init): Update.
2853 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
2854 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2855 (stabsect_build_psymtabs, _initialize_dbxread): Update.
2857 2019-07-10 Tom Tromey <tromey@adacore.com>
2859 * jit.c (jit_program_space_key): Change type. Move lower.
2860 (get_jit_program_space_data): Update.
2861 (jit_program_space_data_cleanup): Remove.
2862 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
2864 (struct jit_program_space_data): Add initializers.
2866 2019-07-10 Tom Tromey <tromey@adacore.com>
2868 * solib-darwin.c (struct darwin_info): Add initializers.
2869 (solib_darwin_pspace_data): Change type.
2870 (darwin_pspace_data_cleanup): Remove.
2871 (get_darwin_info, _initialize_darwin_solib): Update.
2873 2019-07-10 Tom Tromey <tromey@adacore.com>
2875 * remote-sim.c (struct sim_inferior_data): Add initializers,
2876 constructor, and destructor.
2877 (sim_inferior_data_key): Change type. Move lower.
2878 (check_for_duplicate_sim_descriptor): Update.
2879 (get_sim_inferior_data): Use new. Update.
2880 (~sim_inferior_data_cleanup): Rename from
2881 sim_inferior_data_cleanup. Simplify.
2882 (gdbsim_close_inferior, simulator_command)
2883 (sim_command_completer, _initialize_remote_sim): Update.
2884 (next_pid, INITIAL_PID): Move earlier.
2886 2019-07-10 Tom Tromey <tromey@adacore.com>
2888 * python/python-internal.h (create_thread_object): Return
2890 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
2891 * python/py-inferior.c (struct threadlist_entry): Add
2893 <thread_obj>: Now a gdbpy_ref.
2894 (thread_to_thread_object): Update.
2895 (add_thread_object): Use new.
2896 (delete_thread_object): Use delete.
2897 (infpy_threads): Update.
2898 (py_free_inferior): Update. Construct "inf_obj" after acquiring
2901 2019-07-10 Tom Tromey <tromey@adacore.com>
2903 * valops.c (value_cast): Specialize error message for Ada.
2905 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2907 * breakpoint.c (breakpoint_1): Update doc and parameter names.
2909 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2911 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
2912 bpstat_should_step): Return bool, adjust comments.
2913 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
2914 bpstat_should_step): Likewise.
2916 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2918 * features/Makefile: Use feature target descriptions for Arm.
2919 * features/arm/arm-core.c: Generate new file.
2920 * features/arm/arm-fpa.c: Likewise.
2921 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
2922 * features/arm/arm-m-profile.c: Likewise.
2923 * features/arm/arm-vfpv2.c: Likewise.
2924 * features/arm/arm-vfpv3.c: Likewise.
2925 * features/arm/xscale-iwmmxt.c: Likewise.
2926 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
2928 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2930 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
2933 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2935 * features/aarch64-pauth.c: Regenerate.
2937 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
2939 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
2941 (bpstat_what): Use false instead of 0.
2943 2019-07-09 Pedro Alves <palves@redhat.com>
2945 * break-catch-throw.c (is_exception_catchpoint): New.
2946 * breakpoint.c (print_one_breakpoint_location): New parameter
2947 'raw_loc'. Handle it. Use
2948 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
2949 looking at the breakpoint's type.
2950 (print_one_breakpoint): If handling "maint info breakpoints", also
2951 print locations of exception catchpoints.
2952 * breakpoint.h (is_exception_catchpoint): Declare.
2954 2019-07-09 Pedro Alves <palves@redhat.com>
2956 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
2958 (allocate_location_exception_catchpoint): New.
2959 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
2960 (initialize_throw_catchpoint_ops): Install
2961 allocate_location_exception_catchpoint as allocate_location
2963 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
2964 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
2966 (breakpoint_address_is_meaningful): Delete.
2967 (bl_address_is_meaningful): New.
2968 (breakpoint_locations_match): Adjust comment.
2969 (bp_location_from_bp_type): New, factored out of...
2970 (bp_location::bp_location(breakpoint *)): ... this.
2971 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
2973 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
2974 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
2975 breakpoint_address_is_meaningful.
2976 (bp_locations_compare): Adjust comment.
2977 (update_global_location_list): Use bl_address_is_meaningful
2978 instead of breakpoint_address_is_meaningful.
2979 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
2981 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
2982 * python/py-breakpoint.c (bppy_get_location): No longer check
2983 whether location is null.
2985 2019-07-09 Pedro Alves <palves@redhat.com>
2988 * breakpoint.c (print_one_breakpoint_location): Remove
2989 single-location assert.
2991 2019-07-09 Tom Tromey <tom@tromey.com>
2993 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
2994 * configure: Rebuild.
2995 * configure.ac: Change common to gdbsupport.
2996 * gdbsupport: Rename from common.
2997 * acinclude.m4: Change common to gdbsupport.
2998 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
2999 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
3001 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
3002 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
3003 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
3004 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
3005 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
3006 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
3007 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
3008 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
3009 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
3010 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
3011 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
3012 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
3013 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
3014 coff-pe-read.c, command.h, compile/compile-c-support.c,
3015 compile/compile-c.h, compile/compile-cplus-symbols.c,
3016 compile/compile-cplus-types.c, compile/compile-cplus.h,
3017 compile/compile-loc2c.c, compile/compile.c, completer.c,
3018 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
3019 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
3020 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
3021 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
3022 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
3023 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
3024 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
3025 features/aarch64-core.c, features/aarch64-fpu.c,
3026 features/aarch64-pauth.c, features/aarch64-sve.c,
3027 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
3028 features/i386/32bit-core.c, features/i386/32bit-linux.c,
3029 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
3030 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
3031 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
3032 features/i386/64bit-core.c, features/i386/64bit-linux.c,
3033 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
3034 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
3035 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
3036 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
3037 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
3038 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
3039 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
3040 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
3041 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
3042 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
3043 go32-nat.c, guile/guile.c, guile/scm-ports.c,
3044 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
3045 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
3046 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
3047 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
3048 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
3049 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
3050 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
3051 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
3052 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
3053 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
3054 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
3055 minsyms.c, mips-linux-tdep.c, namespace.h,
3056 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
3057 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
3058 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
3059 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
3060 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
3061 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
3062 nat/linux-waitpid.c, nat/mips-linux-watch.c,
3063 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
3064 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
3065 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
3066 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
3067 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
3068 procfs.c, producer.c, progspace.h, psymtab.h,
3069 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
3070 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
3071 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
3072 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
3073 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
3074 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
3075 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
3076 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
3077 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
3078 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
3079 target-memory.c, target.c, target.h, target/waitstatus.c,
3080 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
3081 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
3082 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
3083 unittests/array-view-selftests.c,
3084 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
3085 unittests/common-utils-selftests.c,
3086 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
3087 unittests/format_pieces-selftests.c,
3088 unittests/function-view-selftests.c,
3089 unittests/lookup_name_info-selftests.c,
3090 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
3091 unittests/mkdir-recursive-selftests.c,
3092 unittests/observable-selftests.c,
3093 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
3094 unittests/parse-connection-spec-selftests.c,
3095 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
3096 unittests/scoped_fd-selftests.c,
3097 unittests/scoped_mmap-selftests.c,
3098 unittests/scoped_restore-selftests.c,
3099 unittests/string_view-selftests.c, unittests/style-selftests.c,
3100 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
3101 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
3102 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
3103 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
3104 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
3105 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
3107 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3109 * linespec.c (decode_digits_list_mode): Set explicit_line to a
3111 (decode_digits_ordinary): Set explicit_line field in sal.
3112 * symtab.c (skip_prologue_sal): Don't skip prologue for a
3113 symtab_and_line that was set on an explicit line number in
3114 assembler code. Do always update the recorded symtab and line if
3115 we do skip the prologue.
3117 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3119 * breakpoint.c (set_breakpoint_location_function): Remove
3120 explicit_loc parameter.
3121 (momentary_breakpoint_from_master): Update call to
3122 set_breakpoint_location_function.
3123 (add_location_to_breakpoint): Likewise.
3125 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3127 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
3128 required features based on default bfd type when no specific bfd
3131 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3133 * NEWS: Mention that GDB printf and eval commands can now print
3134 C-style and Ada-style convenience var strings without
3135 calling the inferior.
3136 * printcmd.c (printf_c_string): Locally print GDB internal var
3137 instead of transiting via the inferior.
3138 (printf_wide_c_string): Likewise.
3140 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3142 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
3144 2019-07-04 Tom Tromey <tom@tromey.com>
3147 * tui/tui-winsource.c (tui_clear_source_content): Update.
3148 (tui_source_window_base::set_is_exec_point_at): Fix comment.
3149 (tui_update_breakpoint_info): Update.
3150 (tui_set_exec_info_content): Update.
3151 * tui/tui-source.c (tui_set_source_content_nil): Update.
3152 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
3154 * tui/tui-data.h (enum tui_bp_flag): New.
3155 (tui_bp_flags): New enum flags type.
3156 (struct tui_source_element) <break_mode>: Change type. Rename
3158 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
3159 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
3161 * tui/tui-winsource.h: Fix comment.
3163 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3165 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
3166 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
3167 (store_fpregs_to_thread)
3168 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3169 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
3170 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
3171 (IWMMXT_REGS_SIZE): Add define.
3172 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
3173 (fetch_vfp_regs, store_vfp_regs)
3174 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3175 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
3177 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3179 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
3181 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
3182 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
3183 (ARM_INT_REGISTER_SIZE): ...to this.
3184 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3185 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3186 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3187 (arm_linux_collect_gregset, supply_nwfpe_register)
3188 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3190 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3191 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3192 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3193 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3194 (arm_return_in_memory, arm_store_return_value)
3195 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3196 (arm_record_ld_st_multiple): Likewise.
3197 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3198 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3200 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3202 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3203 AARCH64_DISPLACED_MODIFIED_INSNS.
3204 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3205 (aarch64_displaced_step_copy_insn): Likewise.
3206 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3207 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3208 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3209 ARM_DISPLACED_MODIFIED_INSNS.
3210 * arm-tdep.c (arm_gdbarch_init): Likewise.
3211 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3212 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3213 (struct arm_displaced_step_closure): Use
3214 ARM_DISPLACED_MODIFIED_INSNS.
3216 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3218 * features/Makefile: Remove unused xml files.
3219 * features/aarch64.xml: Remove.
3220 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3221 * features/i386/amd64-avx-avx512.xml: Remove.
3222 * features/i386/amd64-avx-linux.xml: Remove.
3223 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3224 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3225 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3226 * features/i386/amd64-avx-mpx.xml: Remove.
3227 * features/i386/amd64-avx.xml: Remove.
3228 * features/i386/amd64-linux.xml: Remove.
3229 * features/i386/amd64-mpx-linux.xml: Remove.
3230 * features/i386/amd64-mpx.xml: Remove.
3231 * features/i386/amd64.xml: Remove.
3232 * features/i386/i386-avx-avx512-linux.xml: Remove.
3233 * features/i386/i386-avx-avx512.xml: Remove.
3234 * features/i386/i386-avx-linux.xml: Remove.
3235 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3236 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3237 * features/i386/i386-avx-mpx-linux.xml: Remove.
3238 * features/i386/i386-avx-mpx.xml: Remove.
3239 * features/i386/i386-avx.xml: Remove.
3240 * features/i386/i386-linux.xml: Remove.
3241 * features/i386/i386-mmx-linux.xml: Remove.
3242 * features/i386/i386-mmx.xml: Remove.
3243 * features/i386/i386-mpx-linux.xml: Remove.
3244 * features/i386/i386-mpx.xml: Remove.
3245 * features/i386/i386.xml: Remove.
3246 * features/i386/x32-avx-avx512-linux.xml: Remove.
3247 * features/i386/x32-avx-linux.xml: Remove.
3248 * features/i386/x32-linux.xml: Remove.
3250 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3252 * regformats/aarch64.dat: Remove.
3253 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3254 * regformats/i386/amd64-avx-linux.dat: Remove.
3255 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3256 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3257 * regformats/i386/amd64-linux.dat: Remove.
3258 * regformats/i386/amd64-mpx-linux.dat: Remove.
3259 * regformats/i386/amd64.dat: Remove.
3260 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3261 * regformats/i386/i386-avx-linux.dat: Remove.
3262 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3263 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3264 * regformats/i386/i386-linux.dat: Remove.
3265 * regformats/i386/i386-mmx-linux.dat: Remove.
3266 * regformats/i386/i386-mpx-linux.dat: Remove.
3267 * regformats/i386/i386.dat: Remove.
3268 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3269 * regformats/i386/x32-avx-linux.dat: Remove.
3270 * regformats/i386/x32-linux.dat: Remove.
3272 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3274 * aarch64-tdep.c: Remove xml self tests.
3275 * amd64-linux-tdep.c: Likewise.
3276 * amd64-tdep.c: Likewise.
3277 * i386-linux-tdep.c: Likewise.
3278 * i386-tdep.c: Likewise.
3280 2019-07-03 Pedro Alves <palves@redhat.com>
3283 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3284 (pipe_cmd_option_defs): New.
3285 (make_pipe_cmd_options_def_group): New.
3286 (pipe_command): Use gdb::option::process_options.
3287 (pipe_command_completer): New function.
3288 (_initialize_cli_cmds): Install completer for "pipe" command.
3290 2019-07-03 Pedro Alves <palves@redhat.com>
3292 * cli/cli-option.c (union option_value) <string>: New field.
3293 (struct option_def_and_value): Add ctor, move ctor, dtor and
3294 use DISABLE_COPY_AND_ASSIGN.
3295 (option_def_and_value::clear_value): New.
3296 (parse_option, save_option_value_in_ctx, get_val_type_str)
3297 (add_setshow_cmds_for_options): Handle var_string.
3298 * cli-option.h (union option_def::var_address) <string>: New
3300 (struct string_option_def): New.
3301 * maint-test-options.c (struct test_options_opts): Add default
3302 ctor and use DISABLE_COPY_AND_ASSIGN.
3303 <string_opt>: New field.
3304 (test_options_opts::~test_options_opts): New.
3305 (test_options_opts::dump): Also dump "-string".
3306 (test_options_option_defs): Install "string.
3308 2019-07-03 Pedro Alves <palves@redhat.com>
3310 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3311 option_value with a null enumeration.
3312 (complete_options): Save the option values in the context.
3313 (save_option_value_in_ctx): New, factored out from ...
3314 (process_options): ... here.
3315 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
3317 * maint-test-options.c (test_options_opts::dump): New, factored
3319 (maintenance_test_options_command_mode): ... here.
3320 (maintenance_test_options_command_completion_result): Delete.
3321 (maintenance_test_options_command_completion_text): Update
3323 (maintenance_show_test_options_completion_result): Change
3324 prototype. Just print
3325 maintenance_test_options_command_completion_text.
3326 (save_completion_result): New.
3327 (maintenance_test_options_completer_mode): Pass options context to
3328 complete_options, and then save a dump.
3329 (_initialize_maint_test_options): Use add_cmd to install "maint
3330 show test-options-completion-result".
3332 2019-07-03 Pedro Alves <palves@redhat.com>
3334 * NEWS (New commands): Mention "with" and "maint with".
3335 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
3336 (with_command, with_command_completer): New.
3337 (pipe_command): Adjust to new repeat_previous
3339 (_initialize_cli_cmds): Install the "with" command and its "w"
3341 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
3343 * cli/cli-setshow.c (parse_cli_var_uinteger)
3344 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
3345 argument strings for all var_types.
3346 (get_setshow_command_value_string): New, factored out from ...
3347 (do_show_command): ... this.
3348 * cli/cli-setshow.h: Include <string>.
3349 (get_setshow_command_value_string): Declare.
3350 * command.h (repeat_previous): Now returns const char *. Adjust
3352 * maint.c: Include "cli/cli-cmds.h".
3353 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
3354 (_initialize_maint_cmds): Register the "maintenance with" command.
3355 * top.c (repeat_previous): Move bits from pipe_command here:
3356 Return the saved command line, if any; error out if there's no
3357 command to relaunch.
3359 2019-07-03 Pedro Alves <palves@redhat.com>
3361 * NEWS (New commands): Mention "maint set/show test-settings"
3362 instead of "maint test-settings".
3363 * maint-test-settings.c (maintenance_test_settings_list): Delete.
3364 (maintenance_test_settings_set_list): Rename to ...
3365 (maintenance_set_test_settings_list): ... this.
3366 (maintenance_test_settings_show_list): Rename to ...
3367 (maintenance_show_test_settings_list): ... this.
3368 (maintenance_test_settings_cmd): Delete.
3369 (maintenance_test_settings_set_cmd): ...
3370 (maintenance_set_test_settings_cmd): ... this.
3371 (maintenance_test_settings_show_cmd): ...
3372 (maintenance_show_test_settings_cmd): ... this.
3373 (maintenance_test_settings_show_value_cmd):
3374 (maintenance_show_test_settings_value_cmd): ... this.
3375 (_initialize_maint_test_settings): No longer install the "maint
3376 test-settings" prefix command. Rename "maint test-settings set"
3377 to "maint set test-settings", and "maint test-settings show" to
3378 "maint show test-settings". Adjust all subcommands.
3380 2019-07-03 Pedro Alves <palves@redhat.com>
3382 * maint-test-settings.c: Fix file's intro comment. Replace all
3383 references to "test-options" with references to "test-settings",
3386 2019-07-03 Pedro Alves <palves@redhat.com>
3388 * maint-test-settings.c (maintenance_test_settings_xxx)
3389 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
3391 (maintenance_test_settings_enums): Use them.
3392 (maintenance_test_settings_enum): Default to
3393 maintenance_test_settings_xxx.
3394 (_initialize_maint_test_settings): Initialize
3395 MAINTENANCE_TEST_SETTINGS_FILENAME.
3397 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3399 * breakpoint.h (remove_breakpoints_inf): Change return type to
3400 void, move function documentation here.
3401 * breakpoint.c (remove_breakpoints_inf): Change return type to
3402 void, move function documentation to header.
3404 2019-07-02 Pedro Alves <palves@redhat.com>
3406 * NEWS (Completion improvements): Mention "info threads".
3407 * thread.c (struct info_threads_opts, info_threads_option_defs)
3408 (make_info_threads_options_def_group): New.
3409 (info_threads_command): Use gdb::option::process_options.
3410 (info_threads_command_completer): New.
3411 (_initialize_thread): Use gdb::option::build_help to build the
3412 help text for "info threads".
3414 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3416 * defs.h (generic_load): Move from here...
3417 * symfile.h (generic_load): ... to here. Rename name parameter
3419 * symfile.c (generic_load): Add comment.
3421 2019-07-01 Tom Tromey <tromey@adacore.com>
3424 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
3425 declaration of without_params. Fix formatting.
3427 2019-07-01 Tom Tromey <tromey@adacore.com>
3429 * ada-exp.y (find_primitive_type): Update.
3430 * ada-lang.h (ada_lookup_symbol): Update.
3431 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
3433 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
3435 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3437 PR breakpoints/24541
3438 * gdbarch.c: Regenerate.
3439 * gdbarch.h: Regenerate.
3440 * gdbarch.sh: Add 'stap_adjust_register'.
3441 * i386-tdep.c: Include '<unordered_set>'.
3442 (i386_stap_adjust_register): New function.
3443 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
3444 * stap-probe.c (stap_parse_register_operand): Call
3445 'gdbarch_stap_adjust_register'.
3447 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3450 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
3451 * python/python.c (do_start_initialization): Use 'xmalloc'
3452 instead of 'PyMem_Malloc'.
3454 2019-06-28 Tom Tromey <tromey@adacore.com>
3456 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
3459 2019-06-27 Tom Tromey <tromey@adacore.com>
3461 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
3463 (arm_find_mapping_symbol, arm_record_special_symbol)
3464 (_initialize_arm_tdep): Update.
3465 (arm_objfile_data_free): Remove.
3467 2019-06-27 Tom Tromey <tromey@adacore.com>
3469 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
3470 to cp_print_static_field.
3472 2019-06-26 Tom Tromey <tromey@adacore.com>
3474 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
3475 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
3478 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3480 * features/aarch64-core.c (create_feature_aarch64_core):
3482 * features/aarch64-core.xml: Add cpsr flags.
3484 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3486 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
3487 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
3489 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3491 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
3493 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
3495 (arm_record_special_symbol): Don't insert new symbol in sorted
3496 position, push it at the end.
3498 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3500 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
3501 (arm_mapping_symbol_s): Remove.
3502 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
3503 (arm_mapping_symbol_vec): New typedef.
3504 (struct arm_per_objfile): Add constructor.
3505 <section_maps>: Change type to
3506 std::unique_ptr<arm_mapping_symbol_vec[]>.
3507 (arm_compare_mapping_symbols): Remove.
3508 (arm_find_mapping_symbol): Adjust to section_maps type change.
3509 (arm_objfile_data_free): Call delete on arm_per_objfile.
3510 (arm_record_special_symbol): Adjust to section_maps type change.
3511 Allocate arm_per_objfile with new.
3513 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3515 * cli/cli-cmds.c (alias_command): Compare the alias prefix
3516 with the command prefix.
3518 2019-06-25 Tom Tromey <tom@tromey.com>
3520 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
3521 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
3523 2019-06-25 Tom Tromey <tom@tromey.com>
3525 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
3527 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
3530 2019-06-25 Tom Tromey <tom@tromey.com>
3532 * tui/tui-winsource.c
3533 (tui_source_window_base::set_is_exec_point_at): Add check against
3536 2019-06-25 Tom Tromey <tom@tromey.com>
3538 * tui/tui-source.c (tui_set_source_content): Don't check before
3540 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
3542 2019-06-25 Tom Tromey <tom@tromey.com>
3544 * tui/tui-winsource.h (tui_update_source_window_as_is)
3545 (tui_alloc_source_buffer, tui_line_is_displayed)
3546 (tui_addr_is_displayed): Change type of win_info.
3547 * tui/tui-winsource.c (tui_update_source_window_as_is)
3548 (tui_clear_source_content, tui_show_source_line)
3549 (tui_show_source_content, tui_source_window_base::refill)
3550 (tui_source_window_base::set_is_exec_point_at)
3551 (tui_source_window_base::set_is_exec_point_at)
3552 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
3553 (tui_alloc_source_buffer, tui_line_is_displayed)
3554 (tui_addr_is_displayed): Change type of win_info. Update.
3555 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3556 (tui_source_window_base::do_make_visible_with_new_height):
3558 * tui/tui-source.c (tui_set_source_content)
3559 (tui_set_source_content_nil)
3560 (tui_source_window::do_scroll_vertical): Update.
3561 * tui/tui-layout.c (show_layout): Update.
3562 * tui/tui-disasm.c (tui_set_disassem_content)
3563 (tui_disasm_window::do_scroll_vertical): Update.
3564 * tui/tui-data.h (tui_win_content): Remove.
3565 (struct tui_gen_win_info) <content, content_size>: Remove.
3566 (struct tui_source_element): Add initializers and destructor.
3567 (union tui_which_element, struct tui_win_element): Remove.
3568 (struct tui_source_window_base) <content>: New field.
3569 (struct tui_data_window): Remove destructor.
3570 (tui_alloc_content, tui_free_win_content)
3571 (tui_free_all_source_wins_content): Don't declare.
3572 * tui/tui-data.c (tui_initialize_static_data): Update.
3573 (init_content_element, tui_alloc_content): Remove.
3574 (~tui_gen_win_info): Update.
3575 (~tui_data_window, tui_free_all_source_wins_content)
3576 (tui_free_win_content, free_content, free_content_elements):
3579 2019-06-25 Tom Tromey <tom@tromey.com>
3581 * tui/tui-winsource.h (tui_clear_source_content)
3582 (tui_erase_source_content, tui_show_source_content): Change type
3584 * tui/tui-winsource.c (tui_clear_source_content)
3585 (tui_erase_source_content, tui_show_source_content): Change type
3587 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3588 * tui/tui-source.h (tui_set_source_content_nil): Change type of
3590 * tui/tui-source.c (tui_set_source_content_nil): Change type of
3592 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
3594 2019-06-25 Tom Tromey <tom@tromey.com>
3596 * tui/tui-winsource.c (tui_clear_source_content)
3597 (tui_source_window_base::set_is_exec_point_at): Update.
3598 * tui/tui-source.c (tui_set_source_content_nil): Update.
3599 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
3601 * tui/tui-data.c (init_content_element): Update.
3603 2019-06-25 Tom Tromey <tom@tromey.com>
3605 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
3606 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
3607 * tui/tui-layout.c (init_and_make_win): Update.
3608 * tui/tui.h (enum tui_win_type): Update.
3609 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
3610 tui_win_is_auxillary.
3611 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
3612 tui_win_is_auxillary.
3614 2019-06-25 Tom Tromey <tom@tromey.com>
3616 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
3617 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
3618 (tui_delete_data_content_windows, tui_display_all_data)
3619 (tui_data_window::do_scroll_vertical, tui_display_data_from):
3621 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
3622 * tui/tui-regs.c (tui_last_regs_line_no)
3623 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3624 (tui_show_registers): Update.
3625 (tui_show_register_group): Return void. Update.
3626 (tui_display_registers_from, tui_display_reg_element_at_line)
3627 (tui_display_registers_from_line, tui_check_register_values):
3629 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
3631 (struct tui_data_window) <regs_content>: Now a std::vector.
3632 <regs_content_count>: Remove.
3633 (tui_add_content_elements, tui_free_data_content): Don't declare.
3634 * tui/tui-data.c (tui_data_window::clear_detail): Update.
3635 (init_content_element): Remove DATA_WIN case. Add assert.
3636 (tui_add_content_elements): Remove.
3637 (tui_data_window): Update.
3638 (tui_free_data_content): Remove.
3639 (free_content_elements): Remove DATA_WIN case.
3641 2019-06-25 Tom Tromey <tom@tromey.com>
3643 * tui/tui-data.c (tui_data_item_window): Update.
3644 * tui/tui-windata.h (tui_check_data_values): Don't declare.
3645 * tui/tui-windata.c (tui_display_all_data)
3646 (tui_display_data_from_line): Update.
3647 (tui_check_data_values): Remove.
3648 * tui/tui-regs.c (tui_show_register_group)
3649 (tui_display_reg_element_at_line): Update.
3650 * tui/tui-hooks.c (tui_register_changed)
3651 (tui_refresh_frame_and_register_information): Call
3652 tui_check_register_values.
3653 * tui/tui-data.h (struct tui_data_window) <data_content,
3654 data_content_count, data_type>: Remove.
3655 (enum tui_data_type): Remove.
3657 * tui/tui-data.c (tui_data_window::clear_detail)
3658 (~tui_data_window): Update.
3660 2019-06-25 Tom Tromey <tom@tromey.com>
3662 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
3664 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
3665 Rename from tui_first_data_item_displayed. Update.
3666 (tui_data_window::refresh_all)
3667 (tui_data_window::do_scroll_vertical): Update.
3668 * tui/tui-data.h (struct tui_data_window)
3669 <first_data_item_displayed>: Declare new method.
3671 2019-06-25 Tom Tromey <tom@tromey.com>
3673 * tui/tui-data.h (tui_init_generic_part): Don't declare.
3674 * tui/tui-data.c (tui_init_generic_part): Remove, moving
3676 (tui_initialize_static_data): ...here.
3678 2019-06-25 Tom Tromey <tom@tromey.com>
3680 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3681 (tui_display_registers_from, tui_check_register_values): Update.
3682 (tui_display_register): Remove win_info parameter; update.
3683 (tui_get_register): Change type of parameters.
3684 * tui/tui-data.h (struct tui_data_element): Remove.
3685 (union tui_which_element) <data>: Remove.
3686 <data_window>: Change type.
3687 (struct tui_data_item_window): New.
3688 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
3690 (~tui_data_item_window): New destructor.
3691 (free_content_elements): Remove DATA_ITEM_WIN case.
3693 2019-06-25 Tom Tromey <tom@tromey.com>
3695 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
3698 2019-06-25 Tom Tromey <tom@tromey.com>
3700 * tui/tui-data.h (struct tui_command_element): Remove.
3701 (union tui_which_element) <command>: Remove.
3702 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
3704 (free_content_elements): Remove CMD_WIN case.
3706 2019-06-25 Tom Tromey <tom@tromey.com>
3708 * tui/tui-layout.c (tui_set_layout): Update.
3709 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
3710 * tui/tui-data.c (layout_def): Update.
3712 2019-06-25 Tom Tromey <tom@tromey.com>
3714 * tui/tui-wingeneral.c (tui_refresh_all): Update.
3715 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3716 (tui_source_window_base::set_new_height): Update.
3717 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
3719 (tui_set_locator_fullname, tui_set_locator_info)
3720 (tui_show_frame_info): Update.
3721 * tui/tui-source.c (tui_set_source_content)
3722 (tui_source_is_displayed): Update.
3723 * tui/tui-layout.c (show_source_disasm_command, show_data)
3724 (show_source_or_disasm_and_command): Update.
3725 * tui/tui-disasm.c (tui_set_disassem_content)
3726 (tui_get_begin_asm_address): Update.
3727 * tui/tui-data.h (struct tui_locator_element): Remove.
3728 (union tui_which_element) <locator>: Remove.
3729 (struct tui_locator_window): New.
3730 (tui_locator_win_info_ptr): Change return type.
3731 * tui/tui-data.c (_locator): Change type.
3732 (tui_locator_win_info_ptr): Change return type.
3733 (init_content_element): Remove LOCATOR_WIN case. Add assert.
3734 (tui_alloc_content): Add assert.
3736 2019-06-25 Tom Tromey <tom@tromey.com>
3738 * tui/tui-winsource.c
3739 (tui_exec_info_window::maybe_allocate_content): New method.
3740 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
3741 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
3742 (make_source_or_disasm_window): Add cast.
3743 * tui/tui-data.h (union tui_which_element) <simple_string>:
3745 (struct tui_source_info): New.
3746 (struct tui_source_window_base) <execution_info>: Change type.
3747 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
3748 case, and add assert.
3749 (tui_alloc_content): Add assert.
3751 2019-06-25 Tom Tromey <tom@tromey.com>
3753 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
3754 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
3755 * tui/tui-data.c (tui_alloc_win_info): Remove.
3757 2019-06-25 Tom Tromey <tom@tromey.com>
3759 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
3760 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
3763 2019-06-25 Tom Tromey <tom@tromey.com>
3765 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
3766 make_visible_with_new_height method.
3767 (tui_win_info::make_visible_with_new_height): New method.
3768 (tui_source_window_base::do_make_visible_with_new_height)
3769 (tui_data_window::do_make_visible_with_new_height)
3770 (tui_cmd_window::do_make_visible_with_new_height): New methods.
3771 (make_visible_with_new_height): Remove.
3772 (tui_resize_all, tui_adjust_win_heights): Use
3773 make_visible_with_new_height method.
3774 * tui/tui-data.h (struct tui_win_info)
3775 <do_make_visible_with_new_height, make_visible_with_new_height>:
3777 (struct tui_source_window_base, struct tui_data_window)
3778 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
3781 2019-06-25 Tom Tromey <tom@tromey.com>
3783 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
3785 (update_tab_width): Call update_tab_width method.
3786 * tui/tui-data.h (struct tui_win_info)
3787 (struct tui_source_window_base) <update_tab_width>: New methods.
3789 2019-06-25 Tom Tromey <tom@tromey.com>
3791 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
3793 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
3795 (tui_gen_win_info::make_visible): Update.
3796 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
3798 * tui/tui-data.h (enum tui_box): New enum.
3799 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
3801 2019-06-25 Tom Tromey <tom@tromey.com>
3803 * tui/tui-layout.c (make_source_or_disasm_window): Always use
3804 init_and_make_win for EXEC_INFO_WIN.
3805 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
3807 (struct tui_win_info) <~tui_win_info>: Inline.
3808 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3810 * tui/tui-data.c (source_win, disasm_win): Remove globals.
3811 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3813 (tui_initialize_static_data): Update.
3814 (~tui_gen_win_info): Handle more cleanup here.
3815 (~tui_source_window_base): Delete "execution_info".
3816 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
3818 2019-06-25 Tom Tromey <tom@tromey.com>
3820 * tui/tui-layout.c (make_command_window): Don't set
3822 (show_source_disasm_command): Call the reset method.
3823 (show_data): Don't set can_highlight. Call the reset method.
3824 (tui_gen_win_info::reset): Rename from init_gen_win_info
3825 (init_and_make_win): Simplify. Return tui_gen_win_info.
3826 (show_source_or_disasm_and_command): Call the reset method.
3827 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
3828 (struct tui_cmd_window): Set can_highlight.
3830 2019-06-25 Tom Tromey <tom@tromey.com>
3832 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
3834 (tui_make_visible, tui_make_invisible): Rewrite.
3835 (tui_win_info::make_visible): Remove.
3836 (tui_source_window_base::make_visible): Update.
3837 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
3838 method. Moved from...
3839 (struct tui_win_info) <make_visible>: ...here.
3841 2019-06-25 Tom Tromey <tom@tromey.com>
3843 * tui/tui-winsource.c
3844 (tui_source_window_base::do_scroll_horizontal): Remove direction
3846 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
3847 direction parameter.
3848 * tui/tui-win.c (tui_win_info::forward_scroll)
3849 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3850 (tui_win_info::right_scroll): Update.
3851 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
3852 direction parameter.
3853 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
3854 direction parameter.
3855 * tui/tui-data.h (enum tui_scroll_direction): Remove.
3856 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
3857 Remove direction parameter.
3858 (struct tui_source_window_base, struct tui_source_window)
3859 (struct tui_disasm_window, struct tui_data_window)
3860 (struct tui_cmd_window): Update.
3862 2019-06-25 Tom Tromey <tom@tromey.com>
3864 * tui/tui-winsource.h (tui_set_exec_info_content)
3865 (tui_show_exec_info_content, tui_erase_exec_info_content)
3866 (tui_clear_exec_info_content, tui_update_exec_info): Change
3867 argument to tui_source_window_base.
3868 * tui/tui-winsource.c (tui_set_exec_info_content)
3869 (tui_show_exec_info_content, tui_erase_exec_info_content)
3870 (tui_clear_exec_info_content, tui_update_exec_info): Change
3871 argument to tui_source_window_base.
3873 2019-06-25 Tom Tromey <tom@tromey.com>
3875 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
3876 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
3878 2019-06-25 Tom Tromey <tom@tromey.com>
3880 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
3883 2019-06-25 Tom Tromey <tom@tromey.com>
3885 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
3887 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
3889 * tui/tui-source.c (tui_set_source_content): Update.
3890 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3892 2019-06-25 Tom Tromey <tom@tromey.com>
3894 * tui/tui-win.c (window_name_completer, tui_set_focus)
3895 (tui_all_windows_info): Use name method.
3896 * tui/tui-data.h (struct tui_gen_win_info)
3897 (struct tui_source_window, struct tui_disasm_window)
3898 (struct tui_data_window, struct tui_cmd_window) <name>: New
3900 (tui_win_name): Don't declare.
3901 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
3902 (tui_win_name): Remove.
3904 2019-06-25 Tom Tromey <tom@tromey.com>
3906 * tui/tui-winsource.h (tui_update_source_window)
3907 (tui_update_source_window_as_is): Change parameter type.
3908 * tui/tui-winsource.c (tui_update_source_window): Change win_info
3909 to be a tui_source_window_base.
3910 (tui_update_source_window_as_is): Likewise.
3911 * tui/tui-win.c (make_visible_with_new_height): Update.
3913 2019-06-25 Tom Tromey <tom@tromey.com>
3915 * tui/tui-winsource.c (tui_erase_source_content)
3916 (tui_show_source_content, tui_show_exec_info_content)
3917 (tui_erase_exec_info_content): Use refresh_window method.
3918 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
3919 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
3920 from tui_refresh_win.
3921 (tui_data_window::refresh_window): New method.
3922 (tui_win_info::refresh, tui_source_window_base::refresh)
3923 (tui_refresh_all): Use refresh_window method.
3924 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
3926 * tui/tui-regs.c (tui_display_register): Call refresh_window
3928 * tui/tui-layout.c (show_source_disasm_command)
3929 (show_source_or_disasm_and_command): Call refresh_window method.
3930 * tui/tui-data.h (struct tui_gen_win_info)
3931 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
3934 2019-06-25 Tom Tromey <tom@tromey.com>
3936 * tui/tui.c (tui_rl_other_window, tui_enable)
3937 (tui_is_window_visible, tui_get_command_dimension): Update.
3938 * tui/tui-winsource.c (tui_update_source_window_as_is)
3939 (tui_clear_source_content, tui_erase_source_content)
3940 (tui_show_source_line, tui_source_window_base::refill)
3941 (tui_source_window_base::do_scroll_horizontal)
3942 (tui_source_window_base::set_is_exec_point_at)
3943 (tui_update_breakpoint_info, tui_set_exec_info_content)
3944 (tui_alloc_source_buffer, tui_line_is_displayed)
3945 (tui_addr_is_displayed): Update.
3946 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3947 (tui_check_and_display_highlight_if_needed)
3948 (tui_win_info::make_visible, tui_win_info::refresh)
3949 (tui_refresh_all): Update.
3950 * tui/tui-windata.c (tui_first_data_item_displayed)
3951 (tui_delete_data_content_windows, tui_erase_data_content)
3952 (tui_display_all_data, tui_data_window::refresh_all)
3953 (tui_check_data_values): Update.
3954 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
3955 (tui_set_win_focus_to, tui_win_info::forward_scroll)
3956 (tui_win_info::backward_scroll, tui_refresh_all_win)
3957 (tui_resize_all, tui_set_focus, tui_all_windows_info)
3958 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
3959 (tui_source_window_base::set_new_height)
3960 (tui_data_window::set_new_height)
3961 (make_invisible_and_set_new_height)
3962 (make_visible_with_new_height, new_height_ok)
3963 (parse_scrolling_args): Update.
3964 * tui/tui-stack.c (tui_show_frame_info): Update.
3965 * tui/tui-source.c (tui_set_source_content)
3966 (tui_set_source_content_nil, tui_source_is_displayed)
3967 (tui_source_window::do_scroll_vertical): Update.
3968 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3969 (tui_display_registers_from, tui_display_reg_element_at_line)
3970 (tui_check_register_values, tui_reg_command): Update.
3971 * tui/tui-layout.c (tui_default_win_height)
3972 (show_source_disasm_command, show_data, init_and_make_win)
3973 (show_source_or_disasm_and_command): Update.
3974 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3975 (tui_redisplay_readline, tui_mld_flush)
3976 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
3978 * tui/tui-disasm.c (tui_set_disassem_content)
3979 (tui_disasm_window::do_scroll_vertical): Update.
3980 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
3982 (struct tui_win_info): Derive from tui_gen_win_info.
3983 <~tui_win_info>: Mark as override.
3984 <generic>: Remove member.
3985 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
3986 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
3987 (~tui_data_window, ~tui_win_info)
3988 (tui_free_all_source_wins_content): Update.
3989 * tui/tui-command.c (tui_refresh_cmd_win): Update.
3991 2019-06-25 Tom Tromey <tom@tromey.com>
3993 * tui/tui-layout.c (init_and_make_win): Use new.
3994 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
3995 destructor, initializers.
3996 (tui_alloc_generic_win_info): Don't declare.
3997 * tui/tui-data.c (_locator): Add argument to constructor.
3998 (source_win, disasm_win): New globals.
3999 (exec_info): Remove.
4000 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4002 (tui_alloc_generic_win_info): Remove.
4003 (init_content_element): Use new.
4004 (tui_win_info::tui_win_info): Update.
4005 (free_content_elements) <case DATA_WIN>: Use delete.
4007 2019-06-25 Tom Tromey <tom@tromey.com>
4009 * tui/tui-wingeneral.c (tui_refresh_win): Update.
4010 * tui/tui-windata.c (tui_first_data_item_displayed)
4011 (tui_delete_data_content_windows): Update.
4012 * tui/tui-win.c (tui_data_window::set_new_height): Update.
4013 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4014 (tui_display_registers_from, tui_check_register_values): Update.
4015 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
4017 * tui/tui-data.c (init_content_element): Update. Allocate the new
4019 (tui_free_data_content): Update.
4020 (free_content_elements) <case DATA_WIN>: Free the window.
4022 2019-06-25 Tom Tromey <tom@tromey.com>
4024 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
4026 * tui/tui-layout.c (make_command_window)
4027 (show_source_disasm_command, show_data, init_and_make_win)
4028 (show_source_or_disasm_and_command): Update.
4029 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
4031 <can_highight, is_highlighted>: Now bool.
4032 (tui_set_win_highlight): Don't declare.
4033 * tui/tui-data.c (tui_set_win_highlight): Remove.
4035 2019-06-25 Tom Tromey <tom@tromey.com>
4037 * tui/tui-wingeneral.c (make_visible): Remove check of window
4040 2019-06-25 Tom Tromey <tom@tromey.com>
4042 * tui/tui-win.c (tui_win_info::max_height)
4043 (tui_cmd_window::max_height): New methods.
4044 (new_height_ok): Call max_height.
4045 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
4046 <max_height>: New method.
4048 2019-06-25 Tom Tromey <tom@tromey.com>
4050 * tui/tui-win.c (tui_source_window_base::set_new_height)
4051 (tui_data_window::set_new_height): New methods.
4052 (make_invisible_and_set_new_height): Call set_new_height method.
4053 * tui/tui-data.h (struct tui_win_info)
4054 (struct tui_source_window_base, struct tui_data_window)
4055 <set_new_height>: New method.
4057 2019-06-25 Tom Tromey <tom@tromey.com>
4059 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
4060 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
4061 tui_refresh_data_win.
4062 * tui/tui-win.c (tui_source_window_base::refresh_all): New
4064 (tui_refresh_all_win): Call the refresh_all method.
4065 (tui_set_focus): Likewise.
4066 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
4067 (struct tui_source_window_base, struct tui_data_window) <refresh>:
4070 2019-06-25 Tom Tromey <tom@tromey.com>
4072 * tui/tui-winsource.h (tui_refill_source_window)
4073 (tui_set_is_exec_point_at): Don't declare.
4074 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4075 (tui_source_window_base::refill): Rename from
4076 tui_refill_source_window.
4077 (tui_source_window_base::do_scroll_horizontal): Update.
4078 (tui_source_window_base::set_is_exec_point_at): Rename from
4079 tui_set_is_exec_point_at.
4080 (tui_update_all_breakpoint_info): Update.
4081 * tui/tui-stack.c (tui_show_frame_info): Update.
4082 * tui/tui-layout.c (show_data): Add cast.
4083 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
4084 * tui/tui-data.h (struct tui_source_window_base) <refill,
4085 set_is_exec_point_at>: New methods.
4086 (tui_source_windows, tui_add_to_source_windows): Update types.
4087 (tui_add_to_source_windows): Remove redundant declaration.
4088 * tui/tui-data.c (source_windows): Store tui_source_window_base.
4089 (tui_source_windows): Change return type.
4090 (tui_clear_source_windows_detail): Update.
4091 (tui_add_to_source_windows): Change type of parameter.
4092 (tui_free_all_source_wins_content): Update.
4094 2019-06-25 Tom Tromey <tom@tromey.com>
4096 * tui/tui-wingeneral.c (tui_win_info::refresh)
4097 (tui_source_window_base::refresh): New methods.
4098 (tui_refresh_all): Call the refresh method.
4099 * tui/tui-data.h (struct tui_win_info)
4100 (struct tui_source_window_base) <refresh>: New method.
4102 2019-06-25 Tom Tromey <tom@tromey.com>
4104 * tui/tui.h (tui_is_window_visible): Return bool.
4105 * tui/tui.c (tui_is_window_visible): Return bool.
4106 * tui/tui-wingeneral.c (tui_make_window, make_visible)
4107 (tui_make_visible, tui_make_invisible)
4108 (tui_win_info::make_visible)
4109 (tui_source_window_base::make_visible, make_all_visible)
4110 (tui_make_all_visible, tui_make_all_invisible): Update.
4111 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
4112 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
4114 (struct tui_win_info, struct tui_source_window_base)
4115 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
4116 * tui/tui-data.c (tui_init_generic_part): Update.
4118 2019-06-25 Tom Tromey <tom@tromey.com>
4120 * tui/tui-wingeneral.c (tui_win_info::make_visible)
4121 (tui_source_window_base::make_visible): New methods.
4122 (make_all_visible): Make method call.
4123 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
4124 (struct tui_source_window_base, struct tui_cmd_window): Override
4126 (tui_win_is_source_type): Don't declare.
4127 * tui/tui-data.c (tui_win_is_source_type): Remove.
4129 2019-06-25 Tom Tromey <tom@tromey.com>
4131 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
4134 2019-06-25 Tom Tromey <tom@tromey.com>
4136 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
4137 Inline constructor. Add initializers for members.
4138 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
4139 constructors; now inline in class.
4141 2019-06-25 Tom Tromey <tom@tromey.com>
4143 * tui/tui-regs.c (tui_show_registers): Update.
4144 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
4146 * tui/tui-data.c (tui_data_window::clear_detail)
4147 (tui_data_window): Update.
4149 2019-06-25 Tom Tromey <tom@tromey.com>
4151 * tui/tui-windata.c (tui_display_all_data)
4152 (tui_display_data_from_line, tui_display_data_from)
4153 (tui_check_data_values, tui_data_window::do_scroll_vertical):
4155 * tui/tui-regs.c (tui_last_regs_line_no)
4156 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4157 (tui_show_registers, tui_show_register_group)
4158 (tui_display_registers_from, tui_display_reg_element_at_line)
4159 (tui_display_registers_from_line, tui_check_register_values)
4160 (tui_reg_next, tui_reg_prev): Update.
4161 * tui/tui-layout.c (tui_set_layout, show_data): Update.
4162 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
4164 (struct tui_win_info) <detail>: Remove. Add new fields from
4166 (TUI_DATA_WIN): Add cast.
4167 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
4168 (~tui_data_window): Simplify.
4170 2019-06-25 Tom Tromey <tom@tromey.com>
4172 * tui/tui-layout.c (show_source_disasm_command)
4173 (show_source_or_disasm_and_command): Update.
4174 * tui/tui-io.c (update_cmdwin_start_line)
4175 (tui_redisplay_readline): Update.
4176 * tui/tui-data.h (struct tui_command_info): Remove.
4177 (struct tui_win_info) <detail>: Remove command_info member.
4178 (struct tui_data_window) <start_line>: New member, from
4180 (TUI_CMD_WIN): Add casts.
4182 2019-06-25 Tom Tromey <tom@tromey.com>
4184 * tui/tui-winsource.c (tui_update_source_window)
4185 (tui_refill_source_window)
4186 (tui_source_window_base::do_scroll_horizontal)
4187 (tui_update_breakpoint_info, tui_set_exec_info_content)
4188 (tui_show_exec_info_content, tui_erase_exec_info_content)
4189 (tui_clear_exec_info_content): Update.
4190 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4192 * tui/tui-win.c (make_invisible_and_set_new_height)
4193 (make_visible_with_new_height): Update.
4194 * tui/tui-source.c (tui_set_source_content)
4195 (tui_show_symtab_source): Update.
4196 * tui/tui-layout.c (extract_display_start_addr)
4197 (show_source_disasm_command, show_data)
4198 (make_source_or_disasm_window)
4199 (show_source_or_disasm_and_command): Update.
4200 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4201 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4203 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4204 to tui_source_window_base.
4205 (struct tui_win_info) <detail>: Remove source_info member.
4206 (struct tui_source_window_base) <has_locator>: Inline.
4207 Move contents from tui_source_info; rename has_locator member to
4209 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4210 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4212 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4214 (tui_free_all_source_wins_content): Cast to
4215 tui_source_window_base.
4217 2019-06-25 Tom Tromey <tom@tromey.com>
4219 * tui/tui-win.c (make_invisible_and_set_new_height)
4220 (make_visible_with_new_height): Call has_locator method.
4221 * tui/tui-layout.c (show_source_disasm_command, show_data)
4222 (show_source_or_disasm_and_command): Update for bool change.
4223 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4224 (tui_win_info) <has_locator>: New method.
4225 (struct tui_source_window_base) <has_locator>: New method.
4226 (tui_win_has_locator): Don't declare.
4227 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4228 from tui_win_has_locator.
4229 (tui_source_window_base): Use false, not FALSE.
4231 2019-06-25 Tom Tromey <tom@tromey.com>
4233 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4234 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4235 clear_detail method directly.
4236 (tui_clear_win_detail): Remove.
4238 2019-06-25 Tom Tromey <tom@tromey.com>
4240 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4241 "this", not TUI_DISASM_WIN.
4243 2019-06-25 Tom Tromey <tom@tromey.com>
4245 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4247 * tui/tui-winsource.c
4248 (tui_source_window_base::do_scroll_horizontal): Rename from
4249 tui_horizontal_source_scroll.
4250 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4251 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4252 from tui_vertical_data_scroll.
4253 * tui/tui-win.h (tui_scroll): Don't declare.
4254 * tui/tui-win.c (tui_win_info::forward_scroll)
4255 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4256 (tui_win_info::right_scroll): Rename and update.
4257 (tui_scroll_forward_command, tui_scroll_backward_command)
4258 (tui_scroll_left_command, tui_scroll_right_command): Update.
4259 (tui_scroll): Remove.
4260 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4261 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4262 from tui_vertical_source_scroll.
4263 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4264 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4265 from tui_vertical_disassem_scroll.
4266 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4267 do_scroll_horizontal>: New methods.
4268 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4270 (struct tui_source_window_base): Add do_scroll_horizontal.
4271 (struct tui_source_window, struct tui_disasm_window): Add
4273 (struct tui_data_window, struct tui_cmd_window): Add
4274 do_scroll_horizontal and do_scroll_vertical.
4275 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4277 2019-06-25 Tom Tromey <tom@tromey.com>
4279 * tui/tui-data.h (struct tui_source_window_base): New struct.
4280 (struct tui_source_window): Derive from tui_source_window_base.
4281 (struct tui_disasm_window): New struct.
4282 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4283 from tui_source_window::clear_detail.
4284 (tui_source_window_base): Rename from tui_source_window.
4285 (~tui_source_window_base): Rename from ~tui_source_window.
4286 (tui_alloc_win_info): Create a tui_disasm_window.
4288 2019-06-25 Tom Tromey <tom@tromey.com>
4290 * tui/tui-data.h (struct tui_source_window)
4291 (struct tui_data_window): Declare destructors.
4292 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4294 (tui_win_info): Simplify.
4296 2019-06-25 Tom Tromey <tom@tromey.com>
4298 * tui/tui-winsource.c (tui_display_main)
4299 (tui_update_source_windows_with_addr)
4300 (tui_update_all_breakpoint_info): Update.
4301 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4302 (new_height_ok, parse_scrolling_args): Update.
4303 * tui/tui-stack.c (tui_show_frame_info): Update.
4304 * tui/tui-data.h (struct tui_list): Remove.
4305 (tui_source_windows): Return a reference to a std::vector.
4306 * tui/tui-data.c (source_windows): Now a std::vector.
4307 (tui_source_windows): Change return type.
4308 (tui_clear_source_windows): Rewrite.
4309 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4310 (tui_free_all_source_wins_content): Rewrite.
4312 2019-06-25 Tom Tromey <tom@tromey.com>
4314 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
4315 (struct tui_data_window, struct tui_cmd_window): Declare
4316 clear_detail method.
4317 * tui/tui-data.c (tui_source_window::clear_detail)
4318 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
4320 (tui_clear_win_detail): Simplify.
4322 2019-06-25 Tom Tromey <tom@tromey.com>
4324 * tui/tui-layout.c (make_source_window, make_disasm_window)
4325 (make_source_or_disasm_window): Remove win_info_ptr parameter.
4326 Return the new window.
4327 (show_source_disasm_command, show_data)
4328 (show_source_or_disasm_and_command): Update.
4330 2019-06-25 Tom Tromey <tom@tromey.com>
4332 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
4333 parameter. Return the new window.
4334 (show_source_disasm_command): Update and remove NULL check.
4335 (show_source_or_disasm_and_command): Update.
4337 2019-06-25 Tom Tromey <tom@tromey.com>
4339 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
4341 2019-06-25 Tom Tromey <tom@tromey.com>
4343 * tui/tui-data.h (struct tui_win_info): Make constructor
4344 protected. Make destructor virtual. Add initializers.
4345 (tui_source_window, tui_data_window, tui_cmd_window): New
4347 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
4348 constructor. Add "type" parameter.
4349 (tui_source_window, tui_data_window, tui_cmd_window): New
4351 (tui_alloc_win_info): Instantiate the appropriate subclass.
4353 2019-06-25 Tom Tromey <tom@tromey.com>
4355 * tui/tui-win.c (tui_resize_all): Use delete.
4356 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
4358 (tui_free_window): Don't declare.
4359 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
4362 2019-06-25 Tom Tromey <tom@tromey.com>
4364 * tui/tui-data.h (struct tui_win_info): Add constructor.
4365 * tui/tui-data.c (tui_alloc_win_info): Use new.
4366 (tui_free_window): Use delete.
4368 2019-06-22 Tom Tromey <tom@tromey.com>
4370 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
4372 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
4374 2019-06-22 Tom Tromey <tom@tromey.com>
4376 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
4378 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
4380 2019-06-22 Tom de Vries <tdevries@suse.de>
4382 * dwarf2read.c (create_addrmap_from_aranges)
4383 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
4386 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
4388 * dwarf2read.h (dwarf2_section_info_def): Remove.
4389 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
4390 * dwarf2read.c (struct dwo_sections) <types>: Change type to
4391 std::vector<dwarf2_section_info>.
4392 (struct dwo_file) <~dwo_file>: Remove.
4393 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
4395 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
4396 (dwarf2_read_debug_names): Likewise.
4397 (create_debug_types_hash_table): Change parameter type to
4398 array_view, adjust code accordingly.
4399 (dwarf2_locate_dwo_sections): Adjust to std::vector.
4400 (partial_die_info::fixup): Likewise.
4401 (determine_prefix): Likewise.
4402 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
4404 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4406 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
4408 <~dwo_file>: Remove call to gdb_bfd_unref.
4409 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
4410 gdb_bfd_ref_ptr::get.
4412 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4414 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
4416 * dwarf2read.c (struct dwo_file): Initialize fields.
4418 (free_dwo_file): Remove, move content to ~dwo_file.
4419 (struct dwo_file_deleter): Remove.
4420 (dwo_file_up>: Remove custom deleter.
4421 (free_dwo_files): Remove.
4422 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
4424 (process_skeletonless_type_units): Call unique_ptr::get.
4425 (allocate_dwo_file_hash_table): Add deleter to created hash
4426 table. Change return type to htab_up.
4427 (lookup_dwo_file_slot): Don't memset dwo_file, call
4429 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
4430 (create_dwo_unit_in_dwp_v2): Likewise.
4431 (open_and_init_dwo_file): Likewise.
4432 (free_dwo_file_from_slot): Remove.
4434 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4436 * dwarf2read.h (struct dwarf2_section_info) <readin,
4437 is_virtual>: Change type to bool.
4438 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
4441 2019-06-19 Tom Tromey <tom@tromey.com>
4443 * tui/tui-data.h (tui_init_content_element): Don't declare.
4445 2019-06-19 Tom Tromey <tom@tromey.com>
4447 * tui/tui-data.h (tui_init_win_info): Don't declare.
4449 2019-06-19 Tom de Vries <tdevries@suse.de>
4451 * dwarf2read.h (abstract_to_concrete): Change type to
4452 std::unordered_map<sect_offset, std::vector<sect_offset>,
4453 gdb::hash_enum<sect_offset>>.
4455 2019-06-19 Tom Tromey <tromey@adacore.com>
4457 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
4458 EVAL_AVOID_SIDE_EFFECTS specially.
4460 2019-06-19 Tom Tromey <tromey@adacore.com>
4462 * source-cache.c (highlighter): New global.
4463 (source_cache::get_source_lines): Create a highlighter on demand.
4465 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
4467 * defs.h (deprecated_interactive_hook): Delete declaration.
4468 * interps.c (clear_interpreter_hooks): Remove use of
4469 deprecated_interactive_hook.
4470 * top.c (deprecated_interactive_hook): Delete definition.
4471 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
4473 2019-06-18 Tom de Vries <tdevries@suse.de>
4476 * dwarf2read.h (abstract_to_concrete): Change type from
4477 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
4478 std::unordered_map<sect_offset, std::vector<sect_offset>>.
4479 * dwarf2read.c (read_variable): Update.
4480 (dwarf2_fetch_die_loc_sect_off): Update.
4482 2019-06-17 Tom de Vries <tdevries@suse.de>
4485 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
4486 accessing parent[parent_len - 1].
4488 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4491 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
4492 call dtrace_process_dof with NULL dof.
4494 2019-06-16 Tom de Vries <tdevries@suse.de>
4497 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
4499 2019-06-16 Tom Tromey <tom@tromey.com>
4501 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4502 (make_all_visible): Use address of member.
4504 2019-06-16 Tom Tromey <tom@tromey.com>
4506 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
4507 (tui_free_window, free_content, free_content_elements): Remove
4509 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
4511 * tui/tui-regs.c (tui_show_register_group)
4512 (tui_display_registers_from, tui_display_reg_element_at_line):
4513 Remove unnecessary cast.
4515 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4517 * linux-nat.c (normal_mask): Delete.
4518 (_initialize_linux_nat): Don't initialise normal_mask.
4520 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
4523 * dwarf-index-write.h (write_psymtabs_to_index): Add
4524 dwz_basename parameter.
4525 * dwarf-index-write.c (write_gdbindex): Move file writing to
4526 write_gdbindex_1. Change return type void.
4527 (assert_file_size): Move up, remove filename parameter.
4528 (write_gdbindex_1): New function.
4529 (write_debug_names): Change return type to void, call
4531 (struct index_wip_file): New struct.
4532 (write_psymtabs_to_index): Add dwz_basename parameter. Move
4533 file logic to index_wip_file. Write index for dwz file if
4535 (save_gdb_index_command): Pass basename of dwz file, if present.
4536 * dwarf-index-cache.c (index_cache::store): Obtain and pass
4537 build-id of dwz file, if present.
4538 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
4539 (dwarf2_get_dwz_file): Likewise.
4540 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
4541 (dwarf2_get_dwz_file): Likewise.
4543 2019-06-16 Tom Tromey <tom@tromey.com>
4545 * coffread.c (process_coff_symbol): Use xstrdup.
4546 * value.c (create_internalvar): Use xstrdup.
4548 2019-06-16 Tom Tromey <tom@tromey.com>
4550 * valops.c (value_cast, value_slice): Remove unnecessary cast.
4551 * breakpoint.c (stopin_command, stopat_command)
4552 (until_break_command, decode_location_default): Remove unnecessary
4554 * utils.c (subset_compare): Remove unnecessary cast.
4555 * ada-lang.c (ada_update_initial_language): Remove unnecessary
4557 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
4559 * infcmd.c (path_command): Remove unnecessary cast.
4560 * coffread.c (decode_type): Remove unnecessary cast.
4561 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
4562 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
4563 * tui/tui-stack.c (tui_show_locator_content)
4564 (tui_show_frame_info): Remove unnecessary cast.
4565 * tui/tui-win.c (tui_scroll_forward_command)
4566 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
4567 (parse_scrolling_args): Remove unnecessary cast.
4568 * tui/tui-data.c (init_win_info, tui_del_window)
4569 (tui_free_window, tui_del_data_windows, tui_free_data_content)
4570 (free_content_elements): Remove unnecessary cast.
4571 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
4573 * tui/tui-source.c (tui_set_source_content)
4574 (tui_vertical_source_scroll): Remove unnecessary cast.
4575 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
4577 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
4578 * tui/tui-regs.c (tui_display_registers_from)
4579 (tui_display_register): Remove unnecessary cast.
4580 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
4581 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
4582 (make_visible): Remove unnecessary cast.
4583 * tui/tui-winsource.c (tui_erase_source_content)
4584 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
4586 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
4587 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
4588 * stabsread.c (read_type, read_array_type, read_range_type):
4589 Remove unnecessary cast.
4590 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
4591 (parse_symbol, parse_type, upgrade_type, parse_external)
4592 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
4594 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
4596 2019-06-16 Tom Tromey <tom@tromey.com>
4598 * tui/tui-data.c (tui_alloc_generic_win_info)
4599 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
4602 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
4603 Andrew Burgess <andrew.burgess@embecosm.com>
4605 * f-typeprint.c (f_print_type): Don't return early for not
4606 associated or not allocated types.
4607 (f_type_print_varspec_suffix): Add print_rank parameter and print
4608 ranks of array types in case they dangling.
4609 (f_type_print_base): Add print_rank parameter.
4611 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4613 * NEWS: Mention new MI commands.
4614 * break-catch-throw.c (enum exception_event_kind): Move to
4616 (print_mention_exception_catchpoint): Output text as a single
4618 (catch_exception_command_1): Rename to...
4619 (catch_exception_event): ...this, make non-static, update header
4620 command, and change some parameter types.
4621 (catch_catch_command): Update for changes to
4622 catch_exception_command_1.
4623 (catch_throw_command): Likewise.
4624 (catch_rethrow_command): Likewise.
4625 * breakpoint.c (enum exception_event_kind): Delete.
4626 * breakpoint.h (enum exception_event_kind): Moved here from
4627 break-catch-throw.c.
4628 (catch_exception_event): Declare.
4629 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
4630 (mi_cmd_catch_throw): New function.
4631 (mi_cmd_catch_rethrow): New function.
4632 (mi_cmd_catch_catch): New function.
4633 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
4634 'catch-catch' entries.
4635 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
4636 (mi_cmd_catch_rethrow): Declare.
4637 (mi_cmd_catch_catch): Declare.
4639 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4641 * annotate.c (annotate_source_line): Change return type to void,
4642 update implementation to match.
4643 * annotate.h (annotate_source_line): Change return type to void,
4644 update header comment.
4645 * stack.c (print_frame_info): Don't change what frame information
4646 is printed based on whether annotations are on or not.
4648 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4650 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
4651 (annotate_source): Make static.
4652 (annotate_source_line): Moved from source.c and renamed from
4653 identify_source_line. Update the return type.
4654 * annotate.h (annotate_source): Delete declaration.
4655 (annotate_source_line): Declaration moved from source.h, and
4656 renamed from identify_source_line. Return type updated.
4657 * source.c (identify_source_line): Moved to annotate.c and renamed
4658 to annotate_source_line.
4659 (info_line_command): Remove check of annotation_level.
4660 * source.h (identify_source_line): Move declaration to annotate.h
4661 and rename to annotate_source_line.
4662 * stack.c: Add 'annotate.h' include.
4663 (print_frame_info): Remove check of annotation_level before
4664 calling annotate_source_line.
4666 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4668 * source-cache.c (source_cache::get_plain_source_lines): Use
4669 open_source_file_with_line_charpos instead of just
4670 open_source_file, remove call to find_source_lines.
4671 (source_cache::get_source_lines): Likewise.
4672 * source.c (find_source_lines): Make static.
4673 (get_filename_and_charpos): Renamed into...
4674 (open_source_file_with_line_charpos): ..this along with changes to
4675 return a scoped_fd, and some other minor clean ups.
4676 (identify_source_line): Use open_source_file_with_line_charpos.
4677 (search_command_helper): Use open_source_file_with_line_charpos
4678 instead of just open_source_file, remove call to
4680 * source.h (open_source_file_with_line_charpos): Declare new
4682 (find_source_lines): Delete declaration.
4684 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4686 * source.c (get_filename_and_charpos): Remove fullname
4688 (identify_source_line): Update call to get_filename_and_charpos.
4690 2019-06-14 Tom Tromey <tromey@adacore.com>
4693 * ui-style.h (skip_ansi_escape): Update comment.
4694 * ui-file.h (class no_terminal_escape_file): New class.
4695 * ui-file.c (no_terminal_escape_file::write)
4696 (no_terminal_escape_file::puts): New methods.
4697 * cli/cli-logging.c (handle_redirections): Use
4698 no_terminal_escape_file.
4700 2019-06-14 Tom Tromey <tromey@adacore.com>
4702 * NEWS: Move convenience variable news above Python news.
4704 2019-06-14 Tom Tromey <tom@tromey.com>
4706 * gnulib: Move directory to top-level.
4707 * configure.ac: Don't configure gnulib.
4708 * configure: Rebuild.
4709 * common/common-defs.h: Use new path to gnulib.
4710 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
4712 (INCGNU): Look in new gnulib location.
4713 (HFILES_NO_SRCDIR): Remove gnulib files.
4714 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
4715 (generated_files): Remove GNULIB_H.
4716 ($(LIBGNU), all-lib): Remove targets.
4717 (distclean): Don't mention GNULIB_BUILDDIR.
4718 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
4720 2019-06-14 Tom Tromey <tromey@adacore.com>
4722 * symfile.c (add_symbol_file_command): Remove obsolete comment.
4723 Warn if symbol file does not provide any symbols.
4725 2019-06-14 Tom Tromey <tromey@adacore.com>
4727 * source.c (find_and_open_source): Respect basenames_may_differ.
4729 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
4731 * annotate.c (annotate_breakpoints_invalid): Make use of
4732 scoped_restore_terminal_state.
4733 (annotate_frames_invalid): Likewise.
4735 2019-06-14 Tom Tromey <tromey@adacore.com>
4737 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
4738 allow assignment to an internalvar.
4740 2019-06-14 Tom Tromey <tromey@adacore.com>
4742 * ada-lex.l: Allow "_" in attribute names.
4744 2019-06-14 Tom Tromey <tromey@adacore.com>
4747 * regcache.c (registers_changed): Don't call alloca.
4748 * top.c (execute_command): Don't call alloca.
4750 2019-06-13 Pedro Alves <palves@redhat.com>
4752 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
4753 'expression'. When parsing an expression, error out if there's
4754 junk after "unlimited".
4755 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4756 (do_set_command): Adjust calls to is_unlimited_literal.
4758 2019-06-13 Pedro Alves <palves@redhat.com>
4760 * compile/compile.c (make_compile_options_def_group): Add braces
4761 around array_view initializer.
4762 * thread.c (make_thread_apply_all_options_def_group)
4763 (make_thread_apply_all_options_def_group): Likewise.
4765 2019-06-13 Pedro Alves <palves@redhat.com>
4767 * NEWS (New commands): Mention "maint test-options
4768 require-delimiter", "maint test-options unknown-is-error", "maint
4769 test-options unknown-is-operand" and "maint show
4770 test-options-completion-result".
4771 (New command options, command completion): New section.
4772 (Completion improvements): New section.
4773 Mention that you can abbreviate "unlimited".
4775 2019-06-13 Pedro Alves <palves@redhat.com>
4777 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
4778 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
4779 * unittests/cli-utils-selftests.c (test_parse_flags)
4780 (test_parse_flags_qcs): Delete.
4781 (test_cli_utils): Don't call deleted functions.
4783 2019-06-13 Pedro Alves <palves@redhat.com>
4785 * thread.c: Include "cli/cli-option.h".
4786 (tp_array_compar_ascending): Global.
4787 (tp_array_compar): Delete function.
4788 (tp_array_compar_ascending, tp_array_compar_descending): New
4790 (ascending_option_def, qcs_flag_option_def)
4791 (thr_qcs_flags_option_defs)
4792 (make_thread_apply_all_options_def_group)
4793 (make_thread_apply_options_def_group): New.
4794 (thread_apply_all_command): Use gdb::option::process_options.
4795 (thread_apply_command_completer)
4796 (thread_apply_all_command_completer): New.
4797 (thread_apply_command): Use gdb::option::process_options.
4798 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
4799 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
4800 to generate help text of "thread apply". Adjust "taas"'s help.
4801 * tid-parse.c (tid_range_parser::in_thread_range): New method.
4802 * tid-parse.h (tid_range_parser::in_thread_range): New method.
4804 2019-06-13 Pedro Alves <palves@redhat.com>
4806 * thread.c (thread_apply_command): Check for invalid TID with
4807 isdigit instead of !isalpha.
4809 2019-06-13 Pedro Alves <palves@redhat.com>
4811 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
4812 (validate_flags_qcs): New.
4813 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
4814 (validate_flags_qcs): Declare.
4815 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
4816 (make_frame_apply_options_def_group): New.
4817 (frame_apply_command_count): Process options with
4818 gdb::option::process_options.
4819 (frame_apply_completer): New.
4820 (frame_apply_level_completer, frame_apply_all_completer)
4821 (frame_apply_completer): New.
4822 (_initialize_stack): Update help of "frame apply", "frame apply
4823 level", "frame apply all" and "faas" to mention supported options
4824 and install command completers.
4825 * stack.h (frame_apply_all_completer): Declare.
4826 * thread.c: Include "stack.h".
4827 (tfaas_command): Add "--".
4828 (_initialize_thread): Update help "tfaas" to mention supported
4829 options and install command completer.
4831 2019-06-13 Pedro Alves <palves@redhat.com>
4833 * completer.c (complete_nested_command_line): New.
4834 (gdb_completion_word_break_characters_throw): Add assertion.
4835 * completer.h (complete_nested_command_line): Declare.
4837 2019-06-13 Pedro Alves <palves@redhat.com>
4839 * stack.c (parse_backtrace_qualifiers): New.
4840 (backtrace_command): Use it.
4841 (backtrace_command_completer): Complete on qualifiers.
4843 2019-06-13 Pedro Alves <palves@redhat.com>
4845 * frame.c: Include "cli/cli-option.h.
4846 (user_set_backtrace_options): New.
4847 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
4849 (get_prev_frame): Adjust.
4850 (boolean_option_def, uinteger_option_def)
4851 (set_backtrace_option_defs): New.
4852 (_initialize_frame): Adjust and use
4853 gdb::option::add_setshow_cmds_for_options to install "set
4854 backtrace past-main" and "set backtrace past-entry".
4855 * frame.h: Include "cli/cli-option.h".
4856 (struct frame_print_options): Forward declare.
4857 (print_frame_arguments_all, print_frame_arguments_scalars)
4858 (print_frame_arguments_none): Declare.
4859 (print_entry_values): Delete declaration.
4860 (struct frame_print_options, user_frame_print_options): New.
4861 (struct set_backtrace_options): New.
4862 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
4863 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4864 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
4865 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
4866 (list_args_or_locals): Add frame_print_options parameter.
4867 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4868 * python/py-framefilter.c (enumerate_args): Pass down
4869 USER_FRAME_PRINT_OPTIONS.
4870 * stack.c: Include "cli/cli-option.h".
4871 (print_frame_arguments_all, print_frame_arguments_scalars)
4872 (print_frame_arguments_none): Declare.
4873 (print_raw_frame_arguments, print_entry_values): Delete.
4874 (user_frame_print_options): New.
4875 (boolean_option_def, enum_option_def, frame_print_option_defs):
4877 (struct backtrace_cmd_options): New.
4878 (bt_flag_option_def): New.
4879 (backtrace_command_option_defs): New.
4880 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4881 (print_frame_arg, read_frame_arg, print_frame_args)
4882 (print_frame_info, print_frame): Add frame_print_options parameter
4884 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
4885 (backtrace_command_1): Add frame_print_options and
4886 backtrace_cmd_options parameters and use them.
4887 (make_backtrace_options_def_group): New.
4888 (backtrace_command): Process command options with
4889 gdb::option::process_options.
4890 (backtrace_command_completer): New.
4891 (_initialize_stack): Extend "backtrace"'s help to mention
4892 supported options. Install completer for "backtrace".
4893 Install some settings commands with add_setshow_cmds_for_options.
4895 2019-06-13 Pedro Alves <palves@redhat.com>
4897 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
4898 and that "set/show print raw frame-arguments" are now deprecated.
4900 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
4902 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
4903 * stack.c (_initialize_stack): Install "set/show print
4904 raw-frame-arguments", and deprecate "set/show print raw
4906 * valprint.c (_initialize_valprint): Deprecate "set/show print
4909 2019-06-13 Pedro Alves <palves@redhat.com>
4911 * compile/compile.c (struct compile_options): New.
4912 (compile_flag_option_def, compile_command_option_defs)
4913 (make_compile_options_def_group): New.
4914 (compile_file_command): Handle options with
4915 gdb::option::process_options.
4916 (compile_file_command_completer): New function.
4917 (compile_code_command): Handle options with
4918 gdb::option::process_options.
4919 (compile_code_command_completer): New function.
4920 (_initialize_compiler): Install completers for "compile code" and
4921 "compile file". Mention available options in "compile code" and
4922 "compile code"'s help.
4923 * completer.c (advance_to_completion_word): New, factored out from
4925 (advance_to_expression_complete_word_point): ... this.
4926 (advance_to_filename_complete_word_point): New.
4927 * completer.h (advance_to_filename_complete_word_point): New
4930 2019-06-13 Pedro Alves <palves@redhat.com>
4932 * compile/compile.c: Include "cli/cli-option.h".
4933 (compile_print_value): Scope data pointer is now a
4934 value_print_options pointer; adjust.
4935 (compile_print_command): Process options. Scope data pointer is
4936 now a value_print_options pointer; adjust.
4937 (_initialize_compile): Update "compile print"'s help to include
4938 supported options. Install a completer for "compile print".
4939 * cp-valprint.c (show_vtblprint, show_objectprint)
4940 (show_static_field_print): Delete.
4941 (_initialize_cp_valprint): Don't install "set print
4942 static-members", "set print vtbl", "set print object" here.
4943 * printcmd.c: Include "cli/cli-option.h" and
4944 "common/gdb_optional.h".
4945 (print_command_parse_format): Rework to fill in a
4946 value_print_options instead of a format_data.
4947 (print_value): Change parameter type from format_data pointer to
4948 value_print_options reference. Adjust.
4949 (print_command_1): Process options. Adjust to pass down a
4950 value_print_options.
4951 (print_command_completer): New.
4952 (_initialize_printcmd): Install print_command_completer as
4953 handle_brkchars completer for the "print" command. Update
4954 "print"'s help to include supported options.
4955 * valprint.c: Include "cli/cli-option.h".
4956 (show_vtblprint, show_objectprint, show_static_field_print): Moved
4957 here from cp-valprint.c.
4958 (boolean_option_def, uinteger_option_def)
4959 (value_print_option_defs, make_value_print_options_def_group):
4960 New. Use gdb::option::add_setshow_cmds_for_options to install
4961 "set print elements", "set print null-stop", "set print repeats",
4962 "set print pretty", "set print union", "set print array", "set
4963 print address", "set print symbol", "set print array-indexes".
4964 * valprint.h: Include <string> and "cli/cli-option.h".
4965 (make_value_print_options_def_group): Declare.
4966 (print_value): Change parameter type from format_data pointer to
4967 value_print_options reference.
4968 (print_command_completer): Declare.
4970 2019-06-13 Pedro Alves <palves@redhat.com>
4972 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
4973 (COMMON_SFILES): Add maint-test-settings.c.
4974 * cli/cli-decode.c (boolean_enums): New global, factored out from
4976 (add_setshow_boolean_cmd): ... here.
4977 * cli/cli-decode.h (boolean_enums): Declare.
4978 * cli/cli-option.c: New file.
4979 * cli/cli-option.h: New file.
4980 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
4981 factored out from ...
4982 (parse_cli_boolean_value(const char *)): ... this.
4983 (is_unlimited_literal): Change parameter type to pointer to
4984 pointer. Adjust and advance ARG pointer.
4985 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4986 (parse_cli_var_enum): New, factored out from ...
4987 (do_set_command): ... this. Adjust.
4988 * cli/cli-setshow.h (parse_cli_boolean_value)
4989 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4990 (parse_cli_var_enum): Declare.
4991 * cli/cli-utils.c: Include "cli/cli-option.h".
4992 (get_ulongest): New.
4993 * cli/cli-utils.h (get_ulongest): Declare.
4994 (check_for_argument): New overloads.
4995 * maint-test-options.c: New file.
4997 2019-06-13 Pedro Alves <palves@redhat.com>
4999 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
5000 parse a range if "-" is at the end of the string.
5002 2019-06-13 Pedro Alves <palves@redhat.com>
5004 * cli/cli-setshow.c (parse_auto_binary_operation)
5005 (parse_cli_boolean_value): Don't allow "o".
5007 2019-06-13 Pedro Alves <palves@redhat.com>
5009 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
5010 * NEWS: Mention maint test-settings KIND.
5011 * maint-test-settings.c: New file.
5013 2019-06-13 Pedro Alves <palves@redhat.com>
5015 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
5017 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
5020 2019-06-13 Pedro Alves <palves@redhat.com>
5022 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
5025 2019-06-13 Pedro Alves <palves@redhat.com>
5027 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
5029 2019-06-13 Pedro Alves <palves@redhat.com>
5031 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
5032 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
5034 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
5035 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
5037 (check_for_argument): Skip spaces after argument.
5039 2019-06-13 Pedro Alves <palves@redhat.com>
5041 * thread.c (thread_apply_command): Adjust TID parsing.
5042 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
5043 detected before end of string.
5044 (tid_is_in_list): Error out if LIST is invalid.
5046 2019-06-13 Pedro Alves <palves@redhat.com>
5048 * completer.c (complete_line_internal_1): Rewind completion word
5050 (completion_tracker::advance_custom_word_point_by): Change
5051 parameter type to int.
5052 * completer.h (completion_tracker::advance_custom_word_point_by):
5055 2019-06-13 Pedro Alves <palves@redhat.com>
5057 * completer.c (advance_to_completion_word): Handle delimiters.
5059 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
5061 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
5063 2019-06-11 Tom Tromey <tom@tromey.com>
5065 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
5066 (xmalloc_failed): Move to alloc.c.
5067 * alloc.c: New file.
5068 * Makefile.in (COMMON_SFILES): Add alloc.c.
5070 2019-06-11 Tom Tromey <tom@tromey.com>
5072 * nat/linux-waitpid.c: Don't include server.h.
5073 (linux_debug): Remove.
5074 (my_waitpid): Update.
5076 2019-06-11 Tom Tromey <tromey@adacore.com>
5078 * infcall.c (_initialize_infcall): Remove trailing newline from
5080 * user-regs.c (_initialize_user_regs): Remove trailing newline
5082 * typeprint.c (_initialize_typeprint): Remove trailing newline
5084 * reverse.c (_initialize_reverse): Remove trailing newlines from
5086 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
5088 * language.c (add_set_language_command): Remove trailing newline
5090 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
5092 * disasm.c (_initialize_disasm): Remove trailing newline from
5094 * top.c (init_main): Remove trailing newline from help.
5095 * interps.c (_initialize_interpreter): Remove trailing newline
5097 * btrace.c (_initialize_btrace): Remove trailing newlines from
5099 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
5101 * python/python.c (_initialize_python): Remove trailing newline
5103 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
5105 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
5106 from help. Reformat some text.
5107 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
5109 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
5112 2019-06-11 Tom Tromey <tromey@adacore.com>
5114 * darwin-nat.c (darwin_decode_exception_message)
5115 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
5117 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
5119 * valops.c (value_slice): Check for not allocated or not
5122 2019-06-10 Tom de Vries <tdevries@suse.de>
5125 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
5126 sure an empty slot (defined by a 32-bit zero pair) is recognized as
5129 2019-06-10 Tom de Vries <tdevries@suse.de>
5132 * linespec.c (linespec_lexer_lex_string): Remove incorrect
5133 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
5135 2019-06-10 Tom de Vries <tdevries@suse.de>
5138 * symtab.c (struct demangled_name_entry): Add language field.
5139 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
5140 static minimal symbol". Set and use language field.
5142 2019-06-10 Tom Tromey <tromey@adacore.com>
5144 * ada-lang.c (_initialize_ada_language): Update help text.
5146 2019-06-10 Tom Tromey <tromey@adacore.com>
5148 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
5150 * guile/guile.c (handle_boot_error): Don't end warning with a
5152 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
5153 warning with a newline.
5154 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
5156 (s12z_frame_cache): Likewise.
5157 * dwarf-index-cache.c (index_cache::store): Don't end warning with
5159 * solib-svr4.c (disable_probes_interface): Don't end warning with
5161 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
5163 * python/python.c (do_finish_initialization): Don't end warning
5166 2019-06-10 Tom Tromey <tom@tromey.com>
5168 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5169 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5172 2019-06-10 Tom Tromey <tromey@adacore.com>
5174 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
5176 (elf_new_init): Don't call stabsread_new_init.
5177 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
5178 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
5179 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
5181 2019-06-10 Tom de Vries <tdevries@suse.de>
5185 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5187 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5189 * source.c (find_and_open_source): Also rewrite relative file
5192 2019-04-26 Amos Bird <amosbird@gmail.com>
5194 * annotate.c (annotate_thread_exited): Add "thread-exited"
5197 2019-06-06 Tom Tromey <tromey@adacore.com>
5199 * maint.h (class scoped_command_stats): Use
5200 DISABLE_COPY_AND_ASSIGN.
5201 <print_time>: New method.
5202 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5204 (scoped_command_stats::print_time): New method.
5206 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5208 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5209 instructions of lengths 6 or 8 bytes.
5211 2019-06-04 Pedro Alves <palves@redhat.com>
5213 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5215 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5216 * breakpoint.c (condition_completer): Likewise.
5217 * cli/cli-dump.c (scan_expression): Likewise.
5218 * common/filestuff.c (mkdir_recursive): Likewise.
5219 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5220 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5221 (gdb_abspath): Likewise.
5222 * compile/compile-cplus-types.c
5223 (compile_cplus_instance::decl_name): Likewise.
5224 * completer.c (complete_explicit_location):
5225 (signal_completer, reg_or_group_completer_1): Likewise.
5226 * cp-support.c (cp_remove_params_if_any): Likewise.
5227 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5228 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5229 * infcmd.c (strip_bg_char): Likewise.
5230 * linespec.c (copy_token_string): Likewise.
5231 * mi/mi-main.c (output_cores): Likewise.
5232 * psymtab.c (psymtab_search_name):
5233 * symfile.c (test_set_ext_lang_command): Likewise.
5234 * target.c (target_fileio_read_stralloc): Likewise.
5235 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5236 * value.c (complete_internalvar): Likewise.
5238 2019-06-04 Christian Biesinger <cbiesinger@google.com>
5240 Add objfile property to gdb.Type.
5241 * NEWS: Mention Python API addition.
5242 * python/py-type.c (typy_get_objfile): New method.
5244 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5246 * NEWS: Mention the new set|show style [title|highlight].
5247 Mention changes to "show style", "help" and "apropos".
5249 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5251 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5252 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5253 instead of print_help_for_command.
5254 (print_doc_of_command): New function.
5255 (help_list): Add 'apropos -v word' suggestion.
5256 (print_help_for_command): Style the command name using title style.
5257 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5258 (_initialize_cli_cmds): Describe -v in apropos_command help.
5260 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5262 * cli/cli-style.h (cli_style_option): Add name in constructor,
5263 add m_name class member, add constructor with intensity,
5264 add name class function.
5265 (cli_style_option::add_setshow_commands): Remove name argument.
5266 (highlight_style, title_style): New styles.
5267 * cli/cli-style.c (do_show): New function that shows a style
5268 characteristic styling the style name with itself.
5269 (set_style_name): New function.
5270 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5271 Update all callers according to the changes in cli/cli-style.h.
5272 * utils.h (fputs_highlighted): New function.
5273 * utils.c (fputs_highlighted): Likewise.
5275 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5277 * NEWS: Mention new pipe command and new convenience variables.
5279 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5281 * cli/cli-cmds.c (pipe_command): New function.
5282 (_initialize_cli_cmds): Call add_com for pipe_command.
5283 Define | as an alias for pipe.
5284 (exit_status_set_internal_vars): New function.
5285 (shell_escape): Call exit_status_set_internal_vars.
5286 cli/cli-decode.c (find_command_name_length): Recognize | as
5287 a single character command.
5289 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5291 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5292 top.c (execute_command_to_ui_file): New function, mostly a copy
5293 of execute_command_to_string.
5294 (execute_command_to_string): Implement by calling
5295 execute_command_to_ui_file.
5297 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5299 * top.h (saved_command_line): Remove declaration.
5300 * top.c (previous_saved_command_line, previous_repeat_arguments):
5302 (saved_command_line): Make static, define together with other
5304 (dont_repeat): Clear repeat_arguments.
5305 (repeat_previous, get_saved_command_line, save_command_line):
5307 (gdb_init): Initialize saved_command_line
5308 and previous_saved_command_line.
5309 * main.c (captured_main_1): Remove saved_command_line initialization.
5310 * event-top.c (handle_line_of_input): Update to use
5311 the new 'repeat' related functions instead of direct access to
5313 * command.h (repeat_previous, get_saved_command_line,
5314 save_command_line): New declarations.
5315 (dont_repeat): Add comment.
5317 2019-05-30 Tom Tromey <tromey@adacore.com>
5319 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
5321 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
5323 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
5326 * completer.c (complete): Initialize variable word.
5328 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
5330 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5331 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
5332 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
5333 'body' is NULL to the outter 'if', protecting the '!is_define'
5336 2019-05-29 Tom Tromey <tromey@adacore.com>
5338 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
5339 (dwarf_unknown): New function.
5340 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
5341 (dwarf_type_encoding_name): Use dwarf_unknown.
5343 2019-05-29 Tom Tromey <tromey@adacore.com>
5346 * cp-valprint.c (cp_print_value_fields): Call
5347 cp_print_static_field inside "try".
5349 2019-05-29 Tom Tromey <tromey@adacore.com>
5351 * inflow.c (struct terminal_info): Add default operator=.
5352 * configure: Rebuild.
5353 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
5354 -Wdeprecated-copy-dtor, -Wredundant-move.
5356 2019-05-29 Tom Tromey <tromey@adacore.com>
5359 * infcmd.c (print_return_value_1): Handle finish_print
5361 (show_print_finish): New function.
5362 (_initialize_infcmd): Add "set/show print finish" commands.
5363 * valprint.c (user_print_options): Initialize new member.
5364 * valprint.h (struct value_print_options) <finish_print>: New
5367 2019-05-28 Tom Tromey <tromey@adacore.com>
5369 * ada-lang.c (ada_remove_Xbn_suffix)
5370 (find_old_style_renaming_symbol)
5371 (parse_old_style_renaming): Remove.
5372 (ada_find_renaming_symbol): Don't call
5373 find_old_style_renaming_symbol.
5374 (ada_is_renaming_symbol): Rename from
5375 ada_find_renaming_symbol. Remove "block" parameter. Return
5377 (ada_read_var_value): Update and simplify.
5378 * ada-exp.y (write_var_or_type): Remove old code.
5380 2019-05-28 Alan Hayward <alan.hayward@arm.com>
5382 * event-top.c: Remove include comment.
5383 * inflow.c (class scoped_ignore_sigttou): Move from here...
5384 * inflow.h (class scoped_ignore_sigttou): ...to here.
5385 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
5386 * top.c: Remove include comment.
5388 2019-05-27 Tom Tromey <tom@tromey.com>
5392 2019-05-22 Tom Tromey <tromey@adacore.com>
5394 * target.c (target_follow_exec): Constify parameter.
5395 * target-delegates.c: Rebuild.
5396 * remote.c (remote_target::follow_exec): Constify parameter.
5397 * infrun.c (follow_exec): Constify parameter.
5398 * target.h (struct target_ops) <follow_exec>: Constify parameter.
5399 (target_follow_exec): Likewise.
5401 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5403 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
5404 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
5406 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5408 * NEWS: Add debugredirect and testsuite sections.
5410 2019-05-22 Simon Cook <simon.cook@embecosm.com>
5412 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
5413 target descriptions using exclusively floating point register name
5416 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5419 * f-lang.c (build_fortran_types): Handle the case where
5420 gdbarch_floatformat_for_type returns a nullptr.
5422 2019-05-21 Tom de Vries <tdevries@suse.de>
5425 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
5427 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5430 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
5432 * i386-tdep.c (i386_floatformat_for_type): Use
5433 floatformats_ia64_quad for the 16-byte floating point component
5434 within a fortran 32-byte complex number.
5436 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5438 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
5439 delete default constructor.
5440 (find_partial_die): Update to return const struct.
5441 (partial_die_parent_scope): Move variable declaration into scope
5442 of its use and change its type to auto.
5443 (guess_partial_die_structure_name): Likewise.
5444 (partial_die_info::fixup): Likewise.
5446 2019-05-17 Tom Tromey <tromey@adacore.com>
5448 * source.c (find_and_open_source): Remove cast.
5450 2019-05-17 Tom Tromey <tromey@adacore.com>
5452 * annotate.c (annotate_source): Make "filename" const.
5453 * annotate.h (annotate_source): Use const.
5455 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5457 * disasm.c (set_disassembler_options): Send errors to stderr.
5459 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5461 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
5462 (cli_interp_base::set_logging): Check debug_redirect.
5463 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
5464 * cli/cli-logging.c (debug_redirect): Add static variable.
5465 (pop_output_files): Add default param.
5466 (handle_redirections): Print debug setting.
5467 (show_logging_command): Likewise.
5468 (_initialize_cli_logging): Add debugredirect command.
5469 * interps.c (current_interp_set_logging): Add debug_redirect
5471 * interps.h (set_logging): Add debug_redirect parameter.
5472 (current_interp_set_logging): Likewise.
5473 * mi/mi-common.h: Likewise.
5474 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
5476 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5477 Tom Tromey <tromey@adacore.com>
5479 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
5481 * cli/cli-interp.h (make_logging_output): Remove declaration.
5482 * cli/cli-logging.c (make_logging_output): Remove function.
5483 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
5485 * ui-file.c (tee_file::tee_file): Remove bools.
5486 (tee_file::~tee_file): Remove deletes.
5487 * ui-file.h (tee_file): Remove bools.
5489 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
5491 * mi/mi-cmds.h (mi_cmd_complete): New function.
5492 * mi/mi-main.c (mi_cmd_complete): Likewise.
5493 * mi/mi-cmds.c: Define new MI command -complete.
5494 * NEWS: Mention new -complete command.
5496 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
5498 * completer.h (complete): New function.
5499 * completer.c (complete): Likewise.
5500 * cli/cli-cmds.c: (complete_command): Update to use new complete()
5501 function defined in completer.h.
5503 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
5505 * MAINTAINERS (Write After Approval): Add myself.
5507 2019-05-17 Tom de Vries <tdevries@suse.de>
5510 * dwarf2read.c (struct cu_partial_die_info): New struct.
5511 (find_partial_die): Return cu_partial_die_info.
5512 (partial_die_parent_scope, guess_partial_die_structure_name)
5513 (partial_die_info::fixup): Handle new return type of find_partial_die.
5515 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5517 * stap-probe.c (stap_parse_register_operand): Make "regname" an
5518 "std::string", simplifying the algorithm.
5520 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5522 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
5523 (stap_static_probe_ops::get_probes): Likewise.
5525 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5527 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
5528 '-')" and "else if".
5529 (stap_parse_single_operand): Join checks for
5530 "gdbarch_stap_parse_special_token_p" and
5531 "gdbarch_stap_parse_special_token" in the same "if" statement.
5532 Invert check when verifying for operation on register
5535 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5537 * stap-probe.c (stap_get_opcode): Update comment.
5538 (stap_get_expected_argument_type): Likewise.
5539 (handle_stap_probe): Likewise.
5541 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5543 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
5544 return type to 'bool'. Adjust comment. Use 'bool' when
5546 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5547 * stap-probe.c (stap_parse_argument_1): Likewise.
5548 (stap_is_operator): Likewise.
5549 (stap_is_generic_prefix): Likewise.
5550 (stap_is_register_prefix): Likewise.
5551 (stap_is_register_indirection_prefix): Likewise.
5552 (stap_is_integer_prefix): Likewise.
5553 (stap_generic_check_suffix): Likewise.
5554 (stap_check_integer_suffix): Likewise.
5555 (stap_check_register_suffix): Likewise.
5556 (stap_check_register_indirection_suffix): Likewise.
5557 (stap_parse_register_operand): Likewise.
5558 (stap_parse_single_operand): Likewise.
5559 (stap_parse_argument_1): Likewise.
5560 (stap_probe::get_argument_count): Likewise.
5561 (stap_is_operator): Likewise.
5563 2019-05-16 Tom Tromey <tromey@adacore.com>
5565 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
5568 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
5570 * linux-thread-db.c (try_thread_db_load_1): Change return type
5572 (try_thread_db_load): Likewise.
5573 (try_thread_db_load_from_pdir_1): Likewise.
5574 (try_thread_db_load_from_pdir): Likewise.
5575 (try_thread_db_load_from_sdir): Likewise.
5576 (try_thread_db_load_from_dir): Likewise.
5577 (thread_db_load_search): Likewise.
5578 (has_libpthread): Likewise.
5579 (thread_db_load): Likewise.
5581 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
5583 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5584 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
5585 NULL, and complain/return if that's the case.
5587 2019-05-15 John Darrington <john@darrington.wattle.id.au>
5589 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
5590 (advance, posn, abstract_read_memory): New functions.
5591 [struct mem_read_abstraction]: New struct.
5592 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
5594 2019-05-14 Tom Tromey <tromey@adacore.com>
5596 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
5597 value is not lval_memory.
5599 2019-05-14 Tom Tromey <tromey@adacore.com>
5601 * solib.c (info_sharedlibrary_command): Style the file name.
5603 2019-05-14 Alan Hayward <alan.hayward@arm.com>
5605 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
5606 (aarch64_vnv_type): Likewise.
5607 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
5608 * common/tdesc.c: Likewise.
5609 * common/tdesc.h (enum tdesc_type_kind): Likewise.
5610 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
5611 * features/aarch64-fpu.xml: Add ieee half view.
5612 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
5613 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
5614 * gdbtypes.h (struct builtin_type): Likewise.
5615 (struct objfile_type): Likewise.
5617 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
5619 * language.c (language_sniff_from_mangled_name): Fix "langauge"
5621 * location.h (string_to_event_location): Likewise.
5623 2019-05-11 Joel Brobecker <brobecker@adacore.com>
5627 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
5629 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
5630 New variable declaration.
5631 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
5633 (print_one_breakpoint): Use ui_out::test_flags and new global
5634 variable to compute use_fixed_output.
5635 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
5637 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
5638 (mi_multi_location_breakpoint_output_fixed): Remove.
5639 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
5641 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
5642 fix_multi_location_breakpoint_output flag if version >= 3.
5643 * ui-out.h (enum ui_out_flag)
5644 <fix_multi_location_breakpoint_output>: New enumerator.
5646 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
5648 * contrib/cc-with-tweaks.sh: Validate dwz's work.
5650 2019-05-10 Tom Tromey <tromey@adacore.com>
5652 * ada-lang.c (catch_ada_completer): New function.
5653 (_initialize_ada_language): Use it.
5655 2019-05-10 Tom Tromey <tromey@adacore.com>
5657 * thread.c (print_thread_info): Make "requested_threads" const.
5658 * gdbthread.h (print_thread_info): Make "requested_threads"
5660 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
5661 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
5663 2019-05-08 Tom Tromey <tom@tromey.com>
5665 * gdbtypes.c (objfile_type_data): Change type.
5666 (objfile_type, _initialize_gdbtypes): Update.
5668 2019-05-08 Tom Tromey <tom@tromey.com>
5670 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
5671 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
5672 (_initialize_dwarf2_frame): Update.
5674 2019-05-08 Tom Tromey <tom@tromey.com>
5676 * objc-lang.c (objc_objfile_data): Change type.
5677 (find_methods): Update.
5678 (_initialize_objc_lang): Remove.
5680 2019-05-08 Tom Tromey <tom@tromey.com>
5682 * stabsread.c (rs6000_builtin_type_data): Change type.
5683 (rs6000_builtin_type, _initialize_stabsread): Update.
5685 2019-05-08 Tom Tromey <tom@tromey.com>
5687 * mips-tdep.c (mips_pdr_data): Remove.
5688 (_initialize_mips_tdep): Update.
5690 2019-05-08 Tom Tromey <tom@tromey.com>
5692 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
5693 (hppa_init_objfile_priv_data, read_unwind_info)
5694 (find_unwind_entry, _initialize_hppa_tdep): Update.
5696 2019-05-08 Tom Tromey <tom@tromey.com>
5698 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
5699 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
5701 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
5703 2019-05-08 Tom Tromey <tom@tromey.com>
5705 * mdebugread.c (basic_type_data): Change type.
5706 (basic_type, _initialize_mdebugread): Update.
5708 2019-05-08 Tom Tromey <tom@tromey.com>
5710 * common/gdb_unique_ptr.h (struct noop_deleter): New.
5712 2019-05-08 Tom Tromey <tom@tromey.com>
5714 * nto-tdep.c (nto_inferior_data_reg): Change type.
5715 (nto_inferior_data): Update.
5716 (nto_inferior_data_cleanup, nto_new_inferior_data)
5717 (_initialize_nto_tdep): Remove.
5718 * nto-tdep.h (struct nto_inferior_data): Add initializers.
5720 2019-05-08 Tom Tromey <tom@tromey.com>
5722 * ada-lang.c (struct ada_inferior_data): Add initializers.
5723 (ada_inferior_data): Change type.
5724 (ada_inferior_data_cleanup): Remove.
5725 (get_ada_inferior_data, ada_inferior_exit)
5726 (struct ada_pspace_data): Add initializers, destructor.
5727 (ada_pspace_data_handle): Change type.
5728 (get_ada_pspace_data): Update.
5729 (ada_pspace_data_cleanup): Remove.
5731 2019-05-08 Tom Tromey <tom@tromey.com>
5733 * coffread.c (struct coff_symfile_info): Add initializers.
5734 (coff_objfile_data_key): Move lower. Change type.
5735 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
5737 (coff_free_info): Remove.
5739 2019-05-08 Tom Tromey <tom@tromey.com>
5741 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
5742 (fbsd_pspace_data_handle): Move lower. Change type.
5743 (get_fbsd_pspace_data): Update.
5744 (fbsd_pspace_data_cleanup): Remove.
5745 (_initialize_fbsd_tdep): Update.
5747 2019-05-08 Tom Tromey <tom@tromey.com>
5749 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
5750 (get_ada_tasks_pspace_data): Update.
5751 (ada_tasks_pspace_data_cleanup): Remove.
5752 (_initialize_tasks): Update.
5753 (ada_tasks_inferior_data_handle): Change type.
5754 (get_ada_tasks_inferior_data): Update.
5755 (ada_tasks_inferior_data_cleanup): Remove.
5756 (struct ada_tasks_pspace_data): Add initializers.
5758 2019-05-08 Tom Tromey <tom@tromey.com>
5760 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
5761 * symfile-debug.c (debug_sym_get_probes): Change type.
5762 * stap-probe.c (handle_stap_probe):
5763 (stap_static_probe_ops::get_probes): Change type.
5764 * probe.h (class static_probe_ops) <get_probes>: Change type.
5765 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
5766 (parse_probes_in_pspace): Update.
5767 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
5769 (any_static_probe_ops::get_probes): Change type.
5770 * elfread.c (elfread_data): New typedef.
5771 (probe_key): Change type.
5772 (elf_get_probes): Likewise. Update.
5773 (probe_key_free): Remove.
5774 (_initialize_elfread): Update.
5775 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
5777 (dtrace_process_dof_probe, dtrace_process_dof)
5778 (dtrace_static_probe_ops::get_probe): Change type.
5780 2019-05-08 Tom Tromey <tom@tromey.com>
5782 * xcoffread.c (struct xcoff_symfile_info): Rename from
5783 coff_symfile_info. Add initializers.
5784 (xcoff_objfile_data_key): Move lower. Change type.
5785 (XCOFF_DATA): Rewrite.
5786 (xcoff_free_info): Remove.
5787 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
5788 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
5789 (xcoff_initial_scan): Update.
5791 2019-05-08 Tom Tromey <tom@tromey.com>
5793 * solib-svr4.c (struct svr4_info): Add initializers and
5795 <probes_table>: Now an htab_up.
5796 (solib_svr4_pspace_data): Change type.
5797 (free_probes_table): Simplify.
5798 (~svr4_info): Rename from svr4_pspace_data_cleanup.
5799 (get_svr4_info, probes_table_htab_remove_objfile_probes)
5800 (probes_table_remove_objfile_probes, register_solib_event_probe)
5801 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
5802 (_initialize_svr4_solib): Update.
5804 2019-05-08 Tom Tromey <tom@tromey.com>
5806 * remote.c (remote_pspace_data): Change type.
5807 (remote_pspace_data_cleanup): Remove.
5808 (get_remote_exec_file, set_pspace_remote_exec_file)
5809 (_initialize_remote): Update.
5811 2019-05-08 Tom Tromey <tom@tromey.com>
5813 * breakpoint.c (breakpoint_objfile_key): Change type.
5814 (get_breakpoint_objfile_data): Update.
5815 (free_breakpoint_objfile_data): Remove.
5816 (_initialize_breakpoint): Update.
5818 2019-05-08 Tom Tromey <tom@tromey.com>
5820 * linux-tdep.c (struct linux_info): Add initializers.
5821 (linux_inferior_data): Move. Change type.
5822 (invalidate_linux_cache_inf): Update.
5823 (linux_inferior_data_cleanup): Remove.
5824 (get_linux_inferior_data, _initialize_linux_tdep): Update.
5826 2019-05-08 Tom Tromey <tom@tromey.com>
5828 * auxv.c (auxv_inferior_data): Move. Change type.
5829 (auxv_inferior_data_cleanup): Remove.
5830 (invalidate_auxv_cache_inf): Rewrite.
5831 (get_auxv_inferior_data, _initialize_auxv): Update.
5833 2019-05-08 Tom Tromey <tom@tromey.com>
5835 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
5836 (symfile_debug_objfile_data_key): Change type.
5837 (symfile_debug_installed, debug_qf_has_symbols)
5838 (debug_qf_find_last_source_symtab)
5839 (debug_qf_forget_cached_source_info)
5840 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
5841 (debug_qf_print_stats, debug_qf_dump)
5842 (debug_qf_expand_symtabs_for_function)
5843 (debug_qf_expand_all_symtabs)
5844 (debug_qf_expand_symtabs_with_fullname)
5845 (debug_qf_map_matching_symbols)
5846 (debug_qf_expand_symtabs_matching)
5847 (debug_qf_find_pc_sect_compunit_symtab)
5848 (debug_qf_map_symbol_filenames)
5849 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
5850 (debug_sym_new_init, debug_sym_init, debug_sym_read)
5851 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
5852 (debug_sym_read_linetable, debug_sym_relocate): Update.
5853 (symfile_debug_free_objfile): Remove.
5854 (install_symfile_debug_logging, _initialize_symfile_debug):
5857 2019-05-08 Tom Tromey <tom@tromey.com>
5859 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
5860 allocate_on_obstack.
5861 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
5862 (get_dwarf2_per_objfile): Update.
5863 (set_dwarf2_per_objfile): Remove.
5864 (dwarf2_has_info, dwarf2_get_section_info): Update.
5865 (dwarf2_free_objfile): Remove.
5866 (_initialize_dwarf2_read): Update.
5868 2019-05-08 Tom Tromey <tom@tromey.com>
5870 * auto-load.c (struct auto_load_pspace_info): Add destructor and
5872 <unsupported_script_warning_printed,
5873 script_not_found_warning_printed>: Now bool.
5874 (auto_load_pspace_data): Change type.
5875 (~auto_load_pspace_info): Rename from
5876 auto_load_pspace_data_cleanup.
5877 (get_auto_load_pspace_data, init_loaded_scripts_info)
5878 (clear_section_scripts, maybe_print_unsupported_script_warning)
5879 (maybe_print_script_not_found_warning, _initialize_auto_load):
5882 2019-05-08 Tom Tromey <tom@tromey.com>
5884 * objfiles.c (objfile_pspace_info): Add destructor and
5886 (objfiles_pspace_data): Change type.
5887 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
5888 (get_objfile_pspace_data): Update.
5889 (objfiles_bfd_data): Change type.
5890 (get_objfile_bfd_data): Update.
5891 (objfile_bfd_data_free, _initialize_objfiles): Remove.
5893 2019-05-08 Tom Tromey <tom@tromey.com>
5895 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
5897 (get_catch_syscall_inferior_data): Update.
5898 (catch_syscall_inferior_data_cleanup): Remove.
5899 (_initialize_break_catch_syscall): Update.
5901 2019-05-08 Tom Tromey <tom@tromey.com>
5903 * inflow.c (struct terminal_info): Add destructor and
5905 (inflow_inferior_data): Change type.
5906 (~terminal_info): Rename from inflow_inferior_data_cleanup.
5907 (get_inflow_inferior_data, inflow_inferior_exit)
5908 (swap_terminal_info, _initialize_inflow): Update.
5910 2019-05-08 Tom Tromey <tom@tromey.com>
5912 * target-dcache.c (target_dcache_cleanup): Remove.
5913 (target_dcache_aspace_key): Change type.
5914 (target_dcache_init_p, target_dcache_invalidate)
5915 (target_dcache_get, target_dcache_get_or_init)
5916 (_initialize_target_dcache): Update.
5917 * dcache.h (struct dcache_deleter): New.
5919 2019-05-08 Tom Tromey <tom@tromey.com>
5921 * symtab.c (struct symbol_cache): Add destructor and
5923 (symbol_cache_key): Move. Change type.
5924 (make_symbol_cache, free_symbol_cache): Remove.
5925 (get_symbol_cache): Update.
5926 (symbol_cache_cleanup): Remove.
5927 (ALL_PSPACES, symbol_cache_flush)
5928 (maintenance_print_symbol_cache)
5929 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
5932 2019-05-08 Tom Tromey <tom@tromey.com>
5934 * symtab.c (struct main_info): Add destructor and initializers.
5935 (main_progspace_key): Move. Change type.
5936 (get_main_info): Update.
5937 (main_info_cleanup): Remove.
5938 (_initialize_symtab): Update.
5940 2019-05-08 Tom Tromey <tom@tromey.com>
5942 * registry.h (DECLARE_REGISTRY): Define the _key class.
5944 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5946 * NEWS: Merge two 'New commands' sections.
5948 2019-05-08 Joel Brobecker <brobecker@adacore.com>
5950 * ada-valprint.c (ada_val_print_gnat_array): Remove language
5951 parameter and use Ada language definition instead.
5952 (ada_val_print_ptr): Remove unused language parameter.
5953 (ada_val_print_num): Remove language parameter and use Ada language
5955 (ada_val_print_enum, ada_val_print_flt): Remove unused language
5957 (ada_val_print_struct_union, ada_val_print_ref): Remove language
5958 parameter and use Ada language definition instead.
5959 (ada_val_print_1): Update all ada_val_print_xxx calls.
5960 Remove language parameter.
5961 (ada_val_print): Update ada_val_print_1 call.
5963 2019-05-08 Tom Tromey <tromey@adacore.com>
5965 * remote.c (remote_hw_watchpoint_limit)
5966 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
5969 2019-05-08 Tom Tromey <tromey@adacore.com>
5971 * maint.c (_initialize_maint_cmds): Move initialization code to
5973 (watchdog, show_watchdog): Move to remote.c.
5974 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
5976 (_initialize_remote): Move initialization code from maint.c.
5977 * defs.h (watchdog): Don't declare.
5979 2019-05-08 Tom Tromey <tromey@adacore.com>
5981 * tui/tui-interp.c: Include main.h.
5982 * interps.c: Include main.h.
5983 * main.h (interpreter_p): Declare.
5984 * defs.h (interpreter_p): Don't declare.
5986 2019-05-08 Tom Tromey <tromey@adacore.com>
5988 * dwarf2loc.c: Include dwarf2read.h.
5989 * defs.h (read_unsigned_leb128): Don't declare.
5990 * dwarf2read.h (read_unsigned_leb128): Declare.
5992 2019-05-08 Tom Tromey <tromey@adacore.com>
5994 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
5997 2019-05-08 Tom Tromey <tromey@adacore.com>
5999 * utils.c (fputs_maybe_filtered): Reset style after paging, even
6000 when no wrap column is set.
6002 2019-05-08 Tom Tromey <tromey@adacore.com>
6004 * c-lang.c (c_get_string): Handle non-C-style arrays.
6006 2019-05-08 Tom Tromey <tromey@adacore.com>
6008 * typeprint.c (print_offset_data::update): Print the bit offset,
6009 not the number of bits remaining.
6011 2019-05-08 Tom Tromey <tromey@adacore.com>
6013 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
6014 padding at end of comment.
6016 2019-05-08 Tom Tromey <tromey@adacore.com>
6018 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
6021 2019-05-06 Tom Tromey <tom@tromey.com>
6023 * common/scoped_mmap.c: Include common-defs.h.
6024 * common/scoped_mmap.h: Don't include config.h.
6026 2019-05-04 Tom Tromey <tom@tromey.com>
6028 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
6029 (struct aarch64_call_info): Add initializers.
6030 <si>: Now a std::vector.
6031 (pass_on_stack, aarch64_push_dummy_call): Update.
6033 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
6034 Tom Tromey <tom@tromey.com>
6036 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
6037 (ppc_threads): Now a std::vector. Now static.
6038 (hwdebug_find_thread_points_by_tid)
6039 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
6042 2019-05-04 Tom Tromey <tom@tromey.com>
6044 * arc-tdep.c (arc_tdesc_init): Return bool.
6046 2019-05-04 Tom Tromey <tom@tromey.com>
6048 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
6049 Use gdb_assert_not_reached.
6051 2019-05-04 Tom Tromey <tom@tromey.com>
6053 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
6056 2019-05-04 Tom Tromey <tom@tromey.com>
6058 * arc-tdep.c (arc_tdesc_init): Use bool.
6060 2019-05-04 Tom Tromey <tom@tromey.com>
6062 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
6064 2019-05-04 Tom Tromey <tom@tromey.com>
6066 * cli/cli-cmds.c (valid_command_p): Return bool.
6068 2019-05-04 Tom Tromey <tom@tromey.com>
6070 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
6071 * command.h (valid_user_defined_cmd_name_p): Channge return type.
6073 2019-05-04 Raul Tambre <raul@tambre.ee>
6075 * python/lib/gdb/prompt.py (_ExtendedPrompt)
6076 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
6077 operator for comparison.
6079 2019-05-04 Tom Tromey <tom@tromey.com>
6081 * psymtab.c (psymbol_name_matches, match_partial_symbol)
6082 (lookup_partial_symbol, print_partial_symbols)
6083 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
6084 (psymbol_compare): Update.
6085 (add_psymbol_to_bcache): Clear the entire psymbol.
6086 (maintenance_check_psymtabs): Update.
6087 * psympriv.h (struct partial_symbol): Don't derive from
6088 general_symbol_info.
6089 <obj_section, unrelocated_address, address,
6090 set_unrelocated_address>: Update.
6091 <ginfo>: New member.
6092 * dwarf-index-write.c (write_psymbols, debug_names::insert)
6093 (debug_names::write_psymbols): Update.
6095 2019-05-04 Tom de Vries <tdevries@suse.de>
6097 * contrib/cc-with-tweaks.sh: Support -n arg.
6099 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6101 * corelow.c (core_target::detach): Ensure frame cache and
6102 register caches are cleared.
6103 inferior.c (exit_inferior_1): Likewise.
6105 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
6106 Tom Tromey <tom@tromey.com>
6108 * dictionary.c (collate_pending_symbols_by_language): Remove
6109 "struct" from foreach.
6110 * symtab.c (lookup_global_symbol_from_objfile)
6111 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
6113 * ser-tcp.c (net_open): Remove "struct" from foreach.
6114 * objfiles.c (objfile_relocate, objfile_rebase)
6115 (objfile_has_symbols): Remove "struct" from foreach.
6116 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
6118 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
6120 * darwin-nat.c (thread_info_from_private_thread_info): Remove
6121 "struct" from foreach.
6122 * ada-lang.c (create_excep_cond_exprs)
6123 (ada_exception_catchpoint_cond_string): Remove "struct" from
6126 2019-05-03 Tom Tromey <tromey@adacore.com>
6128 * ada-exp.y (convert_char_literal): Check suffix of each
6131 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
6134 * ada-exp.y (yywrap): Don't define.
6135 * ada-lex.l (%option): Add noyywrap
6138 2019-05-03 Eli Zaretskii <eliz@gnu.org>
6140 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
6141 _WIN32_WINNT to the XP level, unless already defined to a higher
6144 * unittests/parse-connection-spec-selftests.c:
6146 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
6149 * symfile.c (find_separate_debug_file): Remove colon from the
6150 drive spec of DOS/Windows file names of the target, so that the
6151 file name produced from DEBUGDIR and the target's directory will
6152 be valid on DOS/Windows systems.
6154 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
6156 * rust-lang.c (val_print_struct): Handle printing structures
6159 2019-05-02 Tom Tromey <tromey@adacore.com>
6161 * valarith.c (_initialize_valarith): Remove.
6163 2019-05-01 Tom Tromey <tromey@adacore.com>
6165 * ada-lang.c (ada_value_primitive_field): Treat more fields as
6168 2019-05-01 Tom Tromey <tromey@adacore.com>
6170 * ada-lang.c (ada_value_assign): Correctly compute starting offset
6171 for big-endian copies.
6173 2019-04-30 Ali Tamur <tamur@google.com>
6174 * gdb/dwarf2read.c (read_3_bytes): New declaration.
6175 (read_attribute_value): Added DW_FORM_strx1-4 cases.
6176 (read_3_bytes): New function.
6178 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6180 * windows-nat.c (main_thread_id): Delete.
6181 (handle_output_debug_string): Replace main_thread_id by
6182 current_event.dwThreadId.
6183 (fake_create_process): Likewise.
6184 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6185 Do not set main_thread_id.
6186 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6187 current_event.dwThreadId.
6188 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6190 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6192 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6193 Use current_event.dwThreadId instead of main_thread_id.
6195 2019-04-30 Tom Tromey <tromey@adacore.com>
6197 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6198 (create_excep_cond_exprs): Iterate over program spaces.
6199 (ada_exception_catchpoint_cond_string): Examine all minimal
6200 symbols for exception types.
6202 2019-04-30 Tom Tromey <tromey@adacore.com>
6205 * dwarf2read.c (process_structure_scope): Handle case where type
6206 has template parameters but no symbol was created.
6208 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6209 Chris January <chris.january@arm.com>
6211 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6213 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6215 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6217 * f-typeprint.c (f_print_type): Update rules for printing
6219 (f_type_print_varspec_suffix): Likewise.
6221 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6222 Chris January <chris.january@arm.com>
6224 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6227 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6229 * f-lang.c (build_fortran_types): Change name of void type to
6231 * f-typeprint.c (f_type_print_base): Print the name of the void
6232 type, rather than a fixed string.
6233 * f-valprint.c (f_decorations): Use lower case void string.
6235 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6236 Chris January <chris.january@arm.com>
6238 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6241 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6242 Chris January <chris.january@arm.com>
6243 David Lecomber <david.lecomber@arm.com>
6245 * f-exp.y (BINOP_INTRINSIC): New token.
6246 (exp): New parser rule handling BINOP_INTRINSIC.
6247 (f77_keywords): Add new builtin procedures.
6248 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6249 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6250 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6251 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6252 (print_unop_subexp_f): New function.
6253 (print_binop_subexp_f): New function.
6254 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6255 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6256 (dump_subexp_body_f): Likewise.
6257 (operator_check_f): Likewise.
6258 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6259 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6261 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6263 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6265 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6266 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6267 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6268 (operator_length_f): New fuction.
6269 (print_subexp_f): New function.
6270 (op_name_f): New function.
6271 (dump_subexp_body_f): New function.
6272 (operator_check_f): New function.
6273 (exp_descriptor_f): Replace standard expression handling functions
6275 * gdb/fortran-operator.def: New file.
6276 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6277 * gdb/std-operator.def: Remove UNOP_KIND.
6279 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6281 * std-operator.def: Remove unbalanced, stray double quote
6284 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6285 Chris January <chris.january@arm.com>
6286 Daniel Everett <daniel.everett@arm.com>
6287 Nick Forrington <nick.forrington@arm.com>
6288 Richard Bunt <richard.bunt@arm.com>
6290 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6291 of depth when printing anonymous structs or unions.
6292 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6293 Don't print either the top-level value, or the children if the
6294 max-depth is exceeded.
6295 (ppscm_print_children): When printing the key of a map, allow one
6296 extra level of depth.
6297 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6298 print either the top-level value, or the children if the max-depth
6300 (print_children): When printing the key of a map, allow one extra
6302 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6303 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6304 (user_print_options): Initialise max_depth field.
6305 (val_print_scalar_or_string_type_p): New function.
6306 (val_print): Check to see if the max depth has been reached.
6307 (val_print_check_max_depth): Define new function.
6308 (show_print_max_depth): New function.
6309 (_initialize_valprint): Add 'print max-depth' option.
6310 * valprint.h (struct value_print_options) <max_depth>: New field.
6311 (val_print_check_max_depth): Declare new function.
6312 * NEWS: Document new feature.
6314 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6316 * ada-lang.c (ada_language_defn): Initialise new field.
6317 * c-lang.c (c_is_string_type_p): New function.
6318 (c_language_defn): Initialise new field.
6319 (cplus_language_defn): Initialise new field.
6320 (asm_language_defn): Initialise new field.
6321 (minimal_language_defn): Initialise new field.
6322 * c-lang.h (c_is_string_type_p): Declare new function.
6323 * d-lang.c (d_language_defn): Initialise new field.
6324 * f-lang.c (f_is_string_type_p): New function.
6325 (f_language_defn): Initialise new field.
6326 * go-lang.c (go_is_string_type_p): New function.
6327 (go_language_defn): Initialise new field.
6328 * language.c (default_is_string_type_p): New function.
6329 (unknown_language_defn): Initialise new field.
6330 (auto_language_defn): Initialise new field.
6331 * language.h (struct language_defn) <la_is_string_type_p>: New
6333 (default_is_string_type_p): Declare new function.
6334 * m2-lang.c (m2_language_defn): Initialise new field.
6335 * objc-lang.c (objc_language_defn): Initialise new field.
6336 * opencl-lang.c (opencl_language_defn): Initialise new field.
6337 * p-lang.c (pascal_is_string_type_p): New function.
6338 (pascal_language_defn): Initialise new field.
6339 * rust-lang.c (rust_is_string_type_p): New function.
6340 (rust_language_defn): Initialise new field.
6342 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6344 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
6346 * ada-lang.c (ada_language_defn): Initialise new field.
6347 * c-lang.c (c_language_defn): Likewise.
6348 (cplus_language_defn): Likewise.
6349 (asm_language_defn): Likewise.
6350 (minimal_language_defn): Likewise.
6351 * d-lang.c (d_language_defn): Likewise.
6352 * f-lang.c (f_language_defn): Likewise.
6353 * go-lang.c (go_language_defn): Likewise.
6354 * language.c (unknown_language_defn): Likewise.
6355 (auto_language_defn): Likewise.
6356 * m2-lang.c (m2_language_defn): Likewise.
6357 * objc-lang.c (objc_language_defn): Likewise.
6358 * opencl-lang.c (opencl_language_defn): Likewise.
6359 * p-lang.c (pascal_language_defn): Likewise.
6360 * rust-lang.c (rust_language_defn): Likewise.
6362 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6364 * ada-lang.c (ada_is_character_type): Change return type to bool.
6365 (ada_is_string_type): Likewise.
6366 * ada-lang.h (ada_is_character_type): Update declaration
6367 (ada_is_string_type): Likewise.
6369 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6371 Support style in 'frame|thread apply'
6373 * gdbcmd.h (execute_command_to_string): New term_out parameter.
6374 * record.c (record_start, record_stop): Update callers of
6375 execute_command_to_string with false.
6376 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
6377 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
6379 (class string_file): New constructor with term_out parameter.
6380 Override methods term_out and can_emit_style_escape. New member
6382 (class stdio_file): Override can_emit_style_escape.
6383 (class tee_file): Override term_out and can_emit_style_escape.
6384 * utils.h (can_emit_style_escape): Remove.
6385 * utils.c (can_emit_style_escape): Likewise.
6386 Update all callers of can_emit_style_escape (SOMESTREAM) to
6387 SOMESTREAM->can_emit_style_escape.
6388 * source-cache.c (source_cache::get_source_lines): Likewise.
6389 * stack.c (frame_apply_command_count): Call execute_command_to_string
6390 passing the term_out characteristic of the current gdb_stdout.
6391 * thread.c (thr_try_catch_cmd): Likewise.
6392 * top.c (execute_command_to_string): pass term_out parameter
6393 to construct the string_file for the command output.
6394 * ui-file.c (term_cli_styling): New function (most code moved
6395 from utils.c can_emit_style_escape).
6396 (string_file::string_file, string_file::can_emit_style_escape,
6397 stdio_file::can_emit_style_escape, tee_file::term_out,
6398 tee_file::can_emit_style_escape): New functions.
6400 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6402 * NEWS: Mention the new set|show may-call-functions.
6403 * infcall.c (may_call_functions_p): New variable.
6404 (show_may_call_functions_p): New function.
6405 (call_function_by_hand_dummy): Throws an error if not
6407 (_initialize_infcall): Call add_setshow_boolean_cmd for
6410 2019-04-25 Keith Seitz <keiths@redhat.com>
6413 * cp-support.c (inspect_type): Don't attempt substitutions
6414 of symbol with the same name.
6416 2019-04-25 Tom Tromey <tromey@adacore.com>
6419 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
6422 2019-04-25 Tom Tromey <tromey@adacore.com>
6424 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
6426 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
6427 (gdb_xml_parser::parse): Use std::move.
6428 * python/python-internal.h (gdbpy_convert_exception): Take a const
6430 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
6432 * python/py-utils.c (gdbpy_convert_exception): Take a const
6434 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6436 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6438 * mi/mi-main.c (mi_print_exception): Take a const reference.
6439 * main.c (handle_command_errors): Take a const reference.
6440 * linespec.c (parse_linespec): Use std::move.
6441 * infcall.c (run_inferior_call): Use std::move.
6442 (call_function_by_hand_dummy): Use std::move.
6443 * exec.c (try_open_exec_file): Use std::move.
6444 * exceptions.h (exception_print, exception_fprintf)
6445 (exception_print_same): Update.
6446 * exceptions.c (print_exception, exception_print)
6447 (exception_fprintf, exception_print_same): Change parameters to
6449 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
6450 * common/new-op.c: Use std::move.
6451 * common/common-exceptions.h (struct gdb_exception): Add move
6453 (struct gdb_exception_error, struct gdb_exception_quit, struct
6454 gdb_quit_bad_alloc): Change constructor to move constructor.
6455 (throw_exception): Change parameter to rvalue reference.
6456 * common/common-exceptions.c (throw_exception): Take rvalue
6458 * cli/cli-interp.c (safe_execute_command): Use std::move.
6459 * breakpoint.c (insert_bp_location, location_to_sals): Use
6462 2019-04-25 Tom Tromey <tromey@adacore.com>
6464 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
6465 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
6466 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
6467 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
6468 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
6469 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
6470 guile/scm-value.c: Use unpack.
6471 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
6472 gdbscm_gdb_exception.
6473 (gdbscm_throw_gdb_exception): Likewise.
6474 (struct gdbscm_gdb_exception): New.
6475 (unpack): New function.
6476 (gdbscm_wrap): Use unpack.
6478 2019-04-25 Tom Tromey <tromey@adacore.com>
6480 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6481 (gdb_rl_callback_handler): Use std::move.
6482 * common/common-exceptions.h (struct gdb_exception): Add move
6483 assignment operator.
6484 (throw_exception_sjlj): Change "exception" to const reference.
6485 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
6486 (throw_exception_sjlj): Change "exception" to const reference.
6488 2019-04-25 Tom Tromey <tromey@adacore.com>
6490 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
6491 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
6492 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6494 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6496 * mi/mi-interp.c (mi_interp::exec): Update.
6497 * linespec.c (parse_linespec): Update.
6498 * infcall.c (run_inferior_call): Update.
6499 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
6500 * guile/scm-symbol.c (gdbscm_lookup_symbol)
6501 (gdbscm_lookup_global_symbol): Update.
6502 * guile/scm-param.c (gdbscm_parameter_value): Update.
6503 * guile/scm-frame.c (gdbscm_frame_read_register)
6504 (gdbscm_frame_read_var): Update.
6505 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
6506 * exec.c (try_open_exec_file): Update.
6507 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6508 (gdb_rl_callback_handler): Update.
6509 * common/common-exceptions.h (exception_none): Don't declare.
6510 * common/common-exceptions.c (exception_none): Don't define.
6511 (struct catcher) <exception>: Update.
6512 * cli/cli-interp.c (safe_execute_command): Update.
6513 * breakpoint.c (insert_bp_location, location_to_sals): Update.
6515 2019-04-25 Ali Tamur <tamur@google.com>
6517 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
6518 (read_attribute_value): Likewise.
6519 (dwarf2_read_addr_index): Update comment.
6520 (read_str_index): Add DW_FORM_strx.
6521 (dwarf2_string_attr): Likewise.
6522 (dwarf2_const_value_attr): Likewise.
6523 (dump_die_shallow): Likewise.
6524 (dwarf2_fetch_constant_bytes): Likewise.
6525 (skip_form_bytes): Likewise.
6526 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
6528 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6532 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
6533 OFFSET. Verify if current mapping contains an ELF header.
6534 (linux_find_memory_regions_full): Adjust call to
6537 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
6538 Kang Li <kanglictf@gmail.com>
6542 * dwarf2-frame.c (read_initial_length): Be consistent about using
6543 unsigned representation of length.
6544 (decode_frame_entry_1): Likewise. Check for wraparound of
6545 end pointer as well as buffer overflow.
6547 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6549 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
6552 2019-04-24 Tom Tromey <tromey@adacore.com>
6554 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
6556 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6558 * s12z-tdep.c (s12z_unwind_pc): Delete.
6559 (s12z_unwind_sp): Delete.
6560 (s12z_gdbarch_init): Don't register deleted functions with
6563 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6565 * rl78-tdep.c (rl78_unwind_sp): Delete.
6566 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
6568 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6570 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
6571 (xstormy16_unwind_pc): Delete.
6572 (xstormy16_dummy_id): Delete.
6573 (xstormy16_gdbarch_init): Don't register deleted functions with
6576 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6578 * vax-tdep.c (vax_unwind_pc): Delete.
6579 (vax_gdbarch_init): Don't register deleted function with gdbarch.
6581 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6583 * v850-tdep.c (v850_unwind_sp): Delete.
6584 (v850_unwind_pc): Delete.
6585 (v850_dummy_id): Delete.
6586 (v850_gdbarch_init): Don't register deleted functions with
6589 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6591 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
6592 (tilegx_unwind_pc): Delete.
6593 (tilegx_unwind_dummy_id): Delete.
6594 (tilegx_gdbarch_init): Don't register deleted functions with
6597 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6599 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
6600 (tic6x_dummy_id): Delete.
6601 (tic6x_gdbarch_init): Don't register deleted functions with
6604 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6606 * sparc-tdep.c (sparc_unwind_pc): Delete.
6607 (sparc32_gdbarch_init): Don't register deleted function with
6610 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6612 * sh-tdep.c (sh_unwind_sp): Delete.
6613 (sh_unwind_pc): Delete.
6614 (sh_dummy_id): Delete.
6615 (sh_gdbarch_init): Don't register deleted functions with
6618 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6620 * score-tdep.c (score_unwind_sp): Delete.
6621 (score_unwind_pc): Delete.
6622 (score_dummy_id): Delete.
6623 (score_gdbarch_init): Don't register deleted functions with
6626 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6628 * rx-tdep.c (rx_unwind_pc): Delete.
6629 (rx_unwind_sp): Delete.
6630 (rx_dummy_id): Delete.
6631 (rx_gdbarch_init): Don't register deleted functions with
6632 gdbarch. Update comment.
6634 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6636 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
6637 (rs6000_dummy_id): Delete.
6638 (rs6000_gdbarch_init): Don't register deleted functions with
6641 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6643 * or1k-tdep.c (or1k_dummy_id): Delete.
6644 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
6646 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6648 * nios2-tdep.c (nios2_dummy_id): Delete.
6649 (nios2_unwind_sp): Delete.
6650 (nios2_gdbarch_init): Don't register deleted functions with
6653 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6655 * nds32-tdep.c (nds32_dummy_id): Delete.
6656 (nds32_unwind_pc): Delete.
6657 (nds32_unwind_sp): Delete.
6658 (nds32_gdbarch_init): Don't register deleted functions with
6661 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6663 * msp430-tdep.c (msp430_unwind_pc): Delete.
6664 (msp430_unwind_sp): Delete.
6665 (msp430_dummy_id): Delete.
6666 (msp430_gdbarch_init): Don't register deleted functions with
6669 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6671 * moxie-tdep.c (moxie_unwind_sp): Delete.
6672 (moxie_unwind_pc): Delete.
6673 (moxie_dummy_id): Delete.
6674 (moxie_gdbarch_init): Don't register deleted functions with
6677 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6679 * mn10300-tdep.c (mn10300_dummy_id): Delete.
6680 (mn10300_unwind_pc): Delete.
6681 (mn10300_unwind_sp): Delete.
6682 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
6684 (mn10300_frame_unwind_init): Don't register deleted functions with
6687 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6689 * mep-tdep.c (mep_unwind_pc): Delete.
6690 (mep_unwind_sp): Delete.
6691 (mep_dummy_id): Delete.
6692 (mep_gdbarch_init): Don't register deleted functions with
6695 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6697 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
6698 (m68hc11_unwind_sp): Delete.
6699 (m68hc11_gdbarch_init): Don't register deleted functions with
6702 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6704 * m32r-tdep.c (m32r_unwind_sp): Delete.
6705 (m32r_unwind_pc): Delete.
6706 (m32r_dummy_id): Delete.
6707 (m32r_gdbarch_init): Don't register deleted functions with
6710 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6712 * m32c-tdep.c (m32c_unwind_pc): Delete.
6713 (m32c_unwind_sp): Delete.
6714 (m32c_dummy_id): Delete.
6715 (m32c_gdbarch_init): Don't register deleted functions with
6718 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6720 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
6721 (lm32_unwind_pc): Delete.
6722 (lm32_dummy_id): Delete.
6723 (lm32_gdbarch_init): Don't register deleted functions with
6726 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6728 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
6729 (iq2000_unwind_pc): Delete.
6730 (iq2000_dummy_id): Delete.
6731 (iq2000_gdbarch_init): Don't register deleted functions with
6734 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6736 * nds32-tdep.c (nds32_type_align): Delete.
6737 (nds32_push_dummy_call): Use type_align instead.
6739 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6741 * arm-tdep.c (arm_type_align): Only handle vector override case.
6742 (arm_push_dummy_call): Use type_align.
6743 (arm_gdbarch_init): Register arm_type_align gdbarch function.
6745 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6747 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
6749 (pass_on_stack): Use type_align.
6750 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
6753 2019-04-23 Tom Tromey <tromey@adacore.com>
6755 * dwarf2read.c (line_header::file_name_at): Remove unused
6758 2019-04-23 Tom de Vries <tdevries@suse.de>
6761 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
6765 2019-03-27 Ali Tamur <tamur@google.com>
6767 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
6768 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
6769 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
6770 (dwarf_expr_context::get_addr_index): Likewise
6771 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
6772 (symbol_needs_eval_context::get_addr_index): Likewise
6773 (disassemble_dwarf_expression): Add DW_OP_addrx
6774 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
6775 (read_cutu_die_from_dwo): Update comment
6776 (skip_one_die): Add DW_FORM_addrx
6777 (read_attribute_value): Likewise
6778 (var_decode_location): Add DW_OP_addrx
6779 (dwarf2_const_value_attr): Add DW_FORM_addrx
6780 (dump_die_shallow): Likewise
6781 (dwarf2_fetch_constant_bytes): Likewise
6782 (decode_locdesc): Add DW_OP_addrx
6783 (skip_form_bytes): Add DW_FORM_addrx
6785 2019-04-22 Ali Tamur <tamur@google.com>
6787 * MAINTAINERS (Write After Approval): Add self.
6789 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
6791 * solib-svr4.c (get_svr4_info): Add pspace parameter.
6792 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
6793 (open_symbol_file_object): Likewise.
6794 (svr4_default_sos): Add info parameter.
6795 (svr4_read_so_list): Likewise.
6796 (svr4_current_sos_direct): Adjust functions calls to pass down
6798 (svr4_current_sos_1): Add info parameter.
6799 (svr4_current_sos): Call get_svr4_info, pass info down to
6801 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
6803 (svr4_in_dynsym_resolve_code): Pass current_program_space to
6805 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
6807 (probes_table_remove_objfile_probes): Likewise.
6808 (register_solib_event_probe): Add info parameter.
6809 (solist_update_incremental): Pass info parameter down to
6811 (disable_probes_interface): Add info parameter.
6812 (svr4_handle_solib_event): Pass current_program_space to
6813 get_svr4_info. Adjust disable_probes_interface cleanup.
6814 (svr4_create_probe_breakpoints): Add info parameter, pass it
6815 down to register_solib_event_probe.
6816 (svr4_create_solib_event_breakpoints): Add info parameter,
6817 pass it down to svr4_create_probe_breakpoints.
6818 (enable_break): Pass info down to
6819 svr4_create_solib_event_breakpoints.
6820 (svr4_solib_create_inferior_hook): Pass current_program_space to
6822 (svr4_clear_solib): Likewise.
6824 2019-04-22 Pedro Alves <palves@redhat.com>
6826 * solib-svr4.c (svr4_free_objfile_observer): New.
6827 (probe_and_action::objfile): New field.
6828 (probes_table_htab_remove_objfile_probes)
6829 (probes_table_remove_objfile_probes): New functions.
6830 (register_solib_event_probe): Add 'objfile' parameter. Store it
6831 in the new probe_and_action. Don't store the probe in 'lookup'.
6832 (svr4_create_probe_breakpoints): Pass objfile to
6833 register_solib_event_probe.
6834 (_initialize_svr4_solib): Register a free_objfile observer.
6836 2019-04-19 Tom Tromey <tom@tromey.com>
6838 * common/queue.h: Remove.
6840 2019-04-19 Tom Tromey <tom@tromey.com>
6842 * event-loop.c: Don't include "common/queue.h".
6844 2019-04-19 Tom Tromey <tom@tromey.com>
6846 * remote.c (remote_target): Use delete.
6847 * remote-notif.h: Include <list>, not "common/queue.h".
6848 (notif_client_p): Remove typedef.
6849 (remote_notif_state): Add constructor, destructor, initializer.
6850 <notif_queue>: Now a std::list.
6851 (remote_notif_state_xfree): Don't declare.
6852 * remote-notif.c (remote_notif_process, handle_notification)
6853 (remote_notif_state_allocate): Update.
6854 (~remote_notif_state): Rename from remote_notif_state_xfree.
6856 2019-04-19 Tom Tromey <tom@tromey.com>
6858 * symfile.c (reread_symbols): Update.
6859 * objfiles.c (objfile_register_static_link)
6860 (objfile_lookup_static_link): Update
6861 (~objfile) Don't delete static_links.
6862 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
6864 2019-04-19 Tom Tromey <tom@tromey.com>
6866 * type-stack.h (struct type_stack) <insert>: Constify string.
6867 * type-stack.c (type_stack::insert): Constify string.
6868 * gdbtypes.h (lookup_template_type): Update.
6869 (address_space_name_to_int): Update.
6870 * gdbtypes.c (address_space_name_to_int): Make space_identifier
6872 (lookup_template_type): Make name const.
6873 * c-exp.y: Update rules.
6874 (lex_one_token, classify_name, classify_inner_name)
6875 (c_print_token): Update.
6876 * p-exp.y: Update rules.
6878 * f-exp.y: Update rules.
6880 * d-exp.y: Update rules.
6881 (lex_one_token, classify_name, classify_inner_name): Update.
6882 * parse.c (write_dollar_variable, copy_name): Return std::string.
6883 * parser-defs.h (copy_name): Change return type.
6884 * m2-exp.y: Update rules.
6886 * go-exp.y (lex_one_token): Update.
6888 (classify_unsafe_function, classify_packaged_name)
6889 (classify_name, yylex): Update.
6891 2019-04-19 Sergei Trofimovich <siarheit@google.com>
6893 * configure.ac: add --enable-source-highlight switch.
6894 * configure: Regenerate.
6895 * top.c (print_gdb_version): plumb --enable-source-highlight
6896 status to "show configuration".
6898 2019-04-19 Tom Tromey <tromey@adacore.com>
6900 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
6902 (empty_record, ada_template_to_fixed_record_type_1)
6903 (template_to_static_fixed_type)
6904 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
6905 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
6906 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
6909 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6912 * source.c (print_source_lines_base): Advance "iter" when a
6913 control character is seen.
6915 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6917 * inferior.h (struct infcall_suspend_state_deleter):
6918 Catch exception in destructor to avoid crash.
6920 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6922 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
6923 close to the add_com "shell".
6925 2019-04-18 Tom Tromey <tromey@adacore.com>
6927 * process-stratum-target.h (class process_stratum_target)
6928 <stratum>: Add "final".
6930 2019-04-17 Tom Tromey <tromey@adacore.com>
6932 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
6933 against nullptr before use.
6935 2019-04-17 Alan Hayward <alan.hayward@arm.com>
6937 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
6939 2019-04-17 Jim Wilson <jimw@sifive.com>
6940 Andrew Burgess <andrew.burgess@embecosm.com>
6942 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
6943 code read might fail, assume 4-byte breakpoint in that case.
6945 2019-04-15 Leszek Swirski <leszeks@google.com>
6947 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
6948 rather than a hand-rolled POD check when checking for forced MEMORY
6951 2019-04-15 Alan Hayward <alan.hayward@arm.com>
6953 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
6954 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
6956 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
6957 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
6958 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
6961 2019-04-15 Alan Hayward <alan.hayward@arm.com>
6963 * aarch64-linux-nat.c
6964 (aarch64_linux_nat_target::thread_architecture): Add override.
6965 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
6968 2019-04-15 Alan Hayward <alan.hayward@arm.com>
6970 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
6972 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
6974 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
6975 target types of size 96-bits, add some additional comments, and
6976 check that the builtin type we found was the correct size.
6978 2019-04-12 Eli Zaretskii <eliz@gnu.org>
6980 * utils.c (prompt_for_continue): Don't restore the styling at the
6981 end, as applied_style has the wrong value. This fixes styling in
6982 long lists of file names that are interrupted by the "Continue?"
6985 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
6987 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
6988 * c-lang.c (c_language_defn): Likewise.
6989 (cplus_language_defn): Likewise.
6990 (asm_language_defn): Likewise.
6991 (minimal_language_defn): Likewise.
6992 * d-lang.c (d_language_defn): Likewise.
6993 * f-lang.c (f_language_defn): Likewise.
6994 * go-lang.c (go_language_defn): Likewise.
6995 * language.c (unknown_language_defn): Likewise.
6996 (auto_language_defn): Likewise.
6997 * language.h (struct language_defn): Remove la_magic field.
6998 (LANG_MAGIC): Delete.
6999 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
7000 * objc-lang.c (objc_language_defn): Likewise.
7001 * opencl-lang.c (opencl_language_defn): Likewise.
7002 * p-lang.c (pascal_language_defn): Likewise.
7003 * rust-lang.c (rust_language_defn): Likewise.
7005 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7007 * riscv-tdep.c (riscv_type_align): New function.
7008 (riscv_type_alignment): Delete.
7009 (riscv_arg_location): Use 'type_align'.
7010 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
7012 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7014 * gdbtypes.c (type_align): A struct with no non-static fields also
7017 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7019 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
7021 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
7023 (riscv_struct_info::analyse): New implementation using new
7024 analyse_inner member function.
7025 (riscv_struct_info::field_offset): New member function.
7026 (riscv_struct_info::m_offsets): New member variable.
7027 (riscv_struct_info::analyse_inner): New private member function,
7028 takes the old implementation of riscv_struct_info::analyse but
7029 extended to track field offsets.
7030 (riscv_call_arg_struct): Update the struct folding special cases
7031 to handle cases where empty C++ structs, which are non-zero
7033 (riscv_arg_location): Initialise the length of each location, a
7034 non-zero length now indicates the location is in use.
7035 (riscv_push_dummy_call): Allow for the first location having a
7036 non-zero offset when setting up arguments.
7037 (riscv_return_value): Likewise, but for return values.
7039 2019-04-11 Tom Tromey <tromey@adacore.com>
7041 * utils.c (internal_vproblem): Make "msg" const.
7043 2019-04-11 Alan Hayward <alan.hayward@arm.com>
7045 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
7046 * trad-frame.c (trad_frame_reset_saved_regs): New function.
7047 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
7048 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
7050 2019-04-10 Kevin Buettner <kevinb@redhat.com>
7052 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
7054 (fill_gregset): Call amd64_linux_collect_native_gregset instead
7055 of amd64_collect_native_gregset.
7056 (amd64_linux_nat_target::store_registers): Likewise.
7058 2019-04-10 Tom Tromey <tom@tromey.com>
7060 * symtab.c (lookup_global_symbol_from_objfile)
7061 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
7062 * objfiles.h (class separate_debug_iterator): New.
7063 (class separate_debug_range): New.
7064 (struct objfile) <separate_debug_objfiles>: New method.
7065 (objfile_separate_debug_iterate): Don't declare.
7066 * objfiles.c (separate_debug_iterator::operator++): Rename from
7067 objfile_separate_debug_iterate.
7068 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
7070 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
7073 2019-04-10 Tom Tromey <tom@tromey.com>
7075 * symfile.c (reread_symbols): Remove old comment.
7076 * objfiles.c (free_all_objfiles): Fix a typo.
7078 2019-04-10 Tom Tromey <tom@tromey.com>
7080 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
7081 * minsyms.c (lookup_minimal_symbol): Use foreach.
7082 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7083 (lookup_minimal_symbol_solib_trampoline): Likewise.
7084 * symfile.c (reread_symbols): Use foreach.
7086 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
7087 Tom Tromey <tromey@adacore.com>
7090 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
7091 (rust_lex_int_test): Change "value" to be LONGEST.
7092 (rust_lex_tests): Add test for long integer literal.
7094 2019-04-09 Tom Tromey <tromey@adacore.com>
7096 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
7098 (extended_remote_target::attach): Update.
7099 (remote_target::remote_notice_new_inferior): Update.
7100 (remote_target::add_current_inferior_and_thread): Update.
7101 * inferior.c (exit_inferior_1): Use "false".
7102 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
7104 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
7106 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
7107 the "start" command.
7109 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7111 * python/py-inferior.c (infpy_thread_from_thread_handle):
7112 Adjust comments to reflect renaming of thread_from_thread_handle
7113 to thread_from_handle. Adjust keywords. Fix type error message.
7114 (inferior_object_methods): Add thread_from_handle. Retain
7115 thread_from_thread_handle, but mark it as deprecated.
7117 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7119 * gdbthread.h (find_thread_by_handle): Revise declaration.
7120 * thread.c (find_thread_by_handle): Likewise. Adjust
7122 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
7123 support for buffer objects as handles.
7125 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7127 * python/py-infthread.c (thpy_thread_handle): New function.
7128 (thread_object_methods): Register thpy_thread_handle.
7130 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7132 * gdbthread.h (thread_to_thread_handle): Declare.
7133 * thread.c (gdbtypes.h): Include.
7134 (thread_to_thread_handle): New function.
7136 * target.h (struct target_ops): Add thread_info_to_thread_handle.
7137 (target_thread_info_to_thread_handle): Declare.
7138 * target.c (target_thread_info_to_thread_handle): New function.
7139 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
7140 * target-delegates.c: Regenerate.
7142 * linux-thread-db.c (class thread_db_target): Add method
7143 thread_info_to_thread_handle.
7144 (thread_db_target::thread_info_to_thread_handle): Define.
7145 * remote.c (class remote_target): Add new method
7146 thread_info_to_thread_handle.
7147 (remote_target::thread_info_to_thread_handle): Define.
7149 2019-04-08 Pedro Alves <palves@redhat.com>
7151 * common/common-exceptions.c (throw_exception): Don't create
7152 named object to throw; throw directly.
7153 (throw_it): Likewise. Don't initialize gdb_exception::message
7154 here, with new; pass FMT and AP to the ctor instead.
7155 * common/common-exceptions.h: Include <string>.
7156 (gdb_exception::gdb_exception(enum return_reason, enum errors,
7157 const char *, va_list)): New ctor. Use std::make_shared.
7158 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
7160 (gdb_exception_error::gdb_exception_error(enum errors, const char
7162 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
7164 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
7166 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
7167 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
7170 2019-04-08 Tom Tromey <tom@tromey.com>
7172 * valops.c (value_rtti_indirect_type): Replace throw_exception
7174 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
7176 * thread.c (thr_try_catch_cmd): Replace throw_exception with
7178 * target.c (target_translate_tls_address): Replace throw_exception
7180 * stack.c (frame_apply_command_count): Replace throw_exception
7182 * solib-spu.c (append_ocl_sos): Replace throw_exception with
7184 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7186 * rs6000-tdep.c (rs6000_frame_cache)
7187 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7188 * remote.c: Replace throw_exception with throw.
7189 * record-full.c (record_full_message, record_full_wait_1)
7190 (record_full_restore): Replace throw_exception with throw.
7192 (get_thread_current_frame_id, record_btrace_start_replaying)
7193 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7194 (cmd_record_btrace_start): Replace throw_exception with throw.
7195 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7197 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7198 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7200 (find_linespec_symbols): Replace throw_exception with throw.
7201 * infrun.c (displaced_step_prepare, resume): Replace
7202 throw_exception with throw.
7203 * infcmd.c (post_create_inferior): Replace throw_exception with
7205 * inf-loop.c (inferior_event_handler): Replace throw_exception
7207 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7208 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7209 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7210 (get_prev_frame_always, get_frame_pc_if_available)
7211 (get_frame_address_in_block_if_available, get_frame_language):
7212 Replace throw_exception with throw.
7213 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7214 throw_exception with throw.
7215 * eval.c (fetch_subexp_value, evaluate_var_value)
7216 (evaluate_funcall, evaluate_subexp_standard): Replace
7217 throw_exception with throw.
7218 * dwarf2loc.c (call_site_find_chain)
7219 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7220 Replace throw_exception with throw.
7221 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7223 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7225 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7226 * completer.c (complete_line_internal): Replace throw_exception
7228 * compile/compile-object-run.c (compile_object_run): Replace
7229 throw_exception with throw.
7230 * cli/cli-script.c (process_next_line): Replace throw_exception
7232 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7233 (btrace_enable, btrace_maint_update_pt_packets): Replace
7234 throw_exception with throw.
7235 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7236 throw_exception with throw.
7237 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7238 throw_exception with throw.
7239 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7240 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7241 * aarch64-tdep.c (aarch64_make_prologue_cache)
7242 (aarch64_make_stub_cache): Replace throw_exception with throw.
7244 2019-04-08 Tom Tromey <tom@tromey.com>
7246 * common/common-exceptions.c (throw_exception): Rename from
7247 throw_exception_cxx. Remove old copy. Make argument const.
7248 (throw_it): Create and throw exception objects directly.
7249 * common/common-exceptions.h (throw_exception): Make argument
7251 (struct gdb_exception_error): Add constructor.
7252 (struct gdb_exception_quit): Add constructor.
7254 2019-04-08 Tom Tromey <tom@tromey.com>
7256 * common/common-exceptions.h (exception_rethrow): Don't declare.
7257 (TRY_SJLJ): Update comment.
7258 (TRY, CATCH, END_CATCH): Remove.
7259 * common/common-exceptions.c (exception_rethrow): Remove.
7261 2019-04-08 Tom Tromey <tom@tromey.com>
7263 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7265 (gdb_exception_error): Rename from
7266 gdb_exception_RETURN_MASK_ERROR.
7267 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7268 (gdb_quit_bad_alloc): Update.
7269 * aarch64-tdep.c: Update.
7270 * ada-lang.c: Update.
7271 * ada-typeprint.c: Update.
7272 * ada-valprint.c: Update.
7273 * amd64-tdep.c: Update.
7274 * arch-utils.c: Update.
7275 * break-catch-throw.c: Update.
7276 * breakpoint.c: Update.
7278 * c-varobj.c: Update.
7279 * cli/cli-cmds.c: Update.
7280 * cli/cli-interp.c: Update.
7281 * cli/cli-script.c: Update.
7282 * common/common-exceptions.c: Update.
7283 * common/new-op.c: Update.
7284 * common/selftest.c: Update.
7285 * compile/compile-c-symbols.c: Update.
7286 * compile/compile-cplus-symbols.c: Update.
7287 * compile/compile-object-load.c: Update.
7288 * compile/compile-object-run.c: Update.
7289 * completer.c: Update.
7290 * corelow.c: Update.
7292 * cp-support.c: Update.
7293 * cp-valprint.c: Update.
7294 * darwin-nat.c: Update.
7295 * disasm-selftests.c: Update.
7296 * dtrace-probe.c: Update.
7297 * dwarf-index-cache.c: Update.
7298 * dwarf-index-write.c: Update.
7299 * dwarf2-frame-tailcall.c: Update.
7300 * dwarf2-frame.c: Update.
7301 * dwarf2loc.c: Update.
7302 * dwarf2read.c: Update.
7304 * event-loop.c: Update.
7305 * event-top.c: Update.
7307 * f-valprint.c: Update.
7308 * fbsd-tdep.c: Update.
7309 * frame-unwind.c: Update.
7311 * gdbtypes.c: Update.
7312 * gnu-v3-abi.c: Update.
7313 * guile/guile-internal.h: Update.
7314 * guile/scm-block.c: Update.
7315 * guile/scm-breakpoint.c: Update.
7316 * guile/scm-cmd.c: Update.
7317 * guile/scm-disasm.c: Update.
7318 * guile/scm-frame.c: Update.
7319 * guile/scm-lazy-string.c: Update.
7320 * guile/scm-math.c: Update.
7321 * guile/scm-param.c: Update.
7322 * guile/scm-ports.c: Update.
7323 * guile/scm-pretty-print.c: Update.
7324 * guile/scm-symbol.c: Update.
7325 * guile/scm-symtab.c: Update.
7326 * guile/scm-type.c: Update.
7327 * guile/scm-value.c: Update.
7328 * i386-linux-tdep.c: Update.
7329 * i386-tdep.c: Update.
7330 * inf-loop.c: Update.
7331 * infcall.c: Update.
7335 * language.c: Update.
7336 * linespec.c: Update.
7337 * linux-fork.c: Update.
7338 * linux-nat.c: Update.
7339 * linux-tdep.c: Update.
7340 * linux-thread-db.c: Update.
7342 * mi/mi-cmd-break.c: Update.
7343 * mi/mi-cmd-stack.c: Update.
7344 * mi/mi-interp.c: Update.
7345 * mi/mi-main.c: Update.
7346 * objc-lang.c: Update.
7347 * p-valprint.c: Update.
7349 * ppc-linux-tdep.c: Update.
7350 * printcmd.c: Update.
7351 * python/py-arch.c: Update.
7352 * python/py-breakpoint.c: Update.
7353 * python/py-cmd.c: Update.
7354 * python/py-finishbreakpoint.c: Update.
7355 * python/py-frame.c: Update.
7356 * python/py-framefilter.c: Update.
7357 * python/py-gdb-readline.c: Update.
7358 * python/py-inferior.c: Update.
7359 * python/py-infthread.c: Update.
7360 * python/py-lazy-string.c: Update.
7361 * python/py-linetable.c: Update.
7362 * python/py-objfile.c: Update.
7363 * python/py-param.c: Update.
7364 * python/py-prettyprint.c: Update.
7365 * python/py-progspace.c: Update.
7366 * python/py-record-btrace.c: Update.
7367 * python/py-record.c: Update.
7368 * python/py-symbol.c: Update.
7369 * python/py-type.c: Update.
7370 * python/py-unwind.c: Update.
7371 * python/py-utils.c: Update.
7372 * python/py-value.c: Update.
7373 * python/python.c: Update.
7374 * record-btrace.c: Update.
7375 * record-full.c: Update.
7376 * remote-fileio.c: Update.
7378 * riscv-tdep.c: Update.
7379 * rs6000-aix-tdep.c: Update.
7380 * rs6000-tdep.c: Update.
7381 * rust-exp.y: Update.
7382 * rust-lang.c: Update.
7383 * s390-tdep.c: Update.
7384 * selftest-arch.c: Update.
7385 * solib-dsbt.c: Update.
7386 * solib-frv.c: Update.
7387 * solib-spu.c: Update.
7388 * solib-svr4.c: Update.
7390 * sparc64-linux-tdep.c: Update.
7392 * symfile-mem.c: Update.
7393 * symmisc.c: Update.
7397 * tracefile-tfile.c: Update.
7398 * tui/tui.c: Update.
7399 * typeprint.c: Update.
7400 * unittests/cli-utils-selftests.c: Update.
7401 * unittests/parse-connection-spec-selftests.c: Update.
7403 * valprint.c: Update.
7406 * windows-nat.c: Update.
7407 * x86-linux-nat.c: Update.
7408 * xml-support.c: Update.
7410 2019-04-08 Tom Tromey <tom@tromey.com>
7412 * xml-support.c: Use C++ exception handling.
7413 * x86-linux-nat.c: Use C++ exception handling.
7414 * windows-nat.c: Use C++ exception handling.
7415 * varobj.c: Use C++ exception handling.
7416 * value.c: Use C++ exception handling.
7417 * valprint.c: Use C++ exception handling.
7418 * valops.c: Use C++ exception handling.
7419 * unittests/parse-connection-spec-selftests.c: Use C++ exception
7421 * unittests/cli-utils-selftests.c: Use C++ exception handling.
7422 * typeprint.c: Use C++ exception handling.
7423 * tui/tui.c: Use C++ exception handling.
7424 * tracefile-tfile.c: Use C++ exception handling.
7425 * top.c: Use C++ exception handling.
7426 * thread.c: Use C++ exception handling.
7427 * target.c: Use C++ exception handling.
7428 * symmisc.c: Use C++ exception handling.
7429 * symfile-mem.c: Use C++ exception handling.
7430 * stack.c: Use C++ exception handling.
7431 * sparc64-linux-tdep.c: Use C++ exception handling.
7432 * solib.c: Use C++ exception handling.
7433 * solib-svr4.c: Use C++ exception handling.
7434 * solib-spu.c: Use C++ exception handling.
7435 * solib-frv.c: Use C++ exception handling.
7436 * solib-dsbt.c: Use C++ exception handling.
7437 * selftest-arch.c: Use C++ exception handling.
7438 * s390-tdep.c: Use C++ exception handling.
7439 * rust-lang.c: Use C++ exception handling.
7440 * rust-exp.y: Use C++ exception handling.
7441 * rs6000-tdep.c: Use C++ exception handling.
7442 * rs6000-aix-tdep.c: Use C++ exception handling.
7443 * riscv-tdep.c: Use C++ exception handling.
7444 * remote.c: Use C++ exception handling.
7445 * remote-fileio.c: Use C++ exception handling.
7446 * record-full.c: Use C++ exception handling.
7447 * record-btrace.c: Use C++ exception handling.
7448 * python/python.c: Use C++ exception handling.
7449 * python/py-value.c: Use C++ exception handling.
7450 * python/py-utils.c: Use C++ exception handling.
7451 * python/py-unwind.c: Use C++ exception handling.
7452 * python/py-type.c: Use C++ exception handling.
7453 * python/py-symbol.c: Use C++ exception handling.
7454 * python/py-record.c: Use C++ exception handling.
7455 * python/py-record-btrace.c: Use C++ exception handling.
7456 * python/py-progspace.c: Use C++ exception handling.
7457 * python/py-prettyprint.c: Use C++ exception handling.
7458 * python/py-param.c: Use C++ exception handling.
7459 * python/py-objfile.c: Use C++ exception handling.
7460 * python/py-linetable.c: Use C++ exception handling.
7461 * python/py-lazy-string.c: Use C++ exception handling.
7462 * python/py-infthread.c: Use C++ exception handling.
7463 * python/py-inferior.c: Use C++ exception handling.
7464 * python/py-gdb-readline.c: Use C++ exception handling.
7465 * python/py-framefilter.c: Use C++ exception handling.
7466 * python/py-frame.c: Use C++ exception handling.
7467 * python/py-finishbreakpoint.c: Use C++ exception handling.
7468 * python/py-cmd.c: Use C++ exception handling.
7469 * python/py-breakpoint.c: Use C++ exception handling.
7470 * python/py-arch.c: Use C++ exception handling.
7471 * printcmd.c: Use C++ exception handling.
7472 * ppc-linux-tdep.c: Use C++ exception handling.
7473 * parse.c: Use C++ exception handling.
7474 * p-valprint.c: Use C++ exception handling.
7475 * objc-lang.c: Use C++ exception handling.
7476 * mi/mi-main.c: Use C++ exception handling.
7477 * mi/mi-interp.c: Use C++ exception handling.
7478 * mi/mi-cmd-stack.c: Use C++ exception handling.
7479 * mi/mi-cmd-break.c: Use C++ exception handling.
7480 * main.c: Use C++ exception handling.
7481 * linux-thread-db.c: Use C++ exception handling.
7482 * linux-tdep.c: Use C++ exception handling.
7483 * linux-nat.c: Use C++ exception handling.
7484 * linux-fork.c: Use C++ exception handling.
7485 * linespec.c: Use C++ exception handling.
7486 * language.c: Use C++ exception handling.
7487 * jit.c: Use C++ exception handling.
7488 * infrun.c: Use C++ exception handling.
7489 * infcmd.c: Use C++ exception handling.
7490 * infcall.c: Use C++ exception handling.
7491 * inf-loop.c: Use C++ exception handling.
7492 * i386-tdep.c: Use C++ exception handling.
7493 * i386-linux-tdep.c: Use C++ exception handling.
7494 * guile/scm-value.c: Use C++ exception handling.
7495 * guile/scm-type.c: Use C++ exception handling.
7496 * guile/scm-symtab.c: Use C++ exception handling.
7497 * guile/scm-symbol.c: Use C++ exception handling.
7498 * guile/scm-pretty-print.c: Use C++ exception handling.
7499 * guile/scm-ports.c: Use C++ exception handling.
7500 * guile/scm-param.c: Use C++ exception handling.
7501 * guile/scm-math.c: Use C++ exception handling.
7502 * guile/scm-lazy-string.c: Use C++ exception handling.
7503 * guile/scm-frame.c: Use C++ exception handling.
7504 * guile/scm-disasm.c: Use C++ exception handling.
7505 * guile/scm-cmd.c: Use C++ exception handling.
7506 * guile/scm-breakpoint.c: Use C++ exception handling.
7507 * guile/scm-block.c: Use C++ exception handling.
7508 * guile/guile-internal.h: Use C++ exception handling.
7509 * gnu-v3-abi.c: Use C++ exception handling.
7510 * gdbtypes.c: Use C++ exception handling.
7511 * frame.c: Use C++ exception handling.
7512 * frame-unwind.c: Use C++ exception handling.
7513 * fbsd-tdep.c: Use C++ exception handling.
7514 * f-valprint.c: Use C++ exception handling.
7515 * exec.c: Use C++ exception handling.
7516 * event-top.c: Use C++ exception handling.
7517 * event-loop.c: Use C++ exception handling.
7518 * eval.c: Use C++ exception handling.
7519 * dwarf2read.c: Use C++ exception handling.
7520 * dwarf2loc.c: Use C++ exception handling.
7521 * dwarf2-frame.c: Use C++ exception handling.
7522 * dwarf2-frame-tailcall.c: Use C++ exception handling.
7523 * dwarf-index-write.c: Use C++ exception handling.
7524 * dwarf-index-cache.c: Use C++ exception handling.
7525 * dtrace-probe.c: Use C++ exception handling.
7526 * disasm-selftests.c: Use C++ exception handling.
7527 * darwin-nat.c: Use C++ exception handling.
7528 * cp-valprint.c: Use C++ exception handling.
7529 * cp-support.c: Use C++ exception handling.
7530 * cp-abi.c: Use C++ exception handling.
7531 * corelow.c: Use C++ exception handling.
7532 * completer.c: Use C++ exception handling.
7533 * compile/compile-object-run.c: Use C++ exception handling.
7534 * compile/compile-object-load.c: Use C++ exception handling.
7535 * compile/compile-cplus-symbols.c: Use C++ exception handling.
7536 * compile/compile-c-symbols.c: Use C++ exception handling.
7537 * common/selftest.c: Use C++ exception handling.
7538 * common/new-op.c: Use C++ exception handling.
7539 * cli/cli-script.c: Use C++ exception handling.
7540 * cli/cli-interp.c: Use C++ exception handling.
7541 * cli/cli-cmds.c: Use C++ exception handling.
7542 * c-varobj.c: Use C++ exception handling.
7543 * btrace.c: Use C++ exception handling.
7544 * breakpoint.c: Use C++ exception handling.
7545 * break-catch-throw.c: Use C++ exception handling.
7546 * arch-utils.c: Use C++ exception handling.
7547 * amd64-tdep.c: Use C++ exception handling.
7548 * ada-valprint.c: Use C++ exception handling.
7549 * ada-typeprint.c: Use C++ exception handling.
7550 * ada-lang.c: Use C++ exception handling.
7551 * aarch64-tdep.c: Use C++ exception handling.
7553 2019-04-08 Tom Tromey <tom@tromey.com>
7555 * xml-support.c (gdb_xml_parser::parse): Update.
7556 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7557 * value.c (show_convenience): Update.
7558 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
7559 (test_parse_flags_qcs): Update.
7560 * thread.c (thr_try_catch_cmd): Update.
7561 * target.c (target_translate_tls_address): Update.
7562 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
7563 (info_frame_command_core, frame_apply_command_count): Update.
7564 * rust-exp.y (rust_lex_exception_test): Update.
7565 * riscv-tdep.c (riscv_print_one_register_info): Update.
7566 * remote.c (remote_target::enable_btrace): Update.
7567 * record-btrace.c (record_btrace_enable_warn): Update.
7568 * python/py-utils.c (gdbpy_convert_exception): Update.
7569 * printcmd.c (do_one_display, print_variable_and_value): Update.
7570 * mi/mi-main.c (mi_print_exception): Update.
7571 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
7572 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
7573 * linux-nat.c (linux_nat_target::attach): Update.
7574 * linux-fork.c (class scoped_switch_fork_info): Update.
7575 * infrun.c (displaced_step_prepare): Update.
7576 * infcall.c (call_function_by_hand_dummy): Update.
7577 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
7578 * gnu-v3-abi.c (print_one_vtable): Update.
7579 * frame.c (get_prev_frame_always): Update.
7580 * f-valprint.c (info_common_command_for_block): Update.
7581 * exec.c (try_open_exec_file): Update.
7582 * exceptions.c (print_exception, exception_print)
7583 (exception_fprintf, exception_print_same): Update.
7584 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
7585 * dwarf-index-cache.c (index_cache::store)
7586 (index_cache::lookup_gdb_index): Update.
7587 * darwin-nat.c (maybe_cache_shell): Update.
7588 * cp-valprint.c (cp_print_value_fields): Update.
7589 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
7590 (gcc_cplus_symbol_address): Update.
7591 * compile/compile-c-symbols.c (gcc_convert_symbol)
7592 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
7593 * common/selftest.c: Update.
7594 * common/common-exceptions.h (struct gdb_exception) <message>: Now
7596 (exception_try_scope_entry, exception_try_scope_exit): Don't
7598 (struct exception_try_scope): Remove.
7599 (TRY): Don't use exception_try_scope.
7600 (struct gdb_exception): Add constructor, operator=.
7602 (struct gdb_exception_RETURN_MASK_ALL)
7603 (struct gdb_exception_RETURN_MASK_ERROR)
7604 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
7605 (struct gdb_quit_bad_alloc): Update.
7606 * common/common-exceptions.c (exception_none): Change
7608 (struct catcher) <state, exception>: Initialize inline.
7609 <prev>: Remove member.
7610 (current_catcher): Remove.
7611 (catchers): New global.
7612 (exceptions_state_mc_init): Simplify.
7613 (catcher_pop): Remove.
7614 (exceptions_state_mc, exceptions_state_mc_catch): Update.
7615 (try_scope_depth, exception_try_scope_entry)
7616 (exception_try_scope_exit): Remove.
7617 (throw_exception_sjlj): Update.
7618 (exception_messages, exception_messages_size): Remove.
7619 (throw_it): Simplify.
7620 (gdb_exception_sliced_copy): Remove.
7621 (throw_exception_cxx): Update.
7622 * cli/cli-script.c (script_from_file): Update.
7623 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
7625 * ada-valprint.c (ada_val_print): Update.
7626 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
7627 (create_excep_cond_exprs): Update.
7629 2019-04-08 Tom Tromey <tom@tromey.com>
7631 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
7632 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
7633 (TRY, CATCH, END_CATCH): Remove some definitions.
7634 * common/common-exceptions.c: Don't use GDB_XCPT.
7635 (catcher_list_size): Remove.
7636 (throw_exception, throw_it): Simplify.
7638 2019-04-05 Tom Tromey <tom@tromey.com>
7640 Revert the header-sorting patch.
7641 * ft32-tdep.c: Revert.
7642 * frv-tdep.c: Revert.
7643 * frv-linux-tdep.c: Revert.
7645 * frame-unwind.c: Revert.
7646 * frame-base.c: Revert.
7647 * fork-child.c: Revert.
7648 * findvar.c: Revert.
7649 * findcmd.c: Revert.
7650 * filesystem.c: Revert.
7651 * filename-seen-cache.h: Revert.
7652 * filename-seen-cache.c: Revert.
7653 * fbsd-tdep.c: Revert.
7654 * fbsd-nat.h: Revert.
7655 * fbsd-nat.c: Revert.
7656 * f-valprint.c: Revert.
7657 * f-typeprint.c: Revert.
7659 * extension.h: Revert.
7660 * extension.c: Revert.
7661 * extension-priv.h: Revert.
7662 * expprint.c: Revert.
7665 * exceptions.c: Revert.
7666 * event-top.c: Revert.
7667 * event-loop.c: Revert.
7669 * elfread.c: Revert.
7670 * dwarf2read.h: Revert.
7671 * dwarf2read.c: Revert.
7672 * dwarf2loc.c: Revert.
7673 * dwarf2expr.h: Revert.
7674 * dwarf2expr.c: Revert.
7675 * dwarf2-frame.c: Revert.
7676 * dwarf2-frame-tailcall.c: Revert.
7677 * dwarf-index-write.h: Revert.
7678 * dwarf-index-write.c: Revert.
7679 * dwarf-index-common.c: Revert.
7680 * dwarf-index-cache.h: Revert.
7681 * dwarf-index-cache.c: Revert.
7682 * dummy-frame.c: Revert.
7683 * dtrace-probe.c: Revert.
7686 * disasm-selftests.c: Revert.
7687 * dictionary.c: Revert.
7688 * dicos-tdep.c: Revert.
7689 * demangle.c: Revert.
7692 * darwin-nat.h: Revert.
7693 * darwin-nat.c: Revert.
7694 * darwin-nat-info.c: Revert.
7695 * d-valprint.c: Revert.
7696 * d-namespace.c: Revert.
7699 * csky-tdep.c: Revert.
7700 * csky-linux-tdep.c: Revert.
7701 * cris-tdep.c: Revert.
7702 * cris-linux-tdep.c: Revert.
7703 * cp-valprint.c: Revert.
7704 * cp-support.c: Revert.
7705 * cp-namespace.c: Revert.
7707 * corelow.c: Revert.
7708 * corefile.c: Revert.
7709 * continuations.c: Revert.
7710 * completer.h: Revert.
7711 * completer.c: Revert.
7712 * complaints.c: Revert.
7713 * coffread.c: Revert.
7714 * coff-pe-read.c: Revert.
7715 * cli-out.h: Revert.
7716 * cli-out.c: Revert.
7717 * charset.c: Revert.
7718 * c-varobj.c: Revert.
7719 * c-valprint.c: Revert.
7720 * c-typeprint.c: Revert.
7722 * buildsym.c: Revert.
7723 * buildsym-legacy.c: Revert.
7724 * build-id.h: Revert.
7725 * build-id.c: Revert.
7727 * bsd-uthread.c: Revert.
7728 * breakpoint.h: Revert.
7729 * breakpoint.c: Revert.
7730 * break-catch-throw.c: Revert.
7731 * break-catch-syscall.c: Revert.
7732 * break-catch-sig.c: Revert.
7733 * blockframe.c: Revert.
7735 * bfin-tdep.c: Revert.
7736 * bfin-linux-tdep.c: Revert.
7737 * bfd-target.c: Revert.
7739 * ax-general.c: Revert.
7742 * avr-tdep.c: Revert.
7744 * auto-load.c: Revert.
7745 * arm-wince-tdep.c: Revert.
7746 * arm-tdep.c: Revert.
7747 * arm-symbian-tdep.c: Revert.
7748 * arm-pikeos-tdep.c: Revert.
7749 * arm-obsd-tdep.c: Revert.
7750 * arm-nbsd-tdep.c: Revert.
7751 * arm-nbsd-nat.c: Revert.
7752 * arm-linux-tdep.c: Revert.
7753 * arm-linux-nat.c: Revert.
7754 * arm-fbsd-tdep.c: Revert.
7755 * arm-fbsd-nat.c: Revert.
7756 * arm-bsd-tdep.c: Revert.
7757 * arch-utils.c: Revert.
7758 * arc-tdep.c: Revert.
7759 * arc-newlib-tdep.c: Revert.
7760 * annotate.h: Revert.
7761 * annotate.c: Revert.
7762 * amd64-windows-tdep.c: Revert.
7763 * amd64-windows-nat.c: Revert.
7764 * amd64-tdep.c: Revert.
7765 * amd64-sol2-tdep.c: Revert.
7766 * amd64-obsd-tdep.c: Revert.
7767 * amd64-obsd-nat.c: Revert.
7768 * amd64-nbsd-tdep.c: Revert.
7769 * amd64-nbsd-nat.c: Revert.
7770 * amd64-nat.c: Revert.
7771 * amd64-linux-tdep.c: Revert.
7772 * amd64-linux-nat.c: Revert.
7773 * amd64-fbsd-tdep.c: Revert.
7774 * amd64-fbsd-nat.c: Revert.
7775 * amd64-dicos-tdep.c: Revert.
7776 * amd64-darwin-tdep.c: Revert.
7777 * amd64-bsd-nat.c: Revert.
7778 * alpha-tdep.c: Revert.
7779 * alpha-obsd-tdep.c: Revert.
7780 * alpha-nbsd-tdep.c: Revert.
7781 * alpha-mdebug-tdep.c: Revert.
7782 * alpha-linux-tdep.c: Revert.
7783 * alpha-linux-nat.c: Revert.
7784 * alpha-bsd-tdep.c: Revert.
7785 * alpha-bsd-nat.c: Revert.
7786 * aix-thread.c: Revert.
7788 * addrmap.c: Revert.
7789 * ada-varobj.c: Revert.
7790 * ada-valprint.c: Revert.
7791 * ada-typeprint.c: Revert.
7792 * ada-tasks.c: Revert.
7793 * ada-lang.c: Revert.
7794 * aarch64-tdep.c: Revert.
7795 * aarch64-ravenscar-thread.c: Revert.
7796 * aarch64-newlib-tdep.c: Revert.
7797 * aarch64-linux-tdep.c: Revert.
7798 * aarch64-linux-nat.c: Revert.
7799 * aarch64-fbsd-tdep.c: Revert.
7800 * aarch64-fbsd-nat.c: Revert.
7801 * aarch32-linux-nat.c: Revert.
7803 2019-04-05 Tom Tromey <tom@tromey.com>
7805 * ft32-tdep.c: Sort headers.
7806 * frv-tdep.c: Sort headers.
7807 * frv-linux-tdep.c: Sort headers.
7808 * frame.c: Sort headers.
7809 * frame-unwind.c: Sort headers.
7810 * frame-base.c: Sort headers.
7811 * fork-child.c: Sort headers.
7812 * findvar.c: Sort headers.
7813 * findcmd.c: Sort headers.
7814 * filesystem.c: Sort headers.
7815 * filename-seen-cache.h: Sort headers.
7816 * filename-seen-cache.c: Sort headers.
7817 * fbsd-tdep.c: Sort headers.
7818 * fbsd-nat.h: Sort headers.
7819 * fbsd-nat.c: Sort headers.
7820 * f-valprint.c: Sort headers.
7821 * f-typeprint.c: Sort headers.
7822 * f-lang.c: Sort headers.
7823 * extension.h: Sort headers.
7824 * extension.c: Sort headers.
7825 * extension-priv.h: Sort headers.
7826 * expprint.c: Sort headers.
7827 * exec.h: Sort headers.
7828 * exec.c: Sort headers.
7829 * exceptions.c: Sort headers.
7830 * event-top.c: Sort headers.
7831 * event-loop.c: Sort headers.
7832 * eval.c: Sort headers.
7833 * elfread.c: Sort headers.
7834 * dwarf2read.h: Sort headers.
7835 * dwarf2read.c: Sort headers.
7836 * dwarf2loc.c: Sort headers.
7837 * dwarf2expr.h: Sort headers.
7838 * dwarf2expr.c: Sort headers.
7839 * dwarf2-frame.c: Sort headers.
7840 * dwarf2-frame-tailcall.c: Sort headers.
7841 * dwarf-index-write.h: Sort headers.
7842 * dwarf-index-write.c: Sort headers.
7843 * dwarf-index-common.c: Sort headers.
7844 * dwarf-index-cache.h: Sort headers.
7845 * dwarf-index-cache.c: Sort headers.
7846 * dummy-frame.c: Sort headers.
7847 * dtrace-probe.c: Sort headers.
7848 * disasm.h: Sort headers.
7849 * disasm.c: Sort headers.
7850 * disasm-selftests.c: Sort headers.
7851 * dictionary.c: Sort headers.
7852 * dicos-tdep.c: Sort headers.
7853 * demangle.c: Sort headers.
7854 * dcache.h: Sort headers.
7855 * dcache.c: Sort headers.
7856 * darwin-nat.h: Sort headers.
7857 * darwin-nat.c: Sort headers.
7858 * darwin-nat-info.c: Sort headers.
7859 * d-valprint.c: Sort headers.
7860 * d-namespace.c: Sort headers.
7861 * d-lang.c: Sort headers.
7862 * ctf.c: Sort headers.
7863 * csky-tdep.c: Sort headers.
7864 * csky-linux-tdep.c: Sort headers.
7865 * cris-tdep.c: Sort headers.
7866 * cris-linux-tdep.c: Sort headers.
7867 * cp-valprint.c: Sort headers.
7868 * cp-support.c: Sort headers.
7869 * cp-namespace.c: Sort headers.
7870 * cp-abi.c: Sort headers.
7871 * corelow.c: Sort headers.
7872 * corefile.c: Sort headers.
7873 * continuations.c: Sort headers.
7874 * completer.h: Sort headers.
7875 * completer.c: Sort headers.
7876 * complaints.c: Sort headers.
7877 * coffread.c: Sort headers.
7878 * coff-pe-read.c: Sort headers.
7879 * cli-out.h: Sort headers.
7880 * cli-out.c: Sort headers.
7881 * charset.c: Sort headers.
7882 * c-varobj.c: Sort headers.
7883 * c-valprint.c: Sort headers.
7884 * c-typeprint.c: Sort headers.
7885 * c-lang.c: Sort headers.
7886 * buildsym.c: Sort headers.
7887 * buildsym-legacy.c: Sort headers.
7888 * build-id.h: Sort headers.
7889 * build-id.c: Sort headers.
7890 * btrace.c: Sort headers.
7891 * bsd-uthread.c: Sort headers.
7892 * breakpoint.h: Sort headers.
7893 * breakpoint.c: Sort headers.
7894 * break-catch-throw.c: Sort headers.
7895 * break-catch-syscall.c: Sort headers.
7896 * break-catch-sig.c: Sort headers.
7897 * blockframe.c: Sort headers.
7898 * block.c: Sort headers.
7899 * bfin-tdep.c: Sort headers.
7900 * bfin-linux-tdep.c: Sort headers.
7901 * bfd-target.c: Sort headers.
7902 * bcache.c: Sort headers.
7903 * ax-general.c: Sort headers.
7904 * ax-gdb.h: Sort headers.
7905 * ax-gdb.c: Sort headers.
7906 * avr-tdep.c: Sort headers.
7907 * auxv.c: Sort headers.
7908 * auto-load.c: Sort headers.
7909 * arm-wince-tdep.c: Sort headers.
7910 * arm-tdep.c: Sort headers.
7911 * arm-symbian-tdep.c: Sort headers.
7912 * arm-pikeos-tdep.c: Sort headers.
7913 * arm-obsd-tdep.c: Sort headers.
7914 * arm-nbsd-tdep.c: Sort headers.
7915 * arm-nbsd-nat.c: Sort headers.
7916 * arm-linux-tdep.c: Sort headers.
7917 * arm-linux-nat.c: Sort headers.
7918 * arm-fbsd-tdep.c: Sort headers.
7919 * arm-fbsd-nat.c: Sort headers.
7920 * arm-bsd-tdep.c: Sort headers.
7921 * arch-utils.c: Sort headers.
7922 * arc-tdep.c: Sort headers.
7923 * arc-newlib-tdep.c: Sort headers.
7924 * annotate.h: Sort headers.
7925 * annotate.c: Sort headers.
7926 * amd64-windows-tdep.c: Sort headers.
7927 * amd64-windows-nat.c: Sort headers.
7928 * amd64-tdep.c: Sort headers.
7929 * amd64-sol2-tdep.c: Sort headers.
7930 * amd64-obsd-tdep.c: Sort headers.
7931 * amd64-obsd-nat.c: Sort headers.
7932 * amd64-nbsd-tdep.c: Sort headers.
7933 * amd64-nbsd-nat.c: Sort headers.
7934 * amd64-nat.c: Sort headers.
7935 * amd64-linux-tdep.c: Sort headers.
7936 * amd64-linux-nat.c: Sort headers.
7937 * amd64-fbsd-tdep.c: Sort headers.
7938 * amd64-fbsd-nat.c: Sort headers.
7939 * amd64-dicos-tdep.c: Sort headers.
7940 * amd64-darwin-tdep.c: Sort headers.
7941 * amd64-bsd-nat.c: Sort headers.
7942 * alpha-tdep.c: Sort headers.
7943 * alpha-obsd-tdep.c: Sort headers.
7944 * alpha-nbsd-tdep.c: Sort headers.
7945 * alpha-mdebug-tdep.c: Sort headers.
7946 * alpha-linux-tdep.c: Sort headers.
7947 * alpha-linux-nat.c: Sort headers.
7948 * alpha-bsd-tdep.c: Sort headers.
7949 * alpha-bsd-nat.c: Sort headers.
7950 * aix-thread.c: Sort headers.
7951 * agent.c: Sort headers.
7952 * addrmap.c: Sort headers.
7953 * ada-varobj.c: Sort headers.
7954 * ada-valprint.c: Sort headers.
7955 * ada-typeprint.c: Sort headers.
7956 * ada-tasks.c: Sort headers.
7957 * ada-lang.c: Sort headers.
7958 * aarch64-tdep.c: Sort headers.
7959 * aarch64-ravenscar-thread.c: Sort headers.
7960 * aarch64-newlib-tdep.c: Sort headers.
7961 * aarch64-linux-tdep.c: Sort headers.
7962 * aarch64-linux-nat.c: Sort headers.
7963 * aarch64-fbsd-tdep.c: Sort headers.
7964 * aarch64-fbsd-nat.c: Sort headers.
7965 * aarch32-linux-nat.c: Sort headers.
7967 2019-04-04 Tom Tromey <tom@tromey.com>
7969 * varobj.c (varobj_create): Update.
7970 * rust-exp.y (struct rust_parser) <update_innermost_block,
7971 lookup_symbol>: New methods.
7972 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
7974 (rust_parser::rust_lookup_type)
7975 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7976 * printcmd.c (display_command, do_one_display): Update.
7977 * parser-defs.h (struct parser_state) <parser_state>: Add
7978 "tracker" parameter.
7979 (block_tracker): New member.
7980 (class innermost_block_tracker) <innermost_block_tracker>: Add
7982 <reset>: Remove method.
7983 (innermost_block): Don't declare.
7984 (null_post_parser): Update.
7985 * parse.c (innermost_block): Remove global.
7986 (write_dollar_variable): Update.
7987 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
7988 Remove "tracker_types" parameter.
7989 (parse_expression): Add "tracker" parameter.
7990 (parse_expression_for_completion): Update.
7991 (null_post_parser): Add "tracker" parameter.
7992 * p-exp.y: Update rules.
7993 * m2-exp.y: Update rules.
7994 * language.h (struct language_defn) <la_post_parser>: Add
7995 "tracker" parameter.
7996 * go-exp.y: Update rules.
7997 * f-exp.y: Update rules.
7998 * expression.h (parse_expression, parse_exp_1): Add "tracker"
8000 * d-exp.y: Update rules.
8001 * c-exp.y: Update rules.
8002 * breakpoint.c (set_breakpoint_condition): Create an
8003 innermost_block_tracker.
8004 (watch_command_1): Likewise.
8005 * ada-lang.c (resolve): Add "tracker" parameter.
8006 (resolve_subexp): Likewise.
8007 * ada-exp.y (write_var_from_sym): Update.
8009 2019-04-04 Tom Tromey <tom@tromey.com>
8011 * type-stack.h: New file.
8012 * type-stack.c: New file.
8013 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
8015 (insert_into_type_stack, insert_type, push_type, push_type_int)
8016 (insert_type_address_space, pop_type, pop_type_int)
8017 (pop_typelist, pop_type_stack, append_type_stack)
8018 (push_type_stack, get_type_stack, push_typelist)
8019 (follow_type_instance_flags, follow_types): Don't declare.
8020 * parse.c (type_stack): Remove global.
8021 (parse_exp_in_context): Update.
8022 (insert_into_type_stack, insert_type, push_type, push_type_int)
8023 (insert_type_address_space, pop_type, pop_type_int)
8024 (pop_typelist, pop_type_stack, append_type_stack)
8025 (push_type_stack, get_type_stack, push_typelist)
8026 (follow_type_instance_flags, follow_types): Remove (moved to
8028 * f-exp.y (type_stack): New global.
8030 (push_kind_type, f_parse): Update.
8031 * d-exp.y (type_stack): New global.
8034 * c-exp.y (struct c_parse_state) <type_stack>: New member.
8036 * Makefile.in (COMMON_SFILES): Add type-stack.c.
8037 (HFILES_NO_SRCDIR): Add type-stack.h.
8039 2019-04-04 Tom Tromey <tom@tromey.com>
8041 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
8042 (rust_parser::convert_ast_to_expression, rust_parse)
8043 (rust_lex_test_completion, rust_lex_tests): Update.
8044 * parser-defs.h (struct expr_completion_state): New.
8045 (struct parser_state) <parser_state>: Add completion parameter.
8046 <mark_struct_expression, mark_completion_tag>: New methods.
8047 <parse_completion, m_completion_state>: New members.
8048 (prefixify_expression, null_post_parser): Update.
8049 (mark_struct_expression, mark_completion_tag): Don't declare.
8050 * parse.c (parse_completion, expout_last_struct)
8051 (expout_tag_completion_type, expout_completion_name): Remove
8053 (parser_state::mark_struct_expression)
8054 (parser_state::mark_completion_tag): Now methods.
8055 (prefixify_expression): Add last_struct parameter.
8056 (prefixify_subexp): Likewise.
8057 (parse_exp_1): Update.
8058 (parse_exp_in_context): Add cstate parameter. Update.
8059 (parse_expression_for_completion): Create an
8060 expr_completion_state.
8061 (null_post_parser): Add "completion" parameter.
8062 * p-exp.y: Update rules.
8064 * language.h (struct language_defn) <la_post_parser>: Add
8065 "completing" parameter.
8066 * go-exp.y: Update rules.
8067 (lex_one_token): Update.
8068 * expression.h (parse_completion): Don't declare.
8069 * d-exp.y: Update rules.
8070 (lex_one_token): Update rules.
8071 * c-exp.y: Update rules.
8072 (lex_one_token): Update.
8073 * ada-lang.c (resolve): Add "parse_completion" parameter.
8074 (resolve_subexp): Likewise.
8075 (ada_resolve_function): Likewise.
8077 2019-04-04 Tom Tromey <tom@tromey.com>
8079 * parser-defs.h (struct parser_state) <start_arglist,
8080 end_arglist>: New methods.
8081 <arglist_len, m_funcall_chain>: New members.
8082 (arglist_len, start_arglist, end_arglist): Don't declare.
8083 * parse.c (arglist_len, funcall_chain): Remove global.
8084 (start_arglist, end_arglist): Remove functions.
8085 (parse_exp_in_context): Update.
8086 * p-exp.y: Update rules.
8087 * m2-exp.y: Update rules.
8088 * go-exp.y: Update rules.
8089 * f-exp.y: Update rules.
8090 * d-exp.y: Update rules.
8091 * c-exp.y: Update rules.
8093 2019-04-04 Tom Tromey <tom@tromey.com>
8095 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
8096 lex_operator, push_back>: New methods.
8098 (rust_parser::lex_hex, lex_escape): Rename and update.
8099 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
8100 (rust_parser::lex_operator): Rename and update.
8101 (rust_parser::lex_number, rustyylex, rustyyerror)
8102 (rust_lex_test_init, rust_lex_test_sequence)
8103 (rust_lex_test_push_back, rust_lex_tests): Update.
8104 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
8106 <lexptr, prev_lexptr>: New members.
8107 (lexptr, prev_lexptr): Don't declare.
8108 * parse.c (lexptr, prev_lexptr): Remove globals.
8109 (parse_exp_in_context): Update.
8110 * p-exp.y (yylex, yyerror): Update.
8111 * m2-exp.y (parse_number, yylex, yyerror): Update.
8112 * go-exp.y (lex_one_token, yyerror): Update.
8113 * f-exp.y (match_string_literal, yylex, yyerror): Update.
8114 * d-exp.y (lex_one_token, yyerror): Update.
8115 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
8116 (lex_one_token, yyerror): Update.
8117 * ada-lex.l (YY_INPUT): Update.
8118 (rewind_to_char): Update.
8119 * ada-exp.y (yyerror): Update.
8121 2019-04-04 Tom Tromey <tom@tromey.com>
8123 * rust-exp.y (rustyylex, rust_lex_tests): Update.
8124 * parser-defs.h (struct parser_state) <parser_state>: Add new
8126 <comma_terminates>: New member.
8127 (comma_terminates): Don't declare global.
8128 * parse.c (comma_terminates): Remove global.
8129 (parse_exp_in_context): Update.
8130 * p-exp.y (yylex): Update.
8131 * m2-exp.y (yylex): Update.
8132 * go-exp.y (lex_one_token): Update.
8133 * f-exp.y (yylex): Update.
8134 * d-exp.y (lex_one_token): Update.
8135 * c-exp.y (lex_one_token): Update.
8136 * ada-lex.l: Update.
8138 2019-04-04 Tom Tromey <tom@tromey.com>
8140 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
8141 (rustyylex, rust_lex_test_init, rust_lex_test_one)
8142 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
8143 * parser-defs.h (paren_depth): Don't declare.
8144 * parse.c (paren_depth): Remove global.
8145 (parse_exp_in_context): Update.
8146 * p-exp.y (paren_depth): New global.
8147 (pascal_parse): Initialize it.
8148 * m2-exp.y (paren_depth): New global.
8149 (m2_parse): Initialize it.
8150 * go-exp.y (paren_depth): New global.
8151 (go_parse): Initialize it.
8152 * f-exp.y (paren_depth): New global.
8153 (f_parse): Initialize it.
8154 * d-exp.y (paren_depth): New global.
8155 (d_parse): Initialize it.
8156 * c-exp.y (paren_depth): New global.
8157 (c_parse): Initialize it.
8158 * ada-lex.l (paren_depth): New global.
8159 (lexer_init): Initialize it.
8161 2019-04-04 Tom Tromey <tom@tromey.com>
8163 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
8164 (rust_parser::convert_ast_to_type)
8165 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8166 * parser-defs.h (struct parser_state) <parser_state>: Add
8167 parameters. Initialize new members.
8168 <expression_context_block, expression_context_pc>: New members.
8169 * parse.c (expression_context_block, expression_context_pc):
8171 (parse_exp_in_context): Update.
8172 * p-exp.y: Update all rules.
8174 * m2-exp.y: Update all rules.
8176 * go-exp.y (yylex): Update.
8177 * f-exp.y (yylex): Update.
8178 * d-exp.y: Update all rules.
8180 * c-exp.y: Update all rules.
8181 (lex_one_token, classify_name, yylex, c_parse): Update.
8182 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
8184 2019-04-04 Tom Tromey <tom@tromey.com>
8186 * gdbarch.h, gdbarch.c: Rebuild.
8187 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8189 (struct stap_parse_info): Replace "parser_state" with
8191 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8192 (parser_state): New class.
8193 * parse.c (expr_builder): Rename.
8194 (expr_builder::release): Rename.
8195 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8196 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8197 (write_exp_elt_longcst, write_exp_elt_floatcst)
8198 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8199 (write_exp_string_vector, write_exp_bitstring)
8200 (write_exp_msymbol, mark_struct_expression)
8201 (write_dollar_variable)
8202 (insert_type_address_space, increase_expout_size): Replace
8203 "parser_state" with "expr_builder".
8204 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8205 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8206 "parser_state" with "expr_builder".
8208 2019-04-04 Tom Tromey <tom@tromey.com>
8210 * rust-exp.y: Replace "parse_language" with method call.
8212 (yylex): Replace "parse_language" with method call.
8214 (yylex): Replace "parse_language" with method call.
8215 * go-exp.y (classify_name): Replace "parse_language" with method
8217 * f-exp.y (yylex): Replace "parse_language" with method call.
8218 * d-exp.y (lex_one_token): Replace "parse_language" with method
8221 (lex_one_token, classify_name, yylex): Replace "parse_language"
8223 * ada-exp.y (find_primitive_type, type_char)
8224 (type_system_address): Replace "parse_language" with method call.
8226 2019-04-04 Tom Tromey <tom@tromey.com>
8228 * rust-exp.y: Replace "parse_gdbarch" with method call.
8229 * parse.c (write_dollar_variable, insert_type_address_space):
8230 Replace "parse_gdbarch" with method call.
8231 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8233 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8235 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8236 "parse_gdbarch" with method call.
8237 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8239 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8240 "parse_gdbarch" with method call.
8241 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8242 "parse_gdbarch" with method call.
8243 * c-exp.y (parse_type, parse_number, classify_name): Replace
8244 "parse_gdbarch" with method call.
8245 * ada-lex.l: Replace "parse_gdbarch" with method call.
8246 * ada-exp.y (parse_type, find_primitive_type, type_char)
8247 (type_system_address): Replace "parse_gdbarch" with method call.
8249 2019-04-04 Tom Tromey <tom@tromey.com>
8251 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8252 * stap-probe.c (stap_parse_argument): Update.
8253 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8254 initial_size parameter.
8255 * rust-exp.y (rust_lex_tests): Update.
8256 * parse.c (parser_state): Update.
8257 (parse_exp_in_context): Update.
8258 * parser-defs.h (struct parser_state) <parser_state>: Remove
8259 "initial_size" parameter.
8261 2019-04-04 Tom Tromey <tom@tromey.com>
8263 * parser-defs.h (increase_expout_size): Don't declare.
8264 * parse.c (increase_expout_size): Now static.
8266 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8268 * gnu-nat.c (gnu_nat_target::wait): Fix
8269 target_waitstatus_to_string call.
8271 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8273 * eval.c (evaluate_subexp_standard): Handle internal functions
8274 during Fortran function call handling.
8276 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8278 * NEWS: Mention new internal functions.
8279 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8280 (read_base_type): Use dwarf2_init_complex_target_type.
8281 * value.c (creal_internal_fn): New function.
8282 (cimag_internal_fn): New function.
8283 (_initialize_values): Register new internal functions.
8285 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8287 * infrun.c (stop_all_threads): If debug_infrun, always
8288 trace the wait status after wait_one, using
8289 target_waitstatus_to_string and target_pid_to_str.
8290 (handle_inferior_event): Replace various trace of
8291 wait status kind by a single trace.
8292 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8293 wait status kind image by target_waitstatus_to_string.
8294 * target/waitstatus.c (target_waitstatus_to_string): Fix
8297 2019-04-01 Tom Tromey <tromey@adacore.com>
8300 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8302 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8303 Pedro Alves <palves@redhat.com>
8305 * top.c (quit_force): Call 'finalize_values'.
8306 * value.c (finalize_values): New function.
8307 * value.h (finalize_values): Declare.
8309 2019-03-30 Eli Zaretskii <eliz@gnu.org>
8311 * NEWS: Announce $_gdb_major and $_gdb_minor.
8313 * top.c (init_gdb_version_vars): New function.
8314 (gdb_init): Call init_gdb_version_vars.
8316 2019-03-29 Tom Tromey <tromey@adacore.com>
8318 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
8319 help text. Remove dead code.
8321 2019-03-29 Keith Seitz <keiths@redhat.com>
8323 From Siddhesh Poyarekar:
8324 * f-lang.h (f77_get_upperbound): Return LONGEST.
8325 (f77_get_lowerbound): Likewise.
8326 * f-typeprint.c (f_type_print_varspec_suffix): Expand
8327 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
8329 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
8330 plongest to format print it.
8331 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
8332 (f77_get_upperbound): Likewise.
8333 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
8334 LOWER_BOUND to LONGEST.
8335 (f77_create_arrayprint_offset_tbl): Likewise.
8337 2019-03-29 Keith Seitz <keiths@redhat.com>
8339 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
8340 %s/pulongest for TYPE_LENGTH instead of %d in format
8342 * ada-typerint.c (ada_print_type): Likewise.
8343 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
8344 * compile/compile-c-support.c (generate_register_struct): Likewise.
8345 * gdbtypes.c (recursive_dump_type): Likewise.
8346 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
8347 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
8348 instead of %d in format strings.
8349 * riscv-tdep.c (riscv_type_alignment): Cast second argument
8350 to std::min to ULONGEST.
8351 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
8352 instead of %d in format strings.
8353 * tracepoint.c (info_scope_command): Likewise.
8354 * typeprint.c (print_offset_data::update)
8355 (print_offset_data::finish): Likewise.
8356 * xtensa-tdep.c (xtensa_store_return_value)
8357 (xtensa_push_dummy_call): Likewise.
8359 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
8361 * windows-nat.c (display_selector): Fixed format specifications
8364 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8366 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
8368 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
8370 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
8371 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
8372 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
8373 (nios2_linux_init_abi): Install it.
8375 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8377 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
8379 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8381 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
8383 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8384 Tom Tromey <tromey@adacore.com>
8386 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
8388 2019-03-26 Joel Brobecker <brobecker@adacore.com>
8390 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
8391 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
8392 method to compute the bounds of range types. Also print "[evaluated]"
8393 if the bounds' values come from a dynamic evaluation.
8395 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
8397 * cp-valprint.c (cp_print_value_fields): Don't print trailing
8398 whitespace when pretty printing is on.
8400 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8402 * ppc-linux-nat.c: Add include.
8404 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8406 * NEWS: Mention AArch64 Pointer Authentication.
8408 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8410 * arm-linux-nat.c: Add include.
8412 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
8414 * source-cache.c (source_cache::get_source_lines): Re-read
8415 fullname after calling open_source_file.
8417 2019-03-25 John Baldwin <jhb@FreeBSD.org>
8419 * NEWS: Mention TLS support for FreeBSD.
8421 2019-03-25 Tom Tromey <tromey@adacore.com>
8423 * minsyms.c (BUNCH_SIZE): Update comment.
8424 (~minimal_symbol_reader): Remove old comment.
8425 (compact_minimal_symbols): Update comment.
8426 (minimal_symbol_reader::install): Remove old comment. Update
8429 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8431 * s390-linux-nat.c: Add include.
8433 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8435 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
8436 Call linux_get_hwcap.
8437 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8439 (aarch64_linux_get_hwcap): Remove function.
8440 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
8442 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
8444 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
8445 * linux-tdep.c (linux_get_hwcap): Add function.
8446 (linux_get_hwcap2): Likewise.
8447 * linux-tdep.h (linux_get_hwcap): Add declaration.
8448 (linux_get_hwcap2): Likewise.
8449 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
8450 (ppc_linux_get_hwcap2): Likewise.
8451 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
8453 (ppc_linux_nat_target::insert_watchpoint): Likewise.
8454 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
8455 (ppc_linux_nat_target::read_description): Likewise.
8456 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
8457 * s390-linux-nat.c: Likewise.
8458 * s390-linux-tdep.c (s390_core_read_description): Likewise.
8460 2019-03-24 Tom Tromey <tom@tromey.com>
8462 * ada-lang.c (standard_lookup): Simplify initialization.
8463 (ada_lookup_symbol_nonlocal): Simplify return.
8464 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
8465 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
8466 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
8467 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
8469 * solib.c (solib_global_lookup): Simplify.
8470 * symtab.c (null_block_symbol): Remove.
8471 (symbol_cache_lookup): Simplify returns.
8472 (lookup_language_this): Simplify returns.
8473 (lookup_symbol_aux): Simplify return.
8474 (lookup_local_symbol): Simplify returns.
8475 (lookup_global_symbol_from_objfile): Simplify return.
8476 (lookup_symbol_in_objfile_symtabs)
8477 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
8478 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
8479 (lookup_static_symbol, lookup_global_symbol): Simplify return.
8480 * cp-namespace.c (cp_lookup_bare_symbol)
8481 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
8482 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
8483 (cp_lookup_nested_symbol): Don't use null_block_symbol.
8484 (cp_lookup_symbol_via_imports): Simplify initialization.
8485 (find_symbol_in_baseclass): Likewise.
8486 * symtab.h (null_block_symbol): Remove.
8487 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
8488 (d_lookup_nested_symbol, d_lookup_symbol_imports)
8489 (d_lookup_symbol_module): Likewise.
8490 (find_symbol_in_baseclass): Simplify initialization.
8492 2019-03-24 Tom Tromey <tom@tromey.com>
8494 * expression.h: Don't include symtab.h.
8495 (struct block): Forward declare.
8497 2019-03-24 Tom Tromey <tom@tromey.com>
8499 * c-exp.y (typebase): Remove casts.
8500 * gdbtypes.c (lookup_unsigned_typename, )
8501 (lookup_signed_typename): Remove cast.
8502 * eval.c (parse_to_comma_and_eval): Remove cast.
8503 * parse.c (write_dollar_variable): Remove cast.
8504 * block.h (struct block) <superblock>: Now const.
8505 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
8506 * psymtab.c (psym_map_matching_symbols): Make "block" const.
8507 (map_block): Make "block" const.
8508 * symfile.h (struct quick_symbol_functions)
8509 <map_matching_symbols>: Constify block argument to "callback".
8510 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
8512 (find_pc_sect_compunit_symtab): Make "b" const.
8513 (find_symbol_at_address): Likewise.
8514 (search_symbols): Likewise.
8515 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
8516 (dw2_debug_names_lookup_symbol): Likewise.
8517 (dw2_map_matching_symbols): Update.
8518 * p-valprint.c (pascal_val_print): Remove "block".
8519 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
8520 (aux_add_nonlocal_symbols): Make "block" const.
8521 (resolve_subexp): Remove cast.
8522 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
8524 (iterate_over_file_blocks): Likewise.
8525 * f-exp.y (%union) <bval>: Remove.
8526 * coffread.c (patch_opaque_types): Make "b" const.
8527 * spu-tdep.c (spu_catch_start): Make "block" const.
8528 * c-valprint.c (print_unpacked_pointer): Remove "block".
8529 * symmisc.c (dump_symtab_1): Make "b" const.
8530 (block_depth): Make "block" const.
8531 * d-exp.y (%union) <bval>: Remove.
8532 * cp-support.h (cp_lookup_rtti_type): Update.
8533 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
8534 * psymtab.c (psym_lookup_symbol): Make "block" const.
8535 (maintenance_check_psymtabs): Make "b" const.
8536 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
8537 (enumerate_locals, enumerate_args): Update.
8538 * python/py-symtab.c (stpy_global_block): Make "block" const.
8539 (stpy_static_block): Likewise.
8540 * inline-frame.c (block_starting_point_at): Make "new_block"
8542 * block.c (find_block_in_blockvector): Make return type const.
8543 (blockvector_for_pc_sect): Make "b" const.
8544 (find_block_in_blockvector): Make "b" const.
8546 2019-03-23 Tom Tromey <tom@tromey.com>
8548 * varobj.c (varobj_create): Update.
8549 * symfile.c (clear_symtab_users): Don't reset innermost_block.
8550 * printcmd.c (display_command, do_one_display): Don't reset
8552 * parser-defs.h (enum innermost_block_tracker_type): Move to
8554 (innermost_block): Update comment.
8555 * parse.c (parse_exp_1): Add tracker_types parameter.
8556 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
8557 tracker_types parameter. Reset innermost_block.
8558 (parse_exp_in_context): Remove.
8559 (parse_expression_for_completion): Update.
8560 * objfiles.c (~objfile): Don't reset expression_context_block or
8562 * expression.h (enum innermost_block_tracker_type): Move from
8564 (parse_exp_1): Add tracker_types parameter.
8565 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
8566 reset innermost_block.
8568 2019-03-23 Tom Tromey <tom@tromey.com>
8570 * objfiles.h: Include bcache.h.
8572 2019-03-23 Tom Tromey <tom@tromey.com>
8574 * linespec.c (get_current_search_block): Use
8575 scoped_restore_current_language.
8576 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
8578 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8579 Jiong Wang <jiong.wang@arm.com>
8581 * aarch64-linux-tdep.c
8582 (aarch64_linux_iterate_over_regset_sections): Check for pauth
8584 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
8586 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8587 Jiong Wang <jiong.wang@arm.com>
8589 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
8591 (aarch64_analyze_prologue_test): Add PACIASP test.
8592 (aarch64_prologue_prev_register): Unmask PC value.
8594 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8595 Jiong Wang <jiong.wang@arm.com>
8597 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
8598 (aarch64_dwarf2_prev_register): Unmask PC value.
8599 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
8600 (aarch64_execute_dwarf_cfa_vendor_op): Check for
8601 DW_CFA_AARCH64_negate_ra_state.
8602 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
8604 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8605 Jiong Wang <jiong.wang@arm.com>
8607 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
8609 (aarch64_pseudo_register_name): Likewise.
8610 (aarch64_pseudo_register_type): Likewise.
8611 (aarch64_pseudo_register_reggroup_p): Likewise.
8612 (aarch64_gdbarch_init): Add pauth registers.
8613 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
8614 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
8615 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
8616 (struct gdbarch_tdep): Add regnum for ra_state.
8618 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8619 Jiong Wang <jiong.wang@arm.com>
8621 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
8623 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8624 Jiong Wang <jiong.wang@arm.com>
8626 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
8628 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
8629 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
8630 (aarch64_gdbarch_init): Add puth registers.
8631 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
8632 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
8633 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
8635 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8636 Jiong Wang <jiong.wang@arm.com>
8638 * aarch64-linux-nat.c
8639 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
8640 * aarch64-linux-tdep.c
8641 (aarch64_linux_core_read_description): Likewise.
8642 (aarch64_linux_get_hwcap): New function.
8643 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
8644 (aarch64_linux_get_hwcap): New declaration.
8646 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8647 Jiong Wang <jiong.wang@arm.com>
8649 * aarch64-linux-nat.c
8650 (aarch64_linux_nat_target::read_description): Add pauth param.
8651 * aarch64-linux-tdep.c
8652 (aarch64_linux_core_read_description): Likewise.
8653 * aarch64-tdep.c (struct target_desc): Add in pauth.
8654 (aarch64_read_description): Add pauth param.
8655 (aarch64_gdbarch_init): Likewise.
8656 * aarch64-tdep.h (aarch64_read_description): Likewise.
8657 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8658 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8659 * features/Makefile: Add new files.
8660 * features/aarch64-pauth.c: New file.
8661 * features/aarch64-pauth.xml: New file.
8663 2019-03-20 Tom Tromey <tromey@adacore.com>
8665 * infrun.c (handle_inferior_event): Rename from
8666 handle_inferior_event_1. Create a scoped_value_mark.
8667 (handle_inferior_event): Remove.
8669 2019-03-19 Tom Tromey <tromey@adacore.com>
8671 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
8672 * infrun.h (print_stop_event): Add "displays" parameter.
8673 * infrun.c (print_stop_event): Add "displays" parameter.
8675 2019-03-19 Pedro Alves <palves@redhat.com>
8677 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
8678 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
8679 to -1. Fix TABs vs spaces.
8680 (tui_ui_out::tui_ui_out): Don't initialize fields here.
8681 * tui/tui-out.h (tui_ui_out) Add intro comments.
8682 <m_line, m_start_of_line>: In-class initialize, and add describing
8685 2019-03-18 Alan Hayward <alan.hayward@arm.com>
8687 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
8689 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
8691 2019-03-18 Pedro Alves <palves@redhat.com>
8692 Eli Zaretskii <eliz@gnu.org>
8694 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
8695 m_line and m_start_of_line.
8697 2019-03-18 Eli Zaretskii <eliz@gnu.org>
8699 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
8700 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
8701 it returns a newline. This fixes a regression in TU mode, whereby
8702 the next line is output on the same screen line as the user input.
8704 2019-03-18 Tom Tromey <tromey@adacore.com>
8706 * minsyms.c (minimal_symbol_reader::install): Remove call to
8709 2019-03-18 Pedro Alves <palves@redhat.com>
8711 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
8713 (apply_style): New, factored out from ...
8714 (apply_ansi_escape): ... this. Handle reverse video mode.
8715 (tui_set_reverse_mode): New function.
8716 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
8717 * tui/tui-winsource.c (tui_show_source_line): Use
8718 tui_set_reverse_mode instead of setting A_STANDOUT.
8719 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
8722 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
8724 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
8727 2019-03-18 Tom Tromey <tromey@adacore.com>
8729 * ada-lang.c (empty_array): Add "high" parameter.
8730 (ada_evaluate_subexp): Update.
8732 2019-03-17 Sergei Trofimovich <siarheit@google.com>
8734 * unittests/string_view-selftests.c: Define
8735 _initialize_string_view_selftests unconditionally.
8737 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8740 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
8742 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8745 * windows-nat.c (display_selector): Fix format specifiers.
8747 2019-03-17 Eli Zaretskii <eliz@gnu.org>
8749 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
8750 tui_refill_source_window instead of tui_refresh_win, to update the
8751 current execution line. This fixes redisplay of the current line
8752 when stepping through the code with "next" or "step".
8754 2019-03-16 Eli Zaretskii <eliz@gnu.org>
8756 * source-cache.c (source_cache::get_source_lines): Call
8757 find_source_lines to initialize s->nlines. This fixes vertical
8758 scrolling of TUI source window when the DOWN arrow is pressed.
8760 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8762 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
8763 linux-thread-db.c (_initialize_thread_db): Likewise.
8765 2019-03-16 Eli Zaretskii <eliz@gnu.org>
8767 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
8768 wclrtoeol in tui_show_source_line". This reverts changes made in
8769 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
8771 2019-03-15 Tom Tromey <tom@tromey.com>
8773 * symtab.h (struct minimal_symbol): Derive from
8774 general_symbol_info.
8775 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
8776 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8777 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8778 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8779 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
8780 (MSYMBOL_SEARCH_NAME): Update.
8781 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
8782 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
8783 * minsyms.c (minimal_symbol_reader::record_full): Update.
8785 2019-03-15 Tom Tromey <tom@tromey.com>
8787 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
8789 2019-03-15 Tom Tromey <tom@tromey.com>
8791 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
8793 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
8795 * minsyms.c (lookup_minimal_symbol_by_pc_section)
8796 (build_minimal_symbol_hash_tables)
8797 (minimal_symbol_reader::install): Update.
8799 2019-03-15 Tom Tromey <tom@tromey.com>
8801 * symtab.c (create_demangled_names_hash): Update.
8802 (symbol_set_names): Update.
8803 * objfiles.h (struct objfile_per_bfd_storage)
8804 <demangled_names_hash>: Now an htab_up.
8805 * objfiles.c (objfile_per_bfd_storage): Simplify.
8807 2019-03-15 Tom Tromey <tom@tromey.com>
8809 * objfiles.h (struct objfile_per_bfd_storage): Declare
8811 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
8813 (get_objfile_bfd_data): Use new. Don't initialize
8815 (free_objfile_per_bfd_storage): Remove.
8816 (objfile_bfd_data_free, objfile::~objfile): Use delete.
8818 2019-03-15 Tom Tromey <tom@tromey.com>
8820 * symfile.c (reread_symbols): Update.
8821 * objfiles.c (objfile::objfile): Update.
8822 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
8823 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
8825 (minimal_symbol_reader::install): Update.
8826 (terminate_minimal_symbol_table): Remove.
8827 * jit.c (jit_object_close_impl): Update.
8829 2019-03-15 Tom Tromey <tom@tromey.com>
8831 * minsyms.c (minimal_symbol_reader::record_full): Remove some
8834 2019-03-15 Tom Tromey <tom@tromey.com>
8836 * objfiles.h (struct objfile_per_bfd_storage)
8837 <demangled_hash_languages>: Now a bitset.
8838 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
8839 (lookup_minimal_symbol): Update.
8841 2019-03-15 Tom Tromey <tom@tromey.com>
8843 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
8844 Don't return the symbol.
8845 * coffread.c (record_minimal_symbol): Use record_full.
8847 2019-03-14 Eli Zaretskii <eliz@gnu.org>
8849 The MS-Windows port of ncurses fails to switch to a color pair if
8850 one or both of the colors are the implicit default colors. This
8851 change records the default colors when TUI is initialized, and
8852 then specifies them explicitly when a color pair uses the default
8853 colors. This allows color styling in TUI mode on MS-Windows.
8855 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
8857 (tui_initialize_io) [__MINGW32__]: Record the default terminal
8858 colors in ncurses_norm_attr.
8859 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
8860 "none", replace it with the default color recorded in
8863 2019-03-14 Tom Tromey <tromey@adacore.com>
8865 * source-cache.h (class source_cache) <get_source_lines>: Return
8867 * source-cache.c (source_cache::extract_lines): Handle case where
8868 first_pos==npos. Return std::string.
8869 (source_cache::get_source_lines): Update.
8871 2019-03-14 Tom Tromey <tromey@adacore.com>
8873 * NEWS: Add item for "style sources" commands.
8874 * source-cache.c (source_cache::get_source_lines): Check
8876 * cli/cli-style.c (source_styling): New global.
8877 (_initialize_cli_style): Add "style sources" commands.
8878 (show_style_sources): New function.
8879 * cli/cli-style.h (source_styling): Declare.
8881 2019-03-14 Pedro Alves <palves@redhat.com>
8882 Tom Tromey <tromey@adacore.com>
8884 * tui/tui-winsource.h (tui_refill_source_window): Declare.
8885 * tui/tui-winsource.c (tui_refill_source_window): New function,
8887 (tui_horizontal_source_scroll): ... here. Move some logic.
8888 * cli/cli-style.c (set_style_enabled): Notify new observable.
8889 * tui/tui-hooks.c (tui_redisplay_source): New function.
8890 (tui_attach_detach_observers): Attach or detach
8891 tui_redisplay_source.
8892 * observable.h (source_styling_changed): New observable.
8893 * observable.c: Define source_styling_changed observable.
8895 2019-03-13 Tom Tromey <tromey@adacore.com>
8897 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
8898 (i386_gnu_nat_target::store_registers): Update.
8899 * target-debug.h (target_debug_print_std_string): New macro.
8900 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8901 * windows-tdep.c (display_one_tib): Update.
8902 * tui/tui-stack.c (tui_make_status_line): Update.
8903 * top.c (print_inferior_quit_action): Update.
8904 * thread.c (thr_try_catch_cmd): Update.
8905 (add_thread_with_info): Update.
8906 (thread_target_id_str): Update.
8907 (thr_try_catch_cmd): Update.
8908 (thread_command): Update.
8909 (thread_find_command): Update.
8910 * record-btrace.c (record_btrace_target::info_record)
8911 (record_btrace_resume_thread, record_btrace_target::resume)
8912 (record_btrace_cancel_resume, record_btrace_step_thread)
8913 (record_btrace_target::wait, record_btrace_target::wait)
8914 (record_btrace_target::wait, record_btrace_target::stop): Update.
8915 * progspace.c (print_program_space): Update.
8916 * process-stratum-target.c
8917 (process_stratum_target::thread_address_space): Update.
8918 * linux-fork.c (linux_fork_mourn_inferior)
8919 (detach_checkpoint_command, info_checkpoints_command)
8920 (linux_fork_context): Update.
8921 (linux_fork_detach): Update.
8922 (class scoped_switch_fork_info): Update.
8923 (delete_checkpoint_command): Update.
8924 * infrun.c (follow_fork_inferior): Update.
8925 (follow_fork_inferior): Update.
8926 (proceed_after_vfork_done): Update.
8927 (handle_vfork_child_exec_or_exit): Update.
8928 (follow_exec): Update.
8929 (displaced_step_prepare_throw): Update.
8930 (displaced_step_restore): Update.
8931 (start_step_over): Update.
8933 (clear_proceed_status_thread): Update.
8935 (print_target_wait_results): Update.
8936 (do_target_wait): Update.
8937 (context_switch): Update.
8938 (stop_all_threads): Update.
8939 (restart_threads): Update.
8940 (finish_step_over): Update.
8941 (handle_signal_stop): Update.
8942 (switch_back_to_stepped_thread): Update.
8943 (keep_going_pass_signal): Update.
8944 (print_exited_reason): Update.
8945 (normal_stop): Update.
8946 * inferior.c (inferior_pid_to_str): Change return type.
8947 (print_selected_inferior): Update.
8948 (add_inferior): Update.
8949 (detach_inferior): Update.
8950 * dummy-frame.c (fprint_dummy_frames): Update.
8951 * dcache.c (dcache_info_1): Update.
8952 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
8953 (btrace_fetch, btrace_clear): Update.
8954 * linux-tdep.c (linux_core_pid_to_str): Change return type.
8955 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
8957 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
8958 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
8959 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
8960 * gdbarch.c, gdbarch.h: Rebuild.
8961 * gdbarch.sh (core_pid_to_str): Change return type.
8962 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
8964 (windows_nat_target::pid_to_str): Change return type.
8965 (windows_delete_thread): Update.
8966 (windows_nat_target::attach): Update.
8967 (windows_nat_target::files_info): Update.
8968 * target-delegates.c: Rebuild.
8969 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
8971 (sol_thread_target::pid_to_str): Change return type.
8972 * remote.c (class remote_target) <pid_to_str>: Change return
8974 (remote_target::pid_to_str): Change return type.
8975 (extended_remote_target::attach, remote_target::remote_stop_ns)
8976 (remote_target::remote_notif_remove_queued_reply)
8977 (remote_target::push_stop_reply, remote_target::disable_btrace):
8979 (extended_remote_target::attach): Update.
8980 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
8982 (gdbsim_target::pid_to_str): Change return type.
8983 * ravenscar-thread.c (struct ravenscar_thread_target)
8984 <pid_to_str>: Change return type.
8985 (ravenscar_thread_target::pid_to_str): Change return type.
8986 * procfs.c (class procfs_target) <pid_to_str>: Change return
8988 (procfs_target::pid_to_str): Change return type.
8989 (procfs_target::attach): Update.
8990 (procfs_target::detach): Update.
8991 (procfs_target::fetch_registers): Update.
8992 (procfs_target::store_registers): Update.
8993 (procfs_target::wait): Update.
8994 (procfs_target::files_info): Update.
8995 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
8996 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
8998 (nto_procfs_target::pid_to_str): Change return type.
8999 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
9000 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
9002 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
9004 (attach_proc_task_lwp_callback, get_detach_signal)
9005 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
9006 (linux_nat_target::resume, wait_lwp, stop_callback)
9007 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
9008 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
9009 (linux_nat_wait_1, resume_stopped_resumed_lwps)
9010 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
9011 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
9013 (inf_ptrace_target::attach): Update.
9014 (inf_ptrace_target::files_info): Update.
9015 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
9017 (go32_nat_target::pid_to_str): Change return type.
9018 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
9019 (gnu_nat_target::wait): Update.
9020 (gnu_nat_target::wait): Update.
9021 (gnu_nat_target::resume): Update.
9022 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
9023 (fbsd_nat_target::wait): Update.
9024 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
9026 (darwin_nat_target::attach): Update.
9027 * corelow.c (class core_target) <pid_to_str>: Change return type.
9028 (core_target::pid_to_str): Change return type.
9029 * target.c (normal_pid_to_str): Change return type.
9030 (default_pid_to_str): Likewise.
9031 (target_pid_to_str): Change return type.
9032 (target_translate_tls_address): Update.
9033 (target_announce_detach): Update.
9034 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
9036 (bsd_uthread_target::pid_to_str): Change return type.
9037 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
9039 (bsd_kvm_target::pid_to_str): Change return type.
9040 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
9042 (aix_thread_target::pid_to_str): Change return type.
9043 * target.h (struct target_ops) <pid_to_str>: Change return type.
9044 (target_pid_to_str, normal_pid_to_str): Likewise.
9045 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
9047 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
9049 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
9051 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
9053 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
9055 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
9058 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
9060 * NEWS: Mention that the new default MI version is 3. Mention
9061 changes to the output of commands and events that deal with
9062 multi-location breakpoints.
9063 * breakpoint.c: Include "mi/mi-out.h".
9064 (print_one_breakpoint): Change output syntax if using MI version
9066 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
9068 (mi_multi_location_breakpoint_output_fixed): New.
9069 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
9070 (mi_cmd_fix_multi_location_breakpoint_output): New.
9071 (mi_multi_location_breakpoint_output_fixed): New.
9072 * mi/mi-cmds.c (mi_cmds): Register command
9073 -fix-multi-location-breakpoint-output.
9074 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
9077 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9079 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
9080 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
9081 instantiate mi_ui_out based on interpreter name.
9082 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
9083 * mi/mi-main.c (mi_load_progress): Likewise.
9085 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9087 * NEWS: Combine separate "New targets" sections for 8.3.
9089 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9091 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
9092 (ppcfbsd_init_abi): Install gdbarch
9093 "fetch_tls_load_module_address" and "get_thread_local_address"
9096 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9098 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
9099 (riscv_fbsd_init_abi): Install gdbarch
9100 "fetch_tls_load_module_address" and "get_thread_local_address"
9103 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9105 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
9106 (i386fbsd_init_abi): Install gdbarch
9107 "fetch_tls_load_module_address" and "get_thread_local_address"
9110 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9112 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
9113 (amd64fbsd_init_abi): Install gdbarch
9114 "fetch_tls_load_module_address" and "get_thread_local_address"
9117 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9119 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
9120 (struct fbsd_pspace_data): New type.
9121 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
9122 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
9123 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
9124 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
9125 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
9127 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9129 * gdbtypes.c (lookup_struct_elt): New function.
9130 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
9131 * gdbtypes.h (struct struct_elt): New type.
9132 (lookup_struct_elt): New prototype.
9134 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9136 * gdbtypes.c (lookup_struct_elt_type): Update comment and
9137 remove disabled code block.
9139 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9141 * gdbarch.sh (get_thread_local_address): New method.
9142 * gdbarch.h, gdbarch.c: Regenerate.
9143 * target.c (target_translate_tls_address): Use
9144 gdbarch_get_thread_local_address if present instead of
9145 target::get_thread_local_address.
9147 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9149 * target.h (target::get_thread_local_address): Update comment.
9151 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9153 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
9154 objfile->separate_debug_objfile_backlink if not NULL.
9156 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9158 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9159 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
9160 (amd64bsd_store_inferior_registers): Likewise.
9161 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9162 Enable segment base registers.
9163 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
9164 PT_GETFSBASE and PT_GETGSBASE.
9165 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
9167 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
9168 segment base registers.
9169 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9171 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9173 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9174 Update calls to i386_target_description to add 'segments'
9176 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
9177 add segment base registers.
9178 * arch/i386.c (i386_create_target_description): Add 'segments'
9179 parameter to enable segment base registers.
9180 * arch/i386.h (i386_create_target_description): Likewise.
9181 * features/i386/32bit-segments.xml: New file.
9182 * features/i386/32bit-segments.c: Generate.
9183 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
9184 call to i386_target_description to add 'segments' parameter.
9185 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9186 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9187 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9188 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9189 if feature is present.
9190 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9191 Add 'segments' parameter to call to i386_target_description.
9192 (i386_target_description): Add 'segments' parameter to enable
9193 segment base registers.
9194 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9195 to call to i386_target_description.
9196 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9197 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9198 Define I386_NUM_REGS.
9199 (i386_target_description): Add 'segments' parameter to enable
9200 segment base registers.
9202 2019-03-12 Eli Zaretskii <eliz@gnu.org>
9205 * source-cache.c: #undef open and close, to avoid unresolved
9206 externals during linking.
9208 2019-03-12 Tom Tromey <tromey@adacore.com>
9210 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9211 const. Add initializers.
9212 (_initialize_remote): Don't initialize ptid globals.
9214 2019-03-12 Pedro Alves <palves@redhat.com>
9216 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9218 2019-03-12 Pedro Alves <palves@redhat.com>
9220 * cp-name-parser.y (main): Remove unused 'len' variable.
9222 2019-03-12 Tom Tromey <tromey@adacore.com>
9224 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9225 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9227 2019-03-12 Tom Tromey <tromey@adacore.com>
9229 * linux-nat.c (iterate_over_lwps): Update.
9230 (stop_callback): Remove parameter.
9231 (stop_wait_callback, detach_callback, resume_set_callback)
9232 (select_singlestep_lwp_callback, set_ignore_sigint)
9233 (status_callback, resumed_callback, resume_clear_callback)
9234 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9236 (linux_nat_target::detach, linux_nat_target::resume)
9237 (linux_stop_and_wait_all_lwps, select_event_lwp)
9238 (linux_nat_filter_event, linux_nat_wait_1)
9239 (linux_nat_target::kill, linux_nat_target::stop)
9240 (linux_nat_target::stop): Update.
9241 (linux_nat_resume_callback): Change type.
9242 (resume_stopped_resumed_lwps, count_events_callback)
9243 (select_event_lwp_callback): Likewise.
9244 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9245 * arm-linux-nat.c (struct update_registers_data): Remove.
9246 (update_registers_callback): Change type.
9247 (arm_linux_insert_hw_breakpoint1): Update.
9248 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9250 (x86_linux_dr_set_addr): Update.
9251 (x86_linux_dr_set_control): Update.
9252 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9253 (iterate_over_lwps): Use gdb::function_view.
9254 * nat/aarch64-linux-hw-point.c (struct
9255 aarch64_dr_update_callback_param): Remove.
9256 (debug_reg_change_callback): Change type.
9257 (aarch64_notify_debug_reg_change): Update.
9258 * s390-linux-nat.c (s390_refresh_per_info): Update.
9260 2019-03-11 Tom Tromey <tromey@adacore.com>
9262 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9263 redundant assignment to "this_cu".
9265 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9267 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9269 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9271 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9273 (rank_one_type): ... this.
9275 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9277 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9279 (rank_one_type): ... this.
9281 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9283 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9285 (rank_one_type): ... this.
9287 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9289 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9291 (rank_one_type): ... this.
9293 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9295 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9297 (rank_one_type): ... this.
9299 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9301 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9303 (rank_one_type): ... this.
9305 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9307 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9309 (rank_one_type): ... this.
9311 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9313 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
9315 (rank_one_type): ... this.
9317 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9319 * gdbtypes.c (rank_one_type_parm_int): New function extracted
9321 (rank_one_type): ... this.
9323 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9325 * gdbtypes.c (rank_one_type_parm_func): New function extracted
9327 (rank_one_type): ... this.
9329 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9331 * gdbtypes.c (rank_one_type_parm_array): New function extracted
9333 (rank_one_type): ... this.
9335 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9337 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
9339 (rank_one_type): ... this.
9341 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9343 * inferior.c (initialize_inferiors): Ensure 'help set/show print
9344 inferior-events' shows the example events.
9346 2019-03-08 Eli Zaretskii <eliz@gnu.org>
9348 Support styling on native MS-Windows console
9351 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
9352 on MS-Windows if $TERM is not defined.
9354 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
9356 * posix-hdep.c (gdb_console_fputs):
9357 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
9359 * ui-file.h (gdb_console_fputs): Add prototype.
9361 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
9362 back to fputs only if the former returns zero.
9364 2019-03-07 Tom Tromey <tom@tromey.com>
9366 * symmisc.c (print_symbol_bcache_statistics): Update.
9367 (print_objfile_statistics): Update.
9368 * symfile.c (allocate_symtab): Update.
9369 * stabsread.c: Don't include bcache.h.
9370 * psymtab.h (struct psymbol_bcache): Don't declare.
9371 (class psymtab_storage) <psymbol_cache>: Now a bcache.
9372 (psymbol_bcache_init, psymbol_bcache_free)
9373 (psymbol_bcache_get_bcache): Don't declare.
9374 * psymtab.c (struct psymbol_bcache): Remove.
9375 (psymtab_storage::psymtab_storage): Update.
9376 (psymtab_storage::~psymtab_storage): Update.
9377 (psymbol_bcache_init, psymbol_bcache_free)
9378 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
9379 (add_psymbol_to_bcache): Update.
9380 (allocate_psymtab): Update.
9381 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9382 macro_cache>: No longer pointers.
9383 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
9384 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
9385 * macrotab.c (macro_bcache): Update.
9386 * macroexp.c: Don't include bcache.h.
9387 * gdbtypes.c (check_types_worklist): Update.
9388 (types_deeply_equal): Remove TRY/CATCH. Update.
9389 * elfread.c (elf_symtab_read): Update.
9390 * dwarf2read.c: Don't include bcache.h.
9391 * buildsym.c (buildsym_compunit::get_macro_table): Update.
9392 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
9393 (print_bcache_statistics, bcache_memory_used): Don't declare.
9394 (struct bcache): Move from bcache.c. Add constructor, destructor,
9395 methods. Rename all data members.
9396 * bcache.c (struct bcache): Move to bcache.h.
9397 (bcache::expand_hash_table): Rename from expand_hash_table.
9399 (bcache::insert): Rename from bcache_full.
9400 (bcache::compare): Rename from bcache_compare.
9401 (bcache_xmalloc): Remove.
9402 (bcache::~bcache): Rename from bcache_xfree.
9403 (bcache::print_statistics): Rename from print_bcache_statistics.
9404 (bcache::memory_used): Rename from bcache_memory_used.
9406 2019-03-07 Pedro Alves <palves@redhat.com>
9408 * infrun.c (normal_stop): Also check for
9409 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
9411 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9413 * f-lang.c (value_from_host_double): Moved to...
9414 * value.c (value_from_host_double): ...here.
9415 * value.h (value_from_host_double): Declare.
9416 * guile/scm-math.c (vlscm_convert_typed_number): Use
9417 value_from_host_double.
9418 (vlscm_convert_number): Likewise.
9419 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
9420 * python/py-value.c (convert_value_from_python): Likewise.
9422 2019-03-06 Tom Tromey <tom@tromey.com>
9424 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
9426 2019-03-06 Tom Tromey <tom@tromey.com>
9428 * utils.h (free_current_contents): Don't declare.
9429 * utils.c (free_current_contents): Remove.
9431 2019-03-06 Tom Tromey <tom@tromey.com>
9433 * top.c (quit_force): Update.
9434 * main.c (captured_command_loop): Update.
9435 * common/new-op.c (operator new): Update.
9436 * common/common-exceptions.c (struct catcher)
9437 <save_cleanup_chain>: Remove member.
9438 (exceptions_state_mc_init): Update.
9439 (exception_try_scope_entry): Return nullptr.
9440 (exception_try_scope_exit, exception_rethrow)
9441 (throw_exception_sjlj, throw_exception_cxx): Update.
9442 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
9443 (all_cleanups, do_cleanups, discard_cleanups)
9444 (discard_final_cleanups, save_cleanups, save_final_cleanups)
9445 (restore_cleanups, restore_final_cleanups): Don't declare.
9446 (do_final_cleanups): Remove parameter.
9447 * common/cleanups.c (cleanup_chain, make_cleanup)
9448 (make_cleanup_dtor, all_cleanups, do_cleanups)
9449 (discard_my_cleanups, discard_cleanups)
9450 (discard_final_cleanups, save_my_cleanups, save_cleanups)
9451 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
9452 (null_cleanup): Remove.
9453 (do_final_cleanups): Remove parameter.
9455 2019-03-06 Tom Tromey <tom@tromey.com>
9457 * remote.c (remote_target::remote_parse_stop_reply): Use
9460 2019-03-06 Tom Tromey <tom@tromey.com>
9462 * stabsread.c (struct stabs_field_info): Rename from field_info.
9463 <list, fnlist>: Add initializers.
9464 <obstack>: New member.
9465 (read_member_functions, read_struct_fields, read_baseclasses):
9466 Allocate on obstack. Don't use cleanups.
9467 (read_one_struct_field, read_member_functions, read_struct_fields)
9468 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
9469 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
9470 (read_struct_type): Update.
9472 2019-03-06 Tom Tromey <tom@tromey.com>
9474 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
9475 * common/filestuff.h (make_cleanup_close): Don't declare.
9476 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
9479 2019-03-06 Tom Tromey <tom@tromey.com>
9481 * solib-aix.c: Use make_scope_exit.
9483 2019-03-06 Tom Tromey <tom@tromey.com>
9485 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
9486 Use make_scope_exit.
9488 2019-03-06 Tom Tromey <tom@tromey.com>
9490 * solib-svr4.c (disable_probes_interface): Remove parameter.
9491 (svr4_handle_solib_event): Use make_scope_exit.
9493 2019-03-06 Tom Tromey <tom@tromey.com>
9495 * remote.c (struct stop_reply_deleter): Remove.
9496 (stop_reply_up): Update.
9497 (struct stop_reply): Derive from notif_event. Don't typedef.
9498 <regcache>: Now a std::vector.
9499 (stop_reply_xfree): Remove.
9500 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
9501 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
9502 (remote_target::discard_pending_stop_replies): Use delete.
9503 (remote_target::remote_parse_stop_reply): Update.
9504 (remote_target::process_stop_reply): Update.
9505 * remote-notif.h (struct notif_event): Add virtual destructor.
9506 Remove "dtr" member.
9507 (struct notif_client) <alloc_event>: Return a unique_ptr.
9508 (notif_event_xfree): Don't declare.
9509 (notif_event_up): New typedef.
9510 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
9511 (notif_event_xfree, do_notif_event_xfree): Remove.
9512 (remote_notif_state_xfree): Update.
9514 2019-03-06 Tom Tromey <tom@tromey.com>
9516 * infrun.c (displaced_step_clear_cleanup): Now a
9517 forward_scope_exit type.
9518 (displaced_step_prepare_throw): Update.
9519 (displaced_step_fixup): Update.
9521 2019-03-06 Tom Tromey <tom@tromey.com>
9523 * inferior.h (class inferior): Update comment.
9524 * gdbthread.h (class thread_info): Update comment.
9526 2019-03-06 Joel Brobecker <brobecker@adacore.com>
9527 Tom Tromey <tom@tromey.com>
9529 * stabsread.h (struct stab_section_list): Remove.
9530 (coffstab_build_psymtabs): Update.
9531 * dbxread.c (symbuf_sections): Now a std::vector.
9532 (sect_idx): New global.
9533 (fill_symbuf): Update.
9534 (coffstab_build_psymtabs): Change type of stabsects parameter.
9536 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
9538 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
9539 (coff_locate_sections): Update.
9540 (coff_symfile_read): Remove cleanups. Update.
9541 (init_stringtab): Add storage parameter.
9542 (free_stringtab, free_stringtab_cleanup): Remove.
9543 (init_lineno): Add storage parameter.
9544 (free_linetab, free_linetab_cleanup): Remove.
9546 2019-03-06 Pedro Alves <palves@redhat.com>
9548 * linux-fork.c (fork_info::clobber_regs): Delete.
9549 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
9550 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
9552 (scoped_switch_fork_info::scoped_switch_fork_info)
9553 (checkpoint_command, linux_fork_context): Adjust
9554 fork_save_infrun_state calls.
9556 2019-03-06 Pedro Alves <palves@redhat.com>
9558 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
9559 (inf_has_multiple_threads): Return 'bool' and rewrite using
9560 inferior_info::threads().
9562 2019-03-06 Pedro Alves <palves@redhat.com>
9564 * linux-fork.c: Include <list>.
9565 (fork_list): Now a std::list instance.
9566 (fork_info): Add ctor, dtor, and in-class initialize all fields.
9567 (forks_exist_p, find_last_fork): Adjust.
9571 (free_fork): Delete, folded into fork_info::~fork_info().
9572 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
9574 (init_fork_list): Delete.
9575 (linux_fork_killall, linux_fork_mourn_inferior)
9576 (linux_fork_detach, info_checkpoints_command): Adjust.
9577 (_initialize_linux_fork): No longer call init_fork_list.
9579 2019-03-06 Pedro Alves <palves@redhat.com>
9581 * linux-fork.c (new_fork): New, split out of ...
9582 (add_fork): ... this. Return void. Move "first fork" special
9583 case from here, to ...
9584 (checkpoint_command): ... here.
9585 * linux-linux.h (add_fork): Return void.
9587 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9589 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
9591 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9592 Chris January <chris.january@arm.com>
9593 David Lecomber <david.lecomber@arm.com>
9595 * f-exp.y: New token, UNOP_INTRINSIC.
9596 (exp): New pattern using UNOP_INTRINSIC token.
9597 (f77_keywords): Add 'abs' keyword.
9598 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
9599 (value_from_host_double): New function.
9600 (evaluate_subexp_f): Support UNOP_ABS.
9602 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9604 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
9607 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9609 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
9610 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
9611 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
9613 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9615 * f-exp.y (convert_to_kind_type): Handle more type kinds.
9617 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9618 Chris January <chris.january@arm.com>
9620 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
9621 * f-exp.y: Define 'KIND' token.
9622 (exp): New pattern for KIND expressions.
9623 (ptype): Handle types with a kind extension.
9624 (direct_abs_decl): Extend to spot kind extensions.
9625 (f77_keywords): Add 'kind' to the list.
9626 (push_kind_type): New function.
9627 (convert_to_kind_type): New function.
9628 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
9629 * parse.c (operator_length_standard): Likewise.
9630 * parser-defs.h (enum type_pieces): Add tp_kind.
9631 * std-operator.def: Add UNOP_KIND.
9633 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9635 * f-exp.y (f_parse): Set yydebug.
9637 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9639 * f-lang.c (evaluate_subexp_f): New function.
9640 (exp_descriptor_f): New global.
9641 (f_language_defn): Use exp_descriptor_f instead of
9642 exp_descriptor_standard.
9644 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9646 * f-exp.y (struct token): Add comments.
9647 (dot_ops): Remove uppercase versions and the end marker.
9648 (f77_keywords): Likewise.
9649 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
9650 entries in the dot_ops array are case insensitive, and use
9651 strncasecmp to compare strings. Also some whitespace cleanup in
9652 this area. Similar for the f77_keywords array, except entries in
9653 this list might be case sensitive.
9655 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9657 * f-exp.y (struct f77_boolean_val): Add comments.
9658 (boolean_values): Remove uppercase versions, and end marker.
9659 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
9660 and use strncasecmp to achieve case insensitivity. Additionally,
9661 perform whitespace cleanup around this code.
9663 2019-03-06 Tom Tromey <tromey@adacore.com>
9665 * remote-sim.c (gdbsim_target_open): Use result of
9668 2019-03-06 Richard Bunt <richard.bunt@arm.com>
9669 Dirk Schubert <dirk.schubert@arm.com>
9670 Chris January <chris.january@arm.com>
9672 * eval.c (evaluate_subexp_standard): Call Fortran argument
9674 * f-lang.c (struct value): A value which can be passed into a
9675 Fortran function call.
9676 (fortran_argument_convert): Wrap Fortran arguments in a pointer
9678 (struct type): Value ready for a Fortran function call.
9679 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
9681 * f-lang.h (fortran_argument_convert): Declaration.
9682 (fortran_preserve_arg_pointer): Declaration.
9683 * infcall.c (value_arg_coerce): Call Fortran argument logic.
9685 2019-03-05 Tom Tromey <tromey@adacore.com>
9687 * python/py-prettyprint.c (print_string_repr): Remove #if.
9688 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
9690 2019-03-05 Tom Tromey <tromey@adacore.com>
9692 * target.c (the_dummy_target): Move later. Change type to
9694 (initialize_targets): Don't initialize the_dummy_target.
9696 2019-03-05 Tom Tromey <tromey@adacore.com>
9698 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
9699 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
9701 2019-03-05 Tom Tromey <tromey@adacore.com>
9703 * windows-nat.c (windows_nat_target::attach)
9704 (windows_nat_target::detach): Don't call gdb_flush.
9705 * valprint.c (generic_val_print, val_print, val_print_string):
9706 Don't call gdb_flush.
9707 * utils.c (defaulted_query): Don't call gdb_flush.
9708 * typeprint.c (print_type_scalar): Don't call gdb_flush.
9709 * target.c (target_announce_detach): Don't call gdb_flush.
9710 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
9711 * remote.c (extended_remote_target::attach): Don't call
9713 * procfs.c (procfs_target::detach): Don't call gdb_flush.
9714 * printcmd.c (do_examine): Don't call gdb_flush.
9715 (info_display_command): Don't call gdb_flush.
9716 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
9717 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
9718 * memattr.c (info_mem_command): Don't call gdb_flush.
9719 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
9720 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
9721 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
9722 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
9723 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
9724 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
9725 (gnu_nat_target::detach): Don't call gdb_flush.
9726 * f-valprint.c (f_val_print): Don't call gdb_flush.
9727 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
9728 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
9729 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
9731 * c-valprint.c (c_val_print): Don't call gdb_flush.
9732 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
9734 2019-03-05 Tom Tromey <tromey@adacore.com>
9736 * varobj.c (update_dynamic_varobj_children): Update.
9737 (install_default_visualizer): Use reset, not release.
9738 * value.c (set_internalvar): Update.
9739 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
9740 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
9741 ATTRIBUTE_UNUSED_RESULT.
9743 2019-03-05 Tom Tromey <tromey@adacore.com>
9745 * remote.c (class scoped_remote_fd) <release>: Add
9746 ATTRIBUTE_UNUSED_RESULT.
9748 2019-03-05 Tom Tromey <tromey@adacore.com>
9750 * macroexp.c (struct macro_buffer) <release>: Add
9751 ATTRIBUTE_UNUSED_RESULT.
9753 2019-03-05 Tom Tromey <tromey@adacore.com>
9755 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
9756 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
9757 ATTRIBUTE_UNUSED_RESULT.
9759 2019-03-05 Tom Tromey <tromey@adacore.com>
9761 * common/scoped_fd.h (class scoped_fd) <release>: Add
9762 ATTRIBUTE_UNUSED_RESULT.
9764 2019-03-05 Tom Tromey <tromey@adacore.com>
9766 * parser-defs.h (struct parser_state) <release>: Add
9767 ATTRIBUTE_UNUSED_RESULT.
9769 2019-03-05 Tom Tromey <tromey@adacore.com>
9771 * utils.h (class gdb_argv) <release>: Add
9772 ATTRIBUTE_UNUSED_RESULT.
9773 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
9775 2019-03-02 Eli Zaretskii <eliz@gnu.org>
9777 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
9778 for-loop range, to avoid compiler warnings.
9780 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
9781 avoid compiler warnings about unused variables.
9783 * NEWS: Mention end of support for native debugging on MS-Windows
9787 * common/netstuff.c:
9788 * gdbserver/gdbreplay.c
9789 * gdbserver/remote-utils.c:
9791 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
9792 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
9793 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
9794 'getaddrinfo' and 'freeaddrinfo' were not available before
9795 Windows XP, and mingw.org's MinGW headers by default define
9796 _WIN32_WINNT to 0x500.
9798 2019-03-01 Gary Benson <gbenson@redhat.com>
9800 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
9802 2019-02-28 Brian Vandenberg <phantall@gmail.com>
9803 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9806 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
9807 set_sigint_trap, clear_sigint_trap.
9809 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9811 * target.c (target_detach): Clear the regcache and the
9814 2019-02-27 Pedro Alves <palves@redhat.com>
9816 * utils.c (set_screen_size): When we cap the height/width sizes,
9817 tweak the corresponding command variable to show "unlimited":
9819 2019-02-27 Saagar Jha <saagar@saagarjha.com>
9820 Pedro Alves <palves@redhat.com>
9822 * utils.c (set_screen_size): Reduce "infinite" rows and columns
9823 before calling rl_set_screen_size.
9825 2019-02-27 Tom Tromey <tromey@adacore.com>
9827 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
9829 * python/py-value.c: Remove Python 2.4 workaround.
9830 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
9832 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
9833 Python 2.4 workaround.
9834 * python/python-internal.h: Remove Python 2.4 comment.
9835 (Py_ssize_t): Don't define.
9836 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
9837 (gdb_Py_DECREF): Remove Python 2.4 workaround.
9838 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
9839 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
9840 * python/python.c (do_start_initialization): Remove Python 2.4
9842 * python/py-prettyprint.c (class dummy_python_frame): Remove.
9843 (print_children): Remove Python 2.4 workaround.
9844 * python/py-inferior.c (buffer_procs): Remove Python 2.4
9846 (CHARBUFFERPROC_NAME): Remove.
9847 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
9848 Python 2.4 workaround.
9850 2019-02-27 Kevin Buettner <kevinb@redhat.com>
9852 * NEWS: Note minimum Python version.
9854 2019-02-27 Kevin Buettner <kevinb@redhat.com>
9856 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
9857 code from these functions. Remove corresponding ifdefs. Use
9858 Py_buffer_up instead of explicit calls to PyBuffer_Release.
9859 Remove gotos and target of gotos.
9860 (infpy_search_memory): Likewise.
9862 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9864 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
9865 (hppa_gdbarch_init): Don't register deleted functions with
9868 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9870 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
9871 (h8300_unwind_sp): Delete.
9872 (h8300_dummy_id): Delete.
9873 (h8300_gdbarch_init): Don't register deleted functions with
9876 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9878 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
9879 (ft32_unwind_pc): Delete.
9880 (ft32_unwind_sp): Delete.
9881 (ft32_gdbarch_init): Don't register deleted functions with
9884 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9886 * gdb/frv-tdep.c (frv_dummy_id): Delete.
9887 (frv_unwind_pc): Delete.
9888 (frv_unwind_sp): Delete.
9889 (frv_gdbarch_init): Don't register deleted functions with
9892 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9894 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
9895 (riscv_unwind_pc): Delete.
9896 (riscv_unwind_sp): Delete.
9897 (riscv_gdbarch_init): Don't register deleted functions with
9900 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9902 * gdb/csky-tdep.c (csky_dummy_id): Delete.
9903 (csky_unwind_pc): Delete.
9904 (csky_unwind_sp): Delete.
9905 (csky_gdbarch_init): Don't register deleted functions with
9908 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9910 * gdb/cris-tdep.c (cris_dummy_id): Delete.
9911 (cris_unwind_pc): Delete.
9912 (cris_unwind_sp): Delete.
9913 (cris_gdbarch_init): Don't register deleted functions with
9916 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9918 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
9919 (bfin_unwind_pc): Delete.
9920 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
9922 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9924 * gdb/arm-tdep.c (arm_dummy_id): Delete.
9925 (arm_unwind_pc): Delete.
9926 (arm_unwind_sp): Delete.
9927 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
9929 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9931 * gdb/arc-tdep.c (arc_dummy_id): Delete.
9932 (arc_unwind_pc): Delete.
9933 (arc_unwind_sp): Delete.
9934 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
9936 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9938 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
9939 (alpha_unwind_pc): Delete.
9940 (alpha_gdbarch_init): Don't register deleted functions with
9943 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9945 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
9946 (aarch64_unwind_pc): Delete.
9947 (aarch64_unwind_sp): Delete.
9948 (aarch64_gdbarch_init): Don't register deleted functions with
9951 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9953 * gdbtypes.c (type_align): Don't consider static members when
9954 computing structure alignment.
9956 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9958 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
9959 return 0 for other types.
9960 * arch-utils.c (default_type_align): Always return 0.
9961 * gdbarch.h: Regenerate.
9962 * gdbarch.sh (type_align): Extend comment.
9963 * gdbtypes.c (type_align): Add additional comments, always call
9964 gdbarch_type_align before applying the default rules.
9965 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
9966 generic code will then apply a suitable default.
9967 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
9968 types, return 0 for other types.
9970 2019-02-27 Joel Brobecker <brobecker@adacore.com>
9972 * NEWS: Create a new section for the next release branch.
9973 Rename the section of the current branch, now that it has
9976 2019-02-27 Joel Brobecker <brobecker@adacore.com>
9978 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
9979 * version.in: Bump version to 8.3.50.DATE-git.
9981 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
9983 * aix-thread.c (ptid_cmp): Remove unused variable.
9984 (get_signaled_thread): Likewise.
9985 (store_regs_user_thread): Likewise.
9986 (store_regs_kernel_thread): Likewise.
9987 (fetch_regs_kernel_thread): Remove shadowed variable.
9989 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
9991 * features/riscv/32bit-cpu.xml: Add register numbers.
9992 * features/riscv/32bit-fpu.c: Regenerate.
9993 * features/riscv/32bit-fpu.xml: Add register numbers.
9994 * features/riscv/64bit-cpu.xml: Add register numbers.
9995 * features/riscv/64bit-fpu.c: Regenerate.
9996 * features/riscv/64bit-fpu.xml: Add register numbers.
9998 2019-02-26 Kevin Buettner <kevinb@redhat.com>
10000 * NEWS: Mention two argument form of gdb.Value constructor.
10001 * python/py-value.c (convert_buffer_and_type_to_value): New
10003 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
10004 Add support for handling an optional second argument. Call
10005 convert_buffer_and_type_to_value as appropriate.
10006 * python/python-internal.h (Py_buffer_deleter): New struct.
10007 (Py_buffer_up): New typedef.
10009 2019-02-25 John Baldwin <jhb@FreeBSD.org>
10011 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
10012 instead of releasing ownership.
10014 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
10016 * dwarf2read.c (open_and_init_dwp_file): Call
10017 elf_numsections instead of bfd_count_sections to initialize
10018 dwp_file->num_sections.
10020 2019-02-25 Tom Tromey <tromey@adacore.com>
10022 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
10024 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
10026 * gcore.in: Add '--readnever' option when invoking GDB.
10028 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10030 * MAINTAINERS: Update my email address.
10032 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10034 * build-id.c (build_id_to_debug_bfd_1): New function.
10035 (build_id_to_debug_bfd): Look for separate debug file in
10038 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
10040 * gdbarch.sh: Update the copyright year range that is placed into
10043 2019-02-22 Keith Seitz <keiths@redhat.com>
10046 * linespec.c (create_sals_line_offset): Search for the default
10047 symtab's filename instead of its fullname.
10049 2019-02-21 Alan Hayward <alan.hayward@arm.com>
10051 * NEWS: Update style defaults.
10053 2019-02-21 Alan Hayward <alan.hayward@arm.com>
10055 * main.c (captured_main_1): Disable styling in batch mode.
10057 2019-02-20 Tom Tromey <tom@tromey.com>
10059 * symtab.c (symtab_symbol_info): Fix typos.
10061 2019-02-20 Tom Tromey <tromey@adacore.com>
10063 * findcmd.c (_initialize_mem_search): Use upper case for
10064 metasyntactic variables.
10066 2019-02-20 Alan Hayward <alan.hayward@arm.com>
10068 * aarch64-tdep.c (aarch64_add_reggroups): New function.
10069 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
10071 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
10073 * top.h (source_file_name): Change to std::string.
10074 * top.c (source_file_name): Likewise.
10075 (command_line_input): Adjust.
10076 * cli/cli-script.c (script_from_file): Adjust.
10078 2019-02-19 Tom Tromey <tromey@adacore.com>
10080 * ravenscar-thread.c
10081 (ravenscar_thread_target::update_thread_list): Don't call
10082 ada_build_task_list.
10083 * ada-lang.h (ada_build_task_list): Don't declare.
10084 * ada-tasks.c (struct ada_tasks_inferior_data)
10085 <task_list_valid_p>: Now bool.
10086 (read_known_tasks, ada_task_list_changed)
10087 (ada_tasks_invalidate_inferior_data): Update.
10088 (read_known_tasks_array): Return bool.
10089 (read_known_tasks_list): Likewise.
10090 (read_known_tasks): Return void.
10091 (ada_build_task_list): Now static.
10093 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
10095 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
10096 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
10098 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10100 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
10101 variant for ada_tasks_pspace_data_handle and
10102 ada_tasks_inferior_data_handle.
10103 (ada_tasks_pspace_data_cleanup): New function.
10104 (ada_tasks_inferior_data_cleanup): New function.
10106 2019-02-17 Tom Tromey <tom@tromey.com>
10108 * macrotab.h (macro_source_fullname): Return a std::string.
10109 * macrotab.c (macro_include, check_for_redefinition)
10110 (macro_undef, macro_lookup_definition, foreach_macro)
10111 (foreach_macro_in_scope): Update.
10112 (macro_source_fullname): Return a std::string.
10113 * macrocmd.c (show_pp_source_pos): Update.
10115 2019-02-17 Tom Tromey <tom@tromey.com>
10117 * macrocmd.c (show_pp_source_pos): Style the file names.
10119 2019-02-17 Tom Tromey <tom@tromey.com>
10122 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
10124 2019-02-17 Tom Tromey <tom@tromey.com>
10126 * ada-lang.c (user_select_syms): Use filtered printing.
10127 * utils.c (wrap_style): New global.
10128 (desired_style): Remove.
10129 (emit_style_escape): Add stream parameter.
10130 (set_output_style, reset_terminal_style, prompt_for_continue):
10132 (flush_wrap_buffer): Only flush gdb_stdout.
10133 (wrap_here): Set wrap_style.
10134 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
10135 treat escape sequences as a character. Change when wrap buffer is
10137 (fputs_styled): Do not set the output style when the default is
10139 * ui-style.h (struct ui_file_style) <is_default>: New method.
10140 * source.c (print_source_lines_base): Emit escape sequences in one
10143 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10145 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
10146 integers and enumeration types.
10148 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10150 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
10151 instead of lookup_symbol_in_language
10152 (do_exact_match): New function.
10153 (ada_get_symbol_name_matcher): Return do_exact_match when
10154 doing a verbatim match.
10156 2019-02-15 Tom Tromey <tromey@adacore.com>
10158 * ravenscar-thread.c (ravenscar_thread_target::resume)
10159 (ravenscar_thread_target::wait): Special case wildcard requests.
10161 2019-02-15 Tom Tromey <tromey@adacore.com>
10163 * ravenscar-thread.c (base_ptid): Remove.
10164 (struct ravenscar_thread_target) <close>: New method.
10165 <m_base_ptid>: New member.
10166 <update_inferior_ptid, active_task, task_is_currently_active,
10167 runtime_initialized>: Declare methods.
10168 <ravenscar_thread_target>: Add constructor.
10169 (ravenscar_thread_target::task_is_currently_active)
10170 (ravenscar_thread_target::update_inferior_ptid)
10171 (ravenscar_runtime_initialized): Rename. Now methods.
10172 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
10173 (ravenscar_thread_target::update_thread_list): Update.
10174 (ravenscar_thread_target::active_task): Now method.
10175 (ravenscar_thread_target::store_registers)
10176 (ravenscar_thread_target::prepare_to_store)
10177 (ravenscar_thread_target::prepare_to_store)
10178 (ravenscar_thread_target::mourn_inferior): Update.
10179 (ravenscar_inferior_created): Use "new" to create target.
10180 (ravenscar_thread_target::get_ada_task_ptid): Update.
10181 (_initialize_ravenscar): Don't initialize base_ptid.
10182 (ravenscar_ops): Remove global.
10184 2019-02-15 Tom Tromey <tromey@adacore.com>
10186 * target.h (push_target): Declare new overload.
10187 * target.c (push_target): New overload, taking an rvalue reference.
10188 * remote.c (remote_target::open_1): Use push_target overload.
10189 * corelow.c (core_target_open): Use push_target overload.
10191 2019-02-15 Tom Tromey <tromey@adacore.com>
10193 * ravenscar-thread.c (is_ravenscar_task)
10194 (ravenscar_task_is_currently_active): Return bool.
10195 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10196 (_initialize_ravenscar): Remove "(void)".
10197 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10200 2019-02-15 Tom Tromey <tromey@adacore.com>
10202 * ravenscar-thread.c (ravenscar_runtime_initializer)
10203 (has_ravenscar_runtime, get_running_thread_id)
10204 (ravenscar_thread_target::resume): Fix indentation.
10206 2019-02-15 Tom Tromey <tromey@adacore.com>
10208 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10209 from ravenscar_arch_ops.
10210 (sparc_ravenscar_ops::fetch_registers)
10211 (sparc_ravenscar_ops::store_registers): Now methods.
10212 (sparc_ravenscar_prepare_to_store): Remove.
10213 (sparc_ravenscar_ops): Redefine.
10214 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10215 methods and destructor. Remove members.
10216 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10217 (ravenscar_thread_target::store_registers)
10218 (ravenscar_thread_target::prepare_to_store): Update.
10219 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10221 (struct ppc_ravenscar_powerpc_ops): Derive from
10222 ravenscar_arch_ops.
10223 (ppc_ravenscar_powerpc_ops::fetch_registers)
10224 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10225 (ppc_ravenscar_powerpc_ops): Redefine.
10226 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10227 (ppc_ravenscar_e500_ops::fetch_registers)
10228 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10229 (ppc_ravenscar_e500_ops): Redefine.
10230 * aarch64-ravenscar-thread.c
10231 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10232 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10233 (aarch64_ravenscar_fetch_registers)
10234 (aarch64_ravenscar_store_registers): Now methods.
10235 (aarch64_ravenscar_ops): Redefine.
10237 2019-02-15 Tom Tromey <tromey@adacore.com>
10239 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10240 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10241 (ravenscar_thread_target::stopped_by_watchpoint)
10242 (ravenscar_thread_target::stopped_data_address)
10243 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10245 2019-02-15 Tom Tromey <tromey@adacore.com>
10247 * ravenscar-thread.c: Fix some typos.
10249 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10250 Tom Tromey <tromey@adacore.com>
10252 * ada-lang.c (ada_exception_sal): Change addr_string to a
10254 (create_ada_exception_catchpoint): Update.
10256 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10257 Tom Tromey <tromey@adacore.com>
10259 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10260 (bp_location_ops): Remove.
10261 (base_breakpoint_allocate_location): Update.
10262 (free_bp_location): Update.
10263 * ada-lang.c (class ada_catchpoint_location)
10264 <ada_catchpoint_location>: Remove ops parameter.
10265 (ada_catchpoint_location_dtor): Remove.
10266 (ada_catchpoint_location_ops): Remove.
10267 (allocate_location_exception): Update.
10268 * breakpoint.h (struct bp_location_ops): Remove.
10269 (class bp_location) <bp_location>: Remove bp_location_ops
10271 <~bp_location>: Add destructor.
10274 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10275 Pedro Alves <palves@redhat.com>
10277 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10280 2019-02-14 David Michael <fedora.dm0@gmail.com>
10281 Samuel Thibault <samuel.thibault@gnu.org>
10282 Thomas Schwinge <thomas@codesourcery.com>
10284 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10285 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10287 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10289 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10290 (check_empty): Use "const char *".
10292 * gnu-nat.c (gnu_nat_target::detach): Instead of
10293 'detach_inferior (pid)' call
10294 'detach_inferior (find_inferior_pid (pid))'.
10296 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10297 'nat/fork-inferior.o'.
10298 * gnu-nat.c: #include "nat/fork-inferior.h".
10300 * gnu-nat.c (gnu_nat_target::detach): Instead of
10301 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10302 * gnu-nat.h: #include "inf-child.h".
10303 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10304 'i386_gnu_nat_target::fetch_registers'.
10305 (gnu_store_registers): Rename/move to
10306 'i386_gnu_nat_target::store_registers'.
10308 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10309 * gnu-nat.h (mach_thread_info): New function.
10310 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10312 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10314 2019-02-14 Frederic Konrad <konrad@adacore.com>
10316 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
10318 2019-02-14 Joel Brobecker <brobecker@adacore.com>
10320 * windows-nat.c (windows_add_thread): Add new parameter
10321 "main_thread_p" with default value set to false. Update
10322 function documentation as well as all callers.
10323 (windows_delete_thread): Likewise.
10324 (fake_create_process): Update call to windows_add_thread.
10325 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
10326 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
10327 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
10328 call to windows_delete_thread.
10330 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
10332 * MAINTAINERS: Add Andrew Burgess as global maintainer.
10334 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10336 * symfile.c (find_separate_debug_file): Use canonical path of
10337 sysroot with child_path instead of gdb_sysroot if it is valid.
10339 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10341 * symfile.c (find_separate_debug_file): Use child_path to
10342 determine if an object file is under a sysroot.
10344 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10346 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10347 unittests/child-path-selftests.c.
10348 * common/pathstuff.c (child_path): New function.
10349 * common/pathstuff.h (child_path): New prototype.
10350 * unittests/child-path-selftests.c: New file.
10352 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10354 * symfile.c (find_separate_debug_file): Look for separate debug
10355 files in debug directories under the sysroot.
10357 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10359 * symtab.h (struct minimal_symbol data_p): New const method.
10360 (struct minimal_symbol text_p): Likewise.
10361 * symtab.c (output_source_filename): Use file name style
10362 to print file name.
10363 (print_symbol_info): Likewise.
10364 (print_msymbol_info): Use address style to print addresses.
10365 Use function name style to print executable text symbols.
10366 (expand_symtab_containing_pc): Use data_p.
10367 (find_pc_sect_compunit_symtab): Likewise.
10369 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10371 * breakpoint.c (describe_other_breakpoints): Use address style
10372 to print addresses.
10373 (say_where): Likewise.
10375 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10377 * ada-typeprint.c (print_func_type): Print function name
10378 style to print function name.
10379 * c-typeprint.c (c_print_type_1): Likewise.
10381 2019-02-11 Alan Hayward <alan.hayward@arm.com>
10383 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
10386 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10388 * c-exp.y (direct_abs_decl): Use emplace_back to record the
10391 2019-02-10 Joel Brobecker <brobecker@adacore.com>
10393 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
10394 TYPE_CODE_REF types.
10396 2019-02-08 Jim Wilson <jimw@sifive.com>
10398 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
10399 (riscv_linux_fregset): New.
10400 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
10402 2019-02-07 Tom Tromey <tom@tromey.com>
10404 * thread.c (thread_cancel_execution_command): Update.
10405 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
10407 (struct thread_fsm_ops): Remove.
10408 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
10409 (thread_fsm_should_stop, thread_fsm_return_value)
10410 (thread_fsm_set_finished, thread_fsm_finished_p)
10411 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
10413 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
10414 * infrun.c (clear_proceed_status_thread)
10415 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
10416 (print_stop_event): Update.
10417 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
10419 (step_command_fsm_ops): Remove.
10420 (new_step_command_fsm): Remove.
10422 (step_command_fsm::should_stop): Rename from
10423 step_command_fsm_should_stop.
10424 (step_command_fsm::clean_up): Rename from
10425 step_command_fsm_clean_up.
10426 (step_command_fsm::do_async_reply_reason): Rename from
10427 step_command_fsm_async_reply_reason.
10428 (struct until_next_fsm): Inherit from thread_fsm. Add
10430 (until_next_fsm_ops): Remove.
10431 (new_until_next_fsm): Remove.
10432 (until_next_fsm::should_stop): Rename from
10433 until_next_fsm_should_stop.
10434 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
10435 (until_next_fsm::do_async_reply_reason): Rename from
10436 until_next_fsm_async_reply_reason.
10437 (struct finish_command_fsm): Inherit from thread_fsm. Add
10438 constructor. Change type of breakpoint.
10439 (finish_command_fsm_ops): Remove.
10440 (new_finish_command_fsm): Remove.
10441 (finish_command_fsm::should_stop): Rename from
10442 finish_command_fsm_should_stop.
10443 (finish_command_fsm::clean_up): Rename from
10444 finish_command_fsm_clean_up.
10445 (finish_command_fsm::return_value): Rename from
10446 finish_command_fsm_return_value.
10447 (finish_command_fsm::do_async_reply_reason): Rename from
10448 finish_command_fsm_async_reply_reason.
10449 (finish_command): Update.
10450 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
10452 (call_thread_fsm_ops): Remove.
10453 (call_thread_fsm::call_thread_fsm): Rename from
10454 new_call_thread_fsm.
10455 (call_thread_fsm::should_stop): Rename from
10456 call_thread_fsm_should_stop.
10457 (call_thread_fsm::should_notify_stop): Rename from
10458 call_thread_fsm_should_notify_stop.
10459 (run_inferior_call, call_function_by_hand_dummy): Update.
10460 * cli/cli-interp.c (should_print_stop_to_console): Update.
10461 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
10462 Add constructor. Change type of location_breakpoint,
10464 (until_break_fsm_ops): Remove.
10465 (new_until_break_fsm): Remove.
10466 (until_break_fsm::should_stop): Rename from
10467 until_break_fsm_should_stop.
10468 (until_break_fsm::clean_up): Rename from
10469 until_break_fsm_clean_up.
10470 (until_break_fsm::do_async_reply_reason): Rename from
10471 until_break_fsm_async_reply_reason.
10472 (until_break_command): Update.
10473 * thread-fsm.c: Remove.
10474 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
10476 2019-02-07 Tom Tromey <tom@tromey.com>
10478 * yy-remap.h: Add include guard.
10479 * xtensa-tdep.h: Add include guard.
10480 * xcoffread.h: Rename include guard.
10481 * varobj-iter.h: Add include guard.
10482 * tui/tui.h: Rename include guard.
10483 * tui/tui-winsource.h: Rename include guard.
10484 * tui/tui-wingeneral.h: Rename include guard.
10485 * tui/tui-windata.h: Rename include guard.
10486 * tui/tui-win.h: Rename include guard.
10487 * tui/tui-stack.h: Rename include guard.
10488 * tui/tui-source.h: Rename include guard.
10489 * tui/tui-regs.h: Rename include guard.
10490 * tui/tui-out.h: Rename include guard.
10491 * tui/tui-layout.h: Rename include guard.
10492 * tui/tui-io.h: Rename include guard.
10493 * tui/tui-hooks.h: Rename include guard.
10494 * tui/tui-file.h: Rename include guard.
10495 * tui/tui-disasm.h: Rename include guard.
10496 * tui/tui-data.h: Rename include guard.
10497 * tui/tui-command.h: Rename include guard.
10498 * tic6x-tdep.h: Add include guard.
10499 * target/waitstatus.h: Rename include guard.
10500 * target/wait.h: Rename include guard.
10501 * target/target.h: Rename include guard.
10502 * target/resume.h: Rename include guard.
10503 * target-float.h: Rename include guard.
10504 * stabsread.h: Add include guard.
10505 * rs6000-tdep.h: Add include guard.
10506 * riscv-fbsd-tdep.h: Add include guard.
10507 * regformats/regdef.h: Rename include guard.
10508 * record.h: Rename include guard.
10509 * python/python.h: Rename include guard.
10510 * python/python-internal.h: Rename include guard.
10511 * python/py-stopevent.h: Rename include guard.
10512 * python/py-ref.h: Rename include guard.
10513 * python/py-record.h: Rename include guard.
10514 * python/py-record-full.h: Rename include guard.
10515 * python/py-record-btrace.h: Rename include guard.
10516 * python/py-instruction.h: Rename include guard.
10517 * python/py-events.h: Rename include guard.
10518 * python/py-event.h: Rename include guard.
10519 * procfs.h: Add include guard.
10520 * proc-utils.h: Add include guard.
10521 * p-lang.h: Add include guard.
10522 * or1k-tdep.h: Rename include guard.
10523 * observable.h: Rename include guard.
10524 * nto-tdep.h: Rename include guard.
10525 * nat/x86-linux.h: Rename include guard.
10526 * nat/x86-linux-dregs.h: Rename include guard.
10527 * nat/x86-gcc-cpuid.h: Add include guard.
10528 * nat/x86-dregs.h: Rename include guard.
10529 * nat/x86-cpuid.h: Rename include guard.
10530 * nat/ppc-linux.h: Rename include guard.
10531 * nat/mips-linux-watch.h: Rename include guard.
10532 * nat/linux-waitpid.h: Rename include guard.
10533 * nat/linux-ptrace.h: Rename include guard.
10534 * nat/linux-procfs.h: Rename include guard.
10535 * nat/linux-osdata.h: Rename include guard.
10536 * nat/linux-nat.h: Rename include guard.
10537 * nat/linux-namespaces.h: Rename include guard.
10538 * nat/linux-btrace.h: Rename include guard.
10539 * nat/glibc_thread_db.h: Rename include guard.
10540 * nat/gdb_thread_db.h: Rename include guard.
10541 * nat/gdb_ptrace.h: Rename include guard.
10542 * nat/fork-inferior.h: Rename include guard.
10543 * nat/amd64-linux-siginfo.h: Rename include guard.
10544 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
10545 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
10546 * nat/aarch64-linux.h: Rename include guard.
10547 * nat/aarch64-linux-hw-point.h: Rename include guard.
10548 * mn10300-tdep.h: Add include guard.
10549 * mips-linux-tdep.h: Add include guard.
10550 * mi/mi-parse.h: Rename include guard.
10551 * mi/mi-out.h: Rename include guard.
10552 * mi/mi-main.h: Rename include guard.
10553 * mi/mi-interp.h: Rename include guard.
10554 * mi/mi-getopt.h: Rename include guard.
10555 * mi/mi-console.h: Rename include guard.
10556 * mi/mi-common.h: Rename include guard.
10557 * mi/mi-cmds.h: Rename include guard.
10558 * mi/mi-cmd-break.h: Rename include guard.
10559 * m2-lang.h: Add include guard.
10560 * location.h: Rename include guard.
10561 * linux-record.h: Rename include guard.
10562 * linux-nat.h: Add include guard.
10563 * linux-fork.h: Add include guard.
10564 * i386-darwin-tdep.h: Rename include guard.
10565 * hppa-linux-offsets.h: Add include guard.
10566 * guile/guile.h: Rename include guard.
10567 * guile/guile-internal.h: Rename include guard.
10568 * gnu-nat.h: Rename include guard.
10569 * gdb-stabs.h: Rename include guard.
10570 * frv-tdep.h: Add include guard.
10571 * f-lang.h: Add include guard.
10572 * event-loop.h: Add include guard.
10573 * darwin-nat.h: Rename include guard.
10574 * cp-abi.h: Rename include guard.
10575 * config/sparc/nm-sol2.h: Rename include guard.
10576 * config/nm-nto.h: Rename include guard.
10577 * config/nm-linux.h: Add include guard.
10578 * config/i386/nm-i386gnu.h: Rename include guard.
10579 * config/djgpp/nl_types.h: Rename include guard.
10580 * config/djgpp/langinfo.h: Rename include guard.
10581 * compile/gcc-cp-plugin.h: Add include guard.
10582 * compile/gcc-c-plugin.h: Add include guard.
10583 * compile/compile.h: Rename include guard.
10584 * compile/compile-object-run.h: Rename include guard.
10585 * compile/compile-object-load.h: Rename include guard.
10586 * compile/compile-internal.h: Rename include guard.
10587 * compile/compile-cplus.h: Rename include guard.
10588 * compile/compile-c.h: Rename include guard.
10589 * common/xml-utils.h: Rename include guard.
10590 * common/x86-xstate.h: Rename include guard.
10591 * common/version.h: Rename include guard.
10592 * common/vec.h: Rename include guard.
10593 * common/tdesc.h: Rename include guard.
10594 * common/selftest.h: Rename include guard.
10595 * common/scoped_restore.h: Rename include guard.
10596 * common/scoped_mmap.h: Rename include guard.
10597 * common/scoped_fd.h: Rename include guard.
10598 * common/safe-iterator.h: Rename include guard.
10599 * common/run-time-clock.h: Rename include guard.
10600 * common/refcounted-object.h: Rename include guard.
10601 * common/queue.h: Rename include guard.
10602 * common/ptid.h: Rename include guard.
10603 * common/print-utils.h: Rename include guard.
10604 * common/preprocessor.h: Rename include guard.
10605 * common/pathstuff.h: Rename include guard.
10606 * common/observable.h: Rename include guard.
10607 * common/netstuff.h: Rename include guard.
10608 * common/job-control.h: Rename include guard.
10609 * common/host-defs.h: Rename include guard.
10610 * common/gdb_wait.h: Rename include guard.
10611 * common/gdb_vecs.h: Rename include guard.
10612 * common/gdb_unlinker.h: Rename include guard.
10613 * common/gdb_unique_ptr.h: Rename include guard.
10614 * common/gdb_tilde_expand.h: Rename include guard.
10615 * common/gdb_sys_time.h: Rename include guard.
10616 * common/gdb_string_view.h: Rename include guard.
10617 * common/gdb_splay_tree.h: Rename include guard.
10618 * common/gdb_setjmp.h: Rename include guard.
10619 * common/gdb_ref_ptr.h: Rename include guard.
10620 * common/gdb_optional.h: Rename include guard.
10621 * common/gdb_locale.h: Rename include guard.
10622 * common/gdb_assert.h: Rename include guard.
10623 * common/filtered-iterator.h: Rename include guard.
10624 * common/filestuff.h: Rename include guard.
10625 * common/fileio.h: Rename include guard.
10626 * common/environ.h: Rename include guard.
10627 * common/common-utils.h: Rename include guard.
10628 * common/common-types.h: Rename include guard.
10629 * common/common-regcache.h: Rename include guard.
10630 * common/common-inferior.h: Rename include guard.
10631 * common/common-gdbthread.h: Rename include guard.
10632 * common/common-exceptions.h: Rename include guard.
10633 * common/common-defs.h: Rename include guard.
10634 * common/common-debug.h: Rename include guard.
10635 * common/cleanups.h: Rename include guard.
10636 * common/buffer.h: Rename include guard.
10637 * common/btrace-common.h: Rename include guard.
10638 * common/break-common.h: Rename include guard.
10639 * cli/cli-utils.h: Rename include guard.
10640 * cli/cli-style.h: Rename include guard.
10641 * cli/cli-setshow.h: Rename include guard.
10642 * cli/cli-script.h: Rename include guard.
10643 * cli/cli-interp.h: Rename include guard.
10644 * cli/cli-decode.h: Rename include guard.
10645 * cli/cli-cmds.h: Rename include guard.
10646 * charset-list.h: Add include guard.
10647 * buildsym-legacy.h: Rename include guard.
10648 * bfin-tdep.h: Add include guard.
10649 * ax.h: Rename include guard.
10650 * arm-linux-tdep.h: Add include guard.
10651 * arm-fbsd-tdep.h: Add include guard.
10652 * arch/xtensa.h: Rename include guard.
10653 * arch/tic6x.h: Add include guard.
10654 * arch/i386.h: Add include guard.
10655 * arch/arm.h: Rename include guard.
10656 * arch/arm-linux.h: Rename include guard.
10657 * arch/arm-get-next-pcs.h: Rename include guard.
10658 * arch/amd64.h: Add include guard.
10659 * arch/aarch64-insn.h: Rename include guard.
10660 * arch-utils.h: Rename include guard.
10661 * annotate.h: Add include guard.
10662 * amd64-darwin-tdep.h: Rename include guard.
10663 * aarch64-linux-tdep.h: Add include guard.
10664 * aarch64-fbsd-tdep.h: Add include guard.
10665 * aarch32-linux-nat.h: Add include guard.
10667 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10669 * macrotab.c (macro_define_internal): New function that
10670 factorizes macro_define_object_internal and macro_define_function
10672 (macro_define_object_internal): Use macro_define_internal.
10673 (macro_define_function): Likewise.
10675 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10677 * macrocmd.c (extract_identifier): Return
10678 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
10681 2019-02-06 John Baldwin <jhb@FreeBSD.org>
10683 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
10685 2019-02-05 Tom Tromey <tom@tromey.com>
10687 * target.c (target_stack::unpush): Move assertion earlier.
10689 2019-01-30 Tom Tromey <tom@tromey.com>
10692 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
10693 (gdbpy_parse_and_eval): Likewise.
10694 * python/python-internal.h (gdbpy_allow_threads): New class.
10696 2019-01-28 John Baldwin <jhb@FreeBSD.org>
10698 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
10699 (aarch64_fbsd_fpregmap): Move earlier.
10700 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
10701 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10702 instead of individual calls to trad_frame_set_reg_addr.
10703 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
10705 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
10706 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10707 instead of individual calls to trad_frame_set_reg_addr.
10709 2019-01-28 Alan Hayward <alan.hayward@arm.com>
10711 * CONTRIBUTE: Replace contribution list with wiki link.
10713 2019-01-25 Tom Tromey <tom@tromey.com>
10715 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
10717 2019-01-25 Tom Tromey <tom@tromey.com>
10719 * xtensa-linux-nat.c: Fix common/ includes.
10720 * xml-support.h: Fix common/ includes.
10721 * xml-support.c: Fix common/ includes.
10722 * x86-linux-nat.c: Fix common/ includes.
10723 * windows-nat.c: Fix common/ includes.
10724 * varobj.h: Fix common/ includes.
10725 * varobj.c: Fix common/ includes.
10726 * value.c: Fix common/ includes.
10727 * valops.c: Fix common/ includes.
10728 * utils.c: Fix common/ includes.
10729 * unittests/xml-utils-selftests.c: Fix common/ includes.
10730 * unittests/utils-selftests.c: Fix common/ includes.
10731 * unittests/unpack-selftests.c: Fix common/ includes.
10732 * unittests/tracepoint-selftests.c: Fix common/ includes.
10733 * unittests/style-selftests.c: Fix common/ includes.
10734 * unittests/string_view-selftests.c: Fix common/ includes.
10735 * unittests/scoped_restore-selftests.c: Fix common/ includes.
10736 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
10737 * unittests/scoped_fd-selftests.c: Fix common/ includes.
10738 * unittests/rsp-low-selftests.c: Fix common/ includes.
10739 * unittests/parse-connection-spec-selftests.c: Fix common/
10741 * unittests/optional-selftests.c: Fix common/ includes.
10742 * unittests/offset-type-selftests.c: Fix common/ includes.
10743 * unittests/observable-selftests.c: Fix common/ includes.
10744 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
10745 * unittests/memrange-selftests.c: Fix common/ includes.
10746 * unittests/memory-map-selftests.c: Fix common/ includes.
10747 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
10748 * unittests/function-view-selftests.c: Fix common/ includes.
10749 * unittests/environ-selftests.c: Fix common/ includes.
10750 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
10751 * unittests/common-utils-selftests.c: Fix common/ includes.
10752 * unittests/cli-utils-selftests.c: Fix common/ includes.
10753 * unittests/array-view-selftests.c: Fix common/ includes.
10754 * ui-file.c: Fix common/ includes.
10755 * tui/tui-io.c: Fix common/ includes.
10756 * tracepoint.h: Fix common/ includes.
10757 * tracepoint.c: Fix common/ includes.
10758 * tracefile-tfile.c: Fix common/ includes.
10759 * top.h: Fix common/ includes.
10760 * top.c: Fix common/ includes.
10761 * thread.c: Fix common/ includes.
10762 * target/waitstatus.h: Fix common/ includes.
10763 * target/waitstatus.c: Fix common/ includes.
10764 * target.h: Fix common/ includes.
10765 * target.c: Fix common/ includes.
10766 * target-memory.c: Fix common/ includes.
10767 * target-descriptions.c: Fix common/ includes.
10768 * symtab.h: Fix common/ includes.
10769 * symfile.c: Fix common/ includes.
10770 * stap-probe.c: Fix common/ includes.
10771 * spu-linux-nat.c: Fix common/ includes.
10772 * sparc-nat.c: Fix common/ includes.
10773 * source.c: Fix common/ includes.
10774 * solib.c: Fix common/ includes.
10775 * solib-target.c: Fix common/ includes.
10776 * ser-unix.c: Fix common/ includes.
10777 * ser-tcp.c: Fix common/ includes.
10778 * ser-pipe.c: Fix common/ includes.
10779 * ser-base.c: Fix common/ includes.
10780 * selftest-arch.c: Fix common/ includes.
10781 * s12z-tdep.c: Fix common/ includes.
10782 * rust-exp.y: Fix common/ includes.
10783 * rs6000-aix-tdep.c: Fix common/ includes.
10784 * riscv-tdep.c: Fix common/ includes.
10785 * remote.c: Fix common/ includes.
10786 * remote-notif.h: Fix common/ includes.
10787 * remote-fileio.h: Fix common/ includes.
10788 * remote-fileio.c: Fix common/ includes.
10789 * regcache.h: Fix common/ includes.
10790 * regcache.c: Fix common/ includes.
10791 * record-btrace.c: Fix common/ includes.
10792 * python/python.c: Fix common/ includes.
10793 * python/py-type.c: Fix common/ includes.
10794 * python/py-inferior.c: Fix common/ includes.
10795 * progspace.h: Fix common/ includes.
10796 * producer.c: Fix common/ includes.
10797 * procfs.c: Fix common/ includes.
10798 * proc-api.c: Fix common/ includes.
10799 * printcmd.c: Fix common/ includes.
10800 * ppc-linux-nat.c: Fix common/ includes.
10801 * parser-defs.h: Fix common/ includes.
10802 * osdata.c: Fix common/ includes.
10803 * obsd-nat.c: Fix common/ includes.
10804 * nat/x86-linux.c: Fix common/ includes.
10805 * nat/x86-linux-dregs.c: Fix common/ includes.
10806 * nat/x86-dregs.h: Fix common/ includes.
10807 * nat/x86-dregs.c: Fix common/ includes.
10808 * nat/ppc-linux.c: Fix common/ includes.
10809 * nat/mips-linux-watch.h: Fix common/ includes.
10810 * nat/mips-linux-watch.c: Fix common/ includes.
10811 * nat/linux-waitpid.c: Fix common/ includes.
10812 * nat/linux-ptrace.h: Fix common/ includes.
10813 * nat/linux-ptrace.c: Fix common/ includes.
10814 * nat/linux-procfs.c: Fix common/ includes.
10815 * nat/linux-personality.c: Fix common/ includes.
10816 * nat/linux-osdata.c: Fix common/ includes.
10817 * nat/linux-namespaces.c: Fix common/ includes.
10818 * nat/linux-btrace.h: Fix common/ includes.
10819 * nat/linux-btrace.c: Fix common/ includes.
10820 * nat/fork-inferior.c: Fix common/ includes.
10821 * nat/amd64-linux-siginfo.c: Fix common/ includes.
10822 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
10823 * nat/aarch64-linux.c: Fix common/ includes.
10824 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
10825 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
10826 * namespace.h: Fix common/ includes.
10827 * mips-linux-tdep.c: Fix common/ includes.
10828 * minsyms.c: Fix common/ includes.
10829 * mi/mi-parse.h: Fix common/ includes.
10830 * mi/mi-main.c: Fix common/ includes.
10831 * mi/mi-cmd-env.c: Fix common/ includes.
10832 * memrange.h: Fix common/ includes.
10833 * memattr.c: Fix common/ includes.
10834 * maint.h: Fix common/ includes.
10835 * maint.c: Fix common/ includes.
10836 * main.c: Fix common/ includes.
10837 * machoread.c: Fix common/ includes.
10838 * location.c: Fix common/ includes.
10839 * linux-thread-db.c: Fix common/ includes.
10840 * linux-nat.c: Fix common/ includes.
10841 * linux-fork.c: Fix common/ includes.
10842 * inline-frame.c: Fix common/ includes.
10843 * infrun.c: Fix common/ includes.
10844 * inflow.c: Fix common/ includes.
10845 * inferior.h: Fix common/ includes.
10846 * inferior.c: Fix common/ includes.
10847 * infcmd.c: Fix common/ includes.
10848 * inf-ptrace.c: Fix common/ includes.
10849 * inf-child.c: Fix common/ includes.
10850 * ia64-linux-nat.c: Fix common/ includes.
10851 * i387-tdep.c: Fix common/ includes.
10852 * i386-tdep.c: Fix common/ includes.
10853 * i386-linux-tdep.c: Fix common/ includes.
10854 * i386-linux-nat.c: Fix common/ includes.
10855 * i386-go32-tdep.c: Fix common/ includes.
10856 * i386-fbsd-tdep.c: Fix common/ includes.
10857 * i386-fbsd-nat.c: Fix common/ includes.
10858 * guile/scm-type.c: Fix common/ includes.
10859 * guile/guile.c: Fix common/ includes.
10860 * go32-nat.c: Fix common/ includes.
10861 * gnu-nat.c: Fix common/ includes.
10862 * gdbthread.h: Fix common/ includes.
10863 * gdbarch-selftests.c: Fix common/ includes.
10864 * gdb_usleep.c: Fix common/ includes.
10865 * gdb_select.h: Fix common/ includes.
10866 * gdb_bfd.c: Fix common/ includes.
10867 * gcore.c: Fix common/ includes.
10868 * fork-child.c: Fix common/ includes.
10869 * findvar.c: Fix common/ includes.
10870 * fbsd-nat.c: Fix common/ includes.
10871 * event-top.c: Fix common/ includes.
10872 * event-loop.c: Fix common/ includes.
10873 * dwarf2read.c: Fix common/ includes.
10874 * dwarf2loc.c: Fix common/ includes.
10875 * dwarf2-frame.c: Fix common/ includes.
10876 * dwarf-index-cache.c: Fix common/ includes.
10877 * dtrace-probe.c: Fix common/ includes.
10878 * disasm-selftests.c: Fix common/ includes.
10879 * defs.h: Fix common/ includes.
10880 * csky-tdep.c: Fix common/ includes.
10881 * cp-valprint.c: Fix common/ includes.
10882 * cp-support.h: Fix common/ includes.
10883 * cp-support.c: Fix common/ includes.
10884 * corelow.c: Fix common/ includes.
10885 * completer.h: Fix common/ includes.
10886 * completer.c: Fix common/ includes.
10887 * compile/compile.c: Fix common/ includes.
10888 * compile/compile-loc2c.c: Fix common/ includes.
10889 * compile/compile-cplus-types.c: Fix common/ includes.
10890 * compile/compile-cplus-symbols.c: Fix common/ includes.
10891 * command.h: Fix common/ includes.
10892 * cli/cli-dump.c: Fix common/ includes.
10893 * cli/cli-cmds.c: Fix common/ includes.
10894 * charset.c: Fix common/ includes.
10895 * build-id.c: Fix common/ includes.
10896 * btrace.h: Fix common/ includes.
10897 * btrace.c: Fix common/ includes.
10898 * breakpoint.h: Fix common/ includes.
10899 * breakpoint.c: Fix common/ includes.
10901 (enum agent_op): Fix common/ includes.
10902 * ax-general.c (struct aop_map): Fix common/ includes.
10903 * ax-gdb.c: Fix common/ includes.
10904 * auxv.c: Fix common/ includes.
10905 * auto-load.c: Fix common/ includes.
10906 * arm-tdep.c: Fix common/ includes.
10907 * arch/riscv.c: Fix common/ includes.
10908 * arch/ppc-linux-common.c: Fix common/ includes.
10909 * arch/i386.c: Fix common/ includes.
10910 * arch/arm.c: Fix common/ includes.
10911 * arch/arm-linux.c: Fix common/ includes.
10912 * arch/arm-get-next-pcs.c: Fix common/ includes.
10913 * arch/amd64.c: Fix common/ includes.
10914 * arch/aarch64.c: Fix common/ includes.
10915 * arch/aarch64-insn.c: Fix common/ includes.
10916 * arch-utils.c: Fix common/ includes.
10917 * amd64-windows-tdep.c: Fix common/ includes.
10918 * amd64-tdep.c: Fix common/ includes.
10919 * amd64-sol2-tdep.c: Fix common/ includes.
10920 * amd64-obsd-tdep.c: Fix common/ includes.
10921 * amd64-nbsd-tdep.c: Fix common/ includes.
10922 * amd64-linux-tdep.c: Fix common/ includes.
10923 * amd64-linux-nat.c: Fix common/ includes.
10924 * amd64-fbsd-tdep.c: Fix common/ includes.
10925 * amd64-fbsd-nat.c: Fix common/ includes.
10926 * amd64-dicos-tdep.c: Fix common/ includes.
10927 * amd64-darwin-tdep.c: Fix common/ includes.
10928 * agent.c: Fix common/ includes.
10929 * ada-lang.h: Fix common/ includes.
10930 * ada-lang.c: Fix common/ includes.
10931 * aarch64-tdep.c: Fix common/ includes.
10933 2019-01-25 Tom Tromey <tom@tromey.com>
10935 * common/create-version.sh: Use common/version.h.
10937 2019-01-24 Pedro Alves <palves@redhat.com>
10939 * infrun.c (signal_stop, signal_print, signal_program)
10940 (signal_catch, signal_pass): Now arrays instead of pointers.
10941 (update_signals_program_target, do_target_resume)
10942 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
10943 * linux-nat.c (linux_nat_target::pass_signals)
10944 (linux_nat_target::create_inferior, linux_nat_target::attach):
10946 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
10947 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
10948 * procfs.c (procfs_target::pass_signals): Adjust.
10949 * record-full.c (record_full_target::resume): Adjust.
10950 * remote.c (remote_target::pass_signals)
10951 (remote_target::program_signals): Adjust.
10952 * target-debug.h (target_debug_print_signals): Now takes a
10953 gdb::array_view as parameter. Adjust.
10954 * target.h (target_ops) <pass_signals, program_signals>: Replace
10955 pointer and length parameters with gdb::array_view.
10956 (target_pass_signals, target_program_signals): Likewise.
10957 * target-delegates.c: Regenerate.
10959 2019-01-24 Pedro Alves <palves@redhat.com>
10961 * common/forward-scope-exit.h
10962 (forward_scope_exit::forward_scope_exit): Pass arguments to
10963 m_bind_function directly, instead of creating a std::bind and
10966 2019-01-24 Alan Hayward <alan.hayward@arm.com>
10968 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10969 for static members.
10970 (pass_in_v_vfp_candidate): Likewise.
10972 2019-01-23 Tom Tromey <tom@tromey.com>
10973 Pedro Alves <palves@redhat.com>
10975 * regcache.c (class regcache_invalidator): Remove.
10976 (regcache::raw_write): Use make_scope_exit.
10978 2019-01-23 Tom Tromey <tom@tromey.com>
10980 * ui-out.h (class ui_out_emit_type): Update comment.
10982 2019-01-23 Tom Tromey <tom@tromey.com>
10984 * infrun.c (fetch_inferior_event): Update comment.
10986 2019-01-23 Tom Tromey <tom@tromey.com>
10987 Pedro Alves <palves@redhat.com>
10989 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
10991 (fetch_inferior_event): Use SCOPE_EXIT.
10994 2019-01-23 Tom Tromey <tom@tromey.com>
10995 Pedro Alves <palves@redhat.com>
10997 * infrun.c (disable_thread_events): Delete.
10998 (stop_all_threads): Use SCOPE_EXIT.
11000 2019-01-23 Tom Tromey <tom@tromey.com>
11001 Pedro Alves <palves@redhat.com>
11003 * symfile.c: Include forward-scope-exit.h.
11004 (clear_symtab_users_cleanup): Replace forward declaration with
11005 a FORWARD_SCOPE_EXIT.
11006 (syms_from_objfile_1): Use the forward_scope_exit and
11007 gdb::optional instead of cleanup_function.
11008 (reread_symbols): Use the forward_scope_exit instead of
11010 (clear_symtab_users_cleanup): Remove function.
11012 2019-01-23 Tom Tromey <tom@tromey.com>
11013 Pedro Alves <palves@redhat.com>
11015 * linux-nat.c: Include scope-exit.h.
11016 (cleanup_target_stop): Remove.
11017 (linux_nat_target::static_tracepoint_markers_by_strid): Use
11020 2019-01-23 Tom Tromey <tom@tromey.com>
11021 Pedro Alves <palves@redhat.com>
11023 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
11024 (call_function_by_hand_dummy): Use SCOPE_EXIT.
11026 2019-01-23 Tom Tromey <tom@tromey.com>
11027 Andrew Burgess <andrew.burgess@embecosm.com>
11028 Pedro Alves <palves@redhat.com>
11030 * infrun.c (fetch_inferior_event): Use scope_exit.
11031 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
11032 * top.c (execute_command): Use scope_exit.
11033 * breakpoint.c (bpstat_do_actions): Use scope_exit.
11034 * utils.c (do_bpstat_clear_actions_cleanup)
11035 (make_bpstat_clear_actions_cleanup): Remove.
11037 2019-01-23 Tom Tromey <tom@tromey.com>
11038 Pedro Alves <palves@redhat.com>
11040 * infrun.c: Include "common/scope-exit.h"
11041 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
11042 (wait_for_inferior): Use SCOPE_EXIT.
11043 (fetch_inferior_event): Use scope_exit.
11045 2019-01-23 Tom Tromey <tom@tromey.com>
11046 Pedro Alves <palves@redhat.com>
11048 * breakpoint.c (create_breakpoint): Remove cleanup.
11050 2019-01-23 Tom Tromey <tom@tromey.com>
11051 Andrew Burgess <andrew.burgess@embecosm.com>
11052 Pedro Alves <palves@redhat.com>
11054 2019-01-23 Pedro Alves <palves@redhat.com>
11056 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
11058 2019-01-23 Pedro Alves <palves@redhat.com>
11059 Andrew Burgess <andrew.burgess@embecosm.com>
11061 * gdbthread.h: Include "common/forward-scope-exit.h".
11062 (scoped_finish_thread_state): Redefine custom class in terms of
11063 forward_scope_exit.
11065 2019-01-23 Pedro Alves <palves@redhat.com>
11066 Andrew Burgess <andrew.burgess@embecosm.com>
11068 * common/forward-scope-exit.h: New file.
11070 2019-01-23 Pedro Alves <palves@redhat.com>
11071 Andrew Burgess <andrew.burgess@embecosm.com>
11072 Tom Tromey <tom@tromey.com>
11074 * common/scope-exit.h: New file.
11076 2019-01-23 Pedro Alves <palves@redhat.com>
11078 * common/preprocessor.h (ESC): Rename to ...
11079 (ESC_PARENS): ... this.
11080 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
11081 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
11083 2019-01-23 Tom Tromey <tom@tromey.com>
11085 * language.h (class scoped_switch_to_sym_language_if_auto):
11086 Initialize m_lang in both cases.
11088 2019-01-23 Alan Hayward <alan.hayward@arm.com>
11090 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
11093 2019-01-22 Tom Tromey <tom@tromey.com>
11095 * corelow.c: Do not include sys/file.h.
11097 2019-01-22 Tom Tromey <tom@tromey.com>
11099 * tui/tui-wingeneral.h: Include gdb_curses.h.
11101 2019-01-22 Tom Tromey <tom@tromey.com>
11103 * source-cache.h (class source_cache) <get_source_lines,
11104 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
11106 2019-01-22 Tom Tromey <tom@tromey.com>
11108 * remote-fileio.h (struct remote_target): Declare.
11110 2019-01-22 Tom Tromey <tom@tromey.com>
11112 * python/py-arch.c: Do not include py-ref.h.
11113 * python/py-bpevent.c: Do not include py-ref.h.
11114 * python/py-cmd.c: Do not include py-ref.h.
11115 * python/py-continueevent.c: Do not include py-ref.h.
11116 * python/py-event.h: Do not include py-ref.h.
11117 * python/py-evtregistry.c: Do not include py-ref.h.
11118 * python/py-finishbreakpoint.c: Do not include py-ref.h.
11119 * python/py-frame.c: Do not include py-ref.h.
11120 * python/py-framefilter.c: Do not include py-ref.h.
11121 * python/py-function.c: Do not include py-ref.h.
11122 * python/py-infevents.c: Do not include py-ref.h.
11123 * python/py-linetable.c: Do not include py-ref.h.
11124 * python/py-objfile.c: Do not include py-ref.h.
11125 * python/py-param.c: Do not include py-ref.h.
11126 * python/py-prettyprint.c: Do not include py-ref.h.
11127 * python/py-progspace.c: Do not include py-ref.h.
11128 * python/py-symbol.c: Do not include py-ref.h.
11129 * python/py-symtab.c: Do not include py-ref.h.
11130 * python/py-type.c: Do not include py-ref.h.
11131 * python/py-unwind.c: Do not include py-ref.h.
11132 * python/py-utils.c: Do not include py-ref.h.
11133 * python/py-value.c: Do not include py-ref.h.
11134 * python/py-varobj.c: Do not include py-ref.h.
11135 * python/py-xmethods.c: Do not include py-ref.h.
11136 * python/python.c: Do not include py-ref.h.
11137 * varobj.c: Do not include py-ref.h.
11139 2019-01-22 Tom Tromey <tom@tromey.com>
11141 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
11142 keyword for bcache.
11144 2019-01-22 Tom Tromey <tom@tromey.com>
11146 * compile/compile-cplus-types.c: Remove a comment by #include.
11148 2019-01-22 Tom Tromey <tom@tromey.com>
11150 * compile/gcc-c-plugin.h: Include compile-internal.h.
11152 2019-01-22 Tom Tromey <tom@tromey.com>
11154 * stabsread.c (EXTERN): Do not define.
11155 (symnum, next_symbol_text_func, processing_gcc_compilation)
11156 (within_function, global_sym_chain, global_stabs)
11157 (previous_stab_code, this_object_header_files)
11158 (n_this_object_header_files)
11159 (n_allocated_this_object_header_files): Define.
11160 * stabsread.h (EXTERN): Never define. Use "extern".
11162 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11164 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
11167 2019-01-21 Tom Tromey <tom@tromey.com>
11169 * ui-out.c: Fix includes.
11170 * tui/tui-source.c: Fix includes.
11171 * target.c: Fix includes.
11172 * remote.c: Fix includes.
11173 * regcache.c: Fix includes.
11174 * python/py-block.c: Fix includes.
11175 * printcmd.c: Fix includes.
11176 * or1k-tdep.c: Fix includes.
11177 * mi/mi-main.c: Fix includes.
11178 * m32r-tdep.c: Fix includes.
11179 * csky-tdep.c: Fix includes.
11180 * compile/compile-cplus-types.c: Fix includes.
11181 * cli/cli-interp.c: Fix includes.
11183 2019-01-21 Alan Hayward <alan.hayward@arm.com>
11185 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11188 2019-01-16 Tom Tromey <tom@tromey.com>
11190 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11192 (struct objfile) <msymbols_range>: Move from top level.
11193 <msymbols>: New method.
11194 (class objfile_msymbols): Remove.
11195 * symtab.c (default_collect_symbol_completion_matches_break_on):
11197 * symmisc.c (dump_msymbols): Update.
11198 * stabsread.c (scan_file_globals): Update.
11199 * objc-lang.c (info_selectors_command, info_classes_command)
11200 (find_methods): Update.
11201 * minsyms.c (find_solib_trampoline_target): Update.
11202 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11203 * coffread.c (coff_symfile_read): Update.
11204 * ada-lang.c (ada_lookup_simple_minsym)
11205 (ada_collect_symbol_completion_matches): Update.
11207 2019-01-16 Tom Tromey <tom@tromey.com>
11209 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11210 type. Remove no-argument constructor.
11211 <iterator::operator++>: Simplify.
11213 <end>: Use minimal_symbol_count.
11215 2019-01-16 Tom Tromey <tom@tromey.com>
11217 * objfiles.h (struct objfile) <psymtabs>: New method.
11218 (class objfile_psymtabs): Remove.
11219 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11221 <range>: New method.
11222 (require_partial_symbols): Change return type.
11223 * psymtab.c (require_partial_symbols)
11224 (psym_expand_symtabs_matching): Update.
11225 * mdebugread.c (parse_partial_symbols): Update.
11226 * dbxread.c (dbx_end_psymtab): Update.
11228 2019-01-15 Tom Tromey <tom@tromey.com>
11230 * symtab.c (lookup_objfile_from_block)
11231 (lookup_symbol_in_objfile_symtabs)
11232 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11233 (find_line_symtab, info_sources_command)
11234 (default_collect_symbol_completion_matches_break_on)
11235 (make_source_files_completion_list): Update.
11236 * symmisc.c (print_objfile_statistics, dump_objfile)
11237 (maintenance_print_symbols, maintenance_info_symtabs)
11238 (maintenance_check_symtabs, maintenance_info_line_tables):
11240 * source.c (select_source_symtab)
11241 (forget_cached_source_info_for_objfile): Update.
11242 * objfiles.h (class objfile_compunits): Remove.
11243 (struct objfile) <compunits_range>: New typedef.
11244 (compunits): New method.
11245 * objfiles.c (objfile_relocate1): Update.
11246 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11247 * maint.c (count_symtabs_and_blocks): Update.
11248 * linespec.c (iterate_over_all_matching_symtabs): Update.
11249 * cp-support.c (add_symbol_overload_list_qualified): Update.
11250 * coffread.c (coff_symtab_read): Update.
11251 * ada-lang.c (add_nonlocal_symbols)
11252 (ada_collect_symbol_completion_matches)
11253 (ada_add_global_exceptions): Update.
11255 2019-01-15 Tom Tromey <tom@tromey.com>
11257 * progspace.h (program_space) <objfiles_safe_range>: New
11259 <objfiles_safe>: New method.
11260 * objfiles.h (class all_objfiles_safe): Remove.
11261 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11262 * jit.c (jit_inferior_exit_hook): Update.
11264 2019-01-17 Tom Tromey <tom@tromey.com>
11266 * progspace.h (program_space) <objfiles_range>: New typedef.
11267 <objfiles>: New method.
11268 <objfiles_head>: Rename from objfiles.
11269 (object_files): Update.
11270 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11271 * guile/scm-pretty-print.c
11272 (ppscm_find_pretty_printer_from_objfiles): Update.
11273 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11274 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11276 * python/py-progspace.c (pspy_get_objfiles): Update.
11277 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11279 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11280 (objfpy_lookup_objfile_by_build_id): Update.
11281 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11282 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11284 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11285 (expand_symtab_containing_pc, lookup_objfile_from_block)
11286 (lookup_static_symbol, basic_lookup_transparent_type)
11287 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11288 (find_line_symtab, info_sources_command)
11289 (default_collect_symbol_completion_matches_break_on)
11290 (make_source_files_completion_list, find_main_name): Update.
11291 * symmisc.c (print_symbol_bcache_statistics)
11292 (print_objfile_statistics, maintenance_print_symbols)
11293 (maintenance_print_msymbols, maintenance_print_objfiles)
11294 (maintenance_info_symtabs, maintenance_check_symtabs)
11295 (maintenance_expand_symtabs, maintenance_info_line_tables):
11297 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11298 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11299 (map_overlay_command, unmap_overlay_command)
11300 (simple_overlay_update, expand_symtabs_matching)
11301 (map_symbol_filenames): Update.
11302 * symfile-debug.c (set_debug_symfile): Update.
11303 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11305 * source.c (select_source_symtab, forget_cached_source_info):
11307 * solib.c (solib_read_symbols): Update.
11308 * solib-spu.c (append_ocl_sos): Update.
11309 * psymtab.c (maintenance_print_psymbols)
11310 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11311 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11312 * printcmd.c (info_symbol_command): Update.
11313 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
11315 * objfiles.h (class all_objfiles): Remove.
11316 * objfiles.c (have_partial_symbols, have_full_symbols)
11317 (have_minimal_symbols, qsort_cmp, update_section_map)
11318 (shared_objfile_contains_address_p)
11319 (default_iterate_over_objfiles_in_search_order): Update.
11320 * objc-lang.c (info_selectors_command, info_classes_command)
11321 (find_methods): Update.
11322 * minsyms.c (find_solib_trampoline_target): Update.
11323 * maint.c (maintenance_info_sections)
11324 (maintenance_translate_address, count_symtabs_and_blocks):
11326 * main.c (captured_main_1): Update.
11327 * linux-thread-db.c (try_thread_db_load_from_pdir)
11328 (has_libpthread): Update.
11329 * linespec.c (iterate_over_all_matching_symtabs)
11330 (search_minsyms_for_name): Update.
11331 * jit.c (jit_find_objf_with_entry_addr): Update.
11332 * hppa-tdep.c (find_unwind_entry)
11333 (hppa_lookup_stub_minimal_symbol): Update.
11334 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
11336 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11337 (elf_gnu_ifunc_resolve_by_got): Update.
11338 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
11339 * dwarf-index-write.c (save_gdb_index_command): Update.
11340 * cp-support.c (add_symbol_overload_list_qualified): Update.
11341 * breakpoint.c (create_overlay_event_breakpoint)
11342 (create_longjmp_master_breakpoint)
11343 (create_std_terminate_master_breakpoint)
11344 (create_exception_master_breakpoint): Update.
11345 * blockframe.c (find_pc_partial_function): Update.
11346 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
11347 (ada_collect_symbol_completion_matches)
11348 (ada_add_global_exceptions): Update.
11350 2019-01-17 Tom Tromey <tom@tromey.com>
11352 * solib-target.c (lm_info_target_p): Remove typedef. Don't
11354 (solib_target_parse_libraries): Change return type.
11355 (library_list_start_segment, library_list_start_section)
11356 (library_list_end_library, library_list_start_library); Update.
11357 (solib_target_free_library_list): Remove.
11358 (solib_target_parse_libraries): Remove cleanup. Change return
11360 (solib_target_current_sos): Update.
11362 2019-01-17 Tom Tromey <tromey@bapiya>
11364 * valprint.c: Replace "the the" with "the".
11365 * symtab.c: Replace "the the" with "the".
11366 * solib.c: Replace "the the" with "the".
11367 * solib-dsbt.c: Replace "the the" with "the".
11368 * linespec.c: Replace "the the" with "the".
11369 * dwarf2loc.h: Replace "the the" with "the".
11370 * amd64-windows-tdep.c: Replace "the the" with "the".
11371 * aarch64-tdep.c: Replace "the the" with "the".
11373 2019-01-16 Keith Seitz <keiths@redhat.com>
11376 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
11377 <builder>: Rename to ..
11378 <m_builder>: ... this and make private.
11379 (dwarf2_cu::get_builder): New method. Change all users of
11380 `builder' to use this method.
11381 (dwarf2_start_symtab): Move to ...
11382 (dwarf2_cu::start_symtab): ... here. Update all callers
11383 (setup_type_unit_groups): Move to ...
11384 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
11386 (dwarf2_cu::reset_builder): New method.
11387 (process_full_compunit, process_full_type_unit): Use
11388 dwarf2_cu::reset_builder.
11389 (follow_die_offset): Record the ancestor CU if it is different
11390 from the followed DIE's CU.
11391 (follow_die_sig_1): Likewise.
11393 2019-01-15 Tom Tromey <tom@tromey.com>
11395 * remote.c (class remote_state) <buf>: Now a char_vector.
11396 <buf_size>: Remove.
11397 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
11399 (remote_target::getpkt_or_notif_sane_1)
11400 (remote_target::getpkt_sane)
11401 (remote_target::getpkt_or_notif_sane): Likewise.
11402 (class remote_target) <putpkt>: New overload.
11403 (remote_target::read_frame): Change type of "buf_p". Remove
11404 sizeof_p parameter.
11405 (packet_ok): New overload.
11406 (packet_check_result): New overload.
11409 2019-01-14 Tom Tromey <tom@tromey.com>
11411 * remote-notif.c (handle_notification, remote_notif_ack)
11412 (remote_notif_parse): Make "buf" const.
11413 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
11415 (remote_notif_parse, remote_notif_ack, handle_notification):
11417 * remote.c (remote_notif_stop_parse): Make "buf" const.
11418 (remote_target::remote_parse_stop_reply): Make "buf" const.
11419 (remote_notif_stop_ack): Make "buf" const.
11421 2019-01-14 Tom Tromey <tom@tromey.com>
11423 * remote.c (remote_console_output): Make parameter const.
11425 2019-01-14 Tom Tromey <tom@tromey.com>
11427 * target-debug.h (target_debug_print_signals): Constify.
11428 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
11429 * procfs.c (procfs_target::pass_signals): Update.
11430 * linux-nat.c (linux_nat_target::pass_signals): Update.
11431 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
11432 * target-delegates.c: Rebuild.
11433 * remote.c (remote_target::program_signals): Update.
11434 (remote_target::pass_signals): Update.
11435 * target.c (target_pass_signals): Constify argument.
11436 (target_program_signals): Likewise.
11437 * target.h (struct target_ops) <pass_signals, program_signals>:
11439 (target_pass_signals, target_program_signals): Constify argument.
11441 2019-01-14 Tom Tromey <tom@tromey.com>
11444 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
11446 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11448 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
11450 * rs6000-tdep.c: Include reggroups.h.
11451 (IS_V_ALIAS_PSEUDOREG): Define.
11452 (rs6000_register_name): Return names for the "vX" aliases.
11453 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
11454 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
11455 aliases. Call default_register_reggroup_p for all other
11457 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
11459 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
11460 Handle "vX" aliases.
11461 (v_alias_pseudo_register_collect): New function.
11462 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
11463 (rs6000_gdbarch_init): Initialize "vX" aliases as
11464 pseudo-registers. Restore registration of
11465 rs6000_pseudo_register_reggroup_p with
11466 set_tdesc_pseudo_register_reggroup_p.
11468 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
11470 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
11471 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
11472 set_gdbarch_num_pseudo_regs.
11474 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11476 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
11477 Remove arg prefixname, add do_set and do_show.
11478 Add member functions set_list and show_list.
11479 * cli/cli-style.c (class cli_style_option): Update accordingly.
11480 (style_set_list): Move to file scope.
11481 (style_show_list): Likewise.
11482 (set_style): Call help_list.
11483 (show_style): Call cmd_show_list.
11484 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
11485 Update to use the new macro.
11487 2019-10-12 Joel Brobecker <brobecker@adacore.com>
11489 * ada-lang.c (_initialize_ada_language): Expand the help text
11490 for the "catch exception" command.
11492 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11494 * symtab.c (matching_obj_sections): Initialize obj,
11495 declare it closer to its usage.
11497 2019-01-10 Tom Tromey <tom@tromey.com>
11499 * thread-iter.h (inf_threads_iterator): Use next_iterator.
11500 (basic_inf_threads_range): Remove.
11501 (inf_threads_range, inf_non_exited_threads_range)
11502 (safe_inf_threads_range): Use next_adapter.
11504 2019-01-10 Keith Seitz <keiths@redhat.com>
11508 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
11509 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
11511 2019-01-10 Keith Seitz <keiths@redhat.com>
11515 * dictionary.c (pending_to_vector): Remove.
11516 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11517 Remove _1 suffix, replacing functions of the same name. Update
11519 (dict_create_hashed, dict_create_hashed_expandable)
11520 (dict_create_linear, dict_create_linear_expandable, dict_free)
11521 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
11522 Make functions static.
11524 2019-01-10 Keith Seitz <keiths@redhat.com>
11528 * dictionary.h (struct dictionary): Replace declaration with
11530 (dict_create_hashed, dict_create_hashed_expandable)
11531 (dict_create_linear, dict_create_linear_expandable)
11532 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
11533 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
11534 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
11535 taking multidictionary argument.
11536 [ALL_DICT_SYMBOLS]: Update for multidictionary.
11537 * block.h (struct block) <dict>: Change to multidictionary
11538 and rename `multidict'.
11539 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
11540 symmisc.c: Update all dictionary references to multidictionary.
11542 2019-01-10 Keith Seitz <keiths@redhat.com>
11546 * dictionary.c: Include unordered_map.
11547 (pending_to_vector): New function.
11548 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11549 Rewrite the non-"_1" functions to take vector instead
11551 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
11552 "new" _1 versions of the same name.
11553 (multidictionary): Define.
11554 (std::hash<enum language): New definition.
11555 (collate_pending_symbols_by_language, mdict_create_hashed)
11556 (mdict_create_hashed_expandable, mdict_create_linear)
11557 (mdict_create_linear_expandable, mdict_free)
11558 (find_language_dictionary, create_new_language_dictionary)
11559 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
11560 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
11561 (mdict_size, mdict_empty): New functions.
11562 * dictionary.h (mdict_iterator): Define.
11564 2019-01-10 Pedro Alves <palves@redhat.com>
11566 * breakpoint.c (read_uploaded_action)
11567 (create_tracepoint_from_upload): Adjust to use
11568 gdb::unique_xmalloc_ptr.
11569 * ctf.c (ctf_write_uploaded_tp):
11570 (SET_ARRAY_FIELD): Use emplace_back.
11571 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
11572 * tracefile-tfile.c (tfile_write_uploaded_tp):
11573 * tracepoint.c (parse_tracepoint_definition): Adjust to use
11574 gdb::unique_xmalloc_ptr.
11575 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
11576 at_string, cond_string, cmd_strings>: Replace char pointers
11577 with gdb::unique_xmalloc_ptr.
11579 2019-01-10 Pedro Alves <palves@redhat.com>
11581 * solib-target.c (library_list_start_library): Don't xstrdup name.
11583 2019-01-10 Pedro Alves <palves@redhat.com>
11585 * mdebugread.c (parse_partial_symbols): Use
11586 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
11588 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11590 * linux-fork.c (scoped_switch_fork_info)
11591 <~scoped_switch_fork_info>: Fix incorrect variable name.
11593 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11595 * linux-fork.c (scoped_switch_fork_info)
11596 <scoped_switch_fork_info>: Make explicit.
11597 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
11599 2019-01-10 Tom Tromey <tom@tromey.com>
11601 * objfiles.h (objfile::reset_psymtabs): Update.
11602 * objfiles.c (objfile::objfile): Update.
11603 * psymtab.h (psymtab_storage::obstack): Update.
11604 (psymtab_storage::m_obstack): Use gdb::optional.
11605 (class psymtab_storage): Update comment. Remove objfile
11607 * psymtab.c (psymtab_storage::psymtab_storage): Update.
11609 2019-01-10 Tom Tromey <tom@tromey.com>
11611 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
11612 <free_psymtabs>: Now private.
11613 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
11614 (allocate_psymtab): Use new method.
11616 2019-01-10 Tom Tromey <tom@tromey.com>
11618 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
11619 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
11620 * mdebugread.c (parse_partial_symbols): Use
11621 allocate_dependencies.
11622 * dwarf2read.c (dwarf2_create_include_psymtab): Use
11623 allocate_dependencies.
11624 (process_psymtab_comp_unit_reader)
11625 (build_type_psymtab_dependencies): Likewise.
11626 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
11628 2019-01-10 Tom Tromey <tom@tromey.com>
11630 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
11631 PSYMBOL_SET_LANGUAGE.
11632 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
11634 2019-01-10 Tom Tromey <tom@tromey.com>
11636 * psymtab.h (psymtab_storage::obstack): New method.
11637 <m_obstack>: Rename from obstack; now private.
11638 * psymtab.c (psymtab_storage): Update.
11639 * dwarf2read.c (create_addrmap_from_index)
11640 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
11643 2019-01-10 Tom Tromey <tom@tromey.com>
11645 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
11646 * objfiles.h (objfile::reset_psymtabs): New method.
11648 2019-01-10 Tom Tromey <tom@tromey.com>
11650 * symmisc.c (print_symbol_bcache_statistics): Update.
11651 (print_objfile_statistics): Update.
11652 * symfile.c (reread_symbols): Update.
11653 * psymtab.h (class psymtab_storage): New.
11654 * psymtab.c (psymtab_storage): New constructor.
11655 (~psymtab_storage): New destructor.
11656 (require_partial_symbols): Update.
11657 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
11658 (find_pc_sect_psymtab, find_pc_sect_psymbol)
11659 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
11660 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
11661 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
11662 (start_psymtab_common, end_psymtab_common)
11663 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
11664 (allocate_psymtab): Update.
11665 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
11667 (dump_psymtab_addrmap, maintenance_print_psymbols)
11668 (maintenance_check_psymtabs): Update.
11669 (class objfile_psymtabs): Move to objfiles.h.
11670 * psympriv.h (discard_psymtab): Now inline.
11671 (psymtab_discarder::psymtab_discarder): Update.
11672 (psymtab_discarder::~psymtab_discarder): Update.
11673 (ALL_OBJFILE_PSYMTABS): Rewrite.
11674 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
11675 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
11677 <partial_symtabs>: New field.
11678 (class objfile_psymtabs): Move from psymtab.h. Update.
11679 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
11681 (objfile::~objfile): Don't destroy psymbol_cache.
11682 * mdebugread.c (parse_partial_symbols): Update.
11683 * dwarf2read.c (create_addrmap_from_index)
11684 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11685 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
11686 (add_partial_subprogram, dwarf2_ranges_read): Update.
11687 * dwarf-index-write.c (write_address_map)
11688 (write_one_signatured_type, recursively_write_psymbols)
11689 (class debug_names, class debug_names, write_psymtabs_to_index):
11692 2019-01-10 Tom Tromey <tom@tromey.com>
11694 * symtab.h (SYMBOL_SET_NAMES): Update.
11695 (symbol_set_names): Update.
11696 (MSYMBOL_SET_NAMES): Update.
11697 * symtab.c (symbol_set_names): Change argument to be an
11698 objfile_per_bfd_storage.
11699 * psymtab.c (add_psymbol_to_bcache): Update.
11700 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
11702 2019-01-10 Tom Tromey <tom@tromey.com>
11704 * symtab.c (create_demangled_names_hash): Change argument to be an
11705 objfile_per_bfd_storage.
11706 (symbol_set_names): Update.
11708 2019-01-10 Tom Tromey <tom@tromey.com>
11710 * xcoffread.c (xcoff_initial_scan): Unconditionally call
11712 * psymtab.c (init_psymbol_list): Do nothing if already called.
11713 * psympriv.h (init_psymbol_list): Add comment.
11714 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
11716 * dbxread.c (dbx_symfile_read): Unconditionally call
11719 2019-01-10 Tom Tromey <tom@tromey.com>
11721 * xcoffread.c (scan_xcoff_symtab): Update.
11722 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
11724 * mdebugread.c (parse_partial_symbols)
11725 (handle_psymbol_enumerators): Update.
11726 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
11727 * dbxread.c (read_dbx_symtab): Update.
11728 * psympriv.h (psymbol_placement): New enum.
11729 (add_psymbol_to_list): Update.
11731 2019-01-10 Tom Tromey <tom@tromey.com>
11733 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
11734 static_psymbols parameters.
11735 (scan_xcoff_symtab): Update.
11736 * psymtab.c (start_psymtab_common): Remove global_psymbols and
11737 static_psymbols parameters.
11738 * psympriv.h (start_psymtab_common): Update.
11739 * mdebugread.c (parse_partial_symbols): Update.
11740 * dwarf2read.c (create_partial_symtab): Update.
11741 * dbxread.c (read_dbx_symtab): Update.
11742 (start_psymtab): Remove global_psymbols and static_psymbols
11745 2019-01-10 Tom Tromey <tom@tromey.com>
11747 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
11748 * psymtab.c (allocate_psymtab): Add comment.
11749 * psympriv.h (allocate_psymtab): Add comment.
11750 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
11752 * dbxread.c (dbx_end_psymtab): Remove some initializations.
11754 2019-01-10 Tom Tromey <tom@tromey.com>
11756 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11758 * mipsread.c: Include mdebugread.h.
11759 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11761 * elfread.c: Include mdebugread.h.
11763 2019-01-09 Tom Tromey <tom@tromey.com>
11765 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
11766 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
11767 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
11768 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
11769 (psym_lookup_symbol, psym_find_last_source_symtab)
11770 (psym_forget_cached_source_info, psym_print_stats)
11771 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
11772 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
11773 (psym_map_matching_symbols, psym_expand_symtabs_matching)
11774 (psym_find_compunit_symtab_by_address)
11775 (maintenance_print_psymbols, maintenance_info_psymtabs)
11776 (maintenance_check_psymtabs): Use ranged for.
11777 * psymtab.h (class objfile_psymtabs): New.
11778 (require_partial_symbols): Return objfile_psymtabs.
11779 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
11781 2019-01-09 Tom Tromey <tom@tromey.com>
11783 * symfile.c (overlay_invalidate_all, find_pc_overlay)
11784 (find_pc_mapped_section, list_overlays_command)
11785 (map_overlay_command, unmap_overlay_command)
11786 (simple_overlay_update): Use all_objfiles.
11787 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
11788 * printcmd.c (info_symbol_command): Use all_objfiles.
11789 * objfiles.h (ALL_OBJSECTIONS): Remove.
11790 * maint.c (maintenance_translate_address): Use all_objfiles.
11791 * gcore.c (gcore_create_callback): Use all_objfiles.
11792 (objfile_find_memory_regions): Likewise.
11794 2019-01-09 Tom Tromey <tom@tromey.com>
11796 * symtab.c (find_line_symtab, info_sources_command)
11797 (make_source_files_completion_list): Use objfile_compunits.
11798 * source.c (select_source_symtab): Use objfile_compunits.
11799 * objfiles.h (struct objfile): Update comment.
11800 (ALL_OBJFILES): Remove.
11801 (ALL_FILETABS): Remove.
11802 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
11805 2019-01-09 Tom Tromey <tom@tromey.com>
11807 * symmisc.c (print_objfile_statistics, dump_objfile)
11808 (maintenance_print_symbols): Use compunit_filetabs.
11809 * source.c (forget_cached_source_info_for_objfile): Use
11811 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
11812 (ALL_FILETABS): Use compunit_filetabs.
11813 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
11814 * coffread.c (coff_symtab_read): Use compunit_filetabs.
11816 2019-01-09 Tom Tromey <tom@tromey.com>
11818 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
11819 (compunit_filetabs): New.
11820 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
11822 (info_sources_command, make_source_files_completion_list): Remove
11824 * symmisc.c (print_objfile_statistics, dump_objfile)
11825 (maintenance_print_symbols): Remove declaration.
11826 (maintenance_info_symtabs): Use compunit_filetabs.
11827 (maintenance_info_line_tables): Likewise.
11828 * source.c (select_source_symtab): Change local variable name.
11829 (forget_cached_source_info_for_objfile): Remove declaration.
11830 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
11831 * objfiles.c (objfile_relocate1): Remove declaration.
11832 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11834 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
11835 * coffread.c (coff_symtab_read): Remove declaration.
11836 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
11839 2019-01-09 Tom Tromey <tom@tromey.com>
11841 * symtab.c (lookup_objfile_from_block)
11842 (find_pc_sect_compunit_symtab, search_symbols)
11843 (default_collect_symbol_completion_matches_break_on): Use
11845 * objfiles.h (ALL_COMPUNITS): Remove.
11846 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
11847 * cp-support.c (add_symbol_overload_list_qualified): Use
11849 * ada-lang.c (ada_collect_symbol_completion_matches)
11850 (ada_add_global_exceptions): Use objfile_compunits.
11852 2019-01-09 Tom Tromey <tom@tromey.com>
11854 * source.c (select_source_symtab)
11855 (forget_cached_source_info_for_objfile): Remove declaration.
11856 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11858 * maint.c (count_symtabs_and_blocks): Remove declaration.
11859 * cp-support.c (add_symbol_overload_list_qualified): Remove
11861 * coffread.c (coff_symtab_read): Remove declaration.
11862 * symtab.c (lookup_symbol_in_objfile_symtabs)
11863 (basic_lookup_transparent_type_1): Use objfile_compunits.
11864 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
11865 (info_sources_command, search_symbols)
11866 (default_collect_symbol_completion_matches_break_on)
11867 (make_source_files_completion_list): Remove declaration.
11868 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
11869 (ada_collect_symbol_completion_matches)
11870 (ada_add_global_exceptions): Remove declaration.
11871 * linespec.c (iterate_over_all_matching_symtabs): Use
11873 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
11874 (class objfile_compunits): New.
11875 (ALL_COMPUNITS): Use objfile_compunits.
11876 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
11877 (maintenance_check_symtabs, maintenance_info_line_tables): Use
11879 * objfiles.c (objfile_relocate1): Use objfile_compunits.
11881 2019-01-09 Tom Tromey <tom@tromey.com>
11883 * symtab.c (search_symbols)
11884 (default_collect_symbol_completion_matches_break_on): Use
11886 * ada-lang.c (ada_lookup_simple_minsym)
11887 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
11888 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
11889 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
11891 * coffread.c (coff_symfile_read): Use objfile_msymbols.
11892 * symmisc.c (dump_msymbols): Use objfile_msymbols.
11893 * objc-lang.c (find_methods): Use objfile_msymbols.
11894 (info_selectors_command, info_classes_command): Likewise.
11895 * stabsread.c (scan_file_globals): Use objfile_msymbols.
11896 * objfiles.h (class objfile_msymbols): New.
11897 (ALL_OBJFILE_MSYMBOLS): Remove.
11898 (ALL_MSYMBOLS): Remove.
11900 2019-01-09 Tom Tromey <tom@tromey.com>
11902 * common/next-iterator.h (next_adapter): Add Iterator template
11904 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
11905 (class all_objfiles_safe): New.
11906 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
11907 * objfiles.c (put_objfile_before): Update comment.
11908 (add_separate_debug_objfile): Likewise.
11909 (free_all_objfiles): Use all_objfiles_safe.
11910 (objfile_purge_solibs): Likewise.
11912 2019-01-09 Tom Tromey <tom@tromey.com>
11914 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11915 (expand_symtab_containing_pc, lookup_static_symbol)
11916 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
11917 (find_symbol_at_address, find_line_symtab, find_main_name): Use
11919 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
11920 * breakpoint.c (create_overlay_event_breakpoint)
11921 (create_longjmp_master_breakpoint)
11922 (create_std_terminate_master_breakpoint)
11923 (create_exception_master_breakpoint): Use all_objfiles.
11924 * linux-thread-db.c (try_thread_db_load_from_pdir)
11925 (has_libpthread): Use all_objfiles.
11926 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
11927 * linespec.c (iterate_over_all_matching_symtabs)
11928 (search_minsyms_for_name): Use all_objfiles.
11929 * maint.c (maintenance_info_sections): Use all_objfiles.
11930 * main.c (captured_main_1): Use all_objfiles.
11931 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
11932 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
11933 * guile/scm-pretty-print.c
11934 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
11935 * solib-spu.c (append_ocl_sos): Use all_objfiles.
11936 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
11937 (maintenance_print_msymbols): Use all_objfiles.
11938 * source.c (select_source_symtab): Use all_objfiles.
11939 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
11940 * symfile.c (remove_symbol_file_command)
11941 (expand_symtabs_matching, map_symbol_filenames): Use
11943 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
11945 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
11946 * objc-lang.c (find_methods): Use all_objfiles.
11947 * objfiles.c (have_partial_symbols, have_full_symbols)
11948 (have_minimal_symbols, qsort_cmp)
11949 (default_iterate_over_objfiles_in_search_order): Use
11951 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
11952 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
11953 (maintenance_check_psymtabs): Use all_objfiles.
11954 (ALL_PSYMTABS): Remove.
11955 * compile/compile-object-run.c (do_module_cleanup): Use
11957 * blockframe.c (find_pc_partial_function): Use all_objfiles.
11958 * cp-support.c (add_symbol_overload_list_qualified): Use
11960 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11962 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
11963 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
11965 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11966 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
11967 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11969 * solib.c (solib_read_symbols): Use all_objfiles
11971 2019-01-09 Tom Tromey <tom@tromey.com>
11973 * probe.c (parse_probes_in_pspace): Use all_objfiles.
11974 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
11976 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
11977 * symmisc.c (print_symbol_bcache_statistics)
11978 (print_objfile_statistics, maintenance_print_objfiles)
11979 (maintenance_info_symtabs, maintenance_check_symtabs)
11980 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
11982 * source.c (forget_cached_source_info): Use all_objfiles.
11983 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
11984 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11985 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
11986 * objfiles.c (update_section_map): Use all_objfiles.
11987 (shared_objfile_contains_address_p): Likewise.
11988 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
11989 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
11991 2019-01-09 Tom Tromey <tom@tromey.com>
11993 * common/next-iterator.h: New file.
11994 * objfiles.h (class all_objfiles): New.
11995 (struct objfile_iterator): New.
11997 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11999 * NEWS: Move the description of the changed "frame", "select-frame",
12000 and "info frame" commands to the Changed commands section.
12002 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
12004 * gdbtypes.c (check_stub_method_group): Remove handling of old
12006 * linespec.c (find_methods): Likewise.
12007 * stabsread.c (read_member_functions): Likewise.
12008 * valops.c (search_struct_method): Likewise.
12009 (value_struct_elt_for_reference): Likewise.
12010 * NEWS: Mention this change.
12012 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12014 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
12015 print_source_lines.
12016 * source.c (print_source_lines_base): Update line number check.
12017 (print_source_lines): New function.
12018 (source_lines_range::source_lines_range): New function.
12019 * source.h (class source_lines_range): New class.
12020 (print_source_lines): New declaration.
12022 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12024 * linespec.c (linespec_state_destructor): Free self->canonical_names.
12026 2019-01-08 Tom Tromey <tom@tromey.com>
12027 Simon Marchi <simon.marchi@ericsson.com>
12030 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
12031 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
12032 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12033 * f-exp.y (DOLLAR_VARIABLE): Likewise.
12034 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
12035 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12037 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12039 * source.c (select_source_symtab): Move header comment to
12040 declaration in source.h.
12041 (forget_cached_source_info_for_objfile): Likewise.
12042 (forget_cached_source_info): Likewise.
12043 (identify_source_line): Likewise.
12044 * source.h (identify_source_line): Move declaration from symtab.h
12045 and add comment from source.c
12046 (print_source_lines): Likewise.
12047 (forget_cached_source_info_for_objfile): Likewise.
12048 (forget_cached_source_info): Likewise.
12049 (select_source_symtab): Likewise.
12050 (enum print_source_lines_flag): Move definition from symtab.h.
12051 * symtab.h (identify_source_line): Move declaration to source.h.
12052 (print_source_lines): Likewise.
12053 (forget_cached_source_info_for_objfile): Likewise.
12054 (forget_cached_source_info): Likewise.
12055 (select_source_symtab): Likewise.
12056 (enum print_source_lines_flag): Move definition to source.h.
12057 * tui/tui-hooks.c: Add 'source.h' include.
12059 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12061 * source.c (print_source_lines_base): Handle requests to print
12062 reverse line number sequences, and guard against empty lines
12065 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12067 * source.c (print_source_lines_base): Fix skip of '\r' if next
12070 2019-01-06 Tom Tromey <tom@tromey.com>
12072 * c-exp.y (struct c_parse_state) <macro_original_text,
12073 expansion_obstack>: New member.
12074 (macro_original_text, expansion_obstack): Remove globals.
12075 (scan_macro_expansion, scanning_macro_expansion)
12076 (finished_macro_expansion): Update.
12077 (scan_macro_cleanup): Remove.
12078 (yylex, c_parse): Update.
12080 2019-01-06 Tom Tromey <tom@tromey.com>
12082 * c-exp.y (struct c_parse_state) <strings>: New member.
12083 (operator_stoken): Update.
12085 2019-01-06 Tom Tromey <tom@tromey.com>
12087 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
12088 (union type_stack_elt) <typelist_val>: Now a pointer to
12090 (type_stack_cleanup): Don't declare.
12091 (push_typelist): Update.
12092 * parse.c (pop_typelist): Return a std::vector.
12093 (push_typelist): Take a std::vector.
12094 (follow_types): Update. Do not free args.
12095 (type_stack_cleanup): Remove.
12096 * c-exp.y (struct c_parse_state): New.
12097 (cpstate): New global.
12098 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
12099 (nonempty_typelist): Update.
12100 (func_mod): Create a new vector.
12101 (c_parse): Create a c_parse_state.
12102 (check_parameter_typelist): Do not delete params.
12103 (function_method): Update. Do not delete type_list.
12105 2019-01-06 Tom Tromey <tom@tromey.com>
12108 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
12110 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
12111 (print_return_value): Likewise.
12113 2019-01-05 Tom Tromey <tom@tromey.com>
12115 * contrib/cleanup_check.py: Remove.
12116 * contrib/gcc-with-excheck: Remove.
12117 * contrib/exsummary.py: Remove.
12118 * contrib/excheck.py: Remove.
12120 2019-01-05 Joel Brobecker <brobecker@adacore.com>
12122 * thread.c (delete_thread_1): Add gdb_assert that THR is not
12123 NULL. Initialize tpprev to NULL instead of assigning it
12124 to NULL on the next statement.
12125 * windows-nat.c (windows_delete_thread): Remove check for
12126 main_thread_id before printing thread exit notifications.
12127 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
12128 Remove thread ID check against main_thread_id.
12129 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
12130 windows_delete_thread.
12131 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
12133 2019-01-04 Tom Tromey <tom@tromey.com>
12135 * compile/compile.c (_initialize_compile): Use upper case for
12136 metasyntactic variables.
12137 * symmisc.c (_initialize_symmisc): Use upper case for
12138 metasyntactic variables.
12139 * psymtab.c (_initialize_psymtab): Use upper case for
12140 metasyntactic variables.
12141 * demangle.c (demangle_command): Use upper case for metasyntactic
12143 (_initialize_demangler): Likewise.
12144 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
12147 2019-01-03 Tom Tromey <tom@tromey.com>
12149 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
12151 2019-01-03 Tom Tromey <tom@tromey.com>
12153 * python/py-symtab.c (salpy_str): Update.
12154 (struct salpy_sal_object) <symtab>: Now a PyObject.
12155 (salpy_dealloc): Update.
12156 (del_objfile_sal): Use gdbpy_ref.
12158 2019-01-03 Tom Tromey <tom@tromey.com>
12160 * python/py-type.c (convert_field): Use new_reference. Return
12162 (make_fielditem): Return gdbpy_ref.
12163 (typy_fields): Update.
12164 (typy_getitem): Update.
12165 (field_name): Return gdbpy_ref. Use new_reference.
12166 (typy_iterator_iternext): Update.
12168 2019-01-03 Tom Tromey <tom@tromey.com>
12170 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
12172 2019-01-03 Tom Tromey <tom@tromey.com>
12174 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
12175 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
12176 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
12177 (pspy_set_frame_filters, pspy_set_frame_unwinders)
12178 (pspy_set_type_printers): Likewise.
12179 * python/py-function.c (fnpy_init): Use gdbpy_ref.
12180 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
12181 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
12182 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
12183 (objfpy_set_type_printers): Likewise.
12185 2019-01-03 Tom Tromey <tom@tromey.com>
12187 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12188 (gdbpy_print_stack): Use gdbpy_err_fetch.
12189 * python/python-internal.h (class gdbpy_err_fetch): New class.
12190 (class gdbpy_enter) <m_error_type, m_error_value,
12191 m_error_traceback>: Remove.
12192 <m_error>: New member.
12193 (gdbpy_exception_to_string): Don't declare.
12194 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12195 * python/py-value.c (convert_value_from_python): Use
12197 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12198 gdbpy_exception_to_string.
12199 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12200 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12203 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12205 * linux-nat.c (delete_lwp_cleanup): Delete.
12206 (struct lwp_deleter): New struct.
12207 (lwp_info_up): New typedef.
12208 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12211 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12213 * linux-fork.c (class scoped_switch_fork_info): New class.
12214 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12216 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12218 * valops.c (find_overload_match): Remove use of null_cleanup, and
12219 calls to do_cleanups.
12221 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12223 * compile/compile-cplus-types.c
12224 (compile_cplus_instance::decl_name): Handle changes to
12226 * cp-support.c (cp_func_name): Update header comment, update
12228 * cp-support.h (cp_func_name): Update return type in declaration.
12229 * valops.c (find_overload_match): Move temp_func local to top
12230 level of function and change its type. Use temp_func to hold and
12231 delete temporary string obtained from cp_func_name.
12233 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12235 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12236 gdb::char_vector, remove cleanup, and update uses of `msg`.
12238 2019-01-03 Jim Wilson <jimw@sifive.com>
12240 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12242 2019-01-02 Tom Tromey <tom@tromey.com>
12244 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12245 (tdesc_parse_xml): Remove cleanups.
12246 * target-descriptions.h (make_cleanup_free_target_description):
12248 (target_desc_deleter): New struct.
12249 (target_desc_up): New typedef.
12250 * target-descriptions.c (target_desc_deleter::operator()): Rename
12251 from free_target_description.
12252 (make_cleanup_free_target_description): Remove.
12254 2019-01-02 Tom Tromey <tom@tromey.com>
12256 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12257 constructor, destructor.
12258 (linespec_parser): Remove typedef.
12259 (~linespec_parser): Rename from linespec_parser_delete.
12260 (linespec_lex_to_end, linespec_complete_label)
12261 (linespec_complete): Update.
12262 (decode_line_full): Remove cleanups.
12263 (decode_line_1): Update.
12265 2019-01-02 Tom Tromey <tom@tromey.com>
12267 * python/python-internal.h (inferior_to_inferior_object): Change
12269 * python/py-exitedevent.c (create_exited_event_object): Update.
12270 * python/py-inferior.c (inferior_to_inferior_object): Return
12272 (python_new_inferior, python_inferior_deleted)
12273 (thread_to_thread_object, delete_thread_object)
12274 (build_inferior_list, gdbpy_selected_inferior): Update.
12275 * python/py-infthread.c (create_thread_object): Update. Also fail
12276 if inferior_to_inferior_object fails.
12278 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12280 * inferior.h (class inferior) <displaced_step_state>: New field.
12281 * infrun.h (struct displaced_step_state): Move here from
12282 infrun.c. Initialize fields, add constructor.
12283 <inf>: Remove field.
12284 <reset>: New method.
12285 * infrun.c (struct displaced_step_inferior_state): Move to
12287 (displaced_step_inferior_states): Remove.
12288 (get_displaced_stepping_state): Adust.
12289 (displaced_step_in_progress_any_inferior): Adjust.
12290 (displaced_step_in_progress_thread): Adjust.
12291 (displaced_step_in_progress): Adjust.
12292 (add_displaced_stepping_state): Remove.
12293 (get_displaced_step_closure_by_addr): Adjust.
12294 (remove_displaced_stepping_state): Remove.
12295 (infrun_inferior_exit): Call displaced_step_state.reset.
12296 (use_displaced_stepping): Don't check for NULL.
12297 (displaced_step_prepare_throw): Call
12298 get_displaced_stepping_state.
12299 (displaced_step_fixup): Don't check for NULL.
12300 (prepare_for_detach): Don't check for NULL.
12302 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12304 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12305 in case of call that did not complete.
12307 2019-01-02 Andrey Utkin <autkin@undo.io>
12309 * symfile.c (find_separate_debug_file): Fix search of debug files for
12312 2019-01-02 Tom Tromey <tom@tromey.com>
12314 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
12316 * python/py-frame.c (frapy_older): Remove cast.
12317 (frapy_newer): Likewise.
12318 * python/py-breakpoint.c (local_setattro): Remove cast.
12319 * python/py-arch.c (archpy_name): Remove local variable.
12320 * python/py-type.c (gdbpy_lookup_type): Remove cast.
12322 2019-01-02 Joel Brobecker <brobecker@adacore.com>
12324 * unittests/basic_string_view/element_access/char/empty.cc:
12325 Fix year range in copyright header.
12327 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
12329 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
12331 <operator==>: Update with for removed field.
12333 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
12334 <isa_features>: ...this.
12335 <abi_features>: New field.
12336 (riscv_isa_flen): Update comment.
12337 (riscv_abi_xlen): New declaration.
12338 (riscv_abi_flen): New declaration.
12339 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
12341 (riscv_abi_xlen): New function.
12342 (riscv_isa_flen): Update to get answer from isa_features.
12343 (riscv_abi_flen): New function.
12344 (riscv_has_fp_abi): Update to get answer from abi_features.
12345 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
12347 (riscv_call_info) <xlen, flen>: Update comment.
12348 (riscv_call_arg_struct): Remove invalid assertions
12349 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
12351 (riscv_gdbarch_init): Gather isa features and abi features
12352 separately, ensure both match on the gdbarch when reusing an old
12353 gdbarch. Relax an error check to allow 32-bit abi float to run on
12354 a target with 64-bit float hardware.
12356 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12358 * source.c (search_command_helper): Stop reverse search
12359 when line 1 has been searched.
12361 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12363 * record-full.c (record_full_base_target::close): Rewrite
12364 record_full_core_buf_list free logic.
12366 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12368 * break-catch-syscall.c (print_one_catch_syscall): xfree
12371 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12373 * top.c (print_gdb_version): Update Copyright year in version
12376 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12378 Update copyright year range in all GDB files.
12380 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
12382 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
12384 For older changes see ChangeLog-2018.
12390 version-control: never